2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for curl -.
5 # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
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.
15 # Copyright (c) 1998 - 2021 Daniel Stenberg, <daniel@haxx.se>
16 # This configure script may be copied, distributed and modified under the
17 # terms of the curl license; see COPYING for more details
19 ## -------------------------------- ##
20 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
21 ## -------------------------------- ##
23 xc_configure_preamble_ver_major='1'
24 xc_configure_preamble_ver_minor='0'
27 # Set IFS to space, tab and newline.
34 IFS="$xc_space$xc_tab$xc_newline"
37 # Set internationalization behavior variables.
48 # Some useful variables.
51 xc_msg_warn='configure: WARNING:'
52 xc_msg_abrt='Can not continue.'
53 xc_msg_err='configure: error:'
56 # Verify that 'echo' command is available, otherwise abort.
60 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61 case "x$xc_tst_str" in # ((
66 # Try built-in echo, and fail.
67 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
73 # Verify that 'test' command is available, otherwise abort.
77 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78 case "x$xc_tst_str" in # ((
83 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
89 # Verify that 'PATH' variable is set, otherwise abort.
93 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94 case "x$xc_tst_str" in # ((
99 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
105 # Verify that 'expr' command is available, otherwise abort.
109 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110 case "x$xc_tst_str" in # ((
115 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
121 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
125 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126 | sed -e 's:unknown:success:' 2>/dev/null`
127 case "x$xc_tst_str" in # ((
132 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
138 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
142 (`echo "$xc_tst_str" 2>/dev/null \
143 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144 case "x$xc_tst_str" in # ((
149 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
155 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
158 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160 | tr -d "0123456789$xc_tab" 2>/dev/null`
161 case "x$xc_tst_str" in # ((
166 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
172 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
175 xc_tst_str='unknown unknown unknown unknown'
176 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178 case "x$xc_tst_str" in # ((
183 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
189 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
193 xc_tst_str=`cat <<_EOT 2>/dev/null \
194 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
199 case "x$xc_tst_str" in # ((
204 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
210 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
213 # Directory count in 'PATH' when using a colon separator.
215 xc_tst_prev_IFS=$IFS; IFS=':'
216 for xc_tst_dir in $PATH; do
218 xc_tst_dirs_col="x$xc_tst_dirs_col"
221 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
223 # Directory count in 'PATH' when using a semicolon separator.
225 xc_tst_prev_IFS=$IFS; IFS=';'
226 for xc_tst_dir in $PATH; do
228 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
231 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
233 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234 # When both counting methods give the same result we do not want to
235 # chose one over the other, and consider auto-detection not possible.
236 if test -z "$PATH_SEPARATOR"; then
237 # User should provide the correct 'PATH_SEPARATOR' definition.
238 # Until then, guess that it is colon!
239 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
243 # Separator with the greater directory count is the auto-detected one.
244 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245 xc_tst_auto_separator=';'
247 xc_tst_auto_separator=':'
249 if test -z "$PATH_SEPARATOR"; then
250 # Simply use the auto-detected one when not already set.
251 PATH_SEPARATOR=$xc_tst_auto_separator
252 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
256 xc_PATH_SEPARATOR=$PATH_SEPARATOR
258 xc_configure_preamble_result='yes'
261 ## -------------------- ##
262 ## M4sh Initialization. ##
263 ## -------------------- ##
265 # Be more Bourne compatible
266 DUALCASE=1; export DUALCASE # for MKS sh
268 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273 # is contrary to our usage. Disable this feature.
274 alias -g '${1+"$@"}'='"$@"'
277 case `(set -o) 2>/dev/null` in #(
287 # Reset variables that may have inherited troublesome values from
290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
292 # side effect of setting IFS to empty, thus disabling word splitting.)
293 # Quoting is to prevent editors from complaining about space-tab.
303 # Ensure predictable behavior from utilities with locale-dependent output.
309 # We cannot yet rely on "unset" to work, but we need these variables
310 # to be unset--not just set to an empty or harmless value--now, to
311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
312 # also avoids known problems related to "unset" and subshell syntax
313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315 do eval test \${$as_var+y} \
316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
319 # Ensure that fds 0, 1, and 2 are open.
320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
326 # Find who we are. Look in the path if we contain no directory separator.
329 *[\\/]* ) as_myself=$0 ;;
330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337 *) as_dir=$as_dir/ ;;
339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
345 # We did not find ourselves, most probably we were run as `sh COMMAND'
346 # in which case we are not to be found in the path.
347 if test "x$as_myself" = x; then
350 if test ! -f "$as_myself"; then
351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
356 # Use a proper internal environment variable to ensure we don't fall
357 # into an infinite loop, continuously re-executing ourselves.
358 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359 _as_can_reexec=no; export _as_can_reexec;
360 # We cannot yet assume a decent shell, so we have to provide a
361 # neutralization value for shells without unset; and this also
362 # works around shells that cannot unset nonexistent variables.
363 # Preserve -v and -x to the replacement shell.
366 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
368 *v*x* | *x*v* ) as_opts=-vx ;;
373 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374 # Admittedly, this is quite paranoid, since all the known shells bail
375 # out after a failed `exec'.
376 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
379 # We don't want this to propagate to other subprocesses.
380 { _as_can_reexec=; unset _as_can_reexec;}
381 if test "x$CONFIG_SHELL" = x; then
382 as_bourne_compatible="as_nop=:
383 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
387 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388 # is contrary to our usage. Disable this feature.
389 alias -g '\${1+\"\$@\"}'='\"\$@\"'
392 case \`(set -o) 2>/dev/null\` in #(
400 as_required="as_fn_return () { (exit \$1); }
401 as_fn_success () { as_fn_return 0; }
402 as_fn_failure () { as_fn_return 1; }
403 as_fn_ret_success () { return 0; }
404 as_fn_ret_failure () { return 1; }
407 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
415 exitcode=1; echo positional parameters were not saved.
417 test x\$exitcode = x0 || exit 1
418 blah=\$(echo \$(echo blah))
419 test x\"\$blah\" = xblah || exit 1
421 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425 test \$(( 1 + 1 )) = 2 || exit 1
427 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431 PATH=/empty FPATH=/empty; export PATH FPATH
432 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434 if (eval "$as_required") 2>/dev/null
440 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
452 *) as_dir=$as_dir/ ;;
457 for as_base in sh bash ksh sh5; do
458 # Try only shells that exist, to save several forks.
459 as_shell=$as_dir$as_base
460 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
463 CONFIG_SHELL=$as_shell as_have_required=yes
464 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
478 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
481 CONFIG_SHELL=$SHELL as_have_required=yes
486 if test "x$CONFIG_SHELL" != x
489 # We cannot yet assume a decent shell, so we have to provide a
490 # neutralization value for shells without unset; and this also
491 # works around shells that cannot unset nonexistent variables.
492 # Preserve -v and -x to the replacement shell.
495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
497 *v*x* | *x*v* ) as_opts=-vx ;;
502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503 # Admittedly, this is quite paranoid, since all the known shells bail
504 # out after a failed `exec'.
505 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
509 if test x$as_have_required = xno
511 printf "%s\n" "$0: This script requires a shell more modern than all"
512 printf "%s\n" "$0: the shells that I found on your system."
513 if test ${ZSH_VERSION+y} ; then
514 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
517 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518 $0: mailing list: https://curl.se/mail/ about your system,
519 $0: including any error possibly output before this
520 $0: message. Then install a modern shell, or manually run
521 $0: the script under such a shell if you do have one."
527 SHELL=${CONFIG_SHELL-/bin/sh}
529 # Unset more variables known to interfere with behavior of common tools.
530 CLICOLOR_FORCE= GREP_OPTIONS=
531 unset CLICOLOR_FORCE GREP_OPTIONS
533 ## --------------------- ##
534 ## M4sh Shell Functions. ##
535 ## --------------------- ##
538 # Portably unset VAR.
541 { eval $1=; unset $1;}
546 # as_fn_set_status STATUS
547 # -----------------------
548 # Set $? to STATUS, without forking.
556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
565 # Do nothing but, unlike ":", preserve the value of $?.
574 # Create "$as_dir" as a directory, including parents if necessary.
579 -*) as_dir=./$as_dir;;
581 test -d "$as_dir" || eval $as_mkdir_p || {
585 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
588 as_dirs="'$as_qdir' $as_dirs"
589 as_dir=`$as_dirname -- "$as_dir" ||
590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591 X"$as_dir" : 'X\(//\)[^/]' \| \
592 X"$as_dir" : 'X\(//\)$' \| \
593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594 printf "%s\n" X"$as_dir" |
595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
612 test -d "$as_dir" && break
614 test -z "$as_dirs" || eval "mkdir $as_dirs"
615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
620 # as_fn_executable_p FILE
621 # -----------------------
622 # Test if FILE is an executable regular file.
623 as_fn_executable_p ()
625 test -f "$1" && test -x "$1"
626 } # as_fn_executable_p
627 # as_fn_append VAR VALUE
628 # ----------------------
629 # Append the text in VALUE to the end of the definition contained in VAR. Take
630 # advantage of any shell optimizations that allow amortized linear growth over
631 # repeated appends, instead of the typical quadratic growth present in naive
633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
635 eval 'as_fn_append ()
648 # Perform arithmetic evaluation on the ARGs, and store the result in the
649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
650 # must be portable across $(()) and expr.
651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
660 as_val=`expr "$@" || test $? -eq 1`
666 # Do nothing but, unlike ":", preserve the value of $?.
673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
674 # ----------------------------------------
675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677 # script with STATUS, using 1 if that was 0.
680 as_status=$1; test $as_status -eq 0 && as_status=1
682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
685 printf "%s\n" "$as_me: error: $2" >&2
686 as_fn_exit $as_status
689 if expr a : '\(a\)' >/dev/null 2>&1 &&
690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
708 as_me=`$as_basename -- "$0" ||
709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712 printf "%s\n" X/"$0" |
713 sed '/^.*\/\([^/][^/]*\)\/*$/{
727 # Avoid depending upon Character Ranges.
728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731 as_cr_digits='0123456789'
732 as_cr_alnum=$as_cr_Letters$as_cr_digits
735 as_lineno_1=$LINENO as_lineno_1a=$LINENO
736 as_lineno_2=$LINENO as_lineno_2a=$LINENO
737 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
755 chmod +x "$as_me.lineno" ||
756 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
758 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759 # already done that, so ensure we don't try to do so again and fall
760 # in an infinite loop. This has already happened in practice.
761 _as_can_reexec=no; export _as_can_reexec
762 # Don't try to exec as it changes $[0], causing all sort of problems
763 # (the dirname of $[0] is not the place where we might find the
764 # original and so on. Autoconf is especially sensitive to this).
766 # Exit status is that of the last command.
771 # Determine whether it's possible to make 'echo' print without a newline.
772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773 # for compatibility with existing Makefiles.
774 ECHO_C= ECHO_N= ECHO_T=
775 case `echo -n x` in #(((((
777 case `echo 'xy\c'` in
778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
787 # For backward compatibility with old third-party macros, we provide
788 # the shell variables $as_echo and $as_echo_n. New code should use
789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790 as_echo='printf %s\n'
791 as_echo_n='printf %s'
794 rm -f conf$$ conf$$.exe conf$$.file
795 if test -d conf$$.dir; then
796 rm -f conf$$.dir/conf$$.file
799 mkdir conf$$.dir 2>/dev/null
801 if (echo >conf$$.file) 2>/dev/null; then
802 if ln -s conf$$.file conf$$ 2>/dev/null; then
804 # ... but there are two gotchas:
805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807 # In both cases, we have to default to `cp -pR'.
808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
810 elif ln conf$$.file conf$$ 2>/dev/null; then
818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819 rmdir conf$$.dir 2>/dev/null
821 if mkdir -p . 2>/dev/null; then
822 as_mkdir_p='mkdir -p "$as_dir"'
824 test -d ./-p && rmdir ./-p
829 as_executable_p=as_fn_executable_p
831 # Sed expression to map a string onto a valid CPP name.
832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
834 # Sed expression to map a string onto a valid variable name.
835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
837 SHELL=${CONFIG_SHELL-/bin/sh}
840 test -n "$DJDIR" || exec 7<&0 </dev/null
844 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845 # so uname gets run too.
846 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
851 ac_default_prefix=/usr/local
853 ac_config_libobj_dir=.
860 # Identity of this package.
862 PACKAGE_TARNAME='curl'
864 PACKAGE_STRING='curl -'
865 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
868 ac_unique_file="lib/urldata.h"
869 # Factoring default headers for most tests.
870 ac_includes_default="\
881 #ifdef HAVE_INTTYPES_H
882 # include <inttypes.h>
887 #ifdef HAVE_STRINGS_H
888 # include <strings.h>
890 #ifdef HAVE_SYS_TYPES_H
891 # include <sys/types.h>
893 #ifdef HAVE_SYS_STAT_H
894 # include <sys/stat.h>
901 enable_option_checking=no
902 ac_subst_vars='am__EXEEXT_FALSE
915 CURL_NETWORK_AND_TIME_LIBS
918 CFLAG_CURL_SYMBOL_HIDING
919 DOING_CURL_SYMBOL_HIDING_FALSE
920 DOING_CURL_SYMBOL_HIDING_TRUE
922 BUILD_LIBHOSTNAME_FALSE
923 BUILD_LIBHOSTNAME_TRUE
924 USE_EMBEDDED_ARES_FALSE
925 USE_EMBEDDED_ARES_TRUE
937 USE_NGTCP2_CRYPTO_GNUTLS
938 USE_NGTCP2_CRYPTO_OPENSSL
942 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
943 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
944 CURL_LT_SHLIB_VERSIONED_FLAVOUR
982 HAVE_PROTO_BSDSOCKET_H
1003 USE_WIN32_SMALL_FILES
1004 USE_WIN32_LARGE_FILES
1005 DOING_NATIVE_WINDOWS_FALSE
1006 DOING_NATIVE_WINDOWS_TRUE
1007 BUILD_UNITTESTS_FALSE
1008 BUILD_UNITTESTS_TRUE
1012 USE_EXPLICIT_LIB_DEPS_FALSE
1013 USE_EXPLICIT_LIB_DEPS_TRUE
1015 CPPFLAG_CURL_STATICLIB
1016 USE_CPPFLAG_CURL_STATICLIB_FALSE
1017 USE_CPPFLAG_CURL_STATICLIB_TRUE
1018 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1019 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1020 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1021 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1022 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1023 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1077 INSTALL_STRIP_PROGRAM
1109 AM_DEFAULT_VERBOSITY
1113 MAINTAINER_MODE_FALSE
1114 MAINTAINER_MODE_TRUE
1143 program_transform_name
1157 enable_option_checking
1158 enable_maintainer_mode
1165 enable_symbol_hiding
1169 enable_code_coverage
1170 enable_dependency_tracking
1172 with_secure_transport
1211 enable_libcurl_option
1219 with_gssapi_includes
1222 with_default_ssl_backend
1225 enable_openssl_auto_load_config
1236 enable_versioned_symbols
1243 with_zsh_functions_dir
1244 with_fish_functions_dir
1245 enable_threaded_resolver
1261 enable_progress_meter
1263 enable_get_easy_options
1267 ac_precious_vars='build_alias
1276 LT_SYS_LIBRARY_PATH'
1277 ac_subdirs_all='ares'
1279 # Initialize some variables set by options.
1281 ac_init_version=false
1282 ac_unrecognized_opts=
1283 ac_unrecognized_sep=
1284 # The variables have the same names as the options, with
1285 # dashes changed to underlines.
1286 cache_file=/dev/null
1293 program_transform_name=s,x,x,
1301 # Installation directory options.
1302 # These are left unexpanded so users can "make install exec_prefix=/foo"
1303 # and all the variables that are supposed to be based on exec_prefix
1304 # by default will actually change.
1305 # Use braces instead of parens because sh, perl, etc. also accept them.
1306 # (The list follows the same order as the GNU Coding Standards.)
1307 bindir='${exec_prefix}/bin'
1308 sbindir='${exec_prefix}/sbin'
1309 libexecdir='${exec_prefix}/libexec'
1310 datarootdir='${prefix}/share'
1311 datadir='${datarootdir}'
1312 sysconfdir='${prefix}/etc'
1313 sharedstatedir='${prefix}/com'
1314 localstatedir='${prefix}/var'
1315 runstatedir='${localstatedir}/run'
1316 includedir='${prefix}/include'
1317 oldincludedir='/usr/include'
1318 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1319 infodir='${datarootdir}/info'
1324 libdir='${exec_prefix}/lib'
1325 localedir='${datarootdir}/locale'
1326 mandir='${datarootdir}/man'
1332 # If the previous option needs an argument, assign it.
1333 if test -n "$ac_prev"; then
1334 eval $ac_prev=\$ac_option
1340 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1345 case $ac_dashdash$ac_option in
1349 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1351 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1352 bindir=$ac_optarg ;;
1354 -build | --build | --buil | --bui | --bu)
1355 ac_prev=build_alias ;;
1356 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1357 build_alias=$ac_optarg ;;
1359 -cache-file | --cache-file | --cache-fil | --cache-fi \
1360 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1361 ac_prev=cache_file ;;
1362 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1363 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1364 cache_file=$ac_optarg ;;
1366 --config-cache | -C)
1367 cache_file=config.cache ;;
1369 -datadir | --datadir | --datadi | --datad)
1371 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1372 datadir=$ac_optarg ;;
1374 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1375 | --dataroo | --dataro | --datar)
1376 ac_prev=datarootdir ;;
1377 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1378 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1379 datarootdir=$ac_optarg ;;
1381 -disable-* | --disable-*)
1382 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1383 # Reject names that are not valid shell variable names.
1384 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1385 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1386 ac_useropt_orig=$ac_useropt
1387 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1388 case $ac_user_opts in
1390 "enable_$ac_useropt"
1392 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1393 ac_unrecognized_sep=', ';;
1395 eval enable_$ac_useropt=no ;;
1397 -docdir | --docdir | --docdi | --doc | --do)
1399 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1400 docdir=$ac_optarg ;;
1402 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1404 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1405 dvidir=$ac_optarg ;;
1407 -enable-* | --enable-*)
1408 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1409 # Reject names that are not valid shell variable names.
1410 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1411 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1412 ac_useropt_orig=$ac_useropt
1413 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1414 case $ac_user_opts in
1416 "enable_$ac_useropt"
1418 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1419 ac_unrecognized_sep=', ';;
1421 eval enable_$ac_useropt=\$ac_optarg ;;
1423 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1424 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1425 | --exec | --exe | --ex)
1426 ac_prev=exec_prefix ;;
1427 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1428 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1429 | --exec=* | --exe=* | --ex=*)
1430 exec_prefix=$ac_optarg ;;
1432 -gas | --gas | --ga | --g)
1433 # Obsolete; use --with-gas.
1436 -help | --help | --hel | --he | -h)
1437 ac_init_help=long ;;
1438 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1439 ac_init_help=recursive ;;
1440 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1441 ac_init_help=short ;;
1443 -host | --host | --hos | --ho)
1444 ac_prev=host_alias ;;
1445 -host=* | --host=* | --hos=* | --ho=*)
1446 host_alias=$ac_optarg ;;
1448 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1450 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1452 htmldir=$ac_optarg ;;
1454 -includedir | --includedir | --includedi | --included | --include \
1455 | --includ | --inclu | --incl | --inc)
1456 ac_prev=includedir ;;
1457 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1458 | --includ=* | --inclu=* | --incl=* | --inc=*)
1459 includedir=$ac_optarg ;;
1461 -infodir | --infodir | --infodi | --infod | --info | --inf)
1463 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1464 infodir=$ac_optarg ;;
1466 -libdir | --libdir | --libdi | --libd)
1468 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1469 libdir=$ac_optarg ;;
1471 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1472 | --libexe | --libex | --libe)
1473 ac_prev=libexecdir ;;
1474 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1475 | --libexe=* | --libex=* | --libe=*)
1476 libexecdir=$ac_optarg ;;
1478 -localedir | --localedir | --localedi | --localed | --locale)
1479 ac_prev=localedir ;;
1480 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1481 localedir=$ac_optarg ;;
1483 -localstatedir | --localstatedir | --localstatedi | --localstated \
1484 | --localstate | --localstat | --localsta | --localst | --locals)
1485 ac_prev=localstatedir ;;
1486 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1487 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1488 localstatedir=$ac_optarg ;;
1490 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1492 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1493 mandir=$ac_optarg ;;
1495 -nfp | --nfp | --nf)
1496 # Obsolete; use --without-fp.
1499 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1500 | --no-cr | --no-c | -n)
1503 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1504 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1507 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1508 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1509 | --oldin | --oldi | --old | --ol | --o)
1510 ac_prev=oldincludedir ;;
1511 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1512 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1513 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1514 oldincludedir=$ac_optarg ;;
1516 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1518 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1519 prefix=$ac_optarg ;;
1521 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1522 | --program-pre | --program-pr | --program-p)
1523 ac_prev=program_prefix ;;
1524 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1525 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1526 program_prefix=$ac_optarg ;;
1528 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1529 | --program-suf | --program-su | --program-s)
1530 ac_prev=program_suffix ;;
1531 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1532 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1533 program_suffix=$ac_optarg ;;
1535 -program-transform-name | --program-transform-name \
1536 | --program-transform-nam | --program-transform-na \
1537 | --program-transform-n | --program-transform- \
1538 | --program-transform | --program-transfor \
1539 | --program-transfo | --program-transf \
1540 | --program-trans | --program-tran \
1541 | --progr-tra | --program-tr | --program-t)
1542 ac_prev=program_transform_name ;;
1543 -program-transform-name=* | --program-transform-name=* \
1544 | --program-transform-nam=* | --program-transform-na=* \
1545 | --program-transform-n=* | --program-transform-=* \
1546 | --program-transform=* | --program-transfor=* \
1547 | --program-transfo=* | --program-transf=* \
1548 | --program-trans=* | --program-tran=* \
1549 | --progr-tra=* | --program-tr=* | --program-t=*)
1550 program_transform_name=$ac_optarg ;;
1552 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1554 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1555 pdfdir=$ac_optarg ;;
1557 -psdir | --psdir | --psdi | --psd | --ps)
1559 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1562 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1563 | -silent | --silent | --silen | --sile | --sil)
1566 -runstatedir | --runstatedir | --runstatedi | --runstated \
1567 | --runstate | --runstat | --runsta | --runst | --runs \
1568 | --run | --ru | --r)
1569 ac_prev=runstatedir ;;
1570 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1571 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1572 | --run=* | --ru=* | --r=*)
1573 runstatedir=$ac_optarg ;;
1575 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1577 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1579 sbindir=$ac_optarg ;;
1581 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1582 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1583 | --sharedst | --shareds | --shared | --share | --shar \
1585 ac_prev=sharedstatedir ;;
1586 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1587 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1588 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1590 sharedstatedir=$ac_optarg ;;
1592 -site | --site | --sit)
1594 -site=* | --site=* | --sit=*)
1597 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1599 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1600 srcdir=$ac_optarg ;;
1602 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1603 | --syscon | --sysco | --sysc | --sys | --sy)
1604 ac_prev=sysconfdir ;;
1605 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1606 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1607 sysconfdir=$ac_optarg ;;
1609 -target | --target | --targe | --targ | --tar | --ta | --t)
1610 ac_prev=target_alias ;;
1611 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1612 target_alias=$ac_optarg ;;
1614 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1617 -version | --version | --versio | --versi | --vers | -V)
1618 ac_init_version=: ;;
1621 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1622 # Reject names that are not valid shell variable names.
1623 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1624 as_fn_error $? "invalid package name: \`$ac_useropt'"
1625 ac_useropt_orig=$ac_useropt
1626 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1627 case $ac_user_opts in
1631 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1632 ac_unrecognized_sep=', ';;
1634 eval with_$ac_useropt=\$ac_optarg ;;
1636 -without-* | --without-*)
1637 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1638 # Reject names that are not valid shell variable names.
1639 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1640 as_fn_error $? "invalid package name: \`$ac_useropt'"
1641 ac_useropt_orig=$ac_useropt
1642 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1643 case $ac_user_opts in
1647 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1648 ac_unrecognized_sep=', ';;
1650 eval with_$ac_useropt=no ;;
1653 # Obsolete; use --with-x.
1656 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1657 | --x-incl | --x-inc | --x-in | --x-i)
1658 ac_prev=x_includes ;;
1659 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1660 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1661 x_includes=$ac_optarg ;;
1663 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1664 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1665 ac_prev=x_libraries ;;
1666 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1667 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1668 x_libraries=$ac_optarg ;;
1670 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1671 Try \`$0 --help' for more information"
1675 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1676 # Reject names that are not valid shell variable names.
1677 case $ac_envvar in #(
1678 '' | [0-9]* | *[!_$as_cr_alnum]* )
1679 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1681 eval $ac_envvar=\$ac_optarg
1682 export $ac_envvar ;;
1685 # FIXME: should be removed in autoconf 3.0.
1686 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1687 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1688 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1689 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1695 if test -n "$ac_prev"; then
1696 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1697 as_fn_error $? "missing argument to $ac_option"
1700 if test -n "$ac_unrecognized_opts"; then
1701 case $enable_option_checking in
1703 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1704 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1708 # Check all directory arguments for consistency.
1709 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1710 datadir sysconfdir sharedstatedir localstatedir includedir \
1711 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1712 libdir localedir mandir runstatedir
1714 eval ac_val=\$$ac_var
1715 # Remove trailing slashes.
1718 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1719 eval $ac_var=\$ac_val;;
1721 # Be sure to have absolute directory names.
1723 [\\/$]* | ?:[\\/]* ) continue;;
1724 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1726 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1729 # There might be people who depend on the old broken behavior: `$host'
1730 # used to hold the argument of --host etc.
1731 # FIXME: To remove some day.
1734 target=$target_alias
1736 # FIXME: To remove some day.
1737 if test "x$host_alias" != x; then
1738 if test "x$build_alias" = x; then
1739 cross_compiling=maybe
1740 elif test "x$build_alias" != "x$host_alias"; then
1746 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1748 test "$silent" = yes && exec 6>/dev/null
1751 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1752 ac_ls_di=`ls -di .` &&
1753 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1754 as_fn_error $? "working directory cannot be determined"
1755 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1756 as_fn_error $? "pwd does not report name of working directory"
1759 # Find the source files, if location was not specified.
1760 if test -z "$srcdir"; then
1761 ac_srcdir_defaulted=yes
1762 # Try the directory containing this script, then the parent directory.
1763 ac_confdir=`$as_dirname -- "$as_myself" ||
1764 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1765 X"$as_myself" : 'X\(//\)[^/]' \| \
1766 X"$as_myself" : 'X\(//\)$' \| \
1767 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1768 printf "%s\n" X"$as_myself" |
1769 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1787 if test ! -r "$srcdir/$ac_unique_file"; then
1791 ac_srcdir_defaulted=no
1793 if test ! -r "$srcdir/$ac_unique_file"; then
1794 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1795 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1797 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1799 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1801 # When building in place, set srcdir=.
1802 if test "$ac_abs_confdir" = "$ac_pwd"; then
1805 # Remove unnecessary trailing slashes from srcdir.
1806 # Double slashes in file names in object file debugging info
1807 # mess up M-x gdb in Emacs.
1809 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1811 for ac_var in $ac_precious_vars; do
1812 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1813 eval ac_env_${ac_var}_value=\$${ac_var}
1814 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1815 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1819 # Report the --help message.
1821 if test "$ac_init_help" = "long"; then
1822 # Omit some internal or obsolete options to make the list less imposing.
1823 # This message is too long to be a string in the A/UX 3.1 sh.
1825 \`configure' configures curl - to adapt to many kinds of systems.
1827 Usage: $0 [OPTION]... [VAR=VALUE]...
1829 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1830 VAR=VALUE. See below for descriptions of some of the useful variables.
1832 Defaults for the options are specified in brackets.
1835 -h, --help display this help and exit
1836 --help=short display options specific to this package
1837 --help=recursive display the short help of all the included packages
1838 -V, --version display version information and exit
1839 -q, --quiet, --silent do not print \`checking ...' messages
1840 --cache-file=FILE cache test results in FILE [disabled]
1841 -C, --config-cache alias for \`--cache-file=config.cache'
1842 -n, --no-create do not create output files
1843 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1845 Installation directories:
1846 --prefix=PREFIX install architecture-independent files in PREFIX
1847 [$ac_default_prefix]
1848 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1851 By default, \`make install' will install all the files in
1852 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1853 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1854 for instance \`--prefix=\$HOME'.
1856 For better control, use the options below.
1858 Fine tuning of the installation directories:
1859 --bindir=DIR user executables [EPREFIX/bin]
1860 --sbindir=DIR system admin executables [EPREFIX/sbin]
1861 --libexecdir=DIR program executables [EPREFIX/libexec]
1862 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1863 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1864 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1865 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1866 --libdir=DIR object code libraries [EPREFIX/lib]
1867 --includedir=DIR C header files [PREFIX/include]
1868 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1869 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1870 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1871 --infodir=DIR info documentation [DATAROOTDIR/info]
1872 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1873 --mandir=DIR man documentation [DATAROOTDIR/man]
1874 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1875 --htmldir=DIR html documentation [DOCDIR]
1876 --dvidir=DIR dvi documentation [DOCDIR]
1877 --pdfdir=DIR pdf documentation [DOCDIR]
1878 --psdir=DIR ps documentation [DOCDIR]
1884 --program-prefix=PREFIX prepend PREFIX to installed program names
1885 --program-suffix=SUFFIX append SUFFIX to installed program names
1886 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1889 --build=BUILD configure for building on BUILD [guessed]
1890 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1894 if test -n "$ac_init_help"; then
1895 case $ac_init_help in
1896 short | recursive ) echo "Configuration of curl -:";;
1901 --disable-option-checking ignore unrecognized --enable/--with options
1902 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1903 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1904 --enable-maintainer-mode
1905 enable make rules and dependencies not useful (and
1906 sometimes confusing) to the casual installer
1907 --enable-silent-rules less verbose build output (undo: "make V=1")
1908 --disable-silent-rules verbose build output (undo: "make V=0")
1909 --enable-debug Enable debug build options
1910 --disable-debug Disable debug build options
1911 --enable-optimize Enable compiler optimizations
1912 --disable-optimize Disable compiler optimizations
1913 --enable-warnings Enable strict compiler warnings
1914 --disable-warnings Disable strict compiler warnings
1915 --enable-werror Enable compiler warnings as errors
1916 --disable-werror Disable compiler warnings as errors
1917 --enable-curldebug Enable curl debug memory tracking
1918 --disable-curldebug Disable curl debug memory tracking
1919 --enable-symbol-hiding Enable hiding of library internal symbols
1920 --disable-symbol-hiding Disable hiding of library internal symbols
1921 --enable-ares[=PATH] Enable c-ares for DNS lookups
1922 --disable-ares Disable c-ares for DNS lookups
1923 --disable-rt disable dependency on -lrt
1924 --enable-ech Enable ECH support
1925 --disable-ech Disable ECH support
1926 --enable-code-coverage Provide code coverage
1927 --enable-dependency-tracking
1928 do not reject slow dependency extractors
1929 --disable-dependency-tracking
1930 speeds up one-time build
1931 --disable-largefile omit support for large files
1932 --enable-shared[=PKGS] build shared libraries [default=yes]
1933 --enable-static[=PKGS] build static libraries [default=yes]
1934 --enable-fast-install[=PKGS]
1935 optimize for fast installation [default=yes]
1936 --disable-libtool-lock avoid locking (might break parallel builds)
1937 --enable-http Enable HTTP support
1938 --disable-http Disable HTTP support
1939 --enable-ftp Enable FTP support
1940 --disable-ftp Disable FTP support
1941 --enable-file Enable FILE support
1942 --disable-file Disable FILE support
1943 --enable-ldap Enable LDAP support
1944 --disable-ldap Disable LDAP support
1945 --enable-ldaps Enable LDAPS support
1946 --disable-ldaps Disable LDAPS support
1947 --enable-rtsp Enable RTSP support
1948 --disable-rtsp Disable RTSP support
1949 --enable-proxy Enable proxy support
1950 --disable-proxy Disable proxy support
1951 --enable-dict Enable DICT support
1952 --disable-dict Disable DICT support
1953 --enable-telnet Enable TELNET support
1954 --disable-telnet Disable TELNET support
1955 --enable-tftp Enable TFTP support
1956 --disable-tftp Disable TFTP support
1957 --enable-pop3 Enable POP3 support
1958 --disable-pop3 Disable POP3 support
1959 --enable-imap Enable IMAP support
1960 --disable-imap Disable IMAP support
1961 --enable-smb Enable SMB/CIFS support
1962 --disable-smb Disable SMB/CIFS support
1963 --enable-smtp Enable SMTP support
1964 --disable-smtp Disable SMTP support
1965 --enable-gopher Enable Gopher support
1966 --disable-gopher Disable Gopher support
1967 --enable-mqtt Enable MQTT support
1968 --disable-mqtt Disable MQTT support
1969 --enable-manual Enable built-in manual
1970 --disable-manual Disable built-in manual
1971 --enable-libcurl-option Enable --libcurl C code generation support
1972 --disable-libcurl-option
1973 Disable --libcurl C code generation support
1974 --enable-libgcc use libgcc when linking
1975 --enable-ipv6 Enable IPv6 (with IPv4) support
1976 --disable-ipv6 Disable IPv6 support
1977 --enable-openssl-auto-load-config
1978 Enable automatic loading of OpenSSL configuration
1979 --disable-openssl-auto-load-config
1980 Disable automatic loading of OpenSSL configuration
1981 --enable-versioned-symbols
1982 Enable versioned symbols in shared library
1983 --disable-versioned-symbols
1984 Disable versioned symbols in shared library
1985 --enable-threaded-resolver
1986 Enable threaded resolver
1987 --disable-threaded-resolver
1988 Disable threaded resolver
1989 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1990 --disable-pthreads Disable POSIX threads
1991 --enable-verbose Enable verbose strings
1992 --disable-verbose Disable verbose strings
1993 --enable-sspi Enable SSPI
1994 --disable-sspi Disable SSPI
1995 --enable-crypto-auth Enable cryptographic authentication
1996 --disable-crypto-auth Disable cryptographic authentication
1997 --enable-ntlm Enable NTLM support
1998 --disable-ntlm Disable NTLM support
1999 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2000 helper, where FILE is ntlm_auth's absolute filename
2001 (default: /usr/bin/ntlm_auth)
2002 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
2004 --enable-tls-srp Enable TLS-SRP authentication
2005 --disable-tls-srp Disable TLS-SRP authentication
2006 --enable-unix-sockets Enable Unix domain sockets
2007 --disable-unix-sockets Disable Unix domain sockets
2008 --enable-cookies Enable cookies support
2009 --disable-cookies Disable cookies support
2010 --enable-socketpair Enable socketpair support
2011 --disable-socketpair Disable socketpair support
2012 --enable-http-auth Enable HTTP authentication support
2013 --disable-http-auth Disable HTTP authentication support
2014 --enable-doh Enable DoH support
2015 --disable-doh Disable DoH support
2016 --enable-mime Enable mime API support
2017 --disable-mime Disable mime API support
2018 --enable-dateparse Enable date parsing
2019 --disable-dateparse Disable date parsing
2020 --enable-netrc Enable netrc parsing
2021 --disable-netrc Disable netrc parsing
2022 --enable-progress-meter Enable progress-meter
2023 --disable-progress-meter
2024 Disable progress-meter
2025 --enable-dnsshuffle Enable DNS shuffling
2026 --disable-dnsshuffle Disable DNS shuffling
2027 --enable-get-easy-options
2028 Enable curl_easy_options
2029 --disable-get-easy-options
2030 Disable curl_easy_options
2031 --enable-alt-svc Enable alt-svc support
2032 --disable-alt-svc Disable alt-svc support
2033 --enable-hsts Enable HSTS support
2034 --disable-hsts Disable HSTS support
2037 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2038 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2039 --with-schannel enable Windows native SSL/TLS
2040 --with-secure-transport enable Apple OS native SSL/TLS
2041 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
2042 --with-ssl=PATH old version of --with-openssl
2043 --without-ssl build without any TLS library
2044 --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL
2045 installation (default: /usr/local/ssl); when
2046 possible, set the PKG_CONFIG_PATH environment
2047 variable instead of using this option
2048 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
2050 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2052 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2053 installation root (default: system lib default)
2054 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2056 --with-bearssl=PATH where to look for BearSSL, PATH points to the
2058 --with-rustls=PATH where to look for rustls, PATH points to the
2060 --with-nss=PATH where to look for NSS, PATH points to the
2063 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2065 --with-aix-soname=aix|svr4|both
2066 shared library versioning (aka "SONAME") variant to
2067 provide on AIX, [default=aix].
2068 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2069 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2070 compiler's sysroot if not specified).
2071 --with-hyper=PATH Enable hyper usage
2072 --without-hyper Disable hyper usage
2073 --with-zlib=PATH search for zlib in PATH
2074 --without-zlib disable use of zlib
2075 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
2076 installation; when possible, set the PKG_CONFIG_PATH
2077 environment variable instead of using this option
2078 --without-brotli disable BROTLI
2079 --with-zstd=PATH Where to look for libzstd, PATH points to the
2080 libzstd installation; when possible, set the
2081 PKG_CONFIG_PATH environment variable instead of
2083 --without-zstd disable libzstd
2084 --with-ldap-lib=libname Specify name of ldap lib file
2085 --with-lber-lib=libname Specify name of lber lib file
2086 --with-gssapi-includes=DIR
2087 Specify location of GSS-API headers
2088 --with-gssapi-libs=DIR Specify location of GSS-API libs
2089 --with-gssapi=DIR Where to look for GSS-API
2090 --with-default-ssl-backend=NAME
2091 Use NAME as default SSL backend
2092 --without-default-ssl-backend
2093 Use implicit default SSL backend
2094 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
2095 --with-random=FILE read randomness from FILE (default=/dev/urandom)
2096 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2098 --without-ca-bundle Don't use a default CA bundle
2099 --with-ca-path=DIRECTORY
2100 Path to a directory containing CA certificates
2101 stored individually, with their filenames in a hash
2102 format. This option can be used with the OpenSSL,
2103 GnuTLS and mbedTLS backends. Refer to OpenSSL
2104 c_rehash for details. (example: /etc/certificates)
2105 --without-ca-path Don't use a default CA path
2106 --with-ca-fallback Use the built in CA store of the SSL library
2107 --without-ca-fallback Don't use the built in CA store of the SSL library
2108 --without-libpsl disable support for libpsl cookie checking
2109 --without-libgsasl disable libgsasl support for SCRAM
2110 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2111 libssh2 installation; when possible, set the
2112 PKG_CONFIG_PATH environment variable instead of
2114 --with-libssh2 enable libssh2
2115 --with-libssh=PATH Where to look for libssh, PATH points to the libssh
2116 installation; when possible, set the PKG_CONFIG_PATH
2117 environment variable instead of using this option
2118 --with-libssh enable libssh
2119 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
2120 wolfSSH installation; when possible, set the
2121 PKG_CONFIG_PATH environment variable instead of
2123 --with-wolfssh enable wolfssh
2124 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2125 LIBRTMP installation; when possible, set the
2126 PKG_CONFIG_PATH environment variable instead of
2128 --without-librtmp disable LIBRTMP
2129 --with-winidn=PATH enable Windows native IDN
2130 --without-winidn disable Windows native IDN
2131 --with-libidn2=PATH Enable libidn2 usage
2132 --without-libidn2 Disable libidn2 usage
2133 --with-nghttp2=PATH Enable nghttp2 usage
2134 --without-nghttp2 Disable nghttp2 usage
2135 --with-ngtcp2=PATH Enable ngtcp2 usage
2136 --without-ngtcp2 Disable ngtcp2 usage
2137 --with-nghttp3=PATH Enable nghttp3 usage
2138 --without-nghttp3 Disable nghttp3 usage
2139 --with-quiche=PATH Enable quiche usage
2140 --without-quiche Disable quiche usage
2141 --with-zsh-functions-dir=PATH
2142 Install zsh completions to PATH
2143 --without-zsh-functions-dir
2144 Do not install zsh completions
2145 --with-fish-functions-dir=PATH
2146 Install fish completions to PATH
2147 --without-fish-functions-dir
2148 Do not install fish completions
2150 Some influential environment variables:
2151 CC C compiler command
2152 CFLAGS C compiler flags
2153 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2154 nonstandard directory <lib dir>
2155 LIBS libraries to pass to the linker, e.g. -l<library>
2156 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2157 you have headers in a nonstandard directory <include dir>
2160 User-defined run-time library search path.
2162 Use these variables to override the choices made by `configure' or to help
2163 it to find libraries and programs with nonstandard names/locations.
2165 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2170 if test "$ac_init_help" = "recursive"; then
2171 # If there are subdirs, report their specific --help.
2172 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2173 test -d "$ac_dir" ||
2174 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2179 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2181 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2182 # A ".." for each directory in $ac_dir_suffix.
2183 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2184 case $ac_top_builddir_sub in
2185 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2186 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2189 ac_abs_top_builddir=$ac_pwd
2190 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2191 # for backward compatibility:
2192 ac_top_builddir=$ac_top_build_prefix
2195 .) # We are building in place.
2197 ac_top_srcdir=$ac_top_builddir_sub
2198 ac_abs_top_srcdir=$ac_pwd ;;
2199 [\\/]* | ?:[\\/]* ) # Absolute name.
2200 ac_srcdir=$srcdir$ac_dir_suffix;
2201 ac_top_srcdir=$srcdir
2202 ac_abs_top_srcdir=$srcdir ;;
2204 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2205 ac_top_srcdir=$ac_top_build_prefix$srcdir
2206 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2208 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2210 cd "$ac_dir" || { ac_status=$?; continue; }
2211 # Check for configure.gnu first; this name is used for a wrapper for
2212 # Metaconfig's "Configure" on case-insensitive file systems.
2213 if test -f "$ac_srcdir/configure.gnu"; then
2215 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2216 elif test -f "$ac_srcdir/configure"; then
2218 $SHELL "$ac_srcdir/configure" --help=recursive
2220 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2222 cd "$ac_pwd" || { ac_status=$?; break; }
2226 test -n "$ac_init_help" && exit $ac_status
2227 if $ac_init_version; then
2230 generated by GNU Autoconf 2.71
2232 Copyright (C) 2021 Free Software Foundation, Inc.
2233 This configure script is free software; the Free Software Foundation
2234 gives unlimited permission to copy, distribute and modify it.
2236 Copyright (c) 1998 - 2021 Daniel Stenberg, <daniel@haxx.se>
2237 This configure script may be copied, distributed and modified under the
2238 terms of the curl license; see COPYING for more details
2243 ## ------------------------ ##
2244 ## Autoconf initialization. ##
2245 ## ------------------------ ##
2247 # ac_fn_c_try_compile LINENO
2248 # --------------------------
2249 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2250 ac_fn_c_try_compile ()
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 rm -f conftest.$ac_objext conftest.beam
2254 if { { ac_try="$ac_compile"
2256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2257 *) ac_try_echo=$ac_try;;
2259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2260 printf "%s\n" "$ac_try_echo"; } >&5
2261 (eval "$ac_compile") 2>conftest.err
2263 if test -s conftest.err; then
2264 grep -v '^ *+' conftest.err >conftest.er1
2265 cat conftest.er1 >&5
2266 mv -f conftest.er1 conftest.err
2268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2269 test $ac_status = 0; } && {
2270 test -z "$ac_c_werror_flag" ||
2271 test ! -s conftest.err
2272 } && test -s conftest.$ac_objext
2276 printf "%s\n" "$as_me: failed program was:" >&5
2277 sed 's/^/| /' conftest.$ac_ext >&5
2281 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2282 as_fn_set_status $ac_retval
2284 } # ac_fn_c_try_compile
2286 # ac_fn_c_try_cpp LINENO
2287 # ----------------------
2288 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2291 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2292 if { { ac_try="$ac_cpp conftest.$ac_ext"
2294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2295 *) ac_try_echo=$ac_try;;
2297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2298 printf "%s\n" "$ac_try_echo"; } >&5
2299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2301 if test -s conftest.err; then
2302 grep -v '^ *+' conftest.err >conftest.er1
2303 cat conftest.er1 >&5
2304 mv -f conftest.er1 conftest.err
2306 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2307 test $ac_status = 0; } > conftest.i && {
2308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2309 test ! -s conftest.err
2314 printf "%s\n" "$as_me: failed program was:" >&5
2315 sed 's/^/| /' conftest.$ac_ext >&5
2319 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2320 as_fn_set_status $ac_retval
2324 # ac_fn_c_try_link LINENO
2325 # -----------------------
2326 # Try to link conftest.$ac_ext, and return whether this succeeded.
2329 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2330 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2331 if { { ac_try="$ac_link"
2333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2334 *) ac_try_echo=$ac_try;;
2336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2337 printf "%s\n" "$ac_try_echo"; } >&5
2338 (eval "$ac_link") 2>conftest.err
2340 if test -s conftest.err; then
2341 grep -v '^ *+' conftest.err >conftest.er1
2342 cat conftest.er1 >&5
2343 mv -f conftest.er1 conftest.err
2345 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2346 test $ac_status = 0; } && {
2347 test -z "$ac_c_werror_flag" ||
2348 test ! -s conftest.err
2349 } && test -s conftest$ac_exeext && {
2350 test "$cross_compiling" = yes ||
2351 test -x conftest$ac_exeext
2356 printf "%s\n" "$as_me: failed program was:" >&5
2357 sed 's/^/| /' conftest.$ac_ext >&5
2361 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2362 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2363 # interfere with the next link command; also delete a directory that is
2364 # left behind by Apple's compiler. We do this before executing the actions.
2365 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2367 as_fn_set_status $ac_retval
2369 } # ac_fn_c_try_link
2371 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2372 # -------------------------------------------------------
2373 # Tests whether HEADER exists and can be compiled using the include files in
2374 # INCLUDES, setting the cache variable VAR accordingly.
2375 ac_fn_c_check_header_compile ()
2377 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2379 printf %s "checking for $2... " >&6; }
2380 if eval test \${$3+y}
2382 printf %s "(cached) " >&6
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385 /* end confdefs.h. */
2389 if ac_fn_c_try_compile "$LINENO"
2395 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2399 printf "%s\n" "$ac_res" >&6; }
2400 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2402 } # ac_fn_c_check_header_compile
2404 # ac_fn_c_check_func LINENO FUNC VAR
2405 # ----------------------------------
2406 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2407 ac_fn_c_check_func ()
2409 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2411 printf %s "checking for $2... " >&6; }
2412 if eval test \${$3+y}
2414 printf %s "(cached) " >&6
2416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2417 /* end confdefs.h. */
2419 #define $2 innocuous_$2
2421 # include <limits.h>
2423 # include <assert.h>
2430 #if defined __stub_$2 || defined __stub___$2
2441 if ac_fn_c_try_link "$LINENO"
2447 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2448 conftest$ac_exeext conftest.$ac_ext
2451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2452 printf "%s\n" "$ac_res" >&6; }
2453 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2455 } # ac_fn_c_check_func
2457 # ac_fn_c_try_run LINENO
2458 # ----------------------
2459 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2460 # executables *can* be run.
2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2464 if { { ac_try="$ac_link"
2466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2467 *) ac_try_echo=$ac_try;;
2469 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2470 printf "%s\n" "$ac_try_echo"; } >&5
2471 (eval "$ac_link") 2>&5
2473 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2474 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2475 { { case "(($ac_try" in
2476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2477 *) ac_try_echo=$ac_try;;
2479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2480 printf "%s\n" "$ac_try_echo"; } >&5
2481 (eval "$ac_try") 2>&5
2483 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2484 test $ac_status = 0; }; }
2488 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2489 printf "%s\n" "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2492 ac_retval=$ac_status
2494 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2495 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2496 as_fn_set_status $ac_retval
2500 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2501 # -------------------------------------------
2502 # Tests whether TYPE exists after having included INCLUDES, setting cache
2503 # variable VAR accordingly.
2504 ac_fn_c_check_type ()
2506 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2508 printf %s "checking for $2... " >&6; }
2509 if eval test \${$3+y}
2511 printf %s "(cached) " >&6
2514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515 /* end confdefs.h. */
2525 if ac_fn_c_try_compile "$LINENO"
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2538 if ac_fn_c_try_compile "$LINENO"
2544 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2546 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 printf "%s\n" "$ac_res" >&6; }
2551 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2553 } # ac_fn_c_check_type
2555 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2556 # ------------------------------------------------------------------
2557 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2558 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 as_decl_name=`echo $2|sed 's/ *(.*//'`
2563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2564 printf %s "checking whether $as_decl_name is declared... " >&6; }
2565 if eval test \${$3+y}
2567 printf %s "(cached) " >&6
2569 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2570 eval ac_save_FLAGS=\$$6
2571 as_fn_append $6 " $5"
2572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2573 /* end confdefs.h. */
2577 #ifndef $as_decl_name
2579 (void) $as_decl_use;
2581 (void) $as_decl_name;
2589 if ac_fn_c_try_compile "$LINENO"
2595 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2596 eval $6=\$ac_save_FLAGS
2600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2601 printf "%s\n" "$ac_res" >&6; }
2602 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2604 } # ac_fn_check_decl
2606 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2607 # ----------------------------------------------------
2608 # Tries to find if the field MEMBER exists in type AGGR, after including
2609 # INCLUDES, setting cache variable VAR accordingly.
2610 ac_fn_c_check_member ()
2612 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2614 printf %s "checking for $2.$3... " >&6; }
2615 if eval test \${$4+y}
2617 printf %s "(cached) " >&6
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2631 if ac_fn_c_try_compile "$LINENO"
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2641 if (sizeof ac_aggr.$3)
2647 if ac_fn_c_try_compile "$LINENO"
2653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2655 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2659 printf "%s\n" "$ac_res" >&6; }
2660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2662 } # ac_fn_c_check_member
2663 ac_configure_args_raw=
2668 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2670 as_fn_append ac_configure_args_raw " '$ac_arg'"
2673 case $ac_configure_args_raw in
2677 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2678 ac_unsafe_a="$ac_unsafe_z#~"
2679 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2680 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2683 cat >config.log <<_ACEOF
2684 This file contains any messages produced by compilers while
2685 running configure, to aid debugging if configure makes a mistake.
2687 It was created by curl $as_me -, which was
2688 generated by GNU Autoconf 2.71. Invocation command line was
2690 $ $0$ac_configure_args_raw
2700 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2701 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2702 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2703 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2704 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2706 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2707 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2709 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2710 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2711 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2712 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2713 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2714 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2715 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2723 case $as_dir in #(((
2726 *) as_dir=$as_dir/ ;;
2728 printf "%s\n" "PATH: $as_dir"
2744 # Keep a trace of the command line.
2745 # Strip out --no-create and --no-recursion so they do not pile up.
2746 # Strip out --silent because we don't want to record it for future runs.
2747 # Also quote any args containing shell meta-characters.
2748 # Make two passes to allow for proper duplicate-argument suppression.
2752 ac_must_keep_next=false
2758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2760 | -silent | --silent | --silen | --sile | --sil)
2763 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2766 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2768 as_fn_append ac_configure_args1 " '$ac_arg'"
2769 if test $ac_must_keep_next = true; then
2770 ac_must_keep_next=false # Got value, back to normal.
2773 *=* | --config-cache | -C | -disable-* | --disable-* \
2774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2776 | -with-* | --with-* | -without-* | --without-* | --x)
2777 case "$ac_configure_args0 " in
2778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2781 -* ) ac_must_keep_next=true ;;
2784 as_fn_append ac_configure_args " '$ac_arg'"
2789 { ac_configure_args0=; unset ac_configure_args0;}
2790 { ac_configure_args1=; unset ac_configure_args1;}
2792 # When interrupted or exit'd, cleanup temporary files, and complete
2793 # config.log. We remove comments because anyway the quotes in there
2794 # would cause problems or look ugly.
2795 # WARNING: Use '\'' to represent an apostrophe within the trap.
2796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2797 trap 'exit_status=$?
2800 # Save into config.log some information that might help in debugging.
2804 printf "%s\n" "## ---------------- ##
2805 ## Cache variables. ##
2806 ## ---------------- ##"
2808 # The following way of writing the cache mishandles newlines in values,
2810 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2811 eval ac_val=\$$ac_var
2815 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2816 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2819 _ | IFS | as_nl) ;; #(
2820 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2821 *) { eval $ac_var=; unset $ac_var;} ;;
2826 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2827 *${as_nl}ac_space=\ *)
2829 "s/'\''/'\''\\\\'\'''\''/g;
2830 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2833 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2840 printf "%s\n" "## ----------------- ##
2841 ## Output variables. ##
2842 ## ----------------- ##"
2844 for ac_var in $ac_subst_vars
2846 eval ac_val=\$$ac_var
2848 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2850 printf "%s\n" "$ac_var='\''$ac_val'\''"
2854 if test -n "$ac_subst_files"; then
2855 printf "%s\n" "## ------------------- ##
2856 ## File substitutions. ##
2857 ## ------------------- ##"
2859 for ac_var in $ac_subst_files
2861 eval ac_val=\$$ac_var
2863 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2865 printf "%s\n" "$ac_var='\''$ac_val'\''"
2870 if test -s confdefs.h; then
2871 printf "%s\n" "## ----------- ##
2878 test "$ac_signal" != 0 &&
2879 printf "%s\n" "$as_me: caught signal $ac_signal"
2880 printf "%s\n" "$as_me: exit $exit_status"
2882 rm -f core *.core core.conftest.* &&
2883 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2886 for ac_signal in 1 2 13 15; do
2887 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2891 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2892 rm -f -r conftest* confdefs.h
2894 printf "%s\n" "/* confdefs.h */" > confdefs.h
2896 # Predefined preprocessor variables.
2898 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2900 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2902 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2904 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2906 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2908 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2911 # Let the site file select an alternate cache file if it wants to.
2912 # Prefer an explicitly selected file to automatically selected ones.
2913 if test -n "$CONFIG_SITE"; then
2914 ac_site_files="$CONFIG_SITE"
2915 elif test "x$prefix" != xNONE; then
2916 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2918 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2921 for ac_site_file in $ac_site_files
2923 case $ac_site_file in #(
2927 ac_site_file=./$ac_site_file ;;
2929 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2931 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2932 sed 's/^/| /' "$ac_site_file" >&5
2934 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2935 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2936 as_fn_error $? "failed to load site script $ac_site_file
2937 See \`config.log' for more details" "$LINENO" 5; }
2941 if test -r "$cache_file"; then
2942 # Some versions of bash will fail to source /dev/null (special files
2943 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2944 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2946 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2948 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2949 *) . "./$cache_file";;
2953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2954 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2958 # Test code for whether the C compiler supports C89 (global declarations)
2959 ac_c_conftest_c89_globals='
2960 /* Does the compiler advertise C89 conformance?
2961 Do not test the value of __STDC__, because some compilers set it to 0
2962 while being otherwise adequately conformant. */
2963 #if !defined __STDC__
2964 # error "Compiler does not advertise C89 conformance"
2970 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2971 struct buf { int x; };
2972 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2973 static char *e (p, i)
2979 static char *f (char * (*g) (char **, int), char **p, ...)
2984 s = g (p, va_arg (v,int));
2989 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2990 function prototypes and stuff, but not \xHH hex character constants.
2991 These do not provoke an error unfortunately, instead are silently treated
2992 as an "x". The following induces an error, until -std is added to get
2993 proper ANSI mode. Curiously \x00 != x always comes out true, for an
2994 array size at least. It is necessary to write \x00 == 0 to get something
2995 that is true only with -std. */
2996 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2998 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2999 inside strings and character constants. */
3000 #define FOO(x) '\''x'\''
3001 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3003 int test (int i, double x);
3004 struct s1 {int (*f) (int a);};
3005 struct s2 {int (*f) (double a);};
3006 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3009 # Test code for whether the C compiler supports C89 (body of main).
3010 ac_c_conftest_c89_main='
3011 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3014 # Test code for whether the C compiler supports C99 (global declarations)
3015 ac_c_conftest_c99_globals='
3016 // Does the compiler advertise C99 conformance?
3017 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3018 # error "Compiler does not advertise C99 conformance"
3021 #include <stdbool.h>
3022 extern int puts (const char *);
3023 extern int printf (const char *, ...);
3024 extern int dprintf (int, const char *, ...);
3025 extern void *malloc (size_t);
3027 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3028 // dprintf is used instead of fprintf to avoid needing to declare
3030 #define debug(...) dprintf (2, __VA_ARGS__)
3031 #define showlist(...) puts (#__VA_ARGS__)
3032 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3034 test_varargs_macros (void)
3039 debug ("X = %d\n", x);
3040 showlist (The first, second, and third items.);
3041 report (x>y, "x is %d but y is %d", x, y);
3044 // Check long long types.
3045 #define BIG64 18446744073709551615ull
3046 #define BIG32 4294967295ul
3047 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3049 #error "your preprocessor is broken"
3053 #error "your preprocessor is broken"
3055 static long long int bignum = -9223372036854775807LL;
3056 static unsigned long long int ubignum = BIG64;
3058 struct incomplete_array
3066 const wchar_t *name;
3070 typedef const char *ccp;
3073 test_restrict (ccp restrict text)
3075 // See if C++-style comments work.
3076 // Iterate through items via the restricted pointer.
3077 // Also check for declarations in for loops.
3078 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3083 // Check varargs and va_copy.
3085 test_varargs (const char *format, ...)
3088 va_start (args, format);
3090 va_copy (args_copy, args);
3092 const char *str = "";
3100 case '\''s'\'': // string
3101 str = va_arg (args_copy, const char *);
3103 case '\''d'\'': // int
3104 number = va_arg (args_copy, int);
3106 case '\''f'\'': // float
3107 fnumber = va_arg (args_copy, double);
3116 return *str && number && fnumber;
3120 # Test code for whether the C compiler supports C99 (body of main).
3121 ac_c_conftest_c99_main='
3123 _Bool success = false;
3124 success |= (argc != 0);
3127 if (test_restrict ("String literal") == 0)
3129 char *restrict newvar = "Another string";
3132 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3133 test_varargs_macros ();
3135 // Check flexible array members.
3136 struct incomplete_array *ia =
3137 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3139 for (int i = 0; i < ia->datasize; ++i)
3140 ia->data[i] = i * 1.234;
3142 // Check named initializers.
3143 struct named_init ni = {
3145 .name = L"Test wide string",
3146 .average = 543.34343,
3151 int dynamic_array[ni.number];
3152 dynamic_array[0] = argv[0][0];
3153 dynamic_array[ni.number - 1] = 543;
3155 // work around unused variable warnings
3156 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3157 || dynamic_array[ni.number - 1] != 543);
3160 # Test code for whether the C compiler supports C11 (global declarations)
3161 ac_c_conftest_c11_globals='
3162 // Does the compiler advertise C11 conformance?
3163 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3164 # error "Compiler does not advertise C11 conformance"
3168 char _Alignas (double) aligned_as_double;
3169 char _Alignas (0) no_special_alignment;
3170 extern char aligned_as_int;
3171 char _Alignas (0) _Alignas (int) aligned_as_int;
3176 int_alignment = _Alignof (int),
3177 int_array_alignment = _Alignof (int[100]),
3178 char_alignment = _Alignof (char)
3180 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3183 int _Noreturn does_not_return (void) { for (;;) continue; }
3185 // Check _Static_assert.
3186 struct test_static_assert
3189 _Static_assert (sizeof (int) <= sizeof (long int),
3190 "_Static_assert does not work in struct");
3194 // Check UTF-8 literals.
3195 #define u8 syntax error!
3196 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3198 // Check duplicate typedefs.
3199 typedef long *long_ptr;
3200 typedef long int *long_ptr;
3201 typedef long_ptr long_ptr;
3203 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3207 struct { int i; int j; };
3208 struct { int k; long int l; } w;
3214 # Test code for whether the C compiler supports C11 (body of main).
3215 ac_c_conftest_c11_main='
3216 _Static_assert ((offsetof (struct anonymous, i)
3217 == offsetof (struct anonymous, w.k)),
3218 "Anonymous union alignment botch");
3224 # Test code for whether the C compiler supports C11 (complete).
3225 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3226 ${ac_c_conftest_c99_globals}
3227 ${ac_c_conftest_c11_globals}
3230 main (int argc, char **argv)
3233 ${ac_c_conftest_c89_main}
3234 ${ac_c_conftest_c99_main}
3235 ${ac_c_conftest_c11_main}
3240 # Test code for whether the C compiler supports C99 (complete).
3241 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3242 ${ac_c_conftest_c99_globals}
3245 main (int argc, char **argv)
3248 ${ac_c_conftest_c89_main}
3249 ${ac_c_conftest_c99_main}
3254 # Test code for whether the C compiler supports C89 (complete).
3255 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3258 main (int argc, char **argv)
3261 ${ac_c_conftest_c89_main}
3266 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3267 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3268 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3269 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3270 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3271 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3272 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3273 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3274 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3276 # Auxiliary files required by this configure script.
3277 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3279 # Locations in which to look for auxiliary files.
3280 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3282 # Search for a directory containing all of the required auxiliary files,
3283 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3284 # If we don't find one directory that contains all the files we need,
3285 # we report the set of missing files from the *first* directory in
3286 # $ac_aux_dir_candidates and give up.
3287 ac_missing_aux_files=""
3288 ac_first_candidate=:
3289 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $ac_aux_dir_candidates
3295 case $as_dir in #(((
3298 *) as_dir=$as_dir/ ;;
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3303 ac_aux_dir_found=yes
3305 for ac_aux in $ac_aux_files
3307 # As a special case, if "install-sh" is required, that requirement
3308 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3309 # and $ac_install_sh is set appropriately for whichever one is found.
3310 if test x"$ac_aux" = x"install-sh"
3312 if test -f "${as_dir}install-sh"; then
3313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3314 ac_install_sh="${as_dir}install-sh -c"
3315 elif test -f "${as_dir}install.sh"; then
3316 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3317 ac_install_sh="${as_dir}install.sh -c"
3318 elif test -f "${as_dir}shtool"; then
3319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3320 ac_install_sh="${as_dir}shtool install -c"
3323 if $ac_first_candidate; then
3324 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3330 if test -f "${as_dir}${ac_aux}"; then
3331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3334 if $ac_first_candidate; then
3335 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3342 if test "$ac_aux_dir_found" = yes; then
3343 ac_aux_dir="$as_dir"
3346 ac_first_candidate=false
3355 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3359 # These three variables are undocumented and unsupported,
3360 # and are intended to be withdrawn in a future Autoconf release.
3361 # They can cause serious problems if a builder's source tree is in a directory
3362 # whose full name contains unusual characters.
3363 if test -f "${ac_aux_dir}config.guess"; then
3364 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3366 if test -f "${ac_aux_dir}config.sub"; then
3367 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3369 if test -f "$ac_aux_dir/configure"; then
3370 ac_configure="$SHELL ${ac_aux_dir}configure"
3373 # Check that the precious variables saved in the cache have kept the same
3375 ac_cache_corrupted=false
3376 for ac_var in $ac_precious_vars; do
3377 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3378 eval ac_new_set=\$ac_env_${ac_var}_set
3379 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3380 eval ac_new_val=\$ac_env_${ac_var}_value
3381 case $ac_old_set,$ac_new_set in
3383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3384 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3385 ac_cache_corrupted=: ;;
3387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3388 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3389 ac_cache_corrupted=: ;;
3392 if test "x$ac_old_val" != "x$ac_new_val"; then
3393 # differences in whitespace do not lead to failure.
3394 ac_old_val_w=`echo x $ac_old_val`
3395 ac_new_val_w=`echo x $ac_new_val`
3396 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3398 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3399 ac_cache_corrupted=:
3401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3402 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3403 eval $ac_var=\$ac_old_val
3405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3406 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3408 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3411 # Pass precious variables to config.status.
3412 if test "$ac_new_set" = set; then
3414 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3415 *) ac_arg=$ac_var=$ac_new_val ;;
3417 case " $ac_configure_args " in
3418 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3419 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3423 if $ac_cache_corrupted; then
3424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3425 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3427 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3428 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3429 and start over" "$LINENO" 5
3431 ## -------------------- ##
3432 ## Main body of script. ##
3433 ## -------------------- ##
3436 ac_cpp='$CPP $CPPFLAGS'
3437 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3438 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3439 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3447 # using curl-override.m4
3453 ac_config_headers="$ac_config_headers lib/curl_config.h"
3457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3458 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3459 # Check whether --enable-maintainer-mode was given.
3460 if test ${enable_maintainer_mode+y}
3462 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3464 USE_MAINTAINER_MODE=no
3467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3468 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3469 if test $USE_MAINTAINER_MODE = yes; then
3470 MAINTAINER_MODE_TRUE=
3471 MAINTAINER_MODE_FALSE='#'
3473 MAINTAINER_MODE_TRUE='#'
3474 MAINTAINER_MODE_FALSE=
3477 MAINT=$MAINTAINER_MODE_TRUE
3480 # Check whether --enable-silent-rules was given.
3481 if test ${enable_silent_rules+y}
3483 enableval=$enable_silent_rules;
3486 case $enable_silent_rules in # (((
3487 yes) AM_DEFAULT_VERBOSITY=0;;
3488 no) AM_DEFAULT_VERBOSITY=1;;
3489 *) AM_DEFAULT_VERBOSITY=0;;
3491 am_make=${MAKE-make}
3492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3493 printf %s "checking whether $am_make supports nested variables... " >&6; }
3494 if test ${am_cv_make_support_nested_variables+y}
3496 printf %s "(cached) " >&6
3498 if printf "%s\n" 'TRUE=$(BAR$(V))
3504 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3505 am_cv_make_support_nested_variables=yes
3507 am_cv_make_support_nested_variables=no
3510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3511 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3512 if test $am_cv_make_support_nested_variables = yes; then
3514 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3516 AM_V=$AM_DEFAULT_VERBOSITY
3517 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3524 printf %s "checking whether to enable debug build options... " >&6; }
3525 OPT_DEBUG_BUILD="default"
3526 # Check whether --enable-debug was given.
3527 if test ${enable_debug+y}
3529 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3532 case "$OPT_DEBUG_BUILD" in
3542 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3547 printf "%s\n" "$want_debug" >&6; }
3550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3551 printf %s "checking whether to enable compiler optimizer... " >&6; }
3552 OPT_COMPILER_OPTIMIZE="default"
3553 # Check whether --enable-optimize was given.
3554 if test ${enable_optimize+y}
3556 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3559 case "$OPT_COMPILER_OPTIMIZE" in
3562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3563 printf "%s\n" "no" >&6; }
3566 if test "$want_debug" = "yes"; then
3567 want_optimize="assume_no"
3568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3569 printf "%s\n" "(assumed) no" >&6; }
3571 want_optimize="assume_yes"
3572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3573 printf "%s\n" "(assumed) yes" >&6; }
3578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3579 printf "%s\n" "yes" >&6; }
3584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3585 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3586 OPT_COMPILER_WARNINGS="default"
3587 # Check whether --enable-warnings was given.
3588 if test ${enable_warnings+y}
3590 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3593 case "$OPT_COMPILER_WARNINGS" in
3598 want_warnings="$want_debug"
3604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3605 printf "%s\n" "$want_warnings" >&6; }
3608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3609 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3610 OPT_COMPILER_WERROR="default"
3611 # Check whether --enable-werror was given.
3612 if test ${enable_werror+y}
3614 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3617 case "$OPT_COMPILER_WERROR" in
3628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3629 printf "%s\n" "$want_werror" >&6; }
3632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3633 printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3634 OPT_CURLDEBUG_BUILD="default"
3635 # Check whether --enable-curldebug was given.
3636 if test ${enable_curldebug+y}
3638 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3641 case "$OPT_CURLDEBUG_BUILD" in
3644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 printf "%s\n" "no" >&6; }
3648 if test "$want_debug" = "yes"; then
3649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3650 printf "%s\n" "(assumed) yes" >&6; }
3652 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 printf "%s\n" "no" >&6; }
3658 want_curldebug_assumed="yes"
3659 want_curldebug="$want_debug"
3662 want_curldebug="yes"
3664 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3667 printf "%s\n" "yes" >&6; }
3672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3673 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3674 OPT_SYMBOL_HIDING="default"
3675 # Check whether --enable-symbol-hiding was given.
3676 if test ${enable_symbol_hiding+y}
3678 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3681 case "$OPT_SYMBOL_HIDING" in
3683 want_symbol_hiding="no"
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3685 printf "%s\n" "no" >&6; }
3688 want_symbol_hiding="yes"
3689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3690 printf "%s\n" "yes" >&6; }
3693 want_symbol_hiding="yes"
3694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3695 printf "%s\n" "yes" >&6; }
3700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3701 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3703 # Check whether --enable-ares was given.
3704 if test ${enable_ares+y}
3706 enableval=$enable_ares; OPT_ARES=$enableval
3718 if test -n "$enableval" && test "$enableval" != "yes"; then
3719 want_ares_path="$enableval"
3723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3724 printf "%s\n" "$want_ares" >&6; }
3727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3728 printf %s "checking whether to disable dependency on -lrt... " >&6; }
3730 # Check whether --enable-rt was given.
3731 if test ${enable_rt+y}
3733 enableval=$enable_rt; OPT_RT=$enableval
3739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3740 printf "%s\n" "yes" >&6; }
3744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3745 printf "%s\n" "(assumed no)" >&6; }
3749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3750 printf "%s\n" "no" >&6; }
3755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3756 printf %s "checking whether to enable ECH support... " >&6; }
3758 # Check whether --enable-ech was given.
3759 if test ${enable_ech+y}
3761 enableval=$enable_ech; OPT_ECH=$enableval
3767 curl_ech_msg="no (--enable-ech)"
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3769 printf "%s\n" "no" >&6; }
3773 curl_ech_msg="no (--enable-ech)"
3774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3775 printf "%s\n" "no" >&6; }
3779 curl_ech_msg="enabled (--disable-ech)"
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3782 printf "%s\n" "yes" >&6; }
3788 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3791 if test -z "$xc_configure_preamble_result"; then
3792 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3796 # Check that 'PATH_SEPARATOR' has already been set.
3799 if test -z "$xc_PATH_SEPARATOR"; then
3800 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3802 if test -z "$PATH_SEPARATOR"; then
3803 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3806 printf %s "checking for path separator... " >&6; }
3807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3808 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3809 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3811 printf %s "checking for initial path separator... " >&6; }
3812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3813 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3814 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3819 # save the configure arguments
3821 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3824 if test -z "$SED"; then
3825 # Extract the first word of "sed", so it can be a program name with args.
3826 set dummy sed; ac_word=$2
3827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3828 printf %s "checking for $ac_word... " >&6; }
3829 if test ${ac_cv_path_SED+y}
3831 printf %s "(cached) " >&6
3835 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3839 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3840 for as_dir in $as_dummy
3843 case $as_dir in #(((
3846 *) as_dir=$as_dir/ ;;
3848 for ac_exec_ext in '' $ac_executable_extensions; do
3849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3850 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3858 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3863 if test -n "$SED"; then
3864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3865 printf "%s\n" "$SED" >&6; }
3867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3868 printf "%s\n" "no" >&6; }
3872 if test -z "$SED" || test "$SED" = "not_found"; then
3873 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3878 if test -z "$GREP"; then
3879 # Extract the first word of "grep", so it can be a program name with args.
3880 set dummy grep; ac_word=$2
3881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 printf %s "checking for $ac_word... " >&6; }
3883 if test ${ac_cv_path_GREP+y}
3885 printf %s "(cached) " >&6
3889 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3894 for as_dir in $as_dummy
3897 case $as_dir in #(((
3900 *) as_dir=$as_dir/ ;;
3902 for ac_exec_ext in '' $ac_executable_extensions; do
3903 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3904 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3905 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3912 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3916 GREP=$ac_cv_path_GREP
3917 if test -n "$GREP"; then
3918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3919 printf "%s\n" "$GREP" >&6; }
3921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 printf "%s\n" "no" >&6; }
3926 if test -z "$GREP" || test "$GREP" = "not_found"; then
3927 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3932 if test -z "$EGREP"; then
3933 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3935 printf %s "checking for egrep... " >&6; }
3937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3938 printf "%s\n" "$EGREP" >&6; }
3940 # Extract the first word of "egrep", so it can be a program name with args.
3941 set dummy egrep; ac_word=$2
3942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3943 printf %s "checking for $ac_word... " >&6; }
3944 if test ${ac_cv_path_EGREP+y}
3946 printf %s "(cached) " >&6
3950 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3954 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3955 for as_dir in $as_dummy
3958 case $as_dir in #(((
3961 *) as_dir=$as_dir/ ;;
3963 for ac_exec_ext in '' $ac_executable_extensions; do
3964 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3965 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3966 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3973 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3977 EGREP=$ac_cv_path_EGREP
3978 if test -n "$EGREP"; then
3979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3980 printf "%s\n" "$EGREP" >&6; }
3982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3983 printf "%s\n" "no" >&6; }
3989 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3990 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3994 if test -z "$AR"; then
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}ar; ac_word=$2
3998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3999 printf %s "checking for $ac_word... " >&6; }
4000 if test ${ac_cv_path_AR+y}
4002 printf %s "(cached) " >&6
4006 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4010 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4011 for as_dir in $as_dummy
4014 case $as_dir in #(((
4017 *) as_dir=$as_dir/ ;;
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4021 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4022 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4033 if test -n "$AR"; then
4034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4035 printf "%s\n" "$AR" >&6; }
4037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4038 printf "%s\n" "no" >&6; }
4043 if test -z "$ac_cv_path_AR"; then
4045 # Extract the first word of "ar", so it can be a program name with args.
4046 set dummy ar; ac_word=$2
4047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4048 printf %s "checking for $ac_word... " >&6; }
4049 if test ${ac_cv_path_ac_pt_AR+y}
4051 printf %s "(cached) " >&6
4055 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4060 for as_dir in $as_dummy
4063 case $as_dir in #(((
4066 *) as_dir=$as_dir/ ;;
4068 for ac_exec_ext in '' $ac_executable_extensions; do
4069 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4070 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4071 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4081 ac_pt_AR=$ac_cv_path_ac_pt_AR
4082 if test -n "$ac_pt_AR"; then
4083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4084 printf "%s\n" "$ac_pt_AR" >&6; }
4086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4087 printf "%s\n" "no" >&6; }
4090 if test "x$ac_pt_AR" = x; then
4093 case $cross_compiling:$ac_tool_warned in
4095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4096 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4097 ac_tool_warned=yes ;;
4105 if test -z "$AR" || test "$AR" = "not_found"; then
4106 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4113 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4115 xc_prog_cc_prev_IFS=$IFS
4116 xc_prog_cc_prev_LIBS=$LIBS
4117 xc_prog_cc_prev_CFLAGS=$CFLAGS
4118 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4119 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4124 for xc_word in $LIBS; do
4134 if test $xc_bad_var_libs = yes; then
4135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4136 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4138 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4142 xc_bad_var_ldflags=no
4143 for xc_word in $LDFLAGS; do
4146 xc_bad_var_ldflags=yes
4149 xc_bad_var_ldflags=yes
4152 xc_bad_var_ldflags=yes
4155 xc_bad_var_ldflags=yes
4159 if test $xc_bad_var_ldflags = yes; then
4160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4161 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4162 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4163 for xc_word in $LDFLAGS; do
4166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4167 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4171 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4175 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4179 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4186 xc_bad_var_cppflags=no
4187 for xc_word in $CPPFLAGS; do
4190 xc_bad_var_cppflags=yes
4192 -L* | --library-path=*)
4193 xc_bad_var_cppflags=yes
4196 xc_bad_var_cppflags=yes
4200 if test $xc_bad_var_cppflags = yes; then
4201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4202 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4203 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4204 for xc_word in $CPPFLAGS; do
4207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4208 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4210 -L* | --library-path=*)
4211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4212 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4216 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4223 xc_bad_var_cflags=no
4224 for xc_word in $CFLAGS; do
4227 xc_bad_var_cflags=yes
4230 xc_bad_var_cflags=yes
4233 xc_bad_var_cflags=yes
4236 xc_bad_var_cflags=yes
4238 -L* | --library-path=*)
4239 xc_bad_var_cflags=yes
4242 xc_bad_var_cflags=yes
4246 if test $xc_bad_var_cflags = yes; then
4247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4248 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4249 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4250 for xc_word in $CFLAGS; do
4253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4254 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4258 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4262 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4266 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4268 -L* | --library-path=*)
4269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4270 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4274 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4280 if test $xc_bad_var_libs = yes ||
4281 test $xc_bad_var_cflags = yes ||
4282 test $xc_bad_var_ldflags = yes ||
4283 test $xc_bad_var_cppflags = yes; then
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4285 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4290 # Find a good install program. We prefer a C program (faster),
4291 # so one script is as good as another. But avoid the broken or
4292 # incompatible versions:
4293 # SysV /etc/install, /usr/sbin/install
4294 # SunOS /usr/etc/install
4295 # IRIX /sbin/install
4297 # AmigaOS /C/install, which installs bootblocks on floppy discs
4298 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4299 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4300 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4301 # OS/2's system install, which has a completely different semantic
4302 # ./install, which can be erroneously created by make from ./install.sh.
4303 # Reject install programs that cannot install multiple files.
4304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4305 printf %s "checking for a BSD-compatible install... " >&6; }
4306 if test -z "$INSTALL"; then
4307 if test ${ac_cv_path_install+y}
4309 printf %s "(cached) " >&6
4311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4315 case $as_dir in #(((
4318 *) as_dir=$as_dir/ ;;
4320 # Account for fact that we put trailing slashes in our PATH walk.
4323 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4324 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4327 # OSF1 and SCO ODT 3.0 have their own names for install.
4328 # Don't use installbsd from OSF since it installs stuff as root
4330 for ac_prog in ginstall scoinst install; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4333 if test $ac_prog = install &&
4334 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4335 # AIX install. It has an incompatible calling convention.
4337 elif test $ac_prog = install &&
4338 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4339 # program-specific install script used by HP pwplus--don't use.
4342 rm -rf conftest.one conftest.two conftest.dir
4343 echo one > conftest.one
4344 echo two > conftest.two
4346 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4347 test -s conftest.one && test -s conftest.two &&
4348 test -s conftest.dir/conftest.one &&
4349 test -s conftest.dir/conftest.two
4351 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4364 rm -rf conftest.one conftest.two conftest.dir
4367 if test ${ac_cv_path_install+y}; then
4368 INSTALL=$ac_cv_path_install
4370 # As a last resort, use the slow shell script. Don't cache a
4371 # value for INSTALL within a source directory, because that will
4372 # break other packages using the cache if that directory is
4373 # removed, or if the value is a relative name.
4374 INSTALL=$ac_install_sh
4377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4378 printf "%s\n" "$INSTALL" >&6; }
4380 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4381 # It thinks the first close brace ends the variable substitution.
4382 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4384 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4386 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4398 # Expand $ac_aux_dir to an absolute path.
4399 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4402 ac_cpp='$CPP $CPPFLAGS'
4403 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4404 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4405 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4406 if test -n "$ac_tool_prefix"; then
4407 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4408 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4410 printf %s "checking for $ac_word... " >&6; }
4411 if test ${ac_cv_prog_CC+y}
4413 printf %s "(cached) " >&6
4415 if test -n "$CC"; then
4416 ac_cv_prog_CC="$CC" # Let the user override the test.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4422 case $as_dir in #(((
4425 *) as_dir=$as_dir/ ;;
4427 for ac_exec_ext in '' $ac_executable_extensions; do
4428 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4430 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4440 if test -n "$CC"; then
4441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4442 printf "%s\n" "$CC" >&6; }
4444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4445 printf "%s\n" "no" >&6; }
4450 if test -z "$ac_cv_prog_CC"; then
4452 # Extract the first word of "gcc", so it can be a program name with args.
4453 set dummy gcc; ac_word=$2
4454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4455 printf %s "checking for $ac_word... " >&6; }
4456 if test ${ac_cv_prog_ac_ct_CC+y}
4458 printf %s "(cached) " >&6
4460 if test -n "$ac_ct_CC"; then
4461 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4467 case $as_dir in #(((
4470 *) as_dir=$as_dir/ ;;
4472 for ac_exec_ext in '' $ac_executable_extensions; do
4473 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4474 ac_cv_prog_ac_ct_CC="gcc"
4475 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4484 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4485 if test -n "$ac_ct_CC"; then
4486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4487 printf "%s\n" "$ac_ct_CC" >&6; }
4489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4490 printf "%s\n" "no" >&6; }
4493 if test "x$ac_ct_CC" = x; then
4496 case $cross_compiling:$ac_tool_warned in
4498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4499 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4500 ac_tool_warned=yes ;;
4508 if test -z "$CC"; then
4509 if test -n "$ac_tool_prefix"; then
4510 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4511 set dummy ${ac_tool_prefix}cc; ac_word=$2
4512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 printf %s "checking for $ac_word... " >&6; }
4514 if test ${ac_cv_prog_CC+y}
4516 printf %s "(cached) " >&6
4518 if test -n "$CC"; then
4519 ac_cv_prog_CC="$CC" # Let the user override the test.
4521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4525 case $as_dir in #(((
4528 *) as_dir=$as_dir/ ;;
4530 for ac_exec_ext in '' $ac_executable_extensions; do
4531 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4532 ac_cv_prog_CC="${ac_tool_prefix}cc"
4533 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4543 if test -n "$CC"; then
4544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4545 printf "%s\n" "$CC" >&6; }
4547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 printf "%s\n" "no" >&6; }
4554 if test -z "$CC"; then
4555 # Extract the first word of "cc", so it can be a program name with args.
4556 set dummy cc; ac_word=$2
4557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4558 printf %s "checking for $ac_word... " >&6; }
4559 if test ${ac_cv_prog_CC+y}
4561 printf %s "(cached) " >&6
4563 if test -n "$CC"; then
4564 ac_cv_prog_CC="$CC" # Let the user override the test.
4567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 case $as_dir in #(((
4574 *) as_dir=$as_dir/ ;;
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4578 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4579 ac_prog_rejected=yes
4583 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4590 if test $ac_prog_rejected = yes; then
4591 # We found a bogon in the path, so make sure we never use it.
4592 set dummy $ac_cv_prog_CC
4594 if test $# != 0; then
4595 # We chose a different compiler from the bogus one.
4596 # However, it has the same basename, so the bogon will be chosen
4597 # first if we set CC to just the basename; use the full file name.
4599 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4605 if test -n "$CC"; then
4606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4607 printf "%s\n" "$CC" >&6; }
4609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 printf "%s\n" "no" >&6; }
4615 if test -z "$CC"; then
4616 if test -n "$ac_tool_prefix"; then
4617 for ac_prog in cl.exe
4619 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4620 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4622 printf %s "checking for $ac_word... " >&6; }
4623 if test ${ac_cv_prog_CC+y}
4625 printf %s "(cached) " >&6
4627 if test -n "$CC"; then
4628 ac_cv_prog_CC="$CC" # Let the user override the test.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 case $as_dir in #(((
4637 *) as_dir=$as_dir/ ;;
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4642 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4652 if test -n "$CC"; then
4653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4654 printf "%s\n" "$CC" >&6; }
4656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 printf "%s\n" "no" >&6; }
4661 test -n "$CC" && break
4664 if test -z "$CC"; then
4666 for ac_prog in cl.exe
4668 # Extract the first word of "$ac_prog", so it can be a program name with args.
4669 set dummy $ac_prog; ac_word=$2
4670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4671 printf %s "checking for $ac_word... " >&6; }
4672 if test ${ac_cv_prog_ac_ct_CC+y}
4674 printf %s "(cached) " >&6
4676 if test -n "$ac_ct_CC"; then
4677 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683 case $as_dir in #(((
4686 *) as_dir=$as_dir/ ;;
4688 for ac_exec_ext in '' $ac_executable_extensions; do
4689 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4690 ac_cv_prog_ac_ct_CC="$ac_prog"
4691 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4700 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701 if test -n "$ac_ct_CC"; then
4702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4703 printf "%s\n" "$ac_ct_CC" >&6; }
4705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4706 printf "%s\n" "no" >&6; }
4710 test -n "$ac_ct_CC" && break
4713 if test "x$ac_ct_CC" = x; then
4716 case $cross_compiling:$ac_tool_warned in
4718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4719 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720 ac_tool_warned=yes ;;
4727 if test -z "$CC"; then
4728 if test -n "$ac_tool_prefix"; then
4729 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4730 set dummy ${ac_tool_prefix}clang; ac_word=$2
4731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4732 printf %s "checking for $ac_word... " >&6; }
4733 if test ${ac_cv_prog_CC+y}
4735 printf %s "(cached) " >&6
4737 if test -n "$CC"; then
4738 ac_cv_prog_CC="$CC" # Let the user override the test.
4740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4744 case $as_dir in #(((
4747 *) as_dir=$as_dir/ ;;
4749 for ac_exec_ext in '' $ac_executable_extensions; do
4750 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4751 ac_cv_prog_CC="${ac_tool_prefix}clang"
4752 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4762 if test -n "$CC"; then
4763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4764 printf "%s\n" "$CC" >&6; }
4766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4767 printf "%s\n" "no" >&6; }
4772 if test -z "$ac_cv_prog_CC"; then
4774 # Extract the first word of "clang", so it can be a program name with args.
4775 set dummy clang; ac_word=$2
4776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4777 printf %s "checking for $ac_word... " >&6; }
4778 if test ${ac_cv_prog_ac_ct_CC+y}
4780 printf %s "(cached) " >&6
4782 if test -n "$ac_ct_CC"; then
4783 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4789 case $as_dir in #(((
4792 *) as_dir=$as_dir/ ;;
4794 for ac_exec_ext in '' $ac_executable_extensions; do
4795 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4796 ac_cv_prog_ac_ct_CC="clang"
4797 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4806 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4807 if test -n "$ac_ct_CC"; then
4808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4809 printf "%s\n" "$ac_ct_CC" >&6; }
4811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4812 printf "%s\n" "no" >&6; }
4815 if test "x$ac_ct_CC" = x; then
4818 case $cross_compiling:$ac_tool_warned in
4820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4821 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4822 ac_tool_warned=yes ;;
4833 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4834 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4835 as_fn_error $? "no acceptable C compiler found in \$PATH
4836 See \`config.log' for more details" "$LINENO" 5; }
4838 # Provide some information about the compiler.
4839 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4842 for ac_option in --version -v -V -qversion -version; do
4843 { { ac_try="$ac_compiler $ac_option >&5"
4845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4846 *) ac_try_echo=$ac_try;;
4848 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4849 printf "%s\n" "$ac_try_echo"; } >&5
4850 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4852 if test -s conftest.err; then
4854 ... rest of stderr output deleted ...
4855 10q' conftest.err >conftest.er1
4856 cat conftest.er1 >&5
4858 rm -f conftest.er1 conftest.err
4859 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4860 test $ac_status = 0; }
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4873 ac_clean_files_save=$ac_clean_files
4874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4875 # Try to create an executable without -o first, disregard a.out.
4876 # It will help us diagnose broken compilers, and finding out an intuition
4878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4879 printf %s "checking whether the C compiler works... " >&6; }
4880 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4882 # The possible output files:
4883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4886 for ac_file in $ac_files
4889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4895 if { { ac_try="$ac_link_default"
4897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4898 *) ac_try_echo=$ac_try;;
4900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4901 printf "%s\n" "$ac_try_echo"; } >&5
4902 (eval "$ac_link_default") 2>&5
4904 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4905 test $ac_status = 0; }
4907 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4908 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4909 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4910 # so that the user can short-circuit this test for compilers unknown to
4912 for ac_file in $ac_files ''
4914 test -f "$ac_file" || continue
4916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4919 # We found the default executable, but exeext='' is most
4923 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4925 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4927 # We set ac_cv_exeext here because the later test for it is not
4928 # safe: cross compilers may not add the suffix if given an `-o'
4929 # argument, so we may need to know it at that point already.
4930 # Even if this section looks crufty: it has the advantage of
4937 test "$ac_cv_exeext" = no && ac_cv_exeext=
4942 if test -z "$ac_file"
4944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4945 printf "%s\n" "no" >&6; }
4946 printf "%s\n" "$as_me: failed program was:" >&5
4947 sed 's/^/| /' conftest.$ac_ext >&5
4949 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4950 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4951 as_fn_error 77 "C compiler cannot create executables
4952 See \`config.log' for more details" "$LINENO" 5; }
4954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4955 printf "%s\n" "yes" >&6; }
4957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4958 printf %s "checking for C compiler default output file name... " >&6; }
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4960 printf "%s\n" "$ac_file" >&6; }
4961 ac_exeext=$ac_cv_exeext
4963 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4964 ac_clean_files=$ac_clean_files_save
4965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4966 printf %s "checking for suffix of executables... " >&6; }
4967 if { { ac_try="$ac_link"
4969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4970 *) ac_try_echo=$ac_try;;
4972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4973 printf "%s\n" "$ac_try_echo"; } >&5
4974 (eval "$ac_link") 2>&5
4976 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4977 test $ac_status = 0; }
4979 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4980 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4981 # work properly (i.e., refer to `conftest.exe'), while it won't with
4983 for ac_file in conftest.exe conftest conftest.*; do
4984 test -f "$ac_file" || continue
4986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4987 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4993 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4994 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4995 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4996 See \`config.log' for more details" "$LINENO" 5; }
4998 rm -f conftest conftest$ac_cv_exeext
4999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5000 printf "%s\n" "$ac_cv_exeext" >&6; }
5002 rm -f conftest.$ac_ext
5003 EXEEXT=$ac_cv_exeext
5005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006 /* end confdefs.h. */
5010 FILE *f = fopen ("conftest.out", "w");
5011 return ferror (f) || fclose (f) != 0;
5017 ac_clean_files="$ac_clean_files conftest.out"
5018 # Check that the compiler produces executables we can run. If not, either
5019 # the compiler is broken, or we cross compile.
5020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5021 printf %s "checking whether we are cross compiling... " >&6; }
5022 if test "$cross_compiling" != yes; then
5023 { { ac_try="$ac_link"
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5029 printf "%s\n" "$ac_try_echo"; } >&5
5030 (eval "$ac_link") 2>&5
5032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5033 test $ac_status = 0; }
5034 if { ac_try='./conftest$ac_cv_exeext'
5035 { { case "(($ac_try" in
5036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5037 *) ac_try_echo=$ac_try;;
5039 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5040 printf "%s\n" "$ac_try_echo"; } >&5
5041 (eval "$ac_try") 2>&5
5043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5044 test $ac_status = 0; }; }; then
5047 if test "$cross_compiling" = maybe; then
5050 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5051 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5052 as_fn_error 77 "cannot run C compiled programs.
5053 If you meant to cross compile, use \`--host'.
5054 See \`config.log' for more details" "$LINENO" 5; }
5058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5059 printf "%s\n" "$cross_compiling" >&6; }
5061 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5062 ac_clean_files=$ac_clean_files_save
5063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5064 printf %s "checking for suffix of object files... " >&6; }
5065 if test ${ac_cv_objext+y}
5067 printf %s "(cached) " >&6
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5070 /* end confdefs.h. */
5079 rm -f conftest.o conftest.obj
5080 if { { ac_try="$ac_compile"
5082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5083 *) ac_try_echo=$ac_try;;
5085 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5086 printf "%s\n" "$ac_try_echo"; } >&5
5087 (eval "$ac_compile") 2>&5
5089 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5090 test $ac_status = 0; }
5092 for ac_file in conftest.o conftest.obj conftest.*; do
5093 test -f "$ac_file" || continue;
5095 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5096 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5101 printf "%s\n" "$as_me: failed program was:" >&5
5102 sed 's/^/| /' conftest.$ac_ext >&5
5104 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5106 as_fn_error $? "cannot compute suffix of object files: cannot compile
5107 See \`config.log' for more details" "$LINENO" 5; }
5109 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5112 printf "%s\n" "$ac_cv_objext" >&6; }
5113 OBJEXT=$ac_cv_objext
5115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5116 printf %s "checking whether the compiler supports GNU C... " >&6; }
5117 if test ${ac_cv_c_compiler_gnu+y}
5119 printf %s "(cached) " >&6
5121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5122 /* end confdefs.h. */
5134 if ac_fn_c_try_compile "$LINENO"
5140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5141 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5145 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5148 if test $ac_compiler_gnu = yes; then
5153 ac_test_CFLAGS=${CFLAGS+y}
5154 ac_save_CFLAGS=$CFLAGS
5155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5156 printf %s "checking whether $CC accepts -g... " >&6; }
5157 if test ${ac_cv_prog_cc_g+y}
5159 printf %s "(cached) " >&6
5161 ac_save_c_werror_flag=$ac_c_werror_flag
5162 ac_c_werror_flag=yes
5165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5166 /* end confdefs.h. */
5175 if ac_fn_c_try_compile "$LINENO"
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5190 if ac_fn_c_try_compile "$LINENO"
5194 ac_c_werror_flag=$ac_save_c_werror_flag
5196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5197 /* end confdefs.h. */
5206 if ac_fn_c_try_compile "$LINENO"
5210 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5214 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5215 ac_c_werror_flag=$ac_save_c_werror_flag
5217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5218 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5219 if test $ac_test_CFLAGS; then
5220 CFLAGS=$ac_save_CFLAGS
5221 elif test $ac_cv_prog_cc_g = yes; then
5222 if test "$GCC" = yes; then
5228 if test "$GCC" = yes; then
5235 if test x$ac_prog_cc_stdc = xno
5237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5238 printf %s "checking for $CC option to enable C11 features... " >&6; }
5239 if test ${ac_cv_prog_cc_c11+y}
5241 printf %s "(cached) " >&6
5243 ac_cv_prog_cc_c11=no
5245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5246 /* end confdefs.h. */
5247 $ac_c_conftest_c11_program
5249 for ac_arg in '' -std=gnu11
5251 CC="$ac_save_CC $ac_arg"
5252 if ac_fn_c_try_compile "$LINENO"
5254 ac_cv_prog_cc_c11=$ac_arg
5256 rm -f core conftest.err conftest.$ac_objext conftest.beam
5257 test "x$ac_cv_prog_cc_c11" != "xno" && break
5259 rm -f conftest.$ac_ext
5263 if test "x$ac_cv_prog_cc_c11" = xno
5265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5266 printf "%s\n" "unsupported" >&6; }
5268 if test "x$ac_cv_prog_cc_c11" = x
5270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5271 printf "%s\n" "none needed" >&6; }
5273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5274 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5275 CC="$CC $ac_cv_prog_cc_c11"
5277 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5281 if test x$ac_prog_cc_stdc = xno
5283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5284 printf %s "checking for $CC option to enable C99 features... " >&6; }
5285 if test ${ac_cv_prog_cc_c99+y}
5287 printf %s "(cached) " >&6
5289 ac_cv_prog_cc_c99=no
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5293 $ac_c_conftest_c99_program
5295 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5297 CC="$ac_save_CC $ac_arg"
5298 if ac_fn_c_try_compile "$LINENO"
5300 ac_cv_prog_cc_c99=$ac_arg
5302 rm -f core conftest.err conftest.$ac_objext conftest.beam
5303 test "x$ac_cv_prog_cc_c99" != "xno" && break
5305 rm -f conftest.$ac_ext
5309 if test "x$ac_cv_prog_cc_c99" = xno
5311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5312 printf "%s\n" "unsupported" >&6; }
5314 if test "x$ac_cv_prog_cc_c99" = x
5316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5317 printf "%s\n" "none needed" >&6; }
5319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5320 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5321 CC="$CC $ac_cv_prog_cc_c99"
5323 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5327 if test x$ac_prog_cc_stdc = xno
5329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5330 printf %s "checking for $CC option to enable C89 features... " >&6; }
5331 if test ${ac_cv_prog_cc_c89+y}
5333 printf %s "(cached) " >&6
5335 ac_cv_prog_cc_c89=no
5337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5339 $ac_c_conftest_c89_program
5341 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5343 CC="$ac_save_CC $ac_arg"
5344 if ac_fn_c_try_compile "$LINENO"
5346 ac_cv_prog_cc_c89=$ac_arg
5348 rm -f core conftest.err conftest.$ac_objext conftest.beam
5349 test "x$ac_cv_prog_cc_c89" != "xno" && break
5351 rm -f conftest.$ac_ext
5355 if test "x$ac_cv_prog_cc_c89" = xno
5357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5358 printf "%s\n" "unsupported" >&6; }
5360 if test "x$ac_cv_prog_cc_c89" = x
5362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5363 printf "%s\n" "none needed" >&6; }
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5366 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5367 CC="$CC $ac_cv_prog_cc_c89"
5369 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5375 ac_cpp='$CPP $CPPFLAGS'
5376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5382 ac_cpp='$CPP $CPPFLAGS'
5383 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5384 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5385 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5387 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5388 if test ${am_cv_prog_cc_c_o+y}
5390 printf %s "(cached) " >&6
5392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5393 /* end confdefs.h. */
5402 # Make sure it works both with $CC and with simple cc.
5403 # Following AC_PROG_CC_C_O, we do the test twice because some
5404 # compilers refuse to overwrite an existing .o file with -o,
5405 # though they will create one.
5406 am_cv_prog_cc_c_o=yes
5408 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5409 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5412 (exit $ac_status); } \
5413 && test -f conftest2.$ac_objext; then
5416 am_cv_prog_cc_c_o=no
5420 rm -f core conftest*
5423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5424 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5425 if test "$am_cv_prog_cc_c_o" != yes; then
5426 # Losing compiler, so override with the script.
5427 # FIXME: It is wrong to rewrite CC.
5428 # But if we don't then we get into trouble of one sort or another.
5429 # A longer-term fix would be to have automake use am__CC in this case,
5430 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5431 CC="$am_aux_dir/compile $CC"
5434 ac_cpp='$CPP $CPPFLAGS'
5435 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5442 ac_cpp='$CPP $CPPFLAGS'
5443 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5444 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5445 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5447 printf %s "checking how to run the C preprocessor... " >&6; }
5448 # On Suns, sometimes $CPP names a directory.
5449 if test -n "$CPP" && test -d "$CPP"; then
5452 if test -z "$CPP"; then
5453 if test ${ac_cv_prog_CPP+y}
5455 printf %s "(cached) " >&6
5457 # Double quotes because $CC needs to be expanded
5458 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5461 for ac_c_preproc_warn_flag in '' yes
5463 # Use a header file that comes with gcc, so configuring glibc
5464 # with a fresh cross-compiler works.
5465 # On the NeXT, cc -E runs the code through the compiler's parser,
5466 # not just through cpp. "Syntax error" is here to catch this case.
5467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5468 /* end confdefs.h. */
5472 if ac_fn_c_try_cpp "$LINENO"
5476 # Broken: fails on valid input.
5479 rm -f conftest.err conftest.i conftest.$ac_ext
5481 # OK, works on sane cases. Now check whether nonexistent headers
5482 # can be detected and how.
5483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5484 /* end confdefs.h. */
5485 #include <ac_nonexistent.h>
5487 if ac_fn_c_try_cpp "$LINENO"
5489 # Broken: success on invalid input.
5492 # Passes both tests.
5496 rm -f conftest.err conftest.i conftest.$ac_ext
5499 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5500 rm -f conftest.i conftest.err conftest.$ac_ext
5514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5515 printf "%s\n" "$CPP" >&6; }
5517 for ac_c_preproc_warn_flag in '' yes
5519 # Use a header file that comes with gcc, so configuring glibc
5520 # with a fresh cross-compiler works.
5521 # On the NeXT, cc -E runs the code through the compiler's parser,
5522 # not just through cpp. "Syntax error" is here to catch this case.
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5528 if ac_fn_c_try_cpp "$LINENO"
5532 # Broken: fails on valid input.
5535 rm -f conftest.err conftest.i conftest.$ac_ext
5537 # OK, works on sane cases. Now check whether nonexistent headers
5538 # can be detected and how.
5539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5540 /* end confdefs.h. */
5541 #include <ac_nonexistent.h>
5543 if ac_fn_c_try_cpp "$LINENO"
5545 # Broken: success on invalid input.
5548 # Passes both tests.
5552 rm -f conftest.err conftest.i conftest.$ac_ext
5555 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5556 rm -f conftest.i conftest.err conftest.$ac_ext
5561 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5562 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5563 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5564 See \`config.log' for more details" "$LINENO" 5; }
5568 ac_cpp='$CPP $CPPFLAGS'
5569 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5570 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5571 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5574 IFS=$xc_prog_cc_prev_IFS
5575 LIBS=$xc_prog_cc_prev_LIBS
5576 CFLAGS=$xc_prog_cc_prev_CFLAGS
5577 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5578 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5586 printf %s "checking for a sed that does not truncate output... " >&6; }
5587 if test ${ac_cv_path_SED+y}
5589 printf %s "(cached) " >&6
5591 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5592 for ac_i in 1 2 3 4 5 6 7; do
5593 ac_script="$ac_script$as_nl$ac_script"
5595 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5596 { ac_script=; unset ac_script;}
5597 if test -z "$SED"; then
5598 ac_path_SED_found=false
5599 # Loop through the user's path and test for each of PROGNAME-LIST
5600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5604 case $as_dir in #(((
5607 *) as_dir=$as_dir/ ;;
5609 for ac_prog in sed gsed
5611 for ac_exec_ext in '' $ac_executable_extensions; do
5612 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5613 as_fn_executable_p "$ac_path_SED" || continue
5614 # Check for GNU ac_path_SED and select it if it is found.
5615 # Check for GNU $ac_path_SED
5616 case `"$ac_path_SED" --version 2>&1` in
5618 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5621 printf %s 0123456789 >"conftest.in"
5624 cat "conftest.in" "conftest.in" >"conftest.tmp"
5625 mv "conftest.tmp" "conftest.in"
5626 cp "conftest.in" "conftest.nl"
5627 printf "%s\n" '' >> "conftest.nl"
5628 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5629 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5630 as_fn_arith $ac_count + 1 && ac_count=$as_val
5631 if test $ac_count -gt ${ac_path_SED_max-0}; then
5632 # Best one so far, save it but keep looking for a better one
5633 ac_cv_path_SED="$ac_path_SED"
5634 ac_path_SED_max=$ac_count
5636 # 10*(2^10) chars as input seems more than enough
5637 test $ac_count -gt 10 && break
5639 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5642 $ac_path_SED_found && break 3
5647 if test -z "$ac_cv_path_SED"; then
5648 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5656 printf "%s\n" "$ac_cv_path_SED" >&6; }
5657 SED="$ac_cv_path_SED"
5663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5664 printf %s "checking for code coverage support... " >&6; }
5666 curl_coverage_msg="disabled"
5668 # Check whether --enable-code-coverage was given.
5669 if test ${enable_code_coverage+y}
5671 enableval=$enable_code_coverage; coverage="$enableval"
5675 if test "$GCC" != "yes"
5679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5680 printf "%s\n" "$coverage" >&6; }
5682 if test "x$coverage" = "xyes"; then
5683 curl_coverage_msg="enabled"
5685 if test -n "$ac_tool_prefix"; then
5686 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5687 set dummy ${ac_tool_prefix}gcov; 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_GCOV+y}
5692 printf %s "(cached) " >&6
5694 if test -n "$GCOV"; then
5695 ac_cv_prog_GCOV="$GCOV" # 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_GCOV="${ac_tool_prefix}gcov"
5709 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5718 GCOV=$ac_cv_prog_GCOV
5719 if test -n "$GCOV"; then
5720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5721 printf "%s\n" "$GCOV" >&6; }
5723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5724 printf "%s\n" "no" >&6; }
5729 if test -z "$ac_cv_prog_GCOV"; then
5731 # Extract the first word of "gcov", so it can be a program name with args.
5732 set dummy gcov; ac_word=$2
5733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5734 printf %s "checking for $ac_word... " >&6; }
5735 if test ${ac_cv_prog_ac_ct_GCOV+y}
5737 printf %s "(cached) " >&6
5739 if test -n "$ac_ct_GCOV"; then
5740 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 case $as_dir in #(((
5749 *) as_dir=$as_dir/ ;;
5751 for ac_exec_ext in '' $ac_executable_extensions; do
5752 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5753 ac_cv_prog_ac_ct_GCOV="gcov"
5754 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5763 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5764 if test -n "$ac_ct_GCOV"; then
5765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5766 printf "%s\n" "$ac_ct_GCOV" >&6; }
5768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5769 printf "%s\n" "no" >&6; }
5772 if test "x$ac_ct_GCOV" = x; then
5775 case $cross_compiling:$ac_tool_warned in
5777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5778 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5779 ac_tool_warned=yes ;;
5784 GCOV="$ac_cv_prog_GCOV"
5787 if test -z "$GCOV"; then
5788 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5790 # Extract the first word of "lcov", so it can be a program name with args.
5791 set dummy lcov; ac_word=$2
5792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5793 printf %s "checking for $ac_word... " >&6; }
5794 if test ${ac_cv_prog_LCOV+y}
5796 printf %s "(cached) " >&6
5798 if test -n "$LCOV"; then
5799 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5805 case $as_dir in #(((
5808 *) as_dir=$as_dir/ ;;
5810 for ac_exec_ext in '' $ac_executable_extensions; do
5811 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5812 ac_cv_prog_LCOV="lcov"
5813 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5822 LCOV=$ac_cv_prog_LCOV
5823 if test -n "$LCOV"; then
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5825 printf "%s\n" "$LCOV" >&6; }
5827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5828 printf "%s\n" "no" >&6; }
5832 if test -z "$LCOV"; then
5833 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5836 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5837 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5842 am__api_version='1.16'
5844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5845 printf %s "checking whether build environment is sane... " >&6; }
5846 # Reject unsafe characters in $srcdir or the absolute working directory
5847 # name. Accept space and tab only in the latter.
5851 *[\\\"\#\$\&\'\`$am_lf]*)
5852 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5855 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5856 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5859 # Do 'set' in a subshell so we don't clobber the current shell's
5860 # arguments. Must try -L first in case configure is actually a
5861 # symlink; some systems play weird games with the mod time of symlinks
5862 # (eg FreeBSD returns the mod time of the symlink's containing
5866 for am_try in 1 2; do
5867 echo "timestamp, slept: $am_has_slept" > conftest.file
5868 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5869 if test "$*" = "X"; then
5871 set X `ls -t "$srcdir/configure" conftest.file`
5873 if test "$*" != "X $srcdir/configure conftest.file" \
5874 && test "$*" != "X conftest.file $srcdir/configure"; then
5876 # If neither matched, then we have a broken ls. This can happen
5877 # if, for instance, CONFIG_SHELL is bash and it inherits a
5878 # broken ls alias from the environment. This has actually
5879 # happened. Such a system could not be considered "sane".
5880 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5881 alias in your environment" "$LINENO" 5
5883 if test "$2" = conftest.file || test $am_try -eq 2; then
5890 test "$2" = conftest.file
5896 as_fn_error $? "newly created file is older than distributed files!
5897 Check your system clock" "$LINENO" 5
5899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5900 printf "%s\n" "yes" >&6; }
5901 # If we didn't sleep, we still need to ensure time stamps of config.status and
5902 # generated files are strictly newer.
5904 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5911 test "$program_prefix" != NONE &&
5912 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5913 # Use a double $ so make ignores it.
5914 test "$program_suffix" != NONE &&
5915 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5916 # Double any \ or $.
5917 # By default was `s,x,x', remove it if useless.
5918 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5919 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
5922 if test x"${MISSING+set}" != xset; then
5923 MISSING="\${SHELL} '$am_aux_dir/missing'"
5925 # Use eval to expand $SHELL
5926 if eval "$MISSING --is-lightweight"; then
5927 am_missing_run="$MISSING "
5930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5931 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5934 if test x"${install_sh+set}" != xset; then
5937 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5939 install_sh="\${SHELL} $am_aux_dir/install-sh"
5943 # Installed binaries are usually stripped using 'strip' when the user
5944 # run "make install-strip". However 'strip' might not be the right
5945 # tool to use in cross-compilation environments, therefore Automake
5946 # will honor the 'STRIP' environment variable to overrule this program.
5947 if test "$cross_compiling" != no; then
5948 if test -n "$ac_tool_prefix"; then
5949 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5950 set dummy ${ac_tool_prefix}strip; ac_word=$2
5951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 printf %s "checking for $ac_word... " >&6; }
5953 if test ${ac_cv_prog_STRIP+y}
5955 printf %s "(cached) " >&6
5957 if test -n "$STRIP"; then
5958 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5964 case $as_dir in #(((
5967 *) as_dir=$as_dir/ ;;
5969 for ac_exec_ext in '' $ac_executable_extensions; do
5970 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5971 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5972 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5981 STRIP=$ac_cv_prog_STRIP
5982 if test -n "$STRIP"; then
5983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5984 printf "%s\n" "$STRIP" >&6; }
5986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5987 printf "%s\n" "no" >&6; }
5992 if test -z "$ac_cv_prog_STRIP"; then
5994 # Extract the first word of "strip", so it can be a program name with args.
5995 set dummy strip; ac_word=$2
5996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5997 printf %s "checking for $ac_word... " >&6; }
5998 if test ${ac_cv_prog_ac_ct_STRIP+y}
6000 printf %s "(cached) " >&6
6002 if test -n "$ac_ct_STRIP"; then
6003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6009 case $as_dir in #(((
6012 *) as_dir=$as_dir/ ;;
6014 for ac_exec_ext in '' $ac_executable_extensions; do
6015 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6016 ac_cv_prog_ac_ct_STRIP="strip"
6017 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6026 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6027 if test -n "$ac_ct_STRIP"; then
6028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6029 printf "%s\n" "$ac_ct_STRIP" >&6; }
6031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6032 printf "%s\n" "no" >&6; }
6035 if test "x$ac_ct_STRIP" = x; then
6038 case $cross_compiling:$ac_tool_warned in
6040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6041 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6042 ac_tool_warned=yes ;;
6047 STRIP="$ac_cv_prog_STRIP"
6051 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6055 printf %s "checking for a race-free mkdir -p... " >&6; }
6056 if test -z "$MKDIR_P"; then
6057 if test ${ac_cv_path_mkdir+y}
6059 printf %s "(cached) " >&6
6061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6065 case $as_dir in #(((
6068 *) as_dir=$as_dir/ ;;
6070 for ac_prog in mkdir gmkdir; do
6071 for ac_exec_ext in '' $ac_executable_extensions; do
6072 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6073 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6074 'mkdir ('*'coreutils) '* | \
6076 'mkdir (fileutils) '4.1*)
6077 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6087 test -d ./--version && rmdir ./--version
6088 if test ${ac_cv_path_mkdir+y}; then
6089 MKDIR_P="$ac_cv_path_mkdir -p"
6091 # As a last resort, use the slow shell script. Don't cache a
6092 # value for MKDIR_P within a source directory, because that will
6093 # break other packages using the cache if that directory is
6094 # removed, or if the value is a relative name.
6095 MKDIR_P="$ac_install_sh -d"
6098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6099 printf "%s\n" "$MKDIR_P" >&6; }
6101 for ac_prog in gawk mawk nawk awk
6103 # Extract the first word of "$ac_prog", so it can be a program name with args.
6104 set dummy $ac_prog; ac_word=$2
6105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6106 printf %s "checking for $ac_word... " >&6; }
6107 if test ${ac_cv_prog_AWK+y}
6109 printf %s "(cached) " >&6
6111 if test -n "$AWK"; then
6112 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6118 case $as_dir in #(((
6121 *) as_dir=$as_dir/ ;;
6123 for ac_exec_ext in '' $ac_executable_extensions; do
6124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6125 ac_cv_prog_AWK="$ac_prog"
6126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6136 if test -n "$AWK"; then
6137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6138 printf "%s\n" "$AWK" >&6; }
6140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6141 printf "%s\n" "no" >&6; }
6145 test -n "$AWK" && break
6148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6149 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6151 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6152 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6154 printf %s "(cached) " >&6
6156 cat >conftest.make <<\_ACEOF
6159 @echo '@@@%%%=$(MAKE)=@@@%%%'
6161 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6162 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6164 eval ac_cv_prog_make_${ac_make}_set=yes;;
6166 eval ac_cv_prog_make_${ac_make}_set=no;;
6170 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6172 printf "%s\n" "yes" >&6; }
6175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6176 printf "%s\n" "no" >&6; }
6177 SET_MAKE="MAKE=${MAKE-make}"
6180 rm -rf .tst 2>/dev/null
6181 mkdir .tst 2>/dev/null
6182 if test -d .tst; then
6187 rmdir .tst 2>/dev/null
6189 DEPDIR="${am__leading_dot}deps"
6191 ac_config_commands="$ac_config_commands depfiles"
6193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6194 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6195 cat > confinc.mk << 'END'
6197 @echo this is the am__doit target >confinc.out
6202 # BSD make does it like this.
6203 echo '.include "confinc.mk" # ignored' > confmf.BSD
6204 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6205 echo 'include confinc.mk # ignored' > confmf.GNU
6207 for s in GNU BSD; do
6208 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6209 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }
6213 case $?:`cat confinc.out 2>/dev/null` in #(
6214 '0:this is the am__doit target') :
6217 am__include='.include' am__quote='"' ;; #(
6219 am__include='include' am__quote='' ;;
6224 if test "$am__include" != "#"; then
6225 _am_result="yes ($s style)"
6229 rm -f confinc.* confmf.*
6230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6231 printf "%s\n" "${_am_result}" >&6; }
6233 # Check whether --enable-dependency-tracking was given.
6234 if test ${enable_dependency_tracking+y}
6236 enableval=$enable_dependency_tracking;
6239 if test "x$enable_dependency_tracking" != xno; then
6240 am_depcomp="$ac_aux_dir/depcomp"
6244 if test "x$enable_dependency_tracking" != xno; then
6253 ## --------------------------------------- ##
6254 ## Start of automake initialization code ##
6255 ## --------------------------------------- ##
6257 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6258 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6259 # is not polluted with repeated "-I."
6260 am__isrc=' -I$(srcdir)'
6261 # test to see if srcdir already configured
6262 if test -f $srcdir/config.status; then
6263 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6267 # test whether we have cygpath
6268 if test -z "$CYGPATH_W"; then
6269 if (cygpath --version) >/dev/null 2>/dev/null; then
6270 CYGPATH_W='cygpath -w'
6277 # Define the identity of the package.
6282 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6285 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6287 # Some tools Automake needs.
6289 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6292 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6295 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6298 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6301 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6303 # For better backward compatibility. To be removed once Automake 1.9.x
6304 # dies out for good. For more background, see:
6305 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6306 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6307 mkdir_p='$(MKDIR_P)'
6309 # We need awk for the "check" target (and possibly the TAP driver). The
6310 # system "awk" is bad on some platforms.
6311 # Always define AMTAR for backward compatibility. Yes, it's still used
6312 # in the wild :-( We should find a proper way to deprecate it ...
6316 # We'll loop over all known methods to create a tar archive until one works.
6317 _am_tools='gnutar pax cpio none'
6319 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6325 depcc="$CC" am_compiler_list=
6327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6328 printf %s "checking dependency style of $depcc... " >&6; }
6329 if test ${am_cv_CC_dependencies_compiler_type+y}
6331 printf %s "(cached) " >&6
6333 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6334 # We make a subdir and do the tests there. Otherwise we can end up
6335 # making bogus files that we don't know about and never remove. For
6336 # instance it was reported that on HP-UX the gcc test will end up
6337 # making a dummy file named 'D' -- because '-MD' means "put the output
6341 # Copy depcomp to subdir because otherwise we won't find it if we're
6342 # using a relative directory.
6343 cp "$am_depcomp" conftest.dir
6345 # We will build objects and dependencies in a subdirectory because
6346 # it helps to detect inapplicable dependency modes. For instance
6347 # both Tru64's cc and ICC support -MD to output dependencies as a
6348 # side effect of compilation, but ICC will put the dependencies in
6349 # the current directory while Tru64 will put them in the object
6353 am_cv_CC_dependencies_compiler_type=none
6354 if test "$am_compiler_list" = ""; then
6355 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6358 case " $depcc " in #(
6359 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6362 for depmode in $am_compiler_list; do
6363 # Setup a source with many dependencies, because some compilers
6364 # like to wrap large dependency lists on column 80 (with \), and
6365 # we should not choose a depcomp mode which is confused by this.
6367 # We need to recreate these files for each test, as the compiler may
6368 # overwrite some of them when testing with obscure command lines.
6369 # This happens at least with the AIX C compiler.
6371 for i in 1 2 3 4 5 6; do
6372 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6373 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6374 # Solaris 10 /bin/sh.
6375 echo '/* dummy */' > sub/conftst$i.h
6377 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6379 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6380 # mode. It turns out that the SunPro C++ compiler does not properly
6381 # handle '-M -o', and we need to detect this. Also, some Intel
6382 # versions had trouble with output in subdirs.
6383 am__obj=sub/conftest.${OBJEXT-o}
6384 am__minus_obj="-o $am__obj"
6387 # This depmode causes a compiler race in universal mode.
6388 test "$am__universal" = false || continue
6391 # After this tag, mechanisms are not by side-effect, so they'll
6392 # only be used when explicitly requested.
6393 if test "x$enable_dependency_tracking" = xyes; then
6399 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6400 # This compiler won't grok '-c -o', but also, the minuso test has
6401 # not run yet. These depmodes are late enough in the game, and
6402 # so weak that their functioning should not be impacted.
6403 am__obj=conftest.${OBJEXT-o}
6408 if depmode=$depmode \
6409 source=sub/conftest.c object=$am__obj \
6410 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6411 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6412 >/dev/null 2>conftest.err &&
6413 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6414 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6415 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6416 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6417 # icc doesn't choke on unknown options, it will just issue warnings
6418 # or remarks (even with -Werror). So we grep stderr for any message
6419 # that says an option was ignored or not supported.
6420 # When given -MP, icc 7.0 and 7.1 complain thusly:
6421 # icc: Command line warning: ignoring option '-M'; no argument required
6422 # The diagnosis changed in icc 8.0:
6423 # icc: Command line remark: option '-MP' not supported
6424 if (grep 'ignoring option' conftest.err ||
6425 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6426 am_cv_CC_dependencies_compiler_type=$depmode
6435 am_cv_CC_dependencies_compiler_type=none
6439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6440 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6441 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6444 test "x$enable_dependency_tracking" != xno \
6445 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6447 am__fastdepCC_FALSE='#'
6449 am__fastdepCC_TRUE='#'
6450 am__fastdepCC_FALSE=
6454 # Variables for tags utilities; see am/tags.am
6455 if test -z "$CTAGS"; then
6459 if test -z "$ETAGS"; then
6463 if test -z "$CSCOPE"; then
6469 # POSIX will say in a future version that running "rm -f" with no argument
6470 # is OK; and we want to be able to make that assumption in our Makefile
6471 # recipes. So use an aggressive probe to check that the usage we want is
6472 # actually supported "in the wild" to an acceptable degree.
6473 # See automake bug#10828.
6474 # To make any issue more visible, cause the running configure to be aborted
6475 # by default if the 'rm' program in use doesn't match our expectations; the
6476 # user can still override this though.
6477 if rm -f && rm -fr && rm -rf; then : OK; else
6481 Your 'rm' program seems unable to run without file operands specified
6482 on the command line, even when the '-f' option is present. This is contrary
6483 to the behaviour of most rm programs out there, and not conforming with
6484 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6486 Please tell bug-automake@gnu.org about your system, including the value
6487 of your $PATH and any error possibly output before this message. This
6488 can help us improve future automake versions.
6491 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6492 echo 'Configuration will proceed anyway, since you have set the' >&2
6493 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6497 Aborting the configuration process, to ensure you take notice of the issue.
6499 You can download and install GNU coreutils to get an 'rm' implementation
6500 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6502 If you want to complete the configuration process using your problematic
6503 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6504 to "yes", and re-run configure.
6507 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6511 ## ------------------------------------- ##
6512 ## End of automake initialization code ##
6513 ## ------------------------------------- ##
6516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6517 printf %s "checking curl version... " >&6; }
6518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6519 printf "%s\n" "$CURLVERSION" >&6; }
6523 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6526 PKGADD_PKG="HAXXcurl"
6527 PKGADD_NAME="curl - a client that groks URLs"
6528 PKGADD_VENDOR="curl.se"
6533 curl_ssl_msg="no (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl,rustls} )"
6534 curl_ssh_msg="no (--with-{libssh,libssh2})"
6535 curl_zlib_msg="no (--with-zlib)"
6536 curl_brotli_msg="no (--with-brotli)"
6537 curl_zstd_msg="no (--with-zstd)"
6538 curl_gss_msg="no (--with-gssapi)"
6539 curl_gsasl_msg="no (--with-gsasl)"
6540 curl_tls_srp_msg="no (--enable-tls-srp)"
6541 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6542 curl_ipv6_msg="no (--enable-ipv6)"
6543 curl_unix_sockets_msg="no (--enable-unix-sockets)"
6544 curl_idn_msg="no (--with-{libidn2,winidn})"
6545 curl_manual_msg="no (--enable-manual)"
6546 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6547 curl_verbose_msg="enabled (--disable-verbose)"
6548 curl_sspi_msg="no (--enable-sspi)"
6549 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6550 curl_ldaps_msg="no (--enable-ldaps)"
6551 curl_rtsp_msg="no (--enable-rtsp)"
6552 curl_rtmp_msg="no (--with-librtmp)"
6553 curl_psl_msg="no (--with-libpsl)"
6554 curl_altsvc_msg="enabled (--disable-alt-svc)"
6555 curl_hsts_msg="enabled (--disable-hsts)"
6557 curl_h1_msg="enabled (internal)"
6558 curl_h2_msg="no (--with-nghttp2, --with-hyper)"
6559 curl_h3_msg="no (--with-ngtcp2, --with-quiche)"
6564 INITIAL_LDFLAGS=$LDFLAGS
6569 # Check whether --with-schannel was given.
6570 if test ${with_schannel+y}
6572 withval=$with_schannel; OPT_SCHANNEL=$withval
6573 TLSCHOICE="schannel"
6577 OPT_SECURETRANSPORT=no
6579 # Check whether --with-secure-transport was given.
6580 if test ${with_secure_transport+y}
6582 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
6583 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6592 # Check whether --with-amissl was given.
6593 if test ${with_amissl+y}
6595 withval=$with_amissl; OPT_AMISSL=$withval
6596 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6605 # Check whether --with-ssl was given.
6606 if test ${with_ssl+y}
6608 withval=$with_ssl; OPT_SSL=$withval
6609 OPT_OPENSSL=$withval
6610 if test X"$withval" != Xno; then
6611 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6619 # Check whether --with-openssl was given.
6620 if test ${with_openssl+y}
6622 withval=$with_openssl; OPT_OPENSSL=$withval
6623 if test X"$withval" != Xno; then
6624 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6633 # Check whether --with-gnutls was given.
6634 if test ${with_gnutls+y}
6636 withval=$with_gnutls; OPT_GNUTLS=$withval
6637 if test X"$withval" != Xno; then
6638 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6647 # Check whether --with-mbedtls was given.
6648 if test ${with_mbedtls+y}
6650 withval=$with_mbedtls; OPT_MBEDTLS=$withval
6651 if test X"$withval" != Xno; then
6652 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6661 # Check whether --with-wolfssl was given.
6662 if test ${with_wolfssl+y}
6664 withval=$with_wolfssl; OPT_WOLFSSL=$withval
6665 if test X"$withval" != Xno; then
6666 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6675 # Check whether --with-mesalink was given.
6676 if test ${with_mesalink+y}
6678 withval=$with_mesalink; OPT_MESALINK=$withval
6679 if test X"$withval" != Xno; then
6680 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6689 # Check whether --with-bearssl was given.
6690 if test ${with_bearssl+y}
6692 withval=$with_bearssl; OPT_BEARSSL=$withval
6693 if test X"$withval" != Xno; then
6694 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6703 # Check whether --with-rustls was given.
6704 if test ${with_rustls+y}
6706 withval=$with_rustls; OPT_RUSTLS=$withval
6707 if test X"$withval" != Xno; then
6708 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6717 # Check whether --with-nss was given.
6718 if test ${with_nss+y}
6720 withval=$with_nss; OPT_NSS=$withval
6721 if test X"$withval" != Xno; then
6722 test -z "TLSCHOICE" || TLSCHOICE="${TLSCHOICE:+$TLSCHOICE
6729 if test -z "$TLSCHOICE"; then
6730 if test "x$OPT_SSL" != "xno"; then
6731 as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
6741 --with-openssl (also works for BoringSSL and libressl)
6744 --with-secure-transport
6751 # Check whether --with-darwinssl was given.
6752 if test ${with_darwinssl+y}
6754 withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
6761 # Make sure we can run config.sub.
6762 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6763 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6765 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6766 printf %s "checking build system type... " >&6; }
6767 if test ${ac_cv_build+y}
6769 printf %s "(cached) " >&6
6771 ac_build_alias=$build_alias
6772 test "x$ac_build_alias" = x &&
6773 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6774 test "x$ac_build_alias" = x &&
6775 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6776 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6777 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6781 printf "%s\n" "$ac_cv_build" >&6; }
6782 case $ac_cv_build in
6784 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6787 ac_save_IFS=$IFS; IFS='-'
6793 # Remember, the first character of IFS is used to create $*,
6794 # except with old shells:
6797 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6801 printf %s "checking host system type... " >&6; }
6802 if test ${ac_cv_host+y}
6804 printf %s "(cached) " >&6
6806 if test "x$host_alias" = x; then
6807 ac_cv_host=$ac_cv_build
6809 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6810 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6815 printf "%s\n" "$ac_cv_host" >&6; }
6818 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6821 ac_save_IFS=$IFS; IFS='-'
6827 # Remember, the first character of IFS is used to create $*,
6828 # except with old shells:
6831 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6835 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
6838 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
6844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6845 printf %s "checking for grep that handles long lines and -e... " >&6; }
6846 if test ${ac_cv_path_GREP+y}
6848 printf %s "(cached) " >&6
6850 if test -z "$GREP"; then
6851 ac_path_GREP_found=false
6852 # Loop through the user's path and test for each of PROGNAME-LIST
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6857 case $as_dir in #(((
6860 *) as_dir=$as_dir/ ;;
6862 for ac_prog in grep ggrep
6864 for ac_exec_ext in '' $ac_executable_extensions; do
6865 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6866 as_fn_executable_p "$ac_path_GREP" || continue
6867 # Check for GNU ac_path_GREP and select it if it is found.
6868 # Check for GNU $ac_path_GREP
6869 case `"$ac_path_GREP" --version 2>&1` in
6871 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6874 printf %s 0123456789 >"conftest.in"
6877 cat "conftest.in" "conftest.in" >"conftest.tmp"
6878 mv "conftest.tmp" "conftest.in"
6879 cp "conftest.in" "conftest.nl"
6880 printf "%s\n" 'GREP' >> "conftest.nl"
6881 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6882 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6883 as_fn_arith $ac_count + 1 && ac_count=$as_val
6884 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6885 # Best one so far, save it but keep looking for a better one
6886 ac_cv_path_GREP="$ac_path_GREP"
6887 ac_path_GREP_max=$ac_count
6889 # 10*(2^10) chars as input seems more than enough
6890 test $ac_count -gt 10 && break
6892 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6895 $ac_path_GREP_found && break 3
6900 if test -z "$ac_cv_path_GREP"; then
6901 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6904 ac_cv_path_GREP=$GREP
6908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6909 printf "%s\n" "$ac_cv_path_GREP" >&6; }
6910 GREP="$ac_cv_path_GREP"
6913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6914 printf %s "checking for egrep... " >&6; }
6915 if test ${ac_cv_path_EGREP+y}
6917 printf %s "(cached) " >&6
6919 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6920 then ac_cv_path_EGREP="$GREP -E"
6922 if test -z "$EGREP"; then
6923 ac_path_EGREP_found=false
6924 # Loop through the user's path and test for each of PROGNAME-LIST
6925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6926 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6929 case $as_dir in #(((
6932 *) as_dir=$as_dir/ ;;
6934 for ac_prog in egrep
6936 for ac_exec_ext in '' $ac_executable_extensions; do
6937 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
6938 as_fn_executable_p "$ac_path_EGREP" || continue
6939 # Check for GNU ac_path_EGREP and select it if it is found.
6940 # Check for GNU $ac_path_EGREP
6941 case `"$ac_path_EGREP" --version 2>&1` in
6943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6946 printf %s 0123456789 >"conftest.in"
6949 cat "conftest.in" "conftest.in" >"conftest.tmp"
6950 mv "conftest.tmp" "conftest.in"
6951 cp "conftest.in" "conftest.nl"
6952 printf "%s\n" 'EGREP' >> "conftest.nl"
6953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6955 as_fn_arith $ac_count + 1 && ac_count=$as_val
6956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6957 # Best one so far, save it but keep looking for a better one
6958 ac_cv_path_EGREP="$ac_path_EGREP"
6959 ac_path_EGREP_max=$ac_count
6961 # 10*(2^10) chars as input seems more than enough
6962 test $ac_count -gt 10 && break
6964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6967 $ac_path_EGREP_found && break 3
6972 if test -z "$ac_cv_path_EGREP"; then
6973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6976 ac_cv_path_EGREP=$EGREP
6981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6982 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
6983 EGREP="$ac_cv_path_EGREP"
6988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6989 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
6998 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6999 $EGREP "yes_this_is_aix" >/dev/null 2>&1
7002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7003 printf "%s\n" "yes" >&6; }
7004 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7010 printf "%s\n" "no" >&6; }
7019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7020 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7032 force compilation error
7040 if ac_fn_c_try_compile "$LINENO"
7043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7044 printf "%s\n" "yes" >&6; }
7045 tmp_thread_safe_initially_defined="yes"
7049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7050 printf "%s\n" "no" >&6; }
7051 tmp_thread_safe_initially_defined="no"
7054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7056 if test "$tmp_thread_safe_initially_defined" = "no"; then
7057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7058 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7061 aix[123].* | aix4.[012].*)
7062 tmp_need_thread_safe="no"
7065 tmp_need_thread_safe="yes"
7068 tmp_need_thread_safe="no"
7072 if test "$tmp_need_thread_safe" = "yes"; then
7073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7074 printf "%s\n" "yes" >&6; }
7076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 printf "%s\n" "no" >&6; }
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7082 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7083 if test "$tmp_thread_safe_initially_defined" = "yes" ||
7084 test "$tmp_need_thread_safe" = "yes"; then
7087 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7089 cat >>confdefs.h <<_EOF
7090 #ifndef _THREAD_SAFE
7091 # define _THREAD_SAFE
7095 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7096 printf "%s\n" "yes" >&6; }
7098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 printf "%s\n" "no" >&6; }
7105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7106 printf %s "checking if _REENTRANT is already defined... " >&6; }
7107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7108 /* end confdefs.h. */
7118 force compilation error
7126 if ac_fn_c_try_compile "$LINENO"
7129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7130 printf "%s\n" "yes" >&6; }
7131 tmp_reentrant_initially_defined="yes"
7135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7136 printf "%s\n" "no" >&6; }
7137 tmp_reentrant_initially_defined="no"
7140 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7142 if test "$tmp_reentrant_initially_defined" = "no"; then
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7144 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7148 tmp_need_reentrant="yes"
7151 tmp_need_reentrant="no"
7155 if test "$tmp_need_reentrant" = "no"; then
7157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7158 /* end confdefs.h. */
7174 if ac_fn_c_try_compile "$LINENO"
7184 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7185 if test "$tmp_errno" = "yes"; then
7186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7187 /* end confdefs.h. */
7198 force compilation error
7206 if ac_fn_c_try_compile "$LINENO"
7209 tmp_errno="errno_macro_defined"
7213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7214 /* end confdefs.h. */
7226 force compilation error
7234 if ac_fn_c_try_compile "$LINENO"
7237 tmp_errno="errno_macro_needs_reentrant"
7238 tmp_need_reentrant="yes"
7241 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7244 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7248 if test "$tmp_need_reentrant" = "no"; then
7250 if test "$tmp_need_reentrant" = "no"; then
7252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7253 /* end confdefs.h. */
7256 #define gmtime_r innocuous_gmtime_r
7258 # include <limits.h>
7260 # include <assert.h>
7267 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7279 if ac_fn_c_try_link "$LINENO"
7289 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7290 conftest$ac_exeext conftest.$ac_ext
7291 if test "$tmp_gmtime_r" = "yes"; then
7292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7293 /* end confdefs.h. */
7295 #include <sys/types.h>
7299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7300 $EGREP "gmtime_r" >/dev/null 2>&1
7303 tmp_gmtime_r="proto_declared"
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7311 #include <sys/types.h>
7315 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7316 $EGREP "gmtime_r" >/dev/null 2>&1
7319 tmp_gmtime_r="proto_needs_reentrant"
7320 tmp_need_reentrant="yes"
7332 if test "$tmp_need_reentrant" = "no"; then
7334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7335 /* end confdefs.h. */
7338 #define localtime_r innocuous_localtime_r
7340 # include <limits.h>
7342 # include <assert.h>
7348 char localtime_r ();
7349 #if defined __stub_localtime_r || defined __stub___localtime_r
7355 return localtime_r ();
7361 if ac_fn_c_try_link "$LINENO"
7364 tmp_localtime_r="yes"
7368 tmp_localtime_r="no"
7371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7372 conftest$ac_exeext conftest.$ac_ext
7373 if test "$tmp_localtime_r" = "yes"; then
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7377 #include <sys/types.h>
7381 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7382 $EGREP "localtime_r" >/dev/null 2>&1
7385 tmp_localtime_r="proto_declared"
7389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7390 /* end confdefs.h. */
7393 #include <sys/types.h>
7397 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7398 $EGREP "localtime_r" >/dev/null 2>&1
7401 tmp_localtime_r="proto_needs_reentrant"
7402 tmp_need_reentrant="yes"
7414 if test "$tmp_need_reentrant" = "no"; then
7416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7417 /* end confdefs.h. */
7420 #define strerror_r innocuous_strerror_r
7422 # include <limits.h>
7424 # include <assert.h>
7431 #if defined __stub_strerror_r || defined __stub___strerror_r
7437 return strerror_r ();
7443 if ac_fn_c_try_link "$LINENO"
7446 tmp_strerror_r="yes"
7453 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7454 conftest$ac_exeext conftest.$ac_ext
7455 if test "$tmp_strerror_r" = "yes"; then
7456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7457 /* end confdefs.h. */
7459 #include <sys/types.h>
7463 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7464 $EGREP "strerror_r" >/dev/null 2>&1
7467 tmp_strerror_r="proto_declared"
7471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7472 /* end confdefs.h. */
7475 #include <sys/types.h>
7479 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7480 $EGREP "strerror_r" >/dev/null 2>&1
7483 tmp_strerror_r="proto_needs_reentrant"
7484 tmp_need_reentrant="yes"
7496 if test "$tmp_need_reentrant" = "no"; then
7498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7499 /* end confdefs.h. */
7502 #define strtok_r innocuous_strtok_r
7504 # include <limits.h>
7506 # include <assert.h>
7513 #if defined __stub_strtok_r || defined __stub___strtok_r
7525 if ac_fn_c_try_link "$LINENO"
7535 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7536 conftest$ac_exeext conftest.$ac_ext
7537 if test "$tmp_strtok_r" = "yes"; then
7538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7539 /* end confdefs.h. */
7541 #include <sys/types.h>
7545 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7546 $EGREP "strtok_r" >/dev/null 2>&1
7549 tmp_strtok_r="proto_declared"
7553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7554 /* end confdefs.h. */
7557 #include <sys/types.h>
7561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7562 $EGREP "strtok_r" >/dev/null 2>&1
7565 tmp_strtok_r="proto_needs_reentrant"
7566 tmp_need_reentrant="yes"
7578 if test "$tmp_need_reentrant" = "no"; then
7580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7581 /* end confdefs.h. */
7584 #define gethostbyname_r innocuous_gethostbyname_r
7586 # include <limits.h>
7588 # include <assert.h>
7590 #undef gethostbyname_r
7594 char gethostbyname_r ();
7595 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7601 return gethostbyname_r ();
7607 if ac_fn_c_try_link "$LINENO"
7610 tmp_gethostbyname_r="yes"
7614 tmp_gethostbyname_r="no"
7617 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7618 conftest$ac_exeext conftest.$ac_ext
7619 if test "$tmp_gethostbyname_r" = "yes"; then
7620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7621 /* end confdefs.h. */
7623 #include <sys/types.h>
7627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7628 $EGREP "gethostbyname_r" >/dev/null 2>&1
7631 tmp_gethostbyname_r="proto_declared"
7635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7636 /* end confdefs.h. */
7639 #include <sys/types.h>
7643 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7644 $EGREP "gethostbyname_r" >/dev/null 2>&1
7647 tmp_gethostbyname_r="proto_needs_reentrant"
7648 tmp_need_reentrant="yes"
7660 if test "$tmp_need_reentrant" = "no"; then
7662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7663 /* end confdefs.h. */
7666 #define getprotobyname_r innocuous_getprotobyname_r
7668 # include <limits.h>
7670 # include <assert.h>
7672 #undef getprotobyname_r
7676 char getprotobyname_r ();
7677 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7683 return getprotobyname_r ();
7689 if ac_fn_c_try_link "$LINENO"
7692 tmp_getprotobyname_r="yes"
7696 tmp_getprotobyname_r="no"
7699 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7700 conftest$ac_exeext conftest.$ac_ext
7701 if test "$tmp_getprotobyname_r" = "yes"; then
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7705 #include <sys/types.h>
7709 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7710 $EGREP "getprotobyname_r" >/dev/null 2>&1
7713 tmp_getprotobyname_r="proto_declared"
7717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7718 /* end confdefs.h. */
7721 #include <sys/types.h>
7725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7726 $EGREP "getprotobyname_r" >/dev/null 2>&1
7729 tmp_getprotobyname_r="proto_needs_reentrant"
7730 tmp_need_reentrant="yes"
7744 if test "$tmp_need_reentrant" = "yes"; then
7745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7746 printf "%s\n" "yes" >&6; }
7748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7749 printf "%s\n" "no" >&6; }
7753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7754 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
7755 if test "$tmp_reentrant_initially_defined" = "yes" ||
7756 test "$tmp_need_reentrant" = "yes"; then
7759 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
7761 cat >>confdefs.h <<_EOF
7767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7768 printf "%s\n" "yes" >&6; }
7770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7771 printf "%s\n" "no" >&6; }
7776 # Check whether --enable-largefile was given.
7777 if test ${enable_largefile+y}
7779 enableval=$enable_largefile;
7782 if test "$enable_largefile" != no; then
7784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7785 printf %s "checking for special C compiler options needed for large files... " >&6; }
7786 if test ${ac_cv_sys_largefile_CC+y}
7788 printf %s "(cached) " >&6
7790 ac_cv_sys_largefile_CC=no
7791 if test "$GCC" != yes; then
7794 # IRIX 6.2 and later do not support large files by default,
7795 # so use the C compiler's -n32 option if that helps.
7796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7797 /* end confdefs.h. */
7798 #include <sys/types.h>
7799 /* Check that off_t can represent 2**63 - 1 correctly.
7800 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7801 since some C++ compilers masquerading as C compilers
7802 incorrectly reject 9223372036854775807. */
7803 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7804 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7805 && LARGE_OFF_T % 2147483647 == 1)
7814 if ac_fn_c_try_compile "$LINENO"
7818 rm -f core conftest.err conftest.$ac_objext conftest.beam
7820 if ac_fn_c_try_compile "$LINENO"
7822 ac_cv_sys_largefile_CC=' -n32'; break
7824 rm -f core conftest.err conftest.$ac_objext conftest.beam
7828 rm -f conftest.$ac_ext
7831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7832 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7833 if test "$ac_cv_sys_largefile_CC" != no; then
7834 CC=$CC$ac_cv_sys_largefile_CC
7837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7838 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7839 if test ${ac_cv_sys_file_offset_bits+y}
7841 printf %s "(cached) " >&6
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <sys/types.h>
7847 /* Check that off_t can represent 2**63 - 1 correctly.
7848 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7849 since some C++ compilers masquerading as C compilers
7850 incorrectly reject 9223372036854775807. */
7851 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7852 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7853 && LARGE_OFF_T % 2147483647 == 1)
7862 if ac_fn_c_try_compile "$LINENO"
7864 ac_cv_sys_file_offset_bits=no; break
7866 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7868 /* end confdefs.h. */
7869 #define _FILE_OFFSET_BITS 64
7870 #include <sys/types.h>
7871 /* Check that off_t can represent 2**63 - 1 correctly.
7872 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7873 since some C++ compilers masquerading as C compilers
7874 incorrectly reject 9223372036854775807. */
7875 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7876 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7877 && LARGE_OFF_T % 2147483647 == 1)
7886 if ac_fn_c_try_compile "$LINENO"
7888 ac_cv_sys_file_offset_bits=64; break
7890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7891 ac_cv_sys_file_offset_bits=unknown
7895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7896 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7897 case $ac_cv_sys_file_offset_bits in #(
7900 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
7904 if test $ac_cv_sys_file_offset_bits = unknown; then
7905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7906 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
7907 if test ${ac_cv_sys_large_files+y}
7909 printf %s "(cached) " >&6
7912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7914 #include <sys/types.h>
7915 /* Check that off_t can represent 2**63 - 1 correctly.
7916 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7917 since some C++ compilers masquerading as C compilers
7918 incorrectly reject 9223372036854775807. */
7919 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7920 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7921 && LARGE_OFF_T % 2147483647 == 1)
7930 if ac_fn_c_try_compile "$LINENO"
7932 ac_cv_sys_large_files=no; break
7934 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7936 /* end confdefs.h. */
7937 #define _LARGE_FILES 1
7938 #include <sys/types.h>
7939 /* Check that off_t can represent 2**63 - 1 correctly.
7940 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7941 since some C++ compilers masquerading as C compilers
7942 incorrectly reject 9223372036854775807. */
7943 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7944 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7945 && LARGE_OFF_T % 2147483647 == 1)
7954 if ac_fn_c_try_compile "$LINENO"
7956 ac_cv_sys_large_files=1; break
7958 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7959 ac_cv_sys_large_files=unknown
7963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7964 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
7965 case $ac_cv_sys_large_files in #(
7968 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
7978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7979 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7984 macro_version='2.4.6'
7985 macro_revision='2.4.6'
8000 ltmain=$ac_aux_dir/ltmain.sh
8002 # Backslashify metacharacters that are still active within
8003 # double-quoted strings.
8004 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8006 # Same as above, but do not quote variable references.
8007 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8009 # Sed substitution to delay expansion of an escaped shell variable in a
8010 # double_quote_subst'ed string.
8011 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8013 # Sed substitution to delay expansion of an escaped single quote.
8014 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8016 # Sed substitution to avoid accidental globbing in evaled expressions
8017 no_glob_subst='s/\*/\\\*/g'
8019 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8020 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8021 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8024 printf %s "checking how to print strings... " >&6; }
8025 # Test print first, because it will be a builtin if present.
8026 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8027 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8029 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8032 # Use this function as a fallback that always works.
8033 func_fallback_echo ()
8035 eval 'cat <<_LTECHO_EOF
8039 ECHO='func_fallback_echo'
8042 # func_echo_all arg...
8043 # Invoke $ECHO with all args, space-separated.
8050 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8051 printf "%s\n" "printf" >&6; } ;;
8052 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8053 printf "%s\n" "print -r" >&6; } ;;
8054 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8055 printf "%s\n" "cat" >&6; } ;;
8071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8072 printf %s "checking for a sed that does not truncate output... " >&6; }
8073 if test ${ac_cv_path_SED+y}
8075 printf %s "(cached) " >&6
8077 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8078 for ac_i in 1 2 3 4 5 6 7; do
8079 ac_script="$ac_script$as_nl$ac_script"
8081 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8082 { ac_script=; unset ac_script;}
8083 if test -z "$SED"; then
8084 ac_path_SED_found=false
8085 # Loop through the user's path and test for each of PROGNAME-LIST
8086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8090 case $as_dir in #(((
8093 *) as_dir=$as_dir/ ;;
8095 for ac_prog in sed gsed
8097 for ac_exec_ext in '' $ac_executable_extensions; do
8098 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8099 as_fn_executable_p "$ac_path_SED" || continue
8100 # Check for GNU ac_path_SED and select it if it is found.
8101 # Check for GNU $ac_path_SED
8102 case `"$ac_path_SED" --version 2>&1` in
8104 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8107 printf %s 0123456789 >"conftest.in"
8110 cat "conftest.in" "conftest.in" >"conftest.tmp"
8111 mv "conftest.tmp" "conftest.in"
8112 cp "conftest.in" "conftest.nl"
8113 printf "%s\n" '' >> "conftest.nl"
8114 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8115 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8116 as_fn_arith $ac_count + 1 && ac_count=$as_val
8117 if test $ac_count -gt ${ac_path_SED_max-0}; then
8118 # Best one so far, save it but keep looking for a better one
8119 ac_cv_path_SED="$ac_path_SED"
8120 ac_path_SED_max=$ac_count
8122 # 10*(2^10) chars as input seems more than enough
8123 test $ac_count -gt 10 && break
8125 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8128 $ac_path_SED_found && break 3
8133 if test -z "$ac_cv_path_SED"; then
8134 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8142 printf "%s\n" "$ac_cv_path_SED" >&6; }
8143 SED="$ac_cv_path_SED"
8146 test -z "$SED" && SED=sed
8147 Xsed="$SED -e 1s/^X//"
8159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8160 printf %s "checking for fgrep... " >&6; }
8161 if test ${ac_cv_path_FGREP+y}
8163 printf %s "(cached) " >&6
8165 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8166 then ac_cv_path_FGREP="$GREP -F"
8168 if test -z "$FGREP"; then
8169 ac_path_FGREP_found=false
8170 # Loop through the user's path and test for each of PROGNAME-LIST
8171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8172 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8175 case $as_dir in #(((
8178 *) as_dir=$as_dir/ ;;
8180 for ac_prog in fgrep
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8184 as_fn_executable_p "$ac_path_FGREP" || continue
8185 # Check for GNU ac_path_FGREP and select it if it is found.
8186 # Check for GNU $ac_path_FGREP
8187 case `"$ac_path_FGREP" --version 2>&1` in
8189 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8192 printf %s 0123456789 >"conftest.in"
8195 cat "conftest.in" "conftest.in" >"conftest.tmp"
8196 mv "conftest.tmp" "conftest.in"
8197 cp "conftest.in" "conftest.nl"
8198 printf "%s\n" 'FGREP' >> "conftest.nl"
8199 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8200 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8201 as_fn_arith $ac_count + 1 && ac_count=$as_val
8202 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8203 # Best one so far, save it but keep looking for a better one
8204 ac_cv_path_FGREP="$ac_path_FGREP"
8205 ac_path_FGREP_max=$ac_count
8207 # 10*(2^10) chars as input seems more than enough
8208 test $ac_count -gt 10 && break
8210 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8213 $ac_path_FGREP_found && break 3
8218 if test -z "$ac_cv_path_FGREP"; then
8219 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8222 ac_cv_path_FGREP=$FGREP
8227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8228 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8229 FGREP="$ac_cv_path_FGREP"
8232 test -z "$GREP" && GREP=grep
8252 # Check whether --with-gnu-ld was given.
8253 if test ${with_gnu_ld+y}
8255 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8261 if test yes = "$GCC"; then
8262 # Check if gcc -print-prog-name=ld gives a path.
8263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8264 printf %s "checking for ld used by $CC... " >&6; }
8267 # gcc leaves a trailing carriage return, which upsets mingw
8268 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8270 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8273 # Accept absolute paths.
8275 re_direlt='/[^/][^/]*/\.\./'
8276 # Canonicalize the pathname of ld
8277 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8278 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8279 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8281 test -z "$LD" && LD=$ac_prog
8284 # If it fails, then pretend we aren't using GCC.
8288 # If it is relative, then search for the first ld in PATH.
8292 elif test yes = "$with_gnu_ld"; then
8293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8294 printf %s "checking for GNU ld... " >&6; }
8296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8297 printf %s "checking for non-GNU ld... " >&6; }
8299 if test ${lt_cv_path_LD+y}
8301 printf %s "(cached) " >&6
8303 if test -z "$LD"; then
8304 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8305 for ac_dir in $PATH; do
8307 test -z "$ac_dir" && ac_dir=.
8308 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8309 lt_cv_path_LD=$ac_dir/$ac_prog
8310 # Check to see if the program is GNU ld. I'd rather use --version,
8311 # but apparently some variants of GNU ld only accept -v.
8312 # Break only if it was the GNU/non-GNU ld that we prefer.
8313 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8314 *GNU* | *'with BFD'*)
8315 test no != "$with_gnu_ld" && break
8318 test yes != "$with_gnu_ld" && break
8325 lt_cv_path_LD=$LD # Let the user override the test with a path.
8330 if test -n "$LD"; then
8331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8332 printf "%s\n" "$LD" >&6; }
8334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 printf "%s\n" "no" >&6; }
8337 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8339 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8340 if test ${lt_cv_prog_gnu_ld+y}
8342 printf %s "(cached) " >&6
8344 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8345 case `$LD -v 2>&1 </dev/null` in
8346 *GNU* | *'with BFD'*)
8347 lt_cv_prog_gnu_ld=yes
8350 lt_cv_prog_gnu_ld=no
8354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8355 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8356 with_gnu_ld=$lt_cv_prog_gnu_ld
8366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8367 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8368 if test ${lt_cv_path_NM+y}
8370 printf %s "(cached) " >&6
8372 if test -n "$NM"; then
8373 # Let the user override the test.
8376 lt_nm_to_check=${ac_tool_prefix}nm
8377 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8378 lt_nm_to_check="$lt_nm_to_check nm"
8380 for lt_tmp_nm in $lt_nm_to_check; do
8381 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8382 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8384 test -z "$ac_dir" && ac_dir=.
8385 tmp_nm=$ac_dir/$lt_tmp_nm
8386 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8387 # Check to see if the nm accepts a BSD-compat flag.
8388 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8389 # nm: unknown option "B" ignored
8390 # Tru64's nm complains that /dev/null is an invalid object file
8391 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8393 mingw*) lt_bad_file=conftest.nm/nofile ;;
8394 *) lt_bad_file=/dev/null ;;
8396 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8397 *$lt_bad_file* | *'Invalid file or object type'*)
8398 lt_cv_path_NM="$tmp_nm -B"
8402 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8404 lt_cv_path_NM="$tmp_nm -p"
8408 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8409 continue # so that we can try to find one that supports BSD flags
8418 : ${lt_cv_path_NM=no}
8421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8422 printf "%s\n" "$lt_cv_path_NM" >&6; }
8423 if test no != "$lt_cv_path_NM"; then
8426 # Didn't find any BSD compatible name lister, look for dumpbin.
8427 if test -n "$DUMPBIN"; then :
8428 # Let the user override the test.
8430 if test -n "$ac_tool_prefix"; then
8431 for ac_prog in dumpbin "link -dump"
8433 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8434 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8436 printf %s "checking for $ac_word... " >&6; }
8437 if test ${ac_cv_prog_DUMPBIN+y}
8439 printf %s "(cached) " >&6
8441 if test -n "$DUMPBIN"; then
8442 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8448 case $as_dir in #(((
8451 *) as_dir=$as_dir/ ;;
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8456 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8465 DUMPBIN=$ac_cv_prog_DUMPBIN
8466 if test -n "$DUMPBIN"; then
8467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8468 printf "%s\n" "$DUMPBIN" >&6; }
8470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 printf "%s\n" "no" >&6; }
8475 test -n "$DUMPBIN" && break
8478 if test -z "$DUMPBIN"; then
8479 ac_ct_DUMPBIN=$DUMPBIN
8480 for ac_prog in dumpbin "link -dump"
8482 # Extract the first word of "$ac_prog", so it can be a program name with args.
8483 set dummy $ac_prog; ac_word=$2
8484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8485 printf %s "checking for $ac_word... " >&6; }
8486 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8488 printf %s "(cached) " >&6
8490 if test -n "$ac_ct_DUMPBIN"; then
8491 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8497 case $as_dir in #(((
8500 *) as_dir=$as_dir/ ;;
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8504 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8505 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8514 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8515 if test -n "$ac_ct_DUMPBIN"; then
8516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8517 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8520 printf "%s\n" "no" >&6; }
8524 test -n "$ac_ct_DUMPBIN" && break
8527 if test "x$ac_ct_DUMPBIN" = x; then
8530 case $cross_compiling:$ac_tool_warned in
8532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8533 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8534 ac_tool_warned=yes ;;
8536 DUMPBIN=$ac_ct_DUMPBIN
8540 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8542 DUMPBIN="$DUMPBIN -symbols -headers"
8550 if test : != "$DUMPBIN"; then
8554 test -z "$NM" && NM=nm
8561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8562 printf %s "checking the name lister ($NM) interface... " >&6; }
8563 if test ${lt_cv_nm_interface+y}
8565 printf %s "(cached) " >&6
8567 lt_cv_nm_interface="BSD nm"
8568 echo "int some_variable = 0;" > conftest.$ac_ext
8569 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8570 (eval "$ac_compile" 2>conftest.err)
8571 cat conftest.err >&5
8572 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8573 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8574 cat conftest.err >&5
8575 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8576 cat conftest.out >&5
8577 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8578 lt_cv_nm_interface="MS dumpbin"
8582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8583 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8586 printf %s "checking whether ln -s works... " >&6; }
8588 if test "$LN_S" = "ln -s"; then
8589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8590 printf "%s\n" "yes" >&6; }
8592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8593 printf "%s\n" "no, using $LN_S" >&6; }
8596 # find the maximum length of command line arguments
8597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8598 printf %s "checking the maximum length of command line arguments... " >&6; }
8599 if test ${lt_cv_sys_max_cmd_len+y}
8601 printf %s "(cached) " >&6
8608 # On DJGPP, this test can blow up pretty badly due to problems in libc
8609 # (any single argument exceeding 2000 bytes causes a buffer overrun
8610 # during glob expansion). Even if it were fixed, the result of this
8611 # check would be larger than it should be.
8612 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8616 # Under GNU Hurd, this test is not required because there is
8617 # no limit to the length of command line arguments.
8618 # Libtool will interpret -1 as no limit whatsoever
8619 lt_cv_sys_max_cmd_len=-1;
8622 cygwin* | mingw* | cegcc*)
8623 # On Win9x/ME, this test blows up -- it succeeds, but takes
8624 # about 5 minutes as the teststring grows exponentially.
8625 # Worse, since 9x/ME are not pre-emptively multitasking,
8626 # you end up with a "frozen" computer, even though with patience
8627 # the test eventually succeeds (with a max line length of 256k).
8628 # Instead, let's just punt: use the minimum linelength reported by
8629 # all of the supported platforms: 8192 (on NT/2K/XP).
8630 lt_cv_sys_max_cmd_len=8192;
8634 # On MiNT this can take a long time and run out of memory.
8635 lt_cv_sys_max_cmd_len=8192;
8639 # On AmigaOS with pdksh, this test takes hours, literally.
8640 # So we just punt and use a minimum line length of 8192.
8641 lt_cv_sys_max_cmd_len=8192;
8644 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8645 # This has been around since 386BSD, at least. Likely further.
8646 if test -x /sbin/sysctl; then
8647 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8648 elif test -x /usr/sbin/sysctl; then
8649 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8651 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8653 # And add a safety zone
8654 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8655 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8659 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8660 lt_cv_sys_max_cmd_len=196608
8664 # The test takes a long time on OS/2.
8665 lt_cv_sys_max_cmd_len=8192
8669 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8670 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8671 # nice to cause kernel panics so lets avoid the loop below.
8672 # First set a reasonable default.
8673 lt_cv_sys_max_cmd_len=16384
8675 if test -x /sbin/sysconfig; then
8676 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8677 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8682 lt_cv_sys_max_cmd_len=102400
8684 sysv5* | sco5v6* | sysv4.2uw2*)
8685 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8686 if test -n "$kargmax"; then
8687 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8689 lt_cv_sys_max_cmd_len=32768
8693 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8694 if test -n "$lt_cv_sys_max_cmd_len" && \
8695 test undefined != "$lt_cv_sys_max_cmd_len"; then
8696 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8699 # Make teststring a little bigger before we do anything with it.
8700 # a 1K string should be a reasonable start.
8701 for i in 1 2 3 4 5 6 7 8; do
8702 teststring=$teststring$teststring
8704 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8705 # If test is not a shell built-in, we'll probably end up computing a
8706 # maximum length that is only half of the actual maximum length, but
8708 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8709 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8710 test 17 != "$i" # 1/2 MB should be enough
8713 teststring=$teststring$teststring
8715 # Only check the string length outside the loop.
8716 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8718 # Add a significant safety factor because C++ compilers can tack on
8719 # massive amounts of additional arguments before passing them to the
8720 # linker. It appears as though 1/2 is a usable value.
8721 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8728 if test -n "$lt_cv_sys_max_cmd_len"; then
8729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8730 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8733 printf "%s\n" "none" >&6; }
8735 max_cmd_len=$lt_cv_sys_max_cmd_len
8746 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8756 # test EBCDIC or ASCII
8757 case `echo X|tr X '\101'` in
8758 A) # ASCII based system
8759 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8760 lt_SP2NL='tr \040 \012'
8761 lt_NL2SP='tr \015\012 \040\040'
8763 *) # EBCDIC based system
8764 lt_SP2NL='tr \100 \n'
8765 lt_NL2SP='tr \r\n \100\100'
8777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8778 printf %s "checking how to convert $build file names to $host format... " >&6; }
8779 if test ${lt_cv_to_host_file_cmd+y}
8781 printf %s "(cached) " >&6
8786 *-*-mingw* ) # actually msys
8787 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8790 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8792 * ) # otherwise, assume *nix
8793 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8799 *-*-mingw* ) # actually msys
8800 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8803 lt_cv_to_host_file_cmd=func_convert_file_noop
8805 * ) # otherwise, assume *nix
8806 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8810 * ) # unhandled hosts (and "normal" native builds)
8811 lt_cv_to_host_file_cmd=func_convert_file_noop
8817 to_host_file_cmd=$lt_cv_to_host_file_cmd
8818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8819 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8826 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8827 if test ${lt_cv_to_tool_file_cmd+y}
8829 printf %s "(cached) " >&6
8831 #assume ordinary cross tools, or native build.
8832 lt_cv_to_tool_file_cmd=func_convert_file_noop
8836 *-*-mingw* ) # actually msys
8837 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8845 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8847 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8854 printf %s "checking for $LD option to reload object files... " >&6; }
8855 if test ${lt_cv_ld_reload_flag+y}
8857 printf %s "(cached) " >&6
8859 lt_cv_ld_reload_flag='-r'
8861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8862 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8863 reload_flag=$lt_cv_ld_reload_flag
8864 case $reload_flag in
8866 *) reload_flag=" $reload_flag" ;;
8868 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8870 cygwin* | mingw* | pw32* | cegcc*)
8871 if test yes != "$GCC"; then
8876 if test yes = "$GCC"; then
8877 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8879 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8892 if test -n "$ac_tool_prefix"; then
8893 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8894 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 printf %s "checking for $ac_word... " >&6; }
8897 if test ${ac_cv_prog_OBJDUMP+y}
8899 printf %s "(cached) " >&6
8901 if test -n "$OBJDUMP"; then
8902 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 case $as_dir in #(((
8911 *) as_dir=$as_dir/ ;;
8913 for ac_exec_ext in '' $ac_executable_extensions; do
8914 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8915 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8916 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8925 OBJDUMP=$ac_cv_prog_OBJDUMP
8926 if test -n "$OBJDUMP"; then
8927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8928 printf "%s\n" "$OBJDUMP" >&6; }
8930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 printf "%s\n" "no" >&6; }
8936 if test -z "$ac_cv_prog_OBJDUMP"; then
8937 ac_ct_OBJDUMP=$OBJDUMP
8938 # Extract the first word of "objdump", so it can be a program name with args.
8939 set dummy objdump; ac_word=$2
8940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8941 printf %s "checking for $ac_word... " >&6; }
8942 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
8944 printf %s "(cached) " >&6
8946 if test -n "$ac_ct_OBJDUMP"; then
8947 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8953 case $as_dir in #(((
8956 *) as_dir=$as_dir/ ;;
8958 for ac_exec_ext in '' $ac_executable_extensions; do
8959 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8960 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8961 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8970 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8971 if test -n "$ac_ct_OBJDUMP"; then
8972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8973 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
8975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8976 printf "%s\n" "no" >&6; }
8979 if test "x$ac_ct_OBJDUMP" = x; then
8982 case $cross_compiling:$ac_tool_warned in
8984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8985 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8986 ac_tool_warned=yes ;;
8988 OBJDUMP=$ac_ct_OBJDUMP
8991 OBJDUMP="$ac_cv_prog_OBJDUMP"
8994 test -z "$OBJDUMP" && OBJDUMP=objdump
9001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9002 printf %s "checking how to recognize dependent libraries... " >&6; }
9003 if test ${lt_cv_deplibs_check_method+y}
9005 printf %s "(cached) " >&6
9007 lt_cv_file_magic_cmd='$MAGIC_CMD'
9008 lt_cv_file_magic_test_file=
9009 lt_cv_deplibs_check_method='unknown'
9010 # Need to set the preceding variable on all platforms that support
9011 # interlibrary dependencies.
9012 # 'none' -- dependencies not supported.
9013 # 'unknown' -- same as none, but documents that we really don't know.
9014 # 'pass_all' -- all dependencies passed with no checks.
9015 # 'test_compile' -- check by making test program.
9016 # 'file_magic [[regex]]' -- check by looking for files in library path
9017 # that responds to the $file_magic_cmd with a given extended regex.
9018 # If you have 'file' or equivalent on your system and you're not sure
9019 # whether 'pass_all' will *always* work, you probably want this one.
9023 lt_cv_deplibs_check_method=pass_all
9027 lt_cv_deplibs_check_method=pass_all
9031 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9032 lt_cv_file_magic_cmd='/usr/bin/file -L'
9033 lt_cv_file_magic_test_file=/shlib/libc.so
9037 # func_win32_libid is a shell function defined in ltmain.sh
9038 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9039 lt_cv_file_magic_cmd='func_win32_libid'
9043 # Base MSYS/MinGW do not provide the 'file' command needed by
9044 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9045 # unless we find 'file', for example because we are cross-compiling.
9046 if ( file / ) >/dev/null 2>&1; then
9047 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9048 lt_cv_file_magic_cmd='func_win32_libid'
9050 # Keep this pattern in sync with the one in func_win32_libid.
9051 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9052 lt_cv_file_magic_cmd='$OBJDUMP -f'
9057 # use the weaker test based on 'objdump'. See mingw*.
9058 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9059 lt_cv_file_magic_cmd='$OBJDUMP -f'
9062 darwin* | rhapsody*)
9063 lt_cv_deplibs_check_method=pass_all
9066 freebsd* | dragonfly*)
9067 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9070 # Not sure whether the presence of OpenBSD here was a mistake.
9071 # Let's accept both of them until this is cleared up.
9072 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9073 lt_cv_file_magic_cmd=/usr/bin/file
9074 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9078 lt_cv_deplibs_check_method=pass_all
9083 lt_cv_deplibs_check_method=pass_all
9086 hpux10.20* | hpux11*)
9087 lt_cv_file_magic_cmd=/usr/bin/file
9090 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9091 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9094 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]'
9095 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9098 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9099 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9105 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9106 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9109 irix5* | irix6* | nonstopux*)
9111 *-32|*"-32 ") libmagic=32-bit;;
9112 *-n32|*"-n32 ") libmagic=N32;;
9113 *-64|*"-64 ") libmagic=64-bit;;
9114 *) libmagic=never-match;;
9116 lt_cv_deplibs_check_method=pass_all
9119 # This must be glibc/ELF.
9120 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9121 lt_cv_deplibs_check_method=pass_all
9124 netbsd* | netbsdelf*-gnu)
9125 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9126 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9128 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9133 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9134 lt_cv_file_magic_cmd=/usr/bin/file
9135 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9139 lt_cv_deplibs_check_method=pass_all
9143 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9144 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9146 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9150 osf3* | osf4* | osf5*)
9151 lt_cv_deplibs_check_method=pass_all
9155 lt_cv_deplibs_check_method=pass_all
9159 lt_cv_deplibs_check_method=pass_all
9162 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9163 lt_cv_deplibs_check_method=pass_all
9167 case $host_vendor in
9169 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]'
9170 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9173 lt_cv_deplibs_check_method=pass_all
9176 lt_cv_file_magic_cmd='/bin/file'
9177 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9180 lt_cv_file_magic_cmd='/bin/file'
9181 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9182 lt_cv_file_magic_test_file=/lib/libc.so
9185 lt_cv_deplibs_check_method=pass_all
9188 lt_cv_deplibs_check_method=pass_all
9194 lt_cv_deplibs_check_method=pass_all
9197 lt_cv_deplibs_check_method=pass_all
9202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9203 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9207 if test "$build" = "$host"; then
9210 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9213 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9219 file_magic_cmd=$lt_cv_file_magic_cmd
9220 deplibs_check_method=$lt_cv_deplibs_check_method
9221 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9244 if test -n "$ac_tool_prefix"; then
9245 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9246 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9248 printf %s "checking for $ac_word... " >&6; }
9249 if test ${ac_cv_prog_DLLTOOL+y}
9251 printf %s "(cached) " >&6
9253 if test -n "$DLLTOOL"; then
9254 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9260 case $as_dir in #(((
9263 *) as_dir=$as_dir/ ;;
9265 for ac_exec_ext in '' $ac_executable_extensions; do
9266 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9267 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9268 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9277 DLLTOOL=$ac_cv_prog_DLLTOOL
9278 if test -n "$DLLTOOL"; then
9279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9280 printf "%s\n" "$DLLTOOL" >&6; }
9282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9283 printf "%s\n" "no" >&6; }
9288 if test -z "$ac_cv_prog_DLLTOOL"; then
9289 ac_ct_DLLTOOL=$DLLTOOL
9290 # Extract the first word of "dlltool", so it can be a program name with args.
9291 set dummy dlltool; ac_word=$2
9292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9293 printf %s "checking for $ac_word... " >&6; }
9294 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9296 printf %s "(cached) " >&6
9298 if test -n "$ac_ct_DLLTOOL"; then
9299 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9305 case $as_dir in #(((
9308 *) as_dir=$as_dir/ ;;
9310 for ac_exec_ext in '' $ac_executable_extensions; do
9311 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9312 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9313 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9322 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9323 if test -n "$ac_ct_DLLTOOL"; then
9324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9325 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9328 printf "%s\n" "no" >&6; }
9331 if test "x$ac_ct_DLLTOOL" = x; then
9334 case $cross_compiling:$ac_tool_warned in
9336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9337 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9338 ac_tool_warned=yes ;;
9340 DLLTOOL=$ac_ct_DLLTOOL
9343 DLLTOOL="$ac_cv_prog_DLLTOOL"
9346 test -z "$DLLTOOL" && DLLTOOL=dlltool
9354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9355 printf %s "checking how to associate runtime and link libraries... " >&6; }
9356 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9358 printf %s "(cached) " >&6
9360 lt_cv_sharedlib_from_linklib_cmd='unknown'
9363 cygwin* | mingw* | pw32* | cegcc*)
9364 # two different shell functions defined in ltmain.sh;
9365 # decide which one to use based on capabilities of $DLLTOOL
9366 case `$DLLTOOL --help 2>&1` in
9367 *--identify-strict*)
9368 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9371 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9376 # fallback: assume linklib IS sharedlib
9377 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9383 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9384 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9385 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9393 if test -n "$ac_tool_prefix"; then
9396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9397 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9399 printf %s "checking for $ac_word... " >&6; }
9400 if test ${ac_cv_prog_AR+y}
9402 printf %s "(cached) " >&6
9404 if test -n "$AR"; then
9405 ac_cv_prog_AR="$AR" # Let the user override the test.
9407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9411 case $as_dir in #(((
9414 *) as_dir=$as_dir/ ;;
9416 for ac_exec_ext in '' $ac_executable_extensions; do
9417 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9418 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9419 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9429 if test -n "$AR"; then
9430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9431 printf "%s\n" "$AR" >&6; }
9433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9434 printf "%s\n" "no" >&6; }
9438 test -n "$AR" && break
9441 if test -z "$AR"; then
9445 # Extract the first word of "$ac_prog", so it can be a program name with args.
9446 set dummy $ac_prog; ac_word=$2
9447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9448 printf %s "checking for $ac_word... " >&6; }
9449 if test ${ac_cv_prog_ac_ct_AR+y}
9451 printf %s "(cached) " >&6
9453 if test -n "$ac_ct_AR"; then
9454 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9460 case $as_dir in #(((
9463 *) as_dir=$as_dir/ ;;
9465 for ac_exec_ext in '' $ac_executable_extensions; do
9466 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9467 ac_cv_prog_ac_ct_AR="$ac_prog"
9468 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9477 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9478 if test -n "$ac_ct_AR"; then
9479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9480 printf "%s\n" "$ac_ct_AR" >&6; }
9482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9483 printf "%s\n" "no" >&6; }
9487 test -n "$ac_ct_AR" && break
9490 if test "x$ac_ct_AR" = x; then
9493 case $cross_compiling:$ac_tool_warned in
9495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9496 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9497 ac_tool_warned=yes ;;
9516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9517 printf %s "checking for archiver @FILE support... " >&6; }
9518 if test ${lt_cv_ar_at_file+y}
9520 printf %s "(cached) " >&6
9523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524 /* end confdefs.h. */
9533 if ac_fn_c_try_compile "$LINENO"
9535 echo conftest.$ac_objext > conftest.lst
9536 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9537 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9538 (eval $lt_ar_try) 2>&5
9540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9541 test $ac_status = 0; }
9542 if test 0 -eq "$ac_status"; then
9543 # Ensure the archiver fails upon bogus file names.
9544 rm -f conftest.$ac_objext libconftest.a
9545 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9546 (eval $lt_ar_try) 2>&5
9548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9549 test $ac_status = 0; }
9550 if test 0 -ne "$ac_status"; then
9554 rm -f conftest.* libconftest.a
9557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9561 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9563 if test no = "$lt_cv_ar_at_file"; then
9566 archiver_list_spec=$lt_cv_ar_at_file
9575 if test -n "$ac_tool_prefix"; then
9576 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9577 set dummy ${ac_tool_prefix}strip; ac_word=$2
9578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9579 printf %s "checking for $ac_word... " >&6; }
9580 if test ${ac_cv_prog_STRIP+y}
9582 printf %s "(cached) " >&6
9584 if test -n "$STRIP"; then
9585 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9591 case $as_dir in #(((
9594 *) as_dir=$as_dir/ ;;
9596 for ac_exec_ext in '' $ac_executable_extensions; do
9597 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9598 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9599 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9608 STRIP=$ac_cv_prog_STRIP
9609 if test -n "$STRIP"; then
9610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9611 printf "%s\n" "$STRIP" >&6; }
9613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9614 printf "%s\n" "no" >&6; }
9619 if test -z "$ac_cv_prog_STRIP"; then
9621 # Extract the first word of "strip", so it can be a program name with args.
9622 set dummy strip; ac_word=$2
9623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9624 printf %s "checking for $ac_word... " >&6; }
9625 if test ${ac_cv_prog_ac_ct_STRIP+y}
9627 printf %s "(cached) " >&6
9629 if test -n "$ac_ct_STRIP"; then
9630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9636 case $as_dir in #(((
9639 *) as_dir=$as_dir/ ;;
9641 for ac_exec_ext in '' $ac_executable_extensions; do
9642 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9643 ac_cv_prog_ac_ct_STRIP="strip"
9644 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9653 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9654 if test -n "$ac_ct_STRIP"; then
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9656 printf "%s\n" "$ac_ct_STRIP" >&6; }
9658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9659 printf "%s\n" "no" >&6; }
9662 if test "x$ac_ct_STRIP" = x; then
9665 case $cross_compiling:$ac_tool_warned in
9667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9668 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9669 ac_tool_warned=yes ;;
9674 STRIP="$ac_cv_prog_STRIP"
9677 test -z "$STRIP" && STRIP=:
9684 if test -n "$ac_tool_prefix"; then
9685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9688 printf %s "checking for $ac_word... " >&6; }
9689 if test ${ac_cv_prog_RANLIB+y}
9691 printf %s "(cached) " >&6
9693 if test -n "$RANLIB"; then
9694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9700 case $as_dir in #(((
9703 *) as_dir=$as_dir/ ;;
9705 for ac_exec_ext in '' $ac_executable_extensions; do
9706 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9707 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9708 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9717 RANLIB=$ac_cv_prog_RANLIB
9718 if test -n "$RANLIB"; then
9719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9720 printf "%s\n" "$RANLIB" >&6; }
9722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9723 printf "%s\n" "no" >&6; }
9728 if test -z "$ac_cv_prog_RANLIB"; then
9729 ac_ct_RANLIB=$RANLIB
9730 # Extract the first word of "ranlib", so it can be a program name with args.
9731 set dummy ranlib; ac_word=$2
9732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9733 printf %s "checking for $ac_word... " >&6; }
9734 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9736 printf %s "(cached) " >&6
9738 if test -n "$ac_ct_RANLIB"; then
9739 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9745 case $as_dir in #(((
9748 *) as_dir=$as_dir/ ;;
9750 for ac_exec_ext in '' $ac_executable_extensions; do
9751 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9752 ac_cv_prog_ac_ct_RANLIB="ranlib"
9753 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9762 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9763 if test -n "$ac_ct_RANLIB"; then
9764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9765 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9768 printf "%s\n" "no" >&6; }
9771 if test "x$ac_ct_RANLIB" = x; then
9774 case $cross_compiling:$ac_tool_warned in
9776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9777 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9778 ac_tool_warned=yes ;;
9780 RANLIB=$ac_ct_RANLIB
9783 RANLIB="$ac_cv_prog_RANLIB"
9786 test -z "$RANLIB" && RANLIB=:
9793 # Determine commands to create old-style static archives.
9794 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9795 old_postinstall_cmds='chmod 644 $oldlib'
9796 old_postuninstall_cmds=
9798 if test -n "$RANLIB"; then
9801 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9804 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9807 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9812 lock_old_archive_extraction=yes ;;
9814 lock_old_archive_extraction=no ;;
9855 # If no C compiler was specified, use CC.
9858 # If no C compiler flags were specified, use CFLAGS.
9859 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9861 # Allow CC to be a program name with arguments.
9865 # Check for command to grab the raw symbol name followed by C symbol from nm.
9866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9867 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
9868 if test ${lt_cv_sys_global_symbol_pipe+y}
9870 printf %s "(cached) " >&6
9873 # These are sane defaults that work on at least a few old systems.
9874 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9876 # Character class describing NM global symbol codes.
9877 symcode='[BCDEGRST]'
9879 # Regexp to match symbols that can be accessed directly from C.
9880 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9882 # Define system-specific variables.
9887 cygwin* | mingw* | pw32* | cegcc*)
9888 symcode='[ABCDGISTW]'
9891 if test ia64 = "$host_cpu"; then
9892 symcode='[ABCDEGRST]'
9896 symcode='[BCDEGRST]'
9899 symcode='[BCDEGQRST]'
9910 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9918 # If we're using GNU nm, then use its standard symbol codes.
9919 case `$NM -V 2>&1` in
9920 *GNU* | *'with BFD'*)
9921 symcode='[ABCDGIRSTW]' ;;
9924 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9925 # Gets list of data symbols to import.
9926 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9927 # Adjust the below global symbol transforms to fixup imported variables.
9928 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9929 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9930 lt_c_name_lib_hook="\
9931 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9932 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9934 # Disable hooks by default.
9935 lt_cv_sys_global_symbol_to_import=
9941 # Transform an extracted symbol line into a proper C declaration.
9942 # Some systems (esp. on ia64) link data and code symbols differently,
9943 # so use this general approach.
9944 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9946 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9947 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9949 # Transform an extracted symbol line into symbol name and symbol address
9950 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9952 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9953 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9955 # Transform an extracted symbol line into symbol name with lib prefix and
9957 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9958 $lt_c_name_lib_hook\
9959 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9960 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9961 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9963 # Handle CRLF in mingw tool chain
9967 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9971 # Try without a prefix underscore, then with it.
9972 for ac_symprfx in "" "_"; do
9974 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9975 symxfrm="\\1 $ac_symprfx\\2 \\2"
9977 # Write the raw and C identifiers.
9978 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9979 # Fake it for dumpbin and say T for any non-static function,
9980 # D for any global variable and I for any imported variable.
9981 # Also find C++ and __fastcall symbols from MSVC++,
9982 # which start with @ or ?.
9983 lt_cv_sys_global_symbol_pipe="$AWK '"\
9984 " {last_section=section; section=\$ 3};"\
9985 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9986 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9987 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9988 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9989 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9990 " \$ 0!~/External *\|/{next};"\
9991 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9992 " {if(hide[section]) next};"\
9993 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9994 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9995 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9996 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9997 " ' prfx=^$ac_symprfx"
9999 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10001 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
10003 # Check to see that the pipe works correctly.
10007 cat > conftest.$ac_ext <<_LT_EOF
10012 void nm_test_func(void);
10013 void nm_test_func(void){}
10017 int main(){nm_test_var='a';nm_test_func();return(0);}
10020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10021 (eval $ac_compile) 2>&5
10023 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10024 test $ac_status = 0; }; then
10025 # Now try to grab the symbols.
10027 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10028 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10029 # Try sorting and uniquifying the output.
10030 if sort "$nlist" | uniq > "$nlist"T; then
10031 mv -f "$nlist"T "$nlist"
10036 # Make sure that we snagged all the symbols we need.
10037 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10038 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10039 cat <<_LT_EOF > conftest.$ac_ext
10040 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10041 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10042 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10043 relocations are performed -- see ld's documentation on pseudo-relocs. */
10044 # define LT_DLSYM_CONST
10045 #elif defined __osf__
10046 /* This system does not cope well with relocations in const data. */
10047 # define LT_DLSYM_CONST
10049 # define LT_DLSYM_CONST const
10057 # Now generate the symbol file.
10058 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10060 cat <<_LT_EOF >> conftest.$ac_ext
10062 /* The mapping between symbol names and symbols. */
10063 LT_DLSYM_CONST struct {
10067 lt__PROGRAM__LTX_preloaded_symbols[] =
10069 { "@PROGRAM@", (void *) 0 },
10071 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10072 cat <<\_LT_EOF >> conftest.$ac_ext
10076 /* This works around a problem in FreeBSD linker */
10077 #ifdef FREEBSD_WORKAROUND
10078 static const void *lt_preloaded_setup() {
10079 return lt__PROGRAM__LTX_preloaded_symbols;
10087 # Now try linking the two files.
10088 mv conftest.$ac_objext conftstm.$ac_objext
10089 lt_globsym_save_LIBS=$LIBS
10090 lt_globsym_save_CFLAGS=$CFLAGS
10091 LIBS=conftstm.$ac_objext
10092 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10094 (eval $ac_link) 2>&5
10096 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10097 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10100 LIBS=$lt_globsym_save_LIBS
10101 CFLAGS=$lt_globsym_save_CFLAGS
10103 echo "cannot find nm_test_func in $nlist" >&5
10106 echo "cannot find nm_test_var in $nlist" >&5
10109 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10112 echo "$progname: failed program was:" >&5
10113 cat conftest.$ac_ext >&5
10115 rm -rf conftest* conftst*
10117 # Do not use the global_symbol_pipe unless it works.
10118 if test yes = "$pipe_works"; then
10121 lt_cv_sys_global_symbol_pipe=
10127 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10128 lt_cv_sys_global_symbol_to_cdecl=
10130 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10132 printf "%s\n" "failed" >&6; }
10134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10135 printf "%s\n" "ok" >&6; }
10138 # Response file support.
10139 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10140 nm_file_list_spec='@'
10141 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10142 nm_file_list_spec='@'
10181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10182 printf %s "checking for sysroot... " >&6; }
10184 # Check whether --with-sysroot was given.
10185 if test ${with_sysroot+y}
10187 withval=$with_sysroot;
10194 case $with_sysroot in #(
10196 if test yes = "$GCC"; then
10197 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10201 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
10206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10207 printf "%s\n" "$with_sysroot" >&6; }
10208 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10213 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10220 printf %s "checking for a working dd... " >&6; }
10221 if test ${ac_cv_path_lt_DD+y}
10223 printf %s "(cached) " >&6
10225 printf 0123456789abcdef0123456789abcdef >conftest.i
10226 cat conftest.i conftest.i >conftest2.i
10228 if test -z "$lt_DD"; then
10229 ac_path_lt_DD_found=false
10230 # Loop through the user's path and test for each of PROGNAME-LIST
10231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10232 for as_dir in $PATH
10235 case $as_dir in #(((
10238 *) as_dir=$as_dir/ ;;
10242 for ac_exec_ext in '' $ac_executable_extensions; do
10243 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10244 as_fn_executable_p "$ac_path_lt_DD" || continue
10245 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10246 cmp -s conftest.i conftest.out \
10247 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10249 $ac_path_lt_DD_found && break 3
10254 if test -z "$ac_cv_path_lt_DD"; then
10258 ac_cv_path_lt_DD=$lt_DD
10261 rm -f conftest.i conftest2.i conftest.out
10263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10264 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10268 printf %s "checking how to truncate binary pipes... " >&6; }
10269 if test ${lt_cv_truncate_bin+y}
10271 printf %s "(cached) " >&6
10273 printf 0123456789abcdef0123456789abcdef >conftest.i
10274 cat conftest.i conftest.i >conftest2.i
10275 lt_cv_truncate_bin=
10276 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10277 cmp -s conftest.i conftest.out \
10278 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10280 rm -f conftest.i conftest2.i conftest.out
10281 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10284 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10292 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10293 func_cc_basename ()
10295 for cc_temp in $*""; do
10297 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10298 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10303 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10306 # Check whether --enable-libtool-lock was given.
10307 if test ${enable_libtool_lock+y}
10309 enableval=$enable_libtool_lock;
10312 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10314 # Some flags need to be propagated to the compiler or linker for good
10318 # Find out what ABI is being produced by ac_compile, and set mode
10319 # options accordingly.
10320 echo 'int i;' > conftest.$ac_ext
10321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10322 (eval $ac_compile) 2>&5
10324 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10325 test $ac_status = 0; }; then
10326 case `/usr/bin/file conftest.$ac_objext` in
10338 # Find out what ABI is being produced by ac_compile, and set linker
10339 # options accordingly.
10340 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10341 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10342 (eval $ac_compile) 2>&5
10344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10345 test $ac_status = 0; }; then
10346 if test yes = "$lt_cv_prog_gnu_ld"; then
10347 case `/usr/bin/file conftest.$ac_objext` in
10349 LD="${LD-ld} -melf32bsmip"
10352 LD="${LD-ld} -melf32bmipn32"
10355 LD="${LD-ld} -melf64bmip"
10359 case `/usr/bin/file conftest.$ac_objext` in
10376 # Find out what ABI is being produced by ac_compile, and set linker
10377 # options accordingly.
10378 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10379 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10380 (eval $ac_compile) 2>&5
10382 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10383 test $ac_status = 0; }; then
10385 case `/usr/bin/file conftest.$ac_objext` in
10393 case `/usr/bin/file conftest.$ac_objext` in
10395 emul="${emul}btsmip"
10398 emul="${emul}ltsmip"
10401 case `/usr/bin/file conftest.$ac_objext` in
10406 LD="${LD-ld} -m $emul"
10411 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10412 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10413 # Find out what ABI is being produced by ac_compile, and set linker
10414 # options accordingly. Note that the listed cases only cover the
10415 # situations where additional linker options are needed (such as when
10416 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10417 # vice versa); the common cases where no linker options are needed do
10418 # not appear in the list.
10419 echo 'int i;' > conftest.$ac_ext
10420 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10421 (eval $ac_compile) 2>&5
10423 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10424 test $ac_status = 0; }; then
10425 case `/usr/bin/file conftest.o` in
10428 x86_64-*kfreebsd*-gnu)
10429 LD="${LD-ld} -m elf_i386_fbsd"
10432 case `/usr/bin/file conftest.o` in
10434 LD="${LD-ld} -m elf32_x86_64"
10437 LD="${LD-ld} -m elf_i386"
10441 powerpc64le-*linux*)
10442 LD="${LD-ld} -m elf32lppclinux"
10445 LD="${LD-ld} -m elf32ppclinux"
10448 LD="${LD-ld} -m elf_s390"
10451 LD="${LD-ld} -m elf32_sparc"
10457 x86_64-*kfreebsd*-gnu)
10458 LD="${LD-ld} -m elf_x86_64_fbsd"
10461 LD="${LD-ld} -m elf_x86_64"
10464 LD="${LD-ld} -m elf64lppc"
10467 LD="${LD-ld} -m elf64ppc"
10469 s390*-*linux*|s390*-*tpf*)
10470 LD="${LD-ld} -m elf64_s390"
10473 LD="${LD-ld} -m elf64_sparc"
10483 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10484 SAVE_CFLAGS=$CFLAGS
10485 CFLAGS="$CFLAGS -belf"
10486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10487 printf %s "checking whether the C compiler needs -belf... " >&6; }
10488 if test ${lt_cv_cc_needs_belf+y}
10490 printf %s "(cached) " >&6
10493 ac_cpp='$CPP $CPPFLAGS'
10494 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10495 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10496 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10499 /* end confdefs.h. */
10508 if ac_fn_c_try_link "$LINENO"
10510 lt_cv_cc_needs_belf=yes
10512 lt_cv_cc_needs_belf=no
10514 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10515 conftest$ac_exeext conftest.$ac_ext
10517 ac_cpp='$CPP $CPPFLAGS'
10518 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10519 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10520 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10524 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10525 if test yes != "$lt_cv_cc_needs_belf"; then
10526 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10527 CFLAGS=$SAVE_CFLAGS
10531 # Find out what ABI is being produced by ac_compile, and set linker
10532 # options accordingly.
10533 echo 'int i;' > conftest.$ac_ext
10534 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10535 (eval $ac_compile) 2>&5
10537 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10538 test $ac_status = 0; }; then
10539 case `/usr/bin/file conftest.o` in
10541 case $lt_cv_prog_gnu_ld in
10544 i?86-*-solaris*|x86_64-*-solaris*)
10545 LD="${LD-ld} -m elf_x86_64"
10548 LD="${LD-ld} -m elf64_sparc"
10551 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10552 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10557 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10569 need_locks=$enable_libtool_lock
10571 if test -n "$ac_tool_prefix"; then
10572 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10573 set dummy ${ac_tool_prefix}mt; ac_word=$2
10574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10575 printf %s "checking for $ac_word... " >&6; }
10576 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10578 printf %s "(cached) " >&6
10580 if test -n "$MANIFEST_TOOL"; then
10581 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10584 for as_dir in $PATH
10587 case $as_dir in #(((
10590 *) as_dir=$as_dir/ ;;
10592 for ac_exec_ext in '' $ac_executable_extensions; do
10593 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10594 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10595 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10604 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10605 if test -n "$MANIFEST_TOOL"; then
10606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10607 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10610 printf "%s\n" "no" >&6; }
10615 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10616 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10617 # Extract the first word of "mt", so it can be a program name with args.
10618 set dummy mt; ac_word=$2
10619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10620 printf %s "checking for $ac_word... " >&6; }
10621 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10623 printf %s "(cached) " >&6
10625 if test -n "$ac_ct_MANIFEST_TOOL"; then
10626 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10629 for as_dir in $PATH
10632 case $as_dir in #(((
10635 *) as_dir=$as_dir/ ;;
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10640 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10649 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10650 if test -n "$ac_ct_MANIFEST_TOOL"; then
10651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10652 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 printf "%s\n" "no" >&6; }
10658 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10661 case $cross_compiling:$ac_tool_warned in
10663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10664 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10665 ac_tool_warned=yes ;;
10667 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10670 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10673 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10675 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10676 if test ${lt_cv_path_mainfest_tool+y}
10678 printf %s "(cached) " >&6
10680 lt_cv_path_mainfest_tool=no
10681 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10682 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10683 cat conftest.err >&5
10684 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10685 lt_cv_path_mainfest_tool=yes
10689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10690 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10691 if test yes != "$lt_cv_path_mainfest_tool"; then
10701 rhapsody* | darwin*)
10702 if test -n "$ac_tool_prefix"; then
10703 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10704 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10706 printf %s "checking for $ac_word... " >&6; }
10707 if test ${ac_cv_prog_DSYMUTIL+y}
10709 printf %s "(cached) " >&6
10711 if test -n "$DSYMUTIL"; then
10712 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10715 for as_dir in $PATH
10718 case $as_dir in #(((
10721 *) as_dir=$as_dir/ ;;
10723 for ac_exec_ext in '' $ac_executable_extensions; do
10724 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10725 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10726 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10735 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10736 if test -n "$DSYMUTIL"; then
10737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10738 printf "%s\n" "$DSYMUTIL" >&6; }
10740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10741 printf "%s\n" "no" >&6; }
10746 if test -z "$ac_cv_prog_DSYMUTIL"; then
10747 ac_ct_DSYMUTIL=$DSYMUTIL
10748 # Extract the first word of "dsymutil", so it can be a program name with args.
10749 set dummy dsymutil; ac_word=$2
10750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10751 printf %s "checking for $ac_word... " >&6; }
10752 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10754 printf %s "(cached) " >&6
10756 if test -n "$ac_ct_DSYMUTIL"; then
10757 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10760 for as_dir in $PATH
10763 case $as_dir in #(((
10766 *) as_dir=$as_dir/ ;;
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10770 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10780 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10781 if test -n "$ac_ct_DSYMUTIL"; then
10782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10783 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
10785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 printf "%s\n" "no" >&6; }
10789 if test "x$ac_ct_DSYMUTIL" = x; then
10792 case $cross_compiling:$ac_tool_warned in
10794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10795 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10796 ac_tool_warned=yes ;;
10798 DSYMUTIL=$ac_ct_DSYMUTIL
10801 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10804 if test -n "$ac_tool_prefix"; then
10805 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10806 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10808 printf %s "checking for $ac_word... " >&6; }
10809 if test ${ac_cv_prog_NMEDIT+y}
10811 printf %s "(cached) " >&6
10813 if test -n "$NMEDIT"; then
10814 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10817 for as_dir in $PATH
10820 case $as_dir in #(((
10823 *) as_dir=$as_dir/ ;;
10825 for ac_exec_ext in '' $ac_executable_extensions; do
10826 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10827 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10828 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10837 NMEDIT=$ac_cv_prog_NMEDIT
10838 if test -n "$NMEDIT"; then
10839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10840 printf "%s\n" "$NMEDIT" >&6; }
10842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10843 printf "%s\n" "no" >&6; }
10848 if test -z "$ac_cv_prog_NMEDIT"; then
10849 ac_ct_NMEDIT=$NMEDIT
10850 # Extract the first word of "nmedit", so it can be a program name with args.
10851 set dummy nmedit; ac_word=$2
10852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10853 printf %s "checking for $ac_word... " >&6; }
10854 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
10856 printf %s "(cached) " >&6
10858 if test -n "$ac_ct_NMEDIT"; then
10859 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10865 case $as_dir in #(((
10868 *) as_dir=$as_dir/ ;;
10870 for ac_exec_ext in '' $ac_executable_extensions; do
10871 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10872 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10873 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10882 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10883 if test -n "$ac_ct_NMEDIT"; then
10884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10885 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10888 printf "%s\n" "no" >&6; }
10891 if test "x$ac_ct_NMEDIT" = x; then
10894 case $cross_compiling:$ac_tool_warned in
10896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10897 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10898 ac_tool_warned=yes ;;
10900 NMEDIT=$ac_ct_NMEDIT
10903 NMEDIT="$ac_cv_prog_NMEDIT"
10906 if test -n "$ac_tool_prefix"; then
10907 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10908 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10910 printf %s "checking for $ac_word... " >&6; }
10911 if test ${ac_cv_prog_LIPO+y}
10913 printf %s "(cached) " >&6
10915 if test -n "$LIPO"; then
10916 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10919 for as_dir in $PATH
10922 case $as_dir in #(((
10925 *) as_dir=$as_dir/ ;;
10927 for ac_exec_ext in '' $ac_executable_extensions; do
10928 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10929 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10930 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10939 LIPO=$ac_cv_prog_LIPO
10940 if test -n "$LIPO"; then
10941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10942 printf "%s\n" "$LIPO" >&6; }
10944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10945 printf "%s\n" "no" >&6; }
10950 if test -z "$ac_cv_prog_LIPO"; then
10952 # Extract the first word of "lipo", so it can be a program name with args.
10953 set dummy lipo; ac_word=$2
10954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10955 printf %s "checking for $ac_word... " >&6; }
10956 if test ${ac_cv_prog_ac_ct_LIPO+y}
10958 printf %s "(cached) " >&6
10960 if test -n "$ac_ct_LIPO"; then
10961 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10964 for as_dir in $PATH
10967 case $as_dir in #(((
10970 *) as_dir=$as_dir/ ;;
10972 for ac_exec_ext in '' $ac_executable_extensions; do
10973 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10974 ac_cv_prog_ac_ct_LIPO="lipo"
10975 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10984 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10985 if test -n "$ac_ct_LIPO"; then
10986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10987 printf "%s\n" "$ac_ct_LIPO" >&6; }
10989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 printf "%s\n" "no" >&6; }
10993 if test "x$ac_ct_LIPO" = x; then
10996 case $cross_compiling:$ac_tool_warned in
10998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11000 ac_tool_warned=yes ;;
11005 LIPO="$ac_cv_prog_LIPO"
11008 if test -n "$ac_tool_prefix"; then
11009 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11010 set dummy ${ac_tool_prefix}otool; ac_word=$2
11011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11012 printf %s "checking for $ac_word... " >&6; }
11013 if test ${ac_cv_prog_OTOOL+y}
11015 printf %s "(cached) " >&6
11017 if test -n "$OTOOL"; then
11018 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11021 for as_dir in $PATH
11024 case $as_dir in #(((
11027 *) as_dir=$as_dir/ ;;
11029 for ac_exec_ext in '' $ac_executable_extensions; do
11030 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11031 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11032 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11041 OTOOL=$ac_cv_prog_OTOOL
11042 if test -n "$OTOOL"; then
11043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11044 printf "%s\n" "$OTOOL" >&6; }
11046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11047 printf "%s\n" "no" >&6; }
11052 if test -z "$ac_cv_prog_OTOOL"; then
11054 # Extract the first word of "otool", so it can be a program name with args.
11055 set dummy otool; ac_word=$2
11056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11057 printf %s "checking for $ac_word... " >&6; }
11058 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11060 printf %s "(cached) " >&6
11062 if test -n "$ac_ct_OTOOL"; then
11063 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11069 case $as_dir in #(((
11072 *) as_dir=$as_dir/ ;;
11074 for ac_exec_ext in '' $ac_executable_extensions; do
11075 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11076 ac_cv_prog_ac_ct_OTOOL="otool"
11077 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11086 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11087 if test -n "$ac_ct_OTOOL"; then
11088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11089 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11092 printf "%s\n" "no" >&6; }
11095 if test "x$ac_ct_OTOOL" = x; then
11098 case $cross_compiling:$ac_tool_warned in
11100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11102 ac_tool_warned=yes ;;
11107 OTOOL="$ac_cv_prog_OTOOL"
11110 if test -n "$ac_tool_prefix"; then
11111 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11112 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11114 printf %s "checking for $ac_word... " >&6; }
11115 if test ${ac_cv_prog_OTOOL64+y}
11117 printf %s "(cached) " >&6
11119 if test -n "$OTOOL64"; then
11120 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11123 for as_dir in $PATH
11126 case $as_dir in #(((
11129 *) as_dir=$as_dir/ ;;
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11134 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11143 OTOOL64=$ac_cv_prog_OTOOL64
11144 if test -n "$OTOOL64"; then
11145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11146 printf "%s\n" "$OTOOL64" >&6; }
11148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11149 printf "%s\n" "no" >&6; }
11154 if test -z "$ac_cv_prog_OTOOL64"; then
11155 ac_ct_OTOOL64=$OTOOL64
11156 # Extract the first word of "otool64", so it can be a program name with args.
11157 set dummy otool64; ac_word=$2
11158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11159 printf %s "checking for $ac_word... " >&6; }
11160 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11162 printf %s "(cached) " >&6
11164 if test -n "$ac_ct_OTOOL64"; then
11165 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11171 case $as_dir in #(((
11174 *) as_dir=$as_dir/ ;;
11176 for ac_exec_ext in '' $ac_executable_extensions; do
11177 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11178 ac_cv_prog_ac_ct_OTOOL64="otool64"
11179 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11188 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11189 if test -n "$ac_ct_OTOOL64"; then
11190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11191 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11194 printf "%s\n" "no" >&6; }
11197 if test "x$ac_ct_OTOOL64" = x; then
11200 case $cross_compiling:$ac_tool_warned in
11202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11203 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11204 ac_tool_warned=yes ;;
11206 OTOOL64=$ac_ct_OTOOL64
11209 OTOOL64="$ac_cv_prog_OTOOL64"
11238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11239 printf %s "checking for -single_module linker flag... " >&6; }
11240 if test ${lt_cv_apple_cc_single_mod+y}
11242 printf %s "(cached) " >&6
11244 lt_cv_apple_cc_single_mod=no
11245 if test -z "$LT_MULTI_MODULE"; then
11246 # By default we will add the -single_module flag. You can override
11247 # by either setting the environment variable LT_MULTI_MODULE
11248 # non-empty at configure time, or by adding -multi_module to the
11250 rm -rf libconftest.dylib*
11251 echo "int foo(void){return 1;}" > conftest.c
11252 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11253 -dynamiclib -Wl,-single_module conftest.c" >&5
11254 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11255 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11257 # If there is a non-empty error log, and "single_module"
11258 # appears in it, assume the flag caused a linker warning
11259 if test -s conftest.err && $GREP single_module conftest.err; then
11260 cat conftest.err >&5
11261 # Otherwise, if the output was created with a 0 exit code from
11262 # the compiler, it worked.
11263 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11264 lt_cv_apple_cc_single_mod=yes
11266 cat conftest.err >&5
11268 rm -rf libconftest.dylib*
11272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11273 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11276 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11277 if test ${lt_cv_ld_exported_symbols_list+y}
11279 printf %s "(cached) " >&6
11281 lt_cv_ld_exported_symbols_list=no
11282 save_LDFLAGS=$LDFLAGS
11283 echo "_main" > conftest.sym
11284 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11286 /* end confdefs.h. */
11295 if ac_fn_c_try_link "$LINENO"
11297 lt_cv_ld_exported_symbols_list=yes
11299 lt_cv_ld_exported_symbols_list=no
11301 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LDFLAGS=$save_LDFLAGS
11306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11307 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11310 printf %s "checking for -force_load linker flag... " >&6; }
11311 if test ${lt_cv_ld_force_load+y}
11313 printf %s "(cached) " >&6
11315 lt_cv_ld_force_load=no
11316 cat > conftest.c << _LT_EOF
11317 int forced_loaded() { return 2;}
11319 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11320 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11321 echo "$AR cr libconftest.a conftest.o" >&5
11322 $AR cr libconftest.a conftest.o 2>&5
11323 echo "$RANLIB libconftest.a" >&5
11324 $RANLIB libconftest.a 2>&5
11325 cat > conftest.c << _LT_EOF
11326 int main() { return 0;}
11328 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11329 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11331 if test -s conftest.err && $GREP force_load conftest.err; then
11332 cat conftest.err >&5
11333 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11334 lt_cv_ld_force_load=yes
11336 cat conftest.err >&5
11338 rm -f conftest.err libconftest.a conftest conftest.c
11339 rm -rf conftest.dSYM
11342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11343 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11345 rhapsody* | darwin1.[012])
11346 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11348 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11349 darwin*) # darwin 5.x on
11350 # if running on 10.5 or later, the deployment target defaults
11351 # to the OS version, if on x86, and 10.4, the deployment
11352 # target defaults to 10.4. Don't you love it?
11353 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
11354 10.0,*86*-darwin8*|10.0,*-darwin[912]*)
11355 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11357 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11359 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11363 if test yes = "$lt_cv_apple_cc_single_mod"; then
11364 _lt_dar_single_mod='$single_module'
11366 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11367 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11369 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11371 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11372 _lt_dsymutil='~$DSYMUTIL $lib || :'
11379 # func_munge_path_list VARIABLE PATH
11380 # -----------------------------------
11381 # VARIABLE is name of variable containing _space_ separated list of
11382 # directories to be munged by the contents of PATH, which is string
11385 # string "DIR[ DIR]" will be prepended to VARIABLE
11387 # string "DIR[ DIR]" will be appended to VARIABLE
11388 # "DIRP[:DIRP]::[DIRA:]DIRA"
11389 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11390 # "DIRA[ DIRA]" will be appended to VARIABLE
11392 # VARIABLE will be replaced by "DIR[ DIR]"
11393 func_munge_path_list ()
11399 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11402 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11405 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11406 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11409 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11414 ac_header= ac_cache=
11415 for ac_item in $ac_header_c_list
11417 if test $ac_cache; then
11418 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
11419 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
11420 printf "%s\n" "#define $ac_item 1" >> confdefs.h
11422 ac_header= ac_cache=
11423 elif test $ac_header; then
11437 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
11440 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
11443 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11445 if test "x$ac_cv_header_dlfcn_h" = xyes
11447 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11451 # ------------------------------------ #
11452 # Determine libtool default behavior #
11453 # ------------------------------------ #
11456 # Default behavior is to enable shared and static libraries on systems
11457 # where libtool knows how to build both library versions, and does not
11458 # require separate configuration and build runs for each flavor.
11461 xc_lt_want_enable_shared='yes'
11462 xc_lt_want_enable_static='yes'
11465 # User may have disabled shared or static libraries.
11467 case "x$enable_shared" in # (
11469 xc_lt_want_enable_shared='no'
11472 case "x$enable_static" in # (
11474 xc_lt_want_enable_static='no'
11477 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11478 test "x$xc_lt_want_enable_static" = 'xno'; then
11479 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11483 # Default behavior on systems that require independent configuration
11484 # and build runs for shared and static is to enable shared libraries
11485 # and disable static ones. On these systems option '--disable-shared'
11486 # must be used in order to build a proper static library.
11489 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11490 test "x$xc_lt_want_enable_static" = 'xyes'; then
11491 case $host_os in # (
11492 pw32* | cegcc* | os2* | aix*)
11493 xc_lt_want_enable_static='no'
11499 # Make libtool aware of current shared and static library preferences
11500 # taking in account that, depending on host characteristics, libtool
11501 # may modify these option preferences later in this configure script.
11504 enable_shared=$xc_lt_want_enable_shared
11505 enable_static=$xc_lt_want_enable_static
11508 # Default behavior is to build PIC objects for shared libraries and
11509 # non-PIC objects for static libraries.
11512 xc_lt_want_with_pic='default'
11515 # User may have specified PIC preference.
11518 case "x$with_pic" in # ((
11520 xc_lt_want_with_pic='no'
11523 xc_lt_want_with_pic='yes'
11528 # Default behavior on some systems where building a shared library out
11529 # of non-PIC compiled objects will fail with following linker error
11530 # "relocation R_X86_64_32 can not be used when making a shared object"
11531 # is to build PIC objects even for static libraries. This behavior may
11532 # be overridden using 'configure --disable-shared --without-pic'.
11535 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11536 case $host_cpu in # (
11537 x86_64 | amd64 | ia64)
11538 case $host_os in # (
11539 linux* | freebsd* | midnightbsd*)
11540 xc_lt_want_with_pic='yes'
11548 # Make libtool aware of current PIC preference taking in account that,
11549 # depending on host characteristics, libtool may modify PIC default
11550 # behavior to fit host system idiosyncrasies later in this script.
11553 with_pic=$xc_lt_want_with_pic
11555 ## ----------------------- ##
11556 ## Start of libtool code ##
11557 ## ----------------------- ##
11563 enable_win32_dll=yes
11566 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11567 if test -n "$ac_tool_prefix"; then
11568 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11569 set dummy ${ac_tool_prefix}as; ac_word=$2
11570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11571 printf %s "checking for $ac_word... " >&6; }
11572 if test ${ac_cv_prog_AS+y}
11574 printf %s "(cached) " >&6
11576 if test -n "$AS"; then
11577 ac_cv_prog_AS="$AS" # Let the user override the test.
11579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11580 for as_dir in $PATH
11583 case $as_dir in #(((
11586 *) as_dir=$as_dir/ ;;
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_AS="${ac_tool_prefix}as"
11591 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11601 if test -n "$AS"; then
11602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11603 printf "%s\n" "$AS" >&6; }
11605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 printf "%s\n" "no" >&6; }
11611 if test -z "$ac_cv_prog_AS"; then
11613 # Extract the first word of "as", so it can be a program name with args.
11614 set dummy as; ac_word=$2
11615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11616 printf %s "checking for $ac_word... " >&6; }
11617 if test ${ac_cv_prog_ac_ct_AS+y}
11619 printf %s "(cached) " >&6
11621 if test -n "$ac_ct_AS"; then
11622 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11625 for as_dir in $PATH
11628 case $as_dir in #(((
11631 *) as_dir=$as_dir/ ;;
11633 for ac_exec_ext in '' $ac_executable_extensions; do
11634 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11635 ac_cv_prog_ac_ct_AS="as"
11636 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11645 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11646 if test -n "$ac_ct_AS"; then
11647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11648 printf "%s\n" "$ac_ct_AS" >&6; }
11650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11651 printf "%s\n" "no" >&6; }
11654 if test "x$ac_ct_AS" = x; then
11657 case $cross_compiling:$ac_tool_warned in
11659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11660 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11661 ac_tool_warned=yes ;;
11666 AS="$ac_cv_prog_AS"
11669 if test -n "$ac_tool_prefix"; then
11670 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11671 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11673 printf %s "checking for $ac_word... " >&6; }
11674 if test ${ac_cv_prog_DLLTOOL+y}
11676 printf %s "(cached) " >&6
11678 if test -n "$DLLTOOL"; then
11679 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11682 for as_dir in $PATH
11685 case $as_dir in #(((
11688 *) as_dir=$as_dir/ ;;
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11693 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11702 DLLTOOL=$ac_cv_prog_DLLTOOL
11703 if test -n "$DLLTOOL"; then
11704 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11705 printf "%s\n" "$DLLTOOL" >&6; }
11707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708 printf "%s\n" "no" >&6; }
11713 if test -z "$ac_cv_prog_DLLTOOL"; then
11714 ac_ct_DLLTOOL=$DLLTOOL
11715 # Extract the first word of "dlltool", so it can be a program name with args.
11716 set dummy dlltool; ac_word=$2
11717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11718 printf %s "checking for $ac_word... " >&6; }
11719 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11721 printf %s "(cached) " >&6
11723 if test -n "$ac_ct_DLLTOOL"; then
11724 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 case $as_dir in #(((
11733 *) as_dir=$as_dir/ ;;
11735 for ac_exec_ext in '' $ac_executable_extensions; do
11736 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11737 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11738 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11747 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11748 if test -n "$ac_ct_DLLTOOL"; then
11749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11750 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 printf "%s\n" "no" >&6; }
11756 if test "x$ac_ct_DLLTOOL" = x; then
11759 case $cross_compiling:$ac_tool_warned in
11761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11762 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11763 ac_tool_warned=yes ;;
11765 DLLTOOL=$ac_ct_DLLTOOL
11768 DLLTOOL="$ac_cv_prog_DLLTOOL"
11771 if test -n "$ac_tool_prefix"; then
11772 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11773 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11775 printf %s "checking for $ac_word... " >&6; }
11776 if test ${ac_cv_prog_OBJDUMP+y}
11778 printf %s "(cached) " >&6
11780 if test -n "$OBJDUMP"; then
11781 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11784 for as_dir in $PATH
11787 case $as_dir in #(((
11790 *) as_dir=$as_dir/ ;;
11792 for ac_exec_ext in '' $ac_executable_extensions; do
11793 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11794 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11795 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11804 OBJDUMP=$ac_cv_prog_OBJDUMP
11805 if test -n "$OBJDUMP"; then
11806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11807 printf "%s\n" "$OBJDUMP" >&6; }
11809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11810 printf "%s\n" "no" >&6; }
11815 if test -z "$ac_cv_prog_OBJDUMP"; then
11816 ac_ct_OBJDUMP=$OBJDUMP
11817 # Extract the first word of "objdump", so it can be a program name with args.
11818 set dummy objdump; ac_word=$2
11819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11820 printf %s "checking for $ac_word... " >&6; }
11821 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
11823 printf %s "(cached) " >&6
11825 if test -n "$ac_ct_OBJDUMP"; then
11826 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11829 for as_dir in $PATH
11832 case $as_dir in #(((
11835 *) as_dir=$as_dir/ ;;
11837 for ac_exec_ext in '' $ac_executable_extensions; do
11838 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11839 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11840 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11849 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11850 if test -n "$ac_ct_OBJDUMP"; then
11851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11852 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
11854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11855 printf "%s\n" "no" >&6; }
11858 if test "x$ac_ct_OBJDUMP" = x; then
11861 case $cross_compiling:$ac_tool_warned in
11863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11864 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11865 ac_tool_warned=yes ;;
11867 OBJDUMP=$ac_ct_OBJDUMP
11870 OBJDUMP="$ac_cv_prog_OBJDUMP"
11876 test -z "$AS" && AS=as
11882 test -z "$DLLTOOL" && DLLTOOL=dlltool
11888 test -z "$OBJDUMP" && OBJDUMP=objdump
11900 # Check whether --enable-shared was given.
11901 if test ${enable_shared+y}
11903 enableval=$enable_shared; p=${PACKAGE-default}
11905 yes) enable_shared=yes ;;
11906 no) enable_shared=no ;;
11909 # Look at the argument we got. We use all the common list separators.
11910 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11911 for pkg in $enableval; do
11913 if test "X$pkg" = "X$p"; then
11932 # Check whether --enable-static was given.
11933 if test ${enable_static+y}
11935 enableval=$enable_static; p=${PACKAGE-default}
11937 yes) enable_static=yes ;;
11938 no) enable_static=no ;;
11941 # Look at the argument we got. We use all the common list separators.
11942 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11943 for pkg in $enableval; do
11945 if test "X$pkg" = "X$p"; then
11965 # Check whether --with-pic was given.
11966 if test ${with_pic+y}
11968 withval=$with_pic; lt_p=${PACKAGE-default}
11970 yes|no) pic_mode=$withval ;;
11973 # Look at the argument we got. We use all the common list separators.
11974 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11975 for lt_pkg in $withval; do
11977 if test "X$lt_pkg" = "X$lt_p"; then
11995 # Check whether --enable-fast-install was given.
11996 if test ${enable_fast_install+y}
11998 enableval=$enable_fast_install; p=${PACKAGE-default}
12000 yes) enable_fast_install=yes ;;
12001 no) enable_fast_install=no ;;
12003 enable_fast_install=no
12004 # Look at the argument we got. We use all the common list separators.
12005 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12006 for pkg in $enableval; do
12008 if test "X$pkg" = "X$p"; then
12009 enable_fast_install=yes
12016 enable_fast_install=yes
12026 shared_archive_member_spec=
12027 case $host,$enable_shared in
12028 power*-*-aix[5-9]*,yes)
12029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12030 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12032 # Check whether --with-aix-soname was given.
12033 if test ${with_aix_soname+y}
12035 withval=$with_aix_soname; case $withval in
12039 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12042 lt_cv_with_aix_soname=$with_aix_soname
12044 if test ${lt_cv_with_aix_soname+y}
12046 printf %s "(cached) " >&6
12048 lt_cv_with_aix_soname=aix
12051 with_aix_soname=$lt_cv_with_aix_soname
12054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12055 printf "%s\n" "$with_aix_soname" >&6; }
12056 if test aix != "$with_aix_soname"; then
12057 # For the AIX way of multilib, we name the shared archive member
12058 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12059 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12060 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12061 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12062 if test 64 = "${OBJECT_MODE-32}"; then
12063 shared_archive_member_spec=shr_64
12065 shared_archive_member_spec=shr
12070 with_aix_soname=aix
12083 # This can be used to rebuild libtool when needed
12084 LIBTOOL_DEPS=$ltmain
12086 # Always use our own libtool.
12087 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12118 test -z "$LN_S" && LN_S="ln -s"
12133 if test -n "${ZSH_VERSION+set}"; then
12134 setopt NO_GLOB_SUBST
12137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12138 printf %s "checking for objdir... " >&6; }
12139 if test ${lt_cv_objdir+y}
12141 printf %s "(cached) " >&6
12143 rm -f .libs 2>/dev/null
12144 mkdir .libs 2>/dev/null
12145 if test -d .libs; then
12148 # MS-DOS does not allow filenames that begin with a dot.
12151 rmdir .libs 2>/dev/null
12153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12154 printf "%s\n" "$lt_cv_objdir" >&6; }
12155 objdir=$lt_cv_objdir
12161 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12168 # AIX sometimes has problems with the GCC collect2 program. For some
12169 # reason, if we set the COLLECT_NAMES environment variable, the problems
12170 # vanish in a puff of smoke.
12171 if test set != "${COLLECT_NAMES+set}"; then
12173 export COLLECT_NAMES
12178 # Global variables:
12180 can_build_shared=yes
12182 # All known linkers require a '.a' archive for static linking (except MSVC,
12183 # which needs '.lib').
12186 with_gnu_ld=$lt_cv_prog_gnu_ld
12191 # Set sane defaults for various variables
12192 test -z "$CC" && CC=cc
12193 test -z "$LTCC" && LTCC=$CC
12194 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12195 test -z "$LD" && LD=ld
12196 test -z "$ac_objext" && ac_objext=o
12198 func_cc_basename $compiler
12199 cc_basename=$func_cc_basename_result
12202 # Only perform the check for file, if the check method requires it
12203 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12204 case $deplibs_check_method in
12206 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12208 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12209 if test ${lt_cv_path_MAGIC_CMD+y}
12211 printf %s "(cached) " >&6
12215 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12218 lt_save_MAGIC_CMD=$MAGIC_CMD
12219 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12220 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12221 for ac_dir in $ac_dummy; do
12223 test -z "$ac_dir" && ac_dir=.
12224 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12225 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12226 if test -n "$file_magic_test_file"; then
12227 case $deplibs_check_method in
12229 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12230 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12231 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12232 $EGREP "$file_magic_regex" > /dev/null; then
12237 *** Warning: the command libtool uses to detect shared libraries,
12238 *** $file_magic_cmd, produces output that libtool cannot recognize.
12239 *** The result is that libtool may fail to recognize shared libraries
12240 *** as such. This will affect the creation of libtool libraries that
12241 *** depend on shared libraries, but programs linked with such libtool
12242 *** libraries will work regardless of this problem. Nevertheless, you
12243 *** may want to report the problem to your system manager and/or to
12244 *** bug-libtool@gnu.org
12254 MAGIC_CMD=$lt_save_MAGIC_CMD
12259 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12260 if test -n "$MAGIC_CMD"; then
12261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12262 printf "%s\n" "$MAGIC_CMD" >&6; }
12264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12265 printf "%s\n" "no" >&6; }
12272 if test -z "$lt_cv_path_MAGIC_CMD"; then
12273 if test -n "$ac_tool_prefix"; then
12274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12275 printf %s "checking for file... " >&6; }
12276 if test ${lt_cv_path_MAGIC_CMD+y}
12278 printf %s "(cached) " >&6
12282 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12285 lt_save_MAGIC_CMD=$MAGIC_CMD
12286 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12287 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12288 for ac_dir in $ac_dummy; do
12290 test -z "$ac_dir" && ac_dir=.
12291 if test -f "$ac_dir/file"; then
12292 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12293 if test -n "$file_magic_test_file"; then
12294 case $deplibs_check_method in
12296 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12297 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12298 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12299 $EGREP "$file_magic_regex" > /dev/null; then
12304 *** Warning: the command libtool uses to detect shared libraries,
12305 *** $file_magic_cmd, produces output that libtool cannot recognize.
12306 *** The result is that libtool may fail to recognize shared libraries
12307 *** as such. This will affect the creation of libtool libraries that
12308 *** depend on shared libraries, but programs linked with such libtool
12309 *** libraries will work regardless of this problem. Nevertheless, you
12310 *** may want to report the problem to your system manager and/or to
12311 *** bug-libtool@gnu.org
12321 MAGIC_CMD=$lt_save_MAGIC_CMD
12326 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12327 if test -n "$MAGIC_CMD"; then
12328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12329 printf "%s\n" "$MAGIC_CMD" >&6; }
12331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12332 printf "%s\n" "no" >&6; }
12345 # Use C for the default configuration in the libtool script
12349 ac_cpp='$CPP $CPPFLAGS'
12350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12355 # Source file extension for C test sources.
12358 # Object file extension for compiled C test sources.
12362 # Code to be used in simple compile tests
12363 lt_simple_compile_test_code="int some_variable = 0;"
12365 # Code to be used in simple link tests
12366 lt_simple_link_test_code='int main(){return(0);}'
12374 # If no C compiler was specified, use CC.
12377 # If no C compiler flags were specified, use CFLAGS.
12378 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12380 # Allow CC to be a program name with arguments.
12383 # Save the default compiler, since it gets overwritten when the other
12384 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12385 compiler_DEFAULT=$CC
12387 # save warnings/boilerplate of simple test code
12388 ac_outfile=conftest.$ac_objext
12389 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12390 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12391 _lt_compiler_boilerplate=`cat conftest.err`
12394 ac_outfile=conftest.$ac_objext
12395 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12396 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12397 _lt_linker_boilerplate=`cat conftest.err`
12402 ## There is no encapsulation within the following macros, do not change
12403 ## the running order or otherwise move them around unless you know exactly
12404 ## what you are doing...
12405 if test -n "$compiler"; then
12407 lt_prog_compiler_no_builtin_flag=
12409 if test yes = "$GCC"; then
12410 case $cc_basename in
12412 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12414 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12418 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12419 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12421 printf %s "(cached) " >&6
12423 lt_cv_prog_compiler_rtti_exceptions=no
12424 ac_outfile=conftest.$ac_objext
12425 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12426 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12427 # Insert the option either (1) after the last *FLAGS variable, or
12428 # (2) before a word containing "conftest.", or (3) at the end.
12429 # Note that $ac_compile itself does not contain backslashes and begins
12430 # with a dollar sign (not a hyphen), so the echo should work correctly.
12431 # The option is referenced via a variable to avoid confusing sed.
12432 lt_compile=`echo "$ac_compile" | $SED \
12433 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12434 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12435 -e 's:$: $lt_compiler_flag:'`
12436 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12437 (eval "$lt_compile" 2>conftest.err)
12439 cat conftest.err >&5
12440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441 if (exit $ac_status) && test -s "$ac_outfile"; then
12442 # The compiler can only warn and ignore the option if not recognized
12443 # So say no if there are warnings other than the usual output.
12444 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12445 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12446 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12447 lt_cv_prog_compiler_rtti_exceptions=yes
12453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12454 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12456 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12457 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12469 lt_prog_compiler_wl=
12470 lt_prog_compiler_pic=
12471 lt_prog_compiler_static=
12474 if test yes = "$GCC"; then
12475 lt_prog_compiler_wl='-Wl,'
12476 lt_prog_compiler_static='-static'
12480 # All AIX code is PIC.
12481 if test ia64 = "$host_cpu"; then
12482 # AIX 5 now supports IA64 processor
12483 lt_prog_compiler_static='-Bstatic'
12485 lt_prog_compiler_pic='-fPIC'
12491 # see comment about AmigaOS4 .so support
12492 lt_prog_compiler_pic='-fPIC'
12495 # FIXME: we need at least 68020 code to build shared libraries, but
12496 # adding the '-m68020' flag to GCC prevents building anything better,
12498 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12503 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12504 # PIC is the default for these OSes.
12507 mingw* | cygwin* | pw32* | os2* | cegcc*)
12508 # This hack is so that the source file can tell whether it is being
12509 # built for inclusion in a dll (and should export symbols for example).
12510 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12511 # (--disable-auto-import) libraries
12512 lt_prog_compiler_pic='-DDLL_EXPORT'
12515 lt_prog_compiler_static='$wl-static'
12520 darwin* | rhapsody*)
12521 # PIC is the default on this platform
12522 # Common symbols not allowed in MH_DYLIB files
12523 lt_prog_compiler_pic='-fno-common'
12527 # PIC is the default for Haiku.
12528 # The "-static" flag exists, but is broken.
12529 lt_prog_compiler_static=
12533 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12534 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12535 # sets the default TLS model and affects inlining.
12541 lt_prog_compiler_pic='-fPIC'
12547 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12548 # Instead, we relocate shared libraries at runtime.
12552 # Just because we use GCC doesn't mean we suddenly get shared libraries
12553 # on systems that don't support them.
12554 lt_prog_compiler_can_build_shared=no
12559 # QNX uses GNU C++, but need to define -shared option too, otherwise
12560 # it will coredump.
12561 lt_prog_compiler_pic='-fPIC -shared'
12565 if test -d /usr/nec; then
12566 lt_prog_compiler_pic=-Kconform_pic
12571 lt_prog_compiler_pic='-fPIC'
12575 case $cc_basename in
12576 nvcc*) # Cuda Compiler Driver 2.2
12577 lt_prog_compiler_wl='-Xlinker '
12578 if test -n "$lt_prog_compiler_pic"; then
12579 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12584 # PORTME Check for flag to pass linker flags through the system compiler.
12587 lt_prog_compiler_wl='-Wl,'
12588 if test ia64 = "$host_cpu"; then
12589 # AIX 5 now supports IA64 processor
12590 lt_prog_compiler_static='-Bstatic'
12592 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12596 darwin* | rhapsody*)
12597 # PIC is the default on this platform
12598 # Common symbols not allowed in MH_DYLIB files
12599 lt_prog_compiler_pic='-fno-common'
12600 case $cc_basename in
12602 # NAG Fortran compiler
12603 lt_prog_compiler_wl='-Wl,-Wl,,'
12604 lt_prog_compiler_pic='-PIC'
12605 lt_prog_compiler_static='-Bstatic'
12610 mingw* | cygwin* | pw32* | os2* | cegcc*)
12611 # This hack is so that the source file can tell whether it is being
12612 # built for inclusion in a dll (and should export symbols for example).
12613 lt_prog_compiler_pic='-DDLL_EXPORT'
12616 lt_prog_compiler_static='$wl-static'
12621 hpux9* | hpux10* | hpux11*)
12622 lt_prog_compiler_wl='-Wl,'
12623 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12624 # not for PA HP-UX.
12630 lt_prog_compiler_pic='+Z'
12633 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12634 lt_prog_compiler_static='$wl-a ${wl}archive'
12637 irix5* | irix6* | nonstopux*)
12638 lt_prog_compiler_wl='-Wl,'
12639 # PIC (with -KPIC) is the default.
12640 lt_prog_compiler_static='-non_shared'
12643 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12644 case $cc_basename in
12645 # old Intel for x86_64, which still supported -KPIC.
12647 lt_prog_compiler_wl='-Wl,'
12648 lt_prog_compiler_pic='-KPIC'
12649 lt_prog_compiler_static='-static'
12651 # flang / f18. f95 an alias for gfortran or flang on Debian
12652 flang* | f18* | f95*)
12653 lt_prog_compiler_wl='-Wl,'
12654 lt_prog_compiler_pic='-fPIC'
12655 lt_prog_compiler_static='-static'
12657 # icc used to be incompatible with GCC.
12658 # ICC 10 doesn't accept -KPIC any more.
12660 lt_prog_compiler_wl='-Wl,'
12661 lt_prog_compiler_pic='-fPIC'
12662 lt_prog_compiler_static='-static'
12664 # Lahey Fortran 8.1.
12666 lt_prog_compiler_wl='-Wl,'
12667 lt_prog_compiler_pic='--shared'
12668 lt_prog_compiler_static='--static'
12671 # NAG Fortran compiler
12672 lt_prog_compiler_wl='-Wl,-Wl,,'
12673 lt_prog_compiler_pic='-PIC'
12674 lt_prog_compiler_static='-Bstatic'
12677 # Fabrice Bellard et al's Tiny C Compiler
12678 lt_prog_compiler_wl='-Wl,'
12679 lt_prog_compiler_pic='-fPIC'
12680 lt_prog_compiler_static='-static'
12682 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12683 # Portland Group compilers (*not* the Pentium gcc compiler,
12684 # which looks to be a dead project)
12685 lt_prog_compiler_wl='-Wl,'
12686 lt_prog_compiler_pic='-fpic'
12687 lt_prog_compiler_static='-Bstatic'
12690 lt_prog_compiler_wl='-Wl,'
12691 # All Alpha code is PIC.
12692 lt_prog_compiler_static='-non_shared'
12694 xl* | bgxl* | bgf* | mpixl*)
12695 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12696 lt_prog_compiler_wl='-Wl,'
12697 lt_prog_compiler_pic='-qpic'
12698 lt_prog_compiler_static='-qstaticlink'
12701 case `$CC -V 2>&1 | sed 5q` in
12702 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12703 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12704 lt_prog_compiler_pic='-KPIC'
12705 lt_prog_compiler_static='-Bstatic'
12706 lt_prog_compiler_wl=''
12708 *Sun\ F* | *Sun*Fortran*)
12709 lt_prog_compiler_pic='-KPIC'
12710 lt_prog_compiler_static='-Bstatic'
12711 lt_prog_compiler_wl='-Qoption ld '
12715 lt_prog_compiler_pic='-KPIC'
12716 lt_prog_compiler_static='-Bstatic'
12717 lt_prog_compiler_wl='-Wl,'
12719 *Intel*\ [CF]*Compiler*)
12720 lt_prog_compiler_wl='-Wl,'
12721 lt_prog_compiler_pic='-fPIC'
12722 lt_prog_compiler_static='-static'
12725 lt_prog_compiler_wl='-Wl,'
12726 lt_prog_compiler_pic='-fpic'
12727 lt_prog_compiler_static='-Bstatic'
12735 lt_prog_compiler_pic='-KPIC'
12736 lt_prog_compiler_static='-Bstatic'
12740 # QNX uses GNU C++, but need to define -shared option too, otherwise
12741 # it will coredump.
12742 lt_prog_compiler_pic='-fPIC -shared'
12745 osf3* | osf4* | osf5*)
12746 lt_prog_compiler_wl='-Wl,'
12747 # All OSF/1 code is PIC.
12748 lt_prog_compiler_static='-non_shared'
12752 lt_prog_compiler_static='-non_shared'
12756 lt_prog_compiler_pic='-KPIC'
12757 lt_prog_compiler_static='-Bstatic'
12758 case $cc_basename in
12759 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12760 lt_prog_compiler_wl='-Qoption ld ';;
12762 lt_prog_compiler_wl='-Wl,';;
12767 lt_prog_compiler_wl='-Qoption ld '
12768 lt_prog_compiler_pic='-PIC'
12769 lt_prog_compiler_static='-Bstatic'
12772 sysv4 | sysv4.2uw2* | sysv4.3*)
12773 lt_prog_compiler_wl='-Wl,'
12774 lt_prog_compiler_pic='-KPIC'
12775 lt_prog_compiler_static='-Bstatic'
12779 if test -d /usr/nec; then
12780 lt_prog_compiler_pic='-Kconform_pic'
12781 lt_prog_compiler_static='-Bstatic'
12785 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12786 lt_prog_compiler_wl='-Wl,'
12787 lt_prog_compiler_pic='-KPIC'
12788 lt_prog_compiler_static='-Bstatic'
12792 lt_prog_compiler_wl='-Wl,'
12793 lt_prog_compiler_can_build_shared=no
12797 lt_prog_compiler_pic='-pic'
12798 lt_prog_compiler_static='-Bstatic'
12802 lt_prog_compiler_can_build_shared=no
12808 # For platforms that do not support PIC, -DPIC is meaningless:
12810 lt_prog_compiler_pic=
12813 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12818 printf %s "checking for $compiler option to produce PIC... " >&6; }
12819 if test ${lt_cv_prog_compiler_pic+y}
12821 printf %s "(cached) " >&6
12823 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12826 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
12827 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12830 # Check to make sure the PIC flag actually works.
12832 if test -n "$lt_prog_compiler_pic"; then
12833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12834 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12835 if test ${lt_cv_prog_compiler_pic_works+y}
12837 printf %s "(cached) " >&6
12839 lt_cv_prog_compiler_pic_works=no
12840 ac_outfile=conftest.$ac_objext
12841 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12842 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12843 # Insert the option either (1) after the last *FLAGS variable, or
12844 # (2) before a word containing "conftest.", or (3) at the end.
12845 # Note that $ac_compile itself does not contain backslashes and begins
12846 # with a dollar sign (not a hyphen), so the echo should work correctly.
12847 # The option is referenced via a variable to avoid confusing sed.
12848 lt_compile=`echo "$ac_compile" | $SED \
12849 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12850 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12851 -e 's:$: $lt_compiler_flag:'`
12852 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12853 (eval "$lt_compile" 2>conftest.err)
12855 cat conftest.err >&5
12856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12857 if (exit $ac_status) && test -s "$ac_outfile"; then
12858 # The compiler can only warn and ignore the option if not recognized
12859 # So say no if there are warnings other than the usual output.
12860 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12861 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12862 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12863 lt_cv_prog_compiler_pic_works=yes
12869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12870 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
12872 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12873 case $lt_prog_compiler_pic in
12875 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12878 lt_prog_compiler_pic=
12879 lt_prog_compiler_can_build_shared=no
12895 # Check to make sure the static flag actually works.
12897 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12899 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12900 if test ${lt_cv_prog_compiler_static_works+y}
12902 printf %s "(cached) " >&6
12904 lt_cv_prog_compiler_static_works=no
12905 save_LDFLAGS=$LDFLAGS
12906 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12907 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12908 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12909 # The linker can only warn and ignore the option if not recognized
12910 # So say no if there are warnings
12911 if test -s conftest.err; then
12912 # Append any errors to the config.log.
12913 cat conftest.err 1>&5
12914 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12915 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12916 if diff conftest.exp conftest.er2 >/dev/null; then
12917 lt_cv_prog_compiler_static_works=yes
12920 lt_cv_prog_compiler_static_works=yes
12924 LDFLAGS=$save_LDFLAGS
12927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12928 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
12930 if test yes = "$lt_cv_prog_compiler_static_works"; then
12933 lt_prog_compiler_static=
12942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12943 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12944 if test ${lt_cv_prog_compiler_c_o+y}
12946 printf %s "(cached) " >&6
12948 lt_cv_prog_compiler_c_o=no
12949 $RM -r conftest 2>/dev/null
12953 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12955 lt_compiler_flag="-o out/conftest2.$ac_objext"
12956 # Insert the option either (1) after the last *FLAGS variable, or
12957 # (2) before a word containing "conftest.", or (3) at the end.
12958 # Note that $ac_compile itself does not contain backslashes and begins
12959 # with a dollar sign (not a hyphen), so the echo should work correctly.
12960 lt_compile=`echo "$ac_compile" | $SED \
12961 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12962 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12963 -e 's:$: $lt_compiler_flag:'`
12964 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12965 (eval "$lt_compile" 2>out/conftest.err)
12967 cat out/conftest.err >&5
12968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12969 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12971 # The compiler can only warn and ignore the option if not recognized
12972 # So say no if there are warnings
12973 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12974 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12975 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12976 lt_cv_prog_compiler_c_o=yes
12981 # SGI C++ compiler will create directory out/ii_files/ for
12982 # template instantiation
12983 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12984 $RM out/* && rmdir out
12990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12991 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
12998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12999 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13000 if test ${lt_cv_prog_compiler_c_o+y}
13002 printf %s "(cached) " >&6
13004 lt_cv_prog_compiler_c_o=no
13005 $RM -r conftest 2>/dev/null
13009 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13011 lt_compiler_flag="-o out/conftest2.$ac_objext"
13012 # Insert the option either (1) after the last *FLAGS variable, or
13013 # (2) before a word containing "conftest.", or (3) at the end.
13014 # Note that $ac_compile itself does not contain backslashes and begins
13015 # with a dollar sign (not a hyphen), so the echo should work correctly.
13016 lt_compile=`echo "$ac_compile" | $SED \
13017 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13019 -e 's:$: $lt_compiler_flag:'`
13020 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13021 (eval "$lt_compile" 2>out/conftest.err)
13023 cat out/conftest.err >&5
13024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13027 # The compiler can only warn and ignore the option if not recognized
13028 # So say no if there are warnings
13029 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13030 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13031 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13032 lt_cv_prog_compiler_c_o=yes
13037 # SGI C++ compiler will create directory out/ii_files/ for
13038 # template instantiation
13039 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13040 $RM out/* && rmdir out
13046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13047 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13052 hard_links=nottested
13053 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13054 # do not overwrite the value of need_locks provided by the user
13055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13056 printf %s "checking if we can lock with hard links... " >&6; }
13059 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13061 ln conftest.a conftest.b 2>&5 || hard_links=no
13062 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13064 printf "%s\n" "$hard_links" >&6; }
13065 if test no = "$hard_links"; then
13066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13067 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13080 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13083 allow_undefined_flag=
13084 always_export_symbols=no
13086 archive_expsym_cmds=
13087 compiler_needs_object=no
13088 enable_shared_with_static_runtimes=no
13089 export_dynamic_flag_spec=
13090 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13091 hardcode_automatic=no
13093 hardcode_direct_absolute=no
13094 hardcode_libdir_flag_spec=
13095 hardcode_libdir_separator=
13096 hardcode_minus_L=no
13097 hardcode_shlibpath_var=unsupported
13099 link_all_deplibs=unknown
13101 module_expsym_cmds=
13102 old_archive_from_new_cmds=
13103 old_archive_from_expsyms_cmds=
13104 thread_safe_flag_spec=
13105 whole_archive_flag_spec=
13106 # include_expsyms should be a list of space-separated symbols to be *always*
13107 # included in the symbol list
13109 # exclude_expsyms can be an extended regexp of symbols to exclude
13110 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13111 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13112 # as well as any symbol that contains 'd'.
13113 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13114 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13115 # platforms (ab)use it in PIC code, but their linkers get confused if
13116 # the symbol is explicitly referenced. Since portable code cannot
13117 # rely on this symbol name, it's probably fine to never include it in
13118 # preloaded symbol tables.
13119 # Exclude shared library initialization/finalization symbols.
13120 extract_expsyms_cmds=
13123 cygwin* | mingw* | pw32* | cegcc*)
13124 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13125 # When not using gcc, we currently assume that we are using
13126 # Microsoft Visual C++.
13127 if test yes != "$GCC"; then
13132 # we just hope/assume this is gcc and not c89 (= MSVC++)
13135 openbsd* | bitrig*)
13138 linux* | k*bsd*-gnu | gnu*)
13139 link_all_deplibs=no
13145 # On some targets, GNU ld is compatible enough with the native linker
13146 # that we're better off using the native interface for both.
13147 lt_use_gnu_ld_interface=no
13148 if test yes = "$with_gnu_ld"; then
13151 # The AIX port of GNU ld has always aspired to compatibility
13152 # with the native linker. However, as the warning in the GNU ld
13153 # block says, versions before 2.19.5* couldn't really create working
13154 # shared libraries, regardless of the interface used.
13155 case `$LD -v 2>&1` in
13156 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13157 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13158 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13160 lt_use_gnu_ld_interface=yes
13165 lt_use_gnu_ld_interface=yes
13170 if test yes = "$lt_use_gnu_ld_interface"; then
13171 # If archive_cmds runs LD, not CC, wlarc should be empty
13174 # Set some defaults for GNU ld with shared library support. These
13175 # are reset later if shared libraries are not supported. Putting them
13176 # here allows them to be overridden if necessary.
13177 runpath_var=LD_RUN_PATH
13178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13179 export_dynamic_flag_spec='$wl--export-dynamic'
13180 # ancient GNU ld didn't support --whole-archive et. al.
13181 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13182 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13184 whole_archive_flag_spec=
13186 supports_anon_versioning=no
13187 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
13188 *GNU\ gold*) supports_anon_versioning=yes ;;
13189 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13190 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13191 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13192 *\ 2.11.*) ;; # other 2.11 versions
13193 *) supports_anon_versioning=yes ;;
13196 # See if GNU ld supports shared libraries.
13199 # On AIX/PPC, the GNU linker is very broken
13200 if test ia64 != "$host_cpu"; then
13204 *** Warning: the GNU linker, at least up to release 2.19, is reported
13205 *** to be unable to reliably create shared libraries on AIX.
13206 *** Therefore, libtool is disabling shared libraries support. If you
13207 *** really care for shared libraries, you may want to install binutils
13208 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13209 *** You will then need to restart the configuration process.
13218 # see comment about AmigaOS4 .so support
13219 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13220 archive_expsym_cmds=''
13223 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)'
13224 hardcode_libdir_flag_spec='-L$libdir'
13225 hardcode_minus_L=yes
13231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13232 allow_undefined_flag=unsupported
13233 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13234 # support --undefined. This deserves some investigation. FIXME
13235 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13241 cygwin* | mingw* | pw32* | cegcc*)
13242 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13243 # as there is no search path for DLLs.
13244 hardcode_libdir_flag_spec='-L$libdir'
13245 export_dynamic_flag_spec='$wl--export-all-symbols'
13246 allow_undefined_flag=unsupported
13247 always_export_symbols=no
13248 enable_shared_with_static_runtimes=yes
13249 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'
13250 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13252 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13253 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13254 # If the export-symbols file already is a .def file, use it as
13255 # is; otherwise, prepend EXPORTS...
13256 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13257 cp $export_symbols $output_objdir/$soname.def;
13259 echo EXPORTS > $output_objdir/$soname.def;
13260 cat $export_symbols >> $output_objdir/$soname.def;
13262 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13269 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13270 link_all_deplibs=yes
13274 hardcode_libdir_flag_spec='-L$libdir'
13275 hardcode_minus_L=yes
13276 allow_undefined_flag=unsupported
13278 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13279 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13280 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13281 $ECHO EXPORTS >> $output_objdir/$libname.def~
13282 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13283 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13284 emximp -o $lib $output_objdir/$libname.def'
13285 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13286 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13287 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13288 $ECHO EXPORTS >> $output_objdir/$libname.def~
13289 prefix_cmds="$SED"~
13290 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13291 prefix_cmds="$prefix_cmds -e 1d";
13293 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13294 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13295 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13296 emximp -o $lib $output_objdir/$libname.def'
13297 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13298 enable_shared_with_static_runtimes=yes
13303 hardcode_shlibpath_var=no
13304 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13305 export_dynamic_flag_spec='$wl-E'
13306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13307 # Instead, shared libraries are loaded at an image base (0x10000000 by
13308 # default) and relocated if they conflict, which is a slow very memory
13309 # consuming and fragmenting process. To avoid this, we pick a random,
13310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13311 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13312 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13313 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'
13316 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13318 if test linux-dietlibc = "$host_os"; then
13319 case $cc_basename in
13320 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13323 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13324 && test no = "$tmp_diet"
13326 tmp_addflag=' $pic_flag'
13327 tmp_sharedflag='-shared'
13328 case $cc_basename,$host_cpu in
13329 pgcc*) # Portland Group C compiler
13330 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'
13331 tmp_addflag=' $pic_flag'
13333 pgf77* | pgf90* | pgf95* | pgfortran*)
13334 # Portland Group f77 and f90 compilers
13335 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'
13336 tmp_addflag=' $pic_flag -Mnomain' ;;
13337 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13338 tmp_addflag=' -i_dynamic' ;;
13339 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13340 tmp_addflag=' -i_dynamic -nofor_main' ;;
13341 ifc* | ifort*) # Intel Fortran compiler
13342 tmp_addflag=' -nofor_main' ;;
13343 lf95*) # Lahey Fortran 8.1
13344 whole_archive_flag_spec=
13345 tmp_sharedflag='--shared' ;;
13346 nagfor*) # NAGFOR 5.3
13347 tmp_sharedflag='-Wl,-shared' ;;
13348 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13349 tmp_sharedflag='-qmkshrobj'
13351 nvcc*) # Cuda Compiler Driver 2.2
13352 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'
13353 compiler_needs_object=yes
13356 case `$CC -V 2>&1 | sed 5q` in
13357 *Sun\ C*) # Sun C 5.9
13358 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'
13359 compiler_needs_object=yes
13360 tmp_sharedflag='-G' ;;
13361 *Sun\ F*) # Sun Fortran 8.3
13362 tmp_sharedflag='-G' ;;
13364 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13366 if test yes = "$supports_anon_versioning"; then
13367 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13368 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13369 echo "local: *; };" >> $output_objdir/$libname.ver~
13370 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13373 case $cc_basename in
13375 export_dynamic_flag_spec='-rdynamic'
13377 xlf* | bgf* | bgxlf* | mpixlf*)
13378 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13379 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13380 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13381 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13382 if test yes = "$supports_anon_versioning"; then
13383 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13384 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13385 echo "local: *; };" >> $output_objdir/$libname.ver~
13386 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13395 netbsd* | netbsdelf*-gnu)
13396 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13397 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13400 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13401 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13406 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13410 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13411 *** create shared libraries on Solaris systems. Therefore, libtool
13412 *** is disabling shared libraries support. We urge you to upgrade GNU
13413 *** binutils to release 2.9.1 or newer. Another option is to modify
13414 *** your PATH or compiler configuration so that the native linker is
13415 *** used, and then restart.
13418 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13419 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13420 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13426 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13427 case `$LD -v 2>&1` in
13428 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13432 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13433 *** reliably create shared libraries on SCO systems. Therefore, libtool
13434 *** is disabling shared libraries support. We urge you to upgrade GNU
13435 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13436 *** your PATH or compiler configuration so that the native linker is
13437 *** used, and then restart.
13442 # For security reasons, it is highly recommended that you always
13443 # use absolute paths for naming shared libraries, and exclude the
13444 # DT_RUNPATH tag from executables and libraries. But doing so
13445 # requires that you compile everything twice, which is a pain.
13446 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13447 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13449 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13458 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13460 hardcode_direct=yes
13461 hardcode_shlibpath_var=no
13465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13466 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13467 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13474 if test no = "$ld_shlibs"; then
13476 hardcode_libdir_flag_spec=
13477 export_dynamic_flag_spec=
13478 whole_archive_flag_spec=
13481 # PORTME fill in a description of your system's linker (not GNU ld)
13484 allow_undefined_flag=unsupported
13485 always_export_symbols=yes
13486 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'
13487 # Note: this linker hardcodes the directories in LIBPATH if there
13488 # are no directories specified by -L.
13489 hardcode_minus_L=yes
13490 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13491 # Neither direct hardcoding nor static linking is supported with a
13493 hardcode_direct=unsupported
13498 if test ia64 = "$host_cpu"; then
13499 # On IA64, the linker does run time linking by default, so we don't
13500 # have to do anything special.
13501 aix_use_runtimelinking=no
13502 exp_sym_flag='-Bexport'
13505 # If we're using GNU nm, then we don't want the "-C" option.
13506 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13507 # Without the "-l" option, or with the "-B" option, AIX nm treats
13508 # weak defined symbols like other global defined symbols, whereas
13509 # GNU nm marks them as "W".
13510 # While the 'weak' keyword is ignored in the Export File, we need
13511 # it in the Import File for the 'aix-soname' feature, so we have
13512 # to replace the "-B" option with "-P" for AIX nm.
13513 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13514 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'
13516 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'
13518 aix_use_runtimelinking=no
13520 # Test if we are trying to use run time linking or normal
13521 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13522 # have runtime linking enabled, and use it for executables.
13523 # For shared libraries, we enable/disable runtime linking
13524 # depending on the kind of the shared library created -
13525 # when "with_aix_soname,aix_use_runtimelinking" is:
13526 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13527 # "aix,yes" lib.so shared, rtl:yes, for executables
13528 # lib.a static archive
13529 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13530 # lib.a(lib.so.V) shared, rtl:no, for executables
13531 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13532 # lib.a(lib.so.V) shared, rtl:no
13533 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13534 # lib.a static archive
13535 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13536 for ld_flag in $LDFLAGS; do
13537 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13538 aix_use_runtimelinking=yes
13542 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13543 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13544 # so we don't have lib.a shared libs to link our executables.
13545 # We have to force runtime linking in this case.
13546 aix_use_runtimelinking=yes
13547 LDFLAGS="$LDFLAGS -Wl,-brtl"
13552 exp_sym_flag='-bexport'
13553 no_entry_flag='-bnoentry'
13556 # When large executables or shared objects are built, AIX ld can
13557 # have problems creating the table of contents. If linking a library
13558 # or program results in "error TOC overflow" add -mminimal-toc to
13559 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13560 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13563 hardcode_direct=yes
13564 hardcode_direct_absolute=yes
13565 hardcode_libdir_separator=':'
13566 link_all_deplibs=yes
13567 file_list_spec='$wl-f,'
13568 case $with_aix_soname,$aix_use_runtimelinking in
13569 aix,*) ;; # traditional, no import file
13570 svr4,* | *,yes) # use import file
13571 # The Import File defines what to hardcode.
13573 hardcode_direct_absolute=no
13577 if test yes = "$GCC"; then
13578 case $host_os in aix4.[012]|aix4.[012].*)
13579 # We only want to do this on AIX 4.2 and lower, the check
13580 # below for broken collect2 doesn't work under 4.3+
13581 collect2name=`$CC -print-prog-name=collect2`
13582 if test -f "$collect2name" &&
13583 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13585 # We have reworked collect2
13588 # We have old collect2
13589 hardcode_direct=unsupported
13590 # It fails to find uninstalled libraries when the uninstalled
13591 # path is not listed in the libpath. Setting hardcode_minus_L
13592 # to unsupported forces relinking
13593 hardcode_minus_L=yes
13594 hardcode_libdir_flag_spec='-L$libdir'
13595 hardcode_libdir_separator=
13599 shared_flag='-shared'
13600 if test yes = "$aix_use_runtimelinking"; then
13601 shared_flag="$shared_flag "'$wl-G'
13603 # Need to ensure runtime linking is disabled for the traditional
13604 # shared library, or the linker may eventually find shared libraries
13605 # /with/ Import File - we do not want to mix them.
13606 shared_flag_aix='-shared'
13607 shared_flag_svr4='-shared $wl-G'
13610 if test ia64 = "$host_cpu"; then
13611 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13612 # chokes on -Wl,-G. The following line is correct:
13615 if test yes = "$aix_use_runtimelinking"; then
13616 shared_flag='$wl-G'
13618 shared_flag='$wl-bM:SRE'
13620 shared_flag_aix='$wl-bM:SRE'
13621 shared_flag_svr4='$wl-G'
13625 export_dynamic_flag_spec='$wl-bexpall'
13626 # It seems that -bexpall does not export symbols beginning with
13627 # underscore (_), so it is better to generate a list of symbols to export.
13628 always_export_symbols=yes
13629 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13630 # Warning - without using the other runtime loading flags (-brtl),
13631 # -berok will link without error, but may produce a broken library.
13632 allow_undefined_flag='-berok'
13633 # Determine the default libpath from the value encoded in an
13634 # empty executable.
13635 if test set = "${lt_cv_aix_libpath+set}"; then
13636 aix_libpath=$lt_cv_aix_libpath
13638 if test ${lt_cv_aix_libpath_+y}
13640 printf %s "(cached) " >&6
13642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13643 /* end confdefs.h. */
13652 if ac_fn_c_try_link "$LINENO"
13655 lt_aix_libpath_sed='
13656 /Import File Strings/,/^$/ {
13658 s/^0 *\([^ ]*\) *$/\1/
13662 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13663 # Check for a 64-bit object if we didn't find anything.
13664 if test -z "$lt_cv_aix_libpath_"; then
13665 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13669 conftest$ac_exeext conftest.$ac_ext
13670 if test -z "$lt_cv_aix_libpath_"; then
13671 lt_cv_aix_libpath_=/usr/lib:/lib
13676 aix_libpath=$lt_cv_aix_libpath_
13679 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13680 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
13682 if test ia64 = "$host_cpu"; then
13683 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13684 allow_undefined_flag="-z nodefs"
13685 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"
13687 # Determine the default libpath from the value encoded in an
13688 # empty executable.
13689 if test set = "${lt_cv_aix_libpath+set}"; then
13690 aix_libpath=$lt_cv_aix_libpath
13692 if test ${lt_cv_aix_libpath_+y}
13694 printf %s "(cached) " >&6
13696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13697 /* end confdefs.h. */
13706 if ac_fn_c_try_link "$LINENO"
13709 lt_aix_libpath_sed='
13710 /Import File Strings/,/^$/ {
13712 s/^0 *\([^ ]*\) *$/\1/
13716 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13717 # Check for a 64-bit object if we didn't find anything.
13718 if test -z "$lt_cv_aix_libpath_"; then
13719 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13722 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13723 conftest$ac_exeext conftest.$ac_ext
13724 if test -z "$lt_cv_aix_libpath_"; then
13725 lt_cv_aix_libpath_=/usr/lib:/lib
13730 aix_libpath=$lt_cv_aix_libpath_
13733 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13734 # Warning - without using the other run time loading flags,
13735 # -berok will link without error, but may produce a broken library.
13736 no_undefined_flag=' $wl-bernotok'
13737 allow_undefined_flag=' $wl-berok'
13738 if test yes = "$with_gnu_ld"; then
13739 # We only use this code for GNU lds that support --whole-archive.
13740 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13742 # Exported symbols can be pulled into shared objects from archives
13743 whole_archive_flag_spec='$convenience'
13745 archive_cmds_need_lc=yes
13746 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13747 # -brtl affects multiple linker settings, -berok does not and is overridden later
13748 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13749 if test svr4 != "$with_aix_soname"; then
13750 # This is similar to how AIX traditionally builds its shared libraries.
13751 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'
13753 if test aix != "$with_aix_soname"; then
13754 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'
13756 # used by -dlpreopen to get the symbols
13757 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13759 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13767 # see comment about AmigaOS4 .so support
13768 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13769 archive_expsym_cmds=''
13772 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)'
13773 hardcode_libdir_flag_spec='-L$libdir'
13774 hardcode_minus_L=yes
13780 export_dynamic_flag_spec=-rdynamic
13783 cygwin* | mingw* | pw32* | cegcc*)
13784 # When not using gcc, we currently assume that we are using
13785 # Microsoft Visual C++.
13786 # hardcode_libdir_flag_spec is actually meaningless, as there is
13787 # no search path for DLLs.
13788 case $cc_basename in
13791 hardcode_libdir_flag_spec=' '
13792 allow_undefined_flag=unsupported
13793 always_export_symbols=yes
13795 # Tell ltmain to make .lib files, not .a files.
13797 # Tell ltmain to make .dll files, not .so files.
13799 # FIXME: Setting linknames here is a bad hack.
13800 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13801 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13802 cp "$export_symbols" "$output_objdir/$soname.def";
13803 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13805 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13807 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13809 # The linker will not automatically build a static lib if we build a DLL.
13810 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13811 enable_shared_with_static_runtimes=yes
13812 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13813 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13815 old_postinstall_cmds='chmod 644 $oldlib'
13816 postlink_cmds='lt_outputfile="@OUTPUT@"~
13817 lt_tool_outputfile="@TOOL_OUTPUT@"~
13818 case $lt_outputfile in
13821 lt_outputfile=$lt_outputfile.exe
13822 lt_tool_outputfile=$lt_tool_outputfile.exe
13825 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13826 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13827 $RM "$lt_outputfile.manifest";
13831 # Assume MSVC wrapper
13832 hardcode_libdir_flag_spec=' '
13833 allow_undefined_flag=unsupported
13834 # Tell ltmain to make .lib files, not .a files.
13836 # Tell ltmain to make .dll files, not .so files.
13838 # FIXME: Setting linknames here is a bad hack.
13839 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13840 # The linker will automatically build a .lib file if we build a DLL.
13841 old_archive_from_new_cmds='true'
13842 # FIXME: Should let the user specify the lib program.
13843 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13844 enable_shared_with_static_runtimes=yes
13849 darwin* | rhapsody*)
13852 archive_cmds_need_lc=no
13854 hardcode_automatic=yes
13855 hardcode_shlibpath_var=unsupported
13856 if test yes = "$lt_cv_ld_force_load"; then
13857 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\"`'
13860 whole_archive_flag_spec=''
13862 link_all_deplibs=yes
13863 allow_undefined_flag=$_lt_dar_allow_undefined
13864 case $cc_basename in
13865 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13866 *) _lt_dar_can_shared=$GCC ;;
13868 if test yes = "$_lt_dar_can_shared"; then
13869 output_verbose_link_cmd=func_echo_all
13870 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13871 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13872 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"
13873 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"
13882 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13883 hardcode_libdir_flag_spec='-L$libdir'
13884 hardcode_shlibpath_var=no
13887 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13888 # support. Future versions do this automatically, but an explicit c++rt0.o
13889 # does not break anything, and helps significantly (at the cost of a little
13892 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13893 hardcode_libdir_flag_spec='-R$libdir'
13894 hardcode_direct=yes
13895 hardcode_shlibpath_var=no
13898 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13900 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13901 hardcode_direct=yes
13902 hardcode_minus_L=yes
13903 hardcode_shlibpath_var=no
13906 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13907 freebsd* | dragonfly*)
13908 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13909 hardcode_libdir_flag_spec='-R$libdir'
13910 hardcode_direct=yes
13911 hardcode_shlibpath_var=no
13915 if test yes = "$GCC"; then
13916 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'
13918 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'
13920 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13921 hardcode_libdir_separator=:
13922 hardcode_direct=yes
13924 # hardcode_minus_L: Not really in the search PATH,
13925 # but as the default location of the library.
13926 hardcode_minus_L=yes
13927 export_dynamic_flag_spec='$wl-E'
13931 if test yes,no = "$GCC,$with_gnu_ld"; then
13932 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13934 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13936 if test no = "$with_gnu_ld"; then
13937 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13938 hardcode_libdir_separator=:
13939 hardcode_direct=yes
13940 hardcode_direct_absolute=yes
13941 export_dynamic_flag_spec='$wl-E'
13942 # hardcode_minus_L: Not really in the search PATH,
13943 # but as the default location of the library.
13944 hardcode_minus_L=yes
13949 if test yes,no = "$GCC,$with_gnu_ld"; then
13952 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13955 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13958 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13964 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13967 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13971 # Older versions of the 11.00 compiler do not understand -b yet
13972 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13974 printf %s "checking if $CC understands -b... " >&6; }
13975 if test ${lt_cv_prog_compiler__b+y}
13977 printf %s "(cached) " >&6
13979 lt_cv_prog_compiler__b=no
13980 save_LDFLAGS=$LDFLAGS
13981 LDFLAGS="$LDFLAGS -b"
13982 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13983 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13984 # The linker can only warn and ignore the option if not recognized
13985 # So say no if there are warnings
13986 if test -s conftest.err; then
13987 # Append any errors to the config.log.
13988 cat conftest.err 1>&5
13989 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13990 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13991 if diff conftest.exp conftest.er2 >/dev/null; then
13992 lt_cv_prog_compiler__b=yes
13995 lt_cv_prog_compiler__b=yes
13999 LDFLAGS=$save_LDFLAGS
14002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14003 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14005 if test yes = "$lt_cv_prog_compiler__b"; then
14006 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14008 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14014 if test no = "$with_gnu_ld"; then
14015 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14016 hardcode_libdir_separator=:
14021 hardcode_shlibpath_var=no
14024 hardcode_direct=yes
14025 hardcode_direct_absolute=yes
14026 export_dynamic_flag_spec='$wl-E'
14028 # hardcode_minus_L: Not really in the search PATH,
14029 # but as the default location of the library.
14030 hardcode_minus_L=yes
14036 irix5* | irix6* | nonstopux*)
14037 if test yes = "$GCC"; then
14038 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'
14039 # Try to use the -exported_symbol ld option, if it does not
14040 # work, assume that -exports_file does not work either and
14041 # implicitly export all symbols.
14042 # This should be the same for all languages, so no per-tag cache variable.
14043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14044 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14045 if test ${lt_cv_irix_exported_symbol+y}
14047 printf %s "(cached) " >&6
14049 save_LDFLAGS=$LDFLAGS
14050 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14052 /* end confdefs.h. */
14053 int foo (void) { return 0; }
14055 if ac_fn_c_try_link "$LINENO"
14057 lt_cv_irix_exported_symbol=yes
14059 lt_cv_irix_exported_symbol=no
14061 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14062 conftest$ac_exeext conftest.$ac_ext
14063 LDFLAGS=$save_LDFLAGS
14065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14066 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14067 if test yes = "$lt_cv_irix_exported_symbol"; then
14068 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'
14070 link_all_deplibs=no
14072 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'
14073 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'
14075 archive_cmds_need_lc='no'
14076 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14077 hardcode_libdir_separator=:
14079 link_all_deplibs=yes
14083 case $cc_basename in
14085 # Fabrice Bellard et al's Tiny C Compiler
14087 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14092 netbsd* | netbsdelf*-gnu)
14093 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14094 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14096 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14098 hardcode_libdir_flag_spec='-R$libdir'
14099 hardcode_direct=yes
14100 hardcode_shlibpath_var=no
14104 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14105 hardcode_direct=yes
14106 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14107 hardcode_libdir_separator=:
14108 hardcode_shlibpath_var=no
14114 openbsd* | bitrig*)
14115 if test -f /usr/libexec/ld.so; then
14116 hardcode_direct=yes
14117 hardcode_shlibpath_var=no
14118 hardcode_direct_absolute=yes
14119 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14120 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14121 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14122 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14123 export_dynamic_flag_spec='$wl-E'
14125 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14126 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14134 hardcode_libdir_flag_spec='-L$libdir'
14135 hardcode_minus_L=yes
14136 allow_undefined_flag=unsupported
14138 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14139 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14140 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14141 $ECHO EXPORTS >> $output_objdir/$libname.def~
14142 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14143 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14144 emximp -o $lib $output_objdir/$libname.def'
14145 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14146 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14147 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14148 $ECHO EXPORTS >> $output_objdir/$libname.def~
14149 prefix_cmds="$SED"~
14150 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14151 prefix_cmds="$prefix_cmds -e 1d";
14153 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14154 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14155 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14156 emximp -o $lib $output_objdir/$libname.def'
14157 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14158 enable_shared_with_static_runtimes=yes
14162 if test yes = "$GCC"; then
14163 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14164 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'
14166 allow_undefined_flag=' -expect_unresolved \*'
14167 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'
14169 archive_cmds_need_lc='no'
14170 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14171 hardcode_libdir_separator=:
14174 osf4* | osf5*) # as osf3* with the addition of -msym flag
14175 if test yes = "$GCC"; then
14176 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14177 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'
14178 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14180 allow_undefined_flag=' -expect_unresolved \*'
14181 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'
14182 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~
14183 $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'
14185 # Both c and cxx compiler support -rpath directly
14186 hardcode_libdir_flag_spec='-rpath $libdir'
14188 archive_cmds_need_lc='no'
14189 hardcode_libdir_separator=:
14193 no_undefined_flag=' -z defs'
14194 if test yes = "$GCC"; then
14196 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14197 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14198 $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'
14200 case `$CC -V 2>&1` in
14203 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14205 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14209 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14210 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14211 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14215 hardcode_libdir_flag_spec='-R$libdir'
14216 hardcode_shlibpath_var=no
14218 solaris2.[0-5] | solaris2.[0-5].*) ;;
14220 # The compiler driver will combine and reorder linker options,
14221 # but understands '-z linker_flag'. GCC discards it without '$wl',
14222 # but is careful enough not to reorder.
14223 # Supported since Solaris 2.6 (maybe 2.5.1?)
14224 if test yes = "$GCC"; then
14225 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14227 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14231 link_all_deplibs=yes
14235 if test sequent = "$host_vendor"; then
14236 # Use $CC to link under sequent, because it throws in some extra .o
14237 # files that make .init and .fini sections work.
14238 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14240 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14242 hardcode_libdir_flag_spec='-L$libdir'
14243 hardcode_direct=yes
14244 hardcode_minus_L=yes
14245 hardcode_shlibpath_var=no
14249 case $host_vendor in
14251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_direct=yes # is this really true???
14255 ## LD is ld it makes a PLAMLIB
14256 ## CC just makes a GrossModule.
14257 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14258 reload_cmds='$CC -r -o $output$reload_objs'
14262 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14263 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14266 runpath_var='LD_RUN_PATH'
14267 hardcode_shlibpath_var=no
14271 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14272 hardcode_shlibpath_var=no
14273 export_dynamic_flag_spec='-Bexport'
14277 if test -d /usr/nec; then
14278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14279 hardcode_shlibpath_var=no
14280 runpath_var=LD_RUN_PATH
14281 hardcode_runpath_var=yes
14286 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14287 no_undefined_flag='$wl-z,text'
14288 archive_cmds_need_lc=no
14289 hardcode_shlibpath_var=no
14290 runpath_var='LD_RUN_PATH'
14292 if test yes = "$GCC"; then
14293 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14294 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14296 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14297 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14301 sysv5* | sco3.2v5* | sco5v6*)
14302 # Note: We CANNOT use -z defs as we might desire, because we do not
14303 # link with -lc, and that would cause any symbols used from libc to
14304 # always be unresolved, which means just about no library would
14305 # ever link correctly. If we're not using GNU ld we use -z text
14306 # though, which does catch some bad symbols but isn't as heavy-handed
14308 no_undefined_flag='$wl-z,text'
14309 allow_undefined_flag='$wl-z,nodefs'
14310 archive_cmds_need_lc=no
14311 hardcode_shlibpath_var=no
14312 hardcode_libdir_flag_spec='$wl-R,$libdir'
14313 hardcode_libdir_separator=':'
14314 link_all_deplibs=yes
14315 export_dynamic_flag_spec='$wl-Bexport'
14316 runpath_var='LD_RUN_PATH'
14318 if test yes = "$GCC"; then
14319 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14320 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14329 hardcode_libdir_flag_spec='-L$libdir'
14330 hardcode_shlibpath_var=no
14338 if test sni = "$host_vendor"; then
14340 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14341 export_dynamic_flag_spec='$wl-Blargedynsym'
14347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14348 printf "%s\n" "$ld_shlibs" >&6; }
14349 test no = "$ld_shlibs" && can_build_shared=no
14351 with_gnu_ld=$with_gnu_ld
14368 # Do we need to explicitly link libc?
14370 case "x$archive_cmds_need_lc" in
14372 # Assume -lc should be added
14373 archive_cmds_need_lc=yes
14375 if test yes,yes = "$GCC,$enable_shared"; then
14376 case $archive_cmds in
14378 # FIXME: we may have to deal with multi-command sequences.
14381 # Test whether the compiler implicitly links with -lc since on some
14382 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14383 # to ld, don't add -lc before -lgcc.
14384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14385 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14386 if test ${lt_cv_archive_cmds_need_lc+y}
14388 printf %s "(cached) " >&6
14391 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14394 (eval $ac_compile) 2>&5
14396 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14397 test $ac_status = 0; } 2>conftest.err; then
14400 libobjs=conftest.$ac_objext
14402 wl=$lt_prog_compiler_wl
14403 pic_flag=$lt_prog_compiler_pic
14409 lt_save_allow_undefined_flag=$allow_undefined_flag
14410 allow_undefined_flag=
14411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14412 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14414 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415 test $ac_status = 0; }
14417 lt_cv_archive_cmds_need_lc=no
14419 lt_cv_archive_cmds_need_lc=yes
14421 allow_undefined_flag=$lt_save_allow_undefined_flag
14423 cat conftest.err 1>&5
14428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14429 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14430 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14589 printf %s "checking dynamic linker characteristics... " >&6; }
14591 if test yes = "$GCC"; then
14593 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14594 *) lt_awk_arg='/^libraries:/' ;;
14597 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14598 *) lt_sed_strip_eq='s|=/|/|g' ;;
14600 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14601 case $lt_search_path_spec in
14603 # if the path contains ";" then we assume it to be the separator
14604 # otherwise default to the standard path separator (i.e. ":") - it is
14605 # assumed that no part of a normal pathname contains ";" but that should
14606 # okay in the real world where ";" in dirpaths is itself problematic.
14607 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14610 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14613 # Ok, now we have the path, separated by spaces, we can step through it
14614 # and add multilib dir if necessary...
14615 lt_tmp_lt_search_path_spec=
14616 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14617 # ...but if some path component already ends with the multilib dir we assume
14618 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14619 case "$lt_multi_os_dir; $lt_search_path_spec " in
14620 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14624 for lt_sys_path in $lt_search_path_spec; do
14625 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14626 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14627 elif test -n "$lt_multi_os_dir"; then
14628 test -d "$lt_sys_path" && \
14629 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14632 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14633 BEGIN {RS = " "; FS = "/|\n";} {
14636 for (lt_i = NF; lt_i > 0; lt_i--) {
14637 if ($lt_i != "" && $lt_i != ".") {
14638 if ($lt_i == "..") {
14641 if (lt_count == 0) {
14642 lt_foo = "/" $lt_i lt_foo;
14649 if (lt_foo != "") { lt_freq[lt_foo]++; }
14650 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14652 # AWK program above erroneously prepends '/' to C:/dos/paths
14655 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14656 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14658 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14660 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14662 library_names_spec=
14663 libname_spec='lib$name'
14667 postuninstall_cmds=
14671 shlibpath_overrides_runpath=unknown
14673 dynamic_linker="$host_os ld.so"
14674 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14675 need_lib_prefix=unknown
14676 hardcode_into_libs=no
14678 # when you set need_version to no, make sure it does not cause -set_version
14679 # flags to be left without arguments
14680 need_version=unknown
14686 version_type=linux # correct to gnu/linux during the next big refactor
14687 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14688 shlibpath_var=LIBPATH
14690 # AIX 3 has no versioning support, so we append a major version to the name.
14691 soname_spec='$libname$release$shared_ext$major'
14695 version_type=linux # correct to gnu/linux during the next big refactor
14698 hardcode_into_libs=yes
14699 if test ia64 = "$host_cpu"; then
14700 # AIX 5 supports IA64
14701 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14702 shlibpath_var=LD_LIBRARY_PATH
14704 # With GCC up to 2.95.x, collect2 would create an import file
14705 # for dependence libraries. The import file would start with
14706 # the line '#! .'. This would cause the generated library to
14707 # depend on '.', always an invalid library. This was fixed in
14708 # development snapshots of GCC prior to 3.0.
14710 aix4 | aix4.[01] | aix4.[01].*)
14711 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14713 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14716 can_build_shared=no
14720 # Using Import Files as archive members, it is possible to support
14721 # filename-based versioning of shared library archives on AIX. While
14722 # this would work for both with and without runtime linking, it will
14723 # prevent static linking of such archives. So we do filename-based
14724 # shared library versioning with .so extension only, which is used
14725 # when both runtime linking and shared linking is enabled.
14726 # Unfortunately, runtime linking may impact performance, so we do
14727 # not want this to be the default eventually. Also, we use the
14728 # versioned .so libs for executables only if there is the -brtl
14729 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14730 # To allow for filename-based versioning support, we need to create
14731 # libNAME.so.V as an archive file, containing:
14732 # *) an Import File, referring to the versioned filename of the
14733 # archive as well as the shared archive member, telling the
14734 # bitwidth (32 or 64) of that shared object, and providing the
14735 # list of exported symbols of that shared object, eventually
14736 # decorated with the 'weak' keyword
14737 # *) the shared object with the F_LOADONLY flag set, to really avoid
14738 # it being seen by the linker.
14739 # At run time we better use the real file rather than another symlink,
14740 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14742 case $with_aix_soname,$aix_use_runtimelinking in
14743 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14744 # soname into executable. Probably we can add versioning support to
14745 # collect2, so additional links can be useful in future.
14746 aix,yes) # traditional libtool
14747 dynamic_linker='AIX unversionable lib.so'
14748 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14749 # instead of lib<name>.a to let people know that these are not
14750 # typical AIX shared libraries.
14751 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14753 aix,no) # traditional AIX only
14754 dynamic_linker='AIX lib.a(lib.so.V)'
14755 # We preserve .a as extension for shared libraries through AIX4.2
14756 # and later when we are not doing run time linking.
14757 library_names_spec='$libname$release.a $libname.a'
14758 soname_spec='$libname$release$shared_ext$major'
14760 svr4,*) # full svr4 only
14761 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14762 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14763 # We do not specify a path in Import Files, so LIBPATH fires.
14764 shlibpath_overrides_runpath=yes
14766 *,yes) # both, prefer svr4
14767 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14768 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14769 # unpreferred sharedlib libNAME.a needs extra handling
14770 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"'
14771 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"'
14772 # We do not specify a path in Import Files, so LIBPATH fires.
14773 shlibpath_overrides_runpath=yes
14775 *,no) # both, prefer aix
14776 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14777 library_names_spec='$libname$release.a $libname.a'
14778 soname_spec='$libname$release$shared_ext$major'
14779 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14780 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)'
14781 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"'
14784 shlibpath_var=LIBPATH
14791 # Since July 2007 AmigaOS4 officially supports .so libraries.
14792 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14793 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14796 library_names_spec='$libname.ixlibrary $libname.a'
14797 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14798 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'
14804 library_names_spec='$libname$shared_ext'
14805 dynamic_linker="$host_os ld.so"
14806 shlibpath_var=LIBRARY_PATH
14810 version_type=linux # correct to gnu/linux during the next big refactor
14812 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14813 soname_spec='$libname$release$shared_ext$major'
14814 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14815 shlibpath_var=LD_LIBRARY_PATH
14816 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14817 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14818 # the default ld.so.conf also contains /usr/contrib/lib and
14819 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14820 # libtool to hard-code these into programs
14823 cygwin* | mingw* | pw32* | cegcc*)
14824 version_type=windows
14829 case $GCC,$cc_basename in
14832 library_names_spec='$libname.dll.a'
14833 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14834 postinstall_cmds='base_file=`basename \$file`~
14835 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14836 dldir=$destdir/`dirname \$dlpath`~
14837 test -d \$dldir || mkdir -p \$dldir~
14838 $install_prog $dir/$dlname \$dldir/$dlname~
14839 chmod a+x \$dldir/$dlname~
14840 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14841 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14843 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14844 dlpath=$dir/\$dldll~
14846 shlibpath_overrides_runpath=yes
14850 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14851 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14853 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14856 # MinGW DLLs use traditional 'lib' prefix
14857 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14860 # pw32 DLLs use 'pw' prefix rather than 'lib'
14861 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14864 dynamic_linker='Win32 ld.exe'
14869 libname_spec='$name'
14870 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14871 library_names_spec='$libname.dll.lib'
14875 sys_lib_search_path_spec=
14878 for lt_path in $LIB
14881 # Let DOS variable expansion print the short 8.3 style file name.
14882 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14883 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14886 # Convert to MSYS style.
14887 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14890 # Convert to unix form, then to dos form, then back to unix form
14891 # but this time dos style (no spaces!) so that the unix form looks
14892 # like /cygdrive/c/PROGRA~1:/cygdr...
14893 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14894 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14895 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14898 sys_lib_search_path_spec=$LIB
14899 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14900 # It is most probably a Windows format PATH.
14901 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14903 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14905 # FIXME: find the short name or the path components, as spaces are
14906 # common. (e.g. "Program Files" -> "PROGRA~1")
14910 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14911 postinstall_cmds='base_file=`basename \$file`~
14912 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14913 dldir=$destdir/`dirname \$dlpath`~
14914 test -d \$dldir || mkdir -p \$dldir~
14915 $install_prog $dir/$dlname \$dldir/$dlname'
14916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14917 dlpath=$dir/\$dldll~
14919 shlibpath_overrides_runpath=yes
14920 dynamic_linker='Win32 link.exe'
14924 # Assume MSVC wrapper
14925 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14926 dynamic_linker='Win32 ld.exe'
14929 # FIXME: first we should search . and the directory the executable is in
14933 darwin* | rhapsody*)
14934 dynamic_linker="$host_os dyld"
14935 version_type=darwin
14938 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14939 soname_spec='$libname$release$major$shared_ext'
14940 shlibpath_overrides_runpath=yes
14941 shlibpath_var=DYLD_LIBRARY_PATH
14942 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14944 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14945 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14949 version_type=linux # correct to gnu/linux during the next big refactor
14952 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14953 soname_spec='$libname$release$shared_ext$major'
14954 shlibpath_var=LD_LIBRARY_PATH
14957 freebsd* | dragonfly*)
14958 # DragonFly does not have aout. When/if they implement a new
14959 # versioning mechanism, adjust this.
14960 if test -x /usr/bin/objformat; then
14961 objformat=`/usr/bin/objformat`
14964 freebsd[23].*) objformat=aout ;;
14965 *) objformat=elf ;;
14968 version_type=freebsd-$objformat
14969 case $version_type in
14971 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14972 soname_spec='$libname$release$shared_ext$major'
14977 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14981 shlibpath_var=LD_LIBRARY_PATH
14984 shlibpath_overrides_runpath=yes
14986 freebsd3.[01]* | freebsdelf3.[01]*)
14987 shlibpath_overrides_runpath=yes
14988 hardcode_into_libs=yes
14990 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14991 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14992 shlibpath_overrides_runpath=no
14993 hardcode_into_libs=yes
14995 *) # from 4.6 on, and DragonFly
14996 shlibpath_overrides_runpath=yes
14997 hardcode_into_libs=yes
15003 version_type=linux # correct to gnu/linux during the next big refactor
15006 dynamic_linker="$host_os runtime_loader"
15007 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15008 soname_spec='$libname$release$shared_ext$major'
15009 shlibpath_var=LIBRARY_PATH
15010 shlibpath_overrides_runpath=no
15011 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15012 hardcode_into_libs=yes
15015 hpux9* | hpux10* | hpux11*)
15016 # Give a soname corresponding to the major version so that dld.sl refuses to
15017 # link against other versions.
15024 hardcode_into_libs=yes
15025 dynamic_linker="$host_os dld.so"
15026 shlibpath_var=LD_LIBRARY_PATH
15027 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15028 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15029 soname_spec='$libname$release$shared_ext$major'
15030 if test 32 = "$HPUX_IA64_MODE"; then
15031 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15032 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15034 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15035 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15040 hardcode_into_libs=yes
15041 dynamic_linker="$host_os dld.sl"
15042 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15043 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15044 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15045 soname_spec='$libname$release$shared_ext$major'
15046 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15047 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15051 dynamic_linker="$host_os dld.sl"
15052 shlibpath_var=SHLIB_PATH
15053 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15055 soname_spec='$libname$release$shared_ext$major'
15058 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15059 postinstall_cmds='chmod 555 $lib'
15060 # or fails outright, so override atomically:
15061 install_override_mode=555
15065 version_type=linux # correct to gnu/linux during the next big refactor
15068 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15069 soname_spec='$libname$release$shared_ext$major'
15070 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15071 shlibpath_var=LD_LIBRARY_PATH
15072 shlibpath_overrides_runpath=no
15073 hardcode_into_libs=yes
15076 irix5* | irix6* | nonstopux*)
15078 nonstopux*) version_type=nonstopux ;;
15080 if test yes = "$lt_cv_prog_gnu_ld"; then
15081 version_type=linux # correct to gnu/linux during the next big refactor
15088 soname_spec='$libname$release$shared_ext$major'
15089 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15091 irix5* | nonstopux*)
15092 libsuff= shlibsuff=
15095 case $LD in # libtool.m4 will add one of these switches to LD
15096 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15097 libsuff= shlibsuff= libmagic=32-bit;;
15098 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15099 libsuff=32 shlibsuff=N32 libmagic=N32;;
15100 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15101 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15102 *) libsuff= shlibsuff= libmagic=never-match;;
15106 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15107 shlibpath_overrides_runpath=no
15108 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15109 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15110 hardcode_into_libs=yes
15113 # No shared lib support for Linux oldld, aout, or coff.
15114 linux*oldld* | linux*aout* | linux*coff*)
15119 version_type=none # Android doesn't support versioned libraries.
15122 library_names_spec='$libname$release$shared_ext'
15123 soname_spec='$libname$release$shared_ext'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=yes
15128 # This implies no fast_install, which is unacceptable.
15129 # Some rework will be needed to allow for fast_install
15130 # before this can be enabled.
15131 hardcode_into_libs=yes
15133 dynamic_linker='Android linker'
15134 # Don't embed -rpath directories since the linker doesn't support them.
15135 hardcode_libdir_flag_spec='-L$libdir'
15138 # This must be glibc/ELF.
15139 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15140 version_type=linux # correct to gnu/linux during the next big refactor
15143 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15144 soname_spec='$libname$release$shared_ext$major'
15145 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15146 shlibpath_var=LD_LIBRARY_PATH
15147 shlibpath_overrides_runpath=no
15149 # Some binutils ld are patched to set DT_RUNPATH
15150 if test ${lt_cv_shlibpath_overrides_runpath+y}
15152 printf %s "(cached) " >&6
15154 lt_cv_shlibpath_overrides_runpath=no
15155 save_LDFLAGS=$LDFLAGS
15156 save_libdir=$libdir
15157 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15158 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15160 /* end confdefs.h. */
15169 if ac_fn_c_try_link "$LINENO"
15171 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15173 lt_cv_shlibpath_overrides_runpath=yes
15176 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15177 conftest$ac_exeext conftest.$ac_ext
15178 LDFLAGS=$save_LDFLAGS
15179 libdir=$save_libdir
15183 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15185 # This implies no fast_install, which is unacceptable.
15186 # Some rework will be needed to allow for fast_install
15187 # before this can be enabled.
15188 hardcode_into_libs=yes
15190 # Ideally, we could use ldconfig to report *all* directores which are
15191 # searched for libraries, however this is still not possible. Aside from not
15192 # being certain /sbin/ldconfig is available, command
15193 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15194 # even though it is searched at run-time. Try to do the best guess by
15195 # appending ld.so.conf contents (and includes) to the search path.
15196 if test -f /etc/ld.so.conf; then
15197 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' ' '`
15198 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15201 # We used to test for /lib/ld.so.1 and disable shared libraries on
15202 # powerpc, because MkLinux only supported shared libraries with the
15203 # GNU dynamic linker. Since this was broken with cross compilers,
15204 # most powerpc-linux boxes support dynamic linking these days and
15205 # people can always --disable-shared, the test was removed, and we
15206 # assume the GNU/Linux dynamic linker is in use.
15207 dynamic_linker='GNU/Linux ld.so'
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15215 soname_spec='${libname}${release}${shared_ext}$major'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=no
15218 hardcode_into_libs=yes
15219 dynamic_linker='NetBSD ld.elf_so'
15226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15227 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15229 dynamic_linker='NetBSD (a.out) ld.so'
15231 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15232 soname_spec='$libname$release$shared_ext$major'
15233 dynamic_linker='NetBSD ld.elf_so'
15235 shlibpath_var=LD_LIBRARY_PATH
15236 shlibpath_overrides_runpath=yes
15237 hardcode_into_libs=yes
15241 version_type=linux # correct to gnu/linux during the next big refactor
15242 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15243 shlibpath_var=LD_LIBRARY_PATH
15244 shlibpath_overrides_runpath=yes
15251 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15252 soname_spec='$libname$release$shared_ext$major'
15253 shlibpath_var=LD_LIBRARY_PATH
15254 shlibpath_overrides_runpath=no
15255 hardcode_into_libs=yes
15256 dynamic_linker='ldqnx.so'
15259 openbsd* | bitrig*)
15261 sys_lib_dlsearch_path_spec=/usr/lib
15263 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15268 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15269 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15270 shlibpath_var=LD_LIBRARY_PATH
15271 shlibpath_overrides_runpath=yes
15275 libname_spec='$name'
15276 version_type=windows
15280 # OS/2 can only load a DLL with a base name of 8 characters or less.
15281 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15282 v=$($ECHO $release$versuffix | tr -d .-);
15283 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15284 $ECHO $n$v`$shared_ext'
15285 library_names_spec='${libname}_dll.$libext'
15286 dynamic_linker='OS/2 ld.exe'
15287 shlibpath_var=BEGINLIBPATH
15288 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15289 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15290 postinstall_cmds='base_file=`basename \$file`~
15291 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15292 dldir=$destdir/`dirname \$dlpath`~
15293 test -d \$dldir || mkdir -p \$dldir~
15294 $install_prog $dir/$dlname \$dldir/$dlname~
15295 chmod a+x \$dldir/$dlname~
15296 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15297 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15299 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15300 dlpath=$dir/\$dldll~
15304 osf3* | osf4* | osf5*)
15308 soname_spec='$libname$release$shared_ext$major'
15309 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15310 shlibpath_var=LD_LIBRARY_PATH
15311 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15312 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15320 version_type=linux # correct to gnu/linux during the next big refactor
15323 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15324 soname_spec='$libname$release$shared_ext$major'
15325 shlibpath_var=LD_LIBRARY_PATH
15326 shlibpath_overrides_runpath=yes
15327 hardcode_into_libs=yes
15328 # ldd complains unless libraries are executable
15329 postinstall_cmds='chmod +x $lib'
15334 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15335 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15336 shlibpath_var=LD_LIBRARY_PATH
15337 shlibpath_overrides_runpath=yes
15338 if test yes = "$with_gnu_ld"; then
15345 version_type=linux # correct to gnu/linux during the next big refactor
15346 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15347 soname_spec='$libname$release$shared_ext$major'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 case $host_vendor in
15351 shlibpath_overrides_runpath=no
15353 runpath_var=LD_RUN_PATH
15361 shlibpath_overrides_runpath=no
15362 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15368 if test -d /usr/nec; then
15369 version_type=linux # correct to gnu/linux during the next big refactor
15370 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15371 soname_spec='$libname$shared_ext.$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15376 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15380 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15381 soname_spec='$libname$release$shared_ext$major'
15382 shlibpath_var=LD_LIBRARY_PATH
15383 shlibpath_overrides_runpath=yes
15384 hardcode_into_libs=yes
15385 if test yes = "$with_gnu_ld"; then
15386 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15388 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15391 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15395 sys_lib_dlsearch_path_spec='/usr/lib'
15399 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15400 version_type=linux # correct to gnu/linux during the next big refactor
15403 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15404 shlibpath_var=LD_LIBRARY_PATH
15405 shlibpath_overrides_runpath=no
15406 hardcode_into_libs=yes
15410 version_type=linux # correct to gnu/linux during the next big refactor
15411 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15412 soname_spec='$libname$release$shared_ext$major'
15413 shlibpath_var=LD_LIBRARY_PATH
15420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15421 printf "%s\n" "$dynamic_linker" >&6; }
15422 test no = "$dynamic_linker" && can_build_shared=no
15424 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15425 if test yes = "$GCC"; then
15426 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15429 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15430 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15433 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15434 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15437 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15438 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15440 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15441 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15443 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15444 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15543 printf %s "checking how to hardcode library paths into programs... " >&6; }
15545 if test -n "$hardcode_libdir_flag_spec" ||
15546 test -n "$runpath_var" ||
15547 test yes = "$hardcode_automatic"; then
15549 # We can hardcode non-existent directories.
15550 if test no != "$hardcode_direct" &&
15551 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15552 # have to relink, otherwise we might link with an installed library
15553 # when we should be linking with a yet-to-be-installed one
15554 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15555 test no != "$hardcode_minus_L"; then
15556 # Linking always hardcodes the temporary library directory.
15557 hardcode_action=relink
15559 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15560 hardcode_action=immediate
15563 # We cannot hardcode anything, or else we can only hardcode existing
15565 hardcode_action=unsupported
15567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15568 printf "%s\n" "$hardcode_action" >&6; }
15570 if test relink = "$hardcode_action" ||
15571 test yes = "$inherit_rpath"; then
15572 # Fast installation is not supported
15573 enable_fast_install=no
15574 elif test yes = "$shlibpath_overrides_runpath" ||
15575 test no = "$enable_shared"; then
15576 # Fast installation is not necessary
15577 enable_fast_install=needless
15585 if test yes != "$enable_dlopen"; then
15586 enable_dlopen=unknown
15587 enable_dlopen_self=unknown
15588 enable_dlopen_self_static=unknown
15595 lt_cv_dlopen=load_add_on
15597 lt_cv_dlopen_self=yes
15600 mingw* | pw32* | cegcc*)
15601 lt_cv_dlopen=LoadLibrary
15606 lt_cv_dlopen=dlopen
15611 # if libdl is installed we need to link against it
15612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15613 printf %s "checking for dlopen in -ldl... " >&6; }
15614 if test ${ac_cv_lib_dl_dlopen+y}
15616 printf %s "(cached) " >&6
15618 ac_check_lib_save_LIBS=$LIBS
15620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15621 /* end confdefs.h. */
15635 if ac_fn_c_try_link "$LINENO"
15637 ac_cv_lib_dl_dlopen=yes
15639 ac_cv_lib_dl_dlopen=no
15641 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15642 conftest$ac_exeext conftest.$ac_ext
15643 LIBS=$ac_check_lib_save_LIBS
15645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15646 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15647 if test "x$ac_cv_lib_dl_dlopen" = xyes
15649 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15654 lt_cv_dlopen_self=yes
15661 # Don't try to run any link tests for TPF. We know it's impossible
15662 # because TPF is a cross-compiler, and we know how we open DSOs.
15663 lt_cv_dlopen=dlopen
15665 lt_cv_dlopen_self=no
15669 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15670 if test "x$ac_cv_func_shl_load" = xyes
15672 lt_cv_dlopen=shl_load
15674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15675 printf %s "checking for shl_load in -ldld... " >&6; }
15676 if test ${ac_cv_lib_dld_shl_load+y}
15678 printf %s "(cached) " >&6
15680 ac_check_lib_save_LIBS=$LIBS
15682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15683 /* end confdefs.h. */
15692 return shl_load ();
15697 if ac_fn_c_try_link "$LINENO"
15699 ac_cv_lib_dld_shl_load=yes
15701 ac_cv_lib_dld_shl_load=no
15703 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15704 conftest$ac_exeext conftest.$ac_ext
15705 LIBS=$ac_check_lib_save_LIBS
15707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15708 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15709 if test "x$ac_cv_lib_dld_shl_load" = xyes
15711 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15713 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15714 if test "x$ac_cv_func_dlopen" = xyes
15716 lt_cv_dlopen=dlopen
15718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15719 printf %s "checking for dlopen in -ldl... " >&6; }
15720 if test ${ac_cv_lib_dl_dlopen+y}
15722 printf %s "(cached) " >&6
15724 ac_check_lib_save_LIBS=$LIBS
15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15727 /* end confdefs.h. */
15741 if ac_fn_c_try_link "$LINENO"
15743 ac_cv_lib_dl_dlopen=yes
15745 ac_cv_lib_dl_dlopen=no
15747 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15748 conftest$ac_exeext conftest.$ac_ext
15749 LIBS=$ac_check_lib_save_LIBS
15751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15752 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15753 if test "x$ac_cv_lib_dl_dlopen" = xyes
15755 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15758 printf %s "checking for dlopen in -lsvld... " >&6; }
15759 if test ${ac_cv_lib_svld_dlopen+y}
15761 printf %s "(cached) " >&6
15763 ac_check_lib_save_LIBS=$LIBS
15764 LIBS="-lsvld $LIBS"
15765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15766 /* end confdefs.h. */
15780 if ac_fn_c_try_link "$LINENO"
15782 ac_cv_lib_svld_dlopen=yes
15784 ac_cv_lib_svld_dlopen=no
15786 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15787 conftest$ac_exeext conftest.$ac_ext
15788 LIBS=$ac_check_lib_save_LIBS
15790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15791 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15792 if test "x$ac_cv_lib_svld_dlopen" = xyes
15794 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15797 printf %s "checking for dld_link in -ldld... " >&6; }
15798 if test ${ac_cv_lib_dld_dld_link+y}
15800 printf %s "(cached) " >&6
15802 ac_check_lib_save_LIBS=$LIBS
15804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15805 /* end confdefs.h. */
15814 return dld_link ();
15819 if ac_fn_c_try_link "$LINENO"
15821 ac_cv_lib_dld_dld_link=yes
15823 ac_cv_lib_dld_dld_link=no
15825 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15826 conftest$ac_exeext conftest.$ac_ext
15827 LIBS=$ac_check_lib_save_LIBS
15829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15830 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
15831 if test "x$ac_cv_lib_dld_dld_link" = xyes
15833 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15854 if test no = "$lt_cv_dlopen"; then
15860 case $lt_cv_dlopen in
15862 save_CPPFLAGS=$CPPFLAGS
15863 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15865 save_LDFLAGS=$LDFLAGS
15866 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15869 LIBS="$lt_cv_dlopen_libs $LIBS"
15871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15872 printf %s "checking whether a program can dlopen itself... " >&6; }
15873 if test ${lt_cv_dlopen_self+y}
15875 printf %s "(cached) " >&6
15877 if test yes = "$cross_compiling"; then :
15878 lt_cv_dlopen_self=cross
15880 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15881 lt_status=$lt_dlunknown
15882 cat > conftest.$ac_ext <<_LT_EOF
15883 #line $LINENO "configure"
15884 #include "confdefs.h"
15893 # define LT_DLGLOBAL RTLD_GLOBAL
15896 # define LT_DLGLOBAL DL_GLOBAL
15898 # define LT_DLGLOBAL 0
15902 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15903 find out it does not work in some platform. */
15904 #ifndef LT_DLLAZY_OR_NOW
15906 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15909 # define LT_DLLAZY_OR_NOW DL_LAZY
15912 # define LT_DLLAZY_OR_NOW RTLD_NOW
15915 # define LT_DLLAZY_OR_NOW DL_NOW
15917 # define LT_DLLAZY_OR_NOW 0
15924 /* When -fvisibility=hidden is used, assume the code has been annotated
15925 correspondingly for the symbols needed. */
15926 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15927 int fnord () __attribute__((visibility("default")));
15930 int fnord () { return 42; }
15933 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15934 int status = $lt_dlunknown;
15938 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15941 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15942 else puts (dlerror ());
15944 /* dlclose (self); */
15952 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15953 (eval $ac_link) 2>&5
15955 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15956 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15957 (./conftest; exit; ) >&5 2>/dev/null
15959 case x$lt_status in
15960 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15961 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15962 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15965 # compilation failed
15966 lt_cv_dlopen_self=no
15973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15974 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
15976 if test yes = "$lt_cv_dlopen_self"; then
15977 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15979 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
15980 if test ${lt_cv_dlopen_self_static+y}
15982 printf %s "(cached) " >&6
15984 if test yes = "$cross_compiling"; then :
15985 lt_cv_dlopen_self_static=cross
15987 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15988 lt_status=$lt_dlunknown
15989 cat > conftest.$ac_ext <<_LT_EOF
15990 #line $LINENO "configure"
15991 #include "confdefs.h"
16000 # define LT_DLGLOBAL RTLD_GLOBAL
16003 # define LT_DLGLOBAL DL_GLOBAL
16005 # define LT_DLGLOBAL 0
16009 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16010 find out it does not work in some platform. */
16011 #ifndef LT_DLLAZY_OR_NOW
16013 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16016 # define LT_DLLAZY_OR_NOW DL_LAZY
16019 # define LT_DLLAZY_OR_NOW RTLD_NOW
16022 # define LT_DLLAZY_OR_NOW DL_NOW
16024 # define LT_DLLAZY_OR_NOW 0
16031 /* When -fvisibility=hidden is used, assume the code has been annotated
16032 correspondingly for the symbols needed. */
16033 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16034 int fnord () __attribute__((visibility("default")));
16037 int fnord () { return 42; }
16040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16041 int status = $lt_dlunknown;
16045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16048 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16049 else puts (dlerror ());
16051 /* dlclose (self); */
16059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16060 (eval $ac_link) 2>&5
16062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16063 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16064 (./conftest; exit; ) >&5 2>/dev/null
16066 case x$lt_status in
16067 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16068 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16069 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16072 # compilation failed
16073 lt_cv_dlopen_self_static=no
16080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16081 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16084 CPPFLAGS=$save_CPPFLAGS
16085 LDFLAGS=$save_LDFLAGS
16090 case $lt_cv_dlopen_self in
16091 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16092 *) enable_dlopen_self=unknown ;;
16095 case $lt_cv_dlopen_self_static in
16096 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16097 *) enable_dlopen_self_static=unknown ;;
16119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16120 printf %s "checking whether stripping libraries is possible... " >&6; }
16121 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16122 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
16123 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
16124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16125 printf "%s\n" "yes" >&6; }
16127 # FIXME - insert some real tests, host_os isn't really good enough
16130 if test -n "$STRIP"; then
16131 striplib="$STRIP -x"
16132 old_striplib="$STRIP -S"
16133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16134 printf "%s\n" "yes" >&6; }
16136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16137 printf "%s\n" "no" >&6; }
16141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16142 printf "%s\n" "no" >&6; }
16158 # Report what library types will actually be built
16159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16160 printf %s "checking if libtool supports shared libraries... " >&6; }
16161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16162 printf "%s\n" "$can_build_shared" >&6; }
16164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16165 printf %s "checking whether to build shared libraries... " >&6; }
16166 test no = "$can_build_shared" && enable_shared=no
16168 # On AIX, shared libraries and static libraries use the same namespace, and
16169 # are all built from PIC.
16172 test yes = "$enable_shared" && enable_static=no
16173 if test -n "$RANLIB"; then
16174 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16175 postinstall_cmds='$RANLIB $lib'
16180 if test ia64 != "$host_cpu"; then
16181 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16182 yes,aix,yes) ;; # shared object as lib.so file only
16183 yes,svr4,*) ;; # shared object as lib.so archive member only
16184 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16190 printf "%s\n" "$enable_shared" >&6; }
16192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16193 printf %s "checking whether to build static libraries... " >&6; }
16194 # Make sure either enable_shared or enable_static is yes.
16195 test yes = "$enable_shared" || enable_static=yes
16196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16197 printf "%s\n" "$enable_static" >&6; }
16204 ac_cpp='$CPP $CPPFLAGS'
16205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16225 ac_config_commands="$ac_config_commands libtool"
16230 # Only expand once:
16233 ## --------------------- ##
16234 ## End of libtool code ##
16235 ## --------------------- ##
16238 # Verify if finally libtool shared libraries will be built
16241 case "x$enable_shared" in # ((
16243 xc_lt_build_shared=$enable_shared
16246 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16251 # Verify if finally libtool static libraries will be built
16254 case "x$enable_static" in # ((
16256 xc_lt_build_static=$enable_static
16259 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16264 # Verify if libtool shared libraries should be linked using flag -version-info
16267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16268 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16269 xc_lt_shlib_use_version_info='yes'
16270 if test "x$version_type" = 'xnone'; then
16271 xc_lt_shlib_use_version_info='no'
16273 case $host_os in # (
16275 xc_lt_shlib_use_version_info='yes'
16278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16279 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16282 # Verify if libtool shared libraries should be linked using flag -no-undefined
16285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16286 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16287 xc_lt_shlib_use_no_undefined='no'
16288 if test "x$allow_undefined" = 'xno'; then
16289 xc_lt_shlib_use_no_undefined='yes'
16290 elif test "x$allow_undefined_flag" = 'xunsupported'; then
16291 xc_lt_shlib_use_no_undefined='yes'
16293 case $host_os in # (
16294 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16295 xc_lt_shlib_use_no_undefined='yes'
16298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16299 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16302 # Verify if libtool shared libraries should be linked using flag -mimpure-text
16305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16306 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16307 xc_lt_shlib_use_mimpure_text='no'
16308 case $host_os in # (
16310 if test "x$GCC" = 'xyes'; then
16311 xc_lt_shlib_use_mimpure_text='yes'
16315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16316 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16319 # Find out whether libtool libraries would be built wit PIC
16322 case "x$pic_mode" in # ((((
16324 xc_lt_build_shared_with_pic='yes'
16325 xc_lt_build_static_with_pic='no'
16328 xc_lt_build_shared_with_pic='yes'
16329 xc_lt_build_static_with_pic='yes'
16332 xc_lt_build_shared_with_pic='no'
16333 xc_lt_build_static_with_pic='no'
16336 xc_lt_build_shared_with_pic='unknown'
16337 xc_lt_build_static_with_pic='unknown'
16338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16339 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16343 printf %s "checking whether to build shared libraries with PIC... " >&6; }
16344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16345 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16347 printf %s "checking whether to build static libraries with PIC... " >&6; }
16348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16349 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16352 # Verify if libtool shared libraries will be built while static not built
16355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16356 printf %s "checking whether to build shared libraries only... " >&6; }
16357 if test "$xc_lt_build_shared" = 'yes' &&
16358 test "$xc_lt_build_static" = 'no'; then
16359 xc_lt_build_shared_only='yes'
16361 xc_lt_build_shared_only='no'
16363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16364 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16367 # Verify if libtool static libraries will be built while shared not built
16370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16371 printf %s "checking whether to build static libraries only... " >&6; }
16372 if test "$xc_lt_build_static" = 'yes' &&
16373 test "$xc_lt_build_shared" = 'no'; then
16374 xc_lt_build_static_only='yes'
16376 xc_lt_build_static_only='no'
16378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
16379 printf "%s\n" "$xc_lt_build_static_only" >&6; }
16385 # Automake conditionals based on libtool related checks
16388 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
16389 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
16390 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16392 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16393 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16396 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16397 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16398 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16400 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16401 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16404 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16405 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16406 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16408 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16409 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16414 # Due to libtool and automake machinery limitations of not allowing
16415 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16416 # inclusion of these in shared or static libraries, we are forced to
16417 # build using separate configure runs for shared and static libraries
16418 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16419 # to compile objects for each kind of library. Notice that relying on
16420 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16421 # user might for example choose to build static libraries with PIC.
16425 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16426 # targeting a static library and not building its shared counterpart.
16429 if test "x$xc_lt_build_static_only" = 'xyes'; then
16430 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16431 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16433 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16434 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16439 # Make staticlib CPPFLAG variable and its definition visible in output
16440 # files unconditionally, providing an empty definition unless strictly
16441 # targeting a static library and not building its shared counterpart.
16444 CPPFLAG_CURL_STATICLIB=
16445 if test "x$xc_lt_build_static_only" = 'xyes'; then
16446 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16451 # Determine whether all dependent libraries must be specified when linking
16452 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16454 REQUIRE_LIB_DEPS=no
16456 REQUIRE_LIB_DEPS=yes
16459 if test x$REQUIRE_LIB_DEPS = xyes; then
16460 USE_EXPLICIT_LIB_DEPS_TRUE=
16461 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16463 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16464 USE_EXPLICIT_LIB_DEPS_FALSE=
16468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16469 printf %s "checking for inline... " >&6; }
16470 if test ${ac_cv_c_inline+y}
16472 printf %s "(cached) " >&6
16475 for ac_kw in inline __inline__ __inline; do
16476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16477 /* end confdefs.h. */
16478 #ifndef __cplusplus
16480 static $ac_kw foo_t static_foo (void) {return 0; }
16481 $ac_kw foo_t foo (void) {return 0; }
16485 if ac_fn_c_try_compile "$LINENO"
16487 ac_cv_c_inline=$ac_kw
16489 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16490 test "$ac_cv_c_inline" != no && break
16494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16495 printf "%s\n" "$ac_cv_c_inline" >&6; }
16497 case $ac_cv_c_inline in
16500 case $ac_cv_c_inline in
16502 *) ac_val=$ac_cv_c_inline;;
16504 cat >>confdefs.h <<_ACEOF
16505 #ifndef __cplusplus
16506 #define inline $ac_val
16515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
16516 printf %s "checking if cpp -P is needed... " >&6; }
16517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16518 /* end confdefs.h. */
16524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16525 $EGREP "TEST.*TEST" >/dev/null 2>&1
16533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
16534 printf "%s\n" "$cpp" >&6; }
16536 if test "x$cpp" = "xyes"; then
16537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
16538 printf %s "checking if cpp -P works... " >&6; }
16539 OLDCPPFLAGS=$CPPFLAGS
16540 CPPFLAGS="$CPPFLAGS -P"
16541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16542 /* end confdefs.h. */
16548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16549 $EGREP "TEST.*TEST" >/dev/null 2>&1
16557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
16558 printf "%s\n" "$cpp_p" >&6; }
16560 if test "x$cpp_p" = "xno"; then
16561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16562 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16569 CPPFLAGS=$OLDCPPFLAGS
16577 compiler_id="unknown"
16580 flags_dbg_yes="unknown"
16581 flags_opt_all="unknown"
16582 flags_opt_yes="unknown"
16583 flags_opt_off="unknown"
16585 flags_prefer_cppflags="no"
16588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16589 printf %s "checking if compiler is DEC/Compaq/HP C... " >&6; }
16591 OLDCPPFLAGS=$CPPFLAGS
16592 # CPPPFLAG comes from CURL_CPP_P
16593 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16594 if test -z "$SED"; then
16595 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16597 if test -z "$GREP"; then
16598 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16603 /* end confdefs.h. */
16607 CURL_DEF_TOKEN __DECC
16612 if ac_fn_c_try_cpp "$LINENO"
16615 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16616 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16617 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16618 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16619 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16624 rm -f conftest.err conftest.i conftest.$ac_ext
16625 if test -z "$tmp_exp"; then
16626 curl_cv_have_def___DECC=no
16629 curl_cv_have_def___DECC=yes
16630 curl_cv_def___DECC=$tmp_exp
16633 CPPFLAGS=$OLDCPPFLAGS
16636 OLDCPPFLAGS=$CPPFLAGS
16637 # CPPPFLAG comes from CURL_CPP_P
16638 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16639 if test -z "$SED"; then
16640 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16642 if test -z "$GREP"; then
16643 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16648 /* end confdefs.h. */
16652 CURL_DEF_TOKEN __DECC_VER
16657 if ac_fn_c_try_cpp "$LINENO"
16660 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16661 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16662 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16663 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16664 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16669 rm -f conftest.err conftest.i conftest.$ac_ext
16670 if test -z "$tmp_exp"; then
16671 curl_cv_have_def___DECC_VER=no
16674 curl_cv_have_def___DECC_VER=yes
16675 curl_cv_def___DECC_VER=$tmp_exp
16678 CPPFLAGS=$OLDCPPFLAGS
16680 if test "$curl_cv_have_def___DECC" = "yes" &&
16681 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16683 printf "%s\n" "yes" >&6; }
16684 compiler_id="DEC_C"
16685 flags_dbg_yes="-g2"
16686 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16687 flags_opt_yes="-O1"
16688 flags_opt_off="-O0"
16690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16691 printf "%s\n" "no" >&6; }
16695 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16696 printf %s "checking if compiler is HP-UX C... " >&6; }
16698 OLDCPPFLAGS=$CPPFLAGS
16699 # CPPPFLAG comes from CURL_CPP_P
16700 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16701 if test -z "$SED"; then
16702 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16704 if test -z "$GREP"; then
16705 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16710 /* end confdefs.h. */
16714 CURL_DEF_TOKEN __HP_cc
16719 if ac_fn_c_try_cpp "$LINENO"
16722 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16723 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16724 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16725 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16726 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16731 rm -f conftest.err conftest.i conftest.$ac_ext
16732 if test -z "$tmp_exp"; then
16733 curl_cv_have_def___HP_cc=no
16736 curl_cv_have_def___HP_cc=yes
16737 curl_cv_def___HP_cc=$tmp_exp
16740 CPPFLAGS=$OLDCPPFLAGS
16742 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16744 printf "%s\n" "yes" >&6; }
16745 compiler_id="HP_UX_C"
16747 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16748 flags_opt_yes="+O2"
16749 flags_opt_off="+O0"
16751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16752 printf "%s\n" "no" >&6; }
16756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16757 printf %s "checking if compiler is IBM C... " >&6; }
16759 OLDCPPFLAGS=$CPPFLAGS
16760 # CPPPFLAG comes from CURL_CPP_P
16761 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16762 if test -z "$SED"; then
16763 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16765 if test -z "$GREP"; then
16766 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16771 /* end confdefs.h. */
16775 CURL_DEF_TOKEN __IBMC__
16780 if ac_fn_c_try_cpp "$LINENO"
16783 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16784 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16785 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16786 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16787 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16792 rm -f conftest.err conftest.i conftest.$ac_ext
16793 if test -z "$tmp_exp"; then
16794 curl_cv_have_def___IBMC__=no
16797 curl_cv_have_def___IBMC__=yes
16798 curl_cv_def___IBMC__=$tmp_exp
16801 CPPFLAGS=$OLDCPPFLAGS
16803 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16805 printf "%s\n" "yes" >&6; }
16806 compiler_id="IBM_C"
16808 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16809 flags_opt_all="$flags_opt_all -qnooptimize"
16810 flags_opt_all="$flags_opt_all -qoptimize=0"
16811 flags_opt_all="$flags_opt_all -qoptimize=1"
16812 flags_opt_all="$flags_opt_all -qoptimize=2"
16813 flags_opt_all="$flags_opt_all -qoptimize=3"
16814 flags_opt_all="$flags_opt_all -qoptimize=4"
16815 flags_opt_all="$flags_opt_all -qoptimize=5"
16816 flags_opt_yes="-O2"
16817 flags_opt_off="-qnooptimize"
16818 flags_prefer_cppflags="yes"
16820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16821 printf "%s\n" "no" >&6; }
16825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16826 printf %s "checking if compiler is Intel C... " >&6; }
16828 OLDCPPFLAGS=$CPPFLAGS
16829 # CPPPFLAG comes from CURL_CPP_P
16830 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16831 if test -z "$SED"; then
16832 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16834 if test -z "$GREP"; then
16835 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16840 /* end confdefs.h. */
16843 #ifdef __INTEL_COMPILER
16844 CURL_DEF_TOKEN __INTEL_COMPILER
16849 if ac_fn_c_try_cpp "$LINENO"
16852 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16853 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16854 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16855 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16856 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16861 rm -f conftest.err conftest.i conftest.$ac_ext
16862 if test -z "$tmp_exp"; then
16863 curl_cv_have_def___INTEL_COMPILER=no
16866 curl_cv_have_def___INTEL_COMPILER=yes
16867 curl_cv_def___INTEL_COMPILER=$tmp_exp
16870 CPPFLAGS=$OLDCPPFLAGS
16872 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16874 printf "%s\n" "yes" >&6; }
16875 compiler_num="$curl_cv_def___INTEL_COMPILER"
16877 OLDCPPFLAGS=$CPPFLAGS
16878 # CPPPFLAG comes from CURL_CPP_P
16879 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16880 if test -z "$SED"; then
16881 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16883 if test -z "$GREP"; then
16884 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16889 /* end confdefs.h. */
16893 CURL_DEF_TOKEN __unix__
16898 if ac_fn_c_try_cpp "$LINENO"
16901 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16902 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16903 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16904 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16905 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16910 rm -f conftest.err conftest.i conftest.$ac_ext
16911 if test -z "$tmp_exp"; then
16912 curl_cv_have_def___unix__=no
16915 curl_cv_have_def___unix__=yes
16916 curl_cv_def___unix__=$tmp_exp
16919 CPPFLAGS=$OLDCPPFLAGS
16921 if test "$curl_cv_have_def___unix__" = "yes"; then
16922 compiler_id="INTEL_UNIX_C"
16924 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16925 flags_opt_yes="-O2"
16926 flags_opt_off="-O0"
16928 compiler_id="INTEL_WINDOWS_C"
16929 flags_dbg_yes="/Zi /Oy-"
16930 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16931 flags_opt_yes="/O2"
16932 flags_opt_off="/Od"
16935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16936 printf "%s\n" "no" >&6; }
16940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16941 printf %s "checking if compiler is clang... " >&6; }
16943 OLDCPPFLAGS=$CPPFLAGS
16944 # CPPPFLAG comes from CURL_CPP_P
16945 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16946 if test -z "$SED"; then
16947 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16949 if test -z "$GREP"; then
16950 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16955 /* end confdefs.h. */
16959 CURL_DEF_TOKEN __clang__
16964 if ac_fn_c_try_cpp "$LINENO"
16967 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16968 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16969 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16970 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16971 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16976 rm -f conftest.err conftest.i conftest.$ac_ext
16977 if test -z "$tmp_exp"; then
16978 curl_cv_have_def___clang__=no
16981 curl_cv_have_def___clang__=yes
16982 curl_cv_def___clang__=$tmp_exp
16985 CPPFLAGS=$OLDCPPFLAGS
16987 if test "$curl_cv_have_def___clang__" = "yes"; then
16988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16989 printf "%s\n" "yes" >&6; }
16990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16991 printf %s "checking if compiler is xlclang... " >&6; }
16993 OLDCPPFLAGS=$CPPFLAGS
16994 # CPPPFLAG comes from CURL_CPP_P
16995 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16996 if test -z "$SED"; then
16997 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16999 if test -z "$GREP"; then
17000 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17005 /* end confdefs.h. */
17009 CURL_DEF_TOKEN __ibmxl__
17014 if ac_fn_c_try_cpp "$LINENO"
17017 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17018 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17019 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17020 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17021 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17026 rm -f conftest.err conftest.i conftest.$ac_ext
17027 if test -z "$tmp_exp"; then
17028 curl_cv_have_def___ibmxl__=no
17031 curl_cv_have_def___ibmxl__=yes
17032 curl_cv_def___ibmxl__=$tmp_exp
17035 CPPFLAGS=$OLDCPPFLAGS
17037 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17039 printf "%s\n" "yes" >&6; }
17040 compiler_id="XLCLANG"
17042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17043 printf "%s\n" "no" >&6; }
17044 compiler_id="CLANG"
17046 fullclangver=`$CC -v 2>&1 | grep version`
17047 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17048 if test -z "$clangver"; then
17049 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17052 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17055 clangvhi=`echo $clangver | cut -d . -f1`
17056 clangvlo=`echo $clangver | cut -d . -f2`
17057 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17059 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17060 flags_opt_yes="-Os"
17061 flags_opt_off="-O0"
17063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17064 printf "%s\n" "no" >&6; }
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17069 printf %s "checking if compiler is GNU C... " >&6; }
17071 OLDCPPFLAGS=$CPPFLAGS
17072 # CPPPFLAG comes from CURL_CPP_P
17073 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17074 if test -z "$SED"; then
17075 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17077 if test -z "$GREP"; then
17078 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17083 /* end confdefs.h. */
17087 CURL_DEF_TOKEN __GNUC__
17092 if ac_fn_c_try_cpp "$LINENO"
17095 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17096 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17097 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17098 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17099 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17104 rm -f conftest.err conftest.i conftest.$ac_ext
17105 if test -z "$tmp_exp"; then
17106 curl_cv_have_def___GNUC__=no
17109 curl_cv_have_def___GNUC__=yes
17110 curl_cv_def___GNUC__=$tmp_exp
17113 CPPFLAGS=$OLDCPPFLAGS
17115 if test "$curl_cv_have_def___GNUC__" = "yes" &&
17116 test "$compiler_id" = "unknown"; then
17117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17118 printf "%s\n" "yes" >&6; }
17119 compiler_id="GNU_C"
17120 gccver=`$CC -dumpversion`
17121 gccvhi=`echo $gccver | cut -d . -f1`
17122 gccvlo=`echo $gccver | cut -d . -f2`
17123 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17125 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17126 flags_opt_yes="-O2"
17127 flags_opt_off="-O0"
17129 OLDCPPFLAGS=$CPPFLAGS
17130 # CPPPFLAG comes from CURL_CPP_P
17131 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17132 if test -z "$SED"; then
17133 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17135 if test -z "$GREP"; then
17136 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17141 /* end confdefs.h. */
17145 CURL_DEF_TOKEN _WIN32
17150 if ac_fn_c_try_cpp "$LINENO"
17153 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17154 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17155 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17156 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17157 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17162 rm -f conftest.err conftest.i conftest.$ac_ext
17163 if test -z "$tmp_exp"; then
17164 curl_cv_have_def__WIN32=no
17167 curl_cv_have_def__WIN32=yes
17168 curl_cv_def__WIN32=$tmp_exp
17171 CPPFLAGS=$OLDCPPFLAGS
17174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17175 printf "%s\n" "no" >&6; }
17179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17180 printf %s "checking if compiler is LCC... " >&6; }
17182 OLDCPPFLAGS=$CPPFLAGS
17183 # CPPPFLAG comes from CURL_CPP_P
17184 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17185 if test -z "$SED"; then
17186 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17188 if test -z "$GREP"; then
17189 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17194 /* end confdefs.h. */
17198 CURL_DEF_TOKEN __LCC__
17203 if ac_fn_c_try_cpp "$LINENO"
17206 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17207 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17208 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17209 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17210 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
17215 rm -f conftest.err conftest.i conftest.$ac_ext
17216 if test -z "$tmp_exp"; then
17217 curl_cv_have_def___LCC__=no
17220 curl_cv_have_def___LCC__=yes
17221 curl_cv_def___LCC__=$tmp_exp
17224 CPPFLAGS=$OLDCPPFLAGS
17226 if test "$curl_cv_have_def___LCC__" = "yes"; then
17227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17228 printf "%s\n" "yes" >&6; }
17235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17236 printf "%s\n" "no" >&6; }
17240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17241 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
17243 OLDCPPFLAGS=$CPPFLAGS
17244 # CPPPFLAG comes from CURL_CPP_P
17245 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17246 if test -z "$SED"; then
17247 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17249 if test -z "$GREP"; then
17250 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17255 /* end confdefs.h. */
17259 CURL_DEF_TOKEN __GNUC__
17264 if ac_fn_c_try_cpp "$LINENO"
17267 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17268 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17269 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17270 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17271 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17276 rm -f conftest.err conftest.i conftest.$ac_ext
17277 if test -z "$tmp_exp"; then
17278 curl_cv_have_def___GNUC__=no
17281 curl_cv_have_def___GNUC__=yes
17282 curl_cv_def___GNUC__=$tmp_exp
17285 CPPFLAGS=$OLDCPPFLAGS
17288 OLDCPPFLAGS=$CPPFLAGS
17289 # CPPPFLAG comes from CURL_CPP_P
17290 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17291 if test -z "$SED"; then
17292 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17294 if test -z "$GREP"; then
17295 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17300 /* end confdefs.h. */
17303 #ifdef _COMPILER_VERSION
17304 CURL_DEF_TOKEN _COMPILER_VERSION
17309 if ac_fn_c_try_cpp "$LINENO"
17312 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17313 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17314 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17315 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17316 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
17321 rm -f conftest.err conftest.i conftest.$ac_ext
17322 if test -z "$tmp_exp"; then
17323 curl_cv_have_def__COMPILER_VERSION=no
17326 curl_cv_have_def__COMPILER_VERSION=yes
17327 curl_cv_def__COMPILER_VERSION=$tmp_exp
17330 CPPFLAGS=$OLDCPPFLAGS
17333 OLDCPPFLAGS=$CPPFLAGS
17334 # CPPPFLAG comes from CURL_CPP_P
17335 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17336 if test -z "$SED"; then
17337 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17339 if test -z "$GREP"; then
17340 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17348 #ifdef _SGI_COMPILER_VERSION
17349 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
17354 if ac_fn_c_try_cpp "$LINENO"
17357 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17358 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17359 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17360 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17361 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
17366 rm -f conftest.err conftest.i conftest.$ac_ext
17367 if test -z "$tmp_exp"; then
17368 curl_cv_have_def__SGI_COMPILER_VERSION=no
17371 curl_cv_have_def__SGI_COMPILER_VERSION=yes
17372 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
17375 CPPFLAGS=$OLDCPPFLAGS
17377 if test "$curl_cv_have_def___GNUC__" = "no" &&
17378 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
17379 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
17380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17381 printf "%s\n" "yes" >&6; }
17382 compiler_id="SGI_MIPSPRO_C"
17384 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17385 flags_opt_yes="-O2"
17386 flags_opt_off="-O0"
17388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17389 printf "%s\n" "no" >&6; }
17393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
17394 printf %s "checking if compiler is SGI MIPS C... " >&6; }
17396 OLDCPPFLAGS=$CPPFLAGS
17397 # CPPPFLAG comes from CURL_CPP_P
17398 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17399 if test -z "$SED"; then
17400 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17402 if test -z "$GREP"; then
17403 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17408 /* end confdefs.h. */
17412 CURL_DEF_TOKEN __GNUC__
17417 if ac_fn_c_try_cpp "$LINENO"
17420 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17421 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17422 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17423 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17424 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17429 rm -f conftest.err conftest.i conftest.$ac_ext
17430 if test -z "$tmp_exp"; then
17431 curl_cv_have_def___GNUC__=no
17434 curl_cv_have_def___GNUC__=yes
17435 curl_cv_def___GNUC__=$tmp_exp
17438 CPPFLAGS=$OLDCPPFLAGS
17441 OLDCPPFLAGS=$CPPFLAGS
17442 # CPPPFLAG comes from CURL_CPP_P
17443 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17444 if test -z "$SED"; then
17445 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17447 if test -z "$GREP"; then
17448 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17453 /* end confdefs.h. */
17457 CURL_DEF_TOKEN __sgi
17462 if ac_fn_c_try_cpp "$LINENO"
17465 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17466 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17467 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17468 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17469 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
17474 rm -f conftest.err conftest.i conftest.$ac_ext
17475 if test -z "$tmp_exp"; then
17476 curl_cv_have_def___sgi=no
17479 curl_cv_have_def___sgi=yes
17480 curl_cv_def___sgi=$tmp_exp
17483 CPPFLAGS=$OLDCPPFLAGS
17485 if test "$curl_cv_have_def___GNUC__" = "no" &&
17486 test "$curl_cv_have_def___sgi" = "yes" &&
17487 test "$compiler_id" = "unknown"; then
17488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17489 printf "%s\n" "yes" >&6; }
17490 compiler_id="SGI_MIPS_C"
17492 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17493 flags_opt_yes="-O2"
17494 flags_opt_off="-O0"
17496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17497 printf "%s\n" "no" >&6; }
17501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17502 printf %s "checking if compiler is SunPro C... " >&6; }
17504 OLDCPPFLAGS=$CPPFLAGS
17505 # CPPPFLAG comes from CURL_CPP_P
17506 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17507 if test -z "$SED"; then
17508 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17510 if test -z "$GREP"; then
17511 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17516 /* end confdefs.h. */
17520 CURL_DEF_TOKEN __SUNPRO_C
17525 if ac_fn_c_try_cpp "$LINENO"
17528 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17529 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17530 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17531 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17532 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17537 rm -f conftest.err conftest.i conftest.$ac_ext
17538 if test -z "$tmp_exp"; then
17539 curl_cv_have_def___SUNPRO_C=no
17542 curl_cv_have_def___SUNPRO_C=yes
17543 curl_cv_def___SUNPRO_C=$tmp_exp
17546 CPPFLAGS=$OLDCPPFLAGS
17548 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17550 printf "%s\n" "yes" >&6; }
17551 compiler_id="SUNPRO_C"
17553 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17554 flags_opt_yes="-xO2"
17557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17558 printf "%s\n" "no" >&6; }
17562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17563 printf %s "checking if compiler is Tiny C... " >&6; }
17565 OLDCPPFLAGS=$CPPFLAGS
17566 # CPPPFLAG comes from CURL_CPP_P
17567 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17568 if test -z "$SED"; then
17569 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17571 if test -z "$GREP"; then
17572 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17577 /* end confdefs.h. */
17581 CURL_DEF_TOKEN __TINYC__
17586 if ac_fn_c_try_cpp "$LINENO"
17589 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17590 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17591 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17592 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17593 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17598 rm -f conftest.err conftest.i conftest.$ac_ext
17599 if test -z "$tmp_exp"; then
17600 curl_cv_have_def___TINYC__=no
17603 curl_cv_have_def___TINYC__=yes
17604 curl_cv_def___TINYC__=$tmp_exp
17607 CPPFLAGS=$OLDCPPFLAGS
17609 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17611 printf "%s\n" "yes" >&6; }
17612 compiler_id="TINY_C"
17618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17619 printf "%s\n" "no" >&6; }
17623 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17624 printf %s "checking if compiler is Watcom C... " >&6; }
17626 OLDCPPFLAGS=$CPPFLAGS
17627 # CPPPFLAG comes from CURL_CPP_P
17628 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17629 if test -z "$SED"; then
17630 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17632 if test -z "$GREP"; then
17633 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17638 /* end confdefs.h. */
17642 CURL_DEF_TOKEN __WATCOMC__
17647 if ac_fn_c_try_cpp "$LINENO"
17650 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17651 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17652 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17653 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17654 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17659 rm -f conftest.err conftest.i conftest.$ac_ext
17660 if test -z "$tmp_exp"; then
17661 curl_cv_have_def___WATCOMC__=no
17664 curl_cv_have_def___WATCOMC__=yes
17665 curl_cv_def___WATCOMC__=$tmp_exp
17668 CPPFLAGS=$OLDCPPFLAGS
17670 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17672 printf "%s\n" "yes" >&6; }
17674 OLDCPPFLAGS=$CPPFLAGS
17675 # CPPPFLAG comes from CURL_CPP_P
17676 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17677 if test -z "$SED"; then
17678 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17680 if test -z "$GREP"; then
17681 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17690 CURL_DEF_TOKEN __UNIX__
17695 if ac_fn_c_try_cpp "$LINENO"
17698 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17699 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17700 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17701 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17702 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17707 rm -f conftest.err conftest.i conftest.$ac_ext
17708 if test -z "$tmp_exp"; then
17709 curl_cv_have_def___UNIX__=no
17712 curl_cv_have_def___UNIX__=yes
17713 curl_cv_def___UNIX__=$tmp_exp
17716 CPPFLAGS=$OLDCPPFLAGS
17718 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17719 compiler_id="WATCOM_UNIX_C"
17720 flags_dbg_yes="-g2"
17721 flags_opt_all="-O0 -O1 -O2 -O3"
17722 flags_opt_yes="-O2"
17723 flags_opt_off="-O0"
17725 compiler_id="WATCOM_WINDOWS_C"
17732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17733 printf "%s\n" "no" >&6; }
17737 if test "$compiler_id" = "unknown"; then
17740 *** Warning: This configure script does not have information about the
17741 *** compiler you are using, relative to the flags required to enable or
17742 *** disable generation of debug info, optimization options or warnings.
17744 *** Whatever settings are present in CFLAGS will be used for this run.
17746 *** If you wish to help the curl project to better support your compiler
17747 *** you can report this and the required info on the libcurl development
17748 *** mailing list: https://lists.haxx.selistinfo/curl-library/
17756 eval _sqz_input=\$$1
17757 for _sqz_token in $_sqz_input; do
17758 if test -z "$_sqz_result"; then
17759 _sqz_result="$_sqz_token"
17761 _sqz_result="$_sqz_result $_sqz_token"
17764 eval $1=\$_sqz_result
17770 if test "$compiler_id" != "unknown"; then
17772 tmp_save_CPPFLAGS="$CPPFLAGS"
17773 tmp_save_CFLAGS="$CFLAGS"
17777 case "$compiler_id" in
17781 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17782 tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
17787 tmp_CFLAGS="$tmp_CFLAGS -std1"
17788 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17789 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17790 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17795 if test "$compiler_num" -ge "295"; then
17796 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17802 tmp_CFLAGS="$tmp_CFLAGS -z"
17803 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17808 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17809 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17810 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17815 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17816 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17817 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17822 tmp_CFLAGS="$tmp_CFLAGS"
17827 tmp_CFLAGS="$tmp_CFLAGS -n"
17832 tmp_CFLAGS="$tmp_CFLAGS"
17837 tmp_CFLAGS="$tmp_CFLAGS"
17842 tmp_CFLAGS="$tmp_CFLAGS"
17847 tmp_CFLAGS="$tmp_CFLAGS"
17852 tmp_CFLAGS="$tmp_CFLAGS"
17857 tmp_CFLAGS="$tmp_CFLAGS"
17862 squeeze tmp_CPPFLAGS
17865 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17867 printf %s "checking if compiler accepts some basic options... " >&6; }
17868 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17869 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17873 tmp_compiler_works="unknown"
17874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17875 /* end confdefs.h. */
17890 if ac_fn_c_try_compile "$LINENO"
17893 tmp_compiler_works="yes"
17897 tmp_compiler_works="no"
17899 sed 's/^/cc-fail: /' conftest.err >&6
17903 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
17904 if test "$tmp_compiler_works" = "yes"; then
17905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17906 /* end confdefs.h. */
17921 if ac_fn_c_try_link "$LINENO"
17924 tmp_compiler_works="yes"
17928 tmp_compiler_works="no"
17930 sed 's/^/link-fail: /' conftest.err >&6
17934 rm -f core conftest.err conftest.$ac_objext conftest.beam \
17935 conftest$ac_exeext conftest.$ac_ext
17937 if test "x$cross_compiling" != "xyes" &&
17938 test "$tmp_compiler_works" = "yes"; then
17941 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
17942 *) library_path_var=LD_LIBRARY_PATH ;;
17945 eval "old=$$library_path_var"
17946 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
17948 eval "export $library_path_var"
17949 if test "$cross_compiling" = yes
17951 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17952 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
17953 as_fn_error $? "cannot run test program while cross compiling
17954 See \`config.log' for more details" "$LINENO" 5; }
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17957 /* end confdefs.h. */
17961 # include <stdlib.h>
17975 if ac_fn_c_try_run "$LINENO"
17977 tmp_compiler_works="yes"
17980 tmp_compiler_works="no"
17982 echo "run-fail: test program exited with status $ac_status" >&6
17986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17987 conftest.$ac_objext conftest.beam conftest.$ac_ext
17990 eval "$library_path_var=\$old" # restore
17993 if test "$tmp_compiler_works" = "yes"; then
17995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17996 printf "%s\n" "yes" >&6; }
17997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17998 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 printf "%s\n" "no" >&6; }
18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18005 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18006 CPPFLAGS="$tmp_save_CPPFLAGS"
18007 CFLAGS="$tmp_save_CFLAGS"
18017 if test "$compiler_id" != "unknown"; then
18019 tmp_save_CFLAGS="$CFLAGS"
18020 tmp_save_CPPFLAGS="$CPPFLAGS"
18023 tmp_CFLAGS="$CFLAGS"
18024 tmp_CPPFLAGS="$CPPFLAGS"
18026 if test "$want_debug" = "yes"; then
18027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18028 printf %s "checking if compiler accepts debug enabling options... " >&6; }
18029 tmp_options="$flags_dbg_yes"
18032 if test "$flags_prefer_cppflags" = "yes"; then
18033 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18034 CFLAGS="$tmp_CFLAGS"
18036 CPPFLAGS="$tmp_CPPFLAGS"
18037 CFLAGS="$tmp_CFLAGS $tmp_options"
18045 if test "$compiler_id" != "unknown"; then
18047 tmp_save_CFLAGS="$CFLAGS"
18048 tmp_save_CPPFLAGS="$CPPFLAGS"
18051 tmp_CFLAGS="$CFLAGS"
18052 tmp_CPPFLAGS="$CPPFLAGS"
18053 honor_optimize_option="yes"
18056 if test "$want_optimize" = "assume_no" ||
18057 test "$want_optimize" = "assume_yes"; then
18058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18059 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18062 ac_var_match_word="no"
18063 for word1 in $tmp_CFLAGS; do
18064 for word2 in $flags_opt_all; do
18065 if test "$word1" = "$word2"; then
18066 ac_var_match_word="yes"
18071 if test "$ac_var_match_word" = "yes"; then
18073 honor_optimize_option="no"
18080 ac_var_match_word="no"
18081 for word1 in $tmp_CPPFLAGS; do
18082 for word2 in $flags_opt_all; do
18083 if test "$word1" = "$word2"; then
18084 ac_var_match_word="yes"
18089 if test "$ac_var_match_word" = "yes"; then
18091 honor_optimize_option="no"
18096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18097 printf "%s\n" "$honor_optimize_option" >&6; }
18098 if test "$honor_optimize_option" = "yes"; then
18099 if test "$want_optimize" = "assume_yes"; then
18100 want_optimize="yes"
18102 if test "$want_optimize" = "assume_no"; then
18108 if test "$honor_optimize_option" = "yes"; then
18111 for word1 in $tmp_CFLAGS; do
18112 ac_var_strip_word="no"
18113 for word2 in $flags_opt_all; do
18114 if test "$word1" = "$word2"; then
18115 ac_var_strip_word="yes"
18118 if test "$ac_var_strip_word" = "no"; then
18119 ac_var_stripped="$ac_var_stripped $word1"
18122 tmp_CFLAGS="$ac_var_stripped"
18127 for word1 in $tmp_CPPFLAGS; do
18128 ac_var_strip_word="no"
18129 for word2 in $flags_opt_all; do
18130 if test "$word1" = "$word2"; then
18131 ac_var_strip_word="yes"
18134 if test "$ac_var_strip_word" = "no"; then
18135 ac_var_stripped="$ac_var_stripped $word1"
18138 tmp_CPPFLAGS="$ac_var_stripped"
18139 squeeze tmp_CPPFLAGS
18141 if test "$want_optimize" = "yes"; then
18142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18143 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18144 tmp_options="$flags_opt_yes"
18146 if test "$want_optimize" = "no"; then
18147 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18148 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18149 tmp_options="$flags_opt_off"
18151 if test "$flags_prefer_cppflags" = "yes"; then
18152 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18153 CFLAGS="$tmp_CFLAGS"
18155 CPPFLAGS="$tmp_CPPFLAGS"
18156 CFLAGS="$tmp_CFLAGS $tmp_options"
18161 tmp_compiler_works="unknown"
18162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18163 /* end confdefs.h. */
18178 if ac_fn_c_try_compile "$LINENO"
18181 tmp_compiler_works="yes"
18185 tmp_compiler_works="no"
18187 sed 's/^/cc-fail: /' conftest.err >&6
18191 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18192 if test "$tmp_compiler_works" = "yes"; then
18193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18194 /* end confdefs.h. */
18209 if ac_fn_c_try_link "$LINENO"
18212 tmp_compiler_works="yes"
18216 tmp_compiler_works="no"
18218 sed 's/^/link-fail: /' conftest.err >&6
18222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18223 conftest$ac_exeext conftest.$ac_ext
18225 if test "x$cross_compiling" != "xyes" &&
18226 test "$tmp_compiler_works" = "yes"; then
18229 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
18230 *) library_path_var=LD_LIBRARY_PATH ;;
18233 eval "old=$$library_path_var"
18234 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
18236 eval "export $library_path_var"
18237 if test "$cross_compiling" = yes
18239 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18240 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18241 as_fn_error $? "cannot run test program while cross compiling
18242 See \`config.log' for more details" "$LINENO" 5; }
18244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18245 /* end confdefs.h. */
18249 # include <stdlib.h>
18263 if ac_fn_c_try_run "$LINENO"
18265 tmp_compiler_works="yes"
18268 tmp_compiler_works="no"
18270 echo "run-fail: test program exited with status $ac_status" >&6
18274 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18275 conftest.$ac_objext conftest.beam conftest.$ac_ext
18278 eval "$library_path_var=\$old" # restore
18281 if test "$tmp_compiler_works" = "yes"; then
18283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18284 printf "%s\n" "yes" >&6; }
18285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18286 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
18290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18291 printf "%s\n" "no" >&6; }
18292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18293 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18294 CPPFLAGS="$tmp_save_CPPFLAGS"
18295 CFLAGS="$tmp_save_CFLAGS"
18305 if test "$compiler_id" != "unknown"; then
18307 tmp_save_CPPFLAGS="$CPPFLAGS"
18308 tmp_save_CFLAGS="$CFLAGS"
18312 case "$compiler_id" in
18316 if test "$want_warnings" = "yes"; then
18317 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18319 ac_var_added_warnings=""
18320 for warning in all extra; do
18322 ac_var_match_word="no"
18323 for word1 in $CFLAGS; do
18324 for word2 in -Wno-$warning -W$warning; do
18325 if test "$word1" = "$word2"; then
18326 ac_var_match_word="yes"
18331 if test "$ac_var_match_word" = "no"; then
18332 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18335 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18339 ac_var_added_warnings=""
18340 for warning in pointer-arith write-strings; do
18342 ac_var_match_word="no"
18343 for word1 in $CFLAGS; do
18344 for word2 in -Wno-$warning -W$warning; do
18345 if test "$word1" = "$word2"; then
18346 ac_var_match_word="yes"
18351 if test "$ac_var_match_word" = "no"; then
18352 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18355 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18359 ac_var_added_warnings=""
18360 for warning in shadow; do
18362 ac_var_match_word="no"
18363 for word1 in $CFLAGS; do
18364 for word2 in -Wno-$warning -W$warning; do
18365 if test "$word1" = "$word2"; then
18366 ac_var_match_word="yes"
18371 if test "$ac_var_match_word" = "no"; then
18372 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18375 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18379 ac_var_added_warnings=""
18380 for warning in inline nested-externs; do
18382 ac_var_match_word="no"
18383 for word1 in $CFLAGS; do
18384 for word2 in -Wno-$warning -W$warning; do
18385 if test "$word1" = "$word2"; then
18386 ac_var_match_word="yes"
18391 if test "$ac_var_match_word" = "no"; then
18392 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18395 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18399 ac_var_added_warnings=""
18400 for warning in missing-declarations; do
18402 ac_var_match_word="no"
18403 for word1 in $CFLAGS; do
18404 for word2 in -Wno-$warning -W$warning; do
18405 if test "$word1" = "$word2"; then
18406 ac_var_match_word="yes"
18411 if test "$ac_var_match_word" = "no"; then
18412 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18415 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18419 ac_var_added_warnings=""
18420 for warning in missing-prototypes; do
18422 ac_var_match_word="no"
18423 for word1 in $CFLAGS; do
18424 for word2 in -Wno-$warning -W$warning; do
18425 if test "$word1" = "$word2"; then
18426 ac_var_match_word="yes"
18431 if test "$ac_var_match_word" = "no"; then
18432 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18435 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18438 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18440 ac_var_added_warnings=""
18441 for warning in float-equal; do
18443 ac_var_match_word="no"
18444 for word1 in $CFLAGS; do
18445 for word2 in -Wno-$warning -W$warning; do
18446 if test "$word1" = "$word2"; then
18447 ac_var_match_word="yes"
18452 if test "$ac_var_match_word" = "no"; then
18453 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18456 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18460 ac_var_added_warnings=""
18461 for warning in no-multichar sign-compare; do
18463 ac_var_match_word="no"
18464 for word1 in $CFLAGS; do
18465 for word2 in -Wno-$warning -W$warning; do
18466 if test "$word1" = "$word2"; then
18467 ac_var_match_word="yes"
18472 if test "$ac_var_match_word" = "no"; then
18473 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18476 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18480 ac_var_added_warnings=""
18481 for warning in undef; do
18483 ac_var_match_word="no"
18484 for word1 in $CFLAGS; do
18485 for word2 in -Wno-$warning -W$warning; do
18486 if test "$word1" = "$word2"; then
18487 ac_var_match_word="yes"
18492 if test "$ac_var_match_word" = "no"; then
18493 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18496 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18499 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18501 ac_var_added_warnings=""
18502 for warning in endif-labels strict-prototypes; do
18504 ac_var_match_word="no"
18505 for word1 in $CFLAGS; do
18506 for word2 in -Wno-$warning -W$warning; do
18507 if test "$word1" = "$word2"; then
18508 ac_var_match_word="yes"
18513 if test "$ac_var_match_word" = "no"; then
18514 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18517 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18521 ac_var_added_warnings=""
18522 for warning in declaration-after-statement; do
18524 ac_var_match_word="no"
18525 for word1 in $CFLAGS; do
18526 for word2 in -Wno-$warning -W$warning; do
18527 if test "$word1" = "$word2"; then
18528 ac_var_match_word="yes"
18533 if test "$ac_var_match_word" = "no"; then
18534 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18537 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18541 ac_var_added_warnings=""
18542 for warning in cast-align; do
18544 ac_var_match_word="no"
18545 for word1 in $CFLAGS; do
18546 for word2 in -Wno-$warning -W$warning; do
18547 if test "$word1" = "$word2"; then
18548 ac_var_match_word="yes"
18553 if test "$ac_var_match_word" = "no"; then
18554 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18557 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18560 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18562 ac_var_added_warnings=""
18563 for warning in shorten-64-to-32; do
18565 ac_var_match_word="no"
18566 for word1 in $CFLAGS; do
18567 for word2 in -Wno-$warning -W$warning; do
18568 if test "$word1" = "$word2"; then
18569 ac_var_match_word="yes"
18574 if test "$ac_var_match_word" = "no"; then
18575 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18578 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18582 if test "$compiler_num" -ge "101"; then
18584 ac_var_added_warnings=""
18585 for warning in unused; do
18587 ac_var_match_word="no"
18588 for word1 in $CFLAGS; do
18589 for word2 in -Wno-$warning -W$warning; do
18590 if test "$word1" = "$word2"; then
18591 ac_var_match_word="yes"
18596 if test "$ac_var_match_word" = "no"; then
18597 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18600 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18605 if test "$compiler_num" -ge "208"; then
18607 ac_var_added_warnings=""
18608 for warning in vla; do
18610 ac_var_match_word="no"
18611 for word1 in $CFLAGS; do
18612 for word2 in -Wno-$warning -W$warning; do
18613 if test "$word1" = "$word2"; then
18614 ac_var_match_word="yes"
18619 if test "$ac_var_match_word" = "no"; then
18620 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18623 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18628 if test "$compiler_num" -ge "209"; then
18630 ac_var_added_warnings=""
18631 for warning in shift-sign-overflow; do
18633 ac_var_match_word="no"
18634 for word1 in $CFLAGS; do
18635 for word2 in -Wno-$warning -W$warning; do
18636 if test "$word1" = "$word2"; then
18637 ac_var_match_word="yes"
18642 if test "$ac_var_match_word" = "no"; then
18643 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18646 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18651 if test "$compiler_num" -ge "302"; then
18657 ac_var_added_warnings=""
18658 for warning in missing-variable-declarations; do
18660 ac_var_match_word="no"
18661 for word1 in $CFLAGS; do
18662 for word2 in -Wno-$warning -W$warning; do
18663 if test "$word1" = "$word2"; then
18664 ac_var_match_word="yes"
18669 if test "$ac_var_match_word" = "no"; then
18670 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18673 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18680 if test "$compiler_num" -ge "306"; then
18682 ac_var_added_warnings=""
18683 for warning in double-promotion; do
18685 ac_var_match_word="no"
18686 for word1 in $CFLAGS; do
18687 for word2 in -Wno-$warning -W$warning; do
18688 if test "$word1" = "$word2"; then
18689 ac_var_match_word="yes"
18694 if test "$ac_var_match_word" = "no"; then
18695 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18698 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18703 if test "$compiler_num" -ge "309"; then
18705 ac_var_added_warnings=""
18706 for warning in comma; do
18708 ac_var_match_word="no"
18709 for word1 in $CFLAGS; do
18710 for word2 in -Wno-$warning -W$warning; do
18711 if test "$word1" = "$word2"; then
18712 ac_var_match_word="yes"
18717 if test "$ac_var_match_word" = "no"; then
18718 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18721 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18724 # avoid the varargs warning, fixed in 4.0
18725 # https://bugs.llvm.org/show_bug.cgi?id=29140
18726 if test "$compiler_num" -lt "400"; then
18727 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
18730 if test "$compiler_num" -ge "700"; then
18732 ac_var_added_warnings=""
18733 for warning in assign-enum; do
18735 ac_var_match_word="no"
18736 for word1 in $CFLAGS; do
18737 for word2 in -Wno-$warning -W$warning; do
18738 if test "$word1" = "$word2"; then
18739 ac_var_match_word="yes"
18744 if test "$ac_var_match_word" = "no"; then
18745 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18748 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18752 ac_var_added_warnings=""
18753 for warning in extra-semi-stmt; do
18755 ac_var_match_word="no"
18756 for word1 in $CFLAGS; do
18757 for word2 in -Wno-$warning -W$warning; do
18758 if test "$word1" = "$word2"; then
18759 ac_var_match_word="yes"
18764 if test "$ac_var_match_word" = "no"; then
18765 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18768 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18777 if test "$want_warnings" = "yes"; then
18778 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18784 if test "$want_warnings" = "yes"; then
18786 if test "x$cross_compiling" != "xyes" ||
18787 test "$compiler_num" -ge "300"; then
18788 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18792 ac_var_added_warnings=""
18793 for warning in all; do
18795 ac_var_match_word="no"
18796 for word1 in $CFLAGS; do
18797 for word2 in -Wno-$warning -W$warning; do
18798 if test "$word1" = "$word2"; then
18799 ac_var_match_word="yes"
18804 if test "$ac_var_match_word" = "no"; then
18805 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18808 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18811 tmp_CFLAGS="$tmp_CFLAGS -W"
18813 if test "$compiler_num" -ge "104"; then
18815 ac_var_added_warnings=""
18816 for warning in pointer-arith write-strings; do
18818 ac_var_match_word="no"
18819 for word1 in $CFLAGS; do
18820 for word2 in -Wno-$warning -W$warning; do
18821 if test "$word1" = "$word2"; then
18822 ac_var_match_word="yes"
18827 if test "$ac_var_match_word" = "no"; then
18828 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18831 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18834 if test "x$cross_compiling" != "xyes" ||
18835 test "$compiler_num" -ge "300"; then
18837 ac_var_added_warnings=""
18838 for warning in unused shadow; do
18840 ac_var_match_word="no"
18841 for word1 in $CFLAGS; do
18842 for word2 in -Wno-$warning -W$warning; do
18843 if test "$word1" = "$word2"; then
18844 ac_var_match_word="yes"
18849 if test "$ac_var_match_word" = "no"; then
18850 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18853 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18859 if test "$compiler_num" -ge "207"; then
18861 ac_var_added_warnings=""
18862 for warning in inline nested-externs; do
18864 ac_var_match_word="no"
18865 for word1 in $CFLAGS; do
18866 for word2 in -Wno-$warning -W$warning; do
18867 if test "$word1" = "$word2"; then
18868 ac_var_match_word="yes"
18873 if test "$ac_var_match_word" = "no"; then
18874 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18877 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18880 if test "x$cross_compiling" != "xyes" ||
18881 test "$compiler_num" -ge "300"; then
18883 ac_var_added_warnings=""
18884 for warning in missing-declarations; do
18886 ac_var_match_word="no"
18887 for word1 in $CFLAGS; do
18888 for word2 in -Wno-$warning -W$warning; do
18889 if test "$word1" = "$word2"; then
18890 ac_var_match_word="yes"
18895 if test "$ac_var_match_word" = "no"; then
18896 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18899 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18903 ac_var_added_warnings=""
18904 for warning in missing-prototypes; do
18906 ac_var_match_word="no"
18907 for word1 in $CFLAGS; do
18908 for word2 in -Wno-$warning -W$warning; do
18909 if test "$word1" = "$word2"; then
18910 ac_var_match_word="yes"
18915 if test "$ac_var_match_word" = "no"; then
18916 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18919 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18925 if test "$compiler_num" -ge "295"; then
18926 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18928 ac_var_added_warnings=""
18929 for warning in bad-function-cast; do
18931 ac_var_match_word="no"
18932 for word1 in $CFLAGS; do
18933 for word2 in -Wno-$warning -W$warning; do
18934 if test "$word1" = "$word2"; then
18935 ac_var_match_word="yes"
18940 if test "$ac_var_match_word" = "no"; then
18941 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18944 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18949 if test "$compiler_num" -ge "296"; then
18951 ac_var_added_warnings=""
18952 for warning in float-equal; do
18954 ac_var_match_word="no"
18955 for word1 in $CFLAGS; do
18956 for word2 in -Wno-$warning -W$warning; do
18957 if test "$word1" = "$word2"; then
18958 ac_var_match_word="yes"
18963 if test "$ac_var_match_word" = "no"; then
18964 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18967 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18970 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
18972 ac_var_added_warnings=""
18973 for warning in sign-compare; do
18975 ac_var_match_word="no"
18976 for word1 in $CFLAGS; do
18977 for word2 in -Wno-$warning -W$warning; do
18978 if test "$word1" = "$word2"; then
18979 ac_var_match_word="yes"
18984 if test "$ac_var_match_word" = "no"; then
18985 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18988 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18992 ac_var_added_warnings=""
18993 for warning in undef; do
18995 ac_var_match_word="no"
18996 for word1 in $CFLAGS; do
18997 for word2 in -Wno-$warning -W$warning; do
18998 if test "$word1" = "$word2"; then
18999 ac_var_match_word="yes"
19004 if test "$ac_var_match_word" = "no"; then
19005 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19008 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19013 if test "$compiler_num" -ge "297"; then
19014 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19017 if test "$compiler_num" -ge "300"; then
19018 tmp_CFLAGS="$tmp_CFLAGS"
19021 if test "$compiler_num" -ge "303"; then
19023 ac_var_added_warnings=""
19024 for warning in endif-labels strict-prototypes; do
19026 ac_var_match_word="no"
19027 for word1 in $CFLAGS; do
19028 for word2 in -Wno-$warning -W$warning; do
19029 if test "$word1" = "$word2"; then
19030 ac_var_match_word="yes"
19035 if test "$ac_var_match_word" = "no"; then
19036 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19039 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19044 if test "$compiler_num" -ge "304"; then
19046 ac_var_added_warnings=""
19047 for warning in declaration-after-statement; do
19049 ac_var_match_word="no"
19050 for word1 in $CFLAGS; do
19051 for word2 in -Wno-$warning -W$warning; do
19052 if test "$word1" = "$word2"; then
19053 ac_var_match_word="yes"
19058 if test "$ac_var_match_word" = "no"; then
19059 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19062 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19066 ac_var_added_warnings=""
19067 for warning in old-style-definition; do
19069 ac_var_match_word="no"
19070 for word1 in $CFLAGS; do
19071 for word2 in -Wno-$warning -W$warning; do
19072 if test "$word1" = "$word2"; then
19073 ac_var_match_word="yes"
19078 if test "$ac_var_match_word" = "no"; then
19079 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19082 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19087 if test "$compiler_num" -ge "400"; then
19088 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
19091 if test "$compiler_num" -ge "402"; then
19093 ac_var_added_warnings=""
19094 for warning in cast-align; do
19096 ac_var_match_word="no"
19097 for word1 in $CFLAGS; do
19098 for word2 in -Wno-$warning -W$warning; do
19099 if test "$word1" = "$word2"; then
19100 ac_var_match_word="yes"
19105 if test "$ac_var_match_word" = "no"; then
19106 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19109 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19114 if test "$compiler_num" -ge "403"; then
19116 ac_var_added_warnings=""
19117 for warning in type-limits old-style-declaration; do
19119 ac_var_match_word="no"
19120 for word1 in $CFLAGS; do
19121 for word2 in -Wno-$warning -W$warning; do
19122 if test "$word1" = "$word2"; then
19123 ac_var_match_word="yes"
19128 if test "$ac_var_match_word" = "no"; then
19129 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19132 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19136 ac_var_added_warnings=""
19137 for warning in missing-parameter-type empty-body; do
19139 ac_var_match_word="no"
19140 for word1 in $CFLAGS; do
19141 for word2 in -Wno-$warning -W$warning; do
19142 if test "$word1" = "$word2"; then
19143 ac_var_match_word="yes"
19148 if test "$ac_var_match_word" = "no"; then
19149 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19152 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19156 ac_var_added_warnings=""
19157 for warning in clobbered ignored-qualifiers; do
19159 ac_var_match_word="no"
19160 for word1 in $CFLAGS; do
19161 for word2 in -Wno-$warning -W$warning; do
19162 if test "$word1" = "$word2"; then
19163 ac_var_match_word="yes"
19168 if test "$ac_var_match_word" = "no"; then
19169 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19172 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19176 ac_var_added_warnings=""
19177 for warning in conversion; do
19179 ac_var_match_word="no"
19180 for word1 in $CFLAGS; do
19181 for word2 in -Wno-$warning -W$warning; do
19182 if test "$word1" = "$word2"; then
19183 ac_var_match_word="yes"
19188 if test "$ac_var_match_word" = "no"; then
19189 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19192 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19195 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19197 ac_var_added_warnings=""
19198 for warning in vla; do
19200 ac_var_match_word="no"
19201 for word1 in $CFLAGS; do
19202 for word2 in -Wno-$warning -W$warning; do
19203 if test "$word1" = "$word2"; then
19204 ac_var_match_word="yes"
19209 if test "$ac_var_match_word" = "no"; then
19210 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19213 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19216 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
19219 if test "$compiler_num" -ge "405"; then
19220 if test "$curl_cv_have_def__WIN32" = "yes"; then
19221 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
19225 if test "$compiler_num" -ge "406"; then
19227 ac_var_added_warnings=""
19228 for warning in double-promotion; do
19230 ac_var_match_word="no"
19231 for word1 in $CFLAGS; do
19232 for word2 in -Wno-$warning -W$warning; do
19233 if test "$word1" = "$word2"; then
19234 ac_var_match_word="yes"
19239 if test "$ac_var_match_word" = "no"; then
19240 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19243 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19248 if test "$compiler_num" -ge "408"; then
19249 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19252 if test "$compiler_num" -ge "500"; then
19253 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
19256 if test "$compiler_num" -ge "600"; then
19258 ac_var_added_warnings=""
19259 for warning in shift-negative-value; do
19261 ac_var_match_word="no"
19262 for word1 in $CFLAGS; do
19263 for word2 in -Wno-$warning -W$warning; do
19264 if test "$word1" = "$word2"; then
19265 ac_var_match_word="yes"
19270 if test "$ac_var_match_word" = "no"; then
19271 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19274 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19277 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
19279 ac_var_added_warnings=""
19280 for warning in null-dereference; do
19282 ac_var_match_word="no"
19283 for word1 in $CFLAGS; do
19284 for word2 in -Wno-$warning -W$warning; do
19285 if test "$word1" = "$word2"; then
19286 ac_var_match_word="yes"
19291 if test "$ac_var_match_word" = "no"; then
19292 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19295 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19298 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
19300 ac_var_added_warnings=""
19301 for warning in duplicated-cond; do
19303 ac_var_match_word="no"
19304 for word1 in $CFLAGS; do
19305 for word2 in -Wno-$warning -W$warning; do
19306 if test "$word1" = "$word2"; then
19307 ac_var_match_word="yes"
19312 if test "$ac_var_match_word" = "no"; then
19313 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19316 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19320 ac_var_added_warnings=""
19321 for warning in unused-const-variable; do
19323 ac_var_match_word="no"
19324 for word1 in $CFLAGS; do
19325 for word2 in -Wno-$warning -W$warning; do
19326 if test "$word1" = "$word2"; then
19327 ac_var_match_word="yes"
19332 if test "$ac_var_match_word" = "no"; then
19333 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19336 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19341 if test "$compiler_num" -ge "700"; then
19343 ac_var_added_warnings=""
19344 for warning in duplicated-branches; do
19346 ac_var_match_word="no"
19347 for word1 in $CFLAGS; do
19348 for word2 in -Wno-$warning -W$warning; do
19349 if test "$word1" = "$word2"; then
19350 ac_var_match_word="yes"
19355 if test "$ac_var_match_word" = "no"; then
19356 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19359 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19363 ac_var_added_warnings=""
19364 for warning in restrict; do
19366 ac_var_match_word="no"
19367 for word1 in $CFLAGS; do
19368 for word2 in -Wno-$warning -W$warning; do
19369 if test "$word1" = "$word2"; then
19370 ac_var_match_word="yes"
19375 if test "$ac_var_match_word" = "no"; then
19376 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19379 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19383 ac_var_added_warnings=""
19384 for warning in alloc-zero; do
19386 ac_var_match_word="no"
19387 for word1 in $CFLAGS; do
19388 for word2 in -Wno-$warning -W$warning; do
19389 if test "$word1" = "$word2"; then
19390 ac_var_match_word="yes"
19395 if test "$ac_var_match_word" = "no"; then
19396 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19399 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19402 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
19403 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
19404 if test "$compiler_num" -lt "1200"; then
19405 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
19411 if test "$compiler_num" -ge "300"; then
19412 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19414 if test "x$cross_compiling" = "xyes"; then
19415 if test "$compiler_num" -ge "104"; then
19416 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
19418 if test "$compiler_num" -ge "207"; then
19419 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
19420 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
19424 if test "$compiler_num" -ge "1000"; then
19426 ac_var_added_warnings=""
19427 for warning in enum-conversion; do
19429 ac_var_match_word="no"
19430 for word1 in $CFLAGS; do
19431 for word2 in -Wno-$warning -W$warning; do
19432 if test "$word1" = "$word2"; then
19433 ac_var_match_word="yes"
19438 if test "$ac_var_match_word" = "no"; then
19439 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19442 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19450 if test "$want_warnings" = "yes"; then
19451 tmp_CFLAGS="$tmp_CFLAGS +w1"
19457 tmp_CFLAGS="$tmp_CFLAGS"
19462 if test "$want_warnings" = "yes"; then
19463 if test "$compiler_num" -gt "600"; then
19464 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
19465 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
19466 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
19467 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
19468 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
19469 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
19470 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
19471 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
19472 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
19473 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
19474 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
19477 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
19478 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
19479 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
19484 tmp_CFLAGS="$tmp_CFLAGS"
19489 if test "$want_warnings" = "yes"; then
19490 tmp_CFLAGS="$tmp_CFLAGS"
19496 if test "$want_warnings" = "yes"; then
19497 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19503 if test "$want_warnings" = "yes"; then
19504 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19505 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
19511 if test "$want_warnings" = "yes"; then
19512 tmp_CFLAGS="$tmp_CFLAGS -v"
19518 if test "$want_warnings" = "yes"; then
19520 ac_var_added_warnings=""
19521 for warning in all; do
19523 ac_var_match_word="no"
19524 for word1 in $CFLAGS; do
19525 for word2 in -Wno-$warning -W$warning; do
19526 if test "$word1" = "$word2"; then
19527 ac_var_match_word="yes"
19532 if test "$ac_var_match_word" = "no"; then
19533 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19536 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19540 ac_var_added_warnings=""
19541 for warning in write-strings; do
19543 ac_var_match_word="no"
19544 for word1 in $CFLAGS; do
19545 for word2 in -Wno-$warning -W$warning; do
19546 if test "$word1" = "$word2"; then
19547 ac_var_match_word="yes"
19552 if test "$ac_var_match_word" = "no"; then
19553 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19556 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19560 ac_var_added_warnings=""
19561 for warning in unsupported; do
19563 ac_var_match_word="no"
19564 for word1 in $CFLAGS; do
19565 for word2 in -Wno-$warning -W$warning; do
19566 if test "$word1" = "$word2"; then
19567 ac_var_match_word="yes"
19572 if test "$ac_var_match_word" = "no"; then
19573 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19576 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19584 if test "$want_warnings" = "yes"; then
19585 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
19591 tmp_CFLAGS="$tmp_CFLAGS"
19596 squeeze tmp_CPPFLAGS
19599 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
19600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
19601 printf %s "checking if compiler accepts strict warning options... " >&6; }
19602 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
19603 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19607 tmp_compiler_works="unknown"
19608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19609 /* end confdefs.h. */
19624 if ac_fn_c_try_compile "$LINENO"
19627 tmp_compiler_works="yes"
19631 tmp_compiler_works="no"
19633 sed 's/^/cc-fail: /' conftest.err >&6
19637 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19638 if test "$tmp_compiler_works" = "yes"; then
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19655 if ac_fn_c_try_link "$LINENO"
19658 tmp_compiler_works="yes"
19662 tmp_compiler_works="no"
19664 sed 's/^/link-fail: /' conftest.err >&6
19668 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19669 conftest$ac_exeext conftest.$ac_ext
19671 if test "x$cross_compiling" != "xyes" &&
19672 test "$tmp_compiler_works" = "yes"; then
19675 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
19676 *) library_path_var=LD_LIBRARY_PATH ;;
19679 eval "old=$$library_path_var"
19680 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
19682 eval "export $library_path_var"
19683 if test "$cross_compiling" = yes
19685 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19686 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
19687 as_fn_error $? "cannot run test program while cross compiling
19688 See \`config.log' for more details" "$LINENO" 5; }
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19695 # include <stdlib.h>
19709 if ac_fn_c_try_run "$LINENO"
19711 tmp_compiler_works="yes"
19714 tmp_compiler_works="no"
19716 echo "run-fail: test program exited with status $ac_status" >&6
19720 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19721 conftest.$ac_objext conftest.beam conftest.$ac_ext
19724 eval "$library_path_var=\$old" # restore
19727 if test "$tmp_compiler_works" = "yes"; then
19729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19730 printf "%s\n" "yes" >&6; }
19731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19732 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
19736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19737 printf "%s\n" "no" >&6; }
19738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19739 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
19740 CPPFLAGS="$tmp_save_CPPFLAGS"
19741 CFLAGS="$tmp_save_CFLAGS"
19750 if test "$compiler_id" = "INTEL_UNIX_C"; then
19752 if test "$compiler_num" -ge "1000"; then
19753 CFLAGS="$CFLAGS -shared-intel"
19754 elif test "$compiler_num" -ge "900"; then
19755 CFLAGS="$CFLAGS -i-dynamic"
19760 CURL_CFLAG_EXTRAS=""
19761 if test X"$want_werror" = Xyes; then
19762 CURL_CFLAG_EXTRAS="-Werror"
19763 if test "$compiler_id" = "GNU_C"; then
19764 if test "$compiler_num" -ge "500"; then
19765 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
19772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
19773 printf %s "checking if compiler halts on compilation errors... " >&6; }
19774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19782 force compilation error
19789 if ac_fn_c_try_compile "$LINENO"
19792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19793 printf "%s\n" "no" >&6; }
19794 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
19798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19799 printf "%s\n" "yes" >&6; }
19802 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
19806 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
19807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19808 /* end confdefs.h. */
19811 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
19823 if ac_fn_c_try_compile "$LINENO"
19826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19827 printf "%s\n" "no" >&6; }
19828 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
19832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19833 printf "%s\n" "yes" >&6; }
19836 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
19840 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
19841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19842 /* end confdefs.h. */
19845 # include <stdlib.h>
19859 int j = rand(i[0]);
19868 if ac_fn_c_try_compile "$LINENO"
19871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
19872 printf "%s\n" "no" >&6; }
19873 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
19877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19878 printf "%s\n" "yes" >&6; }
19881 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
19885 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
19886 supports_symbol_hiding="no"
19887 symbol_hiding_CFLAGS=""
19888 symbol_hiding_EXTERN=""
19891 case "$compiler_id" in
19893 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19894 tmp_CFLAGS="-fvisibility=hidden"
19895 supports_symbol_hiding="yes"
19898 if test "$compiler_num" -ge "304"; then
19899 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
19900 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19901 tmp_CFLAGS="-fvisibility=hidden"
19902 supports_symbol_hiding="yes"
19907 if test "$compiler_num" -ge "900"; then
19908 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
19909 tmp_save_CFLAGS="$CFLAGS"
19910 CFLAGS="$CFLAGS -fvisibility=hidden"
19911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19912 /* end confdefs.h. */
19915 # include <stdio.h>
19920 printf("icc fvisibility bug test");
19927 if ac_fn_c_try_link "$LINENO"
19930 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19931 tmp_CFLAGS="-fvisibility=hidden"
19932 supports_symbol_hiding="yes"
19935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
19936 conftest$ac_exeext conftest.$ac_ext
19937 CFLAGS="$tmp_save_CFLAGS"
19942 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
19943 tmp_EXTERN="__global"
19944 tmp_CFLAGS="-xldscope=hidden"
19945 supports_symbol_hiding="yes"
19949 if test "$supports_symbol_hiding" = "yes"; then
19950 tmp_save_CFLAGS="$CFLAGS"
19951 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19954 /* end confdefs.h. */
19957 $tmp_EXTERN char *dummy(char *buff);
19958 char *dummy(char *buff)
19970 char *r = dummy(&b[0]);
19979 if ac_fn_c_try_compile "$LINENO"
19982 supports_symbol_hiding="yes"
19983 if test -f conftest.err; then
19984 grep 'visibility' conftest.err >/dev/null
19985 if test "$?" -eq "0"; then
19986 supports_symbol_hiding="no"
19992 supports_symbol_hiding="no"
19994 sed 's/^/cc-src: /' conftest.$ac_ext >&6
19995 sed 's/^/cc-err: /' conftest.err >&6
19999 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20000 CFLAGS="$tmp_save_CFLAGS"
20002 if test "$supports_symbol_hiding" = "yes"; then
20003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20004 printf "%s\n" "yes" >&6; }
20005 symbol_hiding_CFLAGS="$tmp_CFLAGS"
20006 symbol_hiding_EXTERN="$tmp_EXTERN"
20008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20009 printf "%s\n" "no" >&6; }
20014 supports_curldebug="unknown"
20015 if test "$want_curldebug" = "yes"; then
20016 if test "x$enable_shared" != "xno" &&
20017 test "x$enable_shared" != "xyes"; then
20018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
20019 printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
20020 supports_curldebug="no"
20022 if test "x$enable_static" != "xno" &&
20023 test "x$enable_static" != "xyes"; then
20024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
20025 printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
20026 supports_curldebug="no"
20028 if test "$supports_curldebug" != "no"; then
20029 if test "$enable_shared" = "yes" &&
20030 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20031 supports_curldebug="no"
20032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
20033 printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
20038 if test "$want_curldebug" = "yes"; then
20039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
20040 printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
20041 test "$supports_curldebug" = "no" || supports_curldebug="yes"
20042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
20043 printf "%s\n" "$supports_curldebug" >&6; }
20044 if test "$supports_curldebug" = "no"; then
20045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
20046 printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
20047 want_curldebug="no"
20051 if test x$want_curldebug = xyes; then
20053 CURLDEBUG_FALSE='#'
20060 supports_unittests=yes
20061 # cross-compilation of unit tests static library/programs fails when
20062 # libcurl shared library is built. This might be due to a libtool or
20063 # automake issue. In this case we disable unit tests.
20064 if test "x$cross_compiling" != "xno" &&
20065 test "x$enable_shared" != "xno"; then
20066 supports_unittests=no
20069 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
20070 # a problem related with OpenSSL headers and library versions not matching.
20071 # Disable unit tests while time to further investigate this is found.
20074 if test "$compiler_id" = "GNU_C"; then
20075 supports_unittests=no
20080 # All AIX autobuilds fails unit tests linking against unittests library
20081 # due to unittests library being built with no symbols or members. Libtool ?
20082 # Disable unit tests while time to further investigate this is found.
20085 supports_unittests=no
20089 if test "x$want_debug" = "xyes" &&
20090 test "x$supports_unittests" = "xyes"; then
20095 if test x$want_unittests = xyes; then
20096 BUILD_UNITTESTS_TRUE=
20097 BUILD_UNITTESTS_FALSE='#'
20099 BUILD_UNITTESTS_TRUE='#'
20100 BUILD_UNITTESTS_FALSE=
20104 # For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
20105 # version to Windows XP (0x501) if it hasn't already been defined by the user.
20106 # Without this override original MinGW defaults the version to Windows NT 4.0.
20107 # Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
20110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
20111 printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
20112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20113 /* end confdefs.h. */
20116 #include <_mingw.h>
20121 #if defined(__MINGW64_VERSION_MAJOR) || \
20122 defined(WINVER) || \
20123 defined(_WIN32_WINNT)
20132 if ac_fn_c_try_compile "$LINENO"
20135 CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
20136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20137 printf "%s\n" "yes" >&6; }
20141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 printf "%s\n" "no" >&6; }
20145 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20153 printf %s "checking for windows.h... " >&6; }
20154 if test ${curl_cv_header_windows_h+y}
20156 printf %s "(cached) " >&6
20159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160 /* end confdefs.h. */
20164 #ifndef WIN32_LEAN_AND_MEAN
20165 #define WIN32_LEAN_AND_MEAN
20167 #include <windows.h>
20172 #if defined(__CYGWIN__) || defined(__CEGCC__)
20173 HAVE_WINDOWS_H shall not be defined.
20175 int dummy=2*WINVER;
20183 if ac_fn_c_try_compile "$LINENO"
20186 curl_cv_header_windows_h="yes"
20190 curl_cv_header_windows_h="no"
20193 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20197 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
20198 case "$curl_cv_header_windows_h" in
20201 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
20207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
20208 printf %s "checking whether build target is a native Windows one... " >&6; }
20209 if test ${curl_cv_native_windows+y}
20211 printf %s "(cached) " >&6
20214 if test "$curl_cv_header_windows_h" = "no"; then
20215 curl_cv_native_windows="no"
20217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20218 /* end confdefs.h. */
20225 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
20226 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
20229 Not a native Windows build target.
20237 if ac_fn_c_try_compile "$LINENO"
20240 curl_cv_native_windows="yes"
20244 curl_cv_native_windows="no"
20247 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
20252 printf "%s\n" "$curl_cv_native_windows" >&6; }
20253 if test "x$curl_cv_native_windows" = xyes; then
20254 DOING_NATIVE_WINDOWS_TRUE=
20255 DOING_NATIVE_WINDOWS_FALSE='#'
20257 DOING_NATIVE_WINDOWS_TRUE='#'
20258 DOING_NATIVE_WINDOWS_FALSE=
20262 case X-"$curl_cv_native_windows" in
20265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20266 printf %s "checking for winsock2.h... " >&6; }
20267 if test ${curl_cv_header_winsock2_h+y}
20269 printf %s "(cached) " >&6
20272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20273 /* end confdefs.h. */
20277 #ifndef WIN32_LEAN_AND_MEAN
20278 #define WIN32_LEAN_AND_MEAN
20280 #include <windows.h>
20281 #include <winsock2.h>
20286 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20287 HAVE_WINSOCK2_H shall not be defined.
20289 int dummy=2*IPPROTO_ESP;
20297 if ac_fn_c_try_compile "$LINENO"
20300 curl_cv_header_winsock2_h="yes"
20304 curl_cv_header_winsock2_h="no"
20307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20311 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
20312 case "$curl_cv_header_winsock2_h" in
20315 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20322 printf %s "checking for ws2tcpip.h... " >&6; }
20323 if test ${curl_cv_header_ws2tcpip_h+y}
20325 printf %s "(cached) " >&6
20328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20329 /* end confdefs.h. */
20333 #ifndef WIN32_LEAN_AND_MEAN
20334 #define WIN32_LEAN_AND_MEAN
20336 #include <windows.h>
20337 #include <winsock2.h>
20338 #include <ws2tcpip.h>
20343 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20344 HAVE_WS2TCPIP_H shall not be defined.
20346 int dummy=2*IP_PKTINFO;
20354 if ac_fn_c_try_compile "$LINENO"
20357 curl_cv_header_ws2tcpip_h="yes"
20361 curl_cv_header_ws2tcpip_h="no"
20364 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
20368 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
20369 case "$curl_cv_header_ws2tcpip_h" in
20372 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
20378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
20379 printf %s "checking for wincrypt.h... " >&6; }
20380 if test ${curl_cv_header_wincrypt_h+y}
20382 printf %s "(cached) " >&6
20385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20386 /* end confdefs.h. */
20390 #ifndef WIN32_LEAN_AND_MEAN
20391 #define WIN32_LEAN_AND_MEAN
20393 #include <windows.h>
20394 #include <wincrypt.h>
20399 int dummy=2*PROV_RSA_FULL;
20406 if ac_fn_c_try_compile "$LINENO"
20409 curl_cv_header_wincrypt_h="yes"
20413 curl_cv_header_wincrypt_h="no"
20416 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
20420 printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
20421 case "$curl_cv_header_wincrypt_h" in
20424 printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
20430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
20431 printf %s "checking for winldap.h... " >&6; }
20432 if test ${curl_cv_header_winldap_h+y}
20434 printf %s "(cached) " >&6
20437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20438 /* end confdefs.h. */
20442 #ifdef HAVE_WINDOWS_H
20443 #ifndef WIN32_LEAN_AND_MEAN
20444 #define WIN32_LEAN_AND_MEAN
20446 #include <windows.h>
20448 #include <winldap.h>
20453 #if defined(__CYGWIN__) || defined(__CEGCC__)
20454 HAVE_WINLDAP_H shall not be defined.
20456 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20457 ULONG res = ldap_unbind(ldp);
20465 if ac_fn_c_try_compile "$LINENO"
20468 curl_cv_header_winldap_h="yes"
20472 curl_cv_header_winldap_h="no"
20475 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
20479 printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
20480 case "$curl_cv_header_winldap_h" in
20483 printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
20489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
20490 printf %s "checking for winber.h... " >&6; }
20491 if test ${curl_cv_header_winber_h+y}
20493 printf %s "(cached) " >&6
20496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20497 /* end confdefs.h. */
20501 #ifdef HAVE_WINDOWS_H
20502 #ifndef WIN32_LEAN_AND_MEAN
20503 #define WIN32_LEAN_AND_MEAN
20505 #include <windows.h>
20507 #include <winldap.h>
20508 #include <winber.h>
20513 #if defined(__CYGWIN__) || defined(__CEGCC__)
20514 HAVE_WINBER_H shall not be defined.
20516 BERVAL *bvp = NULL;
20517 BerElement *bep = ber_init(bvp);
20526 if ac_fn_c_try_compile "$LINENO"
20529 curl_cv_header_winber_h="yes"
20533 curl_cv_header_winber_h="no"
20536 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
20540 printf "%s\n" "$curl_cv_header_winber_h" >&6; }
20541 case "$curl_cv_header_winber_h" in
20544 printf "%s\n" "#define HAVE_WINBER_H 1" >>confdefs.h
20551 curl_cv_header_winsock2_h="no"
20552 curl_cv_header_ws2tcpip_h="no"
20553 curl_cv_header_wincrypt_h="no"
20554 curl_cv_header_winldap_h="no"
20555 curl_cv_header_winber_h="no"
20559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
20560 printf %s "checking whether build target supports WIN32 file API... " >&6; }
20561 curl_win32_file_api="no"
20562 if test "$curl_cv_header_windows_h" = "yes"; then
20563 if test x"$enable_largefile" != "xno"; then
20564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20565 /* end confdefs.h. */
20572 #if !defined(_WIN32_WCE) && \
20573 (defined(__MINGW32__) || \
20574 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
20577 WIN32 large file API not supported.
20585 if ac_fn_c_try_compile "$LINENO"
20588 curl_win32_file_api="win32_large_files"
20591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20593 if test "$curl_win32_file_api" = "no"; then
20594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20595 /* end confdefs.h. */
20602 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
20605 WIN32 small file API not supported.
20613 if ac_fn_c_try_compile "$LINENO"
20616 curl_win32_file_api="win32_small_files"
20619 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20622 case "$curl_win32_file_api" in
20624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
20625 printf "%s\n" "yes (large file enabled)" >&6; }
20627 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
20629 USE_WIN32_LARGE_FILES=1
20633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
20634 printf "%s\n" "yes (large file disabled)" >&6; }
20636 printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
20638 USE_WIN32_SMALL_FILES=1
20642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20643 printf "%s\n" "no" >&6; }
20648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
20649 printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
20650 curl_win32_crypto_api="no"
20651 if test "$curl_cv_header_wincrypt_h" = "yes"; then
20652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20653 /* end confdefs.h. */
20657 #ifndef WIN32_LEAN_AND_MEAN
20658 #define WIN32_LEAN_AND_MEAN
20660 #include <windows.h>
20661 #include <wincrypt.h>
20666 HCRYPTPROV hCryptProv;
20667 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
20668 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
20669 CryptReleaseContext(hCryptProv, 0);
20677 if ac_fn_c_try_compile "$LINENO"
20680 curl_win32_crypto_api="yes"
20683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20685 case "$curl_win32_crypto_api" in
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20688 printf "%s\n" "yes" >&6; }
20690 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
20696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20697 printf "%s\n" "no" >&6; }
20711 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
20712 printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
20713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
20714 printf "%s\n" "$tst_cflags" >&6; };
20716 if test "$tst_cflags" = "yes"; then
20718 CFLAGS="$CFLAGS -Werror=partial-availability"
20719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
20720 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
20721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20722 /* end confdefs.h. */
20731 if ac_fn_c_try_compile "$LINENO"
20733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20734 printf "%s\n" "yes" >&6; }
20736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20737 printf "%s\n" "no" >&6; }
20740 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
20746 printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
20749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20750 /* end confdefs.h. */
20753 #include <TargetConditionals.h>
20758 #if (TARGET_OS_OSX)
20769 if ac_fn_c_try_compile "$LINENO"
20772 build_for_macos="yes"
20776 build_for_macos="no"
20779 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20780 if test "x$build_for_macos" != xno; then
20781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20782 printf "%s\n" "yes" >&6; }
20783 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
20785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20786 printf "%s\n" "no" >&6; }
20790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20791 printf "%s\n" "no" >&6; }
20795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
20796 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20801 #include <stdlib.h>
20806 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
20813 if ac_fn_c_try_compile "$LINENO"
20816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20817 printf "%s\n" "yes" >&6; }
20819 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
20824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20825 printf "%s\n" "no" >&6; }
20828 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
20833 printf %s "checking whether to support http... " >&6; }
20834 # Check whether --enable-http was given.
20835 if test ${enable_http+y}
20837 enableval=$enable_http; case "$enableval" in
20839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20840 printf "%s\n" "no" >&6; }
20842 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
20845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
20846 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
20847 CURL_DISABLE_HTTP=1
20850 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
20852 CURL_DISABLE_RTSP=1
20855 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
20858 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
20860 curl_h1_msg="no (--enable-http, --with-hyper)"
20861 curl_altsvc_msg="no";
20862 curl_hsts_msg="no (--enable-hsts)";
20866 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20867 printf "%s\n" "yes" >&6; }
20871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20872 printf "%s\n" "yes" >&6; }
20876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
20877 printf %s "checking whether to support ftp... " >&6; }
20878 # Check whether --enable-ftp was given.
20879 if test ${enable_ftp+y}
20881 enableval=$enable_ftp; case "$enableval" in
20883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20884 printf "%s\n" "no" >&6; }
20886 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
20891 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20892 printf "%s\n" "yes" >&6; }
20896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20897 printf "%s\n" "yes" >&6; }
20901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
20902 printf %s "checking whether to support file... " >&6; }
20903 # Check whether --enable-file was given.
20904 if test ${enable_file+y}
20906 enableval=$enable_file; case "$enableval" in
20908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20909 printf "%s\n" "no" >&6; }
20911 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
20913 CURL_DISABLE_FILE=1
20916 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20917 printf "%s\n" "yes" >&6; }
20921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20922 printf "%s\n" "yes" >&6; }
20926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
20927 printf %s "checking whether to support ldap... " >&6; }
20928 # Check whether --enable-ldap was given.
20929 if test ${enable_ldap+y}
20931 enableval=$enable_ldap; case "$enableval" in
20933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 printf "%s\n" "no" >&6; }
20936 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20938 CURL_DISABLE_LDAP=1
20942 ldap_askedfor="yes"
20943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20944 printf "%s\n" "yes" >&6; }
20947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20948 printf "%s\n" "yes" >&6; }
20953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20954 printf "%s\n" "yes" >&6; }
20958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
20959 printf %s "checking whether to support ldaps... " >&6; }
20960 # Check whether --enable-ldaps was given.
20961 if test ${enable_ldaps+y}
20963 enableval=$enable_ldaps; case "$enableval" in
20965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20966 printf "%s\n" "no" >&6; }
20968 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20970 CURL_DISABLE_LDAPS=1
20973 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
20975 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
20977 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20979 CURL_DISABLE_LDAPS=1
20982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20983 printf "%s\n" "yes" >&6; }
20985 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
20994 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20996 printf "%s\n" "no" >&6; }
20998 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21000 CURL_DISABLE_LDAPS=1
21003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21004 printf "%s\n" "yes" >&6; }
21006 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21019 # Check whether --with-hyper was given.
21020 if test ${with_hyper+y}
21022 withval=$with_hyper; OPT_HYPER=$withval
21025 case "$OPT_HYPER" in
21030 want_hyper="default"
21035 want_hyper_path="$withval"
21039 if test X"$want_hyper" != Xno; then
21040 if test "x$disable_http" = "xyes"; then
21041 as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21044 CLEANLDFLAGS="$LDFLAGS"
21045 CLEANCPPFLAGS="$CPPFLAGS"
21049 if test -n "$PKG_CONFIG"; then
21050 PKGCONFIG="$PKG_CONFIG"
21052 if test -n "$ac_tool_prefix"; then
21053 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21054 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21056 printf %s "checking for $ac_word... " >&6; }
21057 if test ${ac_cv_path_PKGCONFIG+y}
21059 printf %s "(cached) " >&6
21063 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21067 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21068 for as_dir in $as_dummy
21071 case $as_dir in #(((
21074 *) as_dir=$as_dir/ ;;
21076 for ac_exec_ext in '' $ac_executable_extensions; do
21077 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21078 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21079 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21089 PKGCONFIG=$ac_cv_path_PKGCONFIG
21090 if test -n "$PKGCONFIG"; then
21091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21092 printf "%s\n" "$PKGCONFIG" >&6; }
21094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21095 printf "%s\n" "no" >&6; }
21100 if test -z "$ac_cv_path_PKGCONFIG"; then
21101 ac_pt_PKGCONFIG=$PKGCONFIG
21102 # Extract the first word of "pkg-config", so it can be a program name with args.
21103 set dummy pkg-config; ac_word=$2
21104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21105 printf %s "checking for $ac_word... " >&6; }
21106 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21108 printf %s "(cached) " >&6
21110 case $ac_pt_PKGCONFIG in
21112 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21116 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21117 for as_dir in $as_dummy
21120 case $as_dir in #(((
21123 *) as_dir=$as_dir/ ;;
21125 for ac_exec_ext in '' $ac_executable_extensions; do
21126 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21127 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21128 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21138 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21139 if test -n "$ac_pt_PKGCONFIG"; then
21140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21141 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21144 printf "%s\n" "no" >&6; }
21147 if test "x$ac_pt_PKGCONFIG" = x; then
21150 case $cross_compiling:$ac_tool_warned in
21152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21153 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21154 ac_tool_warned=yes ;;
21156 PKGCONFIG=$ac_pt_PKGCONFIG
21159 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21164 if test "x$PKGCONFIG" != "xno"; then
21165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21166 printf %s "checking for hyper options with pkg-config... " >&6; }
21168 if test -n "$want_hyper_path"; then
21169 PKG_CONFIG_LIBDIR="$want_hyper_path"
21170 export PKG_CONFIG_LIBDIR
21172 $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
21174 if test -z "$itexists"; then
21176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21177 printf "%s\n" "no" >&6; }
21179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
21180 printf "%s\n" "found" >&6; }
21185 if test "$PKGCONFIG" != "no" ; then
21187 if test -n "$want_hyper_path"; then
21188 PKG_CONFIG_LIBDIR="$want_hyper_path"
21189 export PKG_CONFIG_LIBDIR
21192 $PKGCONFIG --libs-only-l hyper`
21194 if test -n "$want_hyper_path"; then
21195 PKG_CONFIG_LIBDIR="$want_hyper_path"
21196 export PKG_CONFIG_LIBDIR
21198 $PKGCONFIG --cflags-only-I hyper`
21200 if test -n "$want_hyper_path"; then
21201 PKG_CONFIG_LIBDIR="$want_hyper_path"
21202 export PKG_CONFIG_LIBDIR
21205 $PKGCONFIG --libs-only-L hyper`
21207 LIB_HYPER="-lhyper -ldl -lpthread -lm"
21208 if test X"$want_hyper" != Xdefault; then
21209 CPP_HYPER=-I"$want_hyper_path/capi/include"
21210 LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
21213 if test -n "$LIB_HYPER"; then
21214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
21215 printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
21216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
21217 printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
21218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
21219 printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
21221 LDFLAGS="$LDFLAGS $LD_HYPER"
21222 CPPFLAGS="$CPPFLAGS $CPP_HYPER"
21223 LIBS="$LIB_HYPER $LIBS"
21225 if test "x$cross_compiling" != "xyes"; then
21226 DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
21229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
21230 printf %s "checking for hyper_io_new in -lhyper... " >&6; }
21231 if test ${ac_cv_lib_hyper_hyper_io_new+y}
21233 printf %s "(cached) " >&6
21235 ac_check_lib_save_LIBS=$LIBS
21236 LIBS="-lhyper $LIBS"
21237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21238 /* end confdefs.h. */
21244 char hyper_io_new ();
21247 return hyper_io_new ();
21252 if ac_fn_c_try_link "$LINENO"
21254 ac_cv_lib_hyper_hyper_io_new=yes
21256 ac_cv_lib_hyper_hyper_io_new=no
21258 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21259 conftest$ac_exeext conftest.$ac_ext
21260 LIBS=$ac_check_lib_save_LIBS
21262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
21263 printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
21264 if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
21267 for ac_header in hyper.h
21269 ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
21270 if test "x$ac_cv_header_hyper_h" = xyes
21272 printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
21273 experimental="$experimental Hyper"
21274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
21275 printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
21276 curl_h1_msg="enabled (Hyper)"
21277 curl_h2_msg=$curl_h1_msg
21280 printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
21284 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
21285 export CURL_LIBRARY_PATH
21286 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
21287 printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
21293 for d in `echo $DIR_HYPER | sed -e 's/:/ /'`; do
21294 if test -f "$d/libhyper.a"; then
21295 as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
21298 as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
21305 if test X"$want_hyper" != Xno; then
21306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
21307 printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
21309 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21311 CURL_DISABLE_RTSP=1
21316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
21317 printf %s "checking whether to support rtsp... " >&6; }
21318 # Check whether --enable-rtsp was given.
21319 if test ${enable_rtsp+y}
21321 enableval=$enable_rtsp; case "$enableval" in
21323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21324 printf "%s\n" "no" >&6; }
21326 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21328 CURL_DISABLE_RTSP=1
21332 if test x$CURL_DISABLE_HTTP = x1 ; then
21333 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
21335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21336 printf "%s\n" "yes" >&6; }
21337 curl_rtsp_msg="enabled"
21342 if test "x$CURL_DISABLE_HTTP" != "x1"; then
21343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21344 printf "%s\n" "yes" >&6; }
21345 curl_rtsp_msg="enabled"
21347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 printf "%s\n" "no" >&6; }
21355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
21356 printf %s "checking whether to support proxies... " >&6; }
21357 # Check whether --enable-proxy was given.
21358 if test ${enable_proxy+y}
21360 enableval=$enable_proxy; case "$enableval" in
21362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21363 printf "%s\n" "no" >&6; }
21365 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
21367 CURL_DISABLE_PROXY=1
21371 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21372 printf "%s\n" "yes" >&6; }
21376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21377 printf "%s\n" "yes" >&6; }
21382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
21383 printf %s "checking whether to support dict... " >&6; }
21384 # Check whether --enable-dict was given.
21385 if test ${enable_dict+y}
21387 enableval=$enable_dict; case "$enableval" in
21389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21390 printf "%s\n" "no" >&6; }
21392 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
21394 CURL_DISABLE_DICT=1
21397 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21398 printf "%s\n" "yes" >&6; }
21402 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21403 printf "%s\n" "yes" >&6; }
21407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
21408 printf %s "checking whether to support telnet... " >&6; }
21409 # Check whether --enable-telnet was given.
21410 if test ${enable_telnet+y}
21412 enableval=$enable_telnet; case "$enableval" in
21414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21415 printf "%s\n" "no" >&6; }
21417 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
21419 CURL_DISABLE_TELNET=1
21422 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21423 printf "%s\n" "yes" >&6; }
21427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21428 printf "%s\n" "yes" >&6; }
21432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
21433 printf %s "checking whether to support tftp... " >&6; }
21434 # Check whether --enable-tftp was given.
21435 if test ${enable_tftp+y}
21437 enableval=$enable_tftp; case "$enableval" in
21439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21440 printf "%s\n" "no" >&6; }
21442 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
21444 CURL_DISABLE_TFTP=1
21447 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21448 printf "%s\n" "yes" >&6; }
21452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21453 printf "%s\n" "yes" >&6; }
21458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
21459 printf %s "checking whether to support pop3... " >&6; }
21460 # Check whether --enable-pop3 was given.
21461 if test ${enable_pop3+y}
21463 enableval=$enable_pop3; case "$enableval" in
21465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21466 printf "%s\n" "no" >&6; }
21468 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
21470 CURL_DISABLE_POP3=1
21473 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21474 printf "%s\n" "yes" >&6; }
21478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21479 printf "%s\n" "yes" >&6; }
21485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
21486 printf %s "checking whether to support imap... " >&6; }
21487 # Check whether --enable-imap was given.
21488 if test ${enable_imap+y}
21490 enableval=$enable_imap; case "$enableval" in
21492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21493 printf "%s\n" "no" >&6; }
21495 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
21497 CURL_DISABLE_IMAP=1
21500 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21501 printf "%s\n" "yes" >&6; }
21505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21506 printf "%s\n" "yes" >&6; }
21512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
21513 printf %s "checking whether to support smb... " >&6; }
21514 # Check whether --enable-smb was given.
21515 if test ${enable_smb+y}
21517 enableval=$enable_smb; case "$enableval" in
21519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 printf "%s\n" "no" >&6; }
21522 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
21527 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21528 printf "%s\n" "yes" >&6; }
21532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21533 printf "%s\n" "yes" >&6; }
21538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
21539 printf %s "checking whether to support smtp... " >&6; }
21540 # Check whether --enable-smtp was given.
21541 if test ${enable_smtp+y}
21543 enableval=$enable_smtp; case "$enableval" in
21545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21546 printf "%s\n" "no" >&6; }
21548 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
21550 CURL_DISABLE_SMTP=1
21553 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21554 printf "%s\n" "yes" >&6; }
21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21559 printf "%s\n" "yes" >&6; }
21564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
21565 printf %s "checking whether to support gopher... " >&6; }
21566 # Check whether --enable-gopher was given.
21567 if test ${enable_gopher+y}
21569 enableval=$enable_gopher; case "$enableval" in
21571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21572 printf "%s\n" "no" >&6; }
21574 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
21576 CURL_DISABLE_GOPHER=1
21579 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21580 printf "%s\n" "yes" >&6; }
21584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21585 printf "%s\n" "yes" >&6; }
21590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
21591 printf %s "checking whether to support mqtt... " >&6; }
21592 # Check whether --enable-mqtt was given.
21593 if test ${enable_mqtt+y}
21595 enableval=$enable_mqtt; case "$enableval" in
21597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21598 printf "%s\n" "no" >&6; }
21600 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
21602 CURL_DISABLE_MQTT=1
21605 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21606 printf "%s\n" "yes" >&6; }
21610 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21611 printf "%s\n" "no" >&6; }
21617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
21618 printf %s "checking whether to provide built-in manual... " >&6; }
21619 # Check whether --enable-manual was given.
21620 if test ${enable_manual+y}
21622 enableval=$enable_manual; case "$enableval" in
21624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21625 printf "%s\n" "no" >&6; }
21627 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21628 printf "%s\n" "yes" >&6; }
21633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21634 printf "%s\n" "yes" >&6; }
21640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
21641 printf %s "checking whether to enable generation of C code... " >&6; }
21642 # Check whether --enable-libcurl_option was given.
21643 if test ${enable_libcurl_option+y}
21645 enableval=$enable_libcurl_option; case "$enableval" in
21647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21648 printf "%s\n" "no" >&6; }
21650 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
21652 curl_libcurl_msg="no"
21654 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21655 printf "%s\n" "yes" >&6; }
21659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21660 printf "%s\n" "yes" >&6; }
21666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
21667 printf %s "checking whether to use libgcc... " >&6; }
21668 # Check whether --enable-libgcc was given.
21669 if test ${enable_libgcc+y}
21671 enableval=$enable_libgcc; case "$enableval" in
21674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21675 printf "%s\n" "yes" >&6; }
21677 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21678 printf "%s\n" "no" >&6; }
21682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21683 printf "%s\n" "no" >&6; }
21689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
21690 printf %s "checking if X/Open network library is required... " >&6; }
21691 tst_lib_xnet_required="no"
21692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h. */
21698 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
21700 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
21703 force compilation error
21709 if ac_fn_c_try_compile "$LINENO"
21712 tst_lib_xnet_required="yes"
21713 LIBS="-lxnet $LIBS"
21716 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
21718 printf "%s\n" "$tst_lib_xnet_required" >&6; }
21721 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
21722 if test "x$ac_cv_func_gethostbyname" = xyes
21724 HAVE_GETHOSTBYNAME="1"
21727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
21728 printf %s "checking for gethostbyname in -lnsl... " >&6; }
21729 if test ${ac_cv_lib_nsl_gethostbyname+y}
21731 printf %s "(cached) " >&6
21733 ac_check_lib_save_LIBS=$LIBS
21735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21736 /* end confdefs.h. */
21742 char gethostbyname ();
21745 return gethostbyname ();
21750 if ac_fn_c_try_link "$LINENO"
21752 ac_cv_lib_nsl_gethostbyname=yes
21754 ac_cv_lib_nsl_gethostbyname=no
21756 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21757 conftest$ac_exeext conftest.$ac_ext
21758 LIBS=$ac_check_lib_save_LIBS
21760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
21761 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
21762 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
21764 HAVE_GETHOSTBYNAME="1"
21773 if test "$HAVE_GETHOSTBYNAME" != "1"
21775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
21776 printf %s "checking for gethostbyname in -lsocket... " >&6; }
21777 if test ${ac_cv_lib_socket_gethostbyname+y}
21779 printf %s "(cached) " >&6
21781 ac_check_lib_save_LIBS=$LIBS
21782 LIBS="-lsocket $LIBS"
21783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21784 /* end confdefs.h. */
21790 char gethostbyname ();
21793 return gethostbyname ();
21798 if ac_fn_c_try_link "$LINENO"
21800 ac_cv_lib_socket_gethostbyname=yes
21802 ac_cv_lib_socket_gethostbyname=no
21804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21805 conftest$ac_exeext conftest.$ac_ext
21806 LIBS=$ac_check_lib_save_LIBS
21808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
21809 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
21810 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
21812 HAVE_GETHOSTBYNAME="1"
21813 LIBS="-lsocket $LIBS"
21819 if test "$HAVE_GETHOSTBYNAME" != "1"
21821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
21822 printf %s "checking for gethostbyname in -lwatt... " >&6; }
21823 if test ${ac_cv_lib_watt_gethostbyname+y}
21825 printf %s "(cached) " >&6
21827 ac_check_lib_save_LIBS=$LIBS
21828 LIBS="-lwatt $LIBS"
21829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21830 /* end confdefs.h. */
21836 char gethostbyname ();
21839 return gethostbyname ();
21844 if ac_fn_c_try_link "$LINENO"
21846 ac_cv_lib_watt_gethostbyname=yes
21848 ac_cv_lib_watt_gethostbyname=no
21850 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21851 conftest$ac_exeext conftest.$ac_ext
21852 LIBS=$ac_check_lib_save_LIBS
21854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
21855 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
21856 if test "x$ac_cv_lib_watt_gethostbyname" = xyes
21858 HAVE_GETHOSTBYNAME="1"
21859 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
21860 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
21861 LIBS="-lwatt $LIBS"
21867 if test "$HAVE_GETHOSTBYNAME" != "1"
21869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
21870 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
21871 my_ac_save_LIBS=$LIBS
21872 LIBS="-lnsl -lsocket $LIBS"
21873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21874 /* end confdefs.h. */
21888 if ac_fn_c_try_link "$LINENO"
21891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21892 printf "%s\n" "yes" >&6; }
21893 HAVE_GETHOSTBYNAME="1"
21897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21898 printf "%s\n" "no" >&6; }
21899 LIBS=$my_ac_save_LIBS
21902 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21903 conftest$ac_exeext conftest.$ac_ext
21906 if test "$HAVE_GETHOSTBYNAME" != "1"
21908 if test "$curl_cv_header_windows_h" = "yes"; then
21909 if test "$curl_cv_header_winsock2_h" = "yes"; then
21910 winsock_LIB="-lws2_32"
21912 if test ! -z "$winsock_LIB"; then
21913 my_ac_save_LIBS=$LIBS
21914 LIBS="$winsock_LIB $LIBS"
21915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
21916 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
21917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21918 /* end confdefs.h. */
21921 #ifdef HAVE_WINDOWS_H
21922 #ifndef WIN32_LEAN_AND_MEAN
21923 #define WIN32_LEAN_AND_MEAN
21925 #include <windows.h>
21926 #ifdef HAVE_WINSOCK2_H
21927 #include <winsock2.h>
21934 gethostbyname("www.dummysite.com");
21941 if ac_fn_c_try_link "$LINENO"
21944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21945 printf "%s\n" "yes" >&6; }
21946 HAVE_GETHOSTBYNAME="1"
21950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21951 printf "%s\n" "no" >&6; }
21953 LIBS=$my_ac_save_LIBS
21956 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21957 conftest$ac_exeext conftest.$ac_ext
21962 if test "$HAVE_GETHOSTBYNAME" != "1"
21964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
21965 printf %s "checking for gethostbyname for Minix 3... " >&6; }
21966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21967 /* end confdefs.h. */
21970 /* Older Minix versions may need <net/gen/netdb.h> here instead */
21976 gethostbyname("www.dummysite.com");
21983 if ac_fn_c_try_link "$LINENO"
21986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21987 printf "%s\n" "yes" >&6; }
21988 HAVE_GETHOSTBYNAME="1"
21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21993 printf "%s\n" "no" >&6; }
21996 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21997 conftest$ac_exeext conftest.$ac_ext
22000 if test "$HAVE_GETHOSTBYNAME" != "1"
22002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22003 printf %s "checking for gethostbyname for eCos... " >&6; }
22004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22005 /* end confdefs.h. */
22014 gethostbyname("www.dummysite.com");
22021 if ac_fn_c_try_link "$LINENO"
22024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025 printf "%s\n" "yes" >&6; }
22026 HAVE_GETHOSTBYNAME="1"
22030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22031 printf "%s\n" "no" >&6; }
22034 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22035 conftest$ac_exeext conftest.$ac_ext
22038 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22041 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22043 /* end confdefs.h. */
22046 #include <proto/bsdsocket.h>
22047 struct Library *SocketBase = NULL;
22052 gethostbyname("www.dummysite.com");
22059 if ac_fn_c_try_link "$LINENO"
22062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22063 printf "%s\n" "yes" >&6; }
22064 HAVE_GETHOSTBYNAME="1"
22065 HAVE_PROTO_BSDSOCKET_H="1"
22067 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22069 HAVE_PROTO_BSDSOCKET_H=1
22074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22075 printf "%s\n" "no" >&6; }
22078 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22079 conftest$ac_exeext conftest.$ac_ext
22082 if test "$HAVE_GETHOSTBYNAME" != "1"
22084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22085 printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22086 if test ${ac_cv_lib_network_gethostbyname+y}
22088 printf %s "(cached) " >&6
22090 ac_check_lib_save_LIBS=$LIBS
22091 LIBS="-lnetwork $LIBS"
22092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22093 /* end confdefs.h. */
22099 char gethostbyname ();
22102 return gethostbyname ();
22107 if ac_fn_c_try_link "$LINENO"
22109 ac_cv_lib_network_gethostbyname=yes
22111 ac_cv_lib_network_gethostbyname=no
22113 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22114 conftest$ac_exeext conftest.$ac_ext
22115 LIBS=$ac_check_lib_save_LIBS
22117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22118 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22119 if test "x$ac_cv_lib_network_gethostbyname" = xyes
22121 HAVE_GETHOSTBYNAME="1"
22122 LIBS="-lnetwork $LIBS"
22128 if test "$HAVE_GETHOSTBYNAME" != "1"
22130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
22131 printf %s "checking for gethostbyname in -lnet... " >&6; }
22132 if test ${ac_cv_lib_net_gethostbyname+y}
22134 printf %s "(cached) " >&6
22136 ac_check_lib_save_LIBS=$LIBS
22138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22139 /* end confdefs.h. */
22145 char gethostbyname ();
22148 return gethostbyname ();
22153 if ac_fn_c_try_link "$LINENO"
22155 ac_cv_lib_net_gethostbyname=yes
22157 ac_cv_lib_net_gethostbyname=no
22159 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22160 conftest$ac_exeext conftest.$ac_ext
22161 LIBS=$ac_check_lib_save_LIBS
22163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
22164 printf "%s\n" "$ac_cv_lib_net_gethostbyname" >&6; }
22165 if test "x$ac_cv_lib_net_gethostbyname" = xyes
22167 HAVE_GETHOSTBYNAME="1"
22175 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22176 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22180 curl_includes_winsock2="\
22181 /* includes start */
22182 #ifdef HAVE_WINDOWS_H
22183 # ifndef WIN32_LEAN_AND_MEAN
22184 # define WIN32_LEAN_AND_MEAN
22186 # include <windows.h>
22187 # ifdef HAVE_WINSOCK2_H
22188 # include <winsock2.h>
22191 /* includes end */"
22193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22194 printf %s "checking for windows.h... " >&6; }
22195 if test ${curl_cv_header_windows_h+y}
22197 printf %s "(cached) " >&6
22200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22201 /* end confdefs.h. */
22205 #ifndef WIN32_LEAN_AND_MEAN
22206 #define WIN32_LEAN_AND_MEAN
22208 #include <windows.h>
22213 #if defined(__CYGWIN__) || defined(__CEGCC__)
22214 HAVE_WINDOWS_H shall not be defined.
22216 int dummy=2*WINVER;
22224 if ac_fn_c_try_compile "$LINENO"
22227 curl_cv_header_windows_h="yes"
22231 curl_cv_header_windows_h="no"
22234 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
22238 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
22239 case "$curl_cv_header_windows_h" in
22242 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22249 printf %s "checking for winsock2.h... " >&6; }
22250 if test ${curl_cv_header_winsock2_h+y}
22252 printf %s "(cached) " >&6
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22260 #ifndef WIN32_LEAN_AND_MEAN
22261 #define WIN32_LEAN_AND_MEAN
22263 #include <windows.h>
22264 #include <winsock2.h>
22269 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22270 HAVE_WINSOCK2_H shall not be defined.
22272 int dummy=2*IPPROTO_ESP;
22280 if ac_fn_c_try_compile "$LINENO"
22283 curl_cv_header_winsock2_h="yes"
22287 curl_cv_header_winsock2_h="no"
22290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
22294 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
22295 case "$curl_cv_header_winsock2_h" in
22298 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
22305 curl_includes_bsdsocket="\
22306 /* includes start */
22307 #ifdef HAVE_PROTO_BSDSOCKET_H
22308 # include <proto/bsdsocket.h>
22309 struct Library *SocketBase = NULL;
22311 /* includes end */"
22312 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
22314 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
22316 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22323 printf %s "checking for connect in libraries... " >&6; }
22324 tst_connect_save_LIBS="$LIBS"
22325 tst_connect_need_LIBS="unknown"
22326 for tst_lib in '' '-lsocket' ; do
22327 if test "$tst_connect_need_LIBS" = "unknown"; then
22328 LIBS="$tst_lib $tst_connect_save_LIBS"
22329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22330 /* end confdefs.h. */
22333 $curl_includes_winsock2
22334 $curl_includes_bsdsocket
22335 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
22336 int connect(int, void*, int);
22342 if(0 != connect(0, 0, 0))
22350 if ac_fn_c_try_link "$LINENO"
22353 tst_connect_need_LIBS="$tst_lib"
22356 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22357 conftest$ac_exeext conftest.$ac_ext
22360 LIBS="$tst_connect_save_LIBS"
22362 case X-"$tst_connect_need_LIBS" in
22364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22365 printf "%s\n" "cannot find connect" >&6; }
22366 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370 printf "%s\n" "yes" >&6; }
22373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22374 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
22375 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22380 CURL_NETWORK_LIBS=$LIBS
22383 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22384 if test "x$ac_cv_header_sys_types_h" = xyes
22386 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22389 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22390 if test "x$ac_cv_header_sys_time_h" = xyes
22392 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22397 printf %s "checking for monotonic clock_gettime... " >&6; }
22399 if test "x$dontwant_rt" = "xno" ; then
22400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22401 /* end confdefs.h. */
22404 #ifdef HAVE_SYS_TYPES_H
22405 #include <sys/types.h>
22407 #ifdef HAVE_SYS_TIME_H
22408 #include <sys/time.h>
22415 struct timespec ts;
22416 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22423 if ac_fn_c_try_compile "$LINENO"
22426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22427 printf "%s\n" "yes" >&6; }
22428 curl_func_clock_gettime="yes"
22432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22433 printf "%s\n" "no" >&6; }
22434 curl_func_clock_gettime="no"
22437 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22442 if test "$curl_func_clock_gettime" = "yes"; then
22444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22445 printf %s "checking for clock_gettime in libraries... " >&6; }
22447 curl_cv_save_LIBS="$LIBS"
22448 curl_cv_gclk_LIBS="unknown"
22450 for x_xlibs in '' '-lrt' '-lposix4' ; do
22451 if test "$curl_cv_gclk_LIBS" = "unknown"; then
22452 if test -z "$x_xlibs"; then
22453 LIBS="$curl_cv_save_LIBS"
22455 LIBS="$x_xlibs $curl_cv_save_LIBS"
22457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22458 /* end confdefs.h. */
22461 #ifdef HAVE_SYS_TYPES_H
22462 #include <sys/types.h>
22464 #ifdef HAVE_SYS_TIME_H
22465 #include <sys/time.h>
22472 struct timespec ts;
22473 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22480 if ac_fn_c_try_link "$LINENO"
22483 curl_cv_gclk_LIBS="$x_xlibs"
22486 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22487 conftest$ac_exeext conftest.$ac_ext
22491 LIBS="$curl_cv_save_LIBS"
22493 case X-"$curl_cv_gclk_LIBS" in
22495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22496 printf "%s\n" "cannot find clock_gettime" >&6; }
22497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22498 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22499 curl_func_clock_gettime="no"
22502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22503 printf "%s\n" "no additional lib required" >&6; }
22504 curl_func_clock_gettime="yes"
22507 if test -z "$curl_cv_save_LIBS"; then
22508 LIBS="$curl_cv_gclk_LIBS"
22510 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
22512 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
22513 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
22514 curl_func_clock_gettime="yes"
22518 if test "x$cross_compiling" != "xyes" &&
22519 test "$curl_func_clock_gettime" = "yes"; then
22520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
22521 printf %s "checking if monotonic clock_gettime works... " >&6; }
22524 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
22525 *) library_path_var=LD_LIBRARY_PATH ;;
22528 eval "old=$$library_path_var"
22529 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
22531 eval "export $library_path_var"
22532 if test "$cross_compiling" = yes
22534 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22535 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22536 as_fn_error $? "cannot run test program while cross compiling
22537 See \`config.log' for more details" "$LINENO" 5; }
22539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22540 /* end confdefs.h. */
22543 #ifdef HAVE_STDLIB_H
22544 #include <stdlib.h>
22546 #ifdef HAVE_SYS_TYPES_H
22547 #include <sys/types.h>
22549 #ifdef HAVE_SYS_TIME_H
22550 #include <sys/time.h>
22557 struct timespec ts;
22558 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22568 if ac_fn_c_try_run "$LINENO"
22570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22571 printf "%s\n" "yes" >&6; }
22574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22575 printf "%s\n" "no" >&6; }
22576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22577 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22578 curl_func_clock_gettime="no"
22579 LIBS="$curl_cv_save_LIBS"
22582 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22583 conftest.$ac_objext conftest.beam conftest.$ac_ext
22586 eval "$library_path_var=\$old" # restore
22590 case "$curl_func_clock_gettime" in
22593 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
22602 CURL_NETWORK_AND_TIME_LIBS=$LIBS
22606 clean_CPPFLAGS=$CPPFLAGS
22607 clean_LDFLAGS=$LDFLAGS
22611 # Check whether --with-zlib was given.
22612 if test ${with_zlib+y}
22614 withval=$with_zlib; OPT_ZLIB="$withval"
22618 if test "$OPT_ZLIB" = "no" ; then
22619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
22620 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
22622 if test "$OPT_ZLIB" = "yes" ; then
22626 if test -z "$OPT_ZLIB" ; then
22628 if test -n "$PKG_CONFIG"; then
22629 PKGCONFIG="$PKG_CONFIG"
22631 if test -n "$ac_tool_prefix"; then
22632 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22633 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22635 printf %s "checking for $ac_word... " >&6; }
22636 if test ${ac_cv_path_PKGCONFIG+y}
22638 printf %s "(cached) " >&6
22642 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22646 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22647 for as_dir in $as_dummy
22650 case $as_dir in #(((
22653 *) as_dir=$as_dir/ ;;
22655 for ac_exec_ext in '' $ac_executable_extensions; do
22656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22657 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22668 PKGCONFIG=$ac_cv_path_PKGCONFIG
22669 if test -n "$PKGCONFIG"; then
22670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22671 printf "%s\n" "$PKGCONFIG" >&6; }
22673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22674 printf "%s\n" "no" >&6; }
22679 if test -z "$ac_cv_path_PKGCONFIG"; then
22680 ac_pt_PKGCONFIG=$PKGCONFIG
22681 # Extract the first word of "pkg-config", so it can be a program name with args.
22682 set dummy pkg-config; ac_word=$2
22683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22684 printf %s "checking for $ac_word... " >&6; }
22685 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
22687 printf %s "(cached) " >&6
22689 case $ac_pt_PKGCONFIG in
22691 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22695 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22696 for as_dir in $as_dummy
22699 case $as_dir in #(((
22702 *) as_dir=$as_dir/ ;;
22704 for ac_exec_ext in '' $ac_executable_extensions; do
22705 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22706 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22707 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22717 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22718 if test -n "$ac_pt_PKGCONFIG"; then
22719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22720 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
22722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22723 printf "%s\n" "no" >&6; }
22726 if test "x$ac_pt_PKGCONFIG" = x; then
22729 case $cross_compiling:$ac_tool_warned in
22731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22732 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22733 ac_tool_warned=yes ;;
22735 PKGCONFIG=$ac_pt_PKGCONFIG
22738 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22743 if test "x$PKGCONFIG" != "xno"; then
22744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
22745 printf %s "checking for zlib options with pkg-config... " >&6; }
22747 if test -n ""; then
22748 PKG_CONFIG_LIBDIR=""
22749 export PKG_CONFIG_LIBDIR
22751 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
22753 if test -z "$itexists"; then
22755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22756 printf "%s\n" "no" >&6; }
22758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
22759 printf "%s\n" "found" >&6; }
22764 if test "$PKGCONFIG" != "no" ; then
22765 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
22766 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
22767 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
22772 if test -z "$HAVE_LIBZ"; then
22775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
22776 printf %s "checking for inflateEnd in -lz... " >&6; }
22777 if test ${ac_cv_lib_z_inflateEnd+y}
22779 printf %s "(cached) " >&6
22781 ac_check_lib_save_LIBS=$LIBS
22783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22784 /* end confdefs.h. */
22790 char inflateEnd ();
22793 return inflateEnd ();
22798 if ac_fn_c_try_link "$LINENO"
22800 ac_cv_lib_z_inflateEnd=yes
22802 ac_cv_lib_z_inflateEnd=no
22804 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22805 conftest$ac_exeext conftest.$ac_ext
22806 LIBS=$ac_check_lib_save_LIBS
22808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
22809 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
22810 if test "x$ac_cv_lib_z_inflateEnd" = xyes
22815 OPT_ZLIB="/usr/local"
22821 if test -n "$OPT_ZLIB"; then
22822 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
22823 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
22826 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
22827 if test "x$ac_cv_header_zlib_h" = xyes
22831 if test "$HAVE_LIBZ" != "1"; then
22832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
22833 printf %s "checking for gzread in -lz... " >&6; }
22834 if test ${ac_cv_lib_z_gzread+y}
22836 printf %s "(cached) " >&6
22838 ac_check_lib_save_LIBS=$LIBS
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841 /* end confdefs.h. */
22855 if ac_fn_c_try_link "$LINENO"
22857 ac_cv_lib_z_gzread=yes
22859 ac_cv_lib_z_gzread=no
22861 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22862 conftest$ac_exeext conftest.$ac_ext
22863 LIBS=$ac_check_lib_save_LIBS
22865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
22866 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
22867 if test "x$ac_cv_lib_z_gzread" = xyes
22874 CPPFLAGS=$clean_CPPFLAGS
22875 LDFLAGS=$clean_LDFLAGS
22882 CPPFLAGS=$clean_CPPFLAGS
22883 LDFLAGS=$clean_LDFLAGS
22888 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
22890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
22891 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
22893 CPPFLAGS=$clean_CPPFLAGS
22894 LDFLAGS=$clean_LDFLAGS
22896 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
22898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
22899 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
22900 CPPFLAGS=$clean_CPPFLAGS
22901 LDFLAGS=$clean_LDFLAGS
22903 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
22907 printf "%s\n" "#define HAVE_ZLIB_H 1" >>confdefs.h
22910 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
22914 LIBS="-lz $clean_LIBS"
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
22918 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
22919 curl_zlib_msg="enabled"
22923 if test x"$AMFIXLIB" = x1; then
22925 HAVE_LIBZ_FALSE='#'
22937 # Check whether --with-brotli was given.
22938 if test ${with_brotli+y}
22940 withval=$with_brotli; OPT_BROTLI=$withval
22944 if test X"$OPT_BROTLI" != Xno; then
22945 CLEANLDFLAGS="$LDFLAGS"
22946 CLEANCPPFLAGS="$CPPFLAGS"
22949 case "$OPT_BROTLI" in
22952 if test -n "$PKG_CONFIG"; then
22953 PKGCONFIG="$PKG_CONFIG"
22955 if test -n "$ac_tool_prefix"; then
22956 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22957 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22959 printf %s "checking for $ac_word... " >&6; }
22960 if test ${ac_cv_path_PKGCONFIG+y}
22962 printf %s "(cached) " >&6
22966 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22970 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22971 for as_dir in $as_dummy
22974 case $as_dir in #(((
22977 *) as_dir=$as_dir/ ;;
22979 for ac_exec_ext in '' $ac_executable_extensions; do
22980 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
22981 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
22982 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
22992 PKGCONFIG=$ac_cv_path_PKGCONFIG
22993 if test -n "$PKGCONFIG"; then
22994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22995 printf "%s\n" "$PKGCONFIG" >&6; }
22997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22998 printf "%s\n" "no" >&6; }
23003 if test -z "$ac_cv_path_PKGCONFIG"; then
23004 ac_pt_PKGCONFIG=$PKGCONFIG
23005 # Extract the first word of "pkg-config", so it can be a program name with args.
23006 set dummy pkg-config; ac_word=$2
23007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23008 printf %s "checking for $ac_word... " >&6; }
23009 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23011 printf %s "(cached) " >&6
23013 case $ac_pt_PKGCONFIG in
23015 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23019 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23020 for as_dir in $as_dummy
23023 case $as_dir in #(((
23026 *) as_dir=$as_dir/ ;;
23028 for ac_exec_ext in '' $ac_executable_extensions; do
23029 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23030 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23031 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23041 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23042 if test -n "$ac_pt_PKGCONFIG"; then
23043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23044 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23047 printf "%s\n" "no" >&6; }
23050 if test "x$ac_pt_PKGCONFIG" = x; then
23053 case $cross_compiling:$ac_tool_warned in
23055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23056 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23057 ac_tool_warned=yes ;;
23059 PKGCONFIG=$ac_pt_PKGCONFIG
23062 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23067 if test "x$PKGCONFIG" != "xno"; then
23068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23069 printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23071 if test -n ""; then
23072 PKG_CONFIG_LIBDIR=""
23073 export PKG_CONFIG_LIBDIR
23075 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23077 if test -z "$itexists"; then
23079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23080 printf "%s\n" "no" >&6; }
23082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23083 printf "%s\n" "found" >&6; }
23088 if test "$PKGCONFIG" != "no" ; then
23089 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23090 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23091 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23092 version=`$PKGCONFIG --modversion libbrotlidec`
23093 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23100 PREFIX_BROTLI=$OPT_BROTLI
23104 if test -n "$PREFIX_BROTLI"; then
23105 LIB_BROTLI="-lbrotlidec"
23106 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23107 CPP_BROTLI=-I${PREFIX_BROTLI}/include
23108 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23111 LDFLAGS="$LDFLAGS $LD_BROTLI"
23112 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23113 LIBS="$LIB_BROTLI $LIBS"
23115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23116 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23117 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23119 printf %s "(cached) " >&6
23121 ac_check_lib_save_LIBS=$LIBS
23122 LIBS="-lbrotlidec $LIBS"
23123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23124 /* end confdefs.h. */
23130 char BrotliDecoderDecompress ();
23133 return BrotliDecoderDecompress ();
23138 if ac_fn_c_try_link "$LINENO"
23140 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
23142 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
23144 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23145 conftest$ac_exeext conftest.$ac_ext
23146 LIBS=$ac_check_lib_save_LIBS
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
23149 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
23150 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
23152 printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
23154 LIBS="-lbrotlidec $LIBS"
23159 for ac_header in brotli/decode.h
23161 ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
23162 if test "x$ac_cv_header_brotli_decode_h" = xyes
23164 printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
23165 curl_brotli_msg="enabled (libbrotlidec)"
23168 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
23177 if test X"$OPT_BROTLI" != Xoff &&
23178 test "$HAVE_BROTLI" != "1"; then
23179 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
23182 if test "$HAVE_BROTLI" = "1"; then
23183 if test -n "$DIR_BROTLI"; then
23185 if test "x$cross_compiling" != "xyes"; then
23186 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
23187 export CURL_LIBRARY_PATH
23188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
23189 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
23193 LDFLAGS=$CLEANLDFLAGS
23194 CPPFLAGS=$CLEANCPPFLAGS
23202 # Check whether --with-zstd was given.
23203 if test ${with_zstd+y}
23205 withval=$with_zstd; OPT_ZSTD=$withval
23209 if test X"$OPT_ZSTD" != Xno; then
23210 CLEANLDFLAGS="$LDFLAGS"
23211 CLEANCPPFLAGS="$CPPFLAGS"
23214 case "$OPT_ZSTD" in
23217 if test -n "$PKG_CONFIG"; then
23218 PKGCONFIG="$PKG_CONFIG"
23220 if test -n "$ac_tool_prefix"; then
23221 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23222 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23224 printf %s "checking for $ac_word... " >&6; }
23225 if test ${ac_cv_path_PKGCONFIG+y}
23227 printf %s "(cached) " >&6
23231 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23235 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23236 for as_dir in $as_dummy
23239 case $as_dir in #(((
23242 *) as_dir=$as_dir/ ;;
23244 for ac_exec_ext in '' $ac_executable_extensions; do
23245 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23246 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23257 PKGCONFIG=$ac_cv_path_PKGCONFIG
23258 if test -n "$PKGCONFIG"; then
23259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23260 printf "%s\n" "$PKGCONFIG" >&6; }
23262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23263 printf "%s\n" "no" >&6; }
23268 if test -z "$ac_cv_path_PKGCONFIG"; then
23269 ac_pt_PKGCONFIG=$PKGCONFIG
23270 # Extract the first word of "pkg-config", so it can be a program name with args.
23271 set dummy pkg-config; ac_word=$2
23272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23273 printf %s "checking for $ac_word... " >&6; }
23274 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23276 printf %s "(cached) " >&6
23278 case $ac_pt_PKGCONFIG in
23280 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23284 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23285 for as_dir in $as_dummy
23288 case $as_dir in #(((
23291 *) as_dir=$as_dir/ ;;
23293 for ac_exec_ext in '' $ac_executable_extensions; do
23294 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23295 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23296 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23306 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23307 if test -n "$ac_pt_PKGCONFIG"; then
23308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23309 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23312 printf "%s\n" "no" >&6; }
23315 if test "x$ac_pt_PKGCONFIG" = x; then
23318 case $cross_compiling:$ac_tool_warned in
23320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23321 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23322 ac_tool_warned=yes ;;
23324 PKGCONFIG=$ac_pt_PKGCONFIG
23327 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23332 if test "x$PKGCONFIG" != "xno"; then
23333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
23334 printf %s "checking for libzstd options with pkg-config... " >&6; }
23336 if test -n ""; then
23337 PKG_CONFIG_LIBDIR=""
23338 export PKG_CONFIG_LIBDIR
23340 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
23342 if test -z "$itexists"; then
23344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23345 printf "%s\n" "no" >&6; }
23347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23348 printf "%s\n" "found" >&6; }
23353 if test "$PKGCONFIG" != "no" ; then
23354 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
23355 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
23356 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
23357 version=`$PKGCONFIG --modversion libzstd`
23358 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
23365 PREFIX_ZSTD=$OPT_ZSTD
23369 if test -n "$PREFIX_ZSTD"; then
23371 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
23372 CPP_ZSTD=-I${PREFIX_ZSTD}/include
23373 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
23376 LDFLAGS="$LDFLAGS $LD_ZSTD"
23377 CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
23378 LIBS="$LIB_ZSTD $LIBS"
23380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
23381 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
23382 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
23384 printf %s "(cached) " >&6
23386 ac_check_lib_save_LIBS=$LIBS
23387 LIBS="-lzstd $LIBS"
23388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23389 /* end confdefs.h. */
23395 char ZSTD_createDStream ();
23398 return ZSTD_createDStream ();
23403 if ac_fn_c_try_link "$LINENO"
23405 ac_cv_lib_zstd_ZSTD_createDStream=yes
23407 ac_cv_lib_zstd_ZSTD_createDStream=no
23409 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23410 conftest$ac_exeext conftest.$ac_ext
23411 LIBS=$ac_check_lib_save_LIBS
23413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
23414 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
23415 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
23417 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
23419 LIBS="-lzstd $LIBS"
23424 for ac_header in zstd.h
23426 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
23427 if test "x$ac_cv_header_zstd_h" = xyes
23429 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
23430 curl_zstd_msg="enabled (libzstd)"
23433 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
23442 if test X"$OPT_ZSTD" != Xoff &&
23443 test "$HAVE_ZSTD" != "1"; then
23444 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
23447 if test "$HAVE_ZSTD" = "1"; then
23448 if test -n "$DIR_ZSTD"; then
23450 if test "x$cross_compiling" != "xyes"; then
23451 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
23452 export CURL_LIBRARY_PATH
23453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
23454 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
23458 LDFLAGS=$CLEANLDFLAGS
23459 CPPFLAGS=$CLEANCPPFLAGS
23467 # Check whether --with-ldap-lib was given.
23468 if test ${with_ldap_lib+y}
23470 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
23476 # Check whether --with-lber-lib was given.
23477 if test ${with_lber_lib+y}
23479 withval=$with_lber_lib; LBERLIBNAME="$withval"
23483 if test x$CURL_DISABLE_LDAP != x1 ; then
23486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
23487 printf %s "checking for lber.h... " >&6; }
23488 if test ${curl_cv_header_lber_h+y}
23490 printf %s "(cached) " >&6
23493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494 /* end confdefs.h. */
23498 #ifdef HAVE_WINDOWS_H
23499 #ifndef WIN32_LEAN_AND_MEAN
23500 #define WIN32_LEAN_AND_MEAN
23502 #include <windows.h>
23504 #ifdef HAVE_SYS_TYPES_H
23505 #include <sys/types.h>
23509 #define NULL (void *)0
23516 BerValue *bvp = NULL;
23517 BerElement *bep = ber_init(bvp);
23525 if ac_fn_c_try_compile "$LINENO"
23528 curl_cv_header_lber_h="yes"
23532 curl_cv_header_lber_h="no"
23535 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
23539 printf "%s\n" "$curl_cv_header_lber_h" >&6; }
23540 if test "$curl_cv_header_lber_h" = "yes"; then
23542 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
23545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23546 /* end confdefs.h. */
23550 #ifdef HAVE_WINDOWS_H
23551 #ifndef WIN32_LEAN_AND_MEAN
23552 #define WIN32_LEAN_AND_MEAN
23554 #include <windows.h>
23556 #ifdef HAVE_SYS_TYPES_H
23557 #include <sys/types.h>
23561 #define NULL (void *)0
23563 #ifndef LDAP_DEPRECATED
23564 #define LDAP_DEPRECATED 1
23571 BerValue *bvp = NULL;
23572 BerElement *bep = ber_init(bvp);
23580 if ac_fn_c_try_compile "$LINENO"
23583 curl_cv_need_header_lber_h="no"
23587 curl_cv_need_header_lber_h="yes"
23590 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23592 case "$curl_cv_need_header_lber_h" in
23595 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
23602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
23603 printf %s "checking for ldap.h... " >&6; }
23604 if test ${curl_cv_header_ldap_h+y}
23606 printf %s "(cached) " >&6
23609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23610 /* end confdefs.h. */
23614 #ifdef HAVE_WINDOWS_H
23615 #ifndef WIN32_LEAN_AND_MEAN
23616 #define WIN32_LEAN_AND_MEAN
23618 #include <windows.h>
23620 #ifdef HAVE_SYS_TYPES_H
23621 #include <sys/types.h>
23624 #ifndef LDAP_DEPRECATED
23625 #define LDAP_DEPRECATED 1
23635 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23636 int res = ldap_unbind(ldp);
23643 if ac_fn_c_try_compile "$LINENO"
23646 curl_cv_header_ldap_h="yes"
23650 curl_cv_header_ldap_h="no"
23653 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
23657 printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
23658 case "$curl_cv_header_ldap_h" in
23661 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
23667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
23668 printf %s "checking for ldapssl.h... " >&6; }
23669 if test ${curl_cv_header_ldapssl_h+y}
23671 printf %s "(cached) " >&6
23674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23675 /* end confdefs.h. */
23679 #ifdef HAVE_WINDOWS_H
23680 #ifndef WIN32_LEAN_AND_MEAN
23681 #define WIN32_LEAN_AND_MEAN
23683 #include <windows.h>
23685 #ifdef HAVE_SYS_TYPES_H
23686 #include <sys/types.h>
23690 #define NULL (void *)0
23692 #ifndef LDAP_DEPRECATED
23693 #define LDAP_DEPRECATED 1
23701 #include <ldapssl.h>
23706 char *cert_label = NULL;
23707 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
23714 if ac_fn_c_try_compile "$LINENO"
23717 curl_cv_header_ldapssl_h="yes"
23721 curl_cv_header_ldapssl_h="no"
23724 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
23728 printf "%s\n" "$curl_cv_header_ldapssl_h" >&6; }
23729 case "$curl_cv_header_ldapssl_h" in
23732 printf "%s\n" "#define HAVE_LDAPSSL_H 1" >>confdefs.h
23738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
23739 printf %s "checking for ldap_ssl.h... " >&6; }
23740 if test ${curl_cv_header_ldap_ssl_h+y}
23742 printf %s "(cached) " >&6
23745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23746 /* end confdefs.h. */
23750 #ifdef HAVE_WINDOWS_H
23751 #ifndef WIN32_LEAN_AND_MEAN
23752 #define WIN32_LEAN_AND_MEAN
23754 #include <windows.h>
23756 #ifdef HAVE_SYS_TYPES_H
23757 #include <sys/types.h>
23760 #ifndef LDAP_DEPRECATED
23761 #define LDAP_DEPRECATED 1
23769 #include <ldap_ssl.h>
23774 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
23781 if ac_fn_c_try_compile "$LINENO"
23784 curl_cv_header_ldap_ssl_h="yes"
23788 curl_cv_header_ldap_ssl_h="no"
23791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
23795 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
23796 case "$curl_cv_header_ldap_ssl_h" in
23799 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
23805 if test -z "$LDAPLIBNAME" ; then
23806 if test "$curl_cv_native_windows" = "yes"; then
23807 LDAPLIBNAME="wldap32"
23812 if test "$LDAPLIBNAME" ; then
23813 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
23815 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
23816 if eval test \${$as_ac_Lib+y}
23818 printf %s "(cached) " >&6
23820 ac_check_lib_save_LIBS=$LIBS
23821 LIBS="-l"$LDAPLIBNAME" $LIBS"
23822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23823 /* end confdefs.h. */
23832 return ldap_init ();
23837 if ac_fn_c_try_link "$LINENO"
23839 eval "$as_ac_Lib=yes"
23841 eval "$as_ac_Lib=no"
23843 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23844 conftest$ac_exeext conftest.$ac_ext
23845 LIBS=$ac_check_lib_save_LIBS
23847 eval ac_res=\$$as_ac_Lib
23848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23849 printf "%s\n" "$ac_res" >&6; }
23850 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
23852 cat >>confdefs.h <<_ACEOF
23853 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
23856 LIBS="-l"$LDAPLIBNAME" $LIBS"
23860 if test -n "$ldap_askedfor"; then
23861 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
23863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
23864 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
23866 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
23868 CURL_DISABLE_LDAP=1
23871 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
23873 CURL_DISABLE_LDAPS=1
23880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
23881 printf %s "checking for LDAP libraries... " >&6; }
23887 curl_cv_save_LIBS="$LIBS"
23888 curl_cv_ldap_LIBS="unknown"
23890 for x_nlibs in '' "$u_libs" \
23894 '-lldapssl -lldapx -lldapsdk' \
23895 '-lldapsdk -lldapx -lldapssl' \
23896 '-lldap -llber -lssl -lcrypto' ; do
23898 if test "$curl_cv_ldap_LIBS" = "unknown"; then
23899 if test -z "$x_nlibs"; then
23900 LIBS="$curl_cv_save_LIBS"
23902 LIBS="$x_nlibs $curl_cv_save_LIBS"
23904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23905 /* end confdefs.h. */
23909 #ifdef HAVE_WINDOWS_H
23910 #ifndef WIN32_LEAN_AND_MEAN
23911 #define WIN32_LEAN_AND_MEAN
23913 #include <windows.h>
23915 #ifdef HAVE_SYS_TYPES_H
23916 #include <sys/types.h>
23920 #define NULL (void *)0
23922 #ifndef LDAP_DEPRECATED
23923 #define LDAP_DEPRECATED 1
23935 BerValue *bvp = NULL;
23936 BerElement *bep = ber_init(bvp);
23937 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
23938 int res = ldap_unbind(ldp);
23946 if ac_fn_c_try_link "$LINENO"
23949 curl_cv_ldap_LIBS="$x_nlibs"
23952 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23953 conftest$ac_exeext conftest.$ac_ext
23957 LIBS="$curl_cv_save_LIBS"
23959 case X-"$curl_cv_ldap_LIBS" in
23961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
23962 printf "%s\n" "cannot find LDAP libraries" >&6; }
23965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
23966 printf "%s\n" "no additional lib required" >&6; }
23969 if test -z "$curl_cv_save_LIBS"; then
23970 LIBS="$curl_cv_ldap_LIBS"
23972 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
23974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
23975 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
23980 case X-"$curl_cv_ldap_LIBS" in
23982 if test -n "$ldap_askedfor"; then
23983 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
23985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
23986 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
23988 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
23990 CURL_DISABLE_LDAP=1
23993 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
23995 CURL_DISABLE_LDAPS=1
24002 if test x$CURL_DISABLE_LDAP != x1 ; then
24004 if test "$LBERLIBNAME" ; then
24005 if test "$LBERLIBNAME" != "no" ; then
24006 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24008 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24009 if eval test \${$as_ac_Lib+y}
24011 printf %s "(cached) " >&6
24013 ac_check_lib_save_LIBS=$LIBS
24014 LIBS="-l"$LBERLIBNAME" $LIBS"
24015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24016 /* end confdefs.h. */
24025 return ber_free ();
24030 if ac_fn_c_try_link "$LINENO"
24032 eval "$as_ac_Lib=yes"
24034 eval "$as_ac_Lib=no"
24036 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24037 conftest$ac_exeext conftest.$ac_ext
24038 LIBS=$ac_check_lib_save_LIBS
24040 eval ac_res=\$$as_ac_Lib
24041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24042 printf "%s\n" "$ac_res" >&6; }
24043 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24045 cat >>confdefs.h <<_ACEOF
24046 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24049 LIBS="-l"$LBERLIBNAME" $LIBS"
24053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24054 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24056 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24058 CURL_DISABLE_LDAP=1
24061 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24063 CURL_DISABLE_LDAPS=1
24071 if test x$CURL_DISABLE_LDAP != x1 ; then
24072 ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24073 if test "x$ac_cv_func_ldap_url_parse" = xyes
24075 printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24078 ac_fn_c_check_func "$LINENO" "ldap_init_fd" "ac_cv_func_ldap_init_fd"
24079 if test "x$ac_cv_func_ldap_init_fd" = xyes
24081 printf "%s\n" "#define HAVE_LDAP_INIT_FD 1" >>confdefs.h
24086 if test "$LDAPLIBNAME" = "wldap32"; then
24087 curl_ldap_msg="enabled (winldap)"
24089 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24092 curl_ldap_msg="enabled (OpenLDAP)"
24093 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24095 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24103 if test x$CURL_DISABLE_LDAPS != x1 ; then
24104 curl_ldaps_msg="enabled"
24108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24109 printf %s "checking whether to enable IPv6... " >&6; }
24110 # Check whether --enable-ipv6 was given.
24111 if test ${enable_ipv6+y}
24113 enableval=$enable_ipv6; case "$enableval" in
24115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24116 printf "%s\n" "no" >&6; }
24119 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24120 printf "%s\n" "yes" >&6; }
24125 if test "$cross_compiling" = yes
24127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24128 printf "%s\n" "yes" >&6; }
24132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24133 /* end confdefs.h. */
24135 /* are AF_INET6 and sockaddr_in6 available? */
24136 #include <sys/types.h>
24137 #ifdef HAVE_WINSOCK2_H
24138 #include <winsock2.h>
24139 #include <ws2tcpip.h>
24141 #include <sys/socket.h>
24142 #include <netinet/in.h>
24143 #if defined (__TANDEM)
24144 # include <netinet/in6.h>
24147 #include <stdlib.h> /* for exit() */
24150 struct sockaddr_in6 s;
24152 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24160 if ac_fn_c_try_run "$LINENO"
24162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24163 printf "%s\n" "yes" >&6; }
24166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24167 printf "%s\n" "no" >&6; }
24170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24171 conftest.$ac_objext conftest.beam conftest.$ac_ext
24177 if test "$ipv6" = yes; then
24178 curl_ipv6_msg="enabled"
24180 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24186 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188 /* end confdefs.h. */
24190 #include <sys/types.h>
24191 #ifdef HAVE_WINSOCK2_H
24192 #include <winsock2.h>
24193 #include <ws2tcpip.h>
24195 #include <netinet/in.h>
24196 #if defined (__TANDEM)
24197 # include <netinet/in6.h>
24204 struct sockaddr_in6 s;
24205 s.sin6_scope_id = 0;
24211 if ac_fn_c_try_compile "$LINENO"
24214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24215 printf "%s\n" "yes" >&6; }
24217 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
24222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24223 printf "%s\n" "no" >&6; }
24226 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
24231 printf %s "checking if argv can be written to... " >&6; }
24234 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
24235 *) library_path_var=LD_LIBRARY_PATH ;;
24238 eval "old=$$library_path_var"
24239 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
24241 eval "export $library_path_var"
24242 if test "$cross_compiling" = yes
24244 curl_cv_writable_argv=cross
24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24250 int main(int argc, char **argv)
24254 return (argv[0][0] == ' ')?0:1;
24258 if ac_fn_c_try_run "$LINENO"
24260 curl_cv_writable_argv=yes
24263 curl_cv_writable_argv=no
24266 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24267 conftest.$ac_objext conftest.beam conftest.$ac_ext
24270 eval "$library_path_var=\$old" # restore
24272 case $curl_cv_writable_argv in
24275 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
24277 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24278 printf "%s\n" "yes" >&6; }
24281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24282 printf "%s\n" "no" >&6; }
24285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24286 printf "%s\n" "no" >&6; }
24287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
24288 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
24296 # Check whether --with-gssapi-includes was given.
24297 if test ${with_gssapi_includes+y}
24299 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
24306 # Check whether --with-gssapi-libs was given.
24307 if test ${with_gssapi_libs+y}
24309 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
24316 # Check whether --with-gssapi was given.
24317 if test ${with_gssapi+y}
24319 withval=$with_gssapi;
24320 GSSAPI_ROOT="$withval"
24321 if test x"$GSSAPI_ROOT" != xno; then
24323 if test x"$GSSAPI_ROOT" = xyes; then
24331 save_CPPFLAGS="$CPPFLAGS"
24332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
24333 printf %s "checking if GSS-API support is requested... " >&6; }
24334 if test x"$want_gss" = xyes; then
24335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24336 printf "%s\n" "yes" >&6; }
24339 if test -n "$PKG_CONFIG"; then
24340 PKGCONFIG="$PKG_CONFIG"
24342 if test -n "$ac_tool_prefix"; then
24343 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24344 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24346 printf %s "checking for $ac_word... " >&6; }
24347 if test ${ac_cv_path_PKGCONFIG+y}
24349 printf %s "(cached) " >&6
24353 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24357 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24358 for as_dir in $as_dummy
24361 case $as_dir in #(((
24364 *) as_dir=$as_dir/ ;;
24366 for ac_exec_ext in '' $ac_executable_extensions; do
24367 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24368 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24369 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24379 PKGCONFIG=$ac_cv_path_PKGCONFIG
24380 if test -n "$PKGCONFIG"; then
24381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24382 printf "%s\n" "$PKGCONFIG" >&6; }
24384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24385 printf "%s\n" "no" >&6; }
24390 if test -z "$ac_cv_path_PKGCONFIG"; then
24391 ac_pt_PKGCONFIG=$PKGCONFIG
24392 # Extract the first word of "pkg-config", so it can be a program name with args.
24393 set dummy pkg-config; ac_word=$2
24394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24395 printf %s "checking for $ac_word... " >&6; }
24396 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24398 printf %s "(cached) " >&6
24400 case $ac_pt_PKGCONFIG in
24402 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24406 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24407 for as_dir in $as_dummy
24410 case $as_dir in #(((
24413 *) as_dir=$as_dir/ ;;
24415 for ac_exec_ext in '' $ac_executable_extensions; do
24416 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24417 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24418 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24428 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24429 if test -n "$ac_pt_PKGCONFIG"; then
24430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24431 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24434 printf "%s\n" "no" >&6; }
24437 if test "x$ac_pt_PKGCONFIG" = x; then
24440 case $cross_compiling:$ac_tool_warned in
24442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24443 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24444 ac_tool_warned=yes ;;
24446 PKGCONFIG=$ac_pt_PKGCONFIG
24449 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24454 if test "x$PKGCONFIG" != "xno"; then
24455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24456 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24458 if test -n ""; then
24459 PKG_CONFIG_LIBDIR=""
24460 export PKG_CONFIG_LIBDIR
24462 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24464 if test -z "$itexists"; then
24466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24467 printf "%s\n" "no" >&6; }
24469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24470 printf "%s\n" "found" >&6; }
24474 if test -z "$GSSAPI_INCS"; then
24475 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24476 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
24477 elif test "$PKGCONFIG" != "no" ; then
24478 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
24479 elif test "$GSSAPI_ROOT" != "yes"; then
24480 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24484 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24486 ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
24487 if test "x$ac_cv_header_gss_h" = xyes
24491 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
24497 for ac_header in gssapi/gssapi.h
24499 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
24500 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
24502 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
24509 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
24511 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
24512 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
24513 $ac_includes_default
24514 #ifdef HAVE_GSSAPI_GSSAPI_H
24515 #include <gssapi/gssapi.h>
24519 if eval test \"x\$"$as_ac_Header"\" = x"yes"
24521 cat >>confdefs.h <<_ACEOF
24522 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
24530 if test "x$not_mit" = "x1"; then
24531 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
24532 if test "x$ac_cv_header_gssapi_h" = xyes
24536 printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
24542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
24543 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
24550 printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
24552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
24553 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
24554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24555 /* end confdefs.h. */
24558 #include <gssapi/gssapi.h>
24559 #include <gssapi/gssapi_generic.h>
24560 #include <gssapi/gssapi_krb5.h>
24568 GSS_C_NT_HOSTBASED_SERVICE,
24576 if ac_fn_c_try_compile "$LINENO"
24579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24580 printf "%s\n" "yes" >&6; }
24584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24585 printf "%s\n" "no" >&6; }
24587 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
24591 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24599 printf "%s\n" "no" >&6; }
24601 if test x"$want_gss" = xyes; then
24603 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
24606 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
24608 if test -n "$gnu_gss"; then
24609 curl_gss_msg="enabled (GNU GSS)"
24610 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24612 elif test -z "$GSSAPI_LIB_DIR"; then
24615 LIBS="-lgssapi_krb5 -lresolv $LIBS"
24619 if test -n "$PKG_CONFIG"; then
24620 PKGCONFIG="$PKG_CONFIG"
24622 if test -n "$ac_tool_prefix"; then
24623 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24624 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24626 printf %s "checking for $ac_word... " >&6; }
24627 if test ${ac_cv_path_PKGCONFIG+y}
24629 printf %s "(cached) " >&6
24633 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24637 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24638 for as_dir in $as_dummy
24641 case $as_dir in #(((
24644 *) as_dir=$as_dir/ ;;
24646 for ac_exec_ext in '' $ac_executable_extensions; do
24647 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24648 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24649 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24659 PKGCONFIG=$ac_cv_path_PKGCONFIG
24660 if test -n "$PKGCONFIG"; then
24661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24662 printf "%s\n" "$PKGCONFIG" >&6; }
24664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24665 printf "%s\n" "no" >&6; }
24670 if test -z "$ac_cv_path_PKGCONFIG"; then
24671 ac_pt_PKGCONFIG=$PKGCONFIG
24672 # Extract the first word of "pkg-config", so it can be a program name with args.
24673 set dummy pkg-config; ac_word=$2
24674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24675 printf %s "checking for $ac_word... " >&6; }
24676 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24678 printf %s "(cached) " >&6
24680 case $ac_pt_PKGCONFIG in
24682 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24686 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24687 for as_dir in $as_dummy
24690 case $as_dir in #(((
24693 *) as_dir=$as_dir/ ;;
24695 for ac_exec_ext in '' $ac_executable_extensions; do
24696 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24697 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24698 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24708 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24709 if test -n "$ac_pt_PKGCONFIG"; then
24710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24711 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24714 printf "%s\n" "no" >&6; }
24717 if test "x$ac_pt_PKGCONFIG" = x; then
24720 case $cross_compiling:$ac_tool_warned in
24722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24723 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24724 ac_tool_warned=yes ;;
24726 PKGCONFIG=$ac_pt_PKGCONFIG
24729 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24734 if test "x$PKGCONFIG" != "xno"; then
24735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24736 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24738 if test -n ""; then
24739 PKG_CONFIG_LIBDIR=""
24740 export PKG_CONFIG_LIBDIR
24742 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24744 if test -z "$itexists"; then
24746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24747 printf "%s\n" "no" >&6; }
24749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24750 printf "%s\n" "found" >&6; }
24754 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24755 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
24756 LIBS="$gss_libs $LIBS"
24757 elif test "$PKGCONFIG" != "no" ; then
24758 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
24759 LIBS="$gss_libs $LIBS"
24766 gss_libname="gssapi"
24770 if test "$GSSAPI_ROOT" != "yes"; then
24771 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
24772 LIBS="-l$gss_libname $LIBS"
24774 LIBS="-l$gss_libname $LIBS"
24780 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
24786 LIBS="-lgssapi $LIBS"
24791 CPPFLAGS="$save_CPPFLAGS"
24794 build_libstubgss=no
24795 if test x"$want_gss" = "xyes"; then
24796 build_libstubgss=yes
24799 if test "x$build_libstubgss" = "xyes"; then
24800 BUILD_STUB_GSS_TRUE=
24801 BUILD_STUB_GSS_FALSE='#'
24803 BUILD_STUB_GSS_TRUE='#'
24804 BUILD_STUB_GSS_FALSE=
24809 DEFAULT_SSL_BACKEND=no
24810 VALID_DEFAULT_SSL_BACKEND=
24812 # Check whether --with-default-ssl-backend was given.
24813 if test ${with_default_ssl_backend+y}
24815 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
24818 case "$DEFAULT_SSL_BACKEND" in
24822 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
24826 VALID_DEFAULT_SSL_BACKEND=no
24831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
24832 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
24833 if test "x$OPT_SCHANNEL" != xno; then
24835 if test "x$OPT_SCHANNEL" != "xno" &&
24836 test "x$curl_cv_native_windows" = "xyes"; then
24837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24838 printf "%s\n" "yes" >&6; }
24840 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
24845 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24847 # --with-schannel implies --enable-sspi
24849 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
24853 curl_sspi_msg="enabled"
24855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24856 printf "%s\n" "no" >&6; }
24858 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24861 printf "%s\n" "no" >&6; }
24865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
24866 printf %s "checking whether to enable Secure Transport... " >&6; }
24867 if test "x$OPT_SECURETRANSPORT" != xno; then
24868 if test "x$OPT_SECURETRANSPORT" != "xno" &&
24869 (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
24870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24871 printf "%s\n" "yes" >&6; }
24873 printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
24877 ssl_msg="Secure Transport"
24878 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24879 SECURETRANSPORT_ENABLED=1
24880 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
24882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24883 printf "%s\n" "no" >&6; }
24885 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24888 printf "%s\n" "no" >&6; }
24893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
24894 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
24895 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
24896 if test "x$OPT_AMISSL" != xno; then
24898 if test "x$OPT_AMISSL" != "xno"; then
24899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24900 printf "%s\n" "yes" >&6; }
24902 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24904 LIBS="-lamisslauto $LIBS"
24906 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
24909 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
24912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24913 printf "%s\n" "no" >&6; }
24915 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24918 printf "%s\n" "no" >&6; }
24921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24922 printf "%s\n" "no" >&6; }
24927 if test "x$OPT_OPENSSL" != xno; then
24930 CLEANLDFLAGS="$LDFLAGS"
24931 CLEANCPPFLAGS="$CPPFLAGS"
24935 *-*-msys* | *-*-mingw*)
24936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
24937 printf %s "checking for gdi32... " >&6; }
24938 my_ac_save_LIBS=$LIBS
24939 LIBS="-lgdi32 $LIBS"
24940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941 /* end confdefs.h. */
24943 #include <windef.h>
24944 #include <wingdi.h>
24955 if ac_fn_c_try_link "$LINENO"
24957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24958 printf "%s\n" "yes" >&6; }
24960 LIBS=$my_ac_save_LIBS
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24962 printf "%s\n" "no" >&6; }
24965 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24966 conftest$ac_exeext conftest.$ac_ext
24970 case "$OPT_OPENSSL" in
24977 PREFIX_OPENSSL=$OPT_OPENSSL
24979 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
24980 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
24981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
24982 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
24986 if test "$PKGTEST" != "yes"; then
24987 # try lib64 instead
24988 OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
24989 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
24990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
24991 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
24996 if test "$PKGTEST" != "yes"; then
24997 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
24998 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
25002 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
25003 if test "$PREFIX_OPENSSL" != "/usr" ; then
25004 SSL_LDFLAGS="-L$LIB_OPENSSL"
25005 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
25007 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
25011 if test "$PKGTEST" = "yes"; then
25014 if test -n "$PKG_CONFIG"; then
25015 PKGCONFIG="$PKG_CONFIG"
25017 if test -n "$ac_tool_prefix"; then
25018 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25019 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25021 printf %s "checking for $ac_word... " >&6; }
25022 if test ${ac_cv_path_PKGCONFIG+y}
25024 printf %s "(cached) " >&6
25028 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25032 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25033 for as_dir in $as_dummy
25036 case $as_dir in #(((
25039 *) as_dir=$as_dir/ ;;
25041 for ac_exec_ext in '' $ac_executable_extensions; do
25042 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25043 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25044 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25054 PKGCONFIG=$ac_cv_path_PKGCONFIG
25055 if test -n "$PKGCONFIG"; then
25056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25057 printf "%s\n" "$PKGCONFIG" >&6; }
25059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25060 printf "%s\n" "no" >&6; }
25065 if test -z "$ac_cv_path_PKGCONFIG"; then
25066 ac_pt_PKGCONFIG=$PKGCONFIG
25067 # Extract the first word of "pkg-config", so it can be a program name with args.
25068 set dummy pkg-config; ac_word=$2
25069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25070 printf %s "checking for $ac_word... " >&6; }
25071 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25073 printf %s "(cached) " >&6
25075 case $ac_pt_PKGCONFIG in
25077 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25081 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25082 for as_dir in $as_dummy
25085 case $as_dir in #(((
25088 *) as_dir=$as_dir/ ;;
25090 for ac_exec_ext in '' $ac_executable_extensions; do
25091 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25092 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25093 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25103 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25104 if test -n "$ac_pt_PKGCONFIG"; then
25105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25106 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25109 printf "%s\n" "no" >&6; }
25112 if test "x$ac_pt_PKGCONFIG" = x; then
25115 case $cross_compiling:$ac_tool_warned in
25117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25118 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25119 ac_tool_warned=yes ;;
25121 PKGCONFIG=$ac_pt_PKGCONFIG
25124 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25129 if test "x$PKGCONFIG" != "xno"; then
25130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
25131 printf %s "checking for openssl options with pkg-config... " >&6; }
25133 if test -n "$OPENSSL_PCDIR"; then
25134 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25135 export PKG_CONFIG_LIBDIR
25137 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
25139 if test -z "$itexists"; then
25141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25142 printf "%s\n" "no" >&6; }
25144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25145 printf "%s\n" "found" >&6; }
25150 if test "$PKGCONFIG" != "no" ; then
25152 if test -n "$OPENSSL_PCDIR"; then
25153 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25154 export PKG_CONFIG_LIBDIR
25156 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
25159 if test -n "$OPENSSL_PCDIR"; then
25160 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25161 export PKG_CONFIG_LIBDIR
25163 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
25166 if test -n "$OPENSSL_PCDIR"; then
25167 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25168 export PKG_CONFIG_LIBDIR
25170 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
25173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
25174 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
25175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
25176 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
25177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
25178 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
25180 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
25182 LIBS="$SSL_LIBS $LIBS"
25186 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
25187 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
25189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
25190 printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
25191 if test ${ac_cv_lib_crypto_HMAC_Update+y}
25193 printf %s "(cached) " >&6
25195 ac_check_lib_save_LIBS=$LIBS
25196 LIBS="-lcrypto $LIBS"
25197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25198 /* end confdefs.h. */
25204 char HMAC_Update ();
25207 return HMAC_Update ();
25212 if ac_fn_c_try_link "$LINENO"
25214 ac_cv_lib_crypto_HMAC_Update=yes
25216 ac_cv_lib_crypto_HMAC_Update=no
25218 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25219 conftest$ac_exeext conftest.$ac_ext
25220 LIBS=$ac_check_lib_save_LIBS
25222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
25223 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
25224 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
25228 LIBS="-lcrypto $LIBS"
25232 if test -n "$LIB_OPENSSL" ; then
25233 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
25235 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
25236 # only set this if pkg-config wasn't used
25237 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
25239 # Linking previously failed, try extra paths from --with-openssl or
25240 # pkg-config. Use a different function name to avoid reusing the earlier
25242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
25243 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
25244 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
25246 printf %s "(cached) " >&6
25248 ac_check_lib_save_LIBS=$LIBS
25249 LIBS="-lcrypto $LIBS"
25250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25251 /* end confdefs.h. */
25257 char HMAC_Init_ex ();
25260 return HMAC_Init_ex ();
25265 if ac_fn_c_try_link "$LINENO"
25267 ac_cv_lib_crypto_HMAC_Init_ex=yes
25269 ac_cv_lib_crypto_HMAC_Init_ex=no
25271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25272 conftest$ac_exeext conftest.$ac_ext
25273 LIBS=$ac_check_lib_save_LIBS
25275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
25276 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
25277 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
25281 LIBS="-lcrypto $LIBS"
25285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
25286 printf %s "checking OpenSSL linking with -ldl... " >&6; }
25287 LIBS="-lcrypto $CLEANLIBS -ldl"
25288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25289 /* end confdefs.h. */
25291 #include <openssl/err.h>
25302 if ac_fn_c_try_link "$LINENO"
25305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25306 printf "%s\n" "yes" >&6; }
25311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25312 printf "%s\n" "no" >&6; }
25314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
25315 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
25316 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
25317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25318 /* end confdefs.h. */
25321 #include <openssl/err.h>
25332 if ac_fn_c_try_link "$LINENO"
25335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25336 printf "%s\n" "yes" >&6; }
25341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25342 printf "%s\n" "no" >&6; }
25343 LDFLAGS="$CLEANLDFLAGS"
25344 CPPFLAGS="$CLEANCPPFLAGS"
25349 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25350 conftest$ac_exeext conftest.$ac_ext
25354 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25355 conftest$ac_exeext conftest.$ac_ext
25364 if test X"$HAVECRYPTO" = X"yes"; then
25366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
25367 printf %s "checking for SSL_connect in -lssl... " >&6; }
25368 if test ${ac_cv_lib_ssl_SSL_connect+y}
25370 printf %s "(cached) " >&6
25372 ac_check_lib_save_LIBS=$LIBS
25374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25375 /* end confdefs.h. */
25381 char SSL_connect ();
25384 return SSL_connect ();
25389 if ac_fn_c_try_link "$LINENO"
25391 ac_cv_lib_ssl_SSL_connect=yes
25393 ac_cv_lib_ssl_SSL_connect=no
25395 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25396 conftest$ac_exeext conftest.$ac_ext
25397 LIBS=$ac_check_lib_save_LIBS
25399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
25400 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
25401 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
25403 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
25410 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
25411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
25412 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
25414 LIBS="-lRSAglue -lrsaref $LIBS"
25415 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
25416 printf %s "checking for SSL_connect in -lssl... " >&6; }
25417 if test ${ac_cv_lib_ssl_SSL_connect+y}
25419 printf %s "(cached) " >&6
25421 ac_check_lib_save_LIBS=$LIBS
25423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25424 /* end confdefs.h. */
25430 char SSL_connect ();
25433 return SSL_connect ();
25438 if ac_fn_c_try_link "$LINENO"
25440 ac_cv_lib_ssl_SSL_connect=yes
25442 ac_cv_lib_ssl_SSL_connect=no
25444 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25445 conftest$ac_exeext conftest.$ac_ext
25446 LIBS=$ac_check_lib_save_LIBS
25448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
25449 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
25450 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
25452 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
25458 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
25459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25460 printf "%s\n" "no" >&6; }
25463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25464 printf "%s\n" "yes" >&6; }
25469 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
25471 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25472 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25473 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25475 cat >>confdefs.h <<_ACEOF
25476 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25479 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25482 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
25488 if test $ac_cv_header_openssl_x509_h = no; then
25489 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
25490 if test "x$ac_cv_header_x509_h" = xyes
25492 printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
25495 ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
25496 if test "x$ac_cv_header_rsa_h" = xyes
25498 printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
25501 ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
25502 if test "x$ac_cv_header_crypto_h" = xyes
25504 printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
25507 ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
25508 if test "x$ac_cv_header_pem_h" = xyes
25510 printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
25513 ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
25514 if test "x$ac_cv_header_ssl_h" = xyes
25516 printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
25519 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
25520 if test "x$ac_cv_header_err_h" = xyes
25522 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
25527 if test $ac_cv_header_x509_h = yes &&
25528 test $ac_cv_header_crypto_h = yes &&
25529 test $ac_cv_header_ssl_h = yes; then
25536 if test X"$OPENSSL_ENABLED" != X"1"; then
25540 if test X"$OPT_OPENSSL" != Xoff &&
25541 test "$OPENSSL_ENABLED" != "1"; then
25542 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
25546 if test X"$OPENSSL_ENABLED" = X"1"; then
25548 ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
25549 if test "x$ac_cv_func_RAND_egd" = xyes
25551 printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
25556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
25557 printf %s "checking for BoringSSL... " >&6; }
25558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25559 /* end confdefs.h. */
25562 #include <openssl/base.h>
25567 #ifndef OPENSSL_IS_BORINGSSL
25568 #error not boringssl
25576 if ac_fn_c_try_compile "$LINENO"
25579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25580 printf "%s\n" "yes" >&6; }
25582 printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
25584 ssl_msg="BoringSSL"
25588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25589 printf "%s\n" "no" >&6; }
25592 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
25595 printf %s "checking for libressl... " >&6; }
25596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25597 /* end confdefs.h. */
25600 #include <openssl/opensslv.h>
25605 int dummy = LIBRESSL_VERSION_NUMBER;
25612 if ac_fn_c_try_compile "$LINENO"
25615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25616 printf "%s\n" "yes" >&6; }
25618 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
25624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25625 printf "%s\n" "no" >&6; }
25628 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
25631 printf %s "checking for OpenSSL >= v3... " >&6; }
25632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25633 /* end confdefs.h. */
25636 #include <openssl/opensslv.h>
25641 #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
25644 #error older than 3
25652 if ac_fn_c_try_compile "$LINENO"
25655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25656 printf "%s\n" "yes" >&6; }
25658 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
25660 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
25661 ssl_msg="OpenSSL v3+"
25665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25666 printf "%s\n" "no" >&6; }
25669 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25672 if test "$OPENSSL_ENABLED" = "1"; then
25673 if test -n "$LIB_OPENSSL"; then
25674 if test "x$cross_compiling" != "xyes"; then
25675 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
25676 export CURL_LIBRARY_PATH
25677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
25678 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
25687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
25688 printf %s "checking for OpenSSL headers version... " >&6; }
25690 OLDCPPFLAGS=$CPPFLAGS
25691 # CPPPFLAG comes from CURL_CPP_P
25692 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
25693 if test -z "$SED"; then
25694 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
25696 if test -z "$GREP"; then
25697 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h. */
25705 # ifdef USE_OPENSSL
25706 # include <openssl/crypto.h>
25708 # include <crypto.h>
25711 #ifdef OPENSSL_VERSION_NUMBER
25712 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
25717 if ac_fn_c_try_cpp "$LINENO"
25720 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
25721 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
25722 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
25723 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
25724 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
25729 rm -f conftest.err conftest.i conftest.$ac_ext
25730 if test -z "$tmp_exp"; then
25731 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
25734 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
25735 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
25738 CPPFLAGS=$OLDCPPFLAGS
25741 OLDCPPFLAGS=$CPPFLAGS
25742 # CPPPFLAG comes from CURL_CPP_P
25743 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
25744 if test -z "$SED"; then
25745 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
25747 if test -z "$GREP"; then
25748 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
25752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25753 /* end confdefs.h. */
25756 # include <openssl/crypto.h>
25758 #ifdef OPENSSL_VERSION_STR
25759 CURL_DEF_TOKEN OPENSSL_VERSION_STR
25764 if ac_fn_c_try_cpp "$LINENO"
25767 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
25768 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
25769 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
25770 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
25771 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_STR"; then
25776 rm -f conftest.err conftest.i conftest.$ac_ext
25777 if test -z "$tmp_exp"; then
25778 curl_cv_have_def_OPENSSL_VERSION_STR=no
25781 curl_cv_have_def_OPENSSL_VERSION_STR=yes
25782 curl_cv_def_OPENSSL_VERSION_STR=$tmp_exp
25785 CPPFLAGS=$OLDCPPFLAGS
25787 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
25788 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
25789 case "x$tst_verlen" in
25791 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
25792 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
25793 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
25794 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
25797 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
25798 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
25799 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
25800 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
25803 if test "$curl_cv_have_def_OPENSSL_VERSION_STR" = "yes"; then
25804 ver=`echo $curl_cv_def_OPENSSL_VERSION_STR | sed 's/"//g'`;
25805 tst_vermaj=`echo $ver | cut -d. -f1`
25806 tst_vermin=`echo $ver | cut -d. -f2`
25807 tst_verfix=`echo $ver | cut -d. -f3`
25809 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
25816 0x111) tst_show="1.1.1" ;;
25817 0x110) tst_show="1.1.0" ;;
25818 0x102) tst_show="1.0.2" ;;
25819 0x101) tst_show="1.0.1" ;;
25820 0x100) tst_show="1.0.0" ;;
25821 0x099) tst_show="0.9.9" ;;
25822 0x098) tst_show="0.9.8" ;;
25823 0x097) tst_show="0.9.7" ;;
25824 0x096) tst_show="0.9.6" ;;
25825 0x095) tst_show="0.9.5" ;;
25826 0x094) tst_show="0.9.4" ;;
25827 0x093) tst_show="0.9.3" ;;
25828 0x092) tst_show="0.9.2" ;;
25829 0x091) tst_show="0.9.1" ;;
25831 if test -z "$tst_show"; then
25836 tst_show="$tst_show - $tst_api"
25840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
25841 printf "%s\n" "$tst_show" >&6; }
25843 curl_openssl_api_headers=$tst_api
25849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
25850 printf %s "checking for OpenSSL library version... " >&6; }
25851 if test "$tst_api" = "unknown"; then
25852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25853 /* end confdefs.h. */
25856 #define SSL_CTX_load_verify_dir innocuous_SSL_CTX_load_verify_dir
25858 # include <limits.h>
25860 # include <assert.h>
25862 #undef SSL_CTX_load_verify_dir
25866 char SSL_CTX_load_verify_dir ();
25867 #if defined __stub_SSL_CTX_load_verify_dir || defined __stub___SSL_CTX_load_verify_dir
25873 return SSL_CTX_load_verify_dir ();
25879 if ac_fn_c_try_link "$LINENO"
25885 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25886 conftest$ac_exeext conftest.$ac_ext
25888 if test "$tst_api" = "unknown"; then
25889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25890 /* end confdefs.h. */
25893 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
25895 # include <limits.h>
25897 # include <assert.h>
25899 #undef ERR_clear_last_mark
25903 char ERR_clear_last_mark ();
25904 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
25910 return ERR_clear_last_mark ();
25916 if ac_fn_c_try_link "$LINENO"
25922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25923 conftest$ac_exeext conftest.$ac_ext
25925 if test "$tst_api" = "unknown"; then
25928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25929 /* end confdefs.h. */
25932 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
25934 # include <limits.h>
25936 # include <assert.h>
25938 #undef SSL_CTX_set_not_resumbl_sess_cb
25942 char SSL_CTX_set_not_resumbl_sess_cb ();
25943 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
25949 return SSL_CTX_set_not_resumbl_sess_cb ();
25955 if ac_fn_c_try_link "$LINENO"
25961 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25962 conftest$ac_exeext conftest.$ac_ext
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25969 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
25971 # include <limits.h>
25973 # include <assert.h>
25975 #undef SSL_CTX_set_not_resumable_session_callback
25979 char SSL_CTX_set_not_resumable_session_callback ();
25980 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
25986 return SSL_CTX_set_not_resumable_session_callback ();
25992 if ac_fn_c_try_link "$LINENO"
25998 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25999 conftest$ac_exeext conftest.$ac_ext
26003 if test "$tst_api" = "unknown"; then
26004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26005 /* end confdefs.h. */
26008 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
26010 # include <limits.h>
26012 # include <assert.h>
26014 #undef SSL_CONF_CTX_new
26018 char SSL_CONF_CTX_new ();
26019 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
26025 return SSL_CONF_CTX_new ();
26031 if ac_fn_c_try_link "$LINENO"
26037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26038 conftest$ac_exeext conftest.$ac_ext
26040 if test "$tst_api" = "unknown"; then
26041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26042 /* end confdefs.h. */
26045 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
26047 # include <limits.h>
26049 # include <assert.h>
26051 #undef SSL_renegotiate_abbreviated
26055 char SSL_renegotiate_abbreviated ();
26056 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
26062 return SSL_renegotiate_abbreviated ();
26068 if ac_fn_c_try_link "$LINENO"
26074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26075 conftest$ac_exeext conftest.$ac_ext
26077 if test "$tst_api" = "unknown"; then
26078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26079 /* end confdefs.h. */
26082 #define OBJ_add_sigid innocuous_OBJ_add_sigid
26084 # include <limits.h>
26086 # include <assert.h>
26088 #undef OBJ_add_sigid
26092 char OBJ_add_sigid ();
26093 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
26099 return OBJ_add_sigid ();
26105 if ac_fn_c_try_link "$LINENO"
26111 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26112 conftest$ac_exeext conftest.$ac_ext
26114 if test "$tst_api" = "unknown"; then
26115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26116 /* end confdefs.h. */
26119 #define ERR_set_mark innocuous_ERR_set_mark
26121 # include <limits.h>
26123 # include <assert.h>
26125 #undef ERR_set_mark
26129 char ERR_set_mark ();
26130 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
26136 return ERR_set_mark ();
26142 if ac_fn_c_try_link "$LINENO"
26148 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26149 conftest$ac_exeext conftest.$ac_ext
26151 if test "$tst_api" = "unknown"; then
26152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26153 /* end confdefs.h. */
26156 #define ERR_peek_last_error innocuous_ERR_peek_last_error
26158 # include <limits.h>
26160 # include <assert.h>
26162 #undef ERR_peek_last_error
26166 char ERR_peek_last_error ();
26167 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
26173 return ERR_peek_last_error ();
26179 if ac_fn_c_try_link "$LINENO"
26185 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26186 conftest$ac_exeext conftest.$ac_ext
26188 if test "$tst_api" = "unknown"; then
26189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26190 /* end confdefs.h. */
26193 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
26195 # include <limits.h>
26197 # include <assert.h>
26199 #undef c2i_ASN1_OBJECT
26203 char c2i_ASN1_OBJECT ();
26204 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
26210 return c2i_ASN1_OBJECT ();
26216 if ac_fn_c_try_link "$LINENO"
26222 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26223 conftest$ac_exeext conftest.$ac_ext
26225 if test "$tst_api" = "unknown"; then
26226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26227 /* end confdefs.h. */
26230 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
26232 # include <limits.h>
26234 # include <assert.h>
26236 #undef SSL_CTX_set_purpose
26240 char SSL_CTX_set_purpose ();
26241 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
26247 return SSL_CTX_set_purpose ();
26253 if ac_fn_c_try_link "$LINENO"
26259 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26260 conftest$ac_exeext conftest.$ac_ext
26262 if test "$tst_api" = "unknown"; then
26263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26264 /* end confdefs.h. */
26267 #define OBJ_obj2txt innocuous_OBJ_obj2txt
26269 # include <limits.h>
26271 # include <assert.h>
26277 char OBJ_obj2txt ();
26278 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
26284 return OBJ_obj2txt ();
26290 if ac_fn_c_try_link "$LINENO"
26296 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26297 conftest$ac_exeext conftest.$ac_ext
26299 if test "$tst_api" = "unknown"; then
26300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26301 /* end confdefs.h. */
26304 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
26306 # include <limits.h>
26308 # include <assert.h>
26310 #undef SSL_get_verify_depth
26314 char SSL_get_verify_depth ();
26315 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
26321 return SSL_get_verify_depth ();
26327 if ac_fn_c_try_link "$LINENO"
26333 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26334 conftest$ac_exeext conftest.$ac_ext
26336 if test "$tst_api" = "unknown"; then
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338 /* end confdefs.h. */
26341 #define SSL_library_init innocuous_SSL_library_init
26343 # include <limits.h>
26345 # include <assert.h>
26347 #undef SSL_library_init
26351 char SSL_library_init ();
26352 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
26358 return SSL_library_init ();
26364 if ac_fn_c_try_link "$LINENO"
26370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26371 conftest$ac_exeext conftest.$ac_ext
26373 if test "$tst_api" = "unknown"; then
26374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26375 /* end confdefs.h. */
26378 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
26380 # include <limits.h>
26382 # include <assert.h>
26384 #undef SSL_CTX_set_cipher_list
26388 char SSL_CTX_set_cipher_list ();
26389 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
26395 return SSL_CTX_set_cipher_list ();
26401 if ac_fn_c_try_link "$LINENO"
26407 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26408 conftest$ac_exeext conftest.$ac_ext
26411 0x300) tst_show="3.0.0" ;;
26412 0x111) tst_show="1.1.1" ;;
26413 0x110) tst_show="1.1.0" ;;
26414 0x102) tst_show="1.0.2" ;;
26415 0x101) tst_show="1.0.1" ;;
26416 0x100) tst_show="1.0.0" ;;
26417 0x099) tst_show="0.9.9" ;;
26418 0x098) tst_show="0.9.8" ;;
26419 0x097) tst_show="0.9.7" ;;
26420 0x096) tst_show="0.9.6" ;;
26421 0x095) tst_show="0.9.5" ;;
26422 0x094) tst_show="0.9.4" ;;
26423 0x093) tst_show="0.9.3" ;;
26424 0x092) tst_show="0.9.2" ;;
26425 0x091) tst_show="0.9.1" ;;
26426 *) tst_show="unknown" ;;
26428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
26429 printf "%s\n" "$tst_show" >&6; }
26431 curl_openssl_api_library=$tst_api
26436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
26437 printf %s "checking for OpenSSL headers and library versions matching... " >&6; }
26438 if test "$curl_openssl_api_headers" = "unknown" ||
26439 test "$curl_openssl_api_library" = "unknown"; then
26441 tst_warns="Can not compare OpenSSL headers and library versions."
26442 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
26444 tst_warns="OpenSSL headers and library versions do not match."
26446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
26447 printf "%s\n" "$tst_match" >&6; }
26448 if test "$tst_match" != "yes"; then
26449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
26450 printf "%s\n" "$as_me: WARNING: $tst_warns" >&2;}
26453 check_for_ca_bundle=1
26456 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26459 if test X"$OPT_OPENSSL" != Xno &&
26460 test "$OPENSSL_ENABLED" != "1"; then
26461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26462 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26464 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26465 as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26469 if test X"$OPENSSL_ENABLED" = X"1"; then
26471 # Check whether --with-egd-socket was given.
26472 if test ${with_egd_socket+y}
26474 withval=$with_egd_socket; EGD_SOCKET="$withval"
26478 if test -n "$EGD_SOCKET" ; then
26480 printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
26485 # Check whether --with-random was given.
26486 if test ${with_random+y}
26488 withval=$with_random; RANDOM_FILE="$withval"
26491 if test x$cross_compiling != xyes; then
26492 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26494 printf %s "checking for \"/dev/urandom\"... " >&6; }
26495 if eval test \${$as_ac_File+y}
26497 printf %s "(cached) " >&6
26499 test "$cross_compiling" = yes &&
26500 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26501 if test -r ""/dev/urandom""; then
26502 eval "$as_ac_File=yes"
26504 eval "$as_ac_File=no"
26507 eval ac_res=\$$as_ac_File
26508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26509 printf "%s\n" "$ac_res" >&6; }
26510 if eval test \"x\$"$as_ac_File"\" = x"yes"
26512 RANDOM_FILE="/dev/urandom"
26516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
26517 printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
26523 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26526 printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
26531 if test "$OPENSSL_ENABLED" = "1"; then
26532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
26533 printf %s "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
26534 if test ${ac_cv_lib_crypto_SRP_Calc_client_key+y}
26536 printf %s "(cached) " >&6
26538 ac_check_lib_save_LIBS=$LIBS
26539 LIBS="-lcrypto $LIBS"
26540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26541 /* end confdefs.h. */
26547 char SRP_Calc_client_key ();
26550 return SRP_Calc_client_key ();
26555 if ac_fn_c_try_link "$LINENO"
26557 ac_cv_lib_crypto_SRP_Calc_client_key=yes
26559 ac_cv_lib_crypto_SRP_Calc_client_key=no
26561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26562 conftest$ac_exeext conftest.$ac_ext
26563 LIBS=$ac_check_lib_save_LIBS
26565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
26566 printf "%s\n" "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
26567 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes
26571 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
26580 if test X"$OPENSSL_ENABLED" = X"1"; then
26581 # Check whether --enable-openssl-auto-load-config was given.
26582 if test ${enable_openssl_auto_load_config+y}
26584 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
26585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
26586 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
26588 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
26598 if test "x$OPT_GNUTLS" != xno; then
26601 if test X"$OPT_GNUTLS" != Xno; then
26609 if test "x$OPT_GNUTLS" = "xyes"; then
26611 if test -n "$PKG_CONFIG"; then
26612 PKGCONFIG="$PKG_CONFIG"
26614 if test -n "$ac_tool_prefix"; then
26615 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26616 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26618 printf %s "checking for $ac_word... " >&6; }
26619 if test ${ac_cv_path_PKGCONFIG+y}
26621 printf %s "(cached) " >&6
26625 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26629 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26630 for as_dir in $as_dummy
26633 case $as_dir in #(((
26636 *) as_dir=$as_dir/ ;;
26638 for ac_exec_ext in '' $ac_executable_extensions; do
26639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26640 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26651 PKGCONFIG=$ac_cv_path_PKGCONFIG
26652 if test -n "$PKGCONFIG"; then
26653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26654 printf "%s\n" "$PKGCONFIG" >&6; }
26656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26657 printf "%s\n" "no" >&6; }
26662 if test -z "$ac_cv_path_PKGCONFIG"; then
26663 ac_pt_PKGCONFIG=$PKGCONFIG
26664 # Extract the first word of "pkg-config", so it can be a program name with args.
26665 set dummy pkg-config; ac_word=$2
26666 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26667 printf %s "checking for $ac_word... " >&6; }
26668 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26670 printf %s "(cached) " >&6
26672 case $ac_pt_PKGCONFIG in
26674 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26678 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26679 for as_dir in $as_dummy
26682 case $as_dir in #(((
26685 *) as_dir=$as_dir/ ;;
26687 for ac_exec_ext in '' $ac_executable_extensions; do
26688 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26689 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26690 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26700 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26701 if test -n "$ac_pt_PKGCONFIG"; then
26702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26703 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26706 printf "%s\n" "no" >&6; }
26709 if test "x$ac_pt_PKGCONFIG" = x; then
26712 case $cross_compiling:$ac_tool_warned in
26714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26715 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26716 ac_tool_warned=yes ;;
26718 PKGCONFIG=$ac_pt_PKGCONFIG
26721 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26726 if test "x$PKGCONFIG" != "xno"; then
26727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
26728 printf %s "checking for gnutls options with pkg-config... " >&6; }
26730 if test -n ""; then
26731 PKG_CONFIG_LIBDIR=""
26732 export PKG_CONFIG_LIBDIR
26734 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
26736 if test -z "$itexists"; then
26738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26739 printf "%s\n" "no" >&6; }
26741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26742 printf "%s\n" "found" >&6; }
26747 if test "$PKGCONFIG" != "no" ; then
26748 addlib=`$PKGCONFIG --libs-only-l gnutls`
26749 addld=`$PKGCONFIG --libs-only-L gnutls`
26750 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
26751 version=`$PKGCONFIG --modversion gnutls`
26752 gtlslib=`echo $addld | $SED -e 's/^-L//'`
26754 check=`libgnutls-config --version 2>/dev/null`
26755 if test -n "$check"; then
26756 addlib=`libgnutls-config --libs`
26757 addcflags=`libgnutls-config --cflags`
26758 version=`libgnutls-config --version`
26759 gtlslib=`libgnutls-config --prefix`/lib$libsuff
26763 cfg=$OPT_GNUTLS/bin/libgnutls-config
26764 check=`$cfg --version 2>/dev/null`
26765 if test -n "$check"; then
26766 addlib=`$cfg --libs`
26767 addcflags=`$cfg --cflags`
26768 version=`$cfg --version`
26769 gtlslib=`$cfg --prefix`/lib$libsuff
26772 addld=-L$OPT_GNUTLS/lib$libsuff
26773 addcflags=-I$OPT_GNUTLS/include
26774 version="" # we just don't know
26775 gtlslib=$OPT_GNUTLS/lib$libsuff
26779 if test -z "$version"; then
26783 if test -n "$addlib"; then
26786 CLEANCPPFLAGS="$CPPFLAGS"
26787 CLEANLDFLAGS="$LDFLAGS"
26789 LIBS="$addlib $LIBS"
26790 LDFLAGS="$LDFLAGS $addld"
26791 if test "$addcflags" != "-I/usr/include"; then
26792 CPPFLAGS="$CPPFLAGS $addcflags"
26795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
26796 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
26797 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
26799 printf %s "(cached) " >&6
26801 ac_check_lib_save_LIBS=$LIBS
26802 LIBS="-lgnutls $LIBS"
26803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26804 /* end confdefs.h. */
26810 char gnutls_x509_crt_get_dn2 ();
26813 return gnutls_x509_crt_get_dn2 ();
26818 if ac_fn_c_try_link "$LINENO"
26820 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
26822 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
26824 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26825 conftest$ac_exeext conftest.$ac_ext
26826 LIBS=$ac_check_lib_save_LIBS
26828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
26829 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
26830 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
26834 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
26841 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26846 CPPFLAGS="$CLEANCPPFLAGS"
26851 if test "x$USE_GNUTLS" = "xyes"; then
26852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
26853 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
26854 check_for_ca_bundle=1
26855 if test -n "$gtlslib"; then
26856 if test "x$cross_compiling" != "xyes"; then
26857 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
26858 export CURL_LIBRARY_PATH
26859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
26860 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
26868 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26872 if test "$GNUTLS_ENABLED" = "1"; then
26874 # First check if we can detect either crypto library via transitive linking
26875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
26876 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
26877 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
26879 printf %s "(cached) " >&6
26881 ac_check_lib_save_LIBS=$LIBS
26882 LIBS="-lgnutls $LIBS"
26883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26884 /* end confdefs.h. */
26890 char nettle_MD5Init ();
26893 return nettle_MD5Init ();
26898 if ac_fn_c_try_link "$LINENO"
26900 ac_cv_lib_gnutls_nettle_MD5Init=yes
26902 ac_cv_lib_gnutls_nettle_MD5Init=no
26904 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26905 conftest$ac_exeext conftest.$ac_ext
26906 LIBS=$ac_check_lib_save_LIBS
26908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
26909 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
26910 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
26912 USE_GNUTLS_NETTLE=1
26916 # If not, try linking directly to both of them to see if they are available
26917 if test "$USE_GNUTLS_NETTLE" = ""; then
26918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
26919 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
26920 if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
26922 printf %s "(cached) " >&6
26924 ac_check_lib_save_LIBS=$LIBS
26925 LIBS="-lnettle $LIBS"
26926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26927 /* end confdefs.h. */
26933 char nettle_MD5Init ();
26936 return nettle_MD5Init ();
26941 if ac_fn_c_try_link "$LINENO"
26943 ac_cv_lib_nettle_nettle_MD5Init=yes
26945 ac_cv_lib_nettle_nettle_MD5Init=no
26947 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26948 conftest$ac_exeext conftest.$ac_ext
26949 LIBS=$ac_check_lib_save_LIBS
26951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
26952 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
26953 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
26955 USE_GNUTLS_NETTLE=1
26959 if test "$USE_GNUTLS_NETTLE" = ""; then
26960 as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
26962 LIBS="-lnettle $LIBS"
26965 if test "$GNUTLS_ENABLED" = "1"; then
26966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
26967 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
26968 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
26970 printf %s "(cached) " >&6
26972 ac_check_lib_save_LIBS=$LIBS
26973 LIBS="-lgnutls $LIBS"
26974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26975 /* end confdefs.h. */
26981 char gnutls_srp_verifier ();
26984 return gnutls_srp_verifier ();
26989 if ac_fn_c_try_link "$LINENO"
26991 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
26993 ac_cv_lib_gnutls_gnutls_srp_verifier=no
26995 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26996 conftest$ac_exeext conftest.$ac_ext
26997 LIBS=$ac_check_lib_save_LIBS
26999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
27000 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
27001 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
27005 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
27017 if test "x$OPT_MBEDTLS" != xno; then
27018 _cppflags=$CPPFLAGS
27022 if test X"$OPT_MBEDTLS" != Xno; then
27024 if test "$OPT_MBEDTLS" = "yes"; then
27028 if test -z "$OPT_MBEDTLS" ; then
27030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27031 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27032 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27034 printf %s "(cached) " >&6
27036 ac_check_lib_save_LIBS=$LIBS
27037 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27039 /* end confdefs.h. */
27045 char mbedtls_havege_init ();
27048 return mbedtls_havege_init ();
27053 if ac_fn_c_try_link "$LINENO"
27055 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27057 ac_cv_lib_mbedtls_mbedtls_havege_init=no
27059 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27060 conftest$ac_exeext conftest.$ac_ext
27061 LIBS=$ac_check_lib_save_LIBS
27063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27064 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27065 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27069 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27076 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27087 if test "x$USE_MBEDTLS" != "xyes"; then
27088 addld=-L$OPT_MBEDTLS/lib$libsuff
27089 addcflags=-I$OPT_MBEDTLS/include
27090 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27092 LDFLAGS="$LDFLAGS $addld"
27093 if test "$addcflags" != "-I/usr/include"; then
27094 CPPFLAGS="$CPPFLAGS $addcflags"
27097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27098 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27099 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27101 printf %s "(cached) " >&6
27103 ac_check_lib_save_LIBS=$LIBS
27104 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27106 /* end confdefs.h. */
27112 char mbedtls_ssl_init ();
27115 return mbedtls_ssl_init ();
27120 if ac_fn_c_try_link "$LINENO"
27122 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27124 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27126 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27127 conftest$ac_exeext conftest.$ac_ext
27128 LIBS=$ac_check_lib_save_LIBS
27130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27131 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27132 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27136 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27143 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27147 CPPFLAGS=$_cppflags
27154 if test "x$USE_MBEDTLS" = "xyes"; then
27155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27156 printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27157 check_for_ca_bundle=1
27159 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27161 if test -n "$mbedtlslib"; then
27162 if test "x$cross_compiling" != "xyes"; then
27163 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27164 export CURL_LIBRARY_PATH
27165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27166 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27172 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27178 case "$OPT_WOLFSSL" in
27183 wolfpkg="$withval/lib/pkgconfig"
27187 if test "x$OPT_WOLFSSL" != xno; then
27188 _cppflags=$CPPFLAGS
27193 if test X"$OPT_WOLFSSL" != Xno; then
27195 if test "$OPT_WOLFSSL" = "yes"; then
27200 if test -n "$PKG_CONFIG"; then
27201 PKGCONFIG="$PKG_CONFIG"
27203 if test -n "$ac_tool_prefix"; then
27204 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27205 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27207 printf %s "checking for $ac_word... " >&6; }
27208 if test ${ac_cv_path_PKGCONFIG+y}
27210 printf %s "(cached) " >&6
27214 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27218 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27219 for as_dir in $as_dummy
27222 case $as_dir in #(((
27225 *) as_dir=$as_dir/ ;;
27227 for ac_exec_ext in '' $ac_executable_extensions; do
27228 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27229 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27230 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27240 PKGCONFIG=$ac_cv_path_PKGCONFIG
27241 if test -n "$PKGCONFIG"; then
27242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27243 printf "%s\n" "$PKGCONFIG" >&6; }
27245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27246 printf "%s\n" "no" >&6; }
27251 if test -z "$ac_cv_path_PKGCONFIG"; then
27252 ac_pt_PKGCONFIG=$PKGCONFIG
27253 # Extract the first word of "pkg-config", so it can be a program name with args.
27254 set dummy pkg-config; ac_word=$2
27255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27256 printf %s "checking for $ac_word... " >&6; }
27257 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27259 printf %s "(cached) " >&6
27261 case $ac_pt_PKGCONFIG in
27263 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27267 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27268 for as_dir in $as_dummy
27271 case $as_dir in #(((
27274 *) as_dir=$as_dir/ ;;
27276 for ac_exec_ext in '' $ac_executable_extensions; do
27277 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27278 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27279 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27289 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27290 if test -n "$ac_pt_PKGCONFIG"; then
27291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27292 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27295 printf "%s\n" "no" >&6; }
27298 if test "x$ac_pt_PKGCONFIG" = x; then
27301 case $cross_compiling:$ac_tool_warned in
27303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27304 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27305 ac_tool_warned=yes ;;
27307 PKGCONFIG=$ac_pt_PKGCONFIG
27310 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27315 if test "x$PKGCONFIG" != "xno"; then
27316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27317 printf %s "checking for wolfssl options with pkg-config... " >&6; }
27319 if test -n "$wolfpkg"; then
27320 PKG_CONFIG_LIBDIR="$wolfpkg"
27321 export PKG_CONFIG_LIBDIR
27323 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27325 if test -z "$itexists"; then
27327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27328 printf "%s\n" "no" >&6; }
27330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27331 printf "%s\n" "found" >&6; }
27335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27336 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27341 if test "$PKGCONFIG" != "no" ; then
27343 if test -n "$wolfpkg"; then
27344 PKG_CONFIG_LIBDIR="$wolfpkg"
27345 export PKG_CONFIG_LIBDIR
27348 $PKGCONFIG --libs-only-l wolfssl`
27350 if test -n "$wolfpkg"; then
27351 PKG_CONFIG_LIBDIR="$wolfpkg"
27352 export PKG_CONFIG_LIBDIR
27355 $PKGCONFIG --libs-only-L wolfssl`
27357 if test -n "$wolfpkg"; then
27358 PKG_CONFIG_LIBDIR="$wolfpkg"
27359 export PKG_CONFIG_LIBDIR
27362 $PKGCONFIG --cflags-only-I wolfssl`
27364 if test -n "$wolfpkg"; then
27365 PKG_CONFIG_LIBDIR="$wolfpkg"
27366 export PKG_CONFIG_LIBDIR
27369 $PKGCONFIG --modversion wolfssl`
27370 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27373 if test -n "$OPT_WOLFSSL"; then
27374 addld=-L$OPT_WOLFSSL/lib$libsuff
27375 addcflags=-I$OPT_WOLFSSL/include
27376 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27380 if test "x$USE_WOLFSSL" != "xyes"; then
27382 LDFLAGS="$LDFLAGS $addld"
27383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27384 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27385 if test "$addcflags" != "-I/usr/include"; then
27386 CPPFLAGS="$CPPFLAGS $addcflags"
27387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27388 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27391 my_ac_save_LIBS="$LIBS"
27392 LIBS="$addlib $LIBS"
27393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27394 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27397 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27399 /* end confdefs.h. */
27402 /* These aren't needed for detection and confuse WolfSSL.
27403 They are set up properly later if it is detected. */
27405 #undef SIZEOF_LONG_LONG
27406 #include <wolfssl/ssl.h>
27411 return wolfSSL_Init();
27418 if ac_fn_c_try_link "$LINENO"
27421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27422 printf "%s\n" "yes" >&6; }
27424 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27431 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27436 printf "%s\n" "no" >&6; }
27437 CPPFLAGS=$_cppflags
27442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27443 conftest$ac_exeext conftest.$ac_ext
27444 LIBS="$my_ac_save_LIBS"
27447 if test "x$USE_WOLFSSL" = "xyes"; then
27448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27449 printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27450 check_for_ca_bundle=1
27452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27453 printf %s "checking size of long long... " >&6; }
27454 if test ${ac_cv_sizeof_long_long+y}
27456 printf %s "(cached) " >&6
27458 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
27459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27460 /* end confdefs.h. */
27462 #include <sys/types.h>
27467 switch (0) case 0: case (sizeof (long long) == $ac_size):;
27472 if ac_fn_c_try_compile "$LINENO"
27474 ac_cv_sizeof_long_long=$ac_size
27476 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27477 if test x$ac_cv_sizeof_long_long != x ; then break; fi
27482 if test x$ac_cv_sizeof_long_long = x ; then
27483 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
27485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
27486 printf "%s\n" "$ac_cv_sizeof_long_long" >&6; }
27488 printf "%s\n" "#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long" >>confdefs.h
27492 LIBS="$addlib -lm $LIBS"
27494 ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27495 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27497 printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27500 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27501 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27503 printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
27508 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
27509 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
27513 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
27515 if test -n "$addcflags"; then
27516 for f in $addcflags; do
27517 CPPFLAGS="$f/wolfssl $CPPFLAGS"
27518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $f/wolfssl to CPPFLAGS" >&5
27519 printf "%s\n" "$as_me: Add $f/wolfssl to CPPFLAGS" >&6;}
27523 CPPFLAGS="-I/usr/include/wolfssl $CPPFLAGS"
27524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add /usr/include/wolfssl to CPPFLAGS" >&5
27525 printf "%s\n" "$as_me: Add /usr/include/wolfssl to CPPFLAGS" >&6;}
27533 if test -n "$wolfssllibpath"; then
27534 if test "x$cross_compiling" != "xyes"; then
27535 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
27536 export CURL_LIBRARY_PATH
27537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
27538 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
27545 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27551 if test "x$OPT_MESALINK" != xno; then
27552 _cppflags=$CPPFLAGS
27556 if test X"$OPT_MESALINK" != Xno; then
27558 if test "$OPT_MESALINK" = "yes"; then
27562 if test -z "$OPT_MESALINK" ; then
27564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
27565 printf %s "checking for mesalink_library_init in -lmesalink... " >&6; }
27566 if test ${ac_cv_lib_mesalink_mesalink_library_init+y}
27568 printf %s "(cached) " >&6
27570 ac_check_lib_save_LIBS=$LIBS
27571 LIBS="-lmesalink $LIBS"
27572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27573 /* end confdefs.h. */
27579 char mesalink_library_init ();
27582 return mesalink_library_init ();
27587 if ac_fn_c_try_link "$LINENO"
27589 ac_cv_lib_mesalink_mesalink_library_init=yes
27591 ac_cv_lib_mesalink_mesalink_library_init=no
27593 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27594 conftest$ac_exeext conftest.$ac_ext
27595 LIBS=$ac_check_lib_save_LIBS
27597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
27598 printf "%s\n" "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
27599 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes
27603 printf "%s\n" "#define USE_MESALINK 1" >>confdefs.h
27610 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27621 if test "x$USE_MESALINK" != "xyes"; then
27622 addld=-L$OPT_MESALINK/lib$libsuff
27623 addcflags=-I$OPT_MESALINK/include
27624 mesalinklib=$OPT_MESALINK/lib$libsuff
27626 LDFLAGS="$LDFLAGS $addld"
27627 if test "$addcflags" != "-I/usr/include"; then
27628 CPPFLAGS="$CPPFLAGS $addcflags"
27631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
27632 printf %s "checking for mesalink_library_init in -lmesalink... " >&6; }
27633 if test ${ac_cv_lib_mesalink_mesalink_library_init+y}
27635 printf %s "(cached) " >&6
27637 ac_check_lib_save_LIBS=$LIBS
27638 LIBS="-lmesalink $LIBS"
27639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27640 /* end confdefs.h. */
27646 char mesalink_library_init ();
27649 return mesalink_library_init ();
27654 if ac_fn_c_try_link "$LINENO"
27656 ac_cv_lib_mesalink_mesalink_library_init=yes
27658 ac_cv_lib_mesalink_mesalink_library_init=no
27660 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27661 conftest$ac_exeext conftest.$ac_ext
27662 LIBS=$ac_check_lib_save_LIBS
27664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
27665 printf "%s\n" "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
27666 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes
27670 printf "%s\n" "#define USE_MESALINK 1" >>confdefs.h
27677 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27681 CPPFLAGS=$_cppflags
27688 if test "x$USE_MESALINK" = "xyes"; then
27689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
27690 printf "%s\n" "$as_me: detected MesaLink" >&6;}
27692 LIBS="-lmesalink $LIBS"
27694 if test -n "$mesalinklib"; then
27695 if test "x$cross_compiling" != "xyes"; then
27696 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
27697 export LD_LIBRARY_PATH
27698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
27699 printf "%s\n" "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
27705 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27710 if test "x$OPT_BEARSSL" != xno; then
27711 _cppflags=$CPPFLAGS
27715 if test X"$OPT_BEARSSL" != Xno; then
27717 if test "$OPT_BEARSSL" = "yes"; then
27721 if test -z "$OPT_BEARSSL" ; then
27723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27724 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27725 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27727 printf %s "(cached) " >&6
27729 ac_check_lib_save_LIBS=$LIBS
27730 LIBS="-lbearssl -lbearssl $LIBS"
27731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27732 /* end confdefs.h. */
27738 char br_ssl_client_init_full ();
27741 return br_ssl_client_init_full ();
27746 if ac_fn_c_try_link "$LINENO"
27748 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27750 ac_cv_lib_bearssl_br_ssl_client_init_full=no
27752 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27753 conftest$ac_exeext conftest.$ac_ext
27754 LIBS=$ac_check_lib_save_LIBS
27756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27757 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27758 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27762 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27769 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27780 if test "x$USE_BEARSSL" != "xyes"; then
27781 addld=-L$OPT_BEARSSL/lib$libsuff
27782 addcflags=-I$OPT_BEARSSL/include
27783 bearssllib=$OPT_BEARSSL/lib$libsuff
27785 LDFLAGS="$LDFLAGS $addld"
27786 if test "$addcflags" != "-I/usr/include"; then
27787 CPPFLAGS="$CPPFLAGS $addcflags"
27790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27791 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27792 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27794 printf %s "(cached) " >&6
27796 ac_check_lib_save_LIBS=$LIBS
27797 LIBS="-lbearssl -lbearssl $LIBS"
27798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27799 /* end confdefs.h. */
27805 char br_ssl_client_init_full ();
27808 return br_ssl_client_init_full ();
27813 if ac_fn_c_try_link "$LINENO"
27815 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27817 ac_cv_lib_bearssl_br_ssl_client_init_full=no
27819 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27820 conftest$ac_exeext conftest.$ac_ext
27821 LIBS=$ac_check_lib_save_LIBS
27823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27824 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27825 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27829 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27836 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27840 CPPFLAGS=$_cppflags
27847 if test "x$USE_BEARSSL" = "xyes"; then
27848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
27849 printf "%s\n" "$as_me: detected BearSSL" >&6;}
27850 check_for_ca_bundle=1
27852 LIBS="-lbearssl $LIBS"
27854 if test -n "$bearssllib"; then
27855 if test "x$cross_compiling" != "xyes"; then
27856 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
27857 export CURL_LIBRARY_PATH
27858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
27859 printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
27865 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27870 if test "x$OPT_RUSTLS" != xno; then
27871 _cppflags=$CPPFLAGS
27875 if test X"$OPT_RUSTLS" != Xno; then
27877 if test "$OPT_RUSTLS" = "yes"; then
27881 if test -z "$OPT_RUSTLS" ; then
27883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
27884 printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
27885 if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
27887 printf %s "(cached) " >&6
27889 ac_check_lib_save_LIBS=$LIBS
27890 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27892 /* end confdefs.h. */
27898 char rustls_client_session_read ();
27901 return rustls_client_session_read ();
27906 if ac_fn_c_try_link "$LINENO"
27908 ac_cv_lib_rustls_rustls_client_session_read=yes
27910 ac_cv_lib_rustls_rustls_client_session_read=no
27912 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27913 conftest$ac_exeext conftest.$ac_ext
27914 LIBS=$ac_check_lib_save_LIBS
27916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
27917 printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
27918 if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
27922 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27929 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27935 if test "x$USE_RUSTLS" != "xyes"; then
27936 addld=-L$OPT_RUSTLS/lib$libsuff
27937 addcflags=-I$OPT_RUSTLS/include
27938 rustlslib=$OPT_RUSTLS/lib$libsuff
27940 LDFLAGS="$LDFLAGS $addld"
27941 if test "$addcflags" != "-I/usr/include"; then
27942 CPPFLAGS="$CPPFLAGS $addcflags"
27945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
27946 printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
27947 if test ${ac_cv_lib_rustls_rustls_connection_read+y}
27949 printf %s "(cached) " >&6
27951 ac_check_lib_save_LIBS=$LIBS
27952 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27954 /* end confdefs.h. */
27960 char rustls_connection_read ();
27963 return rustls_connection_read ();
27968 if ac_fn_c_try_link "$LINENO"
27970 ac_cv_lib_rustls_rustls_connection_read=yes
27972 ac_cv_lib_rustls_rustls_connection_read=no
27974 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27975 conftest$ac_exeext conftest.$ac_ext
27976 LIBS=$ac_check_lib_save_LIBS
27978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
27979 printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
27980 if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
27984 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27991 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27994 as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
27999 if test "x$USE_RUSTLS" = "xyes"; then
28000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
28001 printf "%s\n" "$as_me: detected rustls" >&6;}
28002 check_for_ca_bundle=1
28004 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
28006 if test -n "$rustlslib"; then
28007 if test "x$cross_compiling" != "xyes"; then
28008 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
28009 export CURL_LIBRARY_PATH
28010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
28011 printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
28017 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28021 if test "x$OPT_NSS" != xno; then
28024 if test X"$OPT_NSS" != Xno; then
28032 if test "x$OPT_NSS" = "xyes"; then
28035 if test -n "$PKG_CONFIG"; then
28036 PKGCONFIG="$PKG_CONFIG"
28038 if test -n "$ac_tool_prefix"; then
28039 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28040 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28042 printf %s "checking for $ac_word... " >&6; }
28043 if test ${ac_cv_path_PKGCONFIG+y}
28045 printf %s "(cached) " >&6
28049 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28053 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28054 for as_dir in $as_dummy
28057 case $as_dir in #(((
28060 *) as_dir=$as_dir/ ;;
28062 for ac_exec_ext in '' $ac_executable_extensions; do
28063 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28064 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28065 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28075 PKGCONFIG=$ac_cv_path_PKGCONFIG
28076 if test -n "$PKGCONFIG"; then
28077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28078 printf "%s\n" "$PKGCONFIG" >&6; }
28080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28081 printf "%s\n" "no" >&6; }
28086 if test -z "$ac_cv_path_PKGCONFIG"; then
28087 ac_pt_PKGCONFIG=$PKGCONFIG
28088 # Extract the first word of "pkg-config", so it can be a program name with args.
28089 set dummy pkg-config; ac_word=$2
28090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28091 printf %s "checking for $ac_word... " >&6; }
28092 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28094 printf %s "(cached) " >&6
28096 case $ac_pt_PKGCONFIG in
28098 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28102 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28103 for as_dir in $as_dummy
28106 case $as_dir in #(((
28109 *) as_dir=$as_dir/ ;;
28111 for ac_exec_ext in '' $ac_executable_extensions; do
28112 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28113 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28114 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28124 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28125 if test -n "$ac_pt_PKGCONFIG"; then
28126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28127 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28130 printf "%s\n" "no" >&6; }
28133 if test "x$ac_pt_PKGCONFIG" = x; then
28136 case $cross_compiling:$ac_tool_warned in
28138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28139 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28140 ac_tool_warned=yes ;;
28142 PKGCONFIG=$ac_pt_PKGCONFIG
28145 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28150 if test "x$PKGCONFIG" != "xno"; then
28151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28152 printf %s "checking for nss options with pkg-config... " >&6; }
28154 if test -n ""; then
28155 PKG_CONFIG_LIBDIR=""
28156 export PKG_CONFIG_LIBDIR
28158 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28160 if test -z "$itexists"; then
28162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28163 printf "%s\n" "no" >&6; }
28165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28166 printf "%s\n" "found" >&6; }
28171 if test "$PKGCONFIG" != "no" ; then
28172 addlib=`$PKGCONFIG --libs nss`
28173 addcflags=`$PKGCONFIG --cflags nss`
28174 version=`$PKGCONFIG --modversion nss`
28175 nssprefix=`$PKGCONFIG --variable=prefix nss`
28178 check=`nss-config --version 2>/dev/null`
28179 if test -n "$check"; then
28180 addlib=`nss-config --libs`
28181 addcflags=`nss-config --cflags`
28182 version=`nss-config --version`
28183 nssprefix=`nss-config --prefix`
28191 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
28192 if test -f "$NSS_PCDIR/nss.pc"; then
28194 if test -n "$PKG_CONFIG"; then
28195 PKGCONFIG="$PKG_CONFIG"
28197 if test -n "$ac_tool_prefix"; then
28198 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28199 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28201 printf %s "checking for $ac_word... " >&6; }
28202 if test ${ac_cv_path_PKGCONFIG+y}
28204 printf %s "(cached) " >&6
28208 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28212 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28213 for as_dir in $as_dummy
28216 case $as_dir in #(((
28219 *) as_dir=$as_dir/ ;;
28221 for ac_exec_ext in '' $ac_executable_extensions; do
28222 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28223 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28224 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28234 PKGCONFIG=$ac_cv_path_PKGCONFIG
28235 if test -n "$PKGCONFIG"; then
28236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28237 printf "%s\n" "$PKGCONFIG" >&6; }
28239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28240 printf "%s\n" "no" >&6; }
28245 if test -z "$ac_cv_path_PKGCONFIG"; then
28246 ac_pt_PKGCONFIG=$PKGCONFIG
28247 # Extract the first word of "pkg-config", so it can be a program name with args.
28248 set dummy pkg-config; ac_word=$2
28249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28250 printf %s "checking for $ac_word... " >&6; }
28251 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28253 printf %s "(cached) " >&6
28255 case $ac_pt_PKGCONFIG in
28257 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28261 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28262 for as_dir in $as_dummy
28265 case $as_dir in #(((
28268 *) as_dir=$as_dir/ ;;
28270 for ac_exec_ext in '' $ac_executable_extensions; do
28271 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28272 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28273 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28283 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28284 if test -n "$ac_pt_PKGCONFIG"; then
28285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28286 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28289 printf "%s\n" "no" >&6; }
28292 if test "x$ac_pt_PKGCONFIG" = x; then
28295 case $cross_compiling:$ac_tool_warned in
28297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28298 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28299 ac_tool_warned=yes ;;
28301 PKGCONFIG=$ac_pt_PKGCONFIG
28304 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28309 if test "x$PKGCONFIG" != "xno"; then
28310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28311 printf %s "checking for nss options with pkg-config... " >&6; }
28313 if test -n "$NSS_PCDIR"; then
28314 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28315 export PKG_CONFIG_LIBDIR
28317 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28319 if test -z "$itexists"; then
28321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28322 printf "%s\n" "no" >&6; }
28324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28325 printf "%s\n" "found" >&6; }
28329 if test "$PKGCONFIG" != "no" ; then
28331 if test -n "$NSS_PCDIR"; then
28332 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28333 export PKG_CONFIG_LIBDIR
28335 $PKGCONFIG --libs-only-L nss`
28337 if test -n "$NSS_PCDIR"; then
28338 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28339 export PKG_CONFIG_LIBDIR
28341 $PKGCONFIG --libs-only-l nss`
28343 if test -n "$NSS_PCDIR"; then
28344 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28345 export PKG_CONFIG_LIBDIR
28347 $PKGCONFIG --cflags nss`
28349 if test -n "$NSS_PCDIR"; then
28350 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28351 export PKG_CONFIG_LIBDIR
28353 $PKGCONFIG --modversion nss`
28355 if test -n "$NSS_PCDIR"; then
28356 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28357 export PKG_CONFIG_LIBDIR
28359 $PKGCONFIG --variable=prefix nss`
28364 if test -z "$addlib"; then
28365 # Without pkg-config, we'll kludge in some defaults
28366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
28367 printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
28368 addld="-L$OPT_NSS/lib"
28369 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
28370 addcflags="-I$OPT_NSS/include"
28375 CLEANLDFLAGS="$LDFLAGS"
28377 CLEANCPPFLAGS="$CPPFLAGS"
28379 LDFLAGS="$addld $LDFLAGS"
28380 LIBS="$addlib $LIBS"
28381 if test "$addcflags" != "-I/usr/include"; then
28382 CPPFLAGS="$CPPFLAGS $addcflags"
28385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
28386 printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
28387 if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
28389 printf %s "(cached) " >&6
28391 ac_check_lib_save_LIBS=$LIBS
28392 LIBS="-lnss3 $LIBS"
28393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28394 /* end confdefs.h. */
28400 char SSL_VersionRangeSet ();
28403 return SSL_VersionRangeSet ();
28408 if ac_fn_c_try_link "$LINENO"
28410 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
28412 ac_cv_lib_nss3_SSL_VersionRangeSet=no
28414 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28415 conftest$ac_exeext conftest.$ac_ext
28416 LIBS=$ac_check_lib_save_LIBS
28418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
28419 printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
28420 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
28424 printf "%s\n" "#define USE_NSS 1" >>confdefs.h
28431 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28435 LDFLAGS="$CLEANLDFLAGS"
28437 CPPFLAGS="$CLEANCPPFLAGS"
28442 if test "x$USE_NSS" = "xyes"; then
28443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
28444 printf "%s\n" "$as_me: detected NSS version $version" >&6;}
28446 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
28447 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
28451 printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
28460 if test "x$cross_compiling" != "xyes"; then
28461 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
28462 export CURL_LIBRARY_PATH
28463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
28464 printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
28469 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28474 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28475 LIBS="-ladvapi32 -lcrypt32 $LIBS"
28478 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED$RUSTLS_ENABLED"
28481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
28482 printf "%s\n" "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
28483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl, --with-bearssl or --with-rustls to address this." >&5
28484 printf "%s\n" "$as_me: WARNING: Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl, --with-bearssl or --with-rustls to address this." >&2;}
28487 # one SSL backend is enabled
28490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28491 printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28494 # more than one SSL backend is enabled
28498 CURL_WITH_MULTI_SSL="1"
28500 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28503 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28507 if test -n "$ssl_backends"; then
28508 curl_ssl_msg="enabled ($ssl_backends)"
28511 if test no = "$VALID_DEFAULT_SSL_BACKEND"
28513 if test -n "$SSL_ENABLED"
28515 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28517 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28519 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28522 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28527 if test -n "$check_for_ca_bundle"; then
28530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28531 printf %s "checking default CA cert bundle/path... " >&6; }
28534 # Check whether --with-ca-bundle was given.
28535 if test ${with_ca_bundle+y}
28537 withval=$with_ca_bundle;
28539 if test "x$want_ca" = "xyes"; then
28540 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28548 # Check whether --with-ca-path was given.
28549 if test ${with_ca_path+y}
28551 withval=$with_ca_path;
28552 want_capath="$withval"
28553 if test "x$want_capath" = "xyes"; then
28554 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28558 want_capath="unset"
28562 ca_warning=" (warning: certs not found)"
28563 capath_warning=" (warning: certs not found)"
28566 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28567 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28569 capath="$want_capath"
28570 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28573 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28574 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
28575 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
28577 capath="$want_capath"
28582 if test "x$cross_compiling" != "xyes"; then
28583 if test "x$want_ca" = "xunset"; then
28584 if test "x$prefix" != xNONE; then
28585 cac="${prefix}/share/curl/curl-ca-bundle.crt"
28587 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28590 for a in /etc/ssl/certs/ca-certificates.crt \
28591 /etc/pki/tls/certs/ca-bundle.crt \
28592 /usr/share/ssl/certs/ca-bundle.crt \
28593 /usr/local/share/certs/ca-root-nss.crt \
28594 /etc/ssl/cert.pem \
28596 if test -f "$a"; then
28602 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
28603 "x$OPENSSL_ENABLED" = "x1"; then
28604 check_capath="/etc/ssl/certs/"
28607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28608 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28612 if test "x$ca" = "xno" || test -f "$ca"; then
28616 if test "x$capath" != "xno"; then
28617 check_capath="$capath"
28620 if test ! -z "$check_capath"; then
28621 for a in "$check_capath"; do
28622 if test -d "$a" && ls "$a"/[0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f][0-9a-f].0 >/dev/null 2>/dev/null; then
28623 if test "x$capath" = "xno"; then
28632 if test "x$capath" = "xno"; then
28636 if test "x$ca" != "xno"; then
28637 CURL_CA_BUNDLE='"'$ca'"'
28639 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28643 printf "%s\n" "$ca" >&6; }
28645 if test "x$capath" != "xno"; then
28646 CURL_CA_PATH="\"$capath\""
28648 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28651 printf "%s\n" "$capath (capath)" >&6; }
28653 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28655 printf "%s\n" "no" >&6; }
28658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28659 printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28661 # Check whether --with-ca-fallback was given.
28662 if test ${with_ca_fallback+y}
28664 withval=$with_ca_fallback;
28665 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28666 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28670 with_ca_fallback="no"
28673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28674 printf "%s\n" "$with_ca_fallback" >&6; }
28675 if test "x$with_ca_fallback" = "xyes"; then
28676 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28677 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28680 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28688 # Check whether --with-libpsl was given.
28689 if test ${with_libpsl+y}
28691 withval=$with_libpsl; with_libpsl=$withval
28696 if test $with_libpsl != "no"; then
28697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28698 printf %s "checking for library containing psl_builtin... " >&6; }
28699 if test ${ac_cv_search_psl_builtin+y}
28701 printf %s "(cached) " >&6
28703 ac_func_search_save_LIBS=$LIBS
28704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28705 /* end confdefs.h. */
28711 char psl_builtin ();
28714 return psl_builtin ();
28719 for ac_lib in '' psl
28721 if test -z "$ac_lib"; then
28722 ac_res="none required"
28725 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28727 if ac_fn_c_try_link "$LINENO"
28729 ac_cv_search_psl_builtin=$ac_res
28731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28733 if test ${ac_cv_search_psl_builtin+y}
28738 if test ${ac_cv_search_psl_builtin+y}
28742 ac_cv_search_psl_builtin=no
28744 rm conftest.$ac_ext
28745 LIBS=$ac_func_search_save_LIBS
28747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28748 printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28749 ac_res=$ac_cv_search_psl_builtin
28750 if test "$ac_res" != no
28752 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28753 curl_psl_msg="enabled";
28755 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28759 curl_psl_msg="no (libpsl not found)";
28760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
28761 printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
28767 if test "$curl_psl_msg" = "enabled"; then
28769 USE_LIBPSL_FALSE='#'
28771 USE_LIBPSL_TRUE='#'
28779 # Check whether --with-libgsasl was given.
28780 if test ${with_libgsasl+y}
28782 withval=$with_libgsasl; with_libgsasl=$withval
28787 if test $with_libgsasl != "no"; then
28788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28789 printf %s "checking for library containing gsasl_init... " >&6; }
28790 if test ${ac_cv_search_gsasl_init+y}
28792 printf %s "(cached) " >&6
28794 ac_func_search_save_LIBS=$LIBS
28795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28796 /* end confdefs.h. */
28802 char gsasl_init ();
28805 return gsasl_init ();
28810 for ac_lib in '' gsasl
28812 if test -z "$ac_lib"; then
28813 ac_res="none required"
28816 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28818 if ac_fn_c_try_link "$LINENO"
28820 ac_cv_search_gsasl_init=$ac_res
28822 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28824 if test ${ac_cv_search_gsasl_init+y}
28829 if test ${ac_cv_search_gsasl_init+y}
28833 ac_cv_search_gsasl_init=no
28835 rm conftest.$ac_ext
28836 LIBS=$ac_func_search_save_LIBS
28838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28839 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28840 ac_res=$ac_cv_search_gsasl_init
28841 if test "$ac_res" != no
28843 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28844 curl_gsasl_msg="enabled";
28846 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28850 curl_gsasl_msg="no (libgsasl not found)";
28851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28852 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28858 if test "$curl_gsasl_msg" = "enabled"; then
28860 USE_GSASL_FALSE='#'
28868 # Check whether --with-libmetalink was given.
28869 if test ${with_libmetalink+y}
28871 withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
28878 # Check whether --with-libssh2 was given.
28879 if test ${with_libssh2+y}
28881 withval=$with_libssh2; OPT_LIBSSH2=$withval
28890 # Check whether --with-libssh was given.
28891 if test ${with_libssh+y}
28893 withval=$with_libssh; OPT_LIBSSH=$withval
28901 # Check whether --with-wolfssh was given.
28902 if test ${with_wolfssh+y}
28904 withval=$with_wolfssh; OPT_WOLFSSH=$withval
28910 if test X"$OPT_LIBSSH2" != Xno; then
28911 CLEANLDFLAGS="$LDFLAGS"
28912 CLEANCPPFLAGS="$CPPFLAGS"
28915 case "$OPT_LIBSSH2" in
28918 if test -n "$PKG_CONFIG"; then
28919 PKGCONFIG="$PKG_CONFIG"
28921 if test -n "$ac_tool_prefix"; then
28922 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28923 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28925 printf %s "checking for $ac_word... " >&6; }
28926 if test ${ac_cv_path_PKGCONFIG+y}
28928 printf %s "(cached) " >&6
28932 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28936 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28937 for as_dir in $as_dummy
28940 case $as_dir in #(((
28943 *) as_dir=$as_dir/ ;;
28945 for ac_exec_ext in '' $ac_executable_extensions; do
28946 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28947 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28948 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28958 PKGCONFIG=$ac_cv_path_PKGCONFIG
28959 if test -n "$PKGCONFIG"; then
28960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28961 printf "%s\n" "$PKGCONFIG" >&6; }
28963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28964 printf "%s\n" "no" >&6; }
28969 if test -z "$ac_cv_path_PKGCONFIG"; then
28970 ac_pt_PKGCONFIG=$PKGCONFIG
28971 # Extract the first word of "pkg-config", so it can be a program name with args.
28972 set dummy pkg-config; ac_word=$2
28973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28974 printf %s "checking for $ac_word... " >&6; }
28975 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28977 printf %s "(cached) " >&6
28979 case $ac_pt_PKGCONFIG in
28981 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28985 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28986 for as_dir in $as_dummy
28989 case $as_dir in #(((
28992 *) as_dir=$as_dir/ ;;
28994 for ac_exec_ext in '' $ac_executable_extensions; do
28995 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28996 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28997 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29007 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29008 if test -n "$ac_pt_PKGCONFIG"; then
29009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29010 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29013 printf "%s\n" "no" >&6; }
29016 if test "x$ac_pt_PKGCONFIG" = x; then
29019 case $cross_compiling:$ac_tool_warned in
29021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29022 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29023 ac_tool_warned=yes ;;
29025 PKGCONFIG=$ac_pt_PKGCONFIG
29028 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29033 if test "x$PKGCONFIG" != "xno"; then
29034 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
29035 printf %s "checking for libssh2 options with pkg-config... " >&6; }
29037 if test -n ""; then
29038 PKG_CONFIG_LIBDIR=""
29039 export PKG_CONFIG_LIBDIR
29041 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
29043 if test -z "$itexists"; then
29045 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29046 printf "%s\n" "no" >&6; }
29048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29049 printf "%s\n" "found" >&6; }
29054 if test "$PKGCONFIG" != "no" ; then
29055 LIB_SSH2=`$PKGCONFIG --libs libssh2`
29056 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
29057 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
29058 version=`$PKGCONFIG --modversion libssh2`
29059 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
29066 PREFIX_SSH2=$OPT_LIBSSH2
29070 if test -n "$PREFIX_SSH2"; then
29072 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
29073 CPP_SSH2=-I${PREFIX_SSH2}/include
29074 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
29077 LDFLAGS="$LDFLAGS $LD_SSH2"
29078 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
29079 LIBS="$LIB_SSH2 $LIBS"
29081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
29082 printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
29083 if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
29085 printf %s "(cached) " >&6
29087 ac_check_lib_save_LIBS=$LIBS
29088 LIBS="-lssh2 $LIBS"
29089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29090 /* end confdefs.h. */
29096 char libssh2_session_block_directions ();
29099 return libssh2_session_block_directions ();
29104 if ac_fn_c_try_link "$LINENO"
29106 ac_cv_lib_ssh2_libssh2_session_block_directions=yes
29108 ac_cv_lib_ssh2_libssh2_session_block_directions=no
29110 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29111 conftest$ac_exeext conftest.$ac_ext
29112 LIBS=$ac_check_lib_save_LIBS
29114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
29115 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
29116 if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
29118 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
29120 LIBS="-lssh2 $LIBS"
29125 for ac_header in libssh2.h
29127 ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
29128 if test "x$ac_cv_header_libssh2_h" = xyes
29130 printf "%s\n" "#define HAVE_LIBSSH2_H 1" >>confdefs.h
29131 curl_ssh_msg="enabled (libSSH2)"
29134 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
29143 if test X"$OPT_LIBSSH2" != Xoff &&
29144 test "$LIBSSH2_ENABLED" != "1"; then
29145 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
29148 if test "$LIBSSH2_ENABLED" = "1"; then
29149 if test -n "$DIR_SSH2"; then
29151 if test "x$cross_compiling" != "xyes"; then
29152 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
29153 export CURL_LIBRARY_PATH
29154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
29155 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
29159 LDFLAGS=$CLEANLDFLAGS
29160 CPPFLAGS=$CLEANCPPFLAGS
29163 elif test X"$OPT_LIBSSH" != Xno; then
29164 CLEANLDFLAGS="$LDFLAGS"
29165 CLEANCPPFLAGS="$CPPFLAGS"
29168 case "$OPT_LIBSSH" in
29171 if test -n "$PKG_CONFIG"; then
29172 PKGCONFIG="$PKG_CONFIG"
29174 if test -n "$ac_tool_prefix"; then
29175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29178 printf %s "checking for $ac_word... " >&6; }
29179 if test ${ac_cv_path_PKGCONFIG+y}
29181 printf %s "(cached) " >&6
29185 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29189 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29190 for as_dir in $as_dummy
29193 case $as_dir in #(((
29196 *) as_dir=$as_dir/ ;;
29198 for ac_exec_ext in '' $ac_executable_extensions; do
29199 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29200 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29201 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29211 PKGCONFIG=$ac_cv_path_PKGCONFIG
29212 if test -n "$PKGCONFIG"; then
29213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29214 printf "%s\n" "$PKGCONFIG" >&6; }
29216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29217 printf "%s\n" "no" >&6; }
29222 if test -z "$ac_cv_path_PKGCONFIG"; then
29223 ac_pt_PKGCONFIG=$PKGCONFIG
29224 # Extract the first word of "pkg-config", so it can be a program name with args.
29225 set dummy pkg-config; ac_word=$2
29226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29227 printf %s "checking for $ac_word... " >&6; }
29228 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29230 printf %s "(cached) " >&6
29232 case $ac_pt_PKGCONFIG in
29234 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29238 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29239 for as_dir in $as_dummy
29242 case $as_dir in #(((
29245 *) as_dir=$as_dir/ ;;
29247 for ac_exec_ext in '' $ac_executable_extensions; do
29248 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29249 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29250 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29260 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29261 if test -n "$ac_pt_PKGCONFIG"; then
29262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29263 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29266 printf "%s\n" "no" >&6; }
29269 if test "x$ac_pt_PKGCONFIG" = x; then
29272 case $cross_compiling:$ac_tool_warned in
29274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29275 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29276 ac_tool_warned=yes ;;
29278 PKGCONFIG=$ac_pt_PKGCONFIG
29281 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29286 if test "x$PKGCONFIG" != "xno"; then
29287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29288 printf %s "checking for libssh options with pkg-config... " >&6; }
29290 if test -n ""; then
29291 PKG_CONFIG_LIBDIR=""
29292 export PKG_CONFIG_LIBDIR
29294 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29296 if test -z "$itexists"; then
29298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29299 printf "%s\n" "no" >&6; }
29301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29302 printf "%s\n" "found" >&6; }
29307 if test "$PKGCONFIG" != "no" ; then
29308 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29309 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29310 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29311 version=`$PKGCONFIG --modversion libssh`
29312 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29319 PREFIX_SSH=$OPT_LIBSSH
29323 if test -n "$PREFIX_SSH"; then
29325 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29326 CPP_SSH=-I${PREFIX_SSH}/include
29327 DIR_SSH=${PREFIX_SSH}/lib$libsuff
29330 LDFLAGS="$LDFLAGS $LD_SSH"
29331 CPPFLAGS="$CPPFLAGS $CPP_SSH"
29332 LIBS="$LIB_SSH $LIBS"
29334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29335 printf %s "checking for ssh_new in -lssh... " >&6; }
29336 if test ${ac_cv_lib_ssh_ssh_new+y}
29338 printf %s "(cached) " >&6
29340 ac_check_lib_save_LIBS=$LIBS
29342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29343 /* end confdefs.h. */
29357 if ac_fn_c_try_link "$LINENO"
29359 ac_cv_lib_ssh_ssh_new=yes
29361 ac_cv_lib_ssh_ssh_new=no
29363 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29364 conftest$ac_exeext conftest.$ac_ext
29365 LIBS=$ac_check_lib_save_LIBS
29367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29368 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29369 if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29371 printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29378 for ac_header in libssh/libssh.h
29380 ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29381 if test "x$ac_cv_header_libssh_libssh_h" = xyes
29383 printf "%s\n" "#define HAVE_LIBSSH_LIBSSH_H 1" >>confdefs.h
29384 curl_ssh_msg="enabled (libSSH)"
29387 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29396 if test X"$OPT_LIBSSH" != Xoff &&
29397 test "$LIBSSH_ENABLED" != "1"; then
29398 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29401 if test "$LIBSSH_ENABLED" = "1"; then
29402 if test -n "$DIR_SSH"; then
29404 if test "x$cross_compiling" != "xyes"; then
29405 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29406 export CURL_LIBRARY_PATH
29407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29408 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29412 LDFLAGS=$CLEANLDFLAGS
29413 CPPFLAGS=$CLEANCPPFLAGS
29416 elif test X"$OPT_WOLFSSH" != Xno; then
29417 CLEANLDFLAGS="$LDFLAGS"
29418 CLEANCPPFLAGS="$CPPFLAGS"
29422 if test "$OPT_WOLFSSH" != yes; then
29423 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29424 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29425 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29429 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29430 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29432 printf %s "(cached) " >&6
29434 ac_check_lib_save_LIBS=$LIBS
29435 LIBS="-lwolfssh $LIBS"
29436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29437 /* end confdefs.h. */
29443 char wolfSSH_Init ();
29446 return wolfSSH_Init ();
29451 if ac_fn_c_try_link "$LINENO"
29453 ac_cv_lib_wolfssh_wolfSSH_Init=yes
29455 ac_cv_lib_wolfssh_wolfSSH_Init=no
29457 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29458 conftest$ac_exeext conftest.$ac_ext
29459 LIBS=$ac_check_lib_save_LIBS
29461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29462 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29463 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29465 printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29467 LIBS="-lwolfssh $LIBS"
29472 for ac_header in wolfssh/ssh.h
29474 ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29475 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29477 printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29478 curl_ssh_msg="enabled (wolfSSH)"
29481 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29495 # Check whether --with-librtmp was given.
29496 if test ${with_librtmp+y}
29498 withval=$with_librtmp; OPT_LIBRTMP=$withval
29502 if test X"$OPT_LIBRTMP" != Xno; then
29503 CLEANLDFLAGS="$LDFLAGS"
29504 CLEANCPPFLAGS="$CPPFLAGS"
29507 case "$OPT_LIBRTMP" in
29510 if test -n "$PKG_CONFIG"; then
29511 PKGCONFIG="$PKG_CONFIG"
29513 if test -n "$ac_tool_prefix"; then
29514 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29515 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29517 printf %s "checking for $ac_word... " >&6; }
29518 if test ${ac_cv_path_PKGCONFIG+y}
29520 printf %s "(cached) " >&6
29524 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29528 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29529 for as_dir in $as_dummy
29532 case $as_dir in #(((
29535 *) as_dir=$as_dir/ ;;
29537 for ac_exec_ext in '' $ac_executable_extensions; do
29538 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29539 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29540 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29550 PKGCONFIG=$ac_cv_path_PKGCONFIG
29551 if test -n "$PKGCONFIG"; then
29552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29553 printf "%s\n" "$PKGCONFIG" >&6; }
29555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29556 printf "%s\n" "no" >&6; }
29561 if test -z "$ac_cv_path_PKGCONFIG"; then
29562 ac_pt_PKGCONFIG=$PKGCONFIG
29563 # Extract the first word of "pkg-config", so it can be a program name with args.
29564 set dummy pkg-config; ac_word=$2
29565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29566 printf %s "checking for $ac_word... " >&6; }
29567 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29569 printf %s "(cached) " >&6
29571 case $ac_pt_PKGCONFIG in
29573 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29577 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29578 for as_dir in $as_dummy
29581 case $as_dir in #(((
29584 *) as_dir=$as_dir/ ;;
29586 for ac_exec_ext in '' $ac_executable_extensions; do
29587 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29588 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29589 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29599 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29600 if test -n "$ac_pt_PKGCONFIG"; then
29601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29602 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29605 printf "%s\n" "no" >&6; }
29608 if test "x$ac_pt_PKGCONFIG" = x; then
29611 case $cross_compiling:$ac_tool_warned in
29613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29614 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29615 ac_tool_warned=yes ;;
29617 PKGCONFIG=$ac_pt_PKGCONFIG
29620 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29625 if test "x$PKGCONFIG" != "xno"; then
29626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29627 printf %s "checking for librtmp options with pkg-config... " >&6; }
29629 if test -n ""; then
29630 PKG_CONFIG_LIBDIR=""
29631 export PKG_CONFIG_LIBDIR
29633 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29635 if test -z "$itexists"; then
29637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29638 printf "%s\n" "no" >&6; }
29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29641 printf "%s\n" "found" >&6; }
29646 if test "$PKGCONFIG" != "no" ; then
29647 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29648 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29649 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29650 version=`$PKGCONFIG --modversion librtmp`
29651 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29653 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29662 PREFIX_RTMP=$OPT_LIBRTMP
29666 if test -n "$PREFIX_RTMP"; then
29667 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29668 CPP_RTMP=-I${PREFIX_RTMP}/include
29669 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29672 LDFLAGS="$LDFLAGS $LD_RTMP"
29673 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29674 LIBS="$LIB_RTMP $LIBS"
29676 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29677 printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29678 if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29680 printf %s "(cached) " >&6
29682 ac_check_lib_save_LIBS=$LIBS
29683 LIBS="-lrtmp $LIBS"
29684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29685 /* end confdefs.h. */
29694 return RTMP_Init ();
29699 if ac_fn_c_try_link "$LINENO"
29701 ac_cv_lib_rtmp_RTMP_Init=yes
29703 ac_cv_lib_rtmp_RTMP_Init=no
29705 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29706 conftest$ac_exeext conftest.$ac_ext
29707 LIBS=$ac_check_lib_save_LIBS
29709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29710 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29711 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29714 for ac_header in librtmp/rtmp.h
29716 ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29717 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29719 printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29720 curl_rtmp_msg="enabled (librtmp)"
29723 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29733 LDFLAGS=$CLEANLDFLAGS
29734 CPPFLAGS=$CLEANCPPFLAGS
29740 if test X"$OPT_LIBRTMP" != Xoff &&
29741 test "$LIBRTMP_ENABLED" != "1"; then
29742 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29748 versioned_symbols_flavour=
29749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29750 printf %s "checking whether versioned symbols are wanted... " >&6; }
29751 # Check whether --enable-versioned-symbols was given.
29752 if test ${enable_versioned_symbols+y}
29754 enableval=$enable_versioned_symbols; case "$enableval" in
29755 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29756 printf "%s\n" "yes" >&6; }
29757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29758 printf %s "checking if libraries can be versioned... " >&6; }
29759 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29760 if test -z "$GLD"; then
29761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29762 printf "%s\n" "no" >&6; }
29763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29764 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29767 printf "%s\n" "yes" >&6; }
29768 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29769 versioned_symbols_flavour="MULTISSL_"
29770 elif test "x$OPENSSL_ENABLED" = "x1"; then
29771 versioned_symbols_flavour="OPENSSL_"
29772 elif test "x$GNUTLS_ENABLED" = "x1"; then
29773 versioned_symbols_flavour="GNUTLS_"
29774 elif test "x$NSS_ENABLED" = "x1"; then
29775 versioned_symbols_flavour="NSS_"
29776 elif test "x$WOLFSSL_ENABLED" = "x1"; then
29777 versioned_symbols_flavour="WOLFSSL_"
29778 elif test "x$SCHANNEL_ENABLED" = "x1"; then
29779 versioned_symbols_flavour="SCHANNEL_"
29780 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29781 versioned_symbols_flavour="SECURE_TRANSPORT_"
29783 versioned_symbols_flavour=""
29785 versioned_symbols="yes"
29789 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29790 printf "%s\n" "no" >&6; }
29796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29797 printf "%s\n" "no" >&6; }
29803 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29805 if test "x$versioned_symbols" = 'xyes'; then
29806 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29807 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29809 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29810 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29816 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29817 OPT_WINIDN="default"
29819 # Check whether --with-winidn was given.
29820 if test ${with_winidn+y}
29822 withval=$with_winidn; OPT_WINIDN=$withval
29825 case "$OPT_WINIDN" in
29828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29829 printf "%s\n" "no" >&6; }
29833 want_winidn_path="default"
29834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29835 printf "%s\n" "yes" >&6; }
29839 want_winidn_path="$withval"
29840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29841 printf "%s\n" "yes ($withval)" >&6; }
29845 if test "$want_winidn" = "yes"; then
29846 clean_CFLAGS="$CFLAGS"
29847 clean_CPPFLAGS="$CPPFLAGS"
29848 clean_LDFLAGS="$LDFLAGS"
29850 WINIDN_LIBS="-lnormaliz"
29853 if test "$want_winidn_path" != "default"; then
29854 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29855 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29856 WINIDN_DIR="$want_winidn_path/lib$libsuff"
29859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29860 /* end confdefs.h. */
29863 #include <windows.h>
29868 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29877 if ac_fn_c_try_compile "$LINENO"
29883 CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29884 CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29885 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29886 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29887 WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29890 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29892 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29893 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29894 LIBS="$WINIDN_LIBS $LIBS"
29896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29897 printf %s "checking if IdnToUnicode can be linked... " >&6; }
29898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29899 /* end confdefs.h. */
29902 #include <windows.h>
29907 IdnToUnicode(0, NULL, 0, NULL, 0);
29914 if ac_fn_c_try_link "$LINENO"
29917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29918 printf "%s\n" "yes" >&6; }
29919 tst_links_winidn="yes"
29923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29924 printf "%s\n" "no" >&6; }
29925 tst_links_winidn="no"
29928 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29929 conftest$ac_exeext conftest.$ac_ext
29931 if test "$tst_links_winidn" = "yes"; then
29933 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
29936 printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
29940 curl_idn_msg="enabled (Windows-native)"
29942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29943 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29944 CFLAGS="$clean_CFLAGS"
29945 CPPFLAGS="$clean_CPPFLAGS"
29946 LDFLAGS="$clean_LDFLAGS"
29952 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
29953 printf %s "checking whether to build with libidn2... " >&6; }
29956 # Check whether --with-libidn2 was given.
29957 if test ${with_libidn2+y}
29959 withval=$with_libidn2; OPT_IDN=$withval
29965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29966 printf "%s\n" "no" >&6; }
29970 want_idn_path="default"
29971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
29972 printf "%s\n" "(assumed) yes" >&6; }
29976 want_idn_path="default"
29977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29978 printf "%s\n" "yes" >&6; }
29982 want_idn_path="$withval"
29983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29984 printf "%s\n" "yes ($withval)" >&6; }
29988 if test "$want_idn" = "yes"; then
29989 clean_CPPFLAGS="$CPPFLAGS"
29990 clean_LDFLAGS="$LDFLAGS"
29994 if test "$want_idn_path" != "default"; then
29995 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
29997 if test -n "$PKG_CONFIG"; then
29998 PKGCONFIG="$PKG_CONFIG"
30000 if test -n "$ac_tool_prefix"; then
30001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30004 printf %s "checking for $ac_word... " >&6; }
30005 if test ${ac_cv_path_PKGCONFIG+y}
30007 printf %s "(cached) " >&6
30011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30016 for as_dir in $as_dummy
30019 case $as_dir in #(((
30022 *) as_dir=$as_dir/ ;;
30024 for ac_exec_ext in '' $ac_executable_extensions; do
30025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30026 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30037 PKGCONFIG=$ac_cv_path_PKGCONFIG
30038 if test -n "$PKGCONFIG"; then
30039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30040 printf "%s\n" "$PKGCONFIG" >&6; }
30042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30043 printf "%s\n" "no" >&6; }
30048 if test -z "$ac_cv_path_PKGCONFIG"; then
30049 ac_pt_PKGCONFIG=$PKGCONFIG
30050 # Extract the first word of "pkg-config", so it can be a program name with args.
30051 set dummy pkg-config; ac_word=$2
30052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30053 printf %s "checking for $ac_word... " >&6; }
30054 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30056 printf %s "(cached) " >&6
30058 case $ac_pt_PKGCONFIG in
30060 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30064 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30065 for as_dir in $as_dummy
30068 case $as_dir in #(((
30071 *) as_dir=$as_dir/ ;;
30073 for ac_exec_ext in '' $ac_executable_extensions; do
30074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30075 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30086 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30087 if test -n "$ac_pt_PKGCONFIG"; then
30088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30089 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30092 printf "%s\n" "no" >&6; }
30095 if test "x$ac_pt_PKGCONFIG" = x; then
30098 case $cross_compiling:$ac_tool_warned in
30100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30102 ac_tool_warned=yes ;;
30104 PKGCONFIG=$ac_pt_PKGCONFIG
30107 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30112 if test "x$PKGCONFIG" != "xno"; then
30113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30114 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30116 if test -n "$IDN_PCDIR"; then
30117 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30118 export PKG_CONFIG_LIBDIR
30120 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30122 if test -z "$itexists"; then
30124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30125 printf "%s\n" "no" >&6; }
30127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30128 printf "%s\n" "found" >&6; }
30132 if test "$PKGCONFIG" != "no"; then
30134 if test -n "$IDN_PCDIR"; then
30135 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30136 export PKG_CONFIG_LIBDIR
30138 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30140 if test -n "$IDN_PCDIR"; then
30141 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30142 export PKG_CONFIG_LIBDIR
30144 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30146 if test -n "$IDN_PCDIR"; then
30147 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
30148 export PKG_CONFIG_LIBDIR
30150 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30151 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30154 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
30155 IDN_CPPFLAGS="-I$want_idn_path/include"
30156 IDN_DIR="$want_idn_path/lib$libsuff"
30160 if test -n "$PKG_CONFIG"; then
30161 PKGCONFIG="$PKG_CONFIG"
30163 if test -n "$ac_tool_prefix"; then
30164 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30165 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30167 printf %s "checking for $ac_word... " >&6; }
30168 if test ${ac_cv_path_PKGCONFIG+y}
30170 printf %s "(cached) " >&6
30174 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30178 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30179 for as_dir in $as_dummy
30182 case $as_dir in #(((
30185 *) as_dir=$as_dir/ ;;
30187 for ac_exec_ext in '' $ac_executable_extensions; do
30188 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30189 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30190 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30200 PKGCONFIG=$ac_cv_path_PKGCONFIG
30201 if test -n "$PKGCONFIG"; then
30202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30203 printf "%s\n" "$PKGCONFIG" >&6; }
30205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30206 printf "%s\n" "no" >&6; }
30211 if test -z "$ac_cv_path_PKGCONFIG"; then
30212 ac_pt_PKGCONFIG=$PKGCONFIG
30213 # Extract the first word of "pkg-config", so it can be a program name with args.
30214 set dummy pkg-config; ac_word=$2
30215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30216 printf %s "checking for $ac_word... " >&6; }
30217 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30219 printf %s "(cached) " >&6
30221 case $ac_pt_PKGCONFIG in
30223 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30227 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30228 for as_dir in $as_dummy
30231 case $as_dir in #(((
30234 *) as_dir=$as_dir/ ;;
30236 for ac_exec_ext in '' $ac_executable_extensions; do
30237 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30238 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30239 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30249 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30250 if test -n "$ac_pt_PKGCONFIG"; then
30251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30252 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30255 printf "%s\n" "no" >&6; }
30258 if test "x$ac_pt_PKGCONFIG" = x; then
30261 case $cross_compiling:$ac_tool_warned in
30263 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30264 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30265 ac_tool_warned=yes ;;
30267 PKGCONFIG=$ac_pt_PKGCONFIG
30270 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30275 if test "x$PKGCONFIG" != "xno"; then
30276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30277 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30279 if test -n ""; then
30280 PKG_CONFIG_LIBDIR=""
30281 export PKG_CONFIG_LIBDIR
30283 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30285 if test -z "$itexists"; then
30287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30288 printf "%s\n" "no" >&6; }
30290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30291 printf "%s\n" "found" >&6; }
30295 if test "$PKGCONFIG" != "no"; then
30296 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30297 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30298 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30299 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30305 if test "$PKGCONFIG" != "no"; then
30306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30307 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30309 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30311 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30313 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30316 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30318 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30320 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30322 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30325 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30326 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30327 LIBS="$IDN_LIBS $LIBS"
30329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30330 printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30332 /* end confdefs.h. */
30335 #define idn2_lookup_ul innocuous_idn2_lookup_ul
30337 # include <limits.h>
30339 # include <assert.h>
30341 #undef idn2_lookup_ul
30345 char idn2_lookup_ul ();
30346 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30352 return idn2_lookup_ul ();
30358 if ac_fn_c_try_link "$LINENO"
30361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30362 printf "%s\n" "yes" >&6; }
30363 tst_links_libidn="yes"
30367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30368 printf "%s\n" "no" >&6; }
30369 tst_links_libidn="no"
30372 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30373 conftest$ac_exeext conftest.$ac_ext
30375 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30376 if test "x$ac_cv_header_idn2_h" = xyes
30378 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30383 if test "$tst_links_libidn" = "yes"; then
30385 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30390 curl_idn_msg="enabled (libidn2)"
30391 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30392 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30393 export CURL_LIBRARY_PATH
30394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30395 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30399 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30400 CPPFLAGS="$clean_CPPFLAGS"
30401 LDFLAGS="$clean_LDFLAGS"
30409 if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30410 # without HTTP or with Hyper, nghttp2 is no use
30415 # Check whether --with-nghttp2 was given.
30416 if test ${with_nghttp2+y}
30418 withval=$with_nghttp2; OPT_H2=$withval
30426 want_nghttp2="default"
30427 want_nghttp2_path=""
30431 want_nghttp2_path="$withval/lib/pkgconfig"
30435 if test X"$want_nghttp2" != Xno; then
30436 CLEANLDFLAGS="$LDFLAGS"
30437 CLEANCPPFLAGS="$CPPFLAGS"
30441 if test -n "$PKG_CONFIG"; then
30442 PKGCONFIG="$PKG_CONFIG"
30444 if test -n "$ac_tool_prefix"; then
30445 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30446 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30448 printf %s "checking for $ac_word... " >&6; }
30449 if test ${ac_cv_path_PKGCONFIG+y}
30451 printf %s "(cached) " >&6
30455 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30459 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30460 for as_dir in $as_dummy
30463 case $as_dir in #(((
30466 *) as_dir=$as_dir/ ;;
30468 for ac_exec_ext in '' $ac_executable_extensions; do
30469 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30470 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30471 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30481 PKGCONFIG=$ac_cv_path_PKGCONFIG
30482 if test -n "$PKGCONFIG"; then
30483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30484 printf "%s\n" "$PKGCONFIG" >&6; }
30486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30487 printf "%s\n" "no" >&6; }
30492 if test -z "$ac_cv_path_PKGCONFIG"; then
30493 ac_pt_PKGCONFIG=$PKGCONFIG
30494 # Extract the first word of "pkg-config", so it can be a program name with args.
30495 set dummy pkg-config; ac_word=$2
30496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30497 printf %s "checking for $ac_word... " >&6; }
30498 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30500 printf %s "(cached) " >&6
30502 case $ac_pt_PKGCONFIG in
30504 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30508 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30509 for as_dir in $as_dummy
30512 case $as_dir in #(((
30515 *) as_dir=$as_dir/ ;;
30517 for ac_exec_ext in '' $ac_executable_extensions; do
30518 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30519 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30520 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30530 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30531 if test -n "$ac_pt_PKGCONFIG"; then
30532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30533 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 printf "%s\n" "no" >&6; }
30539 if test "x$ac_pt_PKGCONFIG" = x; then
30542 case $cross_compiling:$ac_tool_warned in
30544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30546 ac_tool_warned=yes ;;
30548 PKGCONFIG=$ac_pt_PKGCONFIG
30551 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30556 if test "x$PKGCONFIG" != "xno"; then
30557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30558 printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30560 if test -n "$want_nghttp2_path"; then
30561 PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30562 export PKG_CONFIG_LIBDIR
30564 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30566 if test -z "$itexists"; then
30568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30569 printf "%s\n" "no" >&6; }
30571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30572 printf "%s\n" "found" >&6; }
30577 if test "$PKGCONFIG" != "no" ; then
30579 if test -n "$want_nghttp2_path"; then
30580 PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30581 export PKG_CONFIG_LIBDIR
30584 $PKGCONFIG --libs-only-l libnghttp2`
30585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30586 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30589 if test -n "$want_nghttp2_path"; then
30590 PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30591 export PKG_CONFIG_LIBDIR
30593 $PKGCONFIG --cflags-only-I libnghttp2`
30594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30595 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30598 if test -n "$want_nghttp2_path"; then
30599 PKG_CONFIG_LIBDIR="$want_nghttp2_path"
30600 export PKG_CONFIG_LIBDIR
30603 $PKGCONFIG --libs-only-L libnghttp2`
30604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30605 printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30607 LDFLAGS="$LDFLAGS $LD_H2"
30608 CPPFLAGS="$CPPFLAGS $CPP_H2"
30609 LIBS="$LIB_H2 $LIBS"
30611 # use nghttp2_session_set_local_window_size to require nghttp2
30613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
30614 printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
30615 if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
30617 printf %s "(cached) " >&6
30619 ac_check_lib_save_LIBS=$LIBS
30620 LIBS="-lnghttp2 $LIBS"
30621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30622 /* end confdefs.h. */
30628 char nghttp2_session_set_local_window_size ();
30631 return nghttp2_session_set_local_window_size ();
30636 if ac_fn_c_try_link "$LINENO"
30638 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
30640 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
30642 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30643 conftest$ac_exeext conftest.$ac_ext
30644 LIBS=$ac_check_lib_save_LIBS
30646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
30647 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
30648 if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
30651 for ac_header in nghttp2/nghttp2.h
30653 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30654 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30656 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30657 curl_h2_msg="enabled (nghttp2)"
30660 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30670 LDFLAGS=$CLEANLDFLAGS
30671 CPPFLAGS=$CLEANCPPFLAGS
30678 if test X"$want_nghttp2" != Xdefault; then
30679 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30688 if test "x$disable_http" = "xyes"; then
30689 # without HTTP, ngtcp2 is no use
30694 # Check whether --with-ngtcp2 was given.
30695 if test ${with_ngtcp2+y}
30697 withval=$with_ngtcp2; OPT_TCP2=$withval
30700 case "$OPT_TCP2" in
30705 want_tcp2="default"
30710 want_tcp2_path="$withval/lib/pkgconfig"
30714 curl_tcp2_msg="no (--with-ngtcp2)"
30715 if test X"$want_tcp2" != Xno; then
30716 CLEANLDFLAGS="$LDFLAGS"
30717 CLEANCPPFLAGS="$CPPFLAGS"
30721 if test -n "$PKG_CONFIG"; then
30722 PKGCONFIG="$PKG_CONFIG"
30724 if test -n "$ac_tool_prefix"; then
30725 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30726 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30727 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30728 printf %s "checking for $ac_word... " >&6; }
30729 if test ${ac_cv_path_PKGCONFIG+y}
30731 printf %s "(cached) " >&6
30735 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30739 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30740 for as_dir in $as_dummy
30743 case $as_dir in #(((
30746 *) as_dir=$as_dir/ ;;
30748 for ac_exec_ext in '' $ac_executable_extensions; do
30749 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30750 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30751 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30761 PKGCONFIG=$ac_cv_path_PKGCONFIG
30762 if test -n "$PKGCONFIG"; then
30763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30764 printf "%s\n" "$PKGCONFIG" >&6; }
30766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30767 printf "%s\n" "no" >&6; }
30772 if test -z "$ac_cv_path_PKGCONFIG"; then
30773 ac_pt_PKGCONFIG=$PKGCONFIG
30774 # Extract the first word of "pkg-config", so it can be a program name with args.
30775 set dummy pkg-config; ac_word=$2
30776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30777 printf %s "checking for $ac_word... " >&6; }
30778 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30780 printf %s "(cached) " >&6
30782 case $ac_pt_PKGCONFIG in
30784 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30787 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30788 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30789 for as_dir in $as_dummy
30792 case $as_dir in #(((
30795 *) as_dir=$as_dir/ ;;
30797 for ac_exec_ext in '' $ac_executable_extensions; do
30798 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30799 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30800 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30810 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30811 if test -n "$ac_pt_PKGCONFIG"; then
30812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30813 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30815 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30816 printf "%s\n" "no" >&6; }
30819 if test "x$ac_pt_PKGCONFIG" = x; then
30822 case $cross_compiling:$ac_tool_warned in
30824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30825 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30826 ac_tool_warned=yes ;;
30828 PKGCONFIG=$ac_pt_PKGCONFIG
30831 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30836 if test "x$PKGCONFIG" != "xno"; then
30837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30838 printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30840 if test -n "$want_tcp2_path"; then
30841 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30842 export PKG_CONFIG_LIBDIR
30844 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30846 if test -z "$itexists"; then
30848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30849 printf "%s\n" "no" >&6; }
30851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30852 printf "%s\n" "found" >&6; }
30857 if test "$PKGCONFIG" != "no" ; then
30859 if test -n "$want_tcp2_path"; then
30860 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30861 export PKG_CONFIG_LIBDIR
30864 $PKGCONFIG --libs-only-l libngtcp2`
30865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30866 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30869 if test -n "$want_tcp2_path"; then
30870 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30871 export PKG_CONFIG_LIBDIR
30873 $PKGCONFIG --cflags-only-I libngtcp2`
30874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30875 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30878 if test -n "$want_tcp2_path"; then
30879 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30880 export PKG_CONFIG_LIBDIR
30883 $PKGCONFIG --libs-only-L libngtcp2`
30884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30885 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30887 LDFLAGS="$LDFLAGS $LD_TCP2"
30888 CPPFLAGS="$CPPFLAGS $CPP_TCP2"
30889 LIBS="$LIB_TCP2 $LIBS"
30891 if test "x$cross_compiling" != "xyes"; then
30892 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
30894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
30895 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
30896 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
30898 printf %s "(cached) " >&6
30900 ac_check_lib_save_LIBS=$LIBS
30901 LIBS="-lngtcp2 $LIBS"
30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903 /* end confdefs.h. */
30909 char ngtcp2_conn_client_new_versioned ();
30912 return ngtcp2_conn_client_new_versioned ();
30917 if ac_fn_c_try_link "$LINENO"
30919 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
30921 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
30923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30924 conftest$ac_exeext conftest.$ac_ext
30925 LIBS=$ac_check_lib_save_LIBS
30927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
30928 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
30929 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
30932 for ac_header in ngtcp2/ngtcp2.h
30934 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
30935 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
30937 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
30940 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
30944 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
30945 export CURL_LIBRARY_PATH
30946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
30947 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
30954 LDFLAGS=$CLEANLDFLAGS
30955 CPPFLAGS=$CLEANCPPFLAGS
30962 if test X"$want_tcp2" != Xdefault; then
30963 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
30969 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
30970 CLEANLDFLAGS="$LDFLAGS"
30971 CLEANCPPFLAGS="$CPPFLAGS"
30975 if test -n "$PKG_CONFIG"; then
30976 PKGCONFIG="$PKG_CONFIG"
30978 if test -n "$ac_tool_prefix"; then
30979 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30980 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30982 printf %s "checking for $ac_word... " >&6; }
30983 if test ${ac_cv_path_PKGCONFIG+y}
30985 printf %s "(cached) " >&6
30989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30993 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30994 for as_dir in $as_dummy
30997 case $as_dir in #(((
31000 *) as_dir=$as_dir/ ;;
31002 for ac_exec_ext in '' $ac_executable_extensions; do
31003 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31004 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31005 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31015 PKGCONFIG=$ac_cv_path_PKGCONFIG
31016 if test -n "$PKGCONFIG"; then
31017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31018 printf "%s\n" "$PKGCONFIG" >&6; }
31020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31021 printf "%s\n" "no" >&6; }
31026 if test -z "$ac_cv_path_PKGCONFIG"; then
31027 ac_pt_PKGCONFIG=$PKGCONFIG
31028 # Extract the first word of "pkg-config", so it can be a program name with args.
31029 set dummy pkg-config; ac_word=$2
31030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31031 printf %s "checking for $ac_word... " >&6; }
31032 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31034 printf %s "(cached) " >&6
31036 case $ac_pt_PKGCONFIG in
31038 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31042 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31043 for as_dir in $as_dummy
31046 case $as_dir in #(((
31049 *) as_dir=$as_dir/ ;;
31051 for ac_exec_ext in '' $ac_executable_extensions; do
31052 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31053 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31054 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31064 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31065 if test -n "$ac_pt_PKGCONFIG"; then
31066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31067 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31070 printf "%s\n" "no" >&6; }
31073 if test "x$ac_pt_PKGCONFIG" = x; then
31076 case $cross_compiling:$ac_tool_warned in
31078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31079 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31080 ac_tool_warned=yes ;;
31082 PKGCONFIG=$ac_pt_PKGCONFIG
31085 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31090 if test "x$PKGCONFIG" != "xno"; then
31091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
31092 printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
31094 if test -n "$want_tcp2_path"; then
31095 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31096 export PKG_CONFIG_LIBDIR
31098 $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
31100 if test -z "$itexists"; then
31102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31103 printf "%s\n" "no" >&6; }
31105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31106 printf "%s\n" "found" >&6; }
31111 if test "$PKGCONFIG" != "no" ; then
31112 LIB_NGTCP2_CRYPTO_OPENSSL=`
31113 if test -n "$want_tcp2_path"; then
31114 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31115 export PKG_CONFIG_LIBDIR
31118 $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
31119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
31120 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
31122 CPP_NGTCP2_CRYPTO_OPENSSL=`
31123 if test -n "$want_tcp2_path"; then
31124 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31125 export PKG_CONFIG_LIBDIR
31127 $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
31128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
31129 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
31131 LD_NGTCP2_CRYPTO_OPENSSL=`
31132 if test -n "$want_tcp2_path"; then
31133 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31134 export PKG_CONFIG_LIBDIR
31137 $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
31138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
31139 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
31141 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
31142 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
31143 LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
31145 if test "x$cross_compiling" != "xyes"; then
31146 DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
31148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
31149 printf %s "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
31150 if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+y}
31152 printf %s "(cached) " >&6
31154 ac_check_lib_save_LIBS=$LIBS
31155 LIBS="-lngtcp2_crypto_openssl $LIBS"
31156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31157 /* end confdefs.h. */
31163 char ngtcp2_crypto_ctx_initial ();
31166 return ngtcp2_crypto_ctx_initial ();
31171 if ac_fn_c_try_link "$LINENO"
31173 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
31175 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
31177 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31178 conftest$ac_exeext conftest.$ac_ext
31179 LIBS=$ac_check_lib_save_LIBS
31181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
31182 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
31183 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes
31186 for ac_header in ngtcp2/ngtcp2_crypto.h
31188 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31189 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31191 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31194 printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
31196 USE_NGTCP2_CRYPTO_OPENSSL=1
31198 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
31199 export CURL_LIBRARY_PATH
31200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
31201 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
31208 LDFLAGS=$CLEANLDFLAGS
31209 CPPFLAGS=$CLEANCPPFLAGS
31216 if test X"$want_tcp2" != Xdefault; then
31217 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
31222 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31223 CLEANLDFLAGS="$LDFLAGS"
31224 CLEANCPPFLAGS="$CPPFLAGS"
31228 if test -n "$PKG_CONFIG"; then
31229 PKGCONFIG="$PKG_CONFIG"
31231 if test -n "$ac_tool_prefix"; then
31232 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31233 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31235 printf %s "checking for $ac_word... " >&6; }
31236 if test ${ac_cv_path_PKGCONFIG+y}
31238 printf %s "(cached) " >&6
31242 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31246 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31247 for as_dir in $as_dummy
31250 case $as_dir in #(((
31253 *) as_dir=$as_dir/ ;;
31255 for ac_exec_ext in '' $ac_executable_extensions; do
31256 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31257 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31258 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31268 PKGCONFIG=$ac_cv_path_PKGCONFIG
31269 if test -n "$PKGCONFIG"; then
31270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31271 printf "%s\n" "$PKGCONFIG" >&6; }
31273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31274 printf "%s\n" "no" >&6; }
31279 if test -z "$ac_cv_path_PKGCONFIG"; then
31280 ac_pt_PKGCONFIG=$PKGCONFIG
31281 # Extract the first word of "pkg-config", so it can be a program name with args.
31282 set dummy pkg-config; ac_word=$2
31283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31284 printf %s "checking for $ac_word... " >&6; }
31285 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31287 printf %s "(cached) " >&6
31289 case $ac_pt_PKGCONFIG in
31291 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31295 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31296 for as_dir in $as_dummy
31299 case $as_dir in #(((
31302 *) as_dir=$as_dir/ ;;
31304 for ac_exec_ext in '' $ac_executable_extensions; do
31305 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31306 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31307 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31317 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31318 if test -n "$ac_pt_PKGCONFIG"; then
31319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31320 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31323 printf "%s\n" "no" >&6; }
31326 if test "x$ac_pt_PKGCONFIG" = x; then
31329 case $cross_compiling:$ac_tool_warned in
31331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31332 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31333 ac_tool_warned=yes ;;
31335 PKGCONFIG=$ac_pt_PKGCONFIG
31338 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31343 if test "x$PKGCONFIG" != "xno"; then
31344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31345 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31347 if test -n "$want_tcp2_path"; then
31348 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31349 export PKG_CONFIG_LIBDIR
31351 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31353 if test -z "$itexists"; then
31355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31356 printf "%s\n" "no" >&6; }
31358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31359 printf "%s\n" "found" >&6; }
31364 if test "$PKGCONFIG" != "no" ; then
31365 LIB_NGTCP2_CRYPTO_GNUTLS=`
31366 if test -n "$want_tcp2_path"; then
31367 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31368 export PKG_CONFIG_LIBDIR
31371 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31373 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31375 CPP_NGTCP2_CRYPTO_GNUTLS=`
31376 if test -n "$want_tcp2_path"; then
31377 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31378 export PKG_CONFIG_LIBDIR
31380 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31382 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31384 LD_NGTCP2_CRYPTO_GNUTLS=`
31385 if test -n "$want_tcp2_path"; then
31386 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31387 export PKG_CONFIG_LIBDIR
31390 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31392 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31394 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31395 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31396 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31398 if test "x$cross_compiling" != "xyes"; then
31399 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls" >&5
31402 printf %s "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls... " >&6; }
31403 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial+y}
31405 printf %s "(cached) " >&6
31407 ac_check_lib_save_LIBS=$LIBS
31408 LIBS="-lngtcp2_crypto_gnutls $LIBS"
31409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31410 /* end confdefs.h. */
31416 char ngtcp2_crypto_ctx_initial ();
31419 return ngtcp2_crypto_ctx_initial ();
31424 if ac_fn_c_try_link "$LINENO"
31426 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=yes
31428 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=no
31430 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31431 conftest$ac_exeext conftest.$ac_ext
31432 LIBS=$ac_check_lib_save_LIBS
31434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&5
31435 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&6; }
31436 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" = xyes
31439 for ac_header in ngtcp2/ngtcp2_crypto.h
31441 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31442 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31444 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31447 printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31449 USE_NGTCP2_CRYPTO_GNUTLS=1
31451 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31452 export CURL_LIBRARY_PATH
31453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31454 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31461 LDFLAGS=$CLEANLDFLAGS
31462 CPPFLAGS=$CLEANCPPFLAGS
31469 if test X"$want_tcp2" != Xdefault; then
31470 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31478 if test "x$NGTCP2_ENABLED" = "x"; then
31479 # without ngtcp2, nghttp3 is of no use for us
31484 # Check whether --with-nghttp3 was given.
31485 if test ${with_nghttp3+y}
31487 withval=$with_nghttp3; OPT_NGHTTP3=$withval
31490 case "$OPT_NGHTTP3" in
31495 want_nghttp3="default"
31496 want_nghttp3_path=""
31500 want_nghttp3_path="$withval/lib/pkgconfig"
31504 curl_http3_msg="no (--with-nghttp3)"
31505 if test X"$want_nghttp3" != Xno; then
31506 CLEANLDFLAGS="$LDFLAGS"
31507 CLEANCPPFLAGS="$CPPFLAGS"
31511 if test -n "$PKG_CONFIG"; then
31512 PKGCONFIG="$PKG_CONFIG"
31514 if test -n "$ac_tool_prefix"; then
31515 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31516 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31518 printf %s "checking for $ac_word... " >&6; }
31519 if test ${ac_cv_path_PKGCONFIG+y}
31521 printf %s "(cached) " >&6
31525 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31529 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31530 for as_dir in $as_dummy
31533 case $as_dir in #(((
31536 *) as_dir=$as_dir/ ;;
31538 for ac_exec_ext in '' $ac_executable_extensions; do
31539 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31540 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31541 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31551 PKGCONFIG=$ac_cv_path_PKGCONFIG
31552 if test -n "$PKGCONFIG"; then
31553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31554 printf "%s\n" "$PKGCONFIG" >&6; }
31556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31557 printf "%s\n" "no" >&6; }
31562 if test -z "$ac_cv_path_PKGCONFIG"; then
31563 ac_pt_PKGCONFIG=$PKGCONFIG
31564 # Extract the first word of "pkg-config", so it can be a program name with args.
31565 set dummy pkg-config; ac_word=$2
31566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31567 printf %s "checking for $ac_word... " >&6; }
31568 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31570 printf %s "(cached) " >&6
31572 case $ac_pt_PKGCONFIG in
31574 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31578 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31579 for as_dir in $as_dummy
31582 case $as_dir in #(((
31585 *) as_dir=$as_dir/ ;;
31587 for ac_exec_ext in '' $ac_executable_extensions; do
31588 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31589 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31600 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31601 if test -n "$ac_pt_PKGCONFIG"; then
31602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31603 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31606 printf "%s\n" "no" >&6; }
31609 if test "x$ac_pt_PKGCONFIG" = x; then
31612 case $cross_compiling:$ac_tool_warned in
31614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31615 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31616 ac_tool_warned=yes ;;
31618 PKGCONFIG=$ac_pt_PKGCONFIG
31621 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31626 if test "x$PKGCONFIG" != "xno"; then
31627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
31628 printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
31630 if test -n "$want_nghttp3_path"; then
31631 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31632 export PKG_CONFIG_LIBDIR
31634 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
31636 if test -z "$itexists"; then
31638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31639 printf "%s\n" "no" >&6; }
31641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31642 printf "%s\n" "found" >&6; }
31647 if test "$PKGCONFIG" != "no" ; then
31649 if test -n "$want_nghttp3_path"; then
31650 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31651 export PKG_CONFIG_LIBDIR
31654 $PKGCONFIG --libs-only-l libnghttp3`
31655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
31656 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
31659 if test -n "$want_nghttp3_path"; then
31660 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31661 export PKG_CONFIG_LIBDIR
31663 $PKGCONFIG --cflags-only-I libnghttp3`
31664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
31665 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
31668 if test -n "$want_nghttp3_path"; then
31669 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31670 export PKG_CONFIG_LIBDIR
31673 $PKGCONFIG --libs-only-L libnghttp3`
31674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
31675 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
31677 LDFLAGS="$LDFLAGS $LD_NGHTTP3"
31678 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
31679 LIBS="$LIB_NGHTTP3 $LIBS"
31681 if test "x$cross_compiling" != "xyes"; then
31682 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
31684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
31685 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
31686 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
31688 printf %s "(cached) " >&6
31690 ac_check_lib_save_LIBS=$LIBS
31691 LIBS="-lnghttp3 $LIBS"
31692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31693 /* end confdefs.h. */
31699 char nghttp3_conn_client_new_versioned ();
31702 return nghttp3_conn_client_new_versioned ();
31707 if ac_fn_c_try_link "$LINENO"
31709 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
31711 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
31713 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31714 conftest$ac_exeext conftest.$ac_ext
31715 LIBS=$ac_check_lib_save_LIBS
31717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
31718 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
31719 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
31722 for ac_header in nghttp3/nghttp3.h
31724 ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
31725 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
31727 printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
31728 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
31731 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
31735 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
31736 export CURL_LIBRARY_PATH
31737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
31738 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
31739 experimental="$experimental HTTP3"
31746 LDFLAGS=$CLEANLDFLAGS
31747 CPPFLAGS=$CLEANCPPFLAGS
31754 if test X"$want_nghttp3" != Xdefault; then
31755 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
31764 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
31765 # without HTTP or with ngtcp2, quiche is no use
31770 # Check whether --with-quiche was given.
31771 if test ${with_quiche+y}
31773 withval=$with_quiche; OPT_QUICHE=$withval
31776 case "$OPT_QUICHE" in
31781 want_quiche="default"
31782 want_quiche_path=""
31786 want_quiche_path="$withval"
31790 if test X"$want_quiche" != Xno; then
31792 if test "$NGHTTP3_ENABLED" = 1; then
31793 as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
31796 CLEANLDFLAGS="$LDFLAGS"
31797 CLEANCPPFLAGS="$CPPFLAGS"
31801 if test -n "$PKG_CONFIG"; then
31802 PKGCONFIG="$PKG_CONFIG"
31804 if test -n "$ac_tool_prefix"; then
31805 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31808 printf %s "checking for $ac_word... " >&6; }
31809 if test ${ac_cv_path_PKGCONFIG+y}
31811 printf %s "(cached) " >&6
31815 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31819 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31820 for as_dir in $as_dummy
31823 case $as_dir in #(((
31826 *) as_dir=$as_dir/ ;;
31828 for ac_exec_ext in '' $ac_executable_extensions; do
31829 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31830 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31831 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31841 PKGCONFIG=$ac_cv_path_PKGCONFIG
31842 if test -n "$PKGCONFIG"; then
31843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31844 printf "%s\n" "$PKGCONFIG" >&6; }
31846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31847 printf "%s\n" "no" >&6; }
31852 if test -z "$ac_cv_path_PKGCONFIG"; then
31853 ac_pt_PKGCONFIG=$PKGCONFIG
31854 # Extract the first word of "pkg-config", so it can be a program name with args.
31855 set dummy pkg-config; ac_word=$2
31856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31857 printf %s "checking for $ac_word... " >&6; }
31858 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31860 printf %s "(cached) " >&6
31862 case $ac_pt_PKGCONFIG in
31864 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31868 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31869 for as_dir in $as_dummy
31872 case $as_dir in #(((
31875 *) as_dir=$as_dir/ ;;
31877 for ac_exec_ext in '' $ac_executable_extensions; do
31878 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31879 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31880 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31890 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31891 if test -n "$ac_pt_PKGCONFIG"; then
31892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31893 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31896 printf "%s\n" "no" >&6; }
31899 if test "x$ac_pt_PKGCONFIG" = x; then
31902 case $cross_compiling:$ac_tool_warned in
31904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31905 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31906 ac_tool_warned=yes ;;
31908 PKGCONFIG=$ac_pt_PKGCONFIG
31911 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31916 if test "x$PKGCONFIG" != "xno"; then
31917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
31918 printf %s "checking for quiche options with pkg-config... " >&6; }
31920 if test -n "$want_quiche_path"; then
31921 PKG_CONFIG_LIBDIR="$want_quiche_path"
31922 export PKG_CONFIG_LIBDIR
31924 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
31926 if test -z "$itexists"; then
31928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929 printf "%s\n" "no" >&6; }
31931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31932 printf "%s\n" "found" >&6; }
31937 if test "$PKGCONFIG" != "no" ; then
31939 if test -n "$want_quiche_path"; then
31940 PKG_CONFIG_LIBDIR="$want_quiche_path"
31941 export PKG_CONFIG_LIBDIR
31944 $PKGCONFIG --libs-only-l quiche`
31945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
31946 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
31949 if test -n "$want_quiche_path"; then
31950 PKG_CONFIG_LIBDIR="$want_quiche_path"
31951 export PKG_CONFIG_LIBDIR
31953 $PKGCONFIG --cflags-only-I quiche`
31954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
31955 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
31958 if test -n "$want_quiche_path"; then
31959 PKG_CONFIG_LIBDIR="$want_quiche_path"
31960 export PKG_CONFIG_LIBDIR
31963 $PKGCONFIG --libs-only-L quiche`
31964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
31965 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
31967 LDFLAGS="$LDFLAGS $LD_QUICHE"
31968 CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
31969 LIBS="$LIB_QUICHE $LIBS"
31971 if test "x$cross_compiling" != "xyes"; then
31972 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
31974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
31975 printf %s "checking for quiche_connect in -lquiche... " >&6; }
31976 if test ${ac_cv_lib_quiche_quiche_connect+y}
31978 printf %s "(cached) " >&6
31980 ac_check_lib_save_LIBS=$LIBS
31981 LIBS="-lquiche $LIBS"
31982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31983 /* end confdefs.h. */
31989 char quiche_connect ();
31992 return quiche_connect ();
31997 if ac_fn_c_try_link "$LINENO"
31999 ac_cv_lib_quiche_quiche_connect=yes
32001 ac_cv_lib_quiche_quiche_connect=no
32003 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32004 conftest$ac_exeext conftest.$ac_ext
32005 LIBS=$ac_check_lib_save_LIBS
32007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
32008 printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
32009 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
32012 for ac_header in quiche.h
32014 ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32015 $ac_includes_default
32016 #include <sys/socket.h>
32020 if test "x$ac_cv_header_quiche_h" = xyes
32022 printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32023 experimental="$experimental HTTP3"
32024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32025 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32026 curl_h3_msg="enabled (quiche)"
32029 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32033 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32034 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32036 printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32040 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32041 export CURL_LIBRARY_PATH
32042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32043 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32049 as_fn_error $? "couldn't use quiche" "$LINENO" 5
32054 if test X"$want_quiche" != Xdefault; then
32055 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32061 OPT_ZSH_FPATH=default
32063 # Check whether --with-zsh-functions-dir was given.
32064 if test ${with_zsh_functions_dir+y}
32066 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32069 case "$OPT_ZSH_FPATH" in
32073 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32077 ZSH_FUNCTIONS_DIR="$withval"
32083 OPT_FISH_FPATH=default
32085 # Check whether --with-fish-functions-dir was given.
32086 if test ${with_fish_functions_dir+y}
32088 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32091 case "$OPT_FISH_FPATH" in
32096 if test -n "$PKG_CONFIG"; then
32097 PKGCONFIG="$PKG_CONFIG"
32099 if test -n "$ac_tool_prefix"; then
32100 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32101 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32103 printf %s "checking for $ac_word... " >&6; }
32104 if test ${ac_cv_path_PKGCONFIG+y}
32106 printf %s "(cached) " >&6
32110 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32114 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32115 for as_dir in $as_dummy
32118 case $as_dir in #(((
32121 *) as_dir=$as_dir/ ;;
32123 for ac_exec_ext in '' $ac_executable_extensions; do
32124 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32125 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32126 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32136 PKGCONFIG=$ac_cv_path_PKGCONFIG
32137 if test -n "$PKGCONFIG"; then
32138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32139 printf "%s\n" "$PKGCONFIG" >&6; }
32141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32142 printf "%s\n" "no" >&6; }
32147 if test -z "$ac_cv_path_PKGCONFIG"; then
32148 ac_pt_PKGCONFIG=$PKGCONFIG
32149 # Extract the first word of "pkg-config", so it can be a program name with args.
32150 set dummy pkg-config; ac_word=$2
32151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32152 printf %s "checking for $ac_word... " >&6; }
32153 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32155 printf %s "(cached) " >&6
32157 case $ac_pt_PKGCONFIG in
32159 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32163 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32164 for as_dir in $as_dummy
32167 case $as_dir in #(((
32170 *) as_dir=$as_dir/ ;;
32172 for ac_exec_ext in '' $ac_executable_extensions; do
32173 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32174 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32175 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32185 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32186 if test -n "$ac_pt_PKGCONFIG"; then
32187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32188 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32191 printf "%s\n" "no" >&6; }
32194 if test "x$ac_pt_PKGCONFIG" = x; then
32197 case $cross_compiling:$ac_tool_warned in
32199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32200 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32201 ac_tool_warned=yes ;;
32203 PKGCONFIG=$ac_pt_PKGCONFIG
32206 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32211 if test "x$PKGCONFIG" != "xno"; then
32212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32213 printf %s "checking for fish options with pkg-config... " >&6; }
32215 if test -n ""; then
32216 PKG_CONFIG_LIBDIR=""
32217 export PKG_CONFIG_LIBDIR
32219 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32221 if test -z "$itexists"; then
32223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32224 printf "%s\n" "no" >&6; }
32226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32227 printf "%s\n" "found" >&6; }
32231 if test "$PKGCONFIG" != "no" ; then
32232 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32234 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32239 FISH_FUNCTIONS_DIR="$withval"
32245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
32246 printf %s "checking for malloc.h... " >&6; }
32247 if test ${curl_cv_header_malloc_h+y}
32249 printf %s "(cached) " >&6
32252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32253 /* end confdefs.h. */
32256 #include <malloc.h>
32261 void *p = malloc(10);
32262 void *q = calloc(10,10);
32271 if ac_fn_c_try_compile "$LINENO"
32274 curl_cv_header_malloc_h="yes"
32278 curl_cv_header_malloc_h="no"
32281 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
32285 printf "%s\n" "$curl_cv_header_malloc_h" >&6; }
32286 if test "$curl_cv_header_malloc_h" = "yes"; then
32288 printf "%s\n" "#define HAVE_MALLOC_H 1" >>confdefs.h
32291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32292 /* end confdefs.h. */
32295 #include <stdlib.h>
32300 void *p = malloc(10);
32301 void *q = calloc(10,10);
32310 if ac_fn_c_try_compile "$LINENO"
32313 curl_cv_need_header_malloc_h="no"
32317 curl_cv_need_header_malloc_h="yes"
32320 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32322 case "$curl_cv_need_header_malloc_h" in
32325 printf "%s\n" "#define NEED_MALLOC_H 1" >>confdefs.h
32332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
32333 printf %s "checking for memory.h... " >&6; }
32334 if test ${curl_cv_header_memory_h+y}
32336 printf %s "(cached) " >&6
32339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32340 /* end confdefs.h. */
32343 #include <memory.h>
32348 void *p = malloc(10);
32349 void *q = calloc(10,10);
32358 if ac_fn_c_try_compile "$LINENO"
32361 curl_cv_header_memory_h="yes"
32365 curl_cv_header_memory_h="no"
32368 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
32372 printf "%s\n" "$curl_cv_header_memory_h" >&6; }
32373 if test "$curl_cv_header_memory_h" = "yes"; then
32375 printf "%s\n" "#define HAVE_MEMORY_H 1" >>confdefs.h
32378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32379 /* end confdefs.h. */
32382 #include <stdlib.h>
32387 void *p = malloc(10);
32388 void *q = calloc(10,10);
32397 if ac_fn_c_try_compile "$LINENO"
32400 curl_cv_need_header_memory_h="no"
32404 curl_cv_need_header_memory_h="yes"
32407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
32409 case "$curl_cv_need_header_memory_h" in
32412 printf "%s\n" "#define NEED_MEMORY_H 1" >>confdefs.h
32419 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32420 #ifdef HAVE_SYS_TYPES_H
32421 #include <sys/types.h>
32423 #ifdef HAVE_SYS_TIME_H
32424 #include <sys/time.h>
32426 #ifdef HAVE_SYS_SELECT_H
32427 #include <sys/select.h>
32428 #elif defined(HAVE_UNISTD_H)
32429 #include <unistd.h>
32431 #ifdef HAVE_SYS_SOCKET_H
32432 #include <sys/socket.h>
32434 #ifdef HAVE_NETINET_IN_H
32435 #include <netinet/in.h>
32437 #ifdef HAVE_NETINET_IN6_H
32438 #include <netinet/in6.h>
32440 #ifdef HAVE_SYS_UN_H
32441 #include <sys/un.h>
32446 if test "x$ac_cv_header_sys_types_h" = xyes
32448 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32451 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32452 #ifdef HAVE_SYS_TYPES_H
32453 #include <sys/types.h>
32455 #ifdef HAVE_SYS_TIME_H
32456 #include <sys/time.h>
32458 #ifdef HAVE_SYS_SELECT_H
32459 #include <sys/select.h>
32460 #elif defined(HAVE_UNISTD_H)
32461 #include <unistd.h>
32463 #ifdef HAVE_SYS_SOCKET_H
32464 #include <sys/socket.h>
32466 #ifdef HAVE_NETINET_IN_H
32467 #include <netinet/in.h>
32469 #ifdef HAVE_NETINET_IN6_H
32470 #include <netinet/in6.h>
32472 #ifdef HAVE_SYS_UN_H
32473 #include <sys/un.h>
32478 if test "x$ac_cv_header_sys_time_h" = xyes
32480 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32483 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32484 #ifdef HAVE_SYS_TYPES_H
32485 #include <sys/types.h>
32487 #ifdef HAVE_SYS_TIME_H
32488 #include <sys/time.h>
32490 #ifdef HAVE_SYS_SELECT_H
32491 #include <sys/select.h>
32492 #elif defined(HAVE_UNISTD_H)
32493 #include <unistd.h>
32495 #ifdef HAVE_SYS_SOCKET_H
32496 #include <sys/socket.h>
32498 #ifdef HAVE_NETINET_IN_H
32499 #include <netinet/in.h>
32501 #ifdef HAVE_NETINET_IN6_H
32502 #include <netinet/in6.h>
32504 #ifdef HAVE_SYS_UN_H
32505 #include <sys/un.h>
32510 if test "x$ac_cv_header_sys_select_h" = xyes
32512 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
32515 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
32516 #ifdef HAVE_SYS_TYPES_H
32517 #include <sys/types.h>
32519 #ifdef HAVE_SYS_TIME_H
32520 #include <sys/time.h>
32522 #ifdef HAVE_SYS_SELECT_H
32523 #include <sys/select.h>
32524 #elif defined(HAVE_UNISTD_H)
32525 #include <unistd.h>
32527 #ifdef HAVE_SYS_SOCKET_H
32528 #include <sys/socket.h>
32530 #ifdef HAVE_NETINET_IN_H
32531 #include <netinet/in.h>
32533 #ifdef HAVE_NETINET_IN6_H
32534 #include <netinet/in6.h>
32536 #ifdef HAVE_SYS_UN_H
32537 #include <sys/un.h>
32542 if test "x$ac_cv_header_sys_socket_h" = xyes
32544 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
32547 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
32548 #ifdef HAVE_SYS_TYPES_H
32549 #include <sys/types.h>
32551 #ifdef HAVE_SYS_TIME_H
32552 #include <sys/time.h>
32554 #ifdef HAVE_SYS_SELECT_H
32555 #include <sys/select.h>
32556 #elif defined(HAVE_UNISTD_H)
32557 #include <unistd.h>
32559 #ifdef HAVE_SYS_SOCKET_H
32560 #include <sys/socket.h>
32562 #ifdef HAVE_NETINET_IN_H
32563 #include <netinet/in.h>
32565 #ifdef HAVE_NETINET_IN6_H
32566 #include <netinet/in6.h>
32568 #ifdef HAVE_SYS_UN_H
32569 #include <sys/un.h>
32574 if test "x$ac_cv_header_sys_ioctl_h" = xyes
32576 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
32579 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
32580 #ifdef HAVE_SYS_TYPES_H
32581 #include <sys/types.h>
32583 #ifdef HAVE_SYS_TIME_H
32584 #include <sys/time.h>
32586 #ifdef HAVE_SYS_SELECT_H
32587 #include <sys/select.h>
32588 #elif defined(HAVE_UNISTD_H)
32589 #include <unistd.h>
32591 #ifdef HAVE_SYS_SOCKET_H
32592 #include <sys/socket.h>
32594 #ifdef HAVE_NETINET_IN_H
32595 #include <netinet/in.h>
32597 #ifdef HAVE_NETINET_IN6_H
32598 #include <netinet/in6.h>
32600 #ifdef HAVE_SYS_UN_H
32601 #include <sys/un.h>
32606 if test "x$ac_cv_header_sys_uio_h" = xyes
32608 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32611 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
32612 #ifdef HAVE_SYS_TYPES_H
32613 #include <sys/types.h>
32615 #ifdef HAVE_SYS_TIME_H
32616 #include <sys/time.h>
32618 #ifdef HAVE_SYS_SELECT_H
32619 #include <sys/select.h>
32620 #elif defined(HAVE_UNISTD_H)
32621 #include <unistd.h>
32623 #ifdef HAVE_SYS_SOCKET_H
32624 #include <sys/socket.h>
32626 #ifdef HAVE_NETINET_IN_H
32627 #include <netinet/in.h>
32629 #ifdef HAVE_NETINET_IN6_H
32630 #include <netinet/in6.h>
32632 #ifdef HAVE_SYS_UN_H
32633 #include <sys/un.h>
32638 if test "x$ac_cv_header_assert_h" = xyes
32640 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
32643 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
32644 #ifdef HAVE_SYS_TYPES_H
32645 #include <sys/types.h>
32647 #ifdef HAVE_SYS_TIME_H
32648 #include <sys/time.h>
32650 #ifdef HAVE_SYS_SELECT_H
32651 #include <sys/select.h>
32652 #elif defined(HAVE_UNISTD_H)
32653 #include <unistd.h>
32655 #ifdef HAVE_SYS_SOCKET_H
32656 #include <sys/socket.h>
32658 #ifdef HAVE_NETINET_IN_H
32659 #include <netinet/in.h>
32661 #ifdef HAVE_NETINET_IN6_H
32662 #include <netinet/in6.h>
32664 #ifdef HAVE_SYS_UN_H
32665 #include <sys/un.h>
32670 if test "x$ac_cv_header_unistd_h" = xyes
32672 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
32675 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
32676 #ifdef HAVE_SYS_TYPES_H
32677 #include <sys/types.h>
32679 #ifdef HAVE_SYS_TIME_H
32680 #include <sys/time.h>
32682 #ifdef HAVE_SYS_SELECT_H
32683 #include <sys/select.h>
32684 #elif defined(HAVE_UNISTD_H)
32685 #include <unistd.h>
32687 #ifdef HAVE_SYS_SOCKET_H
32688 #include <sys/socket.h>
32690 #ifdef HAVE_NETINET_IN_H
32691 #include <netinet/in.h>
32693 #ifdef HAVE_NETINET_IN6_H
32694 #include <netinet/in6.h>
32696 #ifdef HAVE_SYS_UN_H
32697 #include <sys/un.h>
32702 if test "x$ac_cv_header_stdlib_h" = xyes
32704 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32707 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
32708 #ifdef HAVE_SYS_TYPES_H
32709 #include <sys/types.h>
32711 #ifdef HAVE_SYS_TIME_H
32712 #include <sys/time.h>
32714 #ifdef HAVE_SYS_SELECT_H
32715 #include <sys/select.h>
32716 #elif defined(HAVE_UNISTD_H)
32717 #include <unistd.h>
32719 #ifdef HAVE_SYS_SOCKET_H
32720 #include <sys/socket.h>
32722 #ifdef HAVE_NETINET_IN_H
32723 #include <netinet/in.h>
32725 #ifdef HAVE_NETINET_IN6_H
32726 #include <netinet/in6.h>
32728 #ifdef HAVE_SYS_UN_H
32729 #include <sys/un.h>
32734 if test "x$ac_cv_header_arpa_inet_h" = xyes
32736 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
32739 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
32740 #ifdef HAVE_SYS_TYPES_H
32741 #include <sys/types.h>
32743 #ifdef HAVE_SYS_TIME_H
32744 #include <sys/time.h>
32746 #ifdef HAVE_SYS_SELECT_H
32747 #include <sys/select.h>
32748 #elif defined(HAVE_UNISTD_H)
32749 #include <unistd.h>
32751 #ifdef HAVE_SYS_SOCKET_H
32752 #include <sys/socket.h>
32754 #ifdef HAVE_NETINET_IN_H
32755 #include <netinet/in.h>
32757 #ifdef HAVE_NETINET_IN6_H
32758 #include <netinet/in6.h>
32760 #ifdef HAVE_SYS_UN_H
32761 #include <sys/un.h>
32766 if test "x$ac_cv_header_net_if_h" = xyes
32768 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
32771 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
32772 #ifdef HAVE_SYS_TYPES_H
32773 #include <sys/types.h>
32775 #ifdef HAVE_SYS_TIME_H
32776 #include <sys/time.h>
32778 #ifdef HAVE_SYS_SELECT_H
32779 #include <sys/select.h>
32780 #elif defined(HAVE_UNISTD_H)
32781 #include <unistd.h>
32783 #ifdef HAVE_SYS_SOCKET_H
32784 #include <sys/socket.h>
32786 #ifdef HAVE_NETINET_IN_H
32787 #include <netinet/in.h>
32789 #ifdef HAVE_NETINET_IN6_H
32790 #include <netinet/in6.h>
32792 #ifdef HAVE_SYS_UN_H
32793 #include <sys/un.h>
32798 if test "x$ac_cv_header_netinet_in_h" = xyes
32800 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
32803 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
32804 #ifdef HAVE_SYS_TYPES_H
32805 #include <sys/types.h>
32807 #ifdef HAVE_SYS_TIME_H
32808 #include <sys/time.h>
32810 #ifdef HAVE_SYS_SELECT_H
32811 #include <sys/select.h>
32812 #elif defined(HAVE_UNISTD_H)
32813 #include <unistd.h>
32815 #ifdef HAVE_SYS_SOCKET_H
32816 #include <sys/socket.h>
32818 #ifdef HAVE_NETINET_IN_H
32819 #include <netinet/in.h>
32821 #ifdef HAVE_NETINET_IN6_H
32822 #include <netinet/in6.h>
32824 #ifdef HAVE_SYS_UN_H
32825 #include <sys/un.h>
32830 if test "x$ac_cv_header_netinet_in6_h" = xyes
32832 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
32835 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
32836 #ifdef HAVE_SYS_TYPES_H
32837 #include <sys/types.h>
32839 #ifdef HAVE_SYS_TIME_H
32840 #include <sys/time.h>
32842 #ifdef HAVE_SYS_SELECT_H
32843 #include <sys/select.h>
32844 #elif defined(HAVE_UNISTD_H)
32845 #include <unistd.h>
32847 #ifdef HAVE_SYS_SOCKET_H
32848 #include <sys/socket.h>
32850 #ifdef HAVE_NETINET_IN_H
32851 #include <netinet/in.h>
32853 #ifdef HAVE_NETINET_IN6_H
32854 #include <netinet/in6.h>
32856 #ifdef HAVE_SYS_UN_H
32857 #include <sys/un.h>
32862 if test "x$ac_cv_header_sys_un_h" = xyes
32864 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
32867 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
32868 #ifdef HAVE_SYS_TYPES_H
32869 #include <sys/types.h>
32871 #ifdef HAVE_SYS_TIME_H
32872 #include <sys/time.h>
32874 #ifdef HAVE_SYS_SELECT_H
32875 #include <sys/select.h>
32876 #elif defined(HAVE_UNISTD_H)
32877 #include <unistd.h>
32879 #ifdef HAVE_SYS_SOCKET_H
32880 #include <sys/socket.h>
32882 #ifdef HAVE_NETINET_IN_H
32883 #include <netinet/in.h>
32885 #ifdef HAVE_NETINET_IN6_H
32886 #include <netinet/in6.h>
32888 #ifdef HAVE_SYS_UN_H
32889 #include <sys/un.h>
32894 if test "x$ac_cv_header_linux_tcp_h" = xyes
32896 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
32899 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
32900 #ifdef HAVE_SYS_TYPES_H
32901 #include <sys/types.h>
32903 #ifdef HAVE_SYS_TIME_H
32904 #include <sys/time.h>
32906 #ifdef HAVE_SYS_SELECT_H
32907 #include <sys/select.h>
32908 #elif defined(HAVE_UNISTD_H)
32909 #include <unistd.h>
32911 #ifdef HAVE_SYS_SOCKET_H
32912 #include <sys/socket.h>
32914 #ifdef HAVE_NETINET_IN_H
32915 #include <netinet/in.h>
32917 #ifdef HAVE_NETINET_IN6_H
32918 #include <netinet/in6.h>
32920 #ifdef HAVE_SYS_UN_H
32921 #include <sys/un.h>
32926 if test "x$ac_cv_header_netinet_tcp_h" = xyes
32928 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
32931 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
32932 #ifdef HAVE_SYS_TYPES_H
32933 #include <sys/types.h>
32935 #ifdef HAVE_SYS_TIME_H
32936 #include <sys/time.h>
32938 #ifdef HAVE_SYS_SELECT_H
32939 #include <sys/select.h>
32940 #elif defined(HAVE_UNISTD_H)
32941 #include <unistd.h>
32943 #ifdef HAVE_SYS_SOCKET_H
32944 #include <sys/socket.h>
32946 #ifdef HAVE_NETINET_IN_H
32947 #include <netinet/in.h>
32949 #ifdef HAVE_NETINET_IN6_H
32950 #include <netinet/in6.h>
32952 #ifdef HAVE_SYS_UN_H
32953 #include <sys/un.h>
32958 if test "x$ac_cv_header_netdb_h" = xyes
32960 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
32963 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
32964 #ifdef HAVE_SYS_TYPES_H
32965 #include <sys/types.h>
32967 #ifdef HAVE_SYS_TIME_H
32968 #include <sys/time.h>
32970 #ifdef HAVE_SYS_SELECT_H
32971 #include <sys/select.h>
32972 #elif defined(HAVE_UNISTD_H)
32973 #include <unistd.h>
32975 #ifdef HAVE_SYS_SOCKET_H
32976 #include <sys/socket.h>
32978 #ifdef HAVE_NETINET_IN_H
32979 #include <netinet/in.h>
32981 #ifdef HAVE_NETINET_IN6_H
32982 #include <netinet/in6.h>
32984 #ifdef HAVE_SYS_UN_H
32985 #include <sys/un.h>
32990 if test "x$ac_cv_header_sys_sockio_h" = xyes
32992 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
32995 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
32996 #ifdef HAVE_SYS_TYPES_H
32997 #include <sys/types.h>
32999 #ifdef HAVE_SYS_TIME_H
33000 #include <sys/time.h>
33002 #ifdef HAVE_SYS_SELECT_H
33003 #include <sys/select.h>
33004 #elif defined(HAVE_UNISTD_H)
33005 #include <unistd.h>
33007 #ifdef HAVE_SYS_SOCKET_H
33008 #include <sys/socket.h>
33010 #ifdef HAVE_NETINET_IN_H
33011 #include <netinet/in.h>
33013 #ifdef HAVE_NETINET_IN6_H
33014 #include <netinet/in6.h>
33016 #ifdef HAVE_SYS_UN_H
33017 #include <sys/un.h>
33022 if test "x$ac_cv_header_sys_stat_h" = xyes
33024 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33027 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33028 #ifdef HAVE_SYS_TYPES_H
33029 #include <sys/types.h>
33031 #ifdef HAVE_SYS_TIME_H
33032 #include <sys/time.h>
33034 #ifdef HAVE_SYS_SELECT_H
33035 #include <sys/select.h>
33036 #elif defined(HAVE_UNISTD_H)
33037 #include <unistd.h>
33039 #ifdef HAVE_SYS_SOCKET_H
33040 #include <sys/socket.h>
33042 #ifdef HAVE_NETINET_IN_H
33043 #include <netinet/in.h>
33045 #ifdef HAVE_NETINET_IN6_H
33046 #include <netinet/in6.h>
33048 #ifdef HAVE_SYS_UN_H
33049 #include <sys/un.h>
33054 if test "x$ac_cv_header_sys_param_h" = xyes
33056 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33059 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33060 #ifdef HAVE_SYS_TYPES_H
33061 #include <sys/types.h>
33063 #ifdef HAVE_SYS_TIME_H
33064 #include <sys/time.h>
33066 #ifdef HAVE_SYS_SELECT_H
33067 #include <sys/select.h>
33068 #elif defined(HAVE_UNISTD_H)
33069 #include <unistd.h>
33071 #ifdef HAVE_SYS_SOCKET_H
33072 #include <sys/socket.h>
33074 #ifdef HAVE_NETINET_IN_H
33075 #include <netinet/in.h>
33077 #ifdef HAVE_NETINET_IN6_H
33078 #include <netinet/in6.h>
33080 #ifdef HAVE_SYS_UN_H
33081 #include <sys/un.h>
33086 if test "x$ac_cv_header_termios_h" = xyes
33088 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33091 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33092 #ifdef HAVE_SYS_TYPES_H
33093 #include <sys/types.h>
33095 #ifdef HAVE_SYS_TIME_H
33096 #include <sys/time.h>
33098 #ifdef HAVE_SYS_SELECT_H
33099 #include <sys/select.h>
33100 #elif defined(HAVE_UNISTD_H)
33101 #include <unistd.h>
33103 #ifdef HAVE_SYS_SOCKET_H
33104 #include <sys/socket.h>
33106 #ifdef HAVE_NETINET_IN_H
33107 #include <netinet/in.h>
33109 #ifdef HAVE_NETINET_IN6_H
33110 #include <netinet/in6.h>
33112 #ifdef HAVE_SYS_UN_H
33113 #include <sys/un.h>
33118 if test "x$ac_cv_header_termio_h" = xyes
33120 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33123 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33124 #ifdef HAVE_SYS_TYPES_H
33125 #include <sys/types.h>
33127 #ifdef HAVE_SYS_TIME_H
33128 #include <sys/time.h>
33130 #ifdef HAVE_SYS_SELECT_H
33131 #include <sys/select.h>
33132 #elif defined(HAVE_UNISTD_H)
33133 #include <unistd.h>
33135 #ifdef HAVE_SYS_SOCKET_H
33136 #include <sys/socket.h>
33138 #ifdef HAVE_NETINET_IN_H
33139 #include <netinet/in.h>
33141 #ifdef HAVE_NETINET_IN6_H
33142 #include <netinet/in6.h>
33144 #ifdef HAVE_SYS_UN_H
33145 #include <sys/un.h>
33150 if test "x$ac_cv_header_fcntl_h" = xyes
33152 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33155 ac_fn_c_check_header_compile "$LINENO" "alloca.h" "ac_cv_header_alloca_h" "
33156 #ifdef HAVE_SYS_TYPES_H
33157 #include <sys/types.h>
33159 #ifdef HAVE_SYS_TIME_H
33160 #include <sys/time.h>
33162 #ifdef HAVE_SYS_SELECT_H
33163 #include <sys/select.h>
33164 #elif defined(HAVE_UNISTD_H)
33165 #include <unistd.h>
33167 #ifdef HAVE_SYS_SOCKET_H
33168 #include <sys/socket.h>
33170 #ifdef HAVE_NETINET_IN_H
33171 #include <netinet/in.h>
33173 #ifdef HAVE_NETINET_IN6_H
33174 #include <netinet/in6.h>
33176 #ifdef HAVE_SYS_UN_H
33177 #include <sys/un.h>
33182 if test "x$ac_cv_header_alloca_h" = xyes
33184 printf "%s\n" "#define HAVE_ALLOCA_H 1" >>confdefs.h
33187 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33188 #ifdef HAVE_SYS_TYPES_H
33189 #include <sys/types.h>
33191 #ifdef HAVE_SYS_TIME_H
33192 #include <sys/time.h>
33194 #ifdef HAVE_SYS_SELECT_H
33195 #include <sys/select.h>
33196 #elif defined(HAVE_UNISTD_H)
33197 #include <unistd.h>
33199 #ifdef HAVE_SYS_SOCKET_H
33200 #include <sys/socket.h>
33202 #ifdef HAVE_NETINET_IN_H
33203 #include <netinet/in.h>
33205 #ifdef HAVE_NETINET_IN6_H
33206 #include <netinet/in6.h>
33208 #ifdef HAVE_SYS_UN_H
33209 #include <sys/un.h>
33214 if test "x$ac_cv_header_io_h" = xyes
33216 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33219 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33220 #ifdef HAVE_SYS_TYPES_H
33221 #include <sys/types.h>
33223 #ifdef HAVE_SYS_TIME_H
33224 #include <sys/time.h>
33226 #ifdef HAVE_SYS_SELECT_H
33227 #include <sys/select.h>
33228 #elif defined(HAVE_UNISTD_H)
33229 #include <unistd.h>
33231 #ifdef HAVE_SYS_SOCKET_H
33232 #include <sys/socket.h>
33234 #ifdef HAVE_NETINET_IN_H
33235 #include <netinet/in.h>
33237 #ifdef HAVE_NETINET_IN6_H
33238 #include <netinet/in6.h>
33240 #ifdef HAVE_SYS_UN_H
33241 #include <sys/un.h>
33246 if test "x$ac_cv_header_pwd_h" = xyes
33248 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33251 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33252 #ifdef HAVE_SYS_TYPES_H
33253 #include <sys/types.h>
33255 #ifdef HAVE_SYS_TIME_H
33256 #include <sys/time.h>
33258 #ifdef HAVE_SYS_SELECT_H
33259 #include <sys/select.h>
33260 #elif defined(HAVE_UNISTD_H)
33261 #include <unistd.h>
33263 #ifdef HAVE_SYS_SOCKET_H
33264 #include <sys/socket.h>
33266 #ifdef HAVE_NETINET_IN_H
33267 #include <netinet/in.h>
33269 #ifdef HAVE_NETINET_IN6_H
33270 #include <netinet/in6.h>
33272 #ifdef HAVE_SYS_UN_H
33273 #include <sys/un.h>
33278 if test "x$ac_cv_header_utime_h" = xyes
33280 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33283 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33284 #ifdef HAVE_SYS_TYPES_H
33285 #include <sys/types.h>
33287 #ifdef HAVE_SYS_TIME_H
33288 #include <sys/time.h>
33290 #ifdef HAVE_SYS_SELECT_H
33291 #include <sys/select.h>
33292 #elif defined(HAVE_UNISTD_H)
33293 #include <unistd.h>
33295 #ifdef HAVE_SYS_SOCKET_H
33296 #include <sys/socket.h>
33298 #ifdef HAVE_NETINET_IN_H
33299 #include <netinet/in.h>
33301 #ifdef HAVE_NETINET_IN6_H
33302 #include <netinet/in6.h>
33304 #ifdef HAVE_SYS_UN_H
33305 #include <sys/un.h>
33310 if test "x$ac_cv_header_sys_utime_h" = xyes
33312 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33315 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33316 #ifdef HAVE_SYS_TYPES_H
33317 #include <sys/types.h>
33319 #ifdef HAVE_SYS_TIME_H
33320 #include <sys/time.h>
33322 #ifdef HAVE_SYS_SELECT_H
33323 #include <sys/select.h>
33324 #elif defined(HAVE_UNISTD_H)
33325 #include <unistd.h>
33327 #ifdef HAVE_SYS_SOCKET_H
33328 #include <sys/socket.h>
33330 #ifdef HAVE_NETINET_IN_H
33331 #include <netinet/in.h>
33333 #ifdef HAVE_NETINET_IN6_H
33334 #include <netinet/in6.h>
33336 #ifdef HAVE_SYS_UN_H
33337 #include <sys/un.h>
33342 if test "x$ac_cv_header_sys_poll_h" = xyes
33344 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33347 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33348 #ifdef HAVE_SYS_TYPES_H
33349 #include <sys/types.h>
33351 #ifdef HAVE_SYS_TIME_H
33352 #include <sys/time.h>
33354 #ifdef HAVE_SYS_SELECT_H
33355 #include <sys/select.h>
33356 #elif defined(HAVE_UNISTD_H)
33357 #include <unistd.h>
33359 #ifdef HAVE_SYS_SOCKET_H
33360 #include <sys/socket.h>
33362 #ifdef HAVE_NETINET_IN_H
33363 #include <netinet/in.h>
33365 #ifdef HAVE_NETINET_IN6_H
33366 #include <netinet/in6.h>
33368 #ifdef HAVE_SYS_UN_H
33369 #include <sys/un.h>
33374 if test "x$ac_cv_header_poll_h" = xyes
33376 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33379 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33380 #ifdef HAVE_SYS_TYPES_H
33381 #include <sys/types.h>
33383 #ifdef HAVE_SYS_TIME_H
33384 #include <sys/time.h>
33386 #ifdef HAVE_SYS_SELECT_H
33387 #include <sys/select.h>
33388 #elif defined(HAVE_UNISTD_H)
33389 #include <unistd.h>
33391 #ifdef HAVE_SYS_SOCKET_H
33392 #include <sys/socket.h>
33394 #ifdef HAVE_NETINET_IN_H
33395 #include <netinet/in.h>
33397 #ifdef HAVE_NETINET_IN6_H
33398 #include <netinet/in6.h>
33400 #ifdef HAVE_SYS_UN_H
33401 #include <sys/un.h>
33406 if test "x$ac_cv_header_socket_h" = xyes
33408 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33411 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33412 #ifdef HAVE_SYS_TYPES_H
33413 #include <sys/types.h>
33415 #ifdef HAVE_SYS_TIME_H
33416 #include <sys/time.h>
33418 #ifdef HAVE_SYS_SELECT_H
33419 #include <sys/select.h>
33420 #elif defined(HAVE_UNISTD_H)
33421 #include <unistd.h>
33423 #ifdef HAVE_SYS_SOCKET_H
33424 #include <sys/socket.h>
33426 #ifdef HAVE_NETINET_IN_H
33427 #include <netinet/in.h>
33429 #ifdef HAVE_NETINET_IN6_H
33430 #include <netinet/in6.h>
33432 #ifdef HAVE_SYS_UN_H
33433 #include <sys/un.h>
33438 if test "x$ac_cv_header_sys_resource_h" = xyes
33440 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33443 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33444 #ifdef HAVE_SYS_TYPES_H
33445 #include <sys/types.h>
33447 #ifdef HAVE_SYS_TIME_H
33448 #include <sys/time.h>
33450 #ifdef HAVE_SYS_SELECT_H
33451 #include <sys/select.h>
33452 #elif defined(HAVE_UNISTD_H)
33453 #include <unistd.h>
33455 #ifdef HAVE_SYS_SOCKET_H
33456 #include <sys/socket.h>
33458 #ifdef HAVE_NETINET_IN_H
33459 #include <netinet/in.h>
33461 #ifdef HAVE_NETINET_IN6_H
33462 #include <netinet/in6.h>
33464 #ifdef HAVE_SYS_UN_H
33465 #include <sys/un.h>
33470 if test "x$ac_cv_header_libgen_h" = xyes
33472 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33475 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33476 #ifdef HAVE_SYS_TYPES_H
33477 #include <sys/types.h>
33479 #ifdef HAVE_SYS_TIME_H
33480 #include <sys/time.h>
33482 #ifdef HAVE_SYS_SELECT_H
33483 #include <sys/select.h>
33484 #elif defined(HAVE_UNISTD_H)
33485 #include <unistd.h>
33487 #ifdef HAVE_SYS_SOCKET_H
33488 #include <sys/socket.h>
33490 #ifdef HAVE_NETINET_IN_H
33491 #include <netinet/in.h>
33493 #ifdef HAVE_NETINET_IN6_H
33494 #include <netinet/in6.h>
33496 #ifdef HAVE_SYS_UN_H
33497 #include <sys/un.h>
33502 if test "x$ac_cv_header_locale_h" = xyes
33504 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33507 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
33508 #ifdef HAVE_SYS_TYPES_H
33509 #include <sys/types.h>
33511 #ifdef HAVE_SYS_TIME_H
33512 #include <sys/time.h>
33514 #ifdef HAVE_SYS_SELECT_H
33515 #include <sys/select.h>
33516 #elif defined(HAVE_UNISTD_H)
33517 #include <unistd.h>
33519 #ifdef HAVE_SYS_SOCKET_H
33520 #include <sys/socket.h>
33522 #ifdef HAVE_NETINET_IN_H
33523 #include <netinet/in.h>
33525 #ifdef HAVE_NETINET_IN6_H
33526 #include <netinet/in6.h>
33528 #ifdef HAVE_SYS_UN_H
33529 #include <sys/un.h>
33534 if test "x$ac_cv_header_errno_h" = xyes
33536 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
33539 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33540 #ifdef HAVE_SYS_TYPES_H
33541 #include <sys/types.h>
33543 #ifdef HAVE_SYS_TIME_H
33544 #include <sys/time.h>
33546 #ifdef HAVE_SYS_SELECT_H
33547 #include <sys/select.h>
33548 #elif defined(HAVE_UNISTD_H)
33549 #include <unistd.h>
33551 #ifdef HAVE_SYS_SOCKET_H
33552 #include <sys/socket.h>
33554 #ifdef HAVE_NETINET_IN_H
33555 #include <netinet/in.h>
33557 #ifdef HAVE_NETINET_IN6_H
33558 #include <netinet/in6.h>
33560 #ifdef HAVE_SYS_UN_H
33561 #include <sys/un.h>
33566 if test "x$ac_cv_header_stdbool_h" = xyes
33568 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33571 ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
33572 #ifdef HAVE_SYS_TYPES_H
33573 #include <sys/types.h>
33575 #ifdef HAVE_SYS_TIME_H
33576 #include <sys/time.h>
33578 #ifdef HAVE_SYS_SELECT_H
33579 #include <sys/select.h>
33580 #elif defined(HAVE_UNISTD_H)
33581 #include <unistd.h>
33583 #ifdef HAVE_SYS_SOCKET_H
33584 #include <sys/socket.h>
33586 #ifdef HAVE_NETINET_IN_H
33587 #include <netinet/in.h>
33589 #ifdef HAVE_NETINET_IN6_H
33590 #include <netinet/in6.h>
33592 #ifdef HAVE_SYS_UN_H
33593 #include <sys/un.h>
33598 if test "x$ac_cv_header_arpa_tftp_h" = xyes
33600 printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
33603 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33604 #ifdef HAVE_SYS_TYPES_H
33605 #include <sys/types.h>
33607 #ifdef HAVE_SYS_TIME_H
33608 #include <sys/time.h>
33610 #ifdef HAVE_SYS_SELECT_H
33611 #include <sys/select.h>
33612 #elif defined(HAVE_UNISTD_H)
33613 #include <unistd.h>
33615 #ifdef HAVE_SYS_SOCKET_H
33616 #include <sys/socket.h>
33618 #ifdef HAVE_NETINET_IN_H
33619 #include <netinet/in.h>
33621 #ifdef HAVE_NETINET_IN6_H
33622 #include <netinet/in6.h>
33624 #ifdef HAVE_SYS_UN_H
33625 #include <sys/un.h>
33630 if test "x$ac_cv_header_sys_filio_h" = xyes
33632 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
33635 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
33636 #ifdef HAVE_SYS_TYPES_H
33637 #include <sys/types.h>
33639 #ifdef HAVE_SYS_TIME_H
33640 #include <sys/time.h>
33642 #ifdef HAVE_SYS_SELECT_H
33643 #include <sys/select.h>
33644 #elif defined(HAVE_UNISTD_H)
33645 #include <unistd.h>
33647 #ifdef HAVE_SYS_SOCKET_H
33648 #include <sys/socket.h>
33650 #ifdef HAVE_NETINET_IN_H
33651 #include <netinet/in.h>
33653 #ifdef HAVE_NETINET_IN6_H
33654 #include <netinet/in6.h>
33656 #ifdef HAVE_SYS_UN_H
33657 #include <sys/un.h>
33662 if test "x$ac_cv_header_sys_wait_h" = xyes
33664 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
33667 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
33668 #ifdef HAVE_SYS_TYPES_H
33669 #include <sys/types.h>
33671 #ifdef HAVE_SYS_TIME_H
33672 #include <sys/time.h>
33674 #ifdef HAVE_SYS_SELECT_H
33675 #include <sys/select.h>
33676 #elif defined(HAVE_UNISTD_H)
33677 #include <unistd.h>
33679 #ifdef HAVE_SYS_SOCKET_H
33680 #include <sys/socket.h>
33682 #ifdef HAVE_NETINET_IN_H
33683 #include <netinet/in.h>
33685 #ifdef HAVE_NETINET_IN6_H
33686 #include <netinet/in6.h>
33688 #ifdef HAVE_SYS_UN_H
33689 #include <sys/un.h>
33694 if test "x$ac_cv_header_setjmp_h" = xyes
33696 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
33702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
33703 printf %s "checking for an ANSI C-conforming const... " >&6; }
33704 if test ${ac_cv_c_const+y}
33706 printf %s "(cached) " >&6
33708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33709 /* end confdefs.h. */
33714 #ifndef __cplusplus
33715 /* Ultrix mips cc rejects this sort of thing. */
33716 typedef int charset[2];
33717 const charset cs = { 0, 0 };
33718 /* SunOS 4.1.1 cc rejects this. */
33719 char const *const *pcpcc;
33721 /* NEC SVR4.0.2 mips cc rejects this. */
33722 struct point {int x, y;};
33723 static struct point const zero = {0,0};
33724 /* IBM XL C 1.02.0.0 rejects this.
33725 It does not let you subtract one const X* pointer from another in
33726 an arm of an if-expression whose if-part is not a constant
33728 const char *g = "string";
33729 pcpcc = &g + (g ? g-g : 0);
33730 /* HPUX 7.0 cc rejects these. */
33732 ppc = (char**) pcpcc;
33733 pcpcc = (char const *const *) ppc;
33734 { /* SCO 3.2v4 cc rejects this sort of thing. */
33737 char const *s = 0 ? (char *) 0 : (char const *) 0;
33742 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33743 int x[] = {25, 17};
33744 const int *foo = &x[0];
33747 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33748 typedef const int *iptr;
33752 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
33753 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33754 struct s { int j; const int *ap[3]; } bx;
33755 struct s *b = &bx; b->j = 5;
33757 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33758 const int foo = 10;
33759 if (!foo) return 0;
33761 return !cs[0] && !zero.x;
33768 if ac_fn_c_try_compile "$LINENO"
33774 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
33777 printf "%s\n" "$ac_cv_c_const" >&6; }
33778 if test $ac_cv_c_const = no; then
33780 printf "%s\n" "#define const /**/" >>confdefs.h
33785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
33786 printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
33787 if test ${curl_cv_variadic_macros_c99+y}
33789 printf %s "(cached) " >&6
33792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33793 /* end confdefs.h. */
33796 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
33797 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
33798 int fun3(int arg1, int arg2, int arg3);
33799 int fun2(int arg1, int arg2);
33800 int fun3(int arg1, int arg2, int arg3)
33801 { return arg1 + arg2 + arg3; }
33802 int fun2(int arg1, int arg2)
33803 { return arg1 + arg2; }
33808 int res3 = c99_vmacro3(1, 2, 3);
33809 int res2 = c99_vmacro2(1, 2);
33816 if ac_fn_c_try_compile "$LINENO"
33819 curl_cv_variadic_macros_c99="yes"
33823 curl_cv_variadic_macros_c99="no"
33826 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
33830 printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
33831 case "$curl_cv_variadic_macros_c99" in
33834 printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
33838 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
33839 printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
33840 if test ${curl_cv_variadic_macros_gcc+y}
33842 printf %s "(cached) " >&6
33845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33846 /* end confdefs.h. */
33849 #define gcc_vmacro3(first, args...) fun3(first, args)
33850 #define gcc_vmacro2(first, args...) fun2(first, args)
33851 int fun3(int arg1, int arg2, int arg3);
33852 int fun2(int arg1, int arg2);
33853 int fun3(int arg1, int arg2, int arg3)
33854 { return arg1 + arg2 + arg3; }
33855 int fun2(int arg1, int arg2)
33856 { return arg1 + arg2; }
33861 int res3 = gcc_vmacro3(1, 2, 3);
33862 int res2 = gcc_vmacro2(1, 2);
33869 if ac_fn_c_try_compile "$LINENO"
33872 curl_cv_variadic_macros_gcc="yes"
33876 curl_cv_variadic_macros_gcc="no"
33879 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
33883 printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
33884 case "$curl_cv_variadic_macros_gcc" in
33887 printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
33892 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33893 if test "x$ac_cv_type_size_t" = xyes
33898 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33904 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33905 if test "x$ac_cv_header_sys_types_h" = xyes
33907 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33910 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
33911 if test "x$ac_cv_header_sys_time_h" = xyes
33913 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33916 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33917 if test "x$ac_cv_header_sys_socket_h" = xyes
33919 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
33924 printf %s "checking for struct timeval... " >&6; }
33925 if test ${curl_cv_struct_timeval+y}
33927 printf %s "(cached) " >&6
33930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33931 /* end confdefs.h. */
33935 #ifdef HAVE_WINDOWS_H
33936 #ifndef WIN32_LEAN_AND_MEAN
33937 #define WIN32_LEAN_AND_MEAN
33939 #include <windows.h>
33940 #ifdef HAVE_WINSOCK2_H
33941 #include <winsock2.h>
33944 #ifdef HAVE_SYS_TYPES_H
33945 #include <sys/types.h>
33947 #ifdef HAVE_SYS_TIME_H
33948 #include <sys/time.h>
33951 #ifdef HAVE_SYS_SOCKET_H
33952 #include <sys/socket.h>
33967 if ac_fn_c_try_compile "$LINENO"
33970 curl_cv_struct_timeval="yes"
33974 curl_cv_struct_timeval="no"
33977 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
33981 printf "%s\n" "$curl_cv_struct_timeval" >&6; }
33982 case "$curl_cv_struct_timeval" in
33985 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
33992 if test "x$cross_compiling" != xyes; then
33994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
33995 printf %s "checking run-time libs availability... " >&6; }
33998 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
33999 *) library_path_var=LD_LIBRARY_PATH ;;
34002 eval "old=$$library_path_var"
34003 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
34005 eval "export $library_path_var"
34006 if test "$cross_compiling" = yes
34008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34010 as_fn_error $? "cannot run test program while cross compiling
34011 See \`config.log' for more details" "$LINENO" 5; }
34013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34014 /* end confdefs.h. */
34022 if ac_fn_c_try_run "$LINENO"
34024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34025 printf "%s\n" "fine" >&6; }
34027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34028 printf "%s\n" "failed" >&6; }
34029 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34032 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34033 conftest.$ac_objext conftest.beam conftest.$ac_ext
34036 eval "$library_path_var=\$old" # restore
34042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34043 printf %s "checking size of size_t... " >&6; }
34044 if test ${ac_cv_sizeof_size_t+y}
34046 printf %s "(cached) " >&6
34048 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34050 /* end confdefs.h. */
34052 #include <sys/types.h>
34057 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
34062 if ac_fn_c_try_compile "$LINENO"
34064 ac_cv_sizeof_size_t=$ac_size
34066 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34067 if test x$ac_cv_sizeof_size_t != x ; then break; fi
34072 if test x$ac_cv_sizeof_size_t = x ; then
34073 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
34075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
34076 printf "%s\n" "$ac_cv_sizeof_size_t" >&6; }
34078 printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h
34081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34082 printf %s "checking size of long... " >&6; }
34083 if test ${ac_cv_sizeof_long+y}
34085 printf %s "(cached) " >&6
34087 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34089 /* end confdefs.h. */
34091 #include <sys/types.h>
34096 switch (0) case 0: case (sizeof (long) == $ac_size):;
34101 if ac_fn_c_try_compile "$LINENO"
34103 ac_cv_sizeof_long=$ac_size
34105 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34106 if test x$ac_cv_sizeof_long != x ; then break; fi
34111 if test x$ac_cv_sizeof_long = x ; then
34112 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
34114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
34115 printf "%s\n" "$ac_cv_sizeof_long" >&6; }
34117 printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h
34120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34121 printf %s "checking size of int... " >&6; }
34122 if test ${ac_cv_sizeof_int+y}
34124 printf %s "(cached) " >&6
34126 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34128 /* end confdefs.h. */
34130 #include <sys/types.h>
34135 switch (0) case 0: case (sizeof (int) == $ac_size):;
34140 if ac_fn_c_try_compile "$LINENO"
34142 ac_cv_sizeof_int=$ac_size
34144 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34145 if test x$ac_cv_sizeof_int != x ; then break; fi
34150 if test x$ac_cv_sizeof_int = x ; then
34151 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
34153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
34154 printf "%s\n" "$ac_cv_sizeof_int" >&6; }
34156 printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h
34159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
34160 printf %s "checking size of short... " >&6; }
34161 if test ${ac_cv_sizeof_short+y}
34163 printf %s "(cached) " >&6
34165 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34167 /* end confdefs.h. */
34169 #include <sys/types.h>
34174 switch (0) case 0: case (sizeof (short) == $ac_size):;
34179 if ac_fn_c_try_compile "$LINENO"
34181 ac_cv_sizeof_short=$ac_size
34183 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34184 if test x$ac_cv_sizeof_short != x ; then break; fi
34189 if test x$ac_cv_sizeof_short = x ; then
34190 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
34192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
34193 printf "%s\n" "$ac_cv_sizeof_short" >&6; }
34195 printf "%s\n" "#define SIZEOF_SHORT $ac_cv_sizeof_short" >>confdefs.h
34198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34199 printf %s "checking size of time_t... " >&6; }
34200 if test ${ac_cv_sizeof_time_t+y}
34202 printf %s "(cached) " >&6
34204 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34205 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34206 /* end confdefs.h. */
34208 #include <sys/types.h>
34213 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
34218 if ac_fn_c_try_compile "$LINENO"
34220 ac_cv_sizeof_time_t=$ac_size
34222 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34223 if test x$ac_cv_sizeof_time_t != x ; then break; fi
34228 if test x$ac_cv_sizeof_time_t = x ; then
34229 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
34231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
34232 printf "%s\n" "$ac_cv_sizeof_time_t" >&6; }
34234 printf "%s\n" "#define SIZEOF_TIME_T $ac_cv_sizeof_time_t" >>confdefs.h
34237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34238 printf %s "checking size of off_t... " >&6; }
34239 if test ${ac_cv_sizeof_off_t+y}
34241 printf %s "(cached) " >&6
34243 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34245 /* end confdefs.h. */
34247 #include <sys/types.h>
34252 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
34257 if ac_fn_c_try_compile "$LINENO"
34259 ac_cv_sizeof_off_t=$ac_size
34261 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34262 if test x$ac_cv_sizeof_off_t != x ; then break; fi
34267 if test x$ac_cv_sizeof_off_t = x ; then
34268 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
34270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
34271 printf "%s\n" "$ac_cv_sizeof_off_t" >&6; }
34273 printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h
34278 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34280 printf %s "checking size of curl_off_t... " >&6; }
34281 if test ${ac_cv_sizeof_curl_off_t+y}
34283 printf %s "(cached) " >&6
34285 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
34286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34287 /* end confdefs.h. */
34289 #include <sys/types.h>
34291 #include <curl/system.h>
34296 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
34301 if ac_fn_c_try_compile "$LINENO"
34303 ac_cv_sizeof_curl_off_t=$ac_size
34305 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34306 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
34311 if test x$ac_cv_sizeof_curl_off_t = x ; then
34312 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
34314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
34315 printf "%s\n" "$ac_cv_sizeof_curl_off_t" >&6; }
34317 printf "%s\n" "#define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t" >>confdefs.h
34322 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34323 if test "x$ac_cv_type_long_long" = xyes
34326 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34333 if test "xyes" = "x$longlong"; then
34334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
34335 printf %s "checking if numberLL works... " >&6; }
34336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34337 /* end confdefs.h. */
34344 long long val = 1000LL;
34351 if ac_fn_c_try_compile "$LINENO"
34354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34355 printf "%s\n" "yes" >&6; }
34357 printf "%s\n" "#define HAVE_LL 1" >>confdefs.h
34362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34363 printf "%s\n" "no" >&6; }
34366 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34370 # check for ssize_t
34371 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34372 if test "x$ac_cv_type_ssize_t" = xyes
34377 printf "%s\n" "#define ssize_t int" >>confdefs.h
34382 # check for bool type
34383 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34384 #ifdef HAVE_SYS_TYPES_H
34385 #include <sys/types.h>
34387 #ifdef HAVE_STDBOOL_H
34388 #include <stdbool.h>
34392 if test "x$ac_cv_type_bool" = xyes
34396 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34402 # check for sa_family_t
34403 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34404 #ifdef HAVE_SYS_SOCKET_H
34405 #include <sys/socket.h>
34409 if test "x$ac_cv_type_sa_family_t" = xyes
34412 printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34416 # The windows name?
34417 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34418 #ifdef HAVE_SYS_SOCKET_H
34419 #include <sys/socket.h>
34423 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34426 printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34430 printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34438 # check for suseconds_t
34439 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34440 #ifdef HAVE_SYS_TYPES_H
34441 #include <sys/types.h>
34443 #ifdef HAVE_SYS_TIME_H
34444 #include <sys/time.h>
34448 if test "x$ac_cv_type_suseconds_t" = xyes
34452 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34459 printf %s "checking if time_t is unsigned... " >&6; }
34462 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
34463 *) library_path_var=LD_LIBRARY_PATH ;;
34466 eval "old=$$library_path_var"
34467 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
34469 eval "export $library_path_var"
34470 if test "$cross_compiling" = yes
34472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34473 printf "%s\n" "no" >&6; }
34476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34477 /* end confdefs.h. */
34480 #include <limits.h>
34485 if ac_fn_c_try_run "$LINENO"
34487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34488 printf "%s\n" "yes" >&6; }
34490 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34495 printf "%s\n" "no" >&6; }
34498 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34499 conftest.$ac_objext conftest.beam conftest.$ac_ext
34502 eval "$library_path_var=\$old" # restore
34506 curl_includes_poll="\
34507 /* includes start */
34508 #ifdef HAVE_SYS_TYPES_H
34509 # include <sys/types.h>
34514 #ifdef HAVE_SYS_POLL_H
34515 # include <sys/poll.h>
34517 /* includes end */"
34518 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34520 if test "x$ac_cv_header_sys_types_h" = xyes
34522 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34525 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34527 if test "x$ac_cv_header_poll_h" = xyes
34529 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34532 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34534 if test "x$ac_cv_header_sys_poll_h" = xyes
34536 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34543 tst_poll_events_macro_defined="unknown"
34545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34546 /* end confdefs.h. */
34549 $curl_includes_poll
34554 #if defined(events) || defined(revents)
34557 force compilation error
34565 if ac_fn_c_try_compile "$LINENO"
34568 tst_poll_events_macro_defined="yes"
34572 tst_poll_events_macro_defined="no"
34575 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34577 if test "$tst_poll_events_macro_defined" = "yes"; then
34578 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34580 cat >>confdefs.h <<_EOF
34581 #define CURL_PULL_SYS_POLL_H 1
34590 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34592 #ifdef HAVE_WINDOWS_H
34593 #ifndef WIN32_LEAN_AND_MEAN
34594 #define WIN32_LEAN_AND_MEAN
34596 #include <windows.h>
34597 #ifdef HAVE_WINSOCK2_H
34598 #include <winsock2.h>
34601 #ifdef HAVE_SYS_TYPES_H
34602 #include <sys/types.h>
34604 #ifdef HAVE_SYS_SOCKET_H
34605 #include <sys/socket.h>
34607 #ifdef HAVE_NETINET_IN_H
34608 #include <netinet/in.h>
34610 #ifdef HAVE_ARPA_INET_H
34611 #include <arpa/inet.h>
34616 if test "x$ac_cv_type_in_addr_t" = xyes
34621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34622 printf %s "checking for in_addr_t equivalent... " >&6; }
34623 if test ${curl_cv_in_addr_t_equiv+y}
34625 printf %s "(cached) " >&6
34628 curl_cv_in_addr_t_equiv="unknown"
34629 for t in "unsigned long" int size_t unsigned long; do
34630 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
34631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34632 /* end confdefs.h. */
34636 #ifdef HAVE_WINDOWS_H
34637 #ifndef WIN32_LEAN_AND_MEAN
34638 #define WIN32_LEAN_AND_MEAN
34640 #include <windows.h>
34641 #ifdef HAVE_WINSOCK2_H
34642 #include <winsock2.h>
34645 #ifdef HAVE_SYS_TYPES_H
34646 #include <sys/types.h>
34648 #ifdef HAVE_SYS_SOCKET_H
34649 #include <sys/socket.h>
34651 #ifdef HAVE_NETINET_IN_H
34652 #include <netinet/in.h>
34654 #ifdef HAVE_ARPA_INET_H
34655 #include <arpa/inet.h>
34662 $t data = inet_addr ("1.2.3.4");
34669 if ac_fn_c_try_link "$LINENO"
34672 curl_cv_in_addr_t_equiv="$t"
34675 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34676 conftest$ac_exeext conftest.$ac_ext
34681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
34682 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
34683 case "$curl_cv_in_addr_t_equiv" in
34685 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
34689 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
34699 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
34701 #ifdef HAVE_WINDOWS_H
34702 #ifndef WIN32_LEAN_AND_MEAN
34703 #define WIN32_LEAN_AND_MEAN
34705 #include <windows.h>
34706 #ifdef HAVE_WINSOCK2_H
34707 #include <winsock2.h>
34710 #ifdef HAVE_SYS_TYPES_H
34711 #include <sys/types.h>
34713 #ifdef HAVE_SYS_SOCKET_H
34714 #include <sys/socket.h>
34716 #ifdef HAVE_NETINET_IN_H
34717 #include <netinet/in.h>
34719 #ifdef HAVE_ARPA_INET_H
34720 #include <arpa/inet.h>
34725 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
34728 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34735 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
34736 if test "x$ac_cv_header_sys_select_h" = xyes
34738 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
34741 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34742 if test "x$ac_cv_header_sys_socket_h" = xyes
34744 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
34750 printf %s "checking for select... " >&6; }
34751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34752 /* end confdefs.h. */
34756 #ifdef HAVE_WINDOWS_H
34757 #ifndef WIN32_LEAN_AND_MEAN
34758 #define WIN32_LEAN_AND_MEAN
34760 #include <windows.h>
34761 #ifdef HAVE_WINSOCK2_H
34762 #include <winsock2.h>
34765 #ifdef HAVE_SYS_TYPES_H
34766 #include <sys/types.h>
34768 #ifdef HAVE_SYS_TIME_H
34769 #include <sys/time.h>
34772 #ifndef HAVE_WINDOWS_H
34773 #ifdef HAVE_SYS_SELECT_H
34774 #include <sys/select.h>
34775 #elif defined(HAVE_UNISTD_H)
34776 #include <unistd.h>
34778 #ifdef HAVE_SYS_SOCKET_H
34779 #include <sys/socket.h>
34781 #ifdef HAVE_PROTO_BSDSOCKET_H
34782 #include <proto/bsdsocket.h>
34783 struct Library *SocketBase = NULL;
34784 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
34791 select(0, 0, 0, 0, 0);
34798 if ac_fn_c_try_link "$LINENO"
34801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34802 printf "%s\n" "yes" >&6; }
34803 curl_cv_select="yes"
34807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34808 printf "%s\n" "no" >&6; }
34809 curl_cv_select="no"
34812 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34813 conftest$ac_exeext conftest.$ac_ext
34815 if test "$curl_cv_select" = "yes"; then
34816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
34817 printf %s "checking types of args and return type for select... " >&6; }
34818 if test ${curl_cv_func_select_args+y}
34820 printf %s "(cached) " >&6
34823 curl_cv_func_select_args="unknown"
34824 for sel_retv in 'int' 'ssize_t'; do
34825 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
34826 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
34827 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
34828 if test "$curl_cv_func_select_args" = "unknown"; then
34829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34830 /* end confdefs.h. */
34834 #ifdef HAVE_WINDOWS_H
34835 #ifndef WIN32_LEAN_AND_MEAN
34836 #define WIN32_LEAN_AND_MEAN
34838 #include <windows.h>
34839 #ifdef HAVE_WINSOCK2_H
34840 #include <winsock2.h>
34842 #define SELECTCALLCONV PASCAL
34844 #ifdef HAVE_SYS_TYPES_H
34845 #include <sys/types.h>
34847 #ifdef HAVE_SYS_TIME_H
34848 #include <sys/time.h>
34851 #ifndef HAVE_WINDOWS_H
34852 #ifdef HAVE_SYS_SELECT_H
34853 #include <sys/select.h>
34854 #elif defined(HAVE_UNISTD_H)
34855 #include <unistd.h>
34857 #ifdef HAVE_SYS_SOCKET_H
34858 #include <sys/socket.h>
34860 #ifdef HAVE_PROTO_BSDSOCKET_H
34861 #include <proto/bsdsocket.h>
34862 struct Library *SocketBase = NULL;
34863 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
34865 #define SELECTCALLCONV
34867 #ifndef HAVE_STRUCT_TIMEVAL
34873 #ifndef HAVE_PROTO_BSDSOCKET_H
34874 extern $sel_retv SELECTCALLCONV
34886 $sel_arg234 rfds=0;
34887 $sel_arg234 wfds=0;
34888 $sel_arg234 efds=0;
34889 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
34896 if ac_fn_c_try_compile "$LINENO"
34899 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
34902 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
34911 printf "%s\n" "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
34912 if test "$curl_cv_func_select_args" = "unknown"; then
34913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
34914 printf "%s\n" "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
34915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
34916 printf "%s\n" "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
34918 select_prev_IFS=$IFS; IFS=','
34919 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
34920 IFS=$select_prev_IFS
34923 sel_qual_type_arg5=$3
34926 printf "%s\n" "#define SELECT_TYPE_ARG1 $1" >>confdefs.h
34929 printf "%s\n" "#define SELECT_TYPE_ARG234 $2" >>confdefs.h
34932 printf "%s\n" "#define SELECT_TYPE_RETV $4" >>confdefs.h
34937 case $prev_sh_opts in
34945 case "$sel_qual_type_arg5" in
34947 sel_qual_arg5=const
34948 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
34952 sel_type_arg5=$sel_qual_type_arg5
34957 printf "%s\n" "#define SELECT_QUAL_ARG5 $sel_qual_arg5" >>confdefs.h
34960 printf "%s\n" "#define SELECT_TYPE_ARG5 $sel_type_arg5" >>confdefs.h
34963 case $prev_sh_opts in
34972 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34974 curl_cv_func_select="yes"
34980 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34981 if test "x$ac_cv_header_sys_types_h" = xyes
34983 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34986 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34987 if test "x$ac_cv_header_sys_socket_h" = xyes
34989 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
34995 printf %s "checking for recv... " >&6; }
34996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34997 /* end confdefs.h. */
35001 #ifdef HAVE_WINDOWS_H
35002 #ifndef WIN32_LEAN_AND_MEAN
35003 #define WIN32_LEAN_AND_MEAN
35005 #include <windows.h>
35006 #ifdef HAVE_WINSOCK2_H
35007 #include <winsock2.h>
35010 #ifdef HAVE_PROTO_BSDSOCKET_H
35011 #include <proto/bsdsocket.h>
35012 struct Library *SocketBase = NULL;
35014 #ifdef HAVE_SYS_TYPES_H
35015 #include <sys/types.h>
35017 #ifdef HAVE_SYS_SOCKET_H
35018 #include <sys/socket.h>
35032 if ac_fn_c_try_link "$LINENO"
35035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35036 printf "%s\n" "yes" >&6; }
35041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35042 printf "%s\n" "no" >&6; }
35046 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35047 conftest$ac_exeext conftest.$ac_ext
35049 if test "$curl_cv_recv" = "yes"; then
35050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
35051 printf %s "checking types of args and return type for recv... " >&6; }
35052 if test ${curl_cv_func_recv_args+y}
35054 printf %s "(cached) " >&6
35057 curl_cv_func_recv_args="unknown"
35058 for recv_retv in 'int' 'ssize_t'; do
35059 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
35060 for recv_arg2 in 'char *' 'void *'; do
35061 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
35062 for recv_arg4 in 'int' 'unsigned int'; do
35063 if test "$curl_cv_func_recv_args" = "unknown"; then
35064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35065 /* end confdefs.h. */
35069 #ifdef HAVE_WINDOWS_H
35070 #ifndef WIN32_LEAN_AND_MEAN
35071 #define WIN32_LEAN_AND_MEAN
35073 #include <windows.h>
35074 #ifdef HAVE_WINSOCK2_H
35075 #include <winsock2.h>
35077 #define RECVCALLCONV PASCAL
35079 #ifdef HAVE_PROTO_BSDSOCKET_H
35080 #include <proto/bsdsocket.h>
35081 struct Library *SocketBase = NULL;
35083 #ifdef HAVE_SYS_TYPES_H
35084 #include <sys/types.h>
35086 #ifdef HAVE_SYS_SOCKET_H
35087 #include <sys/socket.h>
35089 #define RECVCALLCONV
35091 #ifndef HAVE_PROTO_BSDSOCKET_H
35092 extern $recv_retv RECVCALLCONV
35093 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
35102 $recv_arg4 flags=0;
35103 $recv_retv res = recv(s, buf, len, flags);
35110 if ac_fn_c_try_compile "$LINENO"
35113 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
35116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
35126 printf "%s\n" "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
35127 if test "$curl_cv_func_recv_args" = "unknown"; then
35128 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
35130 recv_prev_IFS=$IFS; IFS=','
35131 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
35136 printf "%s\n" "#define RECV_TYPE_ARG1 $1" >>confdefs.h
35139 printf "%s\n" "#define RECV_TYPE_ARG2 $2" >>confdefs.h
35142 printf "%s\n" "#define RECV_TYPE_ARG3 $3" >>confdefs.h
35145 printf "%s\n" "#define RECV_TYPE_ARG4 $4" >>confdefs.h
35148 printf "%s\n" "#define RECV_TYPE_RETV $5" >>confdefs.h
35152 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
35154 curl_cv_func_recv="yes"
35157 as_fn_error $? "Unable to link function recv" "$LINENO" 5
35161 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35162 if test "x$ac_cv_header_sys_types_h" = xyes
35164 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35167 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35168 if test "x$ac_cv_header_sys_socket_h" = xyes
35170 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35176 printf %s "checking for send... " >&6; }
35177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35178 /* end confdefs.h. */
35182 #ifdef HAVE_WINDOWS_H
35183 #ifndef WIN32_LEAN_AND_MEAN
35184 #define WIN32_LEAN_AND_MEAN
35186 #include <windows.h>
35187 #ifdef HAVE_WINSOCK2_H
35188 #include <winsock2.h>
35191 #ifdef HAVE_PROTO_BSDSOCKET_H
35192 #include <proto/bsdsocket.h>
35193 struct Library *SocketBase = NULL;
35195 #ifdef HAVE_SYS_TYPES_H
35196 #include <sys/types.h>
35198 #ifdef HAVE_SYS_SOCKET_H
35199 #include <sys/socket.h>
35213 if ac_fn_c_try_link "$LINENO"
35216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35217 printf "%s\n" "yes" >&6; }
35222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35223 printf "%s\n" "no" >&6; }
35227 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35228 conftest$ac_exeext conftest.$ac_ext
35230 if test "$curl_cv_send" = "yes"; then
35231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
35232 printf %s "checking types of args and return type for send... " >&6; }
35233 if test ${curl_cv_func_send_args+y}
35235 printf %s "(cached) " >&6
35238 curl_cv_func_send_args="unknown"
35239 for send_retv in 'int' 'ssize_t'; do
35240 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
35241 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
35242 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
35243 for send_arg4 in 'int' 'unsigned int'; do
35244 if test "$curl_cv_func_send_args" = "unknown"; then
35245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35246 /* end confdefs.h. */
35250 #ifdef HAVE_WINDOWS_H
35251 #ifndef WIN32_LEAN_AND_MEAN
35252 #define WIN32_LEAN_AND_MEAN
35254 #include <windows.h>
35255 #ifdef HAVE_WINSOCK2_H
35256 #include <winsock2.h>
35258 #define SENDCALLCONV PASCAL
35260 #ifdef HAVE_PROTO_BSDSOCKET_H
35261 #include <proto/bsdsocket.h>
35262 struct Library *SocketBase = NULL;
35264 #ifdef HAVE_SYS_TYPES_H
35265 #include <sys/types.h>
35267 #ifdef HAVE_SYS_SOCKET_H
35268 #include <sys/socket.h>
35270 #define SENDCALLCONV
35272 #ifndef HAVE_PROTO_BSDSOCKET_H
35273 extern $send_retv SENDCALLCONV
35274 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
35282 $send_arg4 flags=0;
35283 $send_retv res = send(s, 0, len, flags);
35290 if ac_fn_c_try_compile "$LINENO"
35293 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
35296 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
35306 printf "%s\n" "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
35307 if test "$curl_cv_func_send_args" = "unknown"; then
35308 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
35310 send_prev_IFS=$IFS; IFS=','
35311 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
35315 send_qual_type_arg2=$2
35318 printf "%s\n" "#define SEND_TYPE_ARG1 $1" >>confdefs.h
35321 printf "%s\n" "#define SEND_TYPE_ARG3 $3" >>confdefs.h
35324 printf "%s\n" "#define SEND_TYPE_ARG4 $4" >>confdefs.h
35327 printf "%s\n" "#define SEND_TYPE_RETV $5" >>confdefs.h
35332 case $prev_sh_opts in
35340 case "$send_qual_type_arg2" in
35342 send_qual_arg2=const
35343 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
35347 send_type_arg2=$send_qual_type_arg2
35352 printf "%s\n" "#define SEND_QUAL_ARG2 $send_qual_arg2" >>confdefs.h
35355 printf "%s\n" "#define SEND_TYPE_ARG2 $send_type_arg2" >>confdefs.h
35358 case $prev_sh_opts in
35367 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35369 curl_cv_func_send="yes"
35372 as_fn_error $? "Unable to link function send" "$LINENO" 5
35376 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35377 if test "x$ac_cv_header_sys_types_h" = xyes
35379 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35382 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35383 if test "x$ac_cv_header_sys_socket_h" = xyes
35385 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35390 printf %s "checking for MSG_NOSIGNAL... " >&6; }
35391 if test ${curl_cv_msg_nosignal+y}
35393 printf %s "(cached) " >&6
35396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397 /* end confdefs.h. */
35401 #ifdef HAVE_WINDOWS_H
35402 #ifndef WIN32_LEAN_AND_MEAN
35403 #define WIN32_LEAN_AND_MEAN
35405 #include <windows.h>
35406 #ifdef HAVE_WINSOCK2_H
35407 #include <winsock2.h>
35410 #ifdef HAVE_PROTO_BSDSOCKET_H
35411 #include <proto/bsdsocket.h>
35412 struct Library *SocketBase = NULL;
35414 #ifdef HAVE_SYS_TYPES_H
35415 #include <sys/types.h>
35417 #ifdef HAVE_SYS_SOCKET_H
35418 #include <sys/socket.h>
35425 int flag=MSG_NOSIGNAL;
35432 if ac_fn_c_try_compile "$LINENO"
35435 curl_cv_msg_nosignal="yes"
35439 curl_cv_msg_nosignal="no"
35442 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35446 printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35447 case "$curl_cv_msg_nosignal" in
35450 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35457 curl_includes_unistd="\
35458 /* includes start */
35459 #ifdef HAVE_SYS_TYPES_H
35460 # include <sys/types.h>
35462 #ifdef HAVE_UNISTD_H
35463 # include <unistd.h>
35465 /* includes end */"
35466 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35468 if test "x$ac_cv_header_sys_types_h" = xyes
35470 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35473 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35475 if test "x$ac_cv_header_unistd_h" = xyes
35477 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35484 tst_links_alarm="unknown"
35485 tst_proto_alarm="unknown"
35486 tst_compi_alarm="unknown"
35487 tst_allow_alarm="unknown"
35489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35490 printf %s "checking if alarm can be linked... " >&6; }
35491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35492 /* end confdefs.h. */
35495 #define alarm innocuous_alarm
35497 # include <limits.h>
35499 # include <assert.h>
35506 #if defined __stub_alarm || defined __stub___alarm
35518 if ac_fn_c_try_link "$LINENO"
35521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35522 printf "%s\n" "yes" >&6; }
35523 tst_links_alarm="yes"
35527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35528 printf "%s\n" "no" >&6; }
35529 tst_links_alarm="no"
35532 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35533 conftest$ac_exeext conftest.$ac_ext
35535 if test "$tst_links_alarm" = "yes"; then
35536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35537 printf %s "checking if alarm is prototyped... " >&6; }
35538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35539 /* end confdefs.h. */
35541 $curl_includes_unistd
35544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35545 $EGREP "alarm" >/dev/null 2>&1
35548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35549 printf "%s\n" "yes" >&6; }
35550 tst_proto_alarm="yes"
35554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35555 printf "%s\n" "no" >&6; }
35556 tst_proto_alarm="no"
35563 if test "$tst_proto_alarm" = "yes"; then
35564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35565 printf %s "checking if alarm is compilable... " >&6; }
35566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35567 /* end confdefs.h. */
35570 $curl_includes_unistd
35583 if ac_fn_c_try_compile "$LINENO"
35586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35587 printf "%s\n" "yes" >&6; }
35588 tst_compi_alarm="yes"
35592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35593 printf "%s\n" "no" >&6; }
35594 tst_compi_alarm="no"
35597 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35600 if test "$tst_compi_alarm" = "yes"; then
35601 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35602 printf %s "checking if alarm usage allowed... " >&6; }
35603 if test "x$curl_disallow_alarm" != "xyes"; then
35604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35605 printf "%s\n" "yes" >&6; }
35606 tst_allow_alarm="yes"
35608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35609 printf "%s\n" "no" >&6; }
35610 tst_allow_alarm="no"
35614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35615 printf %s "checking if alarm might be used... " >&6; }
35616 if test "$tst_links_alarm" = "yes" &&
35617 test "$tst_proto_alarm" = "yes" &&
35618 test "$tst_compi_alarm" = "yes" &&
35619 test "$tst_allow_alarm" = "yes"; then
35620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35621 printf "%s\n" "yes" >&6; }
35623 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35625 curl_cv_func_alarm="yes"
35627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35628 printf "%s\n" "no" >&6; }
35629 curl_cv_func_alarm="no"
35633 curl_includes_string="\
35634 /* includes start */
35635 #ifdef HAVE_SYS_TYPES_H
35636 # include <sys/types.h>
35638 #ifdef HAVE_STRING_H
35639 # include <string.h>
35641 #ifdef HAVE_STRINGS_H
35642 # include <strings.h>
35644 /* includes end */"
35645 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35647 if test "x$ac_cv_header_sys_types_h" = xyes
35649 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35652 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
35654 if test "x$ac_cv_header_string_h" = xyes
35656 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
35659 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35661 if test "x$ac_cv_header_strings_h" = xyes
35663 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35669 curl_includes_libgen="\
35670 /* includes start */
35671 #ifdef HAVE_SYS_TYPES_H
35672 # include <sys/types.h>
35674 #ifdef HAVE_LIBGEN_H
35675 # include <libgen.h>
35677 /* includes end */"
35678 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35680 if test "x$ac_cv_header_sys_types_h" = xyes
35682 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35685 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35687 if test "x$ac_cv_header_libgen_h" = xyes
35689 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35696 tst_links_basename="unknown"
35697 tst_proto_basename="unknown"
35698 tst_compi_basename="unknown"
35699 tst_allow_basename="unknown"
35701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35702 printf %s "checking if basename can be linked... " >&6; }
35703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35704 /* end confdefs.h. */
35707 #define basename innocuous_basename
35709 # include <limits.h>
35711 # include <assert.h>
35718 #if defined __stub_basename || defined __stub___basename
35724 return basename ();
35730 if ac_fn_c_try_link "$LINENO"
35733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35734 printf "%s\n" "yes" >&6; }
35735 tst_links_basename="yes"
35739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35740 printf "%s\n" "no" >&6; }
35741 tst_links_basename="no"
35744 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35745 conftest$ac_exeext conftest.$ac_ext
35747 if test "$tst_links_basename" = "yes"; then
35748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35749 printf %s "checking if basename is prototyped... " >&6; }
35750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35751 /* end confdefs.h. */
35753 $curl_includes_string
35754 $curl_includes_libgen
35755 $curl_includes_unistd
35758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35759 $EGREP "basename" >/dev/null 2>&1
35762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35763 printf "%s\n" "yes" >&6; }
35764 tst_proto_basename="yes"
35768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35769 printf "%s\n" "no" >&6; }
35770 tst_proto_basename="no"
35777 if test "$tst_proto_basename" = "yes"; then
35778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35779 printf %s "checking if basename is compilable... " >&6; }
35780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35781 /* end confdefs.h. */
35784 $curl_includes_string
35785 $curl_includes_libgen
35786 $curl_includes_unistd
35791 if(0 != basename(0))
35799 if ac_fn_c_try_compile "$LINENO"
35802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35803 printf "%s\n" "yes" >&6; }
35804 tst_compi_basename="yes"
35808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35809 printf "%s\n" "no" >&6; }
35810 tst_compi_basename="no"
35813 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35816 if test "$tst_compi_basename" = "yes"; then
35817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35818 printf %s "checking if basename usage allowed... " >&6; }
35819 if test "x$curl_disallow_basename" != "xyes"; then
35820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35821 printf "%s\n" "yes" >&6; }
35822 tst_allow_basename="yes"
35824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35825 printf "%s\n" "no" >&6; }
35826 tst_allow_basename="no"
35830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35831 printf %s "checking if basename might be used... " >&6; }
35832 if test "$tst_links_basename" = "yes" &&
35833 test "$tst_proto_basename" = "yes" &&
35834 test "$tst_compi_basename" = "yes" &&
35835 test "$tst_allow_basename" = "yes"; then
35836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35837 printf "%s\n" "yes" >&6; }
35839 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35841 curl_cv_func_basename="yes"
35843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35844 printf "%s\n" "no" >&6; }
35845 curl_cv_func_basename="no"
35849 curl_includes_socket="\
35850 /* includes start */
35851 #ifdef HAVE_SYS_TYPES_H
35852 # include <sys/types.h>
35854 #ifdef HAVE_SOCKET_H
35855 # include <socket.h>
35857 /* includes end */"
35858 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35860 if test "x$ac_cv_header_sys_types_h" = xyes
35862 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35865 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35867 if test "x$ac_cv_header_socket_h" = xyes
35869 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35876 tst_links_closesocket="unknown"
35877 tst_proto_closesocket="unknown"
35878 tst_compi_closesocket="unknown"
35879 tst_allow_closesocket="unknown"
35881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35882 printf %s "checking if closesocket can be linked... " >&6; }
35883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35884 /* end confdefs.h. */
35887 $curl_includes_winsock2
35888 $curl_includes_bsdsocket
35889 $curl_includes_socket
35894 if(0 != closesocket(0))
35902 if ac_fn_c_try_link "$LINENO"
35905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35906 printf "%s\n" "yes" >&6; }
35907 tst_links_closesocket="yes"
35911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35912 printf "%s\n" "no" >&6; }
35913 tst_links_closesocket="no"
35916 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35917 conftest$ac_exeext conftest.$ac_ext
35919 if test "$tst_links_closesocket" = "yes"; then
35920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35921 printf %s "checking if closesocket is prototyped... " >&6; }
35922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35923 /* end confdefs.h. */
35925 $curl_includes_winsock2
35926 $curl_includes_bsdsocket
35927 $curl_includes_socket
35930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35931 $EGREP "closesocket" >/dev/null 2>&1
35934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35935 printf "%s\n" "yes" >&6; }
35936 tst_proto_closesocket="yes"
35940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35941 printf "%s\n" "no" >&6; }
35942 tst_proto_closesocket="no"
35949 if test "$tst_proto_closesocket" = "yes"; then
35950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35951 printf %s "checking if closesocket is compilable... " >&6; }
35952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35953 /* end confdefs.h. */
35956 $curl_includes_winsock2
35957 $curl_includes_bsdsocket
35958 $curl_includes_socket
35963 if(0 != closesocket(0))
35971 if ac_fn_c_try_compile "$LINENO"
35974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35975 printf "%s\n" "yes" >&6; }
35976 tst_compi_closesocket="yes"
35980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35981 printf "%s\n" "no" >&6; }
35982 tst_compi_closesocket="no"
35985 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35988 if test "$tst_compi_closesocket" = "yes"; then
35989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35990 printf %s "checking if closesocket usage allowed... " >&6; }
35991 if test "x$curl_disallow_closesocket" != "xyes"; then
35992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35993 printf "%s\n" "yes" >&6; }
35994 tst_allow_closesocket="yes"
35996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35997 printf "%s\n" "no" >&6; }
35998 tst_allow_closesocket="no"
36002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
36003 printf %s "checking if closesocket might be used... " >&6; }
36004 if test "$tst_links_closesocket" = "yes" &&
36005 test "$tst_proto_closesocket" = "yes" &&
36006 test "$tst_compi_closesocket" = "yes" &&
36007 test "$tst_allow_closesocket" = "yes"; then
36008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36009 printf "%s\n" "yes" >&6; }
36011 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
36013 curl_cv_func_closesocket="yes"
36015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36016 printf "%s\n" "no" >&6; }
36017 curl_cv_func_closesocket="no"
36021 curl_includes_sys_socket="\
36022 /* includes start */
36023 #ifdef HAVE_SYS_TYPES_H
36024 # include <sys/types.h>
36026 #ifdef HAVE_SYS_SOCKET_H
36027 # include <sys/socket.h>
36029 /* includes end */"
36030 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
36032 if test "x$ac_cv_header_sys_types_h" = xyes
36034 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36037 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
36039 if test "x$ac_cv_header_sys_socket_h" = xyes
36041 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
36048 tst_links_closesocket_camel="unknown"
36049 tst_proto_closesocket_camel="unknown"
36050 tst_compi_closesocket_camel="unknown"
36051 tst_allow_closesocket_camel="unknown"
36053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
36054 printf %s "checking if CloseSocket can be linked... " >&6; }
36055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36056 /* end confdefs.h. */
36059 $curl_includes_sys_socket
36064 if(0 != CloseSocket(0))
36072 if ac_fn_c_try_link "$LINENO"
36075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36076 printf "%s\n" "yes" >&6; }
36077 tst_links_closesocket_camel="yes"
36081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36082 printf "%s\n" "no" >&6; }
36083 tst_links_closesocket_camel="no"
36086 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36087 conftest$ac_exeext conftest.$ac_ext
36089 if test "$tst_links_closesocket_camel" = "yes"; then
36090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
36091 printf %s "checking if CloseSocket is prototyped... " >&6; }
36092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36093 /* end confdefs.h. */
36095 $curl_includes_sys_socket
36098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36099 $EGREP "CloseSocket" >/dev/null 2>&1
36102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36103 printf "%s\n" "yes" >&6; }
36104 tst_proto_closesocket_camel="yes"
36108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36109 printf "%s\n" "no" >&6; }
36110 tst_proto_closesocket_camel="no"
36117 if test "$tst_proto_closesocket_camel" = "yes"; then
36118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
36119 printf %s "checking if CloseSocket is compilable... " >&6; }
36120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36121 /* end confdefs.h. */
36124 $curl_includes_sys_socket
36129 if(0 != CloseSocket(0))
36137 if ac_fn_c_try_compile "$LINENO"
36140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36141 printf "%s\n" "yes" >&6; }
36142 tst_compi_closesocket_camel="yes"
36146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36147 printf "%s\n" "no" >&6; }
36148 tst_compi_closesocket_camel="no"
36151 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36154 if test "$tst_compi_closesocket_camel" = "yes"; then
36155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
36156 printf %s "checking if CloseSocket usage allowed... " >&6; }
36157 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
36158 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36159 printf "%s\n" "yes" >&6; }
36160 tst_allow_closesocket_camel="yes"
36162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36163 printf "%s\n" "no" >&6; }
36164 tst_allow_closesocket_camel="no"
36168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
36169 printf %s "checking if CloseSocket might be used... " >&6; }
36170 if test "$tst_links_closesocket_camel" = "yes" &&
36171 test "$tst_proto_closesocket_camel" = "yes" &&
36172 test "$tst_compi_closesocket_camel" = "yes" &&
36173 test "$tst_allow_closesocket_camel" = "yes"; then
36174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36175 printf "%s\n" "yes" >&6; }
36177 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
36179 curl_cv_func_closesocket_camel="yes"
36181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36182 printf "%s\n" "no" >&6; }
36183 curl_cv_func_closesocket_camel="no"
36188 tst_links_connect="unknown"
36189 tst_proto_connect="unknown"
36190 tst_compi_connect="unknown"
36191 tst_allow_connect="unknown"
36193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
36194 printf %s "checking if connect can be linked... " >&6; }
36195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36196 /* end confdefs.h. */
36199 $curl_includes_winsock2
36200 $curl_includes_bsdsocket
36201 $curl_includes_sys_socket
36202 $curl_includes_socket
36207 if(0 != connect(0, 0, 0))
36215 if ac_fn_c_try_link "$LINENO"
36218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36219 printf "%s\n" "yes" >&6; }
36220 tst_links_connect="yes"
36224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36225 printf "%s\n" "no" >&6; }
36226 tst_links_connect="no"
36229 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36230 conftest$ac_exeext conftest.$ac_ext
36232 if test "$tst_links_connect" = "yes"; then
36233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
36234 printf %s "checking if connect is prototyped... " >&6; }
36235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36236 /* end confdefs.h. */
36238 $curl_includes_winsock2
36239 $curl_includes_bsdsocket
36240 $curl_includes_sys_socket
36241 $curl_includes_socket
36244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36245 $EGREP "connect" >/dev/null 2>&1
36248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36249 printf "%s\n" "yes" >&6; }
36250 tst_proto_connect="yes"
36254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36255 printf "%s\n" "no" >&6; }
36256 tst_proto_connect="no"
36263 if test "$tst_proto_connect" = "yes"; then
36264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
36265 printf %s "checking if connect is compilable... " >&6; }
36266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36267 /* end confdefs.h. */
36270 $curl_includes_winsock2
36271 $curl_includes_bsdsocket
36272 $curl_includes_sys_socket
36273 $curl_includes_socket
36278 if(0 != connect(0, 0, 0))
36286 if ac_fn_c_try_compile "$LINENO"
36289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36290 printf "%s\n" "yes" >&6; }
36291 tst_compi_connect="yes"
36295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36296 printf "%s\n" "no" >&6; }
36297 tst_compi_connect="no"
36300 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36303 if test "$tst_compi_connect" = "yes"; then
36304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
36305 printf %s "checking if connect usage allowed... " >&6; }
36306 if test "x$curl_disallow_connect" != "xyes"; then
36307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36308 printf "%s\n" "yes" >&6; }
36309 tst_allow_connect="yes"
36311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36312 printf "%s\n" "no" >&6; }
36313 tst_allow_connect="no"
36317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
36318 printf %s "checking if connect might be used... " >&6; }
36319 if test "$tst_links_connect" = "yes" &&
36320 test "$tst_proto_connect" = "yes" &&
36321 test "$tst_compi_connect" = "yes" &&
36322 test "$tst_allow_connect" = "yes"; then
36323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36324 printf "%s\n" "yes" >&6; }
36326 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
36328 curl_cv_func_connect="yes"
36330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36331 printf "%s\n" "no" >&6; }
36332 curl_cv_func_connect="no"
36336 curl_includes_fcntl="\
36337 /* includes start */
36338 #ifdef HAVE_SYS_TYPES_H
36339 # include <sys/types.h>
36341 #ifdef HAVE_UNISTD_H
36342 # include <unistd.h>
36344 #ifdef HAVE_FCNTL_H
36345 # include <fcntl.h>
36347 /* includes end */"
36348 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36350 if test "x$ac_cv_header_sys_types_h" = xyes
36352 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36355 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36357 if test "x$ac_cv_header_unistd_h" = xyes
36359 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36362 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36364 if test "x$ac_cv_header_fcntl_h" = xyes
36366 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36373 tst_links_fcntl="unknown"
36374 tst_proto_fcntl="unknown"
36375 tst_compi_fcntl="unknown"
36376 tst_allow_fcntl="unknown"
36378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36379 printf %s "checking if fcntl can be linked... " >&6; }
36380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36381 /* end confdefs.h. */
36384 #define fcntl innocuous_fcntl
36386 # include <limits.h>
36388 # include <assert.h>
36395 #if defined __stub_fcntl || defined __stub___fcntl
36407 if ac_fn_c_try_link "$LINENO"
36410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36411 printf "%s\n" "yes" >&6; }
36412 tst_links_fcntl="yes"
36416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36417 printf "%s\n" "no" >&6; }
36418 tst_links_fcntl="no"
36421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36422 conftest$ac_exeext conftest.$ac_ext
36424 if test "$tst_links_fcntl" = "yes"; then
36425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36426 printf %s "checking if fcntl is prototyped... " >&6; }
36427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36428 /* end confdefs.h. */
36430 $curl_includes_fcntl
36433 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36434 $EGREP "fcntl" >/dev/null 2>&1
36437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36438 printf "%s\n" "yes" >&6; }
36439 tst_proto_fcntl="yes"
36443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36444 printf "%s\n" "no" >&6; }
36445 tst_proto_fcntl="no"
36452 if test "$tst_proto_fcntl" = "yes"; then
36453 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36454 printf %s "checking if fcntl is compilable... " >&6; }
36455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36456 /* end confdefs.h. */
36459 $curl_includes_fcntl
36464 if(0 != fcntl(0, 0, 0))
36472 if ac_fn_c_try_compile "$LINENO"
36475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36476 printf "%s\n" "yes" >&6; }
36477 tst_compi_fcntl="yes"
36481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36482 printf "%s\n" "no" >&6; }
36483 tst_compi_fcntl="no"
36486 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36489 if test "$tst_compi_fcntl" = "yes"; then
36490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36491 printf %s "checking if fcntl usage allowed... " >&6; }
36492 if test "x$curl_disallow_fcntl" != "xyes"; then
36493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36494 printf "%s\n" "yes" >&6; }
36495 tst_allow_fcntl="yes"
36497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36498 printf "%s\n" "no" >&6; }
36499 tst_allow_fcntl="no"
36503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36504 printf %s "checking if fcntl might be used... " >&6; }
36505 if test "$tst_links_fcntl" = "yes" &&
36506 test "$tst_proto_fcntl" = "yes" &&
36507 test "$tst_compi_fcntl" = "yes" &&
36508 test "$tst_allow_fcntl" = "yes"; then
36509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36510 printf "%s\n" "yes" >&6; }
36512 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36514 curl_cv_func_fcntl="yes"
36517 tst_compi_fcntl_o_nonblock="unknown"
36518 tst_allow_fcntl_o_nonblock="unknown"
36521 sunos4* | aix3* | beos*)
36522 curl_disallow_fcntl_o_nonblock="yes"
36526 if test "$curl_cv_func_fcntl" = "yes"; then
36527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36528 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36530 /* end confdefs.h. */
36533 $curl_includes_fcntl
36539 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36547 if ac_fn_c_try_compile "$LINENO"
36550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36551 printf "%s\n" "yes" >&6; }
36552 tst_compi_fcntl_o_nonblock="yes"
36556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36557 printf "%s\n" "no" >&6; }
36558 tst_compi_fcntl_o_nonblock="no"
36561 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36564 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36566 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36567 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36569 printf "%s\n" "yes" >&6; }
36570 tst_allow_fcntl_o_nonblock="yes"
36572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36573 printf "%s\n" "no" >&6; }
36574 tst_allow_fcntl_o_nonblock="no"
36578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36579 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36580 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36581 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36583 printf "%s\n" "yes" >&6; }
36585 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36587 curl_cv_func_fcntl_o_nonblock="yes"
36589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36590 printf "%s\n" "no" >&6; }
36591 curl_cv_func_fcntl_o_nonblock="no"
36595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36596 printf "%s\n" "no" >&6; }
36597 curl_cv_func_fcntl="no"
36601 curl_includes_ws2tcpip="\
36602 /* includes start */
36603 #ifdef HAVE_WINDOWS_H
36604 # ifndef WIN32_LEAN_AND_MEAN
36605 # define WIN32_LEAN_AND_MEAN
36607 # include <windows.h>
36608 # ifdef HAVE_WINSOCK2_H
36609 # include <winsock2.h>
36610 # ifdef HAVE_WS2TCPIP_H
36611 # include <ws2tcpip.h>
36615 /* includes end */"
36617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36618 printf %s "checking for windows.h... " >&6; }
36619 if test ${curl_cv_header_windows_h+y}
36621 printf %s "(cached) " >&6
36624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36625 /* end confdefs.h. */
36629 #ifndef WIN32_LEAN_AND_MEAN
36630 #define WIN32_LEAN_AND_MEAN
36632 #include <windows.h>
36637 #if defined(__CYGWIN__) || defined(__CEGCC__)
36638 HAVE_WINDOWS_H shall not be defined.
36640 int dummy=2*WINVER;
36648 if ac_fn_c_try_compile "$LINENO"
36651 curl_cv_header_windows_h="yes"
36655 curl_cv_header_windows_h="no"
36658 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36662 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36663 case "$curl_cv_header_windows_h" in
36666 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36673 printf %s "checking for winsock2.h... " >&6; }
36674 if test ${curl_cv_header_winsock2_h+y}
36676 printf %s "(cached) " >&6
36679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36680 /* end confdefs.h. */
36684 #ifndef WIN32_LEAN_AND_MEAN
36685 #define WIN32_LEAN_AND_MEAN
36687 #include <windows.h>
36688 #include <winsock2.h>
36693 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36694 HAVE_WINSOCK2_H shall not be defined.
36696 int dummy=2*IPPROTO_ESP;
36704 if ac_fn_c_try_compile "$LINENO"
36707 curl_cv_header_winsock2_h="yes"
36711 curl_cv_header_winsock2_h="no"
36714 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36718 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36719 case "$curl_cv_header_winsock2_h" in
36722 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36729 printf %s "checking for ws2tcpip.h... " >&6; }
36730 if test ${curl_cv_header_ws2tcpip_h+y}
36732 printf %s "(cached) " >&6
36735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36736 /* end confdefs.h. */
36740 #ifndef WIN32_LEAN_AND_MEAN
36741 #define WIN32_LEAN_AND_MEAN
36743 #include <windows.h>
36744 #include <winsock2.h>
36745 #include <ws2tcpip.h>
36750 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36751 HAVE_WS2TCPIP_H shall not be defined.
36753 int dummy=2*IP_PKTINFO;
36761 if ac_fn_c_try_compile "$LINENO"
36764 curl_cv_header_ws2tcpip_h="yes"
36768 curl_cv_header_ws2tcpip_h="no"
36771 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36775 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36776 case "$curl_cv_header_ws2tcpip_h" in
36779 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36786 curl_includes_netdb="\
36787 /* includes start */
36788 #ifdef HAVE_SYS_TYPES_H
36789 # include <sys/types.h>
36791 #ifdef HAVE_NETDB_H
36792 # include <netdb.h>
36794 /* includes end */"
36795 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36797 if test "x$ac_cv_header_sys_types_h" = xyes
36799 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36802 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36804 if test "x$ac_cv_header_netdb_h" = xyes
36806 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36813 tst_links_freeaddrinfo="unknown"
36814 tst_proto_freeaddrinfo="unknown"
36815 tst_compi_freeaddrinfo="unknown"
36816 tst_allow_freeaddrinfo="unknown"
36818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36819 printf %s "checking if freeaddrinfo can be linked... " >&6; }
36820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36821 /* end confdefs.h. */
36824 $curl_includes_ws2tcpip
36825 $curl_includes_sys_socket
36826 $curl_includes_netdb
36838 if ac_fn_c_try_link "$LINENO"
36841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36842 printf "%s\n" "yes" >&6; }
36843 tst_links_freeaddrinfo="yes"
36847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36848 printf "%s\n" "no" >&6; }
36849 tst_links_freeaddrinfo="no"
36852 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36853 conftest$ac_exeext conftest.$ac_ext
36855 if test "$tst_links_freeaddrinfo" = "yes"; then
36856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36857 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36859 /* end confdefs.h. */
36861 $curl_includes_ws2tcpip
36862 $curl_includes_sys_socket
36863 $curl_includes_netdb
36866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36867 $EGREP "freeaddrinfo" >/dev/null 2>&1
36870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36871 printf "%s\n" "yes" >&6; }
36872 tst_proto_freeaddrinfo="yes"
36876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36877 printf "%s\n" "no" >&6; }
36878 tst_proto_freeaddrinfo="no"
36885 if test "$tst_proto_freeaddrinfo" = "yes"; then
36886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36887 printf %s "checking if freeaddrinfo is compilable... " >&6; }
36888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36889 /* end confdefs.h. */
36892 $curl_includes_ws2tcpip
36893 $curl_includes_sys_socket
36894 $curl_includes_netdb
36906 if ac_fn_c_try_compile "$LINENO"
36909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36910 printf "%s\n" "yes" >&6; }
36911 tst_compi_freeaddrinfo="yes"
36915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36916 printf "%s\n" "no" >&6; }
36917 tst_compi_freeaddrinfo="no"
36920 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36923 if test "$tst_compi_freeaddrinfo" = "yes"; then
36924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36925 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36926 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36928 printf "%s\n" "yes" >&6; }
36929 tst_allow_freeaddrinfo="yes"
36931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36932 printf "%s\n" "no" >&6; }
36933 tst_allow_freeaddrinfo="no"
36937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36938 printf %s "checking if freeaddrinfo might be used... " >&6; }
36939 if test "$tst_links_freeaddrinfo" = "yes" &&
36940 test "$tst_proto_freeaddrinfo" = "yes" &&
36941 test "$tst_compi_freeaddrinfo" = "yes" &&
36942 test "$tst_allow_freeaddrinfo" = "yes"; then
36943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36944 printf "%s\n" "yes" >&6; }
36946 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36948 curl_cv_func_freeaddrinfo="yes"
36950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36951 printf "%s\n" "no" >&6; }
36952 curl_cv_func_freeaddrinfo="no"
36956 curl_includes_sys_xattr="\
36957 /* includes start */
36958 #ifdef HAVE_SYS_TYPES_H
36959 # include <sys/types.h>
36961 #ifdef HAVE_SYS_XATTR_H
36962 # include <sys/xattr.h>
36964 /* includes end */"
36965 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36967 if test "x$ac_cv_header_sys_types_h" = xyes
36969 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36972 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36974 if test "x$ac_cv_header_sys_xattr_h" = xyes
36976 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36983 tst_links_fsetxattr="unknown"
36984 tst_proto_fsetxattr="unknown"
36985 tst_compi_fsetxattr="unknown"
36986 tst_allow_fsetxattr="unknown"
36987 tst_nargs_fsetxattr="unknown"
36989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36990 printf %s "checking if fsetxattr can be linked... " >&6; }
36991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36992 /* end confdefs.h. */
36995 #define fsetxattr innocuous_fsetxattr
36997 # include <limits.h>
36999 # include <assert.h>
37006 #if defined __stub_fsetxattr || defined __stub___fsetxattr
37012 return fsetxattr ();
37018 if ac_fn_c_try_link "$LINENO"
37021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37022 printf "%s\n" "yes" >&6; }
37023 tst_links_fsetxattr="yes"
37027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37028 printf "%s\n" "no" >&6; }
37029 tst_links_fsetxattr="no"
37032 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37033 conftest$ac_exeext conftest.$ac_ext
37035 if test "$tst_links_fsetxattr" = "yes"; then
37036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
37037 printf %s "checking if fsetxattr is prototyped... " >&6; }
37038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37039 /* end confdefs.h. */
37041 $curl_includes_sys_xattr
37044 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37045 $EGREP "fsetxattr" >/dev/null 2>&1
37048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37049 printf "%s\n" "yes" >&6; }
37050 tst_proto_fsetxattr="yes"
37054 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37055 printf "%s\n" "no" >&6; }
37056 tst_proto_fsetxattr="no"
37063 if test "$tst_proto_fsetxattr" = "yes"; then
37064 if test "$tst_nargs_fsetxattr" = "unknown"; then
37065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
37066 printf %s "checking if fsetxattr takes 5 args.... " >&6; }
37067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37068 /* end confdefs.h. */
37071 $curl_includes_sys_xattr
37076 if(0 != fsetxattr(0, 0, 0, 0, 0))
37084 if ac_fn_c_try_compile "$LINENO"
37087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37088 printf "%s\n" "yes" >&6; }
37089 tst_compi_fsetxattr="yes"
37090 tst_nargs_fsetxattr="5"
37094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37095 printf "%s\n" "no" >&6; }
37096 tst_compi_fsetxattr="no"
37099 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37101 if test "$tst_nargs_fsetxattr" = "unknown"; then
37102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
37103 printf %s "checking if fsetxattr takes 6 args.... " >&6; }
37104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37105 /* end confdefs.h. */
37108 $curl_includes_sys_xattr
37113 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
37121 if ac_fn_c_try_compile "$LINENO"
37124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37125 printf "%s\n" "yes" >&6; }
37126 tst_compi_fsetxattr="yes"
37127 tst_nargs_fsetxattr="6"
37131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37132 printf "%s\n" "no" >&6; }
37133 tst_compi_fsetxattr="no"
37136 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
37139 printf %s "checking if fsetxattr is compilable... " >&6; }
37140 if test "$tst_compi_fsetxattr" = "yes"; then
37141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37142 printf "%s\n" "yes" >&6; }
37144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37145 printf "%s\n" "no" >&6; }
37149 if test "$tst_compi_fsetxattr" = "yes"; then
37150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
37151 printf %s "checking if fsetxattr usage allowed... " >&6; }
37152 if test "x$curl_disallow_fsetxattr" != "xyes"; then
37153 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37154 printf "%s\n" "yes" >&6; }
37155 tst_allow_fsetxattr="yes"
37157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37158 printf "%s\n" "no" >&6; }
37159 tst_allow_fsetxattr="no"
37163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
37164 printf %s "checking if fsetxattr might be used... " >&6; }
37165 if test "$tst_links_fsetxattr" = "yes" &&
37166 test "$tst_proto_fsetxattr" = "yes" &&
37167 test "$tst_compi_fsetxattr" = "yes" &&
37168 test "$tst_allow_fsetxattr" = "yes"; then
37169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37170 printf "%s\n" "yes" >&6; }
37172 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
37175 if test "$tst_nargs_fsetxattr" -eq "5"; then
37177 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
37179 elif test "$tst_nargs_fsetxattr" -eq "6"; then
37181 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
37185 curl_cv_func_fsetxattr="yes"
37187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37188 printf "%s\n" "no" >&6; }
37189 curl_cv_func_fsetxattr="no"
37194 tst_links_ftruncate="unknown"
37195 tst_proto_ftruncate="unknown"
37196 tst_compi_ftruncate="unknown"
37197 tst_allow_ftruncate="unknown"
37199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
37200 printf %s "checking if ftruncate can be linked... " >&6; }
37201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37202 /* end confdefs.h. */
37205 #define ftruncate innocuous_ftruncate
37207 # include <limits.h>
37209 # include <assert.h>
37216 #if defined __stub_ftruncate || defined __stub___ftruncate
37222 return ftruncate ();
37228 if ac_fn_c_try_link "$LINENO"
37231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 printf "%s\n" "yes" >&6; }
37233 tst_links_ftruncate="yes"
37237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37238 printf "%s\n" "no" >&6; }
37239 tst_links_ftruncate="no"
37242 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37243 conftest$ac_exeext conftest.$ac_ext
37245 if test "$tst_links_ftruncate" = "yes"; then
37246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
37247 printf %s "checking if ftruncate is prototyped... " >&6; }
37248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37249 /* end confdefs.h. */
37251 $curl_includes_unistd
37254 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37255 $EGREP "ftruncate" >/dev/null 2>&1
37258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37259 printf "%s\n" "yes" >&6; }
37260 tst_proto_ftruncate="yes"
37264 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37265 printf "%s\n" "no" >&6; }
37266 tst_proto_ftruncate="no"
37273 if test "$tst_proto_ftruncate" = "yes"; then
37274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
37275 printf %s "checking if ftruncate is compilable... " >&6; }
37276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37277 /* end confdefs.h. */
37280 $curl_includes_unistd
37285 if(0 != ftruncate(0, 0))
37293 if ac_fn_c_try_compile "$LINENO"
37296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37297 printf "%s\n" "yes" >&6; }
37298 tst_compi_ftruncate="yes"
37302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 printf "%s\n" "no" >&6; }
37304 tst_compi_ftruncate="no"
37307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37310 if test "$tst_compi_ftruncate" = "yes"; then
37311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37312 printf %s "checking if ftruncate usage allowed... " >&6; }
37313 if test "x$curl_disallow_ftruncate" != "xyes"; then
37314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37315 printf "%s\n" "yes" >&6; }
37316 tst_allow_ftruncate="yes"
37318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37319 printf "%s\n" "no" >&6; }
37320 tst_allow_ftruncate="no"
37324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37325 printf %s "checking if ftruncate might be used... " >&6; }
37326 if test "$tst_links_ftruncate" = "yes" &&
37327 test "$tst_proto_ftruncate" = "yes" &&
37328 test "$tst_compi_ftruncate" = "yes" &&
37329 test "$tst_allow_ftruncate" = "yes"; then
37330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37331 printf "%s\n" "yes" >&6; }
37333 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37335 curl_cv_func_ftruncate="yes"
37337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37338 printf "%s\n" "no" >&6; }
37339 curl_cv_func_ftruncate="no"
37343 curl_includes_stdlib="\
37344 /* includes start */
37345 #ifdef HAVE_SYS_TYPES_H
37346 # include <sys/types.h>
37348 #ifdef HAVE_STDLIB_H
37349 # include <stdlib.h>
37351 /* includes end */"
37352 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37354 if test "x$ac_cv_header_sys_types_h" = xyes
37356 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37359 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
37361 if test "x$ac_cv_header_stdlib_h" = xyes
37363 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
37370 tst_links_getaddrinfo="unknown"
37371 tst_proto_getaddrinfo="unknown"
37372 tst_compi_getaddrinfo="unknown"
37373 tst_works_getaddrinfo="unknown"
37374 tst_allow_getaddrinfo="unknown"
37375 tst_tsafe_getaddrinfo="unknown"
37377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37378 printf %s "checking if getaddrinfo can be linked... " >&6; }
37379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37380 /* end confdefs.h. */
37383 $curl_includes_ws2tcpip
37384 $curl_includes_sys_socket
37385 $curl_includes_netdb
37390 if(0 != getaddrinfo(0, 0, 0, 0))
37398 if ac_fn_c_try_link "$LINENO"
37401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37402 printf "%s\n" "yes" >&6; }
37403 tst_links_getaddrinfo="yes"
37407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37408 printf "%s\n" "no" >&6; }
37409 tst_links_getaddrinfo="no"
37412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37413 conftest$ac_exeext conftest.$ac_ext
37415 if test "$tst_links_getaddrinfo" = "yes"; then
37416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37417 printf %s "checking if getaddrinfo is prototyped... " >&6; }
37418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37419 /* end confdefs.h. */
37421 $curl_includes_ws2tcpip
37422 $curl_includes_sys_socket
37423 $curl_includes_netdb
37426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37427 $EGREP "getaddrinfo" >/dev/null 2>&1
37430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37431 printf "%s\n" "yes" >&6; }
37432 tst_proto_getaddrinfo="yes"
37436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37437 printf "%s\n" "no" >&6; }
37438 tst_proto_getaddrinfo="no"
37445 if test "$tst_proto_getaddrinfo" = "yes"; then
37446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37447 printf %s "checking if getaddrinfo is compilable... " >&6; }
37448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37449 /* end confdefs.h. */
37452 $curl_includes_ws2tcpip
37453 $curl_includes_sys_socket
37454 $curl_includes_netdb
37459 if(0 != getaddrinfo(0, 0, 0, 0))
37467 if ac_fn_c_try_compile "$LINENO"
37470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37471 printf "%s\n" "yes" >&6; }
37472 tst_compi_getaddrinfo="yes"
37476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37477 printf "%s\n" "no" >&6; }
37478 tst_compi_getaddrinfo="no"
37481 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37484 if test "x$cross_compiling" != "xyes" &&
37485 test "$tst_compi_getaddrinfo" = "yes"; then
37486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37487 printf %s "checking if getaddrinfo seems to work... " >&6; }
37490 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
37491 *) library_path_var=LD_LIBRARY_PATH ;;
37494 eval "old=$$library_path_var"
37495 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
37497 eval "export $library_path_var"
37498 if test "$cross_compiling" = yes
37500 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37501 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37502 as_fn_error $? "cannot run test program while cross compiling
37503 See \`config.log' for more details" "$LINENO" 5; }
37505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37506 /* end confdefs.h. */
37509 $curl_includes_ws2tcpip
37510 $curl_includes_stdlib
37511 $curl_includes_string
37512 $curl_includes_sys_socket
37513 $curl_includes_netdb
37518 struct addrinfo hints;
37519 struct addrinfo *ai = 0;
37522 #ifdef HAVE_WINSOCK2_H
37524 if (WSAStartup(MAKEWORD(2,2), &wsa))
37528 memset(&hints, 0, sizeof(hints));
37529 hints.ai_flags = AI_NUMERICHOST;
37530 hints.ai_family = AF_UNSPEC;
37531 hints.ai_socktype = SOCK_STREAM;
37532 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37534 exit(1); /* fail */
37543 if ac_fn_c_try_run "$LINENO"
37545 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37546 printf "%s\n" "yes" >&6; }
37547 tst_works_getaddrinfo="yes"
37550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37551 printf "%s\n" "no" >&6; }
37552 tst_works_getaddrinfo="no"
37555 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37556 conftest.$ac_objext conftest.beam conftest.$ac_ext
37559 eval "$library_path_var=\$old" # restore
37563 if test "$tst_compi_getaddrinfo" = "yes" &&
37564 test "$tst_works_getaddrinfo" != "no"; then
37565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37566 printf %s "checking if getaddrinfo usage allowed... " >&6; }
37567 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37569 printf "%s\n" "yes" >&6; }
37570 tst_allow_getaddrinfo="yes"
37572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37573 printf "%s\n" "no" >&6; }
37574 tst_allow_getaddrinfo="no"
37578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37579 printf %s "checking if getaddrinfo might be used... " >&6; }
37580 if test "$tst_links_getaddrinfo" = "yes" &&
37581 test "$tst_proto_getaddrinfo" = "yes" &&
37582 test "$tst_compi_getaddrinfo" = "yes" &&
37583 test "$tst_allow_getaddrinfo" = "yes" &&
37584 test "$tst_works_getaddrinfo" != "no"; then
37585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37586 printf "%s\n" "yes" >&6; }
37588 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37590 curl_cv_func_getaddrinfo="yes"
37592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37593 printf "%s\n" "no" >&6; }
37594 curl_cv_func_getaddrinfo="no"
37595 curl_cv_func_getaddrinfo_threadsafe="no"
37598 if test "$curl_cv_func_getaddrinfo" = "yes"; then
37599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37600 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37602 aix[1234].* | aix5.[01].*)
37603 tst_tsafe_getaddrinfo="no"
37606 tst_tsafe_getaddrinfo="yes"
37609 tst_tsafe_getaddrinfo="no"
37612 tst_tsafe_getaddrinfo="yes"
37614 freebsd[1234].* | freebsd5.[1234]*)
37615 tst_tsafe_getaddrinfo="no"
37618 tst_tsafe_getaddrinfo="yes"
37620 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37621 tst_tsafe_getaddrinfo="no"
37624 tst_tsafe_getaddrinfo="yes"
37627 tst_tsafe_getaddrinfo="yes"
37630 tst_tsafe_getaddrinfo="no"
37633 tst_tsafe_getaddrinfo="yes"
37636 tst_tsafe_getaddrinfo="no"
37639 tst_tsafe_getaddrinfo="yes"
37642 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37643 test "$curl_cv_native_windows" = "yes"; then
37644 tst_tsafe_getaddrinfo="yes"
37646 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37650 /* end confdefs.h. */
37653 $curl_includes_sys_socket
37654 $curl_includes_netdb
37661 force compilation error
37667 if ac_fn_c_try_compile "$LINENO"
37670 tst_symbol_defined="yes"
37674 tst_symbol_defined="no"
37677 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37678 if test "$tst_symbol_defined" = "yes"; then
37679 curl_cv_have_def_h_errno=yes
37682 curl_cv_have_def_h_errno=no
37686 if test "$curl_cv_have_def_h_errno" = "yes"; then
37687 tst_h_errno_macro="yes"
37689 tst_h_errno_macro="no"
37691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37692 /* end confdefs.h. */
37695 $curl_includes_sys_socket
37696 $curl_includes_netdb
37710 if ac_fn_c_try_compile "$LINENO"
37713 tst_h_errno_modifiable_lvalue="yes"
37717 tst_h_errno_modifiable_lvalue="no"
37720 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37722 /* end confdefs.h. */
37729 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37731 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37734 force compilation error
37742 if ac_fn_c_try_compile "$LINENO"
37745 tst_h_errno_sbs_issue_7="yes"
37749 tst_h_errno_sbs_issue_7="no"
37752 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37753 if test "$tst_h_errno_macro" = "no" &&
37754 test "$tst_h_errno_modifiable_lvalue" = "no" &&
37755 test "$tst_h_errno_sbs_issue_7" = "no"; then
37756 tst_tsafe_getaddrinfo="no"
37758 tst_tsafe_getaddrinfo="yes"
37761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37762 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37763 if test "$tst_tsafe_getaddrinfo" = "yes"; then
37765 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37767 curl_cv_func_getaddrinfo_threadsafe="yes"
37769 curl_cv_func_getaddrinfo_threadsafe="no"
37775 tst_links_gethostbyname="unknown"
37776 tst_proto_gethostbyname="unknown"
37777 tst_compi_gethostbyname="unknown"
37778 tst_allow_gethostbyname="unknown"
37780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37781 printf %s "checking if gethostbyname can be linked... " >&6; }
37782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37783 /* end confdefs.h. */
37786 $curl_includes_winsock2
37787 $curl_includes_bsdsocket
37788 $curl_includes_netdb
37793 if(0 != gethostbyname(0))
37801 if ac_fn_c_try_link "$LINENO"
37804 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37805 printf "%s\n" "yes" >&6; }
37806 tst_links_gethostbyname="yes"
37810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37811 printf "%s\n" "no" >&6; }
37812 tst_links_gethostbyname="no"
37815 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37816 conftest$ac_exeext conftest.$ac_ext
37818 if test "$tst_links_gethostbyname" = "yes"; then
37819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37820 printf %s "checking if gethostbyname is prototyped... " >&6; }
37821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37822 /* end confdefs.h. */
37824 $curl_includes_winsock2
37825 $curl_includes_bsdsocket
37826 $curl_includes_netdb
37829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37830 $EGREP "gethostbyname" >/dev/null 2>&1
37833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37834 printf "%s\n" "yes" >&6; }
37835 tst_proto_gethostbyname="yes"
37839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37840 printf "%s\n" "no" >&6; }
37841 tst_proto_gethostbyname="no"
37848 if test "$tst_proto_gethostbyname" = "yes"; then
37849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37850 printf %s "checking if gethostbyname is compilable... " >&6; }
37851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37852 /* end confdefs.h. */
37855 $curl_includes_winsock2
37856 $curl_includes_bsdsocket
37857 $curl_includes_netdb
37862 if(0 != gethostbyname(0))
37870 if ac_fn_c_try_compile "$LINENO"
37873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874 printf "%s\n" "yes" >&6; }
37875 tst_compi_gethostbyname="yes"
37879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37880 printf "%s\n" "no" >&6; }
37881 tst_compi_gethostbyname="no"
37884 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37887 if test "$tst_compi_gethostbyname" = "yes"; then
37888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37889 printf %s "checking if gethostbyname usage allowed... " >&6; }
37890 if test "x$curl_disallow_gethostbyname" != "xyes"; then
37891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37892 printf "%s\n" "yes" >&6; }
37893 tst_allow_gethostbyname="yes"
37895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37896 printf "%s\n" "no" >&6; }
37897 tst_allow_gethostbyname="no"
37901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37902 printf %s "checking if gethostbyname might be used... " >&6; }
37903 if test "$tst_links_gethostbyname" = "yes" &&
37904 test "$tst_proto_gethostbyname" = "yes" &&
37905 test "$tst_compi_gethostbyname" = "yes" &&
37906 test "$tst_allow_gethostbyname" = "yes"; then
37907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37908 printf "%s\n" "yes" >&6; }
37910 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37912 curl_cv_func_gethostbyname="yes"
37914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37915 printf "%s\n" "no" >&6; }
37916 curl_cv_func_gethostbyname="no"
37921 tst_links_gethostbyname_r="unknown"
37922 tst_proto_gethostbyname_r="unknown"
37923 tst_compi_gethostbyname_r="unknown"
37924 tst_allow_gethostbyname_r="unknown"
37925 tst_nargs_gethostbyname_r="unknown"
37927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37928 printf %s "checking if gethostbyname_r can be linked... " >&6; }
37929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37930 /* end confdefs.h. */
37933 #define gethostbyname_r innocuous_gethostbyname_r
37935 # include <limits.h>
37937 # include <assert.h>
37939 #undef gethostbyname_r
37943 char gethostbyname_r ();
37944 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37950 return gethostbyname_r ();
37956 if ac_fn_c_try_link "$LINENO"
37959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960 printf "%s\n" "yes" >&6; }
37961 tst_links_gethostbyname_r="yes"
37965 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37966 printf "%s\n" "no" >&6; }
37967 tst_links_gethostbyname_r="no"
37970 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37971 conftest$ac_exeext conftest.$ac_ext
37973 if test "$tst_links_gethostbyname_r" = "yes"; then
37974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37975 printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37977 /* end confdefs.h. */
37979 $curl_includes_netdb
37982 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37983 $EGREP "gethostbyname_r" >/dev/null 2>&1
37986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37987 printf "%s\n" "yes" >&6; }
37988 tst_proto_gethostbyname_r="yes"
37992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37993 printf "%s\n" "no" >&6; }
37994 tst_proto_gethostbyname_r="no"
38001 if test "$tst_proto_gethostbyname_r" = "yes"; then
38002 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
38004 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
38005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38006 /* end confdefs.h. */
38009 $curl_includes_netdb
38014 if(0 != gethostbyname_r(0, 0, 0))
38022 if ac_fn_c_try_compile "$LINENO"
38025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38026 printf "%s\n" "yes" >&6; }
38027 tst_compi_gethostbyname_r="yes"
38028 tst_nargs_gethostbyname_r="3"
38032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38033 printf "%s\n" "no" >&6; }
38034 tst_compi_gethostbyname_r="no"
38037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38039 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
38041 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
38042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38043 /* end confdefs.h. */
38046 $curl_includes_netdb
38051 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
38059 if ac_fn_c_try_compile "$LINENO"
38062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38063 printf "%s\n" "yes" >&6; }
38064 tst_compi_gethostbyname_r="yes"
38065 tst_nargs_gethostbyname_r="5"
38069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38070 printf "%s\n" "no" >&6; }
38071 tst_compi_gethostbyname_r="no"
38074 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38076 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
38077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
38078 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
38079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38080 /* end confdefs.h. */
38083 $curl_includes_netdb
38088 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
38096 if ac_fn_c_try_compile "$LINENO"
38099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38100 printf "%s\n" "yes" >&6; }
38101 tst_compi_gethostbyname_r="yes"
38102 tst_nargs_gethostbyname_r="6"
38106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38107 printf "%s\n" "no" >&6; }
38108 tst_compi_gethostbyname_r="no"
38111 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
38114 printf %s "checking if gethostbyname_r is compilable... " >&6; }
38115 if test "$tst_compi_gethostbyname_r" = "yes"; then
38116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38117 printf "%s\n" "yes" >&6; }
38119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38120 printf "%s\n" "no" >&6; }
38124 if test "$tst_compi_gethostbyname_r" = "yes"; then
38125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
38126 printf %s "checking if gethostbyname_r usage allowed... " >&6; }
38127 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
38128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38129 printf "%s\n" "yes" >&6; }
38130 tst_allow_gethostbyname_r="yes"
38132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38133 printf "%s\n" "no" >&6; }
38134 tst_allow_gethostbyname_r="no"
38138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
38139 printf %s "checking if gethostbyname_r might be used... " >&6; }
38140 if test "$tst_links_gethostbyname_r" = "yes" &&
38141 test "$tst_proto_gethostbyname_r" = "yes" &&
38142 test "$tst_compi_gethostbyname_r" = "yes" &&
38143 test "$tst_allow_gethostbyname_r" = "yes"; then
38144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38145 printf "%s\n" "yes" >&6; }
38147 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
38150 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
38152 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
38154 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
38156 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
38158 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
38160 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
38164 curl_cv_func_gethostbyname_r="yes"
38166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38167 printf "%s\n" "no" >&6; }
38168 curl_cv_func_gethostbyname_r="no"
38172 curl_preprocess_callconv="\
38173 /* preprocess start */
38174 #ifdef HAVE_WINDOWS_H
38175 # define FUNCALLCONV __stdcall
38177 # define FUNCALLCONV
38179 /* preprocess end */"
38183 tst_links_gethostname="unknown"
38184 tst_proto_gethostname="unknown"
38185 tst_compi_gethostname="unknown"
38186 tst_allow_gethostname="unknown"
38188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
38189 printf %s "checking if gethostname can be linked... " >&6; }
38190 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38191 /* end confdefs.h. */
38194 $curl_includes_winsock2
38195 $curl_includes_bsdsocket
38196 $curl_includes_unistd
38201 if(0 != gethostname(0, 0))
38209 if ac_fn_c_try_link "$LINENO"
38212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213 printf "%s\n" "yes" >&6; }
38214 tst_links_gethostname="yes"
38218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38219 printf "%s\n" "no" >&6; }
38220 tst_links_gethostname="no"
38223 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38224 conftest$ac_exeext conftest.$ac_ext
38226 if test "$tst_links_gethostname" = "yes"; then
38227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
38228 printf %s "checking if gethostname is prototyped... " >&6; }
38229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38230 /* end confdefs.h. */
38232 $curl_includes_winsock2
38233 $curl_includes_bsdsocket
38234 $curl_includes_unistd
38237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38238 $EGREP "gethostname" >/dev/null 2>&1
38241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38242 printf "%s\n" "yes" >&6; }
38243 tst_proto_gethostname="yes"
38247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38248 printf "%s\n" "no" >&6; }
38249 tst_proto_gethostname="no"
38256 if test "$tst_proto_gethostname" = "yes"; then
38257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38258 printf %s "checking if gethostname is compilable... " >&6; }
38259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38260 /* end confdefs.h. */
38263 $curl_includes_winsock2
38264 $curl_includes_bsdsocket
38265 $curl_includes_unistd
38270 if(0 != gethostname(0, 0))
38278 if ac_fn_c_try_compile "$LINENO"
38281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38282 printf "%s\n" "yes" >&6; }
38283 tst_compi_gethostname="yes"
38287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38288 printf "%s\n" "no" >&6; }
38289 tst_compi_gethostname="no"
38292 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38295 if test "$tst_compi_gethostname" = "yes"; then
38296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38297 printf %s "checking for gethostname arg 2 data type... " >&6; }
38298 tst_gethostname_type_arg2="unknown"
38299 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38300 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38301 if test "$tst_gethostname_type_arg2" = "unknown"; then
38302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38303 /* end confdefs.h. */
38306 $curl_includes_winsock2
38307 $curl_includes_bsdsocket
38308 $curl_includes_unistd
38309 $curl_preprocess_callconv
38310 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38315 if(0 != gethostname(0, 0))
38323 if ac_fn_c_try_compile "$LINENO"
38326 tst_gethostname_type_arg2="$tst_arg2"
38329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38334 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38335 if test "$tst_gethostname_type_arg2" != "unknown"; then
38337 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38342 if test "$tst_compi_gethostname" = "yes"; then
38343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38344 printf %s "checking if gethostname usage allowed... " >&6; }
38345 if test "x$curl_disallow_gethostname" != "xyes"; then
38346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38347 printf "%s\n" "yes" >&6; }
38348 tst_allow_gethostname="yes"
38350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38351 printf "%s\n" "no" >&6; }
38352 tst_allow_gethostname="no"
38356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38357 printf %s "checking if gethostname might be used... " >&6; }
38358 if test "$tst_links_gethostname" = "yes" &&
38359 test "$tst_proto_gethostname" = "yes" &&
38360 test "$tst_compi_gethostname" = "yes" &&
38361 test "$tst_allow_gethostname" = "yes"; then
38362 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38363 printf "%s\n" "yes" >&6; }
38365 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38367 curl_cv_func_gethostname="yes"
38369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38370 printf "%s\n" "no" >&6; }
38371 curl_cv_func_gethostname="no"
38376 tst_links_getpeername="unknown"
38377 tst_proto_getpeername="unknown"
38378 tst_compi_getpeername="unknown"
38379 tst_allow_getpeername="unknown"
38381 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38382 printf %s "checking if getpeername can be linked... " >&6; }
38383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38384 /* end confdefs.h. */
38387 $curl_includes_winsock2
38388 $curl_includes_bsdsocket
38389 $curl_includes_sys_socket
38394 if(0 != getpeername(0, (void *)0, (void *)0))
38402 if ac_fn_c_try_link "$LINENO"
38405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38406 printf "%s\n" "yes" >&6; }
38407 tst_links_getpeername="yes"
38411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38412 printf "%s\n" "no" >&6; }
38413 tst_links_getpeername="no"
38416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38417 conftest$ac_exeext conftest.$ac_ext
38419 if test "$tst_links_getpeername" = "yes"; then
38420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38421 printf %s "checking if getpeername is prototyped... " >&6; }
38422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38423 /* end confdefs.h. */
38425 $curl_includes_winsock2
38426 $curl_includes_bsdsocket
38427 $curl_includes_sys_socket
38430 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38431 $EGREP "getpeername" >/dev/null 2>&1
38434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38435 printf "%s\n" "yes" >&6; }
38436 tst_proto_getpeername="yes"
38440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38441 printf "%s\n" "no" >&6; }
38442 tst_proto_getpeername="no"
38449 if test "$tst_proto_getpeername" = "yes"; then
38450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38451 printf %s "checking if getpeername is compilable... " >&6; }
38452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38453 /* end confdefs.h. */
38456 $curl_includes_winsock2
38457 $curl_includes_bsdsocket
38458 $curl_includes_sys_socket
38463 if(0 != getpeername(0, (void *)0, (void *)0))
38471 if ac_fn_c_try_compile "$LINENO"
38474 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38475 printf "%s\n" "yes" >&6; }
38476 tst_compi_getpeername="yes"
38480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38481 printf "%s\n" "no" >&6; }
38482 tst_compi_getpeername="no"
38485 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38488 if test "$tst_compi_getpeername" = "yes"; then
38489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38490 printf %s "checking if getpeername usage allowed... " >&6; }
38491 if test "x$curl_disallow_getpeername" != "xyes"; then
38492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38493 printf "%s\n" "yes" >&6; }
38494 tst_allow_getpeername="yes"
38496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38497 printf "%s\n" "no" >&6; }
38498 tst_allow_getpeername="no"
38502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38503 printf %s "checking if getpeername might be used... " >&6; }
38504 if test "$tst_links_getpeername" = "yes" &&
38505 test "$tst_proto_getpeername" = "yes" &&
38506 test "$tst_compi_getpeername" = "yes" &&
38507 test "$tst_allow_getpeername" = "yes"; then
38508 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38509 printf "%s\n" "yes" >&6; }
38511 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38513 curl_cv_func_getpeername="yes"
38515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38516 printf "%s\n" "no" >&6; }
38517 curl_cv_func_getpeername="no"
38522 tst_links_getsockname="unknown"
38523 tst_proto_getsockname="unknown"
38524 tst_compi_getsockname="unknown"
38525 tst_allow_getsockname="unknown"
38527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38528 printf %s "checking if getsockname can be linked... " >&6; }
38529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38530 /* end confdefs.h. */
38533 $curl_includes_winsock2
38534 $curl_includes_bsdsocket
38535 $curl_includes_sys_socket
38540 if(0 != getsockname(0, (void *)0, (void *)0))
38548 if ac_fn_c_try_link "$LINENO"
38551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38552 printf "%s\n" "yes" >&6; }
38553 tst_links_getsockname="yes"
38557 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38558 printf "%s\n" "no" >&6; }
38559 tst_links_getsockname="no"
38562 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38563 conftest$ac_exeext conftest.$ac_ext
38565 if test "$tst_links_getsockname" = "yes"; then
38566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38567 printf %s "checking if getsockname is prototyped... " >&6; }
38568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38569 /* end confdefs.h. */
38571 $curl_includes_winsock2
38572 $curl_includes_bsdsocket
38573 $curl_includes_sys_socket
38576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38577 $EGREP "getsockname" >/dev/null 2>&1
38580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38581 printf "%s\n" "yes" >&6; }
38582 tst_proto_getsockname="yes"
38586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38587 printf "%s\n" "no" >&6; }
38588 tst_proto_getsockname="no"
38595 if test "$tst_proto_getsockname" = "yes"; then
38596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38597 printf %s "checking if getsockname is compilable... " >&6; }
38598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38599 /* end confdefs.h. */
38602 $curl_includes_winsock2
38603 $curl_includes_bsdsocket
38604 $curl_includes_sys_socket
38609 if(0 != getsockname(0, (void *)0, (void *)0))
38617 if ac_fn_c_try_compile "$LINENO"
38620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38621 printf "%s\n" "yes" >&6; }
38622 tst_compi_getsockname="yes"
38626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38627 printf "%s\n" "no" >&6; }
38628 tst_compi_getsockname="no"
38631 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38634 if test "$tst_compi_getsockname" = "yes"; then
38635 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38636 printf %s "checking if getsockname usage allowed... " >&6; }
38637 if test "x$curl_disallow_getsockname" != "xyes"; then
38638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38639 printf "%s\n" "yes" >&6; }
38640 tst_allow_getsockname="yes"
38642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38643 printf "%s\n" "no" >&6; }
38644 tst_allow_getsockname="no"
38648 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38649 printf %s "checking if getsockname might be used... " >&6; }
38650 if test "$tst_links_getsockname" = "yes" &&
38651 test "$tst_proto_getsockname" = "yes" &&
38652 test "$tst_compi_getsockname" = "yes" &&
38653 test "$tst_allow_getsockname" = "yes"; then
38654 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38655 printf "%s\n" "yes" >&6; }
38657 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38659 curl_cv_func_getsockname="yes"
38661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38662 printf "%s\n" "no" >&6; }
38663 curl_cv_func_getsockname="no"
38667 curl_includes_netif="\
38668 /* includes start */
38669 #ifdef HAVE_NET_IF_H
38670 # include <net/if.h>
38672 /* includes end */"
38673 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38675 if test "x$ac_cv_header_net_if_h" = xyes
38677 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38684 tst_links_if_nametoindex="unknown"
38685 tst_proto_if_nametoindex="unknown"
38686 tst_compi_if_nametoindex="unknown"
38687 tst_allow_if_nametoindex="unknown"
38689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38690 printf %s "checking if if_nametoindex can be linked... " >&6; }
38691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38692 /* end confdefs.h. */
38695 $curl_includes_winsock2
38696 $curl_includes_bsdsocket
38697 #include <net/if.h>
38702 if(0 != if_nametoindex(""))
38710 if ac_fn_c_try_link "$LINENO"
38713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38714 printf "%s\n" "yes" >&6; }
38715 tst_links_if_nametoindex="yes"
38719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38720 printf "%s\n" "no" >&6; }
38721 tst_links_if_nametoindex="no"
38724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38725 conftest$ac_exeext conftest.$ac_ext
38727 if test "$tst_links_if_nametoindex" = "yes"; then
38728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38729 printf %s "checking if if_nametoindex is prototyped... " >&6; }
38730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38731 /* end confdefs.h. */
38733 $curl_includes_winsock2
38734 $curl_includes_netif
38737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38738 $EGREP "if_nametoindex" >/dev/null 2>&1
38741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38742 printf "%s\n" "yes" >&6; }
38743 tst_proto_if_nametoindex="yes"
38747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38748 printf "%s\n" "no" >&6; }
38749 tst_proto_if_nametoindex="no"
38756 if test "$tst_proto_if_nametoindex" = "yes"; then
38757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38758 printf %s "checking if if_nametoindex is compilable... " >&6; }
38759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38760 /* end confdefs.h. */
38763 $curl_includes_winsock2
38764 $curl_includes_netif
38769 if(0 != if_nametoindex(""))
38777 if ac_fn_c_try_compile "$LINENO"
38780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38781 printf "%s\n" "yes" >&6; }
38782 tst_compi_if_nametoindex="yes"
38786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38787 printf "%s\n" "no" >&6; }
38788 tst_compi_if_nametoindex="no"
38791 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38794 if test "$tst_compi_if_nametoindex" = "yes"; then
38795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38796 printf %s "checking if if_nametoindex usage allowed... " >&6; }
38797 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38799 printf "%s\n" "yes" >&6; }
38800 tst_allow_if_nametoindex="yes"
38802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38803 printf "%s\n" "no" >&6; }
38804 tst_allow_if_nametoindex="no"
38808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38809 printf %s "checking if if_nametoindex might be used... " >&6; }
38810 if test "$tst_links_if_nametoindex" = "yes" &&
38811 test "$tst_proto_if_nametoindex" = "yes" &&
38812 test "$tst_compi_if_nametoindex" = "yes" &&
38813 test "$tst_allow_if_nametoindex" = "yes"; then
38814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38815 printf "%s\n" "yes" >&6; }
38817 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38819 curl_cv_func_if_nametoindex="yes"
38821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38822 printf "%s\n" "no" >&6; }
38823 curl_cv_func_if_nametoindex="no"
38827 curl_includes_ifaddrs="\
38828 /* includes start */
38829 #ifdef HAVE_SYS_TYPES_H
38830 # include <sys/types.h>
38832 #ifdef HAVE_SYS_SOCKET_H
38833 # include <sys/socket.h>
38835 #ifdef HAVE_NETINET_IN_H
38836 # include <netinet/in.h>
38838 #ifdef HAVE_IFADDRS_H
38839 # include <ifaddrs.h>
38841 /* includes end */"
38842 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38844 if test "x$ac_cv_header_sys_types_h" = xyes
38846 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38849 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38851 if test "x$ac_cv_header_sys_socket_h" = xyes
38853 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38856 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38858 if test "x$ac_cv_header_netinet_in_h" = xyes
38860 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38863 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38865 if test "x$ac_cv_header_ifaddrs_h" = xyes
38867 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38874 tst_links_getifaddrs="unknown"
38875 tst_proto_getifaddrs="unknown"
38876 tst_compi_getifaddrs="unknown"
38877 tst_works_getifaddrs="unknown"
38878 tst_allow_getifaddrs="unknown"
38880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38881 printf %s "checking if getifaddrs can be linked... " >&6; }
38882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38883 /* end confdefs.h. */
38886 #define getifaddrs innocuous_getifaddrs
38888 # include <limits.h>
38890 # include <assert.h>
38896 char getifaddrs ();
38897 #if defined __stub_getifaddrs || defined __stub___getifaddrs
38903 return getifaddrs ();
38909 if ac_fn_c_try_link "$LINENO"
38912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38913 printf "%s\n" "yes" >&6; }
38914 tst_links_getifaddrs="yes"
38918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38919 printf "%s\n" "no" >&6; }
38920 tst_links_getifaddrs="no"
38923 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38924 conftest$ac_exeext conftest.$ac_ext
38926 if test "$tst_links_getifaddrs" = "yes"; then
38927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38928 printf %s "checking if getifaddrs is prototyped... " >&6; }
38929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38930 /* end confdefs.h. */
38932 $curl_includes_ifaddrs
38935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38936 $EGREP "getifaddrs" >/dev/null 2>&1
38939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38940 printf "%s\n" "yes" >&6; }
38941 tst_proto_getifaddrs="yes"
38945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38946 printf "%s\n" "no" >&6; }
38947 tst_proto_getifaddrs="no"
38954 if test "$tst_proto_getifaddrs" = "yes"; then
38955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38956 printf %s "checking if getifaddrs is compilable... " >&6; }
38957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38958 /* end confdefs.h. */
38961 $curl_includes_ifaddrs
38966 if(0 != getifaddrs(0))
38974 if ac_fn_c_try_compile "$LINENO"
38977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38978 printf "%s\n" "yes" >&6; }
38979 tst_compi_getifaddrs="yes"
38983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38984 printf "%s\n" "no" >&6; }
38985 tst_compi_getifaddrs="no"
38988 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38991 if test "x$cross_compiling" != "xyes" &&
38992 test "$tst_compi_getifaddrs" = "yes"; then
38993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38994 printf %s "checking if getifaddrs seems to work... " >&6; }
38997 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
38998 *) library_path_var=LD_LIBRARY_PATH ;;
39001 eval "old=$$library_path_var"
39002 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39004 eval "export $library_path_var"
39005 if test "$cross_compiling" = yes
39007 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39008 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39009 as_fn_error $? "cannot run test program while cross compiling
39010 See \`config.log' for more details" "$LINENO" 5; }
39012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39013 /* end confdefs.h. */
39016 $curl_includes_stdlib
39017 $curl_includes_ifaddrs
39022 struct ifaddrs *ifa = 0;
39025 error = getifaddrs(&ifa);
39027 exit(1); /* fail */
39036 if ac_fn_c_try_run "$LINENO"
39038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39039 printf "%s\n" "yes" >&6; }
39040 tst_works_getifaddrs="yes"
39043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39044 printf "%s\n" "no" >&6; }
39045 tst_works_getifaddrs="no"
39048 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39049 conftest.$ac_objext conftest.beam conftest.$ac_ext
39052 eval "$library_path_var=\$old" # restore
39056 if test "$tst_compi_getifaddrs" = "yes" &&
39057 test "$tst_works_getifaddrs" != "no"; then
39058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
39059 printf %s "checking if getifaddrs usage allowed... " >&6; }
39060 if test "x$curl_disallow_getifaddrs" != "xyes"; then
39061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39062 printf "%s\n" "yes" >&6; }
39063 tst_allow_getifaddrs="yes"
39065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39066 printf "%s\n" "no" >&6; }
39067 tst_allow_getifaddrs="no"
39071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
39072 printf %s "checking if getifaddrs might be used... " >&6; }
39073 if test "$tst_links_getifaddrs" = "yes" &&
39074 test "$tst_proto_getifaddrs" = "yes" &&
39075 test "$tst_compi_getifaddrs" = "yes" &&
39076 test "$tst_allow_getifaddrs" = "yes" &&
39077 test "$tst_works_getifaddrs" != "no"; then
39078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39079 printf "%s\n" "yes" >&6; }
39081 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
39083 curl_cv_func_getifaddrs="yes"
39085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086 printf "%s\n" "no" >&6; }
39087 curl_cv_func_getifaddrs="no"
39091 curl_includes_time="\
39092 /* includes start */
39093 #ifdef HAVE_SYS_TYPES_H
39094 # include <sys/types.h>
39096 #ifdef HAVE_SYS_TIME_H
39097 # include <sys/time.h>
39100 /* includes end */"
39101 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
39103 if test "x$ac_cv_header_sys_types_h" = xyes
39105 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39108 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
39110 if test "x$ac_cv_header_sys_time_h" = xyes
39112 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
39119 tst_links_gmtime_r="unknown"
39120 tst_proto_gmtime_r="unknown"
39121 tst_compi_gmtime_r="unknown"
39122 tst_works_gmtime_r="unknown"
39123 tst_allow_gmtime_r="unknown"
39125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
39126 printf %s "checking if gmtime_r can be linked... " >&6; }
39127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39128 /* end confdefs.h. */
39131 #define gmtime_r innocuous_gmtime_r
39133 # include <limits.h>
39135 # include <assert.h>
39142 #if defined __stub_gmtime_r || defined __stub___gmtime_r
39148 return gmtime_r ();
39154 if ac_fn_c_try_link "$LINENO"
39157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39158 printf "%s\n" "yes" >&6; }
39159 tst_links_gmtime_r="yes"
39163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39164 printf "%s\n" "no" >&6; }
39165 tst_links_gmtime_r="no"
39168 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39169 conftest$ac_exeext conftest.$ac_ext
39171 if test "$tst_links_gmtime_r" = "yes"; then
39172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
39173 printf %s "checking if gmtime_r is prototyped... " >&6; }
39174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39175 /* end confdefs.h. */
39177 $curl_includes_time
39180 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39181 $EGREP "gmtime_r" >/dev/null 2>&1
39184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39185 printf "%s\n" "yes" >&6; }
39186 tst_proto_gmtime_r="yes"
39190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39191 printf "%s\n" "no" >&6; }
39192 tst_proto_gmtime_r="no"
39199 if test "$tst_proto_gmtime_r" = "yes"; then
39200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39201 printf %s "checking if gmtime_r is compilable... " >&6; }
39202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39203 /* end confdefs.h. */
39206 $curl_includes_time
39211 if(0 != gmtime_r(0, 0))
39219 if ac_fn_c_try_compile "$LINENO"
39222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39223 printf "%s\n" "yes" >&6; }
39224 tst_compi_gmtime_r="yes"
39228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39229 printf "%s\n" "no" >&6; }
39230 tst_compi_gmtime_r="no"
39233 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39236 if test "x$cross_compiling" != "xyes" &&
39237 test "$tst_compi_gmtime_r" = "yes"; then
39238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39239 printf %s "checking if gmtime_r seems to work... " >&6; }
39242 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
39243 *) library_path_var=LD_LIBRARY_PATH ;;
39246 eval "old=$$library_path_var"
39247 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39249 eval "export $library_path_var"
39250 if test "$cross_compiling" = yes
39252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39254 as_fn_error $? "cannot run test program while cross compiling
39255 See \`config.log' for more details" "$LINENO" 5; }
39257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39258 /* end confdefs.h. */
39261 $curl_includes_stdlib
39262 $curl_includes_time
39267 time_t local = 1170352587;
39268 struct tm *gmt = 0;
39270 gmt = gmtime_r(&local, &result);
39281 if ac_fn_c_try_run "$LINENO"
39283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39284 printf "%s\n" "yes" >&6; }
39285 tst_works_gmtime_r="yes"
39288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39289 printf "%s\n" "no" >&6; }
39290 tst_works_gmtime_r="no"
39293 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39294 conftest.$ac_objext conftest.beam conftest.$ac_ext
39297 eval "$library_path_var=\$old" # restore
39301 if test "$tst_compi_gmtime_r" = "yes" &&
39302 test "$tst_works_gmtime_r" != "no"; then
39303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39304 printf %s "checking if gmtime_r usage allowed... " >&6; }
39305 if test "x$curl_disallow_gmtime_r" != "xyes"; then
39306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39307 printf "%s\n" "yes" >&6; }
39308 tst_allow_gmtime_r="yes"
39310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39311 printf "%s\n" "no" >&6; }
39312 tst_allow_gmtime_r="no"
39316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39317 printf %s "checking if gmtime_r might be used... " >&6; }
39318 if test "$tst_links_gmtime_r" = "yes" &&
39319 test "$tst_proto_gmtime_r" = "yes" &&
39320 test "$tst_compi_gmtime_r" = "yes" &&
39321 test "$tst_allow_gmtime_r" = "yes" &&
39322 test "$tst_works_gmtime_r" != "no"; then
39323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39324 printf "%s\n" "yes" >&6; }
39326 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39328 curl_cv_func_gmtime_r="yes"
39330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39331 printf "%s\n" "no" >&6; }
39332 curl_cv_func_gmtime_r="no"
39336 curl_includes_arpa_inet="\
39337 /* includes start */
39338 #ifdef HAVE_SYS_TYPES_H
39339 # include <sys/types.h>
39341 #ifdef HAVE_SYS_SOCKET_H
39342 # include <sys/socket.h>
39344 #ifdef HAVE_NETINET_IN_H
39345 # include <netinet/in.h>
39347 #ifdef HAVE_ARPA_INET_H
39348 # include <arpa/inet.h>
39350 #ifdef HAVE_WINSOCK2_H
39351 #include <winsock2.h>
39352 #include <ws2tcpip.h>
39354 /* includes end */"
39355 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39357 if test "x$ac_cv_header_sys_types_h" = xyes
39359 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39362 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39364 if test "x$ac_cv_header_sys_socket_h" = xyes
39366 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39369 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39371 if test "x$ac_cv_header_netinet_in_h" = xyes
39373 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39376 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39378 if test "x$ac_cv_header_arpa_inet_h" = xyes
39380 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39387 tst_links_inet_ntop="unknown"
39388 tst_proto_inet_ntop="unknown"
39389 tst_compi_inet_ntop="unknown"
39390 tst_works_inet_ntop="unknown"
39391 tst_allow_inet_ntop="unknown"
39393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39394 printf %s "checking if inet_ntop can be linked... " >&6; }
39395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39396 /* end confdefs.h. */
39399 #define inet_ntop innocuous_inet_ntop
39401 # include <limits.h>
39403 # include <assert.h>
39410 #if defined __stub_inet_ntop || defined __stub___inet_ntop
39416 return inet_ntop ();
39422 if ac_fn_c_try_link "$LINENO"
39425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39426 printf "%s\n" "yes" >&6; }
39427 tst_links_inet_ntop="yes"
39431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39432 printf "%s\n" "no" >&6; }
39433 tst_links_inet_ntop="no"
39436 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39437 conftest$ac_exeext conftest.$ac_ext
39439 if test "$tst_links_inet_ntop" = "yes"; then
39440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39441 printf %s "checking if inet_ntop is prototyped... " >&6; }
39442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39443 /* end confdefs.h. */
39445 $curl_includes_arpa_inet
39448 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39449 $EGREP "inet_ntop" >/dev/null 2>&1
39452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39453 printf "%s\n" "yes" >&6; }
39454 tst_proto_inet_ntop="yes"
39458 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39459 printf "%s\n" "no" >&6; }
39460 tst_proto_inet_ntop="no"
39467 if test "$tst_proto_inet_ntop" = "yes"; then
39468 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39469 printf %s "checking if inet_ntop is compilable... " >&6; }
39470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39471 /* end confdefs.h. */
39474 $curl_includes_arpa_inet
39479 if(0 != inet_ntop(0, 0, 0, 0))
39487 if ac_fn_c_try_compile "$LINENO"
39490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39491 printf "%s\n" "yes" >&6; }
39492 tst_compi_inet_ntop="yes"
39496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39497 printf "%s\n" "no" >&6; }
39498 tst_compi_inet_ntop="no"
39501 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39504 if test "x$cross_compiling" != "xyes" &&
39505 test "$tst_compi_inet_ntop" = "yes"; then
39506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39507 printf %s "checking if inet_ntop seems to work... " >&6; }
39510 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
39511 *) library_path_var=LD_LIBRARY_PATH ;;
39514 eval "old=$$library_path_var"
39515 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39517 eval "export $library_path_var"
39518 if test "$cross_compiling" = yes
39520 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39521 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39522 as_fn_error $? "cannot run test program while cross compiling
39523 See \`config.log' for more details" "$LINENO" 5; }
39525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39526 /* end confdefs.h. */
39529 $curl_includes_stdlib
39530 $curl_includes_arpa_inet
39531 $curl_includes_string
39536 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39537 char ipv4res[sizeof "255.255.255.255"];
39538 unsigned char ipv6a[26];
39539 unsigned char ipv4a[5];
39550 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39552 exit(1); /* fail */
39553 if(ipv4ptr != ipv4res)
39554 exit(1); /* fail */
39556 exit(1); /* fail */
39557 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39558 exit(1); /* fail */
39561 memset(ipv6a, 0, sizeof(ipv6a));
39574 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39576 exit(1); /* fail */
39577 if(ipv6ptr != ipv6res)
39578 exit(1); /* fail */
39580 exit(1); /* fail */
39581 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39582 exit(1); /* fail */
39591 if ac_fn_c_try_run "$LINENO"
39593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39594 printf "%s\n" "yes" >&6; }
39595 tst_works_inet_ntop="yes"
39598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39599 printf "%s\n" "no" >&6; }
39600 tst_works_inet_ntop="no"
39603 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39604 conftest.$ac_objext conftest.beam conftest.$ac_ext
39607 eval "$library_path_var=\$old" # restore
39611 if test "$tst_compi_inet_ntop" = "yes" &&
39612 test "$tst_works_inet_ntop" != "no"; then
39613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39614 printf %s "checking if inet_ntop usage allowed... " >&6; }
39615 if test "x$curl_disallow_inet_ntop" != "xyes"; then
39616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39617 printf "%s\n" "yes" >&6; }
39618 tst_allow_inet_ntop="yes"
39620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39621 printf "%s\n" "no" >&6; }
39622 tst_allow_inet_ntop="no"
39626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39627 printf %s "checking if inet_ntop might be used... " >&6; }
39628 if test "$tst_links_inet_ntop" = "yes" &&
39629 test "$tst_proto_inet_ntop" = "yes" &&
39630 test "$tst_compi_inet_ntop" = "yes" &&
39631 test "$tst_allow_inet_ntop" = "yes" &&
39632 test "$tst_works_inet_ntop" != "no"; then
39633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39634 printf "%s\n" "yes" >&6; }
39636 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39638 curl_cv_func_inet_ntop="yes"
39640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39641 printf "%s\n" "no" >&6; }
39642 curl_cv_func_inet_ntop="no"
39647 tst_links_inet_pton="unknown"
39648 tst_proto_inet_pton="unknown"
39649 tst_compi_inet_pton="unknown"
39650 tst_works_inet_pton="unknown"
39651 tst_allow_inet_pton="unknown"
39653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39654 printf %s "checking if inet_pton can be linked... " >&6; }
39655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39656 /* end confdefs.h. */
39659 #define inet_pton innocuous_inet_pton
39661 # include <limits.h>
39663 # include <assert.h>
39670 #if defined __stub_inet_pton || defined __stub___inet_pton
39676 return inet_pton ();
39682 if ac_fn_c_try_link "$LINENO"
39685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39686 printf "%s\n" "yes" >&6; }
39687 tst_links_inet_pton="yes"
39691 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39692 printf "%s\n" "no" >&6; }
39693 tst_links_inet_pton="no"
39696 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39697 conftest$ac_exeext conftest.$ac_ext
39699 if test "$tst_links_inet_pton" = "yes"; then
39700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39701 printf %s "checking if inet_pton is prototyped... " >&6; }
39702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39703 /* end confdefs.h. */
39705 $curl_includes_arpa_inet
39708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39709 $EGREP "inet_pton" >/dev/null 2>&1
39712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39713 printf "%s\n" "yes" >&6; }
39714 tst_proto_inet_pton="yes"
39718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39719 printf "%s\n" "no" >&6; }
39720 tst_proto_inet_pton="no"
39727 if test "$tst_proto_inet_pton" = "yes"; then
39728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39729 printf %s "checking if inet_pton is compilable... " >&6; }
39730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39731 /* end confdefs.h. */
39734 $curl_includes_arpa_inet
39739 if(0 != inet_pton(0, 0, 0))
39747 if ac_fn_c_try_compile "$LINENO"
39750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39751 printf "%s\n" "yes" >&6; }
39752 tst_compi_inet_pton="yes"
39756 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39757 printf "%s\n" "no" >&6; }
39758 tst_compi_inet_pton="no"
39761 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39764 if test "x$cross_compiling" != "xyes" &&
39765 test "$tst_compi_inet_pton" = "yes"; then
39766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39767 printf %s "checking if inet_pton seems to work... " >&6; }
39770 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
39771 *) library_path_var=LD_LIBRARY_PATH ;;
39774 eval "old=$$library_path_var"
39775 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
39777 eval "export $library_path_var"
39778 if test "$cross_compiling" = yes
39780 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39781 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39782 as_fn_error $? "cannot run test program while cross compiling
39783 See \`config.log' for more details" "$LINENO" 5; }
39785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39786 /* end confdefs.h. */
39789 $curl_includes_stdlib
39790 $curl_includes_arpa_inet
39791 $curl_includes_string
39796 unsigned char ipv6a[16+1];
39797 unsigned char ipv4a[4+1];
39798 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39799 const char *ipv4src = "192.168.100.1";
39801 memset(ipv4a, 1, sizeof(ipv4a));
39802 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39803 exit(1); /* fail */
39805 if( (ipv4a[0] != 0xc0) ||
39806 (ipv4a[1] != 0xa8) ||
39807 (ipv4a[2] != 0x64) ||
39808 (ipv4a[3] != 0x01) ||
39809 (ipv4a[4] != 0x01) )
39810 exit(1); /* fail */
39812 memset(ipv6a, 1, sizeof(ipv6a));
39813 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39814 exit(1); /* fail */
39816 if( (ipv6a[0] != 0xfe) ||
39817 (ipv6a[1] != 0x80) ||
39818 (ipv6a[8] != 0x02) ||
39819 (ipv6a[9] != 0x14) ||
39820 (ipv6a[10] != 0x4f) ||
39821 (ipv6a[11] != 0xff) ||
39822 (ipv6a[12] != 0xfe) ||
39823 (ipv6a[13] != 0x0b) ||
39824 (ipv6a[14] != 0x76) ||
39825 (ipv6a[15] != 0xc8) ||
39826 (ipv6a[16] != 0x01) )
39827 exit(1); /* fail */
39829 if( (ipv6a[2] != 0x0) ||
39830 (ipv6a[3] != 0x0) ||
39831 (ipv6a[4] != 0x0) ||
39832 (ipv6a[5] != 0x0) ||
39833 (ipv6a[6] != 0x0) ||
39834 (ipv6a[7] != 0x0) )
39835 exit(1); /* fail */
39844 if ac_fn_c_try_run "$LINENO"
39846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39847 printf "%s\n" "yes" >&6; }
39848 tst_works_inet_pton="yes"
39851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39852 printf "%s\n" "no" >&6; }
39853 tst_works_inet_pton="no"
39856 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39857 conftest.$ac_objext conftest.beam conftest.$ac_ext
39860 eval "$library_path_var=\$old" # restore
39864 if test "$tst_compi_inet_pton" = "yes" &&
39865 test "$tst_works_inet_pton" != "no"; then
39866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39867 printf %s "checking if inet_pton usage allowed... " >&6; }
39868 if test "x$curl_disallow_inet_pton" != "xyes"; then
39869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39870 printf "%s\n" "yes" >&6; }
39871 tst_allow_inet_pton="yes"
39873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39874 printf "%s\n" "no" >&6; }
39875 tst_allow_inet_pton="no"
39879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39880 printf %s "checking if inet_pton might be used... " >&6; }
39881 if test "$tst_links_inet_pton" = "yes" &&
39882 test "$tst_proto_inet_pton" = "yes" &&
39883 test "$tst_compi_inet_pton" = "yes" &&
39884 test "$tst_allow_inet_pton" = "yes" &&
39885 test "$tst_works_inet_pton" != "no"; then
39886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39887 printf "%s\n" "yes" >&6; }
39889 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39891 curl_cv_func_inet_pton="yes"
39893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39894 printf "%s\n" "no" >&6; }
39895 curl_cv_func_inet_pton="no"
39899 curl_includes_stropts="\
39900 /* includes start */
39901 #ifdef HAVE_SYS_TYPES_H
39902 # include <sys/types.h>
39904 #ifdef HAVE_UNISTD_H
39905 # include <unistd.h>
39907 #ifdef HAVE_SYS_SOCKET_H
39908 # include <sys/socket.h>
39910 #ifdef HAVE_SYS_IOCTL_H
39911 # include <sys/ioctl.h>
39913 #ifdef HAVE_STROPTS_H
39914 # include <stropts.h>
39916 /* includes end */"
39917 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stropts
39919 if test "x$ac_cv_header_sys_types_h" = xyes
39921 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39924 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_stropts
39926 if test "x$ac_cv_header_unistd_h" = xyes
39928 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
39931 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_stropts
39933 if test "x$ac_cv_header_sys_socket_h" = xyes
39935 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39938 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$curl_includes_stropts
39940 if test "x$ac_cv_header_sys_ioctl_h" = xyes
39942 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
39945 ac_fn_c_check_header_compile "$LINENO" "stropts.h" "ac_cv_header_stropts_h" "$curl_includes_stropts
39947 if test "x$ac_cv_header_stropts_h" = xyes
39949 printf "%s\n" "#define HAVE_STROPTS_H 1" >>confdefs.h
39956 tst_links_ioctl="unknown"
39957 tst_proto_ioctl="unknown"
39958 tst_compi_ioctl="unknown"
39959 tst_allow_ioctl="unknown"
39961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
39962 printf %s "checking if ioctl can be linked... " >&6; }
39963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39964 /* end confdefs.h. */
39967 #define ioctl innocuous_ioctl
39969 # include <limits.h>
39971 # include <assert.h>
39978 #if defined __stub_ioctl || defined __stub___ioctl
39990 if ac_fn_c_try_link "$LINENO"
39993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39994 printf "%s\n" "yes" >&6; }
39995 tst_links_ioctl="yes"
39999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40000 printf "%s\n" "no" >&6; }
40001 tst_links_ioctl="no"
40004 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40005 conftest$ac_exeext conftest.$ac_ext
40007 if test "$tst_links_ioctl" = "yes"; then
40008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
40009 printf %s "checking if ioctl is prototyped... " >&6; }
40010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40011 /* end confdefs.h. */
40013 $curl_includes_stropts
40016 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40017 $EGREP "ioctl" >/dev/null 2>&1
40020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40021 printf "%s\n" "yes" >&6; }
40022 tst_proto_ioctl="yes"
40026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40027 printf "%s\n" "no" >&6; }
40028 tst_proto_ioctl="no"
40035 if test "$tst_proto_ioctl" = "yes"; then
40036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
40037 printf %s "checking if ioctl is compilable... " >&6; }
40038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40039 /* end confdefs.h. */
40042 $curl_includes_stropts
40047 if(0 != ioctl(0, 0, 0))
40055 if ac_fn_c_try_compile "$LINENO"
40058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40059 printf "%s\n" "yes" >&6; }
40060 tst_compi_ioctl="yes"
40064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40065 printf "%s\n" "no" >&6; }
40066 tst_compi_ioctl="no"
40069 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40072 if test "$tst_compi_ioctl" = "yes"; then
40073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
40074 printf %s "checking if ioctl usage allowed... " >&6; }
40075 if test "x$curl_disallow_ioctl" != "xyes"; then
40076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40077 printf "%s\n" "yes" >&6; }
40078 tst_allow_ioctl="yes"
40080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40081 printf "%s\n" "no" >&6; }
40082 tst_allow_ioctl="no"
40086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
40087 printf %s "checking if ioctl might be used... " >&6; }
40088 if test "$tst_links_ioctl" = "yes" &&
40089 test "$tst_proto_ioctl" = "yes" &&
40090 test "$tst_compi_ioctl" = "yes" &&
40091 test "$tst_allow_ioctl" = "yes"; then
40092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40093 printf "%s\n" "yes" >&6; }
40095 printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h
40097 curl_cv_func_ioctl="yes"
40100 tst_compi_ioctl_fionbio="unknown"
40101 tst_allow_ioctl_fionbio="unknown"
40103 if test "$curl_cv_func_ioctl" = "yes"; then
40104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
40105 printf %s "checking if ioctl FIONBIO is compilable... " >&6; }
40106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40107 /* end confdefs.h. */
40110 $curl_includes_stropts
40116 if(0 != ioctl(0, FIONBIO, &flags))
40124 if ac_fn_c_try_compile "$LINENO"
40127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40128 printf "%s\n" "yes" >&6; }
40129 tst_compi_ioctl_fionbio="yes"
40133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40134 printf "%s\n" "no" >&6; }
40135 tst_compi_ioctl_fionbio="no"
40138 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40141 if test "$tst_compi_ioctl_fionbio" = "yes"; then
40142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
40143 printf %s "checking if ioctl FIONBIO usage allowed... " >&6; }
40144 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
40145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40146 printf "%s\n" "yes" >&6; }
40147 tst_allow_ioctl_fionbio="yes"
40149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40150 printf "%s\n" "no" >&6; }
40151 tst_allow_ioctl_fionbio="no"
40155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
40156 printf %s "checking if ioctl FIONBIO might be used... " >&6; }
40157 if test "$tst_compi_ioctl_fionbio" = "yes" &&
40158 test "$tst_allow_ioctl_fionbio" = "yes"; then
40159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40160 printf "%s\n" "yes" >&6; }
40162 printf "%s\n" "#define HAVE_IOCTL_FIONBIO 1" >>confdefs.h
40164 curl_cv_func_ioctl_fionbio="yes"
40166 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40167 printf "%s\n" "no" >&6; }
40168 curl_cv_func_ioctl_fionbio="no"
40173 tst_compi_ioctl_siocgifaddr="unknown"
40174 tst_allow_ioctl_siocgifaddr="unknown"
40176 if test "$curl_cv_func_ioctl" = "yes"; then
40177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
40178 printf %s "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
40179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40180 /* end confdefs.h. */
40183 $curl_includes_stropts
40184 #include <net/if.h>
40190 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
40198 if ac_fn_c_try_compile "$LINENO"
40201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40202 printf "%s\n" "yes" >&6; }
40203 tst_compi_ioctl_siocgifaddr="yes"
40207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40208 printf "%s\n" "no" >&6; }
40209 tst_compi_ioctl_siocgifaddr="no"
40212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40215 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
40216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
40217 printf %s "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
40218 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
40219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40220 printf "%s\n" "yes" >&6; }
40221 tst_allow_ioctl_siocgifaddr="yes"
40223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40224 printf "%s\n" "no" >&6; }
40225 tst_allow_ioctl_siocgifaddr="no"
40229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
40230 printf %s "checking if ioctl SIOCGIFADDR might be used... " >&6; }
40231 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
40232 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
40233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40234 printf "%s\n" "yes" >&6; }
40236 printf "%s\n" "#define HAVE_IOCTL_SIOCGIFADDR 1" >>confdefs.h
40238 curl_cv_func_ioctl_siocgifaddr="yes"
40240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40241 printf "%s\n" "no" >&6; }
40242 curl_cv_func_ioctl_siocgifaddr="no"
40246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40247 printf "%s\n" "no" >&6; }
40248 curl_cv_func_ioctl="no"
40253 tst_links_ioctlsocket="unknown"
40254 tst_proto_ioctlsocket="unknown"
40255 tst_compi_ioctlsocket="unknown"
40256 tst_allow_ioctlsocket="unknown"
40258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
40259 printf %s "checking if ioctlsocket can be linked... " >&6; }
40260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40261 /* end confdefs.h. */
40264 $curl_includes_winsock2
40265 $curl_includes_bsdsocket
40270 if(0 != ioctlsocket(0, 0, 0))
40278 if ac_fn_c_try_link "$LINENO"
40281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40282 printf "%s\n" "yes" >&6; }
40283 tst_links_ioctlsocket="yes"
40287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40288 printf "%s\n" "no" >&6; }
40289 tst_links_ioctlsocket="no"
40292 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40293 conftest$ac_exeext conftest.$ac_ext
40295 if test "$tst_links_ioctlsocket" = "yes"; then
40296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
40297 printf %s "checking if ioctlsocket is prototyped... " >&6; }
40298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40299 /* end confdefs.h. */
40301 $curl_includes_winsock2
40302 $curl_includes_bsdsocket
40305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40306 $EGREP "ioctlsocket" >/dev/null 2>&1
40309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40310 printf "%s\n" "yes" >&6; }
40311 tst_proto_ioctlsocket="yes"
40315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40316 printf "%s\n" "no" >&6; }
40317 tst_proto_ioctlsocket="no"
40324 if test "$tst_proto_ioctlsocket" = "yes"; then
40325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
40326 printf %s "checking if ioctlsocket is compilable... " >&6; }
40327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40328 /* end confdefs.h. */
40331 $curl_includes_winsock2
40332 $curl_includes_bsdsocket
40337 if(0 != ioctlsocket(0, 0, 0))
40345 if ac_fn_c_try_compile "$LINENO"
40348 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40349 printf "%s\n" "yes" >&6; }
40350 tst_compi_ioctlsocket="yes"
40354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40355 printf "%s\n" "no" >&6; }
40356 tst_compi_ioctlsocket="no"
40359 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40362 if test "$tst_compi_ioctlsocket" = "yes"; then
40363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40364 printf %s "checking if ioctlsocket usage allowed... " >&6; }
40365 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40367 printf "%s\n" "yes" >&6; }
40368 tst_allow_ioctlsocket="yes"
40370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40371 printf "%s\n" "no" >&6; }
40372 tst_allow_ioctlsocket="no"
40376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40377 printf %s "checking if ioctlsocket might be used... " >&6; }
40378 if test "$tst_links_ioctlsocket" = "yes" &&
40379 test "$tst_proto_ioctlsocket" = "yes" &&
40380 test "$tst_compi_ioctlsocket" = "yes" &&
40381 test "$tst_allow_ioctlsocket" = "yes"; then
40382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40383 printf "%s\n" "yes" >&6; }
40385 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40387 curl_cv_func_ioctlsocket="yes"
40390 tst_compi_ioctlsocket_fionbio="unknown"
40391 tst_allow_ioctlsocket_fionbio="unknown"
40393 if test "$curl_cv_func_ioctlsocket" = "yes"; then
40394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40395 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40397 /* end confdefs.h. */
40400 $curl_includes_winsock2
40401 $curl_includes_bsdsocket
40407 if(0 != ioctlsocket(0, FIONBIO, &flags))
40415 if ac_fn_c_try_compile "$LINENO"
40418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40419 printf "%s\n" "yes" >&6; }
40420 tst_compi_ioctlsocket_fionbio="yes"
40424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40425 printf "%s\n" "no" >&6; }
40426 tst_compi_ioctlsocket_fionbio="no"
40429 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40432 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40434 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40435 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40437 printf "%s\n" "yes" >&6; }
40438 tst_allow_ioctlsocket_fionbio="yes"
40440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40441 printf "%s\n" "no" >&6; }
40442 tst_allow_ioctlsocket_fionbio="no"
40446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40447 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40448 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40449 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40451 printf "%s\n" "yes" >&6; }
40453 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40455 curl_cv_func_ioctlsocket_fionbio="yes"
40457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40458 printf "%s\n" "no" >&6; }
40459 curl_cv_func_ioctlsocket_fionbio="no"
40463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40464 printf "%s\n" "no" >&6; }
40465 curl_cv_func_ioctlsocket="no"
40470 tst_links_ioctlsocket_camel="unknown"
40471 tst_proto_ioctlsocket_camel="unknown"
40472 tst_compi_ioctlsocket_camel="unknown"
40473 tst_allow_ioctlsocket_camel="unknown"
40475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40476 printf %s "checking if IoctlSocket can be linked... " >&6; }
40477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40478 /* end confdefs.h. */
40481 #define IoctlSocket innocuous_IoctlSocket
40483 # include <limits.h>
40485 # include <assert.h>
40491 char IoctlSocket ();
40492 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
40498 return IoctlSocket ();
40504 if ac_fn_c_try_link "$LINENO"
40507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40508 printf "%s\n" "yes" >&6; }
40509 tst_links_ioctlsocket_camel="yes"
40513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40514 printf "%s\n" "no" >&6; }
40515 tst_links_ioctlsocket_camel="no"
40518 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40519 conftest$ac_exeext conftest.$ac_ext
40521 if test "$tst_links_ioctlsocket_camel" = "yes"; then
40522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40523 printf %s "checking if IoctlSocket is prototyped... " >&6; }
40524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40525 /* end confdefs.h. */
40527 $curl_includes_stropts
40530 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40531 $EGREP "IoctlSocket" >/dev/null 2>&1
40534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40535 printf "%s\n" "yes" >&6; }
40536 tst_proto_ioctlsocket_camel="yes"
40540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40541 printf "%s\n" "no" >&6; }
40542 tst_proto_ioctlsocket_camel="no"
40549 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40551 printf %s "checking if IoctlSocket is compilable... " >&6; }
40552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40553 /* end confdefs.h. */
40556 $curl_includes_stropts
40561 if(0 != IoctlSocket(0, 0, 0))
40569 if ac_fn_c_try_compile "$LINENO"
40572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40573 printf "%s\n" "yes" >&6; }
40574 tst_compi_ioctlsocket_camel="yes"
40578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579 printf "%s\n" "no" >&6; }
40580 tst_compi_ioctlsocket_camel="no"
40583 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40586 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40588 printf %s "checking if IoctlSocket usage allowed... " >&6; }
40589 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40591 printf "%s\n" "yes" >&6; }
40592 tst_allow_ioctlsocket_camel="yes"
40594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40595 printf "%s\n" "no" >&6; }
40596 tst_allow_ioctlsocket_camel="no"
40600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40601 printf %s "checking if IoctlSocket might be used... " >&6; }
40602 if test "$tst_links_ioctlsocket_camel" = "yes" &&
40603 test "$tst_proto_ioctlsocket_camel" = "yes" &&
40604 test "$tst_compi_ioctlsocket_camel" = "yes" &&
40605 test "$tst_allow_ioctlsocket_camel" = "yes"; then
40606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40607 printf "%s\n" "yes" >&6; }
40609 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40611 curl_cv_func_ioctlsocket_camel="yes"
40614 tst_compi_ioctlsocket_camel_fionbio="unknown"
40615 tst_allow_ioctlsocket_camel_fionbio="unknown"
40617 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40619 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40621 /* end confdefs.h. */
40624 $curl_includes_stropts
40630 if(0 != IoctlSocket(0, FIONBIO, &flags))
40638 if ac_fn_c_try_compile "$LINENO"
40641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40642 printf "%s\n" "yes" >&6; }
40643 tst_compi_ioctlsocket_camel_fionbio="yes"
40647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40648 printf "%s\n" "no" >&6; }
40649 tst_compi_ioctlsocket_camel_fionbio="no"
40652 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40655 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40657 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40658 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40660 printf "%s\n" "yes" >&6; }
40661 tst_allow_ioctlsocket_camel_fionbio="yes"
40663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40664 printf "%s\n" "no" >&6; }
40665 tst_allow_ioctlsocket_camel_fionbio="no"
40669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40670 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40671 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40672 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40674 printf "%s\n" "yes" >&6; }
40676 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40678 curl_cv_func_ioctlsocket_camel_fionbio="yes"
40680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40681 printf "%s\n" "no" >&6; }
40682 curl_cv_func_ioctlsocket_camel_fionbio="no"
40686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40687 printf "%s\n" "no" >&6; }
40688 curl_cv_func_ioctlsocket_camel="no"
40693 tst_links_localtime_r="unknown"
40694 tst_proto_localtime_r="unknown"
40695 tst_compi_localtime_r="unknown"
40696 tst_works_localtime_r="unknown"
40697 tst_allow_localtime_r="unknown"
40699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
40700 printf %s "checking if localtime_r can be linked... " >&6; }
40701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40702 /* end confdefs.h. */
40705 #define localtime_r innocuous_localtime_r
40707 # include <limits.h>
40709 # include <assert.h>
40715 char localtime_r ();
40716 #if defined __stub_localtime_r || defined __stub___localtime_r
40722 return localtime_r ();
40728 if ac_fn_c_try_link "$LINENO"
40731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40732 printf "%s\n" "yes" >&6; }
40733 tst_links_localtime_r="yes"
40737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40738 printf "%s\n" "no" >&6; }
40739 tst_links_localtime_r="no"
40742 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40743 conftest$ac_exeext conftest.$ac_ext
40745 if test "$tst_links_localtime_r" = "yes"; then
40746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
40747 printf %s "checking if localtime_r is prototyped... " >&6; }
40748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40749 /* end confdefs.h. */
40751 $curl_includes_time
40754 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40755 $EGREP "localtime_r" >/dev/null 2>&1
40758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40759 printf "%s\n" "yes" >&6; }
40760 tst_proto_localtime_r="yes"
40764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40765 printf "%s\n" "no" >&6; }
40766 tst_proto_localtime_r="no"
40773 if test "$tst_proto_localtime_r" = "yes"; then
40774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
40775 printf %s "checking if localtime_r is compilable... " >&6; }
40776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40777 /* end confdefs.h. */
40780 $curl_includes_time
40785 if(0 != localtime_r(0, 0))
40793 if ac_fn_c_try_compile "$LINENO"
40796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40797 printf "%s\n" "yes" >&6; }
40798 tst_compi_localtime_r="yes"
40802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40803 printf "%s\n" "no" >&6; }
40804 tst_compi_localtime_r="no"
40807 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40810 if test "x$cross_compiling" != "xyes" &&
40811 test "$tst_compi_localtime_r" = "yes"; then
40812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
40813 printf %s "checking if localtime_r seems to work... " >&6; }
40816 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
40817 *) library_path_var=LD_LIBRARY_PATH ;;
40820 eval "old=$$library_path_var"
40821 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
40823 eval "export $library_path_var"
40824 if test "$cross_compiling" = yes
40826 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40827 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40828 as_fn_error $? "cannot run test program while cross compiling
40829 See \`config.log' for more details" "$LINENO" 5; }
40831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40832 /* end confdefs.h. */
40835 $curl_includes_stdlib
40836 $curl_includes_time
40841 time_t clock = 1170352587;
40842 struct tm *tmp = 0;
40844 tmp = localtime_r(&clock, &result);
40855 if ac_fn_c_try_run "$LINENO"
40857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40858 printf "%s\n" "yes" >&6; }
40859 tst_works_localtime_r="yes"
40862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40863 printf "%s\n" "no" >&6; }
40864 tst_works_localtime_r="no"
40867 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40868 conftest.$ac_objext conftest.beam conftest.$ac_ext
40871 eval "$library_path_var=\$old" # restore
40875 if test "$tst_compi_localtime_r" = "yes" &&
40876 test "$tst_works_localtime_r" != "no"; then
40877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
40878 printf %s "checking if localtime_r usage allowed... " >&6; }
40879 if test "x$curl_disallow_localtime_r" != "xyes"; then
40880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40881 printf "%s\n" "yes" >&6; }
40882 tst_allow_localtime_r="yes"
40884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40885 printf "%s\n" "no" >&6; }
40886 tst_allow_localtime_r="no"
40890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
40891 printf %s "checking if localtime_r might be used... " >&6; }
40892 if test "$tst_links_localtime_r" = "yes" &&
40893 test "$tst_proto_localtime_r" = "yes" &&
40894 test "$tst_compi_localtime_r" = "yes" &&
40895 test "$tst_allow_localtime_r" = "yes" &&
40896 test "$tst_works_localtime_r" != "no"; then
40897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40898 printf "%s\n" "yes" >&6; }
40900 printf "%s\n" "#define HAVE_LOCALTIME_R 1" >>confdefs.h
40902 curl_cv_func_localtime_r="yes"
40904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905 printf "%s\n" "no" >&6; }
40906 curl_cv_func_localtime_r="no"
40911 tst_links_memrchr="unknown"
40912 tst_macro_memrchr="unknown"
40913 tst_proto_memrchr="unknown"
40914 tst_compi_memrchr="unknown"
40915 tst_allow_memrchr="unknown"
40917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40918 printf %s "checking if memrchr can be linked... " >&6; }
40919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40920 /* end confdefs.h. */
40923 #define memrchr innocuous_memrchr
40925 # include <limits.h>
40927 # include <assert.h>
40934 #if defined __stub_memrchr || defined __stub___memrchr
40946 if ac_fn_c_try_link "$LINENO"
40949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40950 printf "%s\n" "yes" >&6; }
40951 tst_links_memrchr="yes"
40955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40956 printf "%s\n" "no" >&6; }
40957 tst_links_memrchr="no"
40960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40961 conftest$ac_exeext conftest.$ac_ext
40963 if test "$tst_links_memrchr" = "no"; then
40964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40965 printf %s "checking if memrchr seems a macro... " >&6; }
40966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40967 /* end confdefs.h. */
40970 $curl_includes_string
40975 if(0 != memrchr(0, 0, 0))
40983 if ac_fn_c_try_link "$LINENO"
40986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40987 printf "%s\n" "yes" >&6; }
40988 tst_macro_memrchr="yes"
40992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40993 printf "%s\n" "no" >&6; }
40994 tst_macro_memrchr="no"
40997 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40998 conftest$ac_exeext conftest.$ac_ext
41001 if test "$tst_links_memrchr" = "yes"; then
41002 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
41003 printf %s "checking if memrchr is prototyped... " >&6; }
41004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41005 /* end confdefs.h. */
41007 $curl_includes_string
41010 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41011 $EGREP "memrchr" >/dev/null 2>&1
41014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41015 printf "%s\n" "yes" >&6; }
41016 tst_proto_memrchr="yes"
41020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41021 printf "%s\n" "no" >&6; }
41022 tst_proto_memrchr="no"
41029 if test "$tst_proto_memrchr" = "yes" ||
41030 test "$tst_macro_memrchr" = "yes"; then
41031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
41032 printf %s "checking if memrchr is compilable... " >&6; }
41033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41034 /* end confdefs.h. */
41037 $curl_includes_string
41042 if(0 != memrchr(0, 0, 0))
41050 if ac_fn_c_try_compile "$LINENO"
41053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41054 printf "%s\n" "yes" >&6; }
41055 tst_compi_memrchr="yes"
41059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41060 printf "%s\n" "no" >&6; }
41061 tst_compi_memrchr="no"
41064 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41067 if test "$tst_compi_memrchr" = "yes"; then
41068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
41069 printf %s "checking if memrchr usage allowed... " >&6; }
41070 if test "x$curl_disallow_memrchr" != "xyes"; then
41071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41072 printf "%s\n" "yes" >&6; }
41073 tst_allow_memrchr="yes"
41075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41076 printf "%s\n" "no" >&6; }
41077 tst_allow_memrchr="no"
41081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
41082 printf %s "checking if memrchr might be used... " >&6; }
41083 if (test "$tst_proto_memrchr" = "yes" ||
41084 test "$tst_macro_memrchr" = "yes") &&
41085 test "$tst_compi_memrchr" = "yes" &&
41086 test "$tst_allow_memrchr" = "yes"; then
41087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41088 printf "%s\n" "yes" >&6; }
41090 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
41092 curl_cv_func_memrchr="yes"
41094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41095 printf "%s\n" "no" >&6; }
41096 curl_cv_func_memrchr="no"
41101 tst_links_poll="unknown"
41102 tst_proto_poll="unknown"
41103 tst_compi_poll="unknown"
41104 tst_works_poll="unknown"
41105 tst_allow_poll="unknown"
41109 curl_disallow_poll="yes"
41110 tst_compi_poll="no"
41114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
41115 printf %s "checking if poll can be linked... " >&6; }
41116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41117 /* end confdefs.h. */
41120 $curl_includes_poll
41125 if(0 != poll(0, 0, 0))
41133 if ac_fn_c_try_link "$LINENO"
41136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41137 printf "%s\n" "yes" >&6; }
41138 tst_links_poll="yes"
41142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41143 printf "%s\n" "no" >&6; }
41144 tst_links_poll="no"
41147 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41148 conftest$ac_exeext conftest.$ac_ext
41150 if test "$tst_links_poll" = "yes"; then
41151 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
41152 printf %s "checking if poll is prototyped... " >&6; }
41153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41154 /* end confdefs.h. */
41156 $curl_includes_poll
41159 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41160 $EGREP "poll" >/dev/null 2>&1
41163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41164 printf "%s\n" "yes" >&6; }
41165 tst_proto_poll="yes"
41169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41170 printf "%s\n" "no" >&6; }
41171 tst_proto_poll="no"
41178 if test "$tst_proto_poll" = "yes"; then
41179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
41180 printf %s "checking if poll is compilable... " >&6; }
41181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41182 /* end confdefs.h. */
41185 $curl_includes_poll
41190 if(0 != poll(0, 0, 0))
41198 if ac_fn_c_try_compile "$LINENO"
41201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41202 printf "%s\n" "yes" >&6; }
41203 tst_compi_poll="yes"
41207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41208 printf "%s\n" "no" >&6; }
41209 tst_compi_poll="no"
41212 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41215 if test "x$cross_compiling" != "xyes" &&
41216 test "$tst_compi_poll" = "yes"; then
41217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
41218 printf %s "checking if poll seems to work... " >&6; }
41221 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
41222 *) library_path_var=LD_LIBRARY_PATH ;;
41225 eval "old=$$library_path_var"
41226 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
41228 eval "export $library_path_var"
41229 if test "$cross_compiling" = yes
41231 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41232 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
41233 as_fn_error $? "cannot run test program while cross compiling
41234 See \`config.log' for more details" "$LINENO" 5; }
41236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41237 /* end confdefs.h. */
41240 $curl_includes_stdlib
41241 $curl_includes_poll
41242 $curl_includes_time
41247 /* detect the original poll() breakage */
41248 if(0 != poll(0, 0, 10))
41249 exit(1); /* fail */
41251 /* detect the 10.12 poll() breakage */
41252 struct timeval before, after;
41256 gettimeofday(&before, NULL);
41257 rc = poll(NULL, 0, 500);
41258 gettimeofday(&after, NULL);
41260 us = (after.tv_sec - before.tv_sec) * 1000000 +
41261 (after.tv_usec - before.tv_usec);
41272 if ac_fn_c_try_run "$LINENO"
41274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41275 printf "%s\n" "yes" >&6; }
41276 tst_works_poll="yes"
41279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41280 printf "%s\n" "no" >&6; }
41281 tst_works_poll="no"
41284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41285 conftest.$ac_objext conftest.beam conftest.$ac_ext
41288 eval "$library_path_var=\$old" # restore
41292 if test "$tst_compi_poll" = "yes" &&
41293 test "$tst_works_poll" != "no"; then
41294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
41295 printf %s "checking if poll usage allowed... " >&6; }
41296 if test "x$curl_disallow_poll" != "xyes"; then
41297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41298 printf "%s\n" "yes" >&6; }
41299 tst_allow_poll="yes"
41301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41302 printf "%s\n" "no" >&6; }
41303 tst_allow_poll="no"
41307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
41308 printf %s "checking if poll might be used... " >&6; }
41309 if test "$tst_links_poll" = "yes" &&
41310 test "$tst_proto_poll" = "yes" &&
41311 test "$tst_compi_poll" = "yes" &&
41312 test "$tst_allow_poll" = "yes" &&
41313 test "$tst_works_poll" != "no"; then
41314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41315 printf "%s\n" "yes" >&6; }
41317 printf "%s\n" "#define HAVE_POLL 1" >>confdefs.h
41320 printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
41322 curl_cv_func_poll="yes"
41324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41325 printf "%s\n" "no" >&6; }
41326 curl_cv_func_poll="no"
41331 tst_links_setsockopt="unknown"
41332 tst_proto_setsockopt="unknown"
41333 tst_compi_setsockopt="unknown"
41334 tst_allow_setsockopt="unknown"
41336 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
41337 printf %s "checking if setsockopt can be linked... " >&6; }
41338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41339 /* end confdefs.h. */
41342 $curl_includes_winsock2
41343 $curl_includes_bsdsocket
41344 $curl_includes_sys_socket
41349 if(0 != setsockopt(0, 0, 0, 0, 0))
41357 if ac_fn_c_try_link "$LINENO"
41360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41361 printf "%s\n" "yes" >&6; }
41362 tst_links_setsockopt="yes"
41366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41367 printf "%s\n" "no" >&6; }
41368 tst_links_setsockopt="no"
41371 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41372 conftest$ac_exeext conftest.$ac_ext
41374 if test "$tst_links_setsockopt" = "yes"; then
41375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
41376 printf %s "checking if setsockopt is prototyped... " >&6; }
41377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41378 /* end confdefs.h. */
41380 $curl_includes_winsock2
41381 $curl_includes_bsdsocket
41382 $curl_includes_sys_socket
41385 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41386 $EGREP "setsockopt" >/dev/null 2>&1
41389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41390 printf "%s\n" "yes" >&6; }
41391 tst_proto_setsockopt="yes"
41395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41396 printf "%s\n" "no" >&6; }
41397 tst_proto_setsockopt="no"
41404 if test "$tst_proto_setsockopt" = "yes"; then
41405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
41406 printf %s "checking if setsockopt is compilable... " >&6; }
41407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41408 /* end confdefs.h. */
41411 $curl_includes_winsock2
41412 $curl_includes_bsdsocket
41413 $curl_includes_sys_socket
41418 if(0 != setsockopt(0, 0, 0, 0, 0))
41426 if ac_fn_c_try_compile "$LINENO"
41429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41430 printf "%s\n" "yes" >&6; }
41431 tst_compi_setsockopt="yes"
41435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41436 printf "%s\n" "no" >&6; }
41437 tst_compi_setsockopt="no"
41440 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41443 if test "$tst_compi_setsockopt" = "yes"; then
41444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
41445 printf %s "checking if setsockopt usage allowed... " >&6; }
41446 if test "x$curl_disallow_setsockopt" != "xyes"; then
41447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41448 printf "%s\n" "yes" >&6; }
41449 tst_allow_setsockopt="yes"
41451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41452 printf "%s\n" "no" >&6; }
41453 tst_allow_setsockopt="no"
41457 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
41458 printf %s "checking if setsockopt might be used... " >&6; }
41459 if test "$tst_links_setsockopt" = "yes" &&
41460 test "$tst_proto_setsockopt" = "yes" &&
41461 test "$tst_compi_setsockopt" = "yes" &&
41462 test "$tst_allow_setsockopt" = "yes"; then
41463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41464 printf "%s\n" "yes" >&6; }
41466 printf "%s\n" "#define HAVE_SETSOCKOPT 1" >>confdefs.h
41468 curl_cv_func_setsockopt="yes"
41471 tst_compi_setsockopt_so_nonblock="unknown"
41472 tst_allow_setsockopt_so_nonblock="unknown"
41474 if test "$curl_cv_func_setsockopt" = "yes"; then
41475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
41476 printf %s "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
41477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41478 /* end confdefs.h. */
41481 $curl_includes_winsock2
41482 $curl_includes_bsdsocket
41483 $curl_includes_sys_socket
41488 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
41496 if ac_fn_c_try_compile "$LINENO"
41499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41500 printf "%s\n" "yes" >&6; }
41501 tst_compi_setsockopt_so_nonblock="yes"
41505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41506 printf "%s\n" "no" >&6; }
41507 tst_compi_setsockopt_so_nonblock="no"
41510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41513 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
41514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
41515 printf %s "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
41516 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
41517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41518 printf "%s\n" "yes" >&6; }
41519 tst_allow_setsockopt_so_nonblock="yes"
41521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41522 printf "%s\n" "no" >&6; }
41523 tst_allow_setsockopt_so_nonblock="no"
41527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
41528 printf %s "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
41529 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
41530 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
41531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41532 printf "%s\n" "yes" >&6; }
41534 printf "%s\n" "#define HAVE_SETSOCKOPT_SO_NONBLOCK 1" >>confdefs.h
41536 curl_cv_func_setsockopt_so_nonblock="yes"
41538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41539 printf "%s\n" "no" >&6; }
41540 curl_cv_func_setsockopt_so_nonblock="no"
41544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41545 printf "%s\n" "no" >&6; }
41546 curl_cv_func_setsockopt="no"
41550 curl_includes_signal="\
41551 /* includes start */
41552 #ifdef HAVE_SYS_TYPES_H
41553 # include <sys/types.h>
41555 #ifdef HAVE_SIGNAL_H
41556 # include <signal.h>
41558 /* includes end */"
41559 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
41561 if test "x$ac_cv_header_sys_types_h" = xyes
41563 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41566 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
41568 if test "x$ac_cv_header_signal_h" = xyes
41570 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
41577 tst_links_sigaction="unknown"
41578 tst_proto_sigaction="unknown"
41579 tst_compi_sigaction="unknown"
41580 tst_allow_sigaction="unknown"
41582 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
41583 printf %s "checking if sigaction can be linked... " >&6; }
41584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41585 /* end confdefs.h. */
41588 #define sigaction innocuous_sigaction
41590 # include <limits.h>
41592 # include <assert.h>
41599 #if defined __stub_sigaction || defined __stub___sigaction
41605 return sigaction ();
41611 if ac_fn_c_try_link "$LINENO"
41614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41615 printf "%s\n" "yes" >&6; }
41616 tst_links_sigaction="yes"
41620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41621 printf "%s\n" "no" >&6; }
41622 tst_links_sigaction="no"
41625 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41626 conftest$ac_exeext conftest.$ac_ext
41628 if test "$tst_links_sigaction" = "yes"; then
41629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
41630 printf %s "checking if sigaction is prototyped... " >&6; }
41631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41632 /* end confdefs.h. */
41634 $curl_includes_signal
41637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41638 $EGREP "sigaction" >/dev/null 2>&1
41641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41642 printf "%s\n" "yes" >&6; }
41643 tst_proto_sigaction="yes"
41647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41648 printf "%s\n" "no" >&6; }
41649 tst_proto_sigaction="no"
41656 if test "$tst_proto_sigaction" = "yes"; then
41657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
41658 printf %s "checking if sigaction is compilable... " >&6; }
41659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41660 /* end confdefs.h. */
41663 $curl_includes_signal
41668 if(0 != sigaction(0, 0, 0))
41676 if ac_fn_c_try_compile "$LINENO"
41679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41680 printf "%s\n" "yes" >&6; }
41681 tst_compi_sigaction="yes"
41685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41686 printf "%s\n" "no" >&6; }
41687 tst_compi_sigaction="no"
41690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41693 if test "$tst_compi_sigaction" = "yes"; then
41694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
41695 printf %s "checking if sigaction usage allowed... " >&6; }
41696 if test "x$curl_disallow_sigaction" != "xyes"; then
41697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41698 printf "%s\n" "yes" >&6; }
41699 tst_allow_sigaction="yes"
41701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41702 printf "%s\n" "no" >&6; }
41703 tst_allow_sigaction="no"
41707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
41708 printf %s "checking if sigaction might be used... " >&6; }
41709 if test "$tst_links_sigaction" = "yes" &&
41710 test "$tst_proto_sigaction" = "yes" &&
41711 test "$tst_compi_sigaction" = "yes" &&
41712 test "$tst_allow_sigaction" = "yes"; then
41713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41714 printf "%s\n" "yes" >&6; }
41716 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
41718 curl_cv_func_sigaction="yes"
41720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41721 printf "%s\n" "no" >&6; }
41722 curl_cv_func_sigaction="no"
41727 tst_links_siginterrupt="unknown"
41728 tst_proto_siginterrupt="unknown"
41729 tst_compi_siginterrupt="unknown"
41730 tst_allow_siginterrupt="unknown"
41732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41733 printf %s "checking if siginterrupt can be linked... " >&6; }
41734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41735 /* end confdefs.h. */
41738 #define siginterrupt innocuous_siginterrupt
41740 # include <limits.h>
41742 # include <assert.h>
41744 #undef siginterrupt
41748 char siginterrupt ();
41749 #if defined __stub_siginterrupt || defined __stub___siginterrupt
41755 return siginterrupt ();
41761 if ac_fn_c_try_link "$LINENO"
41764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41765 printf "%s\n" "yes" >&6; }
41766 tst_links_siginterrupt="yes"
41770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41771 printf "%s\n" "no" >&6; }
41772 tst_links_siginterrupt="no"
41775 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41776 conftest$ac_exeext conftest.$ac_ext
41778 if test "$tst_links_siginterrupt" = "yes"; then
41779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41780 printf %s "checking if siginterrupt is prototyped... " >&6; }
41781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41782 /* end confdefs.h. */
41784 $curl_includes_signal
41787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41788 $EGREP "siginterrupt" >/dev/null 2>&1
41791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41792 printf "%s\n" "yes" >&6; }
41793 tst_proto_siginterrupt="yes"
41797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41798 printf "%s\n" "no" >&6; }
41799 tst_proto_siginterrupt="no"
41806 if test "$tst_proto_siginterrupt" = "yes"; then
41807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41808 printf %s "checking if siginterrupt is compilable... " >&6; }
41809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41810 /* end confdefs.h. */
41813 $curl_includes_signal
41818 if(0 != siginterrupt(0, 0))
41826 if ac_fn_c_try_compile "$LINENO"
41829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41830 printf "%s\n" "yes" >&6; }
41831 tst_compi_siginterrupt="yes"
41835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41836 printf "%s\n" "no" >&6; }
41837 tst_compi_siginterrupt="no"
41840 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41843 if test "$tst_compi_siginterrupt" = "yes"; then
41844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41845 printf %s "checking if siginterrupt usage allowed... " >&6; }
41846 if test "x$curl_disallow_siginterrupt" != "xyes"; then
41847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41848 printf "%s\n" "yes" >&6; }
41849 tst_allow_siginterrupt="yes"
41851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41852 printf "%s\n" "no" >&6; }
41853 tst_allow_siginterrupt="no"
41857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41858 printf %s "checking if siginterrupt might be used... " >&6; }
41859 if test "$tst_links_siginterrupt" = "yes" &&
41860 test "$tst_proto_siginterrupt" = "yes" &&
41861 test "$tst_compi_siginterrupt" = "yes" &&
41862 test "$tst_allow_siginterrupt" = "yes"; then
41863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41864 printf "%s\n" "yes" >&6; }
41866 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41868 curl_cv_func_siginterrupt="yes"
41870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41871 printf "%s\n" "no" >&6; }
41872 curl_cv_func_siginterrupt="no"
41877 tst_links_signal="unknown"
41878 tst_proto_signal="unknown"
41879 tst_compi_signal="unknown"
41880 tst_allow_signal="unknown"
41882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41883 printf %s "checking if signal can be linked... " >&6; }
41884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41885 /* end confdefs.h. */
41888 #define signal innocuous_signal
41890 # include <limits.h>
41892 # include <assert.h>
41899 #if defined __stub_signal || defined __stub___signal
41911 if ac_fn_c_try_link "$LINENO"
41914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41915 printf "%s\n" "yes" >&6; }
41916 tst_links_signal="yes"
41920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41921 printf "%s\n" "no" >&6; }
41922 tst_links_signal="no"
41925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41926 conftest$ac_exeext conftest.$ac_ext
41928 if test "$tst_links_signal" = "yes"; then
41929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41930 printf %s "checking if signal is prototyped... " >&6; }
41931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41932 /* end confdefs.h. */
41934 $curl_includes_signal
41937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41938 $EGREP "signal" >/dev/null 2>&1
41941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41942 printf "%s\n" "yes" >&6; }
41943 tst_proto_signal="yes"
41947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41948 printf "%s\n" "no" >&6; }
41949 tst_proto_signal="no"
41956 if test "$tst_proto_signal" = "yes"; then
41957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41958 printf %s "checking if signal is compilable... " >&6; }
41959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41960 /* end confdefs.h. */
41963 $curl_includes_signal
41968 if(0 != signal(0, 0))
41976 if ac_fn_c_try_compile "$LINENO"
41979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41980 printf "%s\n" "yes" >&6; }
41981 tst_compi_signal="yes"
41985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41986 printf "%s\n" "no" >&6; }
41987 tst_compi_signal="no"
41990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41993 if test "$tst_compi_signal" = "yes"; then
41994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41995 printf %s "checking if signal usage allowed... " >&6; }
41996 if test "x$curl_disallow_signal" != "xyes"; then
41997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41998 printf "%s\n" "yes" >&6; }
41999 tst_allow_signal="yes"
42001 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42002 printf "%s\n" "no" >&6; }
42003 tst_allow_signal="no"
42007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
42008 printf %s "checking if signal might be used... " >&6; }
42009 if test "$tst_links_signal" = "yes" &&
42010 test "$tst_proto_signal" = "yes" &&
42011 test "$tst_compi_signal" = "yes" &&
42012 test "$tst_allow_signal" = "yes"; then
42013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42014 printf "%s\n" "yes" >&6; }
42016 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
42018 curl_cv_func_signal="yes"
42020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42021 printf "%s\n" "no" >&6; }
42022 curl_cv_func_signal="no"
42026 curl_includes_setjmp="\
42027 /* includes start */
42028 #ifdef HAVE_SYS_TYPES_H
42029 # include <sys/types.h>
42031 #ifdef HAVE_SETJMP_H
42032 # include <setjmp.h>
42034 /* includes end */"
42035 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
42037 if test "x$ac_cv_header_sys_types_h" = xyes
42039 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
42042 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
42044 if test "x$ac_cv_header_setjmp_h" = xyes
42046 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
42053 tst_links_sigsetjmp="unknown"
42054 tst_macro_sigsetjmp="unknown"
42055 tst_proto_sigsetjmp="unknown"
42056 tst_compi_sigsetjmp="unknown"
42057 tst_allow_sigsetjmp="unknown"
42059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
42060 printf %s "checking if sigsetjmp can be linked... " >&6; }
42061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42062 /* end confdefs.h. */
42065 #define sigsetjmp innocuous_sigsetjmp
42067 # include <limits.h>
42069 # include <assert.h>
42076 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
42082 return sigsetjmp ();
42088 if ac_fn_c_try_link "$LINENO"
42091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42092 printf "%s\n" "yes" >&6; }
42093 tst_links_sigsetjmp="yes"
42097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42098 printf "%s\n" "no" >&6; }
42099 tst_links_sigsetjmp="no"
42102 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42103 conftest$ac_exeext conftest.$ac_ext
42105 if test "$tst_links_sigsetjmp" = "no"; then
42106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
42107 printf %s "checking if sigsetjmp seems a macro... " >&6; }
42108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42109 /* end confdefs.h. */
42112 $curl_includes_setjmp
42118 if(0 != sigsetjmp(env, 0))
42126 if ac_fn_c_try_link "$LINENO"
42129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42130 printf "%s\n" "yes" >&6; }
42131 tst_macro_sigsetjmp="yes"
42135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42136 printf "%s\n" "no" >&6; }
42137 tst_macro_sigsetjmp="no"
42140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42141 conftest$ac_exeext conftest.$ac_ext
42144 if test "$tst_links_sigsetjmp" = "yes"; then
42145 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
42146 printf %s "checking if sigsetjmp is prototyped... " >&6; }
42147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42148 /* end confdefs.h. */
42150 $curl_includes_setjmp
42153 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42154 $EGREP "sigsetjmp" >/dev/null 2>&1
42157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42158 printf "%s\n" "yes" >&6; }
42159 tst_proto_sigsetjmp="yes"
42163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42164 printf "%s\n" "no" >&6; }
42165 tst_proto_sigsetjmp="no"
42172 if test "$tst_proto_sigsetjmp" = "yes" ||
42173 test "$tst_macro_sigsetjmp" = "yes"; then
42174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
42175 printf %s "checking if sigsetjmp is compilable... " >&6; }
42176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42177 /* end confdefs.h. */
42180 $curl_includes_setjmp
42186 if(0 != sigsetjmp(env, 0))
42194 if ac_fn_c_try_compile "$LINENO"
42197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42198 printf "%s\n" "yes" >&6; }
42199 tst_compi_sigsetjmp="yes"
42203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42204 printf "%s\n" "no" >&6; }
42205 tst_compi_sigsetjmp="no"
42208 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42211 if test "$tst_compi_sigsetjmp" = "yes"; then
42212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
42213 printf %s "checking if sigsetjmp usage allowed... " >&6; }
42214 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
42215 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42216 printf "%s\n" "yes" >&6; }
42217 tst_allow_sigsetjmp="yes"
42219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42220 printf "%s\n" "no" >&6; }
42221 tst_allow_sigsetjmp="no"
42225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
42226 printf %s "checking if sigsetjmp might be used... " >&6; }
42227 if (test "$tst_proto_sigsetjmp" = "yes" ||
42228 test "$tst_macro_sigsetjmp" = "yes") &&
42229 test "$tst_compi_sigsetjmp" = "yes" &&
42230 test "$tst_allow_sigsetjmp" = "yes"; then
42231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42232 printf "%s\n" "yes" >&6; }
42234 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
42236 curl_cv_func_sigsetjmp="yes"
42238 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42239 printf "%s\n" "no" >&6; }
42240 curl_cv_func_sigsetjmp="no"
42245 tst_links_socket="unknown"
42246 tst_proto_socket="unknown"
42247 tst_compi_socket="unknown"
42248 tst_allow_socket="unknown"
42250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
42251 printf %s "checking if socket can be linked... " >&6; }
42252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42253 /* end confdefs.h. */
42256 $curl_includes_winsock2
42257 $curl_includes_bsdsocket
42258 $curl_includes_sys_socket
42259 $curl_includes_socket
42264 if(0 != socket(0, 0, 0))
42272 if ac_fn_c_try_link "$LINENO"
42275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42276 printf "%s\n" "yes" >&6; }
42277 tst_links_socket="yes"
42281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42282 printf "%s\n" "no" >&6; }
42283 tst_links_socket="no"
42286 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42287 conftest$ac_exeext conftest.$ac_ext
42289 if test "$tst_links_socket" = "yes"; then
42290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
42291 printf %s "checking if socket is prototyped... " >&6; }
42292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42293 /* end confdefs.h. */
42295 $curl_includes_winsock2
42296 $curl_includes_bsdsocket
42297 $curl_includes_sys_socket
42298 $curl_includes_socket
42301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42302 $EGREP "socket" >/dev/null 2>&1
42305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42306 printf "%s\n" "yes" >&6; }
42307 tst_proto_socket="yes"
42311 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42312 printf "%s\n" "no" >&6; }
42313 tst_proto_socket="no"
42320 if test "$tst_proto_socket" = "yes"; then
42321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
42322 printf %s "checking if socket is compilable... " >&6; }
42323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42324 /* end confdefs.h. */
42327 $curl_includes_winsock2
42328 $curl_includes_bsdsocket
42329 $curl_includes_sys_socket
42330 $curl_includes_socket
42335 if(0 != socket(0, 0, 0))
42343 if ac_fn_c_try_compile "$LINENO"
42346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42347 printf "%s\n" "yes" >&6; }
42348 tst_compi_socket="yes"
42352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42353 printf "%s\n" "no" >&6; }
42354 tst_compi_socket="no"
42357 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42360 if test "$tst_compi_socket" = "yes"; then
42361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
42362 printf %s "checking if socket usage allowed... " >&6; }
42363 if test "x$curl_disallow_socket" != "xyes"; then
42364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42365 printf "%s\n" "yes" >&6; }
42366 tst_allow_socket="yes"
42368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42369 printf "%s\n" "no" >&6; }
42370 tst_allow_socket="no"
42374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
42375 printf %s "checking if socket might be used... " >&6; }
42376 if test "$tst_links_socket" = "yes" &&
42377 test "$tst_proto_socket" = "yes" &&
42378 test "$tst_compi_socket" = "yes" &&
42379 test "$tst_allow_socket" = "yes"; then
42380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42381 printf "%s\n" "yes" >&6; }
42383 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
42385 curl_cv_func_socket="yes"
42387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42388 printf "%s\n" "no" >&6; }
42389 curl_cv_func_socket="no"
42394 tst_links_socketpair="unknown"
42395 tst_proto_socketpair="unknown"
42396 tst_compi_socketpair="unknown"
42397 tst_allow_socketpair="unknown"
42399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
42400 printf %s "checking if socketpair can be linked... " >&6; }
42401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42402 /* end confdefs.h. */
42405 #define socketpair innocuous_socketpair
42407 # include <limits.h>
42409 # include <assert.h>
42415 char socketpair ();
42416 #if defined __stub_socketpair || defined __stub___socketpair
42422 return socketpair ();
42428 if ac_fn_c_try_link "$LINENO"
42431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42432 printf "%s\n" "yes" >&6; }
42433 tst_links_socketpair="yes"
42437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42438 printf "%s\n" "no" >&6; }
42439 tst_links_socketpair="no"
42442 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42443 conftest$ac_exeext conftest.$ac_ext
42445 if test "$tst_links_socketpair" = "yes"; then
42446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
42447 printf %s "checking if socketpair is prototyped... " >&6; }
42448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42449 /* end confdefs.h. */
42451 $curl_includes_sys_socket
42452 $curl_includes_socket
42455 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42456 $EGREP "socketpair" >/dev/null 2>&1
42459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42460 printf "%s\n" "yes" >&6; }
42461 tst_proto_socketpair="yes"
42465 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42466 printf "%s\n" "no" >&6; }
42467 tst_proto_socketpair="no"
42474 if test "$tst_proto_socketpair" = "yes"; then
42475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
42476 printf %s "checking if socketpair is compilable... " >&6; }
42477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42478 /* end confdefs.h. */
42481 $curl_includes_sys_socket
42482 $curl_includes_socket
42488 if(0 != socketpair(0, 0, 0, sv))
42496 if ac_fn_c_try_compile "$LINENO"
42499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42500 printf "%s\n" "yes" >&6; }
42501 tst_compi_socketpair="yes"
42505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42506 printf "%s\n" "no" >&6; }
42507 tst_compi_socketpair="no"
42510 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42513 if test "$tst_compi_socketpair" = "yes"; then
42514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
42515 printf %s "checking if socketpair usage allowed... " >&6; }
42516 if test "x$curl_disallow_socketpair" != "xyes"; then
42517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42518 printf "%s\n" "yes" >&6; }
42519 tst_allow_socketpair="yes"
42521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42522 printf "%s\n" "no" >&6; }
42523 tst_allow_socketpair="no"
42527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
42528 printf %s "checking if socketpair might be used... " >&6; }
42529 if test "$tst_links_socketpair" = "yes" &&
42530 test "$tst_proto_socketpair" = "yes" &&
42531 test "$tst_compi_socketpair" = "yes" &&
42532 test "$tst_allow_socketpair" = "yes"; then
42533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42534 printf "%s\n" "yes" >&6; }
42536 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
42538 curl_cv_func_socketpair="yes"
42540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42541 printf "%s\n" "no" >&6; }
42542 curl_cv_func_socketpair="no"
42547 tst_links_strcasecmp="unknown"
42548 tst_proto_strcasecmp="unknown"
42549 tst_compi_strcasecmp="unknown"
42550 tst_allow_strcasecmp="unknown"
42552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
42553 printf %s "checking if strcasecmp can be linked... " >&6; }
42554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42555 /* end confdefs.h. */
42558 #define strcasecmp innocuous_strcasecmp
42560 # include <limits.h>
42562 # include <assert.h>
42568 char strcasecmp ();
42569 #if defined __stub_strcasecmp || defined __stub___strcasecmp
42575 return strcasecmp ();
42581 if ac_fn_c_try_link "$LINENO"
42584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42585 printf "%s\n" "yes" >&6; }
42586 tst_links_strcasecmp="yes"
42590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42591 printf "%s\n" "no" >&6; }
42592 tst_links_strcasecmp="no"
42595 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42596 conftest$ac_exeext conftest.$ac_ext
42598 if test "$tst_links_strcasecmp" = "yes"; then
42599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
42600 printf %s "checking if strcasecmp is prototyped... " >&6; }
42601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42602 /* end confdefs.h. */
42604 $curl_includes_string
42607 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42608 $EGREP "strcasecmp" >/dev/null 2>&1
42611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42612 printf "%s\n" "yes" >&6; }
42613 tst_proto_strcasecmp="yes"
42617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42618 printf "%s\n" "no" >&6; }
42619 tst_proto_strcasecmp="no"
42626 if test "$tst_proto_strcasecmp" = "yes"; then
42627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
42628 printf %s "checking if strcasecmp is compilable... " >&6; }
42629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42630 /* end confdefs.h. */
42633 $curl_includes_string
42638 if(0 != strcasecmp(0, 0))
42646 if ac_fn_c_try_compile "$LINENO"
42649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42650 printf "%s\n" "yes" >&6; }
42651 tst_compi_strcasecmp="yes"
42655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42656 printf "%s\n" "no" >&6; }
42657 tst_compi_strcasecmp="no"
42660 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42663 if test "$tst_compi_strcasecmp" = "yes"; then
42664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
42665 printf %s "checking if strcasecmp usage allowed... " >&6; }
42666 if test "x$curl_disallow_strcasecmp" != "xyes"; then
42667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42668 printf "%s\n" "yes" >&6; }
42669 tst_allow_strcasecmp="yes"
42671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42672 printf "%s\n" "no" >&6; }
42673 tst_allow_strcasecmp="no"
42677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
42678 printf %s "checking if strcasecmp might be used... " >&6; }
42679 if test "$tst_links_strcasecmp" = "yes" &&
42680 test "$tst_proto_strcasecmp" = "yes" &&
42681 test "$tst_compi_strcasecmp" = "yes" &&
42682 test "$tst_allow_strcasecmp" = "yes"; then
42683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42684 printf "%s\n" "yes" >&6; }
42686 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
42688 curl_cv_func_strcasecmp="yes"
42690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42691 printf "%s\n" "no" >&6; }
42692 curl_cv_func_strcasecmp="no"
42697 tst_links_strcmpi="unknown"
42698 tst_proto_strcmpi="unknown"
42699 tst_compi_strcmpi="unknown"
42700 tst_allow_strcmpi="unknown"
42702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
42703 printf %s "checking if strcmpi can be linked... " >&6; }
42704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42705 /* end confdefs.h. */
42708 #define strcmpi innocuous_strcmpi
42710 # include <limits.h>
42712 # include <assert.h>
42719 #if defined __stub_strcmpi || defined __stub___strcmpi
42731 if ac_fn_c_try_link "$LINENO"
42734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42735 printf "%s\n" "yes" >&6; }
42736 tst_links_strcmpi="yes"
42740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42741 printf "%s\n" "no" >&6; }
42742 tst_links_strcmpi="no"
42745 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42746 conftest$ac_exeext conftest.$ac_ext
42748 if test "$tst_links_strcmpi" = "yes"; then
42749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42750 printf %s "checking if strcmpi is prototyped... " >&6; }
42751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42752 /* end confdefs.h. */
42754 $curl_includes_string
42757 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42758 $EGREP "strcmpi" >/dev/null 2>&1
42761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42762 printf "%s\n" "yes" >&6; }
42763 tst_proto_strcmpi="yes"
42767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42768 printf "%s\n" "no" >&6; }
42769 tst_proto_strcmpi="no"
42776 if test "$tst_proto_strcmpi" = "yes"; then
42777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42778 printf %s "checking if strcmpi is compilable... " >&6; }
42779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42780 /* end confdefs.h. */
42783 $curl_includes_string
42788 if(0 != strcmpi(0, 0))
42796 if ac_fn_c_try_compile "$LINENO"
42799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42800 printf "%s\n" "yes" >&6; }
42801 tst_compi_strcmpi="yes"
42805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42806 printf "%s\n" "no" >&6; }
42807 tst_compi_strcmpi="no"
42810 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42813 if test "$tst_compi_strcmpi" = "yes"; then
42814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42815 printf %s "checking if strcmpi usage allowed... " >&6; }
42816 if test "x$curl_disallow_strcmpi" != "xyes"; then
42817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42818 printf "%s\n" "yes" >&6; }
42819 tst_allow_strcmpi="yes"
42821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42822 printf "%s\n" "no" >&6; }
42823 tst_allow_strcmpi="no"
42827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42828 printf %s "checking if strcmpi might be used... " >&6; }
42829 if test "$tst_links_strcmpi" = "yes" &&
42830 test "$tst_proto_strcmpi" = "yes" &&
42831 test "$tst_compi_strcmpi" = "yes" &&
42832 test "$tst_allow_strcmpi" = "yes"; then
42833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42834 printf "%s\n" "yes" >&6; }
42836 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42838 curl_cv_func_strcmpi="yes"
42840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42841 printf "%s\n" "no" >&6; }
42842 curl_cv_func_strcmpi="no"
42847 tst_links_strdup="unknown"
42848 tst_proto_strdup="unknown"
42849 tst_compi_strdup="unknown"
42850 tst_allow_strdup="unknown"
42852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42853 printf %s "checking if strdup can be linked... " >&6; }
42854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42855 /* end confdefs.h. */
42858 #define strdup innocuous_strdup
42860 # include <limits.h>
42862 # include <assert.h>
42869 #if defined __stub_strdup || defined __stub___strdup
42881 if ac_fn_c_try_link "$LINENO"
42884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42885 printf "%s\n" "yes" >&6; }
42886 tst_links_strdup="yes"
42890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42891 printf "%s\n" "no" >&6; }
42892 tst_links_strdup="no"
42895 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42896 conftest$ac_exeext conftest.$ac_ext
42898 if test "$tst_links_strdup" = "yes"; then
42899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42900 printf %s "checking if strdup is prototyped... " >&6; }
42901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42902 /* end confdefs.h. */
42904 $curl_includes_string
42907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42908 $EGREP "strdup" >/dev/null 2>&1
42911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42912 printf "%s\n" "yes" >&6; }
42913 tst_proto_strdup="yes"
42917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42918 printf "%s\n" "no" >&6; }
42919 tst_proto_strdup="no"
42926 if test "$tst_proto_strdup" = "yes"; then
42927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42928 printf %s "checking if strdup is compilable... " >&6; }
42929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42930 /* end confdefs.h. */
42933 $curl_includes_string
42946 if ac_fn_c_try_compile "$LINENO"
42949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42950 printf "%s\n" "yes" >&6; }
42951 tst_compi_strdup="yes"
42955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42956 printf "%s\n" "no" >&6; }
42957 tst_compi_strdup="no"
42960 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42963 if test "$tst_compi_strdup" = "yes"; then
42964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42965 printf %s "checking if strdup usage allowed... " >&6; }
42966 if test "x$curl_disallow_strdup" != "xyes"; then
42967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42968 printf "%s\n" "yes" >&6; }
42969 tst_allow_strdup="yes"
42971 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42972 printf "%s\n" "no" >&6; }
42973 tst_allow_strdup="no"
42977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42978 printf %s "checking if strdup might be used... " >&6; }
42979 if test "$tst_links_strdup" = "yes" &&
42980 test "$tst_proto_strdup" = "yes" &&
42981 test "$tst_compi_strdup" = "yes" &&
42982 test "$tst_allow_strdup" = "yes"; then
42983 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42984 printf "%s\n" "yes" >&6; }
42986 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42988 curl_cv_func_strdup="yes"
42990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42991 printf "%s\n" "no" >&6; }
42992 curl_cv_func_strdup="no"
42997 tst_links_strerror_r="unknown"
42998 tst_proto_strerror_r="unknown"
42999 tst_compi_strerror_r="unknown"
43000 tst_glibc_strerror_r="unknown"
43001 tst_posix_strerror_r="unknown"
43002 tst_allow_strerror_r="unknown"
43003 tst_works_glibc_strerror_r="unknown"
43004 tst_works_posix_strerror_r="unknown"
43005 tst_glibc_strerror_r_type_arg3="unknown"
43006 tst_posix_strerror_r_type_arg3="unknown"
43008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
43009 printf %s "checking if strerror_r can be linked... " >&6; }
43010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43011 /* end confdefs.h. */
43014 #define strerror_r innocuous_strerror_r
43016 # include <limits.h>
43018 # include <assert.h>
43024 char strerror_r ();
43025 #if defined __stub_strerror_r || defined __stub___strerror_r
43031 return strerror_r ();
43037 if ac_fn_c_try_link "$LINENO"
43040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43041 printf "%s\n" "yes" >&6; }
43042 tst_links_strerror_r="yes"
43046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43047 printf "%s\n" "no" >&6; }
43048 tst_links_strerror_r="no"
43051 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43052 conftest$ac_exeext conftest.$ac_ext
43054 if test "$tst_links_strerror_r" = "yes"; then
43055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
43056 printf %s "checking if strerror_r is prototyped... " >&6; }
43057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43058 /* end confdefs.h. */
43060 $curl_includes_string
43063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43064 $EGREP "strerror_r" >/dev/null 2>&1
43067 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43068 printf "%s\n" "yes" >&6; }
43069 tst_proto_strerror_r="yes"
43073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43074 printf "%s\n" "no" >&6; }
43075 tst_proto_strerror_r="no"
43082 if test "$tst_proto_strerror_r" = "yes"; then
43083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
43084 printf %s "checking if strerror_r is compilable... " >&6; }
43085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43086 /* end confdefs.h. */
43089 $curl_includes_string
43094 if(0 != strerror_r(0, 0, 0))
43102 if ac_fn_c_try_compile "$LINENO"
43105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43106 printf "%s\n" "yes" >&6; }
43107 tst_compi_strerror_r="yes"
43111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43112 printf "%s\n" "no" >&6; }
43113 tst_compi_strerror_r="no"
43116 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43119 if test "$tst_compi_strerror_r" = "yes"; then
43120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
43121 printf %s "checking if strerror_r is glibc like... " >&6; }
43122 tst_glibc_strerror_r_type_arg3="unknown"
43123 for arg3 in 'size_t' 'int' 'unsigned int'; do
43124 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
43125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43126 /* end confdefs.h. */
43129 $curl_includes_string
43130 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
43135 if(0 != strerror_r(0, 0, 0))
43143 if ac_fn_c_try_compile "$LINENO"
43146 tst_glibc_strerror_r_type_arg3="$arg3"
43149 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43152 case "$tst_glibc_strerror_r_type_arg3" in
43154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43155 printf "%s\n" "no" >&6; }
43156 tst_glibc_strerror_r="no"
43159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43160 printf "%s\n" "yes" >&6; }
43161 tst_glibc_strerror_r="yes"
43166 if test "x$cross_compiling" != "xyes" &&
43167 test "$tst_glibc_strerror_r" = "yes"; then
43168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43169 printf %s "checking if strerror_r seems to work... " >&6; }
43172 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
43173 *) library_path_var=LD_LIBRARY_PATH ;;
43176 eval "old=$$library_path_var"
43177 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
43179 eval "export $library_path_var"
43180 if test "$cross_compiling" = yes
43182 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43183 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43184 as_fn_error $? "cannot run test program while cross compiling
43185 See \`config.log' for more details" "$LINENO" 5; }
43187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43188 /* end confdefs.h. */
43191 $curl_includes_stdlib
43192 $curl_includes_string
43193 # include <errno.h>
43201 string = strerror_r(EACCES, buffer, sizeof(buffer));
43203 exit(1); /* fail */
43205 exit(1); /* fail */
43214 if ac_fn_c_try_run "$LINENO"
43216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43217 printf "%s\n" "yes" >&6; }
43218 tst_works_glibc_strerror_r="yes"
43221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43222 printf "%s\n" "no" >&6; }
43223 tst_works_glibc_strerror_r="no"
43226 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43227 conftest.$ac_objext conftest.beam conftest.$ac_ext
43230 eval "$library_path_var=\$old" # restore
43234 if test "$tst_compi_strerror_r" = "yes" &&
43235 test "$tst_works_glibc_strerror_r" != "yes"; then
43236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
43237 printf %s "checking if strerror_r is POSIX like... " >&6; }
43238 tst_posix_strerror_r_type_arg3="unknown"
43239 for arg3 in 'size_t' 'int' 'unsigned int'; do
43240 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
43241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43242 /* end confdefs.h. */
43245 $curl_includes_string
43246 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
43251 if(0 != strerror_r(0, 0, 0))
43259 if ac_fn_c_try_compile "$LINENO"
43262 tst_posix_strerror_r_type_arg3="$arg3"
43265 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43268 case "$tst_posix_strerror_r_type_arg3" in
43270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43271 printf "%s\n" "no" >&6; }
43272 tst_posix_strerror_r="no"
43275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43276 printf "%s\n" "yes" >&6; }
43277 tst_posix_strerror_r="yes"
43282 if test "x$cross_compiling" != "xyes" &&
43283 test "$tst_posix_strerror_r" = "yes"; then
43284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
43285 printf %s "checking if strerror_r seems to work... " >&6; }
43288 darwin*) library_path_var=DYLD_LIBRARY_PATH ;;
43289 *) library_path_var=LD_LIBRARY_PATH ;;
43292 eval "old=$$library_path_var"
43293 eval "$library_path_var=\$CURL_LIBRARY_PATH:\$old"
43295 eval "export $library_path_var"
43296 if test "$cross_compiling" = yes
43298 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43299 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43300 as_fn_error $? "cannot run test program while cross compiling
43301 See \`config.log' for more details" "$LINENO" 5; }
43303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43304 /* end confdefs.h. */
43307 $curl_includes_stdlib
43308 $curl_includes_string
43309 # include <errno.h>
43317 error = strerror_r(EACCES, buffer, sizeof(buffer));
43319 exit(1); /* fail */
43320 if(buffer[0] == '\0')
43321 exit(1); /* fail */
43330 if ac_fn_c_try_run "$LINENO"
43332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43333 printf "%s\n" "yes" >&6; }
43334 tst_works_posix_strerror_r="yes"
43337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43338 printf "%s\n" "no" >&6; }
43339 tst_works_posix_strerror_r="no"
43342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
43343 conftest.$ac_objext conftest.beam conftest.$ac_ext
43346 eval "$library_path_var=\$old" # restore
43350 if test "$tst_works_glibc_strerror_r" = "yes"; then
43351 tst_posix_strerror_r="no"
43353 if test "$tst_works_posix_strerror_r" = "yes"; then
43354 tst_glibc_strerror_r="no"
43356 if test "$tst_glibc_strerror_r" = "yes" &&
43357 test "$tst_works_glibc_strerror_r" != "no" &&
43358 test "$tst_posix_strerror_r" != "yes"; then
43359 tst_allow_strerror_r="check"
43361 if test "$tst_posix_strerror_r" = "yes" &&
43362 test "$tst_works_posix_strerror_r" != "no" &&
43363 test "$tst_glibc_strerror_r" != "yes"; then
43364 tst_allow_strerror_r="check"
43366 if test "$tst_allow_strerror_r" = "check"; then
43367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
43368 printf %s "checking if strerror_r usage allowed... " >&6; }
43369 if test "x$curl_disallow_strerror_r" != "xyes"; then
43370 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43371 printf "%s\n" "yes" >&6; }
43372 tst_allow_strerror_r="yes"
43374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43375 printf "%s\n" "no" >&6; }
43376 tst_allow_strerror_r="no"
43380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
43381 printf %s "checking if strerror_r might be used... " >&6; }
43382 if test "$tst_links_strerror_r" = "yes" &&
43383 test "$tst_proto_strerror_r" = "yes" &&
43384 test "$tst_compi_strerror_r" = "yes" &&
43385 test "$tst_allow_strerror_r" = "yes"; then
43386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43387 printf "%s\n" "yes" >&6; }
43388 if test "$tst_glibc_strerror_r" = "yes"; then
43390 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43393 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
43396 printf "%s\n" "#define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3" >>confdefs.h
43399 if test "$tst_posix_strerror_r" = "yes"; then
43401 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
43404 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
43407 printf "%s\n" "#define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3" >>confdefs.h
43410 curl_cv_func_strerror_r="yes"
43412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43413 printf "%s\n" "no" >&6; }
43414 curl_cv_func_strerror_r="no"
43417 if test "$tst_compi_strerror_r" = "yes" &&
43418 test "$tst_allow_strerror_r" = "unknown"; then
43419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
43420 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
43426 tst_links_stricmp="unknown"
43427 tst_proto_stricmp="unknown"
43428 tst_compi_stricmp="unknown"
43429 tst_allow_stricmp="unknown"
43431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
43432 printf %s "checking if stricmp can be linked... " >&6; }
43433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43434 /* end confdefs.h. */
43437 #define stricmp innocuous_stricmp
43439 # include <limits.h>
43441 # include <assert.h>
43448 #if defined __stub_stricmp || defined __stub___stricmp
43460 if ac_fn_c_try_link "$LINENO"
43463 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43464 printf "%s\n" "yes" >&6; }
43465 tst_links_stricmp="yes"
43469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43470 printf "%s\n" "no" >&6; }
43471 tst_links_stricmp="no"
43474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43475 conftest$ac_exeext conftest.$ac_ext
43477 if test "$tst_links_stricmp" = "yes"; then
43478 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
43479 printf %s "checking if stricmp is prototyped... " >&6; }
43480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43481 /* end confdefs.h. */
43483 $curl_includes_string
43486 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43487 $EGREP "stricmp" >/dev/null 2>&1
43490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43491 printf "%s\n" "yes" >&6; }
43492 tst_proto_stricmp="yes"
43496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43497 printf "%s\n" "no" >&6; }
43498 tst_proto_stricmp="no"
43505 if test "$tst_proto_stricmp" = "yes"; then
43506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
43507 printf %s "checking if stricmp is compilable... " >&6; }
43508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43509 /* end confdefs.h. */
43512 $curl_includes_string
43517 if(0 != stricmp(0, 0))
43525 if ac_fn_c_try_compile "$LINENO"
43528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43529 printf "%s\n" "yes" >&6; }
43530 tst_compi_stricmp="yes"
43534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43535 printf "%s\n" "no" >&6; }
43536 tst_compi_stricmp="no"
43539 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43542 if test "$tst_compi_stricmp" = "yes"; then
43543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
43544 printf %s "checking if stricmp usage allowed... " >&6; }
43545 if test "x$curl_disallow_stricmp" != "xyes"; then
43546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43547 printf "%s\n" "yes" >&6; }
43548 tst_allow_stricmp="yes"
43550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43551 printf "%s\n" "no" >&6; }
43552 tst_allow_stricmp="no"
43556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
43557 printf %s "checking if stricmp might be used... " >&6; }
43558 if test "$tst_links_stricmp" = "yes" &&
43559 test "$tst_proto_stricmp" = "yes" &&
43560 test "$tst_compi_stricmp" = "yes" &&
43561 test "$tst_allow_stricmp" = "yes"; then
43562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43563 printf "%s\n" "yes" >&6; }
43565 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
43567 curl_cv_func_stricmp="yes"
43569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43570 printf "%s\n" "no" >&6; }
43571 curl_cv_func_stricmp="no"
43576 tst_links_strncmpi="unknown"
43577 tst_proto_strncmpi="unknown"
43578 tst_compi_strncmpi="unknown"
43579 tst_allow_strncmpi="unknown"
43581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
43582 printf %s "checking if strncmpi can be linked... " >&6; }
43583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43584 /* end confdefs.h. */
43587 #define strncmpi innocuous_strncmpi
43589 # include <limits.h>
43591 # include <assert.h>
43598 #if defined __stub_strncmpi || defined __stub___strncmpi
43604 return strncmpi ();
43610 if ac_fn_c_try_link "$LINENO"
43613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43614 printf "%s\n" "yes" >&6; }
43615 tst_links_strncmpi="yes"
43619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43620 printf "%s\n" "no" >&6; }
43621 tst_links_strncmpi="no"
43624 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43625 conftest$ac_exeext conftest.$ac_ext
43627 if test "$tst_links_strncmpi" = "yes"; then
43628 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
43629 printf %s "checking if strncmpi is prototyped... " >&6; }
43630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43631 /* end confdefs.h. */
43633 $curl_includes_string
43636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43637 $EGREP "strncmpi" >/dev/null 2>&1
43640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43641 printf "%s\n" "yes" >&6; }
43642 tst_proto_strncmpi="yes"
43646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43647 printf "%s\n" "no" >&6; }
43648 tst_proto_strncmpi="no"
43655 if test "$tst_proto_strncmpi" = "yes"; then
43656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
43657 printf %s "checking if strncmpi is compilable... " >&6; }
43658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43659 /* end confdefs.h. */
43662 $curl_includes_string
43667 if(0 != strncmpi(0, 0))
43675 if ac_fn_c_try_compile "$LINENO"
43678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43679 printf "%s\n" "yes" >&6; }
43680 tst_compi_strncmpi="yes"
43684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43685 printf "%s\n" "no" >&6; }
43686 tst_compi_strncmpi="no"
43689 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43692 if test "$tst_compi_strncmpi" = "yes"; then
43693 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
43694 printf %s "checking if strncmpi usage allowed... " >&6; }
43695 if test "x$curl_disallow_strncmpi" != "xyes"; then
43696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43697 printf "%s\n" "yes" >&6; }
43698 tst_allow_strncmpi="yes"
43700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43701 printf "%s\n" "no" >&6; }
43702 tst_allow_strncmpi="no"
43706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
43707 printf %s "checking if strncmpi might be used... " >&6; }
43708 if test "$tst_links_strncmpi" = "yes" &&
43709 test "$tst_proto_strncmpi" = "yes" &&
43710 test "$tst_compi_strncmpi" = "yes" &&
43711 test "$tst_allow_strncmpi" = "yes"; then
43712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43713 printf "%s\n" "yes" >&6; }
43715 printf "%s\n" "#define HAVE_STRNCMPI 1" >>confdefs.h
43717 curl_cv_func_strncmpi="yes"
43719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43720 printf "%s\n" "no" >&6; }
43721 curl_cv_func_strncmpi="no"
43726 tst_links_strnicmp="unknown"
43727 tst_proto_strnicmp="unknown"
43728 tst_compi_strnicmp="unknown"
43729 tst_allow_strnicmp="unknown"
43731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
43732 printf %s "checking if strnicmp can be linked... " >&6; }
43733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43734 /* end confdefs.h. */
43737 #define strnicmp innocuous_strnicmp
43739 # include <limits.h>
43741 # include <assert.h>
43748 #if defined __stub_strnicmp || defined __stub___strnicmp
43754 return strnicmp ();
43760 if ac_fn_c_try_link "$LINENO"
43763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43764 printf "%s\n" "yes" >&6; }
43765 tst_links_strnicmp="yes"
43769 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43770 printf "%s\n" "no" >&6; }
43771 tst_links_strnicmp="no"
43774 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43775 conftest$ac_exeext conftest.$ac_ext
43777 if test "$tst_links_strnicmp" = "yes"; then
43778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
43779 printf %s "checking if strnicmp is prototyped... " >&6; }
43780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43781 /* end confdefs.h. */
43783 $curl_includes_string
43786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43787 $EGREP "strnicmp" >/dev/null 2>&1
43790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43791 printf "%s\n" "yes" >&6; }
43792 tst_proto_strnicmp="yes"
43796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43797 printf "%s\n" "no" >&6; }
43798 tst_proto_strnicmp="no"
43805 if test "$tst_proto_strnicmp" = "yes"; then
43806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
43807 printf %s "checking if strnicmp is compilable... " >&6; }
43808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43809 /* end confdefs.h. */
43812 $curl_includes_string
43817 if(0 != strnicmp(0, 0))
43825 if ac_fn_c_try_compile "$LINENO"
43828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43829 printf "%s\n" "yes" >&6; }
43830 tst_compi_strnicmp="yes"
43834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43835 printf "%s\n" "no" >&6; }
43836 tst_compi_strnicmp="no"
43839 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43842 if test "$tst_compi_strnicmp" = "yes"; then
43843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
43844 printf %s "checking if strnicmp usage allowed... " >&6; }
43845 if test "x$curl_disallow_strnicmp" != "xyes"; then
43846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43847 printf "%s\n" "yes" >&6; }
43848 tst_allow_strnicmp="yes"
43850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43851 printf "%s\n" "no" >&6; }
43852 tst_allow_strnicmp="no"
43856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
43857 printf %s "checking if strnicmp might be used... " >&6; }
43858 if test "$tst_links_strnicmp" = "yes" &&
43859 test "$tst_proto_strnicmp" = "yes" &&
43860 test "$tst_compi_strnicmp" = "yes" &&
43861 test "$tst_allow_strnicmp" = "yes"; then
43862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43863 printf "%s\n" "yes" >&6; }
43865 printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h
43867 curl_cv_func_strnicmp="yes"
43869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43870 printf "%s\n" "no" >&6; }
43871 curl_cv_func_strnicmp="no"
43876 tst_links_strstr="unknown"
43877 tst_proto_strstr="unknown"
43878 tst_compi_strstr="unknown"
43879 tst_allow_strstr="unknown"
43881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
43882 printf %s "checking if strstr can be linked... " >&6; }
43883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43884 /* end confdefs.h. */
43887 #define strstr innocuous_strstr
43889 # include <limits.h>
43891 # include <assert.h>
43898 #if defined __stub_strstr || defined __stub___strstr
43910 if ac_fn_c_try_link "$LINENO"
43913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43914 printf "%s\n" "yes" >&6; }
43915 tst_links_strstr="yes"
43919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43920 printf "%s\n" "no" >&6; }
43921 tst_links_strstr="no"
43924 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43925 conftest$ac_exeext conftest.$ac_ext
43927 if test "$tst_links_strstr" = "yes"; then
43928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
43929 printf %s "checking if strstr is prototyped... " >&6; }
43930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43931 /* end confdefs.h. */
43933 $curl_includes_string
43936 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43937 $EGREP "strstr" >/dev/null 2>&1
43940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43941 printf "%s\n" "yes" >&6; }
43942 tst_proto_strstr="yes"
43946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43947 printf "%s\n" "no" >&6; }
43948 tst_proto_strstr="no"
43955 if test "$tst_proto_strstr" = "yes"; then
43956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
43957 printf %s "checking if strstr is compilable... " >&6; }
43958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43959 /* end confdefs.h. */
43962 $curl_includes_string
43967 if(0 != strstr(0, 0))
43975 if ac_fn_c_try_compile "$LINENO"
43978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43979 printf "%s\n" "yes" >&6; }
43980 tst_compi_strstr="yes"
43984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43985 printf "%s\n" "no" >&6; }
43986 tst_compi_strstr="no"
43989 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43992 if test "$tst_compi_strstr" = "yes"; then
43993 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
43994 printf %s "checking if strstr usage allowed... " >&6; }
43995 if test "x$curl_disallow_strstr" != "xyes"; then
43996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43997 printf "%s\n" "yes" >&6; }
43998 tst_allow_strstr="yes"
44000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44001 printf "%s\n" "no" >&6; }
44002 tst_allow_strstr="no"
44006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
44007 printf %s "checking if strstr might be used... " >&6; }
44008 if test "$tst_links_strstr" = "yes" &&
44009 test "$tst_proto_strstr" = "yes" &&
44010 test "$tst_compi_strstr" = "yes" &&
44011 test "$tst_allow_strstr" = "yes"; then
44012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44013 printf "%s\n" "yes" >&6; }
44015 printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
44017 curl_cv_func_strstr="yes"
44019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44020 printf "%s\n" "no" >&6; }
44021 curl_cv_func_strstr="no"
44026 tst_links_strtok_r="unknown"
44027 tst_proto_strtok_r="unknown"
44028 tst_compi_strtok_r="unknown"
44029 tst_allow_strtok_r="unknown"
44031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
44032 printf %s "checking if strtok_r can be linked... " >&6; }
44033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44034 /* end confdefs.h. */
44037 #define strtok_r innocuous_strtok_r
44039 # include <limits.h>
44041 # include <assert.h>
44048 #if defined __stub_strtok_r || defined __stub___strtok_r
44054 return strtok_r ();
44060 if ac_fn_c_try_link "$LINENO"
44063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44064 printf "%s\n" "yes" >&6; }
44065 tst_links_strtok_r="yes"
44069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44070 printf "%s\n" "no" >&6; }
44071 tst_links_strtok_r="no"
44074 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44075 conftest$ac_exeext conftest.$ac_ext
44077 if test "$tst_links_strtok_r" = "yes"; then
44078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
44079 printf %s "checking if strtok_r is prototyped... " >&6; }
44080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44081 /* end confdefs.h. */
44083 $curl_includes_string
44086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44087 $EGREP "strtok_r" >/dev/null 2>&1
44090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44091 printf "%s\n" "yes" >&6; }
44092 tst_proto_strtok_r="yes"
44096 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44097 printf "%s\n" "no" >&6; }
44098 tst_proto_strtok_r="no"
44105 if test "$tst_proto_strtok_r" = "yes"; then
44106 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
44107 printf %s "checking if strtok_r is compilable... " >&6; }
44108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44109 /* end confdefs.h. */
44112 $curl_includes_string
44117 if(0 != strtok_r(0, 0, 0))
44125 if ac_fn_c_try_compile "$LINENO"
44128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44129 printf "%s\n" "yes" >&6; }
44130 tst_compi_strtok_r="yes"
44134 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44135 printf "%s\n" "no" >&6; }
44136 tst_compi_strtok_r="no"
44139 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44142 if test "$tst_compi_strtok_r" = "yes"; then
44143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
44144 printf %s "checking if strtok_r usage allowed... " >&6; }
44145 if test "x$curl_disallow_strtok_r" != "xyes"; then
44146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44147 printf "%s\n" "yes" >&6; }
44148 tst_allow_strtok_r="yes"
44150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44151 printf "%s\n" "no" >&6; }
44152 tst_allow_strtok_r="no"
44156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
44157 printf %s "checking if strtok_r might be used... " >&6; }
44158 if test "$tst_links_strtok_r" = "yes" &&
44159 test "$tst_proto_strtok_r" = "yes" &&
44160 test "$tst_compi_strtok_r" = "yes" &&
44161 test "$tst_allow_strtok_r" = "yes"; then
44162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44163 printf "%s\n" "yes" >&6; }
44165 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
44167 curl_cv_func_strtok_r="yes"
44169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44170 printf "%s\n" "no" >&6; }
44171 curl_cv_func_strtok_r="no"
44176 tst_links_strtoll="unknown"
44177 tst_proto_strtoll="unknown"
44178 tst_compi_strtoll="unknown"
44179 tst_allow_strtoll="unknown"
44181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
44182 printf %s "checking if strtoll can be linked... " >&6; }
44183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44184 /* end confdefs.h. */
44187 #define strtoll innocuous_strtoll
44189 # include <limits.h>
44191 # include <assert.h>
44198 #if defined __stub_strtoll || defined __stub___strtoll
44210 if ac_fn_c_try_link "$LINENO"
44213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44214 printf "%s\n" "yes" >&6; }
44215 tst_links_strtoll="yes"
44219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44220 printf "%s\n" "no" >&6; }
44221 tst_links_strtoll="no"
44224 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44225 conftest$ac_exeext conftest.$ac_ext
44227 if test "$tst_links_strtoll" = "yes"; then
44228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
44229 printf %s "checking if strtoll is prototyped... " >&6; }
44230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44231 /* end confdefs.h. */
44233 $curl_includes_stdlib
44236 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44237 $EGREP "strtoll" >/dev/null 2>&1
44240 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44241 printf "%s\n" "yes" >&6; }
44242 tst_proto_strtoll="yes"
44246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44247 printf "%s\n" "no" >&6; }
44248 tst_proto_strtoll="no"
44255 if test "$tst_proto_strtoll" = "yes"; then
44256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
44257 printf %s "checking if strtoll is compilable... " >&6; }
44258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44259 /* end confdefs.h. */
44262 $curl_includes_stdlib
44267 if(0 != strtoll(0, 0, 0))
44275 if ac_fn_c_try_compile "$LINENO"
44278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44279 printf "%s\n" "yes" >&6; }
44280 tst_compi_strtoll="yes"
44284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44285 printf "%s\n" "no" >&6; }
44286 tst_compi_strtoll="no"
44289 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44292 if test "$tst_compi_strtoll" = "yes"; then
44293 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
44294 printf %s "checking if strtoll usage allowed... " >&6; }
44295 if test "x$curl_disallow_strtoll" != "xyes"; then
44296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44297 printf "%s\n" "yes" >&6; }
44298 tst_allow_strtoll="yes"
44300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44301 printf "%s\n" "no" >&6; }
44302 tst_allow_strtoll="no"
44306 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
44307 printf %s "checking if strtoll might be used... " >&6; }
44308 if test "$tst_links_strtoll" = "yes" &&
44309 test "$tst_proto_strtoll" = "yes" &&
44310 test "$tst_compi_strtoll" = "yes" &&
44311 test "$tst_allow_strtoll" = "yes"; then
44312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44313 printf "%s\n" "yes" >&6; }
44315 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
44317 curl_cv_func_strtoll="yes"
44319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44320 printf "%s\n" "no" >&6; }
44321 curl_cv_func_strtoll="no"
44325 curl_includes_sys_uio="\
44326 /* includes start */
44327 #ifdef HAVE_SYS_TYPES_H
44328 # include <sys/types.h>
44330 #ifdef HAVE_SYS_UIO_H
44331 # include <sys/uio.h>
44333 /* includes end */"
44334 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_uio
44336 if test "x$ac_cv_header_sys_types_h" = xyes
44338 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
44341 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "$curl_includes_sys_uio
44343 if test "x$ac_cv_header_sys_uio_h" = xyes
44345 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
44352 tst_links_writev="unknown"
44353 tst_proto_writev="unknown"
44354 tst_compi_writev="unknown"
44355 tst_allow_writev="unknown"
44357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
44358 printf %s "checking if writev can be linked... " >&6; }
44359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44360 /* end confdefs.h. */
44363 #define writev innocuous_writev
44365 # include <limits.h>
44367 # include <assert.h>
44374 #if defined __stub_writev || defined __stub___writev
44386 if ac_fn_c_try_link "$LINENO"
44389 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44390 printf "%s\n" "yes" >&6; }
44391 tst_links_writev="yes"
44395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44396 printf "%s\n" "no" >&6; }
44397 tst_links_writev="no"
44400 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44401 conftest$ac_exeext conftest.$ac_ext
44403 if test "$tst_links_writev" = "yes"; then
44404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
44405 printf %s "checking if writev is prototyped... " >&6; }
44406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44407 /* end confdefs.h. */
44409 $curl_includes_sys_uio
44412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
44413 $EGREP "writev" >/dev/null 2>&1
44416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44417 printf "%s\n" "yes" >&6; }
44418 tst_proto_writev="yes"
44422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44423 printf "%s\n" "no" >&6; }
44424 tst_proto_writev="no"
44431 if test "$tst_proto_writev" = "yes"; then
44432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
44433 printf %s "checking if writev is compilable... " >&6; }
44434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44435 /* end confdefs.h. */
44438 $curl_includes_sys_uio
44443 if(0 != writev(0, 0, 0))
44451 if ac_fn_c_try_compile "$LINENO"
44454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44455 printf "%s\n" "yes" >&6; }
44456 tst_compi_writev="yes"
44460 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44461 printf "%s\n" "no" >&6; }
44462 tst_compi_writev="no"
44465 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44468 if test "$tst_compi_writev" = "yes"; then
44469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
44470 printf %s "checking if writev usage allowed... " >&6; }
44471 if test "x$curl_disallow_writev" != "xyes"; then
44472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44473 printf "%s\n" "yes" >&6; }
44474 tst_allow_writev="yes"
44476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44477 printf "%s\n" "no" >&6; }
44478 tst_allow_writev="no"
44482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
44483 printf %s "checking if writev might be used... " >&6; }
44484 if test "$tst_links_writev" = "yes" &&
44485 test "$tst_proto_writev" = "yes" &&
44486 test "$tst_compi_writev" = "yes" &&
44487 test "$tst_allow_writev" = "yes"; then
44488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44489 printf "%s\n" "yes" >&6; }
44491 printf "%s\n" "#define HAVE_WRITEV 1" >>confdefs.h
44493 curl_cv_func_writev="yes"
44495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44496 printf "%s\n" "no" >&6; }
44497 curl_cv_func_writev="no"
44505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
44506 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
44510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
44511 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
44512 if test ${ac_cv_c_undeclared_builtin_options+y}
44514 printf %s "(cached) " >&6
44516 ac_save_CFLAGS=$CFLAGS
44517 ac_cv_c_undeclared_builtin_options='cannot detect'
44518 for ac_arg in '' -fno-builtin; do
44519 CFLAGS="$ac_save_CFLAGS $ac_arg"
44520 # This test program should *not* compile successfully.
44521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44522 /* end confdefs.h. */
44531 if ac_fn_c_try_compile "$LINENO"
44535 # This test program should compile successfully.
44536 # No library function is consistently available on
44537 # freestanding implementations, so test against a dummy
44538 # declaration. Include always-available headers on the
44539 # off chance that they somehow elicit warnings.
44540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44541 /* end confdefs.h. */
44543 #include <limits.h>
44544 #include <stdarg.h>
44545 #include <stddef.h>
44546 extern void ac_decl (int, char *);
44550 (void) ac_decl (0, (char *) 0);
44557 if ac_fn_c_try_compile "$LINENO"
44559 if test x"$ac_arg" = x
44561 ac_cv_c_undeclared_builtin_options='none needed'
44563 ac_cv_c_undeclared_builtin_options=$ac_arg
44567 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44569 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
44571 CFLAGS=$ac_save_CFLAGS
44574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
44575 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
44576 case $ac_cv_c_undeclared_builtin_options in #(
44578 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44579 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
44580 as_fn_error $? "cannot make $CC report undeclared builtins
44581 See \`config.log' for more details" "$LINENO" 5; } ;; #(
44583 ac_c_undeclared_builtin_options='' ;; #(
44585 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
44588 ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
44589 #include <sys/types.h>
44590 " "$ac_c_undeclared_builtin_options" "CFLAGS"
44591 if test "x$ac_cv_have_decl_getpwuid_r" = xyes
44597 printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
44598 if test $ac_have_decl = 1
44603 printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
44610 for ac_func in fnmatch geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe setlocale setmode setrlimit usleep utime utimes
44612 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
44613 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
44614 if eval test \"x\$"$as_ac_var"\" = x"yes"
44616 cat >>confdefs.h <<_ACEOF
44617 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
44624 eval skipcheck=\$skipcheck_$func
44625 if test "x$skipcheck" != "xyes"; then
44626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
44627 printf %s "checking deeper for $func... " >&6; }
44628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44629 /* end confdefs.h. */
44643 if ac_fn_c_try_link "$LINENO"
44646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44647 printf "%s\n" "yes" >&6; }
44648 eval "ac_cv_func_$func=yes"
44650 cat >>confdefs.h <<_ACEOF
44651 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
44657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
44658 printf "%s\n" "but still no" >&6; }
44661 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44662 conftest$ac_exeext conftest.$ac_ext
44671 tst_method="unknown"
44673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
44674 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
44675 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
44676 tst_method="fcntl O_NONBLOCK"
44677 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
44678 tst_method="ioctl FIONBIO"
44679 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
44680 tst_method="ioctlsocket FIONBIO"
44681 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
44682 tst_method="IoctlSocket FIONBIO"
44683 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
44684 tst_method="setsockopt SO_NONBLOCK"
44686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
44687 printf "%s\n" "$tst_method" >&6; }
44688 if test "$tst_method" = "unknown"; then
44689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
44690 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
44695 # Extract the first word of "perl", so it can be a program name with args.
44696 set dummy perl; ac_word=$2
44697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44698 printf %s "checking for $ac_word... " >&6; }
44699 if test ${ac_cv_path_PERL+y}
44701 printf %s "(cached) " >&6
44705 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
44708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44709 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
44710 for as_dir in $as_dummy
44713 case $as_dir in #(((
44716 *) as_dir=$as_dir/ ;;
44718 for ac_exec_ext in '' $ac_executable_extensions; do
44719 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44720 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
44721 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44731 PERL=$ac_cv_path_PERL
44732 if test -n "$PERL"; then
44733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
44734 printf "%s\n" "$PERL" >&6; }
44736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44737 printf "%s\n" "no" >&6; }
44743 for ac_prog in gnroff nroff
44745 # Extract the first word of "$ac_prog", so it can be a program name with args.
44746 set dummy $ac_prog; ac_word=$2
44747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44748 printf %s "checking for $ac_word... " >&6; }
44749 if test ${ac_cv_path_NROFF+y}
44751 printf %s "(cached) " >&6
44755 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
44758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44759 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
44760 for as_dir in $as_dummy
44763 case $as_dir in #(((
44766 *) as_dir=$as_dir/ ;;
44768 for ac_exec_ext in '' $ac_executable_extensions; do
44769 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44770 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
44771 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44781 NROFF=$ac_cv_path_NROFF
44782 if test -n "$NROFF"; then
44783 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
44784 printf "%s\n" "$NROFF" >&6; }
44786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44787 printf "%s\n" "no" >&6; }
44791 test -n "$NROFF" && break
44796 if test -n "$NROFF"; then
44798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
44799 printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
44801 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44802 if test -z "$mancheck"; then
44804 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
44805 if test -z "$mancheck"; then
44807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
44808 printf "%s\n" "failed" >&6; }
44809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
44810 printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
44812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44813 printf "%s\n" "$MANOPT" >&6; }
44816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
44817 printf "%s\n" "$MANOPT" >&6; }
44822 if test -z "$MANOPT"
44824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
44825 printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
44830 if test "$USE_MANUAL" = "1"; then
44832 printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
44834 curl_manual_msg="enabled"
44837 if test x"$USE_MANUAL" = x1; then
44839 USE_MANUAL_FALSE='#'
44841 USE_MANUAL_TRUE='#'
44850 if test "$want_ares" = "yes"; then
44851 clean_CPPFLAGS="$CPPFLAGS"
44852 clean_LDFLAGS="$LDFLAGS"
44854 embedded_ares="unknown"
44855 configure_runpath=`pwd`
44856 embedded_ares_builddir="$configure_runpath/ares"
44857 if test -n "$want_ares_path"; then
44858 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
44860 if test -n "$PKG_CONFIG"; then
44861 PKGCONFIG="$PKG_CONFIG"
44863 if test -n "$ac_tool_prefix"; then
44864 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
44865 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
44866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44867 printf %s "checking for $ac_word... " >&6; }
44868 if test ${ac_cv_path_PKGCONFIG+y}
44870 printf %s "(cached) " >&6
44874 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
44877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44878 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44879 for as_dir in $as_dummy
44882 case $as_dir in #(((
44885 *) as_dir=$as_dir/ ;;
44887 for ac_exec_ext in '' $ac_executable_extensions; do
44888 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44889 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44890 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44900 PKGCONFIG=$ac_cv_path_PKGCONFIG
44901 if test -n "$PKGCONFIG"; then
44902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
44903 printf "%s\n" "$PKGCONFIG" >&6; }
44905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44906 printf "%s\n" "no" >&6; }
44911 if test -z "$ac_cv_path_PKGCONFIG"; then
44912 ac_pt_PKGCONFIG=$PKGCONFIG
44913 # Extract the first word of "pkg-config", so it can be a program name with args.
44914 set dummy pkg-config; ac_word=$2
44915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
44916 printf %s "checking for $ac_word... " >&6; }
44917 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
44919 printf %s "(cached) " >&6
44921 case $ac_pt_PKGCONFIG in
44923 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
44926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
44927 as_dummy="$PATH:/usr/bin:/usr/local/bin"
44928 for as_dir in $as_dummy
44931 case $as_dir in #(((
44934 *) as_dir=$as_dir/ ;;
44936 for ac_exec_ext in '' $ac_executable_extensions; do
44937 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
44938 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
44939 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
44949 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
44950 if test -n "$ac_pt_PKGCONFIG"; then
44951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
44952 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
44954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44955 printf "%s\n" "no" >&6; }
44958 if test "x$ac_pt_PKGCONFIG" = x; then
44961 case $cross_compiling:$ac_tool_warned in
44963 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
44964 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
44965 ac_tool_warned=yes ;;
44967 PKGCONFIG=$ac_pt_PKGCONFIG
44970 PKGCONFIG="$ac_cv_path_PKGCONFIG"
44975 if test "x$PKGCONFIG" != "xno"; then
44976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
44977 printf %s "checking for libcares options with pkg-config... " >&6; }
44979 if test -n "$ARES_PCDIR"; then
44980 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44981 export PKG_CONFIG_LIBDIR
44983 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
44985 if test -z "$itexists"; then
44987 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44988 printf "%s\n" "no" >&6; }
44990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
44991 printf "%s\n" "found" >&6; }
44995 if test "$PKGCONFIG" != "no" ; then
44997 if test -n "$ARES_PCDIR"; then
44998 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
44999 export PKG_CONFIG_LIBDIR
45002 $PKGCONFIG --libs-only-l libcares`
45004 if test -n "$ARES_PCDIR"; then
45005 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
45006 export PKG_CONFIG_LIBDIR
45009 $PKGCONFIG --libs-only-L libcares`
45011 if test -n "$ARES_PCDIR"; then
45012 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
45013 export PKG_CONFIG_LIBDIR
45016 $PKGCONFIG --cflags-only-I libcares`
45017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
45018 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
45019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
45020 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
45021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
45022 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
45024 ares_CPPFLAGS="-I$want_ares_path/include"
45025 ares_LDFLAGS="-L$want_ares_path/lib"
45026 ares_LIBS="-lcares"
45029 if test -d "$srcdir/ares"; then
45030 embedded_ares="yes"
45031 subdirs="$subdirs ares"
45034 ares_LDFLAGS="-L$embedded_ares_builddir"
45035 ares_LIBS="-lcares"
45038 if test -n "$PKG_CONFIG"; then
45039 PKGCONFIG="$PKG_CONFIG"
45041 if test -n "$ac_tool_prefix"; then
45042 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
45043 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
45044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45045 printf %s "checking for $ac_word... " >&6; }
45046 if test ${ac_cv_path_PKGCONFIG+y}
45048 printf %s "(cached) " >&6
45052 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
45055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45056 as_dummy="$PATH:/usr/bin:/usr/local/bin"
45057 for as_dir in $as_dummy
45060 case $as_dir in #(((
45063 *) as_dir=$as_dir/ ;;
45065 for ac_exec_ext in '' $ac_executable_extensions; do
45066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45067 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
45068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45078 PKGCONFIG=$ac_cv_path_PKGCONFIG
45079 if test -n "$PKGCONFIG"; then
45080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
45081 printf "%s\n" "$PKGCONFIG" >&6; }
45083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45084 printf "%s\n" "no" >&6; }
45089 if test -z "$ac_cv_path_PKGCONFIG"; then
45090 ac_pt_PKGCONFIG=$PKGCONFIG
45091 # Extract the first word of "pkg-config", so it can be a program name with args.
45092 set dummy pkg-config; ac_word=$2
45093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
45094 printf %s "checking for $ac_word... " >&6; }
45095 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
45097 printf %s "(cached) " >&6
45099 case $ac_pt_PKGCONFIG in
45101 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
45104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45105 as_dummy="$PATH:/usr/bin:/usr/local/bin"
45106 for as_dir in $as_dummy
45109 case $as_dir in #(((
45112 *) as_dir=$as_dir/ ;;
45114 for ac_exec_ext in '' $ac_executable_extensions; do
45115 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
45116 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
45117 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
45127 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
45128 if test -n "$ac_pt_PKGCONFIG"; then
45129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
45130 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
45132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45133 printf "%s\n" "no" >&6; }
45136 if test "x$ac_pt_PKGCONFIG" = x; then
45139 case $cross_compiling:$ac_tool_warned in
45141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
45142 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
45143 ac_tool_warned=yes ;;
45145 PKGCONFIG=$ac_pt_PKGCONFIG
45148 PKGCONFIG="$ac_cv_path_PKGCONFIG"
45153 if test "x$PKGCONFIG" != "xno"; then
45154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
45155 printf %s "checking for libcares options with pkg-config... " >&6; }
45157 if test -n ""; then
45158 PKG_CONFIG_LIBDIR=""
45159 export PKG_CONFIG_LIBDIR
45161 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
45163 if test -z "$itexists"; then
45165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45166 printf "%s\n" "no" >&6; }
45168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
45169 printf "%s\n" "found" >&6; }
45173 if test "$PKGCONFIG" != "no" ; then
45174 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
45175 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
45176 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
45177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
45178 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
45179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
45180 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
45181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
45182 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
45186 ares_LIBS="-lcares"
45191 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
45192 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
45193 LIBS="$ares_LIBS $clean_LIBS"
45195 if test "$embedded_ares" != "yes"; then
45196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
45197 printf %s "checking that c-ares is good and recent enough... " >&6; }
45198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45199 /* end confdefs.h. */
45203 /* set of dummy functions in case c-ares was built with debug */
45204 void curl_dofree() { }
45205 void curl_sclose() { }
45206 void curl_domalloc() { }
45207 void curl_docalloc() { }
45208 void curl_socket() { }
45213 ares_channel channel;
45214 ares_cancel(channel); /* added in 1.2.0 */
45215 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
45216 ares_dup(&channel, channel); /* added in 1.6.0 */
45223 if ac_fn_c_try_link "$LINENO"
45226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45227 printf "%s\n" "yes" >&6; }
45231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45232 printf "%s\n" "no" >&6; }
45233 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
45234 CPPFLAGS="$clean_CPPFLAGS"
45235 LDFLAGS="$clean_LDFLAGS"
45241 rm -f core conftest.err conftest.$ac_objext conftest.beam \
45242 conftest$ac_exeext conftest.$ac_ext
45244 if test "$want_ares" = "yes"; then
45246 printf "%s\n" "#define USE_ARES 1" >>confdefs.h
45250 curl_res_msg="c-ares"
45254 if test x$embedded_ares = xyes; then
45255 USE_EMBEDDED_ARES_TRUE=
45256 USE_EMBEDDED_ARES_FALSE='#'
45258 USE_EMBEDDED_ARES_TRUE='#'
45259 USE_EMBEDDED_ARES_FALSE=
45263 if test "x$curl_cv_native_windows" != "xyes" &&
45264 test "x$enable_shared" = "xyes"; then
45265 build_libhostname=yes
45267 build_libhostname=no
45269 if test x$build_libhostname = xyes; then
45270 BUILD_LIBHOSTNAME_TRUE=
45271 BUILD_LIBHOSTNAME_FALSE='#'
45273 BUILD_LIBHOSTNAME_TRUE='#'
45274 BUILD_LIBHOSTNAME_FALSE=
45278 if test "x$want_ares" != xyes; then
45280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
45281 printf %s "checking whether to enable the threaded resolver... " >&6; }
45282 OPT_THRES="default"
45283 # Check whether --enable-threaded_resolver was given.
45284 if test ${enable_threaded_resolver+y}
45286 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
45289 case "$OPT_THRES" in
45297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
45298 printf "%s\n" "$want_thres" >&6; }
45302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
45303 printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
45304 # Check whether --enable-pthreads was given.
45305 if test ${enable_pthreads+y}
45307 enableval=$enable_pthreads; case "$enableval" in
45308 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45309 printf "%s\n" "no" >&6; }
45312 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45313 printf "%s\n" "yes" >&6; }
45319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45320 printf "%s\n" "auto" >&6; }
45327 if test "$want_pthreads" != "no"; then
45328 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
45329 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
45331 if test "$dontwant_rt" != "no"; then
45332 if test "$want_pthreads" = "yes"; then
45333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
45334 printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
45340 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
45344 if test "$want_pthreads" != "no"; then
45345 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
45346 if test "x$ac_cv_header_pthread_h" = xyes
45349 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
45351 save_CFLAGS="$CFLAGS"
45355 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
45356 if test "x$ac_cv_func_pthread_create" = xyes
45358 USE_THREADS_POSIX=1
45365 USE_THREADS_POSIX=""
45371 if test "$USE_THREADS_POSIX" != "1"
45373 CFLAGS="$CFLAGS -pthread"
45374 # assign PTHREAD for pkg-config use
45375 PTHREAD=" -pthread"
45376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
45377 printf %s "checking for pthread_create in -lpthread... " >&6; }
45378 if test ${ac_cv_lib_pthread_pthread_create+y}
45380 printf %s "(cached) " >&6
45382 ac_check_lib_save_LIBS=$LIBS
45383 LIBS="-lpthread $LIBS"
45384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45385 /* end confdefs.h. */
45391 char pthread_create ();
45394 return pthread_create ();
45399 if ac_fn_c_try_link "$LINENO"
45401 ac_cv_lib_pthread_pthread_create=yes
45403 ac_cv_lib_pthread_pthread_create=no
45405 rm -f core conftest.err conftest.$ac_objext conftest.beam \
45406 conftest$ac_exeext conftest.$ac_ext
45407 LIBS=$ac_check_lib_save_LIBS
45409 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
45410 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
45411 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
45413 USE_THREADS_POSIX=1
45415 CFLAGS="$save_CFLAGS"
45420 if test "x$USE_THREADS_POSIX" = "x1"
45423 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
45425 curl_res_msg="POSIX threaded"
45432 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
45433 if test "$want_pthreads" = "yes"; then
45434 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
45436 if test "$curl_cv_native_windows" = "yes"; then
45437 USE_THREADS_WIN32=1
45439 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
45441 curl_res_msg="Win32 threaded"
45443 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
45448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
45449 printf %s "checking convert -I options to -isystem... " >&6; }
45450 if test "$compiler_id" = "GNU_C" ||
45451 test "$compiler_id" = "CLANG"; then
45452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45453 printf "%s\n" "yes" >&6; }
45454 tmp_has_include="no"
45455 tmp_chg_FLAGS="$CFLAGS"
45456 for word1 in $tmp_chg_FLAGS; do
45459 tmp_has_include="yes"
45463 if test "$tmp_has_include" = "yes"; then
45464 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
45465 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
45466 CFLAGS="$tmp_chg_FLAGS"
45469 tmp_has_include="no"
45470 tmp_chg_FLAGS="$CPPFLAGS"
45471 for word1 in $tmp_chg_FLAGS; do
45474 tmp_has_include="yes"
45478 if test "$tmp_has_include" = "yes"; then
45479 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
45480 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
45481 CPPFLAGS="$tmp_chg_FLAGS"
45485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45486 printf "%s\n" "no" >&6; }
45490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
45491 printf %s "checking whether to enable verbose strings... " >&6; }
45492 # Check whether --enable-verbose was given.
45493 if test ${enable_verbose+y}
45495 enableval=$enable_verbose; case "$enableval" in
45497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45498 printf "%s\n" "no" >&6; }
45500 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
45502 curl_verbose_msg="no"
45504 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45505 printf "%s\n" "yes" >&6; }
45509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45510 printf "%s\n" "yes" >&6; }
45515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
45516 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
45517 # Check whether --enable-sspi was given.
45518 if test ${enable_sspi+y}
45520 enableval=$enable_sspi; case "$enableval" in
45522 if test "$curl_cv_native_windows" = "yes"; then
45523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45524 printf "%s\n" "yes" >&6; }
45526 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
45530 curl_sspi_msg="enabled"
45532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45533 printf "%s\n" "no" >&6; }
45534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
45535 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
45539 if test "x$SCHANNEL_ENABLED" = "x1"; then
45540 # --with-schannel implies --enable-sspi
45541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45542 printf "%s\n" "yes" >&6; }
45544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45545 printf "%s\n" "no" >&6; }
45550 if test "x$SCHANNEL_ENABLED" = "x1"; then
45551 # --with-schannel implies --enable-sspi
45552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45553 printf "%s\n" "yes" >&6; }
45555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45556 printf "%s\n" "no" >&6; }
45562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
45563 printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
45564 # Check whether --enable-crypto-auth was given.
45565 if test ${enable_crypto_auth+y}
45567 enableval=$enable_crypto_auth; case "$enableval" in
45569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45570 printf "%s\n" "no" >&6; }
45572 printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
45574 CURL_DISABLE_CRYPTO_AUTH=1
45576 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45577 printf "%s\n" "yes" >&6; }
45581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45582 printf "%s\n" "yes" >&6; }
45587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
45588 printf %s "checking whether to support NTLM... " >&6; }
45589 # Check whether --enable-ntlm was given.
45590 if test ${enable_ntlm+y}
45592 enableval=$enable_ntlm; case "$enableval" in
45594 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45595 printf "%s\n" "no" >&6; }
45597 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
45599 CURL_DISABLE_NTLM=1
45601 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45602 printf "%s\n" "yes" >&6; }
45606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45607 printf "%s\n" "yes" >&6; }
45613 OPT_NTLM_WB="default"
45614 # Check whether --enable-ntlm-wb was given.
45615 if test ${enable_ntlm_wb+y}
45617 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
45620 want_ntlm_wb_file="/usr/bin/ntlm_auth"
45621 case "$OPT_NTLM_WB" in
45630 if test -n "$enableval" && test "$enableval" != "yes"; then
45631 want_ntlm_wb_file="$enableval"
45638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
45639 printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
45640 if test "$curl_cv_native_windows" = "yes" ||
45641 test "x$SSL_ENABLED" = "x"; then
45642 want_ntlm_wb_file=""
45645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
45646 printf "%s\n" "$want_ntlm_wb" >&6; }
45647 if test "$want_ntlm_wb" = "yes"; then
45649 printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
45652 printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
45658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
45659 printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
45660 # Check whether --enable-tls-srp was given.
45661 if test ${enable_tls_srp+y}
45663 enableval=$enable_tls_srp; case "$enableval" in
45665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45666 printf "%s\n" "no" >&6; }
45669 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45670 printf "%s\n" "yes" >&6; }
45675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45676 printf "%s\n" "yes" >&6; }
45682 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
45684 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
45687 curl_tls_srp_msg="enabled"
45690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
45691 printf %s "checking whether to enable Unix domain sockets... " >&6; }
45692 # Check whether --enable-unix-sockets was given.
45693 if test ${enable_unix_sockets+y}
45695 enableval=$enable_unix_sockets; case "$enableval" in
45696 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45697 printf "%s\n" "no" >&6; }
45698 want_unix_sockets=no
45700 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45701 printf "%s\n" "yes" >&6; }
45702 want_unix_sockets=yes
45707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
45708 printf "%s\n" "auto" >&6; }
45709 want_unix_sockets=auto
45714 if test "x$want_unix_sockets" != "xno"; then
45715 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
45716 #include <sys/un.h>
45719 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
45723 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
45727 curl_unix_sockets_msg="enabled"
45731 if test "x$want_unix_sockets" = "xyes"; then
45732 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
45739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
45740 printf %s "checking whether to support cookies... " >&6; }
45741 # Check whether --enable-cookies was given.
45742 if test ${enable_cookies+y}
45744 enableval=$enable_cookies; case "$enableval" in
45746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45747 printf "%s\n" "no" >&6; }
45749 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
45752 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45753 printf "%s\n" "yes" >&6; }
45757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45758 printf "%s\n" "yes" >&6; }
45763 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
45764 printf %s "checking whether to support socketpair... " >&6; }
45765 # Check whether --enable-socketpair was given.
45766 if test ${enable_socketpair+y}
45768 enableval=$enable_socketpair; case "$enableval" in
45770 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45771 printf "%s\n" "no" >&6; }
45773 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
45776 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45777 printf "%s\n" "yes" >&6; }
45781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45782 printf "%s\n" "yes" >&6; }
45787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
45788 printf %s "checking whether to support HTTP authentication... " >&6; }
45789 # Check whether --enable-http-auth was given.
45790 if test ${enable_http_auth+y}
45792 enableval=$enable_http_auth; case "$enableval" in
45794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45795 printf "%s\n" "no" >&6; }
45797 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
45800 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45801 printf "%s\n" "yes" >&6; }
45805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45806 printf "%s\n" "yes" >&6; }
45811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
45812 printf %s "checking whether to support DoH... " >&6; }
45813 # Check whether --enable-doh was given.
45814 if test ${enable_doh+y}
45816 enableval=$enable_doh; case "$enableval" in
45818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45819 printf "%s\n" "no" >&6; }
45821 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
45824 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45825 printf "%s\n" "yes" >&6; }
45829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45830 printf "%s\n" "yes" >&6; }
45835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
45836 printf %s "checking whether to support the MIME API... " >&6; }
45837 # Check whether --enable-mime was given.
45838 if test ${enable_mime+y}
45840 enableval=$enable_mime; case "$enableval" in
45842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45843 printf "%s\n" "no" >&6; }
45845 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
45848 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45849 printf "%s\n" "yes" >&6; }
45853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45854 printf "%s\n" "yes" >&6; }
45859 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
45860 printf %s "checking whether to support date parsing... " >&6; }
45861 # Check whether --enable-dateparse was given.
45862 if test ${enable_dateparse+y}
45864 enableval=$enable_dateparse; case "$enableval" in
45866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45867 printf "%s\n" "no" >&6; }
45869 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
45872 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45873 printf "%s\n" "yes" >&6; }
45877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45878 printf "%s\n" "yes" >&6; }
45883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
45884 printf %s "checking whether to support netrc parsing... " >&6; }
45885 # Check whether --enable-netrc was given.
45886 if test ${enable_netrc+y}
45888 enableval=$enable_netrc; case "$enableval" in
45890 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45891 printf "%s\n" "no" >&6; }
45893 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
45896 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45897 printf "%s\n" "yes" >&6; }
45901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45902 printf "%s\n" "yes" >&6; }
45907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
45908 printf %s "checking whether to support progress-meter... " >&6; }
45909 # Check whether --enable-progress-meter was given.
45910 if test ${enable_progress_meter+y}
45912 enableval=$enable_progress_meter; case "$enableval" in
45914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45915 printf "%s\n" "no" >&6; }
45917 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
45920 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45921 printf "%s\n" "yes" >&6; }
45925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45926 printf "%s\n" "yes" >&6; }
45931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
45932 printf %s "checking whether to support DNS shuffling... " >&6; }
45933 # Check whether --enable-dnsshuffle was given.
45934 if test ${enable_dnsshuffle+y}
45936 enableval=$enable_dnsshuffle; case "$enableval" in
45938 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45939 printf "%s\n" "no" >&6; }
45941 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
45944 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45945 printf "%s\n" "yes" >&6; }
45949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45950 printf "%s\n" "yes" >&6; }
45955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
45956 printf %s "checking whether to support curl_easy_option*... " >&6; }
45957 # Check whether --enable-get-easy-options was given.
45958 if test ${enable_get_easy_options+y}
45960 enableval=$enable_get_easy_options; case "$enableval" in
45962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45963 printf "%s\n" "no" >&6; }
45965 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
45968 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45969 printf "%s\n" "yes" >&6; }
45973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45974 printf "%s\n" "yes" >&6; }
45979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
45980 printf %s "checking whether to support alt-svc... " >&6; }
45981 # Check whether --enable-alt-svc was given.
45982 if test ${enable_alt_svc+y}
45984 enableval=$enable_alt_svc; case "$enableval" in
45986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
45987 printf "%s\n" "no" >&6; }
45989 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
45991 curl_altsvc_msg="no";
45994 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
45995 printf "%s\n" "yes" >&6; }
45999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46000 printf "%s\n" "no" >&6; }
46005 if test -n "$SSL_ENABLED"; then
46007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
46008 printf %s "checking whether to support HSTS... " >&6; }
46009 # Check whether --enable-hsts was given.
46010 if test ${enable_hsts+y}
46012 enableval=$enable_hsts; case "$enableval" in
46014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46015 printf "%s\n" "no" >&6; }
46018 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46019 printf "%s\n" "yes" >&6; }
46023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
46024 printf "%s\n" "$hsts" >&6; }
46029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
46030 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
46034 if test "x$hsts" != "xyes"; then
46035 curl_hsts_msg="no (--enable-hsts)";
46037 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
46041 if test "x$want_ech" != "xno"; then
46042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
46043 printf %s "checking whether ECH support is available... " >&6; }
46048 if test "x$OPENSSL_ENABLED" = "x1"; then
46050 for ac_func in SSL_get_ech_status
46052 ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
46053 if test "x$ac_cv_func_SSL_get_ech_status" = xyes
46055 printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
46056 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
46064 if test "x$ECH_ENABLED" = "x1"; then
46066 printf "%s\n" "#define USE_ECH 1" >>confdefs.h
46068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
46069 printf "%s\n" "$ECH_SUPPORT" >&6; }
46070 experimental="$experimental ECH"
46072 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
46077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
46078 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
46079 CFLAG_CURL_SYMBOL_HIDING=""
46080 doing_symbol_hiding="no"
46081 if test x"$curl_cv_native_windows" != "xyes" &&
46082 test "$want_symbol_hiding" = "yes" &&
46083 test "$supports_symbol_hiding" = "yes"; then
46084 doing_symbol_hiding="yes"
46085 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
46087 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
46089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
46090 printf "%s\n" "yes" >&6; }
46092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
46093 printf "%s\n" "no" >&6; }
46095 if test x$doing_symbol_hiding = xyes; then
46096 DOING_CURL_SYMBOL_HIDING_TRUE=
46097 DOING_CURL_SYMBOL_HIDING_FALSE='#'
46099 DOING_CURL_SYMBOL_HIDING_TRUE='#'
46100 DOING_CURL_SYMBOL_HIDING_FALSE=
46106 LIBCURL_LIBS="$LIBS$PTHREAD"
46115 if test x$cross_compiling = xyes; then
46116 CROSSCOMPILING_TRUE=
46117 CROSSCOMPILING_FALSE='#'
46119 CROSSCOMPILING_TRUE='#'
46120 CROSSCOMPILING_FALSE=
46124 ENABLE_SHARED="$enable_shared"
46127 ENABLE_STATIC="$enable_static"
46130 if test "x$enable_shared" = "xno"; then
46131 LIBCURL_NO_SHARED=$LIBCURL_LIBS
46138 if test "x$OPENSSL_ENABLED" = "x1"; then
46139 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
46140 elif test -n "$SSL_ENABLED"; then
46141 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
46143 if test "x$IPV6_ENABLED" = "x1"; then
46144 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
46146 if test "x$USE_UNIX_SOCKETS" = "x1"; then
46147 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
46149 if test "x$HAVE_LIBZ" = "x1"; then
46150 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
46152 if test "x$HAVE_BROTLI" = "x1"; then
46153 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
46155 if test "x$HAVE_ZSTD" = "x1"; then
46156 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
46158 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
46159 -o "x$USE_THREADS_WIN32" = "x1"; then
46160 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
46162 if test "x$IDN_ENABLED" = "x1"; then
46163 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
46165 if test "x$USE_WINDOWS_SSPI" = "x1"; then
46166 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
46169 if test "x$HAVE_GSSAPI" = "x1"; then
46170 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
46173 if test "x$curl_psl_msg" = "xenabled"; then
46174 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
46177 if test "x$curl_gsasl_msg" = "xenabled"; then
46178 SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
46181 if test "x$enable_altsvc" = "xyes"; then
46182 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
46184 if test "x$hsts" = "xyes"; then
46185 SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
46188 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
46189 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
46190 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
46193 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
46194 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
46195 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
46198 use_curl_ntlm_core=no
46200 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
46201 "x$CURL_DISABLE_NTLM" != "x1"; then
46202 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
46203 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
46204 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
46205 -o "x$USE_WIN32_CRYPTO" = "x1" \
46206 -o "x$WOLFSSL_NTLM" = "x1"; then
46207 use_curl_ntlm_core=yes
46210 if test "x$use_curl_ntlm_core" = "xyes" \
46211 -o "x$USE_WINDOWS_SSPI" = "x1"; then
46212 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
46214 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
46215 "x$NTLM_WB_ENABLED" = "x1"; then
46216 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
46221 if test "x$USE_TLS_SRP" = "x1"; then
46222 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
46225 if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
46226 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
46229 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
46230 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
46233 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
46234 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
46237 if test "x$https_proxy" != "xno"; then
46238 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
46239 -o "x$NSS_ENABLED" = "x1"; then
46240 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
46244 if test "x$ECH_ENABLED" = "x1"; then
46245 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
46248 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
46249 if test ${ac_cv_sizeof_off_t} -gt 4 -o \
46250 "$curl_win32_file_api" = "win32_large_files"; then
46251 SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
46255 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
46258 if test "x$CURL_DISABLE_HTTP" != "x1"; then
46259 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
46260 if test "x$SSL_ENABLED" = "x1"; then
46261 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
46264 if test "x$CURL_DISABLE_FTP" != "x1"; then
46265 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
46266 if test "x$SSL_ENABLED" = "x1"; then
46267 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
46270 if test "x$CURL_DISABLE_FILE" != "x1"; then
46271 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
46273 if test "x$CURL_DISABLE_TELNET" != "x1"; then
46274 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
46276 if test "x$CURL_DISABLE_LDAP" != "x1"; then
46277 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
46278 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
46279 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
46280 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
46281 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
46285 if test "x$CURL_DISABLE_DICT" != "x1"; then
46286 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
46288 if test "x$CURL_DISABLE_TFTP" != "x1"; then
46289 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
46291 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
46292 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
46293 if test "x$SSL_ENABLED" = "x1"; then
46294 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
46297 if test "x$CURL_DISABLE_MQTT" != "x1"; then
46298 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
46300 if test "x$CURL_DISABLE_POP3" != "x1"; then
46301 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
46302 if test "x$SSL_ENABLED" = "x1"; then
46303 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
46306 if test "x$CURL_DISABLE_IMAP" != "x1"; then
46307 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
46308 if test "x$SSL_ENABLED" = "x1"; then
46309 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
46312 if test "x$CURL_DISABLE_SMB" != "x1" \
46313 -a "x$use_curl_ntlm_core" = "xyes"; then
46314 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
46315 if test "x$SSL_ENABLED" = "x1"; then
46316 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
46319 if test "x$CURL_DISABLE_SMTP" != "x1"; then
46320 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
46321 if test "x$SSL_ENABLED" = "x1"; then
46322 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
46325 if test "x$USE_LIBSSH2" = "x1"; then
46326 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
46327 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46329 if test "x$USE_LIBSSH" = "x1"; then
46330 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
46331 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46333 if test "x$USE_WOLFSSH" = "x1"; then
46334 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
46336 if test "x$CURL_DISABLE_RTSP" != "x1"; then
46337 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
46339 if test "x$USE_LIBRTMP" = "x1"; then
46340 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
46343 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
46354 squeeze LIBCURL_LIBS
46355 squeeze CURL_NETWORK_LIBS
46356 squeeze CURL_NETWORK_AND_TIME_LIBS
46358 squeeze SUPPORT_FEATURES
46359 squeeze SUPPORT_PROTOCOLS
46364 for xc_word in $LIBS; do
46370 xc_bad_var_libs=yes
46374 if test $xc_bad_var_libs = yes; then
46375 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
46376 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
46377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
46378 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
46382 xc_bad_var_ldflags=no
46383 for xc_word in $LDFLAGS; do
46386 xc_bad_var_ldflags=yes
46389 xc_bad_var_ldflags=yes
46392 xc_bad_var_ldflags=yes
46395 xc_bad_var_ldflags=yes
46399 if test $xc_bad_var_ldflags = yes; then
46400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
46401 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
46402 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
46403 for xc_word in $LDFLAGS; do
46406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46407 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46411 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46415 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46419 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46426 xc_bad_var_cppflags=no
46427 for xc_word in $CPPFLAGS; do
46430 xc_bad_var_cppflags=yes
46432 -L* | --library-path=*)
46433 xc_bad_var_cppflags=yes
46436 xc_bad_var_cppflags=yes
46440 if test $xc_bad_var_cppflags = yes; then
46441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
46442 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
46443 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
46444 for xc_word in $CPPFLAGS; do
46447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46448 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46450 -L* | --library-path=*)
46451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46452 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46456 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46463 xc_bad_var_cflags=no
46464 for xc_word in $CFLAGS; do
46467 xc_bad_var_cflags=yes
46470 xc_bad_var_cflags=yes
46473 xc_bad_var_cflags=yes
46476 xc_bad_var_cflags=yes
46478 -L* | --library-path=*)
46479 xc_bad_var_cflags=yes
46482 xc_bad_var_cflags=yes
46486 if test $xc_bad_var_cflags = yes; then
46487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
46488 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
46489 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
46490 for xc_word in $CFLAGS; do
46493 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
46494 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
46497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
46498 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
46501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
46502 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
46505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
46506 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
46508 -L* | --library-path=*)
46509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
46510 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
46513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
46514 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
46520 if test $xc_bad_var_libs = yes ||
46521 test $xc_bad_var_cflags = yes ||
46522 test $xc_bad_var_ldflags = yes ||
46523 test $xc_bad_var_cppflags = yes; then
46524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
46525 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
46529 SSL_BACKENDS=${ssl_backends}
46532 if test "x$want_curldebug_assumed" = "xyes" &&
46533 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
46534 ac_configure_args="$ac_configure_args --enable-curldebug"
46537 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile docs/cmdline-opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile scripts/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
46539 cat >confcache <<\_ACEOF
46540 # This file is a shell script that caches the results of configure
46541 # tests run on this system so they can be shared between configure
46542 # scripts and configure runs, see configure's option --config-cache.
46543 # It is not useful on other systems. If it contains results you don't
46544 # want to keep, you may remove or edit it.
46546 # config.status only pays attention to the cache file if you give it
46547 # the --recheck option to rerun configure.
46549 # `ac_cv_env_foo' variables (set or unset) will be overridden when
46550 # loading this file, other *unset* `ac_cv_foo' will be assigned the
46551 # following values.
46555 # The following way of writing the cache mishandles newlines in values,
46556 # but we know of no workaround that is simple, portable, and efficient.
46557 # So, we kill variables containing newlines.
46558 # Ultrix sh set writes to stderr and can't be redirected directly,
46559 # and sets the high bit in the cache file unless we assign to the vars.
46561 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
46562 eval ac_val=\$$ac_var
46566 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
46567 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
46570 _ | IFS | as_nl) ;; #(
46571 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
46572 *) { eval $ac_var=; unset $ac_var;} ;;
46578 case $as_nl`(ac_space=' '; set) 2>&1` in #(
46579 *${as_nl}ac_space=\ *)
46580 # `set' does not quote correctly, so add quotes: double-quote
46581 # substitution turns \\\\ into \\, and sed turns \\ into \.
46584 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
46587 # `set' quotes correctly as required by POSIX, so do not add quotes.
46588 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
46597 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
46599 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
46601 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
46602 if test -w "$cache_file"; then
46603 if test "x$cache_file" != "x/dev/null"; then
46604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
46605 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
46606 if test ! -f "$cache_file" || test -h "$cache_file"; then
46607 cat confcache >"$cache_file"
46609 case $cache_file in #(
46611 mv -f confcache "$cache_file"$$ &&
46612 mv -f "$cache_file"$$ "$cache_file" ;; #(
46614 mv -f confcache "$cache_file" ;;
46619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
46620 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
46625 test "x$prefix" = xNONE && prefix=$ac_default_prefix
46626 # Let make expand exec_prefix.
46627 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
46629 DEFS=-DHAVE_CONFIG_H
46634 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
46635 # 1. Remove the extension, and $U if already installed.
46636 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
46637 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
46638 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
46639 # will be set to the directory where LIBOBJS objects are built.
46640 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
46641 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
46643 LIBOBJS=$ac_libobjs
46645 LTLIBOBJS=$ac_ltlibobjs
46648 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
46649 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
46650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
46653 printf %s "checking that generated files are newer than configure... " >&6; }
46654 if test -n "$am_sleep_pid"; then
46655 # Hide warnings about reused PIDs.
46656 wait $am_sleep_pid 2>/dev/null
46658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
46659 printf "%s\n" "done" >&6; }
46660 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
46661 as_fn_error $? "conditional \"AMDEP\" was never defined.
46662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46664 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
46665 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
46666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46668 if test -n "$EXEEXT"; then
46670 am__EXEEXT_FALSE='#'
46672 am__EXEEXT_TRUE='#'
46676 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
46677 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
46678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46680 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
46681 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
46682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46684 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
46685 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
46686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46688 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
46689 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
46690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46692 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
46693 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
46694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46696 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
46697 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
46698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46700 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
46701 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
46702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46704 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
46705 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
46706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46708 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
46709 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
46710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46712 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
46713 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
46714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46716 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
46717 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
46718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46720 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
46721 as_fn_error $? "conditional \"USE_GSASL\" was never defined.
46722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46724 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
46725 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
46726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46728 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
46729 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
46730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46732 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
46733 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
46734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46736 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
46737 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
46738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46740 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
46741 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
46742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46744 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
46745 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
46746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
46749 : "${CONFIG_STATUS=./config.status}"
46751 ac_clean_files_save=$ac_clean_files
46752 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
46753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
46754 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
46756 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
46758 # Generated by $as_me.
46759 # Run this file to recreate the current configuration.
46760 # Compiler output produced by configure, useful for debugging
46761 # configure, is in config.log if it exists.
46764 ac_cs_recheck=false
46767 SHELL=\${CONFIG_SHELL-$SHELL}
46770 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
46771 ## -------------------- ##
46772 ## M4sh Initialization. ##
46773 ## -------------------- ##
46775 # Be more Bourne compatible
46776 DUALCASE=1; export DUALCASE # for MKS sh
46778 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
46782 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
46783 # is contrary to our usage. Disable this feature.
46784 alias -g '${1+"$@"}'='"$@"'
46785 setopt NO_GLOB_SUBST
46787 case `(set -o) 2>/dev/null` in #(
46797 # Reset variables that may have inherited troublesome values from
46800 # IFS needs to be set, to space, tab, and newline, in precisely that order.
46801 # (If _AS_PATH_WALK were called with IFS unset, it would have the
46802 # side effect of setting IFS to empty, thus disabling word splitting.)
46803 # Quoting is to prevent editors from complaining about space-tab.
46813 # Ensure predictable behavior from utilities with locale-dependent output.
46819 # We cannot yet rely on "unset" to work, but we need these variables
46820 # to be unset--not just set to an empty or harmless value--now, to
46821 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
46822 # also avoids known problems related to "unset" and subshell syntax
46823 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
46824 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
46825 do eval test \${$as_var+y} \
46826 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
46829 # Ensure that fds 0, 1, and 2 are open.
46830 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
46831 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
46832 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
46836 # Find who we are. Look in the path if we contain no directory separator.
46839 *[\\/]* ) as_myself=$0 ;;
46840 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
46841 for as_dir in $PATH
46844 case $as_dir in #(((
46847 *) as_dir=$as_dir/ ;;
46849 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
46855 # We did not find ourselves, most probably we were run as `sh COMMAND'
46856 # in which case we are not to be found in the path.
46857 if test "x$as_myself" = x; then
46860 if test ! -f "$as_myself"; then
46861 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
46867 # as_fn_error STATUS ERROR [LINENO LOG_FD]
46868 # ----------------------------------------
46869 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
46870 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
46871 # script with STATUS, using 1 if that was 0.
46874 as_status=$1; test $as_status -eq 0 && as_status=1
46876 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
46877 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
46879 printf "%s\n" "$as_me: error: $2" >&2
46880 as_fn_exit $as_status
46885 # as_fn_set_status STATUS
46886 # -----------------------
46887 # Set $? to STATUS, without forking.
46888 as_fn_set_status ()
46891 } # as_fn_set_status
46893 # as_fn_exit STATUS
46894 # -----------------
46895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
46899 as_fn_set_status $1
46905 # Portably unset VAR.
46908 { eval $1=; unset $1;}
46910 as_unset=as_fn_unset
46912 # as_fn_append VAR VALUE
46913 # ----------------------
46914 # Append the text in VALUE to the end of the definition contained in VAR. Take
46915 # advantage of any shell optimizations that allow amortized linear growth over
46916 # repeated appends, instead of the typical quadratic growth present in naive
46918 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
46920 eval 'as_fn_append ()
46931 # as_fn_arith ARG...
46932 # ------------------
46933 # Perform arithmetic evaluation on the ARGs, and store the result in the
46934 # global $as_val. Take advantage of shells that can avoid forks. The arguments
46935 # must be portable across $(()) and expr.
46936 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
46938 eval 'as_fn_arith ()
46945 as_val=`expr "$@" || test $? -eq 1`
46950 if expr a : '\(a\)' >/dev/null 2>&1 &&
46951 test "X`expr 00001 : '.*\(...\)'`" = X001; then
46957 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
46958 as_basename=basename
46963 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
46969 as_me=`$as_basename -- "$0" ||
46970 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
46971 X"$0" : 'X\(//\)$' \| \
46972 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
46973 printf "%s\n" X/"$0" |
46974 sed '/^.*\/\([^/][^/]*\)\/*$/{
46988 # Avoid depending upon Character Ranges.
46989 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
46990 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
46991 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
46992 as_cr_digits='0123456789'
46993 as_cr_alnum=$as_cr_Letters$as_cr_digits
46996 # Determine whether it's possible to make 'echo' print without a newline.
46997 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
46998 # for compatibility with existing Makefiles.
46999 ECHO_C= ECHO_N= ECHO_T=
47000 case `echo -n x` in #(((((
47002 case `echo 'xy\c'` in
47003 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
47005 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
47012 # For backward compatibility with old third-party macros, we provide
47013 # the shell variables $as_echo and $as_echo_n. New code should use
47014 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
47015 as_echo='printf %s\n'
47016 as_echo_n='printf %s'
47018 rm -f conf$$ conf$$.exe conf$$.file
47019 if test -d conf$$.dir; then
47020 rm -f conf$$.dir/conf$$.file
47023 mkdir conf$$.dir 2>/dev/null
47025 if (echo >conf$$.file) 2>/dev/null; then
47026 if ln -s conf$$.file conf$$ 2>/dev/null; then
47028 # ... but there are two gotchas:
47029 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
47030 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
47031 # In both cases, we have to default to `cp -pR'.
47032 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
47034 elif ln conf$$.file conf$$ 2>/dev/null; then
47042 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
47043 rmdir conf$$.dir 2>/dev/null
47048 # Create "$as_dir" as a directory, including parents if necessary.
47053 -*) as_dir=./$as_dir;;
47055 test -d "$as_dir" || eval $as_mkdir_p || {
47059 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
47060 *) as_qdir=$as_dir;;
47062 as_dirs="'$as_qdir' $as_dirs"
47063 as_dir=`$as_dirname -- "$as_dir" ||
47064 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47065 X"$as_dir" : 'X\(//\)[^/]' \| \
47066 X"$as_dir" : 'X\(//\)$' \| \
47067 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
47068 printf "%s\n" X"$as_dir" |
47069 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47073 /^X\(\/\/\)[^/].*/{
47086 test -d "$as_dir" && break
47088 test -z "$as_dirs" || eval "mkdir $as_dirs"
47089 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
47093 if mkdir -p . 2>/dev/null; then
47094 as_mkdir_p='mkdir -p "$as_dir"'
47096 test -d ./-p && rmdir ./-p
47101 # as_fn_executable_p FILE
47102 # -----------------------
47103 # Test if FILE is an executable regular file.
47104 as_fn_executable_p ()
47106 test -f "$1" && test -x "$1"
47107 } # as_fn_executable_p
47108 as_test_x='test -x'
47109 as_executable_p=as_fn_executable_p
47111 # Sed expression to map a string onto a valid CPP name.
47112 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
47114 # Sed expression to map a string onto a valid variable name.
47115 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
47119 ## ----------------------------------- ##
47120 ## Main body of $CONFIG_STATUS script. ##
47121 ## ----------------------------------- ##
47123 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
47125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47126 # Save the log message, to keep $0 and so on meaningful, and to
47127 # report actual input values of CONFIG_FILES etc. instead of their
47128 # values after options handling.
47130 This file was extended by curl $as_me -, which was
47131 generated by GNU Autoconf 2.71. Invocation command line was
47133 CONFIG_FILES = $CONFIG_FILES
47134 CONFIG_HEADERS = $CONFIG_HEADERS
47135 CONFIG_LINKS = $CONFIG_LINKS
47136 CONFIG_COMMANDS = $CONFIG_COMMANDS
47139 on `(hostname || uname -n) 2>/dev/null | sed 1q`
47144 case $ac_config_files in *"
47145 "*) set x $ac_config_files; shift; ac_config_files=$*;;
47148 case $ac_config_headers in *"
47149 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
47153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47154 # Files that config.status was made for.
47155 config_files="$ac_config_files"
47156 config_headers="$ac_config_headers"
47157 config_commands="$ac_config_commands"
47161 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47163 \`$as_me' instantiates files and other configuration actions
47164 from templates according to the current configuration. Unless the files
47165 and actions are specified as TAGs, all are instantiated by default.
47167 Usage: $0 [OPTION]... [TAG]...
47169 -h, --help print this help, then exit
47170 -V, --version print version number and configuration settings, then exit
47171 --config print configuration, then exit
47172 -q, --quiet, --silent
47173 do not print progress messages
47174 -d, --debug don't remove temporary files
47175 --recheck update $as_me by reconfiguring in the same conditions
47176 --file=FILE[:TEMPLATE]
47177 instantiate the configuration file FILE
47178 --header=FILE[:TEMPLATE]
47179 instantiate the configuration header FILE
47181 Configuration files:
47184 Configuration headers:
47187 Configuration commands:
47190 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
47193 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
47194 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
47195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47196 ac_cs_config='$ac_cs_config_escaped'
47198 curl config.status -
47199 configured by $0, generated by GNU Autoconf 2.71,
47200 with options \\"\$ac_cs_config\\"
47202 Copyright (C) 2021 Free Software Foundation, Inc.
47203 This config.status script is free software; the Free Software Foundation
47204 gives unlimited permission to copy, distribute and modify it."
47211 test -n "\$AWK" || AWK=awk
47214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47215 # The default lists apply if the user does not specify any file.
47221 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47222 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
47226 ac_option=`expr "X$1" : 'X\([^=]*\)='`
47238 # Handling of the options.
47239 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
47241 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
47242 printf "%s\n" "$ac_cs_version"; exit ;;
47243 --config | --confi | --conf | --con | --co | --c )
47244 printf "%s\n" "$ac_cs_config"; exit ;;
47245 --debug | --debu | --deb | --de | --d | -d )
47247 --file | --fil | --fi | --f )
47250 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47251 '') as_fn_error $? "missing file argument" ;;
47253 as_fn_append CONFIG_FILES " '$ac_optarg'"
47254 ac_need_defaults=false;;
47255 --header | --heade | --head | --hea )
47258 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
47260 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
47261 ac_need_defaults=false;;
47263 # Conflict between --help and --header
47264 as_fn_error $? "ambiguous option: \`$1'
47265 Try \`$0 --help' for more information.";;
47266 --help | --hel | -h )
47267 printf "%s\n" "$ac_cs_usage"; exit ;;
47268 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
47269 | -silent | --silent | --silen | --sile | --sil | --si | --s)
47272 # This is an error.
47273 -*) as_fn_error $? "unrecognized option: \`$1'
47274 Try \`$0 --help' for more information." ;;
47276 *) as_fn_append ac_config_targets " $1"
47277 ac_need_defaults=false ;;
47283 ac_configure_extra_args=
47285 if $ac_cs_silent; then
47287 ac_configure_extra_args="$ac_configure_extra_args --silent"
47291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47292 if \$ac_cs_recheck; then
47293 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
47295 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
47296 CONFIG_SHELL='$SHELL'
47297 export CONFIG_SHELL
47302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47306 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
47307 ## Running $as_me. ##
47309 printf "%s\n" "$ac_log"
47313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47317 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
47320 # The HP-UX ksh and POSIX shell print the target directory to stdout
47321 # if CDPATH is set.
47322 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
47324 sed_quote_subst='$sed_quote_subst'
47325 double_quote_subst='$double_quote_subst'
47326 delay_variable_subst='$delay_variable_subst'
47327 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
47328 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
47329 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
47330 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
47331 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
47332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
47333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
47334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
47335 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
47336 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
47337 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
47338 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
47339 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
47340 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
47341 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
47342 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
47343 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
47344 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
47345 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
47346 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
47347 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
47348 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
47349 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
47350 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
47351 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
47352 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
47353 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
47354 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
47355 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
47356 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
47357 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
47358 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
47359 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
47360 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
47361 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
47362 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
47363 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
47364 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
47365 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
47366 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
47367 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
47368 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
47369 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
47370 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
47371 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
47372 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
47373 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
47374 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
47375 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
47376 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
47377 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
47378 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
47379 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
47380 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
47381 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
47382 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
47383 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
47384 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
47385 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
47386 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"`'
47387 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
47388 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
47389 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
47390 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
47391 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
47392 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
47393 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
47394 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
47395 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
47396 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
47397 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
47398 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
47399 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
47400 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
47401 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
47402 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
47403 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
47404 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
47405 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
47406 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
47407 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
47408 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
47409 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
47410 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
47411 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
47412 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
47413 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
47414 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
47415 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
47416 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
47417 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
47418 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
47419 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
47420 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
47421 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
47422 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
47423 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
47424 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
47425 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
47426 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
47427 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
47428 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
47429 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
47430 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
47431 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
47432 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
47433 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
47434 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
47435 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
47436 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
47437 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
47438 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
47439 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
47440 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
47441 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
47442 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
47443 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
47444 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
47445 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
47446 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
47447 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
47448 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
47449 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
47450 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
47451 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
47452 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
47453 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
47454 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
47455 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
47456 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
47457 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
47458 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
47459 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
47460 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
47461 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
47462 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
47465 LTCFLAGS='$LTCFLAGS'
47466 compiler='$compiler_DEFAULT'
47468 # A function that is used when there is no print builtin or printf.
47469 func_fallback_echo ()
47471 eval 'cat <<_LTECHO_EOF
47476 # Quote evaled strings.
47493 deplibs_check_method \
47497 sharedlib_from_linklib_cmd \
47500 archiver_list_spec \
47506 lt_cv_sys_global_symbol_pipe \
47507 lt_cv_sys_global_symbol_to_cdecl \
47508 lt_cv_sys_global_symbol_to_import \
47509 lt_cv_sys_global_symbol_to_c_name_address \
47510 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
47511 lt_cv_nm_interface \
47512 nm_file_list_spec \
47513 lt_cv_truncate_bin \
47514 lt_prog_compiler_no_builtin_flag \
47515 lt_prog_compiler_pic \
47516 lt_prog_compiler_wl \
47517 lt_prog_compiler_static \
47518 lt_cv_prog_compiler_c_o \
47527 export_dynamic_flag_spec \
47528 whole_archive_flag_spec \
47529 compiler_needs_object \
47531 allow_undefined_flag \
47532 no_undefined_flag \
47533 hardcode_libdir_flag_spec \
47534 hardcode_libdir_separator \
47538 variables_saved_for_relink \
47540 library_names_spec \
47542 install_override_mode \
47546 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47547 *[\\\\\\\`\\"\\\$]*)
47548 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47551 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47556 # Double-quote double-evaled strings.
47557 for var in reload_cmds \
47558 old_postinstall_cmds \
47559 old_postuninstall_cmds \
47561 extract_expsyms_cmds \
47562 old_archive_from_new_cmds \
47563 old_archive_from_expsyms_cmds \
47565 archive_expsym_cmds \
47567 module_expsym_cmds \
47568 export_symbols_cmds \
47572 postuninstall_cmds \
47574 sys_lib_search_path_spec \
47575 configure_time_dlsearch_path \
47576 configure_time_lt_sys_library_path; do
47577 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
47578 *[\\\\\\\`\\"\\\$]*)
47579 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
47582 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
47587 ac_aux_dir='$ac_aux_dir'
47589 # See if we are running on zsh, and set the options that allow our
47590 # commands through without removal of \ escapes INIT.
47591 if test -n "\${ZSH_VERSION+set}"; then
47592 setopt NO_GLOB_SUBST
47606 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47608 # Handling of arguments.
47609 for ac_config_target in $ac_config_targets
47611 case $ac_config_target in
47612 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
47613 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
47614 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
47615 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
47616 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
47617 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
47618 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
47619 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
47620 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
47621 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
47622 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
47623 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
47624 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
47625 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
47626 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
47627 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
47628 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
47629 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
47630 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
47631 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
47632 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
47633 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
47634 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
47635 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
47636 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
47637 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
47639 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
47644 # If the user did not use the arguments to specify the items to instantiate,
47645 # then the envvar interface is used. Set only those that are not.
47646 # We use the long form for the default assignment because of an extremely
47647 # bizarre bug on SunOS 4.1.3.
47648 if $ac_need_defaults; then
47649 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
47650 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
47651 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
47654 # Have a temporary directory for convenience. Make it in the build tree
47655 # simply because there is no reason against having it here, and in addition,
47656 # creating and moving files from /tmp can sometimes cause problems.
47657 # Hook for its removal unless debugging.
47658 # Note that there is a small window in which the directory will not be cleaned:
47659 # after its creation but before its name has been assigned to `$tmp'.
47663 trap 'exit_status=$?
47664 : "${ac_tmp:=$tmp}"
47665 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
47667 trap 'as_fn_exit 1' 1 2 13 15
47669 # Create a (secure) tmp directory for tmp files.
47672 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
47676 tmp=./conf$$-$RANDOM
47677 (umask 077 && mkdir "$tmp")
47678 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
47681 # Set up the scripts for CONFIG_FILES section.
47682 # No need to generate them if there are no CONFIG_FILES.
47683 # This happens for instance with `./config.status config.h'.
47684 if test -n "$CONFIG_FILES"; then
47687 ac_cr=`echo X | tr X '\015'`
47688 # On cygwin, bash can eat \r inside `` if the user requested igncr.
47689 # But we know of no other shell where ac_cr would be empty at this
47690 # point, so we can use a bashism as a fallback.
47691 if test "x$ac_cr" = x; then
47692 eval ac_cr=\$\'\\r\'
47694 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
47695 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
47698 ac_cs_awk_cr=$ac_cr
47701 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
47706 echo "cat >conf$$subs.awk <<_ACEOF" &&
47707 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
47709 } >conf$$subs.sh ||
47710 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47711 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
47713 for ac_last_try in false false false false false :; do
47714 . ./conf$$subs.sh ||
47715 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47717 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
47718 if test $ac_delim_n = $ac_delim_num; then
47720 elif $ac_last_try; then
47721 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
47723 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47726 rm -f conf$$subs.sh
47728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47729 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
47733 s/^/S["/; s/!.*/"]=/
47743 s/\(.\{148\}\)..*/\1/
47745 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
47750 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47757 s/\(.\{148\}\)..*/\1/
47759 s/["\\]/\\&/g; s/^/"/; s/$/"/
47763 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
47768 ' <conf$$subs.awk | sed '
47773 ' >>$CONFIG_STATUS || ac_write_fail=1
47774 rm -f conf$$subs.awk
47775 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47777 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
47778 for (key in S) S_is_set[key] = 1
47784 nfields = split(line, field, "@")
47786 len = length(field[1])
47787 for (i = 2; i < nfields; i++) {
47789 keylen = length(key)
47790 if (S_is_set[key]) {
47792 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
47793 len += length(value) + length(field[++i])
47804 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47805 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
47806 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
47809 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
47810 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
47813 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
47814 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
47815 # trailing colons and then remove the whole line if VPATH becomes empty
47816 # (actually we leave an empty line to preserve line numbers).
47817 if test "x$srcdir" = x.; then
47818 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
47836 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47837 fi # test -n "$CONFIG_FILES"
47839 # Set up the scripts for CONFIG_HEADERS section.
47840 # No need to generate them if there are no CONFIG_HEADERS.
47841 # This happens for instance with `./config.status Makefile'.
47842 if test -n "$CONFIG_HEADERS"; then
47843 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
47847 # Transform confdefs.h into an awk script `defines.awk', embedded as
47848 # here-document in config.status, that substitutes the proper values into
47849 # config.h.in to produce config.h.
47851 # Create a delimiter string that does not exist in confdefs.h, to ease
47852 # handling of long lines.
47854 for ac_last_try in false false :; do
47855 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
47856 if test -z "$ac_tt"; then
47858 elif $ac_last_try; then
47859 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
47861 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
47865 # For the awk script, D is an array of macro values keyed by name,
47866 # likewise P contains macro parameters if any. Preserve backslash
47867 # newline sequences.
47869 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
47871 s/.\{148\}/&'"$ac_delim"'/g
47874 s/^[ ]*#[ ]*define[ ][ ]*/ /
47881 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47883 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
47887 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
47888 D["\1"]=" \3\\\\\\n"\\/p
47890 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
47895 s/.\{148\}/&'"$ac_delim"'/g
47900 s/["\\]/\\&/g; s/^/"/; s/$/"/p
47903 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
47905 ' <confdefs.h | sed '
47906 s/'"$ac_delim"'/"\\\
47907 "/g' >>$CONFIG_STATUS || ac_write_fail=1
47909 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47910 for (key in D) D_is_set[key] = 1
47913 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
47915 split(line, arg, " ")
47916 if (arg[1] == "#") {
47920 defundef = substr(arg[1], 2)
47923 split(mac1, mac2, "(") #)
47925 prefix = substr(line, 1, index(line, defundef) - 1)
47926 if (D_is_set[macro]) {
47927 # Preserve the white space surrounding the "#".
47928 print prefix "define", macro P[macro] D[macro]
47931 # Replace #undef with comments. This is necessary, for example,
47932 # in the case of _POSIX_SOURCE, which is predefined and required
47933 # on some systems where configure will not decide to define it.
47934 if (defundef == "undef") {
47935 print "/*", prefix defundef, macro, "*/"
47943 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47944 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
47945 fi # test -n "$CONFIG_HEADERS"
47948 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
47953 :[FHLC]) ac_mode=$ac_tag; continue;;
47955 case $ac_mode$ac_tag in
47957 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
47958 :[FH]-) ac_tag=-:-;;
47959 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
47976 -) ac_f="$ac_tmp/stdin";;
47977 *) # Look for the file first in the build tree, then in the source tree
47978 # (if the path is not absolute). The absolute path cannot be DOS-style,
47979 # because $ac_f cannot contain `:'.
47983 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
47985 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
47987 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
47988 as_fn_append ac_file_inputs " '$ac_f'"
47991 # Let's still pretend it is `configure' which instantiates (i.e., don't
47992 # use $as_me), people would be surprised to read:
47993 # /* config.h. Generated by config.status. */
47994 configure_input='Generated from '`
47995 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
47997 if test x"$ac_file" != x-; then
47998 configure_input="$ac_file. $configure_input"
47999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
48000 printf "%s\n" "$as_me: creating $ac_file" >&6;}
48002 # Neutralize special characters interpreted by sed in replacement strings.
48003 case $configure_input in #(
48004 *\&* | *\|* | *\\* )
48005 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
48006 sed 's/[\\\\&|]/\\\\&/g'`;; #(
48007 *) ac_sed_conf_input=$configure_input;;
48011 *:-:* | *:-) cat >"$ac_tmp/stdin" \
48012 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
48017 ac_dir=`$as_dirname -- "$ac_file" ||
48018 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48019 X"$ac_file" : 'X\(//\)[^/]' \| \
48020 X"$ac_file" : 'X\(//\)$' \| \
48021 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
48022 printf "%s\n" X"$ac_file" |
48023 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48027 /^X\(\/\/\)[^/].*/{
48040 as_dir="$ac_dir"; as_fn_mkdir_p
48044 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48046 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
48047 # A ".." for each directory in $ac_dir_suffix.
48048 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48049 case $ac_top_builddir_sub in
48050 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48051 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48054 ac_abs_top_builddir=$ac_pwd
48055 ac_abs_builddir=$ac_pwd$ac_dir_suffix
48056 # for backward compatibility:
48057 ac_top_builddir=$ac_top_build_prefix
48060 .) # We are building in place.
48062 ac_top_srcdir=$ac_top_builddir_sub
48063 ac_abs_top_srcdir=$ac_pwd ;;
48064 [\\/]* | ?:[\\/]* ) # Absolute name.
48065 ac_srcdir=$srcdir$ac_dir_suffix;
48066 ac_top_srcdir=$srcdir
48067 ac_abs_top_srcdir=$srcdir ;;
48068 *) # Relative name.
48069 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
48070 ac_top_srcdir=$ac_top_build_prefix$srcdir
48071 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
48073 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
48083 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
48084 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
48086 ac_MKDIR_P=$MKDIR_P
48088 [\\/$]* | ?:[\\/]* ) ;;
48089 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
48093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48094 # If the template does not know about datarootdir, expand it.
48095 # FIXME: This hack should be removed a few years after 2.60.
48096 ac_datarootdir_hack=; ac_datarootdir_seen=
48107 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
48108 *datarootdir*) ac_datarootdir_seen=yes;;
48109 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
48110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
48111 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
48113 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48114 ac_datarootdir_hack='
48115 s&@datadir@&$datadir&g
48116 s&@docdir@&$docdir&g
48117 s&@infodir@&$infodir&g
48118 s&@localedir@&$localedir&g
48119 s&@mandir@&$mandir&g
48120 s&\\\${datarootdir}&$datarootdir&g' ;;
48124 # Neutralize VPATH when `$srcdir' = `.'.
48125 # Shell code in configure.ac might set extrasub.
48126 # FIXME: do we really want to maintain this feature?
48127 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
48128 ac_sed_extra="$ac_vpsub
48131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
48133 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
48134 s|@configure_input@|$ac_sed_conf_input|;t t
48135 s&@top_builddir@&$ac_top_builddir_sub&;t t
48136 s&@top_build_prefix@&$ac_top_build_prefix&;t t
48137 s&@srcdir@&$ac_srcdir&;t t
48138 s&@abs_srcdir@&$ac_abs_srcdir&;t t
48139 s&@top_srcdir@&$ac_top_srcdir&;t t
48140 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
48141 s&@builddir@&$ac_builddir&;t t
48142 s&@abs_builddir@&$ac_abs_builddir&;t t
48143 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
48144 s&@INSTALL@&$ac_INSTALL&;t t
48145 s&@MKDIR_P@&$ac_MKDIR_P&;t t
48146 $ac_datarootdir_hack
48148 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
48149 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48151 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
48152 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
48153 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
48154 "$ac_tmp/out"`; test -z "$ac_out"; } &&
48155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48156 which seems to be undefined. Please make sure it is defined" >&5
48157 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
48158 which seems to be undefined. Please make sure it is defined" >&2;}
48160 rm -f "$ac_tmp/stdin"
48162 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
48163 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
48165 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48171 if test x"$ac_file" != x-; then
48173 printf "%s\n" "/* $configure_input */" >&1 \
48174 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
48175 } >"$ac_tmp/config.h" \
48176 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48177 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
48178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
48179 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
48182 mv "$ac_tmp/config.h" "$ac_file" \
48183 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
48186 printf "%s\n" "/* $configure_input */" >&1 \
48187 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
48188 || as_fn_error $? "could not create -" "$LINENO" 5
48190 # Compute "$ac_file"'s index in $config_headers.
48193 for _am_header in $config_headers :; do
48194 case $_am_header in
48195 $_am_arg | $_am_arg:* )
48198 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
48201 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
48202 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48203 X"$_am_arg" : 'X\(//\)[^/]' \| \
48204 X"$_am_arg" : 'X\(//\)$' \| \
48205 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
48206 printf "%s\n" X"$_am_arg" |
48207 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48211 /^X\(\/\/\)[^/].*/{
48223 s/.*/./; q'`/stamp-h$_am_stamp_count
48226 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
48227 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
48232 case $ac_file$ac_mode in
48233 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
48234 # Older Autoconf quotes --file arguments for eval, but not when files
48235 # are listed without --file. Let's play safe and only enable the eval
48236 # if we detect the quoting.
48237 # TODO: see whether this extra hack can be removed once we start
48238 # requiring Autoconf 2.70 or later.
48239 case $CONFIG_FILES in #(
48241 eval set x "$CONFIG_FILES" ;; #(
48243 set x $CONFIG_FILES ;; #(
48248 # Used to flag and report bootstrapping failures.
48252 # Strip MF so we end up with the name of the file.
48253 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
48254 # Check whether this is an Automake generated Makefile which includes
48255 # dependency-tracking related rules and includes.
48256 # Grep'ing the whole file directly is not great: AIX grep has a line
48257 # limit of 2048, but all sed's we know have understand at least 4000.
48258 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
48260 am_dirpart=`$as_dirname -- "$am_mf" ||
48261 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
48262 X"$am_mf" : 'X\(//\)[^/]' \| \
48263 X"$am_mf" : 'X\(//\)$' \| \
48264 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
48265 printf "%s\n" X"$am_mf" |
48266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
48270 /^X\(\/\/\)[^/].*/{
48283 am_filepart=`$as_basename -- "$am_mf" ||
48284 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
48285 X"$am_mf" : 'X\(//\)$' \| \
48286 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
48287 printf "%s\n" X/"$am_mf" |
48288 sed '/^.*\/\([^/][^/]*\)\/*$/{
48301 { echo "$as_me:$LINENO: cd "$am_dirpart" \
48302 && sed -e '/# am--include-marker/d' "$am_filepart" \
48303 | $MAKE -f - am--depfiles" >&5
48304 (cd "$am_dirpart" \
48305 && sed -e '/# am--include-marker/d' "$am_filepart" \
48306 | $MAKE -f - am--depfiles) >&5 2>&5
48308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
48309 (exit $ac_status); } || am_rc=$?
48311 if test $am_rc -ne 0; then
48312 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
48313 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
48314 as_fn_error $? "Something went wrong bootstrapping makefile fragments
48315 for automatic dependency tracking. If GNU make was not used, consider
48316 re-running the configure script with MAKE=\"gmake\" (or whatever is
48317 necessary). You can also try re-running configure with the
48318 '--disable-dependency-tracking' option to at least be able to build
48319 the package (albeit without support for automatic dependency tracking).
48320 See \`config.log' for more details" "$LINENO" 5; }
48322 { am_dirpart=; unset am_dirpart;}
48323 { am_filepart=; unset am_filepart;}
48324 { am_mf=; unset am_mf;}
48325 { am_rc=; unset am_rc;}
48326 rm -f conftest-deps.mk
48331 # See if we are running on zsh, and set the options that allow our
48332 # commands through without removal of \ escapes.
48333 if test -n "${ZSH_VERSION+set}"; then
48334 setopt NO_GLOB_SUBST
48338 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
48341 cat <<_LT_EOF >> "$cfgfile"
48343 # Generated automatically by $as_me ($PACKAGE) $VERSION
48344 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
48346 # Provide generalized library-building support services.
48347 # Written by Gordon Matzigkeit, 1996
48349 # Copyright (C) 2014 Free Software Foundation, Inc.
48350 # This is free software; see the source for copying conditions. There is NO
48351 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
48353 # GNU Libtool is free software; you can redistribute it and/or modify
48354 # it under the terms of the GNU General Public License as published by
48355 # the Free Software Foundation; either version 2 of of the License, or
48356 # (at your option) any later version.
48358 # As a special exception to the GNU General Public License, if you
48359 # distribute this file as part of a program or library that is built
48360 # using GNU Libtool, you may include this file under the same
48361 # distribution terms that you use for the rest of that program.
48363 # GNU Libtool is distributed in the hope that it will be useful, but
48364 # WITHOUT ANY WARRANTY; without even the implied warranty of
48365 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
48366 # GNU General Public License for more details.
48368 # You should have received a copy of the GNU General Public License
48369 # along with this program. If not, see <http://www.gnu.org/licenses/>.
48372 # The names of the tagged configurations supported by this script.
48375 # Configured defaults for sys_lib_dlsearch_path munging.
48376 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
48378 # ### BEGIN LIBTOOL CONFIG
48380 # Which release of libtool.m4 was used?
48381 macro_version=$macro_version
48382 macro_revision=$macro_revision
48384 # Assembler program.
48387 # DLL creation program.
48388 DLLTOOL=$lt_DLLTOOL
48390 # Object dumper program.
48391 OBJDUMP=$lt_OBJDUMP
48393 # Whether or not to build shared libraries.
48394 build_libtool_libs=$enable_shared
48396 # Whether or not to build static libraries.
48397 build_old_libs=$enable_static
48399 # What type of objects to build.
48402 # Whether or not to optimize for fast installation.
48403 fast_install=$enable_fast_install
48405 # Shared archive member basename,for filename based shared library versioning on AIX.
48406 shared_archive_member_spec=$shared_archive_member_spec
48408 # Shell to use when invoking shell scripts.
48411 # An echo program that protects backslashes.
48414 # The PATH separator for the build system.
48415 PATH_SEPARATOR=$lt_PATH_SEPARATOR
48418 host_alias=$host_alias
48422 # The build system.
48423 build_alias=$build_alias
48427 # A sed program that does not truncate output.
48430 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
48431 Xsed="\$SED -e 1s/^X//"
48433 # A grep program that handles long lines.
48439 # A literal string matcher.
48442 # A BSD- or MS-compatible name lister.
48445 # Whether we need soft or hard links.
48448 # What is the maximum length of a command?
48449 max_cmd_len=$max_cmd_len
48451 # Object file suffix (normally "o").
48454 # Executable file suffix (normally "").
48457 # whether the shell understands "unset".
48460 # turn spaces into newlines.
48463 # turn newlines into spaces.
48466 # convert \$build file names to \$host format.
48467 to_host_file_cmd=$lt_cv_to_host_file_cmd
48469 # convert \$build files to toolchain format.
48470 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
48472 # Method to check whether dependent libraries are shared objects.
48473 deplibs_check_method=$lt_deplibs_check_method
48475 # Command to use when deplibs_check_method = "file_magic".
48476 file_magic_cmd=$lt_file_magic_cmd
48478 # How to find potential files when deplibs_check_method = "file_magic".
48479 file_magic_glob=$lt_file_magic_glob
48481 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
48482 want_nocaseglob=$lt_want_nocaseglob
48484 # Command to associate shared and link libraries.
48485 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
48490 # Flags to create an archive.
48491 AR_FLAGS=$lt_AR_FLAGS
48493 # How to feed a file listing to the archiver.
48494 archiver_list_spec=$lt_archiver_list_spec
48496 # A symbol stripping program.
48499 # Commands used to install an old-style archive.
48501 old_postinstall_cmds=$lt_old_postinstall_cmds
48502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
48504 # Whether to use a lock for old archive extraction.
48505 lock_old_archive_extraction=$lock_old_archive_extraction
48510 # LTCC compiler flags.
48511 LTCFLAGS=$lt_CFLAGS
48513 # Take the output of nm and produce a listing of raw symbols and C names.
48514 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
48516 # Transform the output of nm in a proper C declaration.
48517 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
48519 # Transform the output of nm into a list of symbols to manually relocate.
48520 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
48522 # Transform the output of nm in a C name address pair.
48523 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
48525 # Transform the output of nm in a C name address pair when lib prefix is needed.
48526 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
48528 # The name lister interface.
48529 nm_interface=$lt_lt_cv_nm_interface
48531 # Specify filename containing input files for \$NM.
48532 nm_file_list_spec=$lt_nm_file_list_spec
48534 # The root where to search for dependent libraries,and where our libraries should be installed.
48535 lt_sysroot=$lt_sysroot
48537 # Command to truncate a binary pipe.
48538 lt_truncate_bin=$lt_lt_cv_truncate_bin
48540 # The name of the directory that contains temporary libtool files.
48543 # Used to examine libraries when file_magic_cmd begins with "file".
48544 MAGIC_CMD=$MAGIC_CMD
48546 # Must we lock files when doing compilation?
48547 need_locks=$lt_need_locks
48550 MANIFEST_TOOL=$lt_MANIFEST_TOOL
48552 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
48553 DSYMUTIL=$lt_DSYMUTIL
48555 # Tool to change global to local symbols on Mac OS X.
48558 # Tool to manipulate fat objects and archives on Mac OS X.
48561 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
48564 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
48565 OTOOL64=$lt_OTOOL64
48567 # Old archive suffix (normally "a").
48570 # Shared library suffix (normally ".so").
48571 shrext_cmds=$lt_shrext_cmds
48573 # The commands to extract the exported symbol list from a shared archive.
48574 extract_expsyms_cmds=$lt_extract_expsyms_cmds
48576 # Variables whose values should be saved in libtool wrapper scripts and
48577 # restored at link time.
48578 variables_saved_for_relink=$lt_variables_saved_for_relink
48580 # Do we need the "lib" prefix for modules?
48581 need_lib_prefix=$need_lib_prefix
48583 # Do we need a version for libraries?
48584 need_version=$need_version
48586 # Library versioning type.
48587 version_type=$version_type
48589 # Shared library runtime path variable.
48590 runpath_var=$runpath_var
48592 # Shared library path variable.
48593 shlibpath_var=$shlibpath_var
48595 # Is shlibpath searched before the hard-coded library search path?
48596 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
48598 # Format of library name prefix.
48599 libname_spec=$lt_libname_spec
48601 # List of archive names. First name is the real one, the rest are links.
48602 # The last name is the one that the linker finds with -lNAME
48603 library_names_spec=$lt_library_names_spec
48605 # The coded name of the library, if different from the real name.
48606 soname_spec=$lt_soname_spec
48608 # Permission mode override for installation of shared libraries.
48609 install_override_mode=$lt_install_override_mode
48611 # Command to use after installation of a shared archive.
48612 postinstall_cmds=$lt_postinstall_cmds
48614 # Command to use after uninstallation of a shared archive.
48615 postuninstall_cmds=$lt_postuninstall_cmds
48617 # Commands used to finish a libtool library installation in a directory.
48618 finish_cmds=$lt_finish_cmds
48620 # As "finish_cmds", except a single script fragment to be evaled but
48622 finish_eval=$lt_finish_eval
48624 # Whether we should hardcode library paths into libraries.
48625 hardcode_into_libs=$hardcode_into_libs
48627 # Compile-time system search path for libraries.
48628 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
48630 # Detected run-time system search path for libraries.
48631 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
48633 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
48634 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
48636 # Whether dlopen is supported.
48637 dlopen_support=$enable_dlopen
48639 # Whether dlopen of programs is supported.
48640 dlopen_self=$enable_dlopen_self
48642 # Whether dlopen of statically linked programs is supported.
48643 dlopen_self_static=$enable_dlopen_self_static
48645 # Commands to strip libraries.
48646 old_striplib=$lt_old_striplib
48647 striplib=$lt_striplib
48650 # The linker used to build libraries.
48653 # How to create reloadable object files.
48654 reload_flag=$lt_reload_flag
48655 reload_cmds=$lt_reload_cmds
48657 # Commands used to build an old-style archive.
48658 old_archive_cmds=$lt_old_archive_cmds
48660 # A language specific compiler.
48663 # Is the compiler the GNU compiler?
48666 # Compiler flag to turn off builtin functions.
48667 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
48669 # Additional compiler flags for building library objects.
48670 pic_flag=$lt_lt_prog_compiler_pic
48672 # How to pass a linker flag through the compiler.
48673 wl=$lt_lt_prog_compiler_wl
48675 # Compiler flag to prevent dynamic linking.
48676 link_static_flag=$lt_lt_prog_compiler_static
48678 # Does compiler simultaneously support -c and -o options?
48679 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
48681 # Whether or not to add -lc for building shared libraries.
48682 build_libtool_need_lc=$archive_cmds_need_lc
48684 # Whether or not to disallow shared libs when runtime libs are static.
48685 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
48687 # Compiler flag to allow reflexive dlopens.
48688 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
48690 # Compiler flag to generate shared objects directly from archives.
48691 whole_archive_flag_spec=$lt_whole_archive_flag_spec
48693 # Whether the compiler copes with passing no objects directly.
48694 compiler_needs_object=$lt_compiler_needs_object
48696 # Create an old-style archive from a shared archive.
48697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
48699 # Create a temporary old-style archive to link instead of a shared archive.
48700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
48702 # Commands used to build a shared archive.
48703 archive_cmds=$lt_archive_cmds
48704 archive_expsym_cmds=$lt_archive_expsym_cmds
48706 # Commands used to build a loadable module if different from building
48707 # a shared archive.
48708 module_cmds=$lt_module_cmds
48709 module_expsym_cmds=$lt_module_expsym_cmds
48711 # Whether we are building with GNU ld or not.
48712 with_gnu_ld=$lt_with_gnu_ld
48714 # Flag that allows shared libraries with undefined symbols to be built.
48715 allow_undefined_flag=$lt_allow_undefined_flag
48717 # Flag that enforces no undefined symbols.
48718 no_undefined_flag=$lt_no_undefined_flag
48720 # Flag to hardcode \$libdir into a binary during linking.
48721 # This must work even if \$libdir does not exist
48722 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
48724 # Whether we need a single "-rpath" flag with a separated argument.
48725 hardcode_libdir_separator=$lt_hardcode_libdir_separator
48727 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48728 # DIR into the resulting binary.
48729 hardcode_direct=$hardcode_direct
48731 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
48732 # DIR into the resulting binary and the resulting library dependency is
48733 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
48734 # library is relocated.
48735 hardcode_direct_absolute=$hardcode_direct_absolute
48737 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
48738 # into the resulting binary.
48739 hardcode_minus_L=$hardcode_minus_L
48741 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
48742 # into the resulting binary.
48743 hardcode_shlibpath_var=$hardcode_shlibpath_var
48745 # Set to "yes" if building a shared library automatically hardcodes DIR
48746 # into the library and all subsequent libraries and executables linked
48748 hardcode_automatic=$hardcode_automatic
48750 # Set to yes if linker adds runtime paths of dependent libraries
48751 # to runtime path list.
48752 inherit_rpath=$inherit_rpath
48754 # Whether libtool must link a program against all its dependency libraries.
48755 link_all_deplibs=$link_all_deplibs
48757 # Set to "yes" if exported symbols are required.
48758 always_export_symbols=$always_export_symbols
48760 # The commands to list exported symbols.
48761 export_symbols_cmds=$lt_export_symbols_cmds
48763 # Symbols that should not be listed in the preloaded symbols.
48764 exclude_expsyms=$lt_exclude_expsyms
48766 # Symbols that must always be exported.
48767 include_expsyms=$lt_include_expsyms
48769 # Commands necessary for linking programs (against libraries) with templates.
48770 prelink_cmds=$lt_prelink_cmds
48772 # Commands necessary for finishing linking programs.
48773 postlink_cmds=$lt_postlink_cmds
48775 # Specify filename containing input files.
48776 file_list_spec=$lt_file_list_spec
48778 # How to hardcode a shared library path into an executable.
48779 hardcode_action=$hardcode_action
48781 # ### END LIBTOOL CONFIG
48785 cat <<'_LT_EOF' >> "$cfgfile"
48787 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
48789 # func_munge_path_list VARIABLE PATH
48790 # -----------------------------------
48791 # VARIABLE is name of variable containing _space_ separated list of
48792 # directories to be munged by the contents of PATH, which is string
48795 # string "DIR[ DIR]" will be prepended to VARIABLE
48797 # string "DIR[ DIR]" will be appended to VARIABLE
48798 # "DIRP[:DIRP]::[DIRA:]DIRA"
48799 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
48800 # "DIRA[ DIRA]" will be appended to VARIABLE
48802 # VARIABLE will be replaced by "DIR[ DIR]"
48803 func_munge_path_list ()
48809 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
48812 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
48815 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
48816 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
48819 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
48825 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
48826 func_cc_basename ()
48828 for cc_temp in $*""; do
48830 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
48831 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
48836 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
48840 # ### END FUNCTIONS SHARED WITH CONFIGURE
48846 cat <<\_LT_EOF >> "$cfgfile"
48847 # AIX sometimes has problems with the GCC collect2 program. For some
48848 # reason, if we set the COLLECT_NAMES environment variable, the problems
48849 # vanish in a puff of smoke.
48850 if test set != "${COLLECT_NAMES+set}"; then
48852 export COLLECT_NAMES
48860 ltmain=$ac_aux_dir/ltmain.sh
48863 # We use sed instead of cat because bash on DJGPP gets confused if
48864 # if finds mixed CR/LF and LF-only lines. Since sed operates in
48865 # text mode, it properly converts lines to CR/LF. This bash problem
48866 # is reportedly fixed, but why not run on old versions too?
48867 sed '$q' "$ltmain" >> "$cfgfile" \
48868 || (rm -f "$cfgfile"; exit 1)
48870 mv -f "$cfgfile" "$ofile" ||
48871 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
48882 ac_clean_files=$ac_clean_files_save
48884 test $ac_write_fail = 0 ||
48885 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
48888 # configure is writing to config.log, and then calls config.status.
48889 # config.status does its own redirection, appending to config.log.
48890 # Unfortunately, on DOS this fails, as config.log is still kept open
48891 # by configure, so config.status won't be able to write to it; its
48892 # output is simply discarded. So we exec the FD to /dev/null,
48893 # effectively closing config.log, so it can be properly (re)opened and
48894 # appended to by config.status. When coming back to configure, we
48895 # need to make the FD available again.
48896 if test "$no_create" != yes; then
48898 ac_config_status_args=
48899 test "$silent" = yes &&
48900 ac_config_status_args="$ac_config_status_args --quiet"
48902 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
48904 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
48905 # would make configure fail if this is the last instruction.
48906 $ac_cs_success || as_fn_exit 1
48910 # CONFIG_SUBDIRS section.
48912 if test "$no_recursion" != yes; then
48914 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
48915 # so they do not pile up.
48916 ac_sub_configure_args=
48918 eval "set x $ac_configure_args"
48922 if test -n "$ac_prev"; then
48927 -cache-file | --cache-file | --cache-fil | --cache-fi \
48928 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
48929 ac_prev=cache_file ;;
48930 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
48931 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
48934 --config-cache | -C)
48936 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
48938 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
48940 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
48942 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
48944 --disable-option-checking)
48948 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48950 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
48954 # Always prepend --prefix to ensure using the same prefix
48955 # in subdir configurations.
48956 ac_arg="--prefix=$prefix"
48958 *\'*) ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
48960 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
48963 if test "$silent" = yes; then
48964 ac_sub_configure_args="--silent $ac_sub_configure_args"
48967 # Always prepend --disable-option-checking to silence warnings, since
48968 # different subdirs can have different --enable and --with options.
48969 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
48972 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
48974 # Do not complain, so a configure script can configure whichever
48975 # parts of a large source tree are present.
48976 test -d "$srcdir/$ac_dir" || continue
48978 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
48979 printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
48980 printf "%s\n" "$ac_msg" >&6
48981 as_dir="$ac_dir"; as_fn_mkdir_p
48985 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
48987 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
48988 # A ".." for each directory in $ac_dir_suffix.
48989 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
48990 case $ac_top_builddir_sub in
48991 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
48992 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
48995 ac_abs_top_builddir=$ac_pwd
48996 ac_abs_builddir=$ac_pwd$ac_dir_suffix
48997 # for backward compatibility:
48998 ac_top_builddir=$ac_top_build_prefix
49001 .) # We are building in place.
49003 ac_top_srcdir=$ac_top_builddir_sub
49004 ac_abs_top_srcdir=$ac_pwd ;;
49005 [\\/]* | ?:[\\/]* ) # Absolute name.
49006 ac_srcdir=$srcdir$ac_dir_suffix;
49007 ac_top_srcdir=$srcdir
49008 ac_abs_top_srcdir=$srcdir ;;
49009 *) # Relative name.
49010 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
49011 ac_top_srcdir=$ac_top_build_prefix$srcdir
49012 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
49014 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
49019 # Check for configure.gnu first; this name is used for a wrapper for
49020 # Metaconfig's "Configure" on case-insensitive file systems.
49021 if test -f "$ac_srcdir/configure.gnu"; then
49022 ac_sub_configure=$ac_srcdir/configure.gnu
49023 elif test -f "$ac_srcdir/configure"; then
49024 ac_sub_configure=$ac_srcdir/configure
49026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
49027 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
49031 # The recursion is here.
49032 if test -n "$ac_sub_configure"; then
49033 # Make the cache file name correct relative to the subdirectory.
49034 case $cache_file in
49035 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
49036 *) # Relative name.
49037 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
49040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
49041 printf "%s\n" "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
49042 # The eval makes quoting arguments work.
49043 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
49044 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
49045 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
49051 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
49052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
49053 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
49058 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
49059 if test -z "$tmp_cpp"; then
49062 cat >./tests/configurehelp.pm <<_EOF
49063 # This is a generated file. Do not edit.
49065 package configurehelp;
49077 @ISA = qw(Exporter);
49083 \$Cpreprocessor = '$tmp_cpp';
49090 ## ---------------------------------- ##
49091 ## Start of distclean amending code ##
49092 ## ---------------------------------- ##
49094 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
49097 if test ! -f "$xc_subdir/Makefile"; then
49098 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
49102 # Fetch dependency tracking file list from Makefile include lines.
49104 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
49105 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
49107 # --disable-dependency-tracking might have been used, consequently
49108 # there is nothing to amend without a dependency tracking file list.
49110 if test $xc_cnt_words -gt 0; then
49112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
49113 printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
49115 # Build Makefile specific patch hunk.
49117 xc_p="$xc_subdir/xc_patch.tmp"
49119 xc_rm_depfiles=`echo "$xc_inc_lines" \
49120 | $SED 's%include% -rm -f%' 2>/dev/null`
49122 xc_dep_subdirs=`echo "$xc_inc_lines" \
49123 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
49124 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
49127 echo "$xc_rm_depfiles" >$xc_p
49129 for xc_dep_dir in $xc_dep_subdirs; do
49130 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
49131 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
49132 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
49133 echo "${xc_tab}fi" >>$xc_p
49136 # Build Makefile patching sed scripts.
49138 xc_s1="$xc_subdir/xc_script_1.tmp"
49139 xc_s2="$xc_subdir/xc_script_2.tmp"
49140 xc_s3="$xc_subdir/xc_script_3.tmp"
49142 cat >$xc_s1 <<\_EOT
49143 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
49144 s/^.*(DEPDIR)/___xc_depdir_line___/
49146 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
49147 s/^.*(DEPDIR)/___xc_depdir_line___/
49151 cat >$xc_s2 <<\_EOT
49152 /___xc_depdir_line___$/{
49154 /___xc_depdir_line___$/D
49159 /^___xc_depdir_line___/{
49165 # Apply patch to Makefile and cleanup.
49167 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
49168 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
49169 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
49171 if test -f "$xc_subdir/Makefile.tmp3"; then
49172 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
49175 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
49176 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
49177 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
49179 test -f "$xc_p" && rm -f "$xc_p"
49180 test -f "$xc_s1" && rm -f "$xc_s1"
49181 test -f "$xc_s2" && rm -f "$xc_s2"
49182 test -f "$xc_s3" && rm -f "$xc_s3"
49188 ## -------------------------------- ##
49189 ## End of distclean amending code ##
49190 ## -------------------------------- ##
49194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
49196 Host setup: ${host}
49197 Install prefix: ${prefix}
49200 CPPFLAGS: ${CPPFLAGS}
49201 LDFLAGS: ${LDFLAGS}
49204 curl version: ${CURLVERSION}
49205 SSL: ${curl_ssl_msg}
49206 SSH: ${curl_ssh_msg}
49207 zlib: ${curl_zlib_msg}
49208 brotli: ${curl_brotli_msg}
49209 zstd: ${curl_zstd_msg}
49210 GSS-API: ${curl_gss_msg}
49211 GSASL: ${curl_gsasl_msg}
49212 TLS-SRP: ${curl_tls_srp_msg}
49213 resolver: ${curl_res_msg}
49214 IPv6: ${curl_ipv6_msg}
49215 Unix sockets: ${curl_unix_sockets_msg}
49216 IDN: ${curl_idn_msg}
49217 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
49218 Built-in manual: ${curl_manual_msg}
49219 --libcurl option: ${curl_libcurl_msg}
49220 Verbose errors: ${curl_verbose_msg}
49221 Code coverage: ${curl_coverage_msg}
49222 SSPI: ${curl_sspi_msg}
49223 ca cert bundle: ${ca}${ca_warning}
49224 ca cert path: ${capath}${capath_warning}
49225 ca fallback: ${with_ca_fallback}
49226 LDAP: ${curl_ldap_msg}
49227 LDAPS: ${curl_ldaps_msg}
49228 RTSP: ${curl_rtsp_msg}
49229 RTMP: ${curl_rtmp_msg}
49230 PSL: ${curl_psl_msg}
49231 Alt-svc: ${curl_altsvc_msg}
49232 HSTS: ${curl_hsts_msg}
49233 HTTP1: ${curl_h1_msg}
49234 HTTP2: ${curl_h2_msg}
49235 HTTP3: ${curl_h3_msg}
49236 ECH: ${curl_ech_msg}
49237 Protocols: ${SUPPORT_PROTOCOLS}
49238 Features: ${SUPPORT_FEATURES}
49240 printf "%s\n" "$as_me: Configured to build curl/libcurl:
49242 Host setup: ${host}
49243 Install prefix: ${prefix}
49246 CPPFLAGS: ${CPPFLAGS}
49247 LDFLAGS: ${LDFLAGS}
49250 curl version: ${CURLVERSION}
49251 SSL: ${curl_ssl_msg}
49252 SSH: ${curl_ssh_msg}
49253 zlib: ${curl_zlib_msg}
49254 brotli: ${curl_brotli_msg}
49255 zstd: ${curl_zstd_msg}
49256 GSS-API: ${curl_gss_msg}
49257 GSASL: ${curl_gsasl_msg}
49258 TLS-SRP: ${curl_tls_srp_msg}
49259 resolver: ${curl_res_msg}
49260 IPv6: ${curl_ipv6_msg}
49261 Unix sockets: ${curl_unix_sockets_msg}
49262 IDN: ${curl_idn_msg}
49263 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
49264 Built-in manual: ${curl_manual_msg}
49265 --libcurl option: ${curl_libcurl_msg}
49266 Verbose errors: ${curl_verbose_msg}
49267 Code coverage: ${curl_coverage_msg}
49268 SSPI: ${curl_sspi_msg}
49269 ca cert bundle: ${ca}${ca_warning}
49270 ca cert path: ${capath}${capath_warning}
49271 ca fallback: ${with_ca_fallback}
49272 LDAP: ${curl_ldap_msg}
49273 LDAPS: ${curl_ldaps_msg}
49274 RTSP: ${curl_rtsp_msg}
49275 RTMP: ${curl_rtmp_msg}
49276 PSL: ${curl_psl_msg}
49277 Alt-svc: ${curl_altsvc_msg}
49278 HSTS: ${curl_hsts_msg}
49279 HTTP1: ${curl_h1_msg}
49280 HTTP2: ${curl_h2_msg}
49281 HTTP3: ${curl_h3_msg}
49282 ECH: ${curl_ech_msg}
49283 Protocols: ${SUPPORT_PROTOCOLS}
49284 Features: ${SUPPORT_FEATURES}
49286 if test -n "$experimental"; then
49288 WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!