2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
5 # Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1998 - 2020 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
18 ## -------------------------------- ##
19 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20 ## -------------------------------- ##
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
26 # Set IFS to space, tab and newline.
33 IFS="$xc_space$xc_tab$xc_newline"
36 # Set internationalization behavior variables.
47 # Some useful variables.
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
55 # Verify that 'echo' command is available, otherwise abort.
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
72 # Verify that 'test' command is available, otherwise abort.
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
88 # Verify that 'PATH' variable is set, otherwise abort.
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
104 # Verify that 'expr' command is available, otherwise abort.
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
141 (`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
198 case "x$xc_tst_str" in # ((
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
212 # Directory count in 'PATH' when using a colon separator.
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222 # Directory count in 'PATH' when using a semicolon separator.
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
236 # User should provide the correct 'PATH_SEPARATOR' definition.
237 # Until then, guess that it is colon!
238 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
242 # Separator with the greater directory count is the auto-detected one.
243 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
244 xc_tst_auto_separator=';'
246 xc_tst_auto_separator=':'
248 if test -z "$PATH_SEPARATOR"; then
249 # Simply use the auto-detected one when not already set.
250 PATH_SEPARATOR=$xc_tst_auto_separator
251 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
252 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
255 xc_PATH_SEPARATOR=$PATH_SEPARATOR
257 xc_configure_preamble_result='yes'
260 ## -------------------- ##
261 ## M4sh Initialization. ##
262 ## -------------------- ##
264 # Be more Bourne compatible
265 DUALCASE=1; export DUALCASE # for MKS sh
266 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
269 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
270 # is contrary to our usage. Disable this feature.
271 alias -g '${1+"$@"}'='"$@"'
274 case `(set -o) 2>/dev/null` in #(
286 # Printing a long string crashes Solaris 7 /usr/bin/printf.
287 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
289 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
290 # Prefer a ksh shell builtin over an external printf program on Solaris,
291 # but without wasting forks for bash or zsh.
292 if test -z "$BASH_VERSION$ZSH_VERSION" \
293 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
294 as_echo='print -r --'
295 as_echo_n='print -rn --'
296 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
297 as_echo='printf %s\n'
298 as_echo_n='printf %s'
300 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
301 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
302 as_echo_n='/usr/ucb/echo -n'
304 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
309 expr "X$arg" : "X\\(.*\\)$as_nl";
310 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
312 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
314 export as_echo_n_body
315 as_echo_n='sh -c $as_echo_n_body as_echo'
318 as_echo='sh -c $as_echo_body as_echo'
324 # We need space, tab and new line, in precisely that order. Quoting is
325 # there to prevent editors from complaining about space-tab.
326 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
327 # splitting by setting IFS to empty value.)
330 # Find who we are. Look in the path if we contain no directory separator.
333 *[\\/]* ) as_myself=$0 ;;
334 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
338 test -z "$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 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
355 # Unset variables that we do not need and which cause bugs (e.g. in
356 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
357 # suppresses any "Segmentation fault" message there. '((' could
358 # trigger a bug in pdksh 5.2.14.
359 for as_var in BASH_ENV ENV MAIL MAILPATH
360 do eval test x\${$as_var+set} = xset \
361 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
374 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
376 # Use a proper internal environment variable to ensure we don't fall
377 # into an infinite loop, continuously re-executing ourselves.
378 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
379 _as_can_reexec=no; export _as_can_reexec;
380 # We cannot yet assume a decent shell, so we have to provide a
381 # neutralization value for shells without unset; and this also
382 # works around shells that cannot unset nonexistent variables.
383 # Preserve -v and -x to the replacement shell.
386 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
388 *v*x* | *x*v* ) as_opts=-vx ;;
393 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
394 # Admittedly, this is quite paranoid, since all the known shells bail
395 # out after a failed `exec'.
396 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
399 # We don't want this to propagate to other subprocesses.
400 { _as_can_reexec=; unset _as_can_reexec;}
401 if test "x$CONFIG_SHELL" = x; then
402 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
405 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
406 # is contrary to our usage. Disable this feature.
407 alias -g '\${1+\"\$@\"}'='\"\$@\"'
410 case \`(set -o) 2>/dev/null\` in #(
418 as_required="as_fn_return () { (exit \$1); }
419 as_fn_success () { as_fn_return 0; }
420 as_fn_failure () { as_fn_return 1; }
421 as_fn_ret_success () { return 0; }
422 as_fn_ret_failure () { return 1; }
425 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
426 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
427 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
428 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
429 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
432 exitcode=1; echo positional parameters were not saved.
434 test x\$exitcode = x0 || exit 1
436 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
437 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
438 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
439 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
440 test \$(( 1 + 1 )) = 2 || exit 1
442 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
443 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
446 PATH=/empty FPATH=/empty; export PATH FPATH
447 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
448 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
449 if (eval "$as_required") 2>/dev/null; then :
454 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
459 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
462 test -z "$as_dir" && as_dir=.
466 for as_base in sh bash ksh sh5; do
467 # Try only shells that exist, to save several forks.
468 as_shell=$as_dir/$as_base
469 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
470 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
471 CONFIG_SHELL=$as_shell as_have_required=yes
472 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
480 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
481 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
482 CONFIG_SHELL=$SHELL as_have_required=yes
487 if test "x$CONFIG_SHELL" != x; then :
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 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
509 if test x$as_have_required = xno; then :
510 $as_echo "$0: This script requires a shell more modern than all"
511 $as_echo "$0: the shells that I found on your system."
512 if test x${ZSH_VERSION+set} = xset ; then
513 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
514 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
516 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
517 $0: mailing list: https://curl.haxx.se/mail/ about your
518 $0: system, including any error possibly output before this
519 $0: message. Then install a modern shell, or manually run
520 $0: the script under such a shell if you do have one."
526 SHELL=${CONFIG_SHELL-/bin/sh}
528 # Unset more variables known to interfere with behavior of common tools.
529 CLICOLOR_FORCE= GREP_OPTIONS=
530 unset CLICOLOR_FORCE GREP_OPTIONS
532 ## --------------------- ##
533 ## M4sh Shell Functions. ##
534 ## --------------------- ##
537 # Portably unset VAR.
540 { eval $1=; unset $1;}
544 # as_fn_set_status STATUS
545 # -----------------------
546 # Set $? to STATUS, without forking.
554 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
564 # Create "$as_dir" as a directory, including parents if necessary.
569 -*) as_dir=./$as_dir;;
571 test -d "$as_dir" || eval $as_mkdir_p || {
575 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
578 as_dirs="'$as_qdir' $as_dirs"
579 as_dir=`$as_dirname -- "$as_dir" ||
580 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
581 X"$as_dir" : 'X\(//\)[^/]' \| \
582 X"$as_dir" : 'X\(//\)$' \| \
583 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
584 $as_echo X"$as_dir" |
585 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
602 test -d "$as_dir" && break
604 test -z "$as_dirs" || eval "mkdir $as_dirs"
605 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
610 # as_fn_executable_p FILE
611 # -----------------------
612 # Test if FILE is an executable regular file.
613 as_fn_executable_p ()
615 test -f "$1" && test -x "$1"
616 } # as_fn_executable_p
617 # as_fn_append VAR VALUE
618 # ----------------------
619 # Append the text in VALUE to the end of the definition contained in VAR. Take
620 # advantage of any shell optimizations that allow amortized linear growth over
621 # repeated appends, instead of the typical quadratic growth present in naive
623 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
624 eval 'as_fn_append ()
637 # Perform arithmetic evaluation on the ARGs, and store the result in the
638 # global $as_val. Take advantage of shells that can avoid forks. The arguments
639 # must be portable across $(()) and expr.
640 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
648 as_val=`expr "$@" || test $? -eq 1`
653 # as_fn_error STATUS ERROR [LINENO LOG_FD]
654 # ----------------------------------------
655 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
656 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
657 # script with STATUS, using 1 if that was 0.
660 as_status=$1; test $as_status -eq 0 && as_status=1
662 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
663 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
665 $as_echo "$as_me: error: $2" >&2
666 as_fn_exit $as_status
669 if expr a : '\(a\)' >/dev/null 2>&1 &&
670 test "X`expr 00001 : '.*\(...\)'`" = X001; then
676 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
682 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
688 as_me=`$as_basename -- "$0" ||
689 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
690 X"$0" : 'X\(//\)$' \| \
691 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
693 sed '/^.*\/\([^/][^/]*\)\/*$/{
707 # Avoid depending upon Character Ranges.
708 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
709 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
710 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
711 as_cr_digits='0123456789'
712 as_cr_alnum=$as_cr_Letters$as_cr_digits
715 as_lineno_1=$LINENO as_lineno_1a=$LINENO
716 as_lineno_2=$LINENO as_lineno_2a=$LINENO
717 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
718 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
719 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
731 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
735 chmod +x "$as_me.lineno" ||
736 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
738 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
739 # already done that, so ensure we don't try to do so again and fall
740 # in an infinite loop. This has already happened in practice.
741 _as_can_reexec=no; export _as_can_reexec
742 # Don't try to exec as it changes $[0], causing all sort of problems
743 # (the dirname of $[0] is not the place where we might find the
744 # original and so on. Autoconf is especially sensitive to this).
746 # Exit status is that of the last command.
750 ECHO_C= ECHO_N= ECHO_T=
751 case `echo -n x` in #(((((
753 case `echo 'xy\c'` in
754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
756 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
763 rm -f conf$$ conf$$.exe conf$$.file
764 if test -d conf$$.dir; then
765 rm -f conf$$.dir/conf$$.file
768 mkdir conf$$.dir 2>/dev/null
770 if (echo >conf$$.file) 2>/dev/null; then
771 if ln -s conf$$.file conf$$ 2>/dev/null; then
773 # ... but there are two gotchas:
774 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
775 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
776 # In both cases, we have to default to `cp -pR'.
777 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
779 elif ln conf$$.file conf$$ 2>/dev/null; then
787 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
788 rmdir conf$$.dir 2>/dev/null
790 if mkdir -p . 2>/dev/null; then
791 as_mkdir_p='mkdir -p "$as_dir"'
793 test -d ./-p && rmdir ./-p
798 as_executable_p=as_fn_executable_p
800 # Sed expression to map a string onto a valid CPP name.
801 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
803 # Sed expression to map a string onto a valid variable name.
804 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
806 SHELL=${CONFIG_SHELL-/bin/sh}
809 test -n "$DJDIR" || exec 7<&0 </dev/null
813 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
814 # so uname gets run too.
815 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
820 ac_default_prefix=/usr/local
822 ac_config_libobj_dir=.
829 # Identity of this package.
831 PACKAGE_TARNAME='curl'
833 PACKAGE_STRING='curl -'
834 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.haxx.se/mail/'
837 ac_unique_file="lib/urldata.h"
838 # Factoring default headers for most tests.
839 ac_includes_default="\
841 #ifdef HAVE_SYS_TYPES_H
842 # include <sys/types.h>
844 #ifdef HAVE_SYS_STAT_H
845 # include <sys/stat.h>
851 # ifdef HAVE_STDLIB_H
856 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
861 #ifdef HAVE_STRINGS_H
862 # include <strings.h>
864 #ifdef HAVE_INTTYPES_H
865 # include <inttypes.h>
874 enable_option_checking=no
875 ac_subst_vars='am__EXEEXT_FALSE
888 CURL_NETWORK_AND_TIME_LIBS
891 CFLAG_CURL_SYMBOL_HIDING
892 DOING_CURL_SYMBOL_HIDING_FALSE
893 DOING_CURL_SYMBOL_HIDING_TRUE
895 BUILD_LIBHOSTNAME_FALSE
896 BUILD_LIBHOSTNAME_TRUE
897 USE_EMBEDDED_ARES_FALSE
898 USE_EMBEDDED_ARES_TRUE
910 USE_NGTCP2_CRYPTO_GNUTLS
911 USE_NGTCP2_CRYPTO_OPENSSL
915 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
916 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
917 CURL_LT_SHLIB_VERSIONED_FLAVOUR
957 HAVE_PROTO_BSDSOCKET_H
975 DOING_NATIVE_WINDOWS_FALSE
976 DOING_NATIVE_WINDOWS_TRUE
977 BUILD_UNITTESTS_FALSE
982 USE_EXPLICIT_LIB_DEPS_FALSE
983 USE_EXPLICIT_LIB_DEPS_TRUE
985 CPPFLAG_CURL_STATICLIB
986 USE_CPPFLAG_CURL_STATICLIB_FALSE
987 USE_CPPFLAG_CURL_STATICLIB_TRUE
988 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
989 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
990 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
991 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
992 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
993 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1044 INSTALL_STRIP_PROGRAM
1076 AM_DEFAULT_VERBOSITY
1080 MAINTAINER_MODE_FALSE
1081 MAINTAINER_MODE_TRUE
1110 program_transform_name
1124 enable_option_checking
1125 enable_maintainer_mode
1132 enable_symbol_hiding
1133 enable_hidden_symbols
1137 enable_code_coverage
1138 enable_dependency_tracking
1165 enable_libcurl_option
1173 with_gssapi_includes
1176 with_default_ssl_backend
1180 with_secure_transport
1185 enable_openssl_auto_load_config
1201 enable_versioned_symbols
1208 with_zsh_functions_dir
1209 with_fish_functions_dir
1210 enable_threaded_resolver
1225 enable_progress_meter
1227 enable_get_easy_option
1230 ac_precious_vars='build_alias
1239 LT_SYS_LIBRARY_PATH'
1240 ac_subdirs_all='ares'
1242 # Initialize some variables set by options.
1244 ac_init_version=false
1245 ac_unrecognized_opts=
1246 ac_unrecognized_sep=
1247 # The variables have the same names as the options, with
1248 # dashes changed to underlines.
1249 cache_file=/dev/null
1256 program_transform_name=s,x,x,
1264 # Installation directory options.
1265 # These are left unexpanded so users can "make install exec_prefix=/foo"
1266 # and all the variables that are supposed to be based on exec_prefix
1267 # by default will actually change.
1268 # Use braces instead of parens because sh, perl, etc. also accept them.
1269 # (The list follows the same order as the GNU Coding Standards.)
1270 bindir='${exec_prefix}/bin'
1271 sbindir='${exec_prefix}/sbin'
1272 libexecdir='${exec_prefix}/libexec'
1273 datarootdir='${prefix}/share'
1274 datadir='${datarootdir}'
1275 sysconfdir='${prefix}/etc'
1276 sharedstatedir='${prefix}/com'
1277 localstatedir='${prefix}/var'
1278 runstatedir='${localstatedir}/run'
1279 includedir='${prefix}/include'
1280 oldincludedir='/usr/include'
1281 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1282 infodir='${datarootdir}/info'
1287 libdir='${exec_prefix}/lib'
1288 localedir='${datarootdir}/locale'
1289 mandir='${datarootdir}/man'
1295 # If the previous option needs an argument, assign it.
1296 if test -n "$ac_prev"; then
1297 eval $ac_prev=\$ac_option
1303 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1308 # Accept the important Cygnus configure options, so we can diagnose typos.
1310 case $ac_dashdash$ac_option in
1314 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1316 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1317 bindir=$ac_optarg ;;
1319 -build | --build | --buil | --bui | --bu)
1320 ac_prev=build_alias ;;
1321 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1322 build_alias=$ac_optarg ;;
1324 -cache-file | --cache-file | --cache-fil | --cache-fi \
1325 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1326 ac_prev=cache_file ;;
1327 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1328 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1329 cache_file=$ac_optarg ;;
1331 --config-cache | -C)
1332 cache_file=config.cache ;;
1334 -datadir | --datadir | --datadi | --datad)
1336 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1337 datadir=$ac_optarg ;;
1339 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1340 | --dataroo | --dataro | --datar)
1341 ac_prev=datarootdir ;;
1342 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1343 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1344 datarootdir=$ac_optarg ;;
1346 -disable-* | --disable-*)
1347 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1348 # Reject names that are not valid shell variable names.
1349 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1350 as_fn_error $? "invalid feature name: $ac_useropt"
1351 ac_useropt_orig=$ac_useropt
1352 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1353 case $ac_user_opts in
1355 "enable_$ac_useropt"
1357 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1358 ac_unrecognized_sep=', ';;
1360 eval enable_$ac_useropt=no ;;
1362 -docdir | --docdir | --docdi | --doc | --do)
1364 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1365 docdir=$ac_optarg ;;
1367 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1369 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1370 dvidir=$ac_optarg ;;
1372 -enable-* | --enable-*)
1373 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1374 # Reject names that are not valid shell variable names.
1375 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1376 as_fn_error $? "invalid feature name: $ac_useropt"
1377 ac_useropt_orig=$ac_useropt
1378 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1379 case $ac_user_opts in
1381 "enable_$ac_useropt"
1383 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1384 ac_unrecognized_sep=', ';;
1386 eval enable_$ac_useropt=\$ac_optarg ;;
1388 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1389 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1390 | --exec | --exe | --ex)
1391 ac_prev=exec_prefix ;;
1392 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1393 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1394 | --exec=* | --exe=* | --ex=*)
1395 exec_prefix=$ac_optarg ;;
1397 -gas | --gas | --ga | --g)
1398 # Obsolete; use --with-gas.
1401 -help | --help | --hel | --he | -h)
1402 ac_init_help=long ;;
1403 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1404 ac_init_help=recursive ;;
1405 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1406 ac_init_help=short ;;
1408 -host | --host | --hos | --ho)
1409 ac_prev=host_alias ;;
1410 -host=* | --host=* | --hos=* | --ho=*)
1411 host_alias=$ac_optarg ;;
1413 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1415 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1417 htmldir=$ac_optarg ;;
1419 -includedir | --includedir | --includedi | --included | --include \
1420 | --includ | --inclu | --incl | --inc)
1421 ac_prev=includedir ;;
1422 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1423 | --includ=* | --inclu=* | --incl=* | --inc=*)
1424 includedir=$ac_optarg ;;
1426 -infodir | --infodir | --infodi | --infod | --info | --inf)
1428 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1429 infodir=$ac_optarg ;;
1431 -libdir | --libdir | --libdi | --libd)
1433 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1434 libdir=$ac_optarg ;;
1436 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1437 | --libexe | --libex | --libe)
1438 ac_prev=libexecdir ;;
1439 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1440 | --libexe=* | --libex=* | --libe=*)
1441 libexecdir=$ac_optarg ;;
1443 -localedir | --localedir | --localedi | --localed | --locale)
1444 ac_prev=localedir ;;
1445 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1446 localedir=$ac_optarg ;;
1448 -localstatedir | --localstatedir | --localstatedi | --localstated \
1449 | --localstate | --localstat | --localsta | --localst | --locals)
1450 ac_prev=localstatedir ;;
1451 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1452 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1453 localstatedir=$ac_optarg ;;
1455 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1457 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1458 mandir=$ac_optarg ;;
1460 -nfp | --nfp | --nf)
1461 # Obsolete; use --without-fp.
1464 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1465 | --no-cr | --no-c | -n)
1468 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1469 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1472 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1473 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1474 | --oldin | --oldi | --old | --ol | --o)
1475 ac_prev=oldincludedir ;;
1476 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1477 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1478 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1479 oldincludedir=$ac_optarg ;;
1481 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1483 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1484 prefix=$ac_optarg ;;
1486 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1487 | --program-pre | --program-pr | --program-p)
1488 ac_prev=program_prefix ;;
1489 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1490 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1491 program_prefix=$ac_optarg ;;
1493 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1494 | --program-suf | --program-su | --program-s)
1495 ac_prev=program_suffix ;;
1496 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1497 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1498 program_suffix=$ac_optarg ;;
1500 -program-transform-name | --program-transform-name \
1501 | --program-transform-nam | --program-transform-na \
1502 | --program-transform-n | --program-transform- \
1503 | --program-transform | --program-transfor \
1504 | --program-transfo | --program-transf \
1505 | --program-trans | --program-tran \
1506 | --progr-tra | --program-tr | --program-t)
1507 ac_prev=program_transform_name ;;
1508 -program-transform-name=* | --program-transform-name=* \
1509 | --program-transform-nam=* | --program-transform-na=* \
1510 | --program-transform-n=* | --program-transform-=* \
1511 | --program-transform=* | --program-transfor=* \
1512 | --program-transfo=* | --program-transf=* \
1513 | --program-trans=* | --program-tran=* \
1514 | --progr-tra=* | --program-tr=* | --program-t=*)
1515 program_transform_name=$ac_optarg ;;
1517 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1519 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1520 pdfdir=$ac_optarg ;;
1522 -psdir | --psdir | --psdi | --psd | --ps)
1524 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1527 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1528 | -silent | --silent | --silen | --sile | --sil)
1531 -runstatedir | --runstatedir | --runstatedi | --runstated \
1532 | --runstate | --runstat | --runsta | --runst | --runs \
1533 | --run | --ru | --r)
1534 ac_prev=runstatedir ;;
1535 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1536 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1537 | --run=* | --ru=* | --r=*)
1538 runstatedir=$ac_optarg ;;
1540 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1542 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1544 sbindir=$ac_optarg ;;
1546 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1547 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1548 | --sharedst | --shareds | --shared | --share | --shar \
1550 ac_prev=sharedstatedir ;;
1551 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1552 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1553 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1555 sharedstatedir=$ac_optarg ;;
1557 -site | --site | --sit)
1559 -site=* | --site=* | --sit=*)
1562 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1564 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1565 srcdir=$ac_optarg ;;
1567 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1568 | --syscon | --sysco | --sysc | --sys | --sy)
1569 ac_prev=sysconfdir ;;
1570 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1571 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1572 sysconfdir=$ac_optarg ;;
1574 -target | --target | --targe | --targ | --tar | --ta | --t)
1575 ac_prev=target_alias ;;
1576 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1577 target_alias=$ac_optarg ;;
1579 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1582 -version | --version | --versio | --versi | --vers | -V)
1583 ac_init_version=: ;;
1586 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1587 # Reject names that are not valid shell variable names.
1588 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1589 as_fn_error $? "invalid package name: $ac_useropt"
1590 ac_useropt_orig=$ac_useropt
1591 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1592 case $ac_user_opts in
1596 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1597 ac_unrecognized_sep=', ';;
1599 eval with_$ac_useropt=\$ac_optarg ;;
1601 -without-* | --without-*)
1602 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1603 # Reject names that are not valid shell variable names.
1604 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1605 as_fn_error $? "invalid package name: $ac_useropt"
1606 ac_useropt_orig=$ac_useropt
1607 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1608 case $ac_user_opts in
1612 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1613 ac_unrecognized_sep=', ';;
1615 eval with_$ac_useropt=no ;;
1618 # Obsolete; use --with-x.
1621 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1622 | --x-incl | --x-inc | --x-in | --x-i)
1623 ac_prev=x_includes ;;
1624 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1625 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1626 x_includes=$ac_optarg ;;
1628 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1629 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1630 ac_prev=x_libraries ;;
1631 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1632 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1633 x_libraries=$ac_optarg ;;
1635 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1636 Try \`$0 --help' for more information"
1640 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1641 # Reject names that are not valid shell variable names.
1642 case $ac_envvar in #(
1643 '' | [0-9]* | *[!_$as_cr_alnum]* )
1644 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1646 eval $ac_envvar=\$ac_optarg
1647 export $ac_envvar ;;
1650 # FIXME: should be removed in autoconf 3.0.
1651 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1652 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1653 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1654 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1660 if test -n "$ac_prev"; then
1661 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1662 as_fn_error $? "missing argument to $ac_option"
1665 if test -n "$ac_unrecognized_opts"; then
1666 case $enable_option_checking in
1668 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1669 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1673 # Check all directory arguments for consistency.
1674 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1675 datadir sysconfdir sharedstatedir localstatedir includedir \
1676 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1677 libdir localedir mandir runstatedir
1679 eval ac_val=\$$ac_var
1680 # Remove trailing slashes.
1683 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1684 eval $ac_var=\$ac_val;;
1686 # Be sure to have absolute directory names.
1688 [\\/$]* | ?:[\\/]* ) continue;;
1689 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1691 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1694 # There might be people who depend on the old broken behavior: `$host'
1695 # used to hold the argument of --host etc.
1696 # FIXME: To remove some day.
1699 target=$target_alias
1701 # FIXME: To remove some day.
1702 if test "x$host_alias" != x; then
1703 if test "x$build_alias" = x; then
1704 cross_compiling=maybe
1705 elif test "x$build_alias" != "x$host_alias"; then
1711 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1713 test "$silent" = yes && exec 6>/dev/null
1716 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1717 ac_ls_di=`ls -di .` &&
1718 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1719 as_fn_error $? "working directory cannot be determined"
1720 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1721 as_fn_error $? "pwd does not report name of working directory"
1724 # Find the source files, if location was not specified.
1725 if test -z "$srcdir"; then
1726 ac_srcdir_defaulted=yes
1727 # Try the directory containing this script, then the parent directory.
1728 ac_confdir=`$as_dirname -- "$as_myself" ||
1729 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1730 X"$as_myself" : 'X\(//\)[^/]' \| \
1731 X"$as_myself" : 'X\(//\)$' \| \
1732 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1733 $as_echo X"$as_myself" |
1734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1752 if test ! -r "$srcdir/$ac_unique_file"; then
1756 ac_srcdir_defaulted=no
1758 if test ! -r "$srcdir/$ac_unique_file"; then
1759 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1760 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1762 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1764 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1766 # When building in place, set srcdir=.
1767 if test "$ac_abs_confdir" = "$ac_pwd"; then
1770 # Remove unnecessary trailing slashes from srcdir.
1771 # Double slashes in file names in object file debugging info
1772 # mess up M-x gdb in Emacs.
1774 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1776 for ac_var in $ac_precious_vars; do
1777 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1778 eval ac_env_${ac_var}_value=\$${ac_var}
1779 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1780 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1784 # Report the --help message.
1786 if test "$ac_init_help" = "long"; then
1787 # Omit some internal or obsolete options to make the list less imposing.
1788 # This message is too long to be a string in the A/UX 3.1 sh.
1790 \`configure' configures curl - to adapt to many kinds of systems.
1792 Usage: $0 [OPTION]... [VAR=VALUE]...
1794 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1795 VAR=VALUE. See below for descriptions of some of the useful variables.
1797 Defaults for the options are specified in brackets.
1800 -h, --help display this help and exit
1801 --help=short display options specific to this package
1802 --help=recursive display the short help of all the included packages
1803 -V, --version display version information and exit
1804 -q, --quiet, --silent do not print \`checking ...' messages
1805 --cache-file=FILE cache test results in FILE [disabled]
1806 -C, --config-cache alias for \`--cache-file=config.cache'
1807 -n, --no-create do not create output files
1808 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1810 Installation directories:
1811 --prefix=PREFIX install architecture-independent files in PREFIX
1812 [$ac_default_prefix]
1813 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1816 By default, \`make install' will install all the files in
1817 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1818 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1819 for instance \`--prefix=\$HOME'.
1821 For better control, use the options below.
1823 Fine tuning of the installation directories:
1824 --bindir=DIR user executables [EPREFIX/bin]
1825 --sbindir=DIR system admin executables [EPREFIX/sbin]
1826 --libexecdir=DIR program executables [EPREFIX/libexec]
1827 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1828 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1829 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1830 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1831 --libdir=DIR object code libraries [EPREFIX/lib]
1832 --includedir=DIR C header files [PREFIX/include]
1833 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1834 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1835 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1836 --infodir=DIR info documentation [DATAROOTDIR/info]
1837 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1838 --mandir=DIR man documentation [DATAROOTDIR/man]
1839 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1840 --htmldir=DIR html documentation [DOCDIR]
1841 --dvidir=DIR dvi documentation [DOCDIR]
1842 --pdfdir=DIR pdf documentation [DOCDIR]
1843 --psdir=DIR ps documentation [DOCDIR]
1849 --program-prefix=PREFIX prepend PREFIX to installed program names
1850 --program-suffix=SUFFIX append SUFFIX to installed program names
1851 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1854 --build=BUILD configure for building on BUILD [guessed]
1855 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1859 if test -n "$ac_init_help"; then
1860 case $ac_init_help in
1861 short | recursive ) echo "Configuration of curl -:";;
1866 --disable-option-checking ignore unrecognized --enable/--with options
1867 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1868 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1869 --enable-maintainer-mode
1870 enable make rules and dependencies not useful (and
1871 sometimes confusing) to the casual installer
1872 --enable-silent-rules less verbose build output (undo: "make V=1")
1873 --disable-silent-rules verbose build output (undo: "make V=0")
1874 --enable-debug Enable debug build options
1875 --disable-debug Disable debug build options
1876 --enable-optimize Enable compiler optimizations
1877 --disable-optimize Disable compiler optimizations
1878 --enable-warnings Enable strict compiler warnings
1879 --disable-warnings Disable strict compiler warnings
1880 --enable-werror Enable compiler warnings as errors
1881 --disable-werror Disable compiler warnings as errors
1882 --enable-curldebug Enable curl debug memory tracking
1883 --disable-curldebug Disable curl debug memory tracking
1884 --enable-symbol-hiding Enable hiding of library internal symbols
1885 --disable-symbol-hiding Disable hiding of library internal symbols
1886 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1887 --disable-hidden-symbols
1888 To be deprecated, use --disable-symbol-hiding
1889 --enable-ares[=PATH] Enable c-ares for DNS lookups
1890 --disable-ares Disable c-ares for DNS lookups
1891 --disable-rt disable dependency on -lrt
1892 --enable-ech Enable ECH support
1893 --disable-ech Disable ECH support
1894 --enable-code-coverage Provide code coverage
1895 --enable-dependency-tracking
1896 do not reject slow dependency extractors
1897 --disable-dependency-tracking
1898 speeds up one-time build
1899 --disable-largefile omit support for large files
1900 --enable-shared[=PKGS] build shared libraries [default=yes]
1901 --enable-static[=PKGS] build static libraries [default=yes]
1902 --enable-fast-install[=PKGS]
1903 optimize for fast installation [default=yes]
1904 --disable-libtool-lock avoid locking (might break parallel builds)
1905 --enable-http Enable HTTP support
1906 --disable-http Disable HTTP support
1907 --enable-ftp Enable FTP support
1908 --disable-ftp Disable FTP support
1909 --enable-file Enable FILE support
1910 --disable-file Disable FILE support
1911 --enable-ldap Enable LDAP support
1912 --disable-ldap Disable LDAP support
1913 --enable-ldaps Enable LDAPS support
1914 --disable-ldaps Disable LDAPS support
1915 --enable-rtsp Enable RTSP support
1916 --disable-rtsp Disable RTSP support
1917 --enable-proxy Enable proxy support
1918 --disable-proxy Disable proxy support
1919 --enable-dict Enable DICT support
1920 --disable-dict Disable DICT support
1921 --enable-telnet Enable TELNET support
1922 --disable-telnet Disable TELNET support
1923 --enable-tftp Enable TFTP support
1924 --disable-tftp Disable TFTP support
1925 --enable-pop3 Enable POP3 support
1926 --disable-pop3 Disable POP3 support
1927 --enable-imap Enable IMAP support
1928 --disable-imap Disable IMAP support
1929 --enable-smb Enable SMB/CIFS support
1930 --disable-smb Disable SMB/CIFS support
1931 --enable-smtp Enable SMTP support
1932 --disable-smtp Disable SMTP support
1933 --enable-gopher Enable Gopher support
1934 --disable-gopher Disable Gopher support
1935 --enable-mqtt Enable MQTT support
1936 --disable-mqtt Disable MQTT support
1937 --enable-manual Enable built-in manual
1938 --disable-manual Disable built-in manual
1939 --enable-libcurl-option Enable --libcurl C code generation support
1940 --disable-libcurl-option
1941 Disable --libcurl C code generation support
1942 --enable-libgcc use libgcc when linking
1943 --enable-ipv6 Enable IPv6 (with IPv4) support
1944 --disable-ipv6 Disable IPv6 support
1945 --enable-openssl-auto-load-config
1946 Enable automatic loading of OpenSSL configuration
1947 --disable-openssl-auto-load-config
1948 Disable automatic loading of OpenSSL configuration
1949 --enable-versioned-symbols
1950 Enable versioned symbols in shared library
1951 --disable-versioned-symbols
1952 Disable versioned symbols in shared library
1953 --enable-threaded-resolver
1954 Enable threaded resolver
1955 --disable-threaded-resolver
1956 Disable threaded resolver
1957 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1958 --disable-pthreads Disable POSIX threads
1959 --enable-verbose Enable verbose strings
1960 --disable-verbose Disable verbose strings
1961 --enable-sspi Enable SSPI
1962 --disable-sspi Disable SSPI
1963 --enable-crypto-auth Enable cryptographic authentication
1964 --disable-crypto-auth Disable cryptographic authentication
1965 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1966 helper, where FILE is ntlm_auth's absolute filename
1967 (default: /usr/bin/ntlm_auth)
1968 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1970 --enable-tls-srp Enable TLS-SRP authentication
1971 --disable-tls-srp Disable TLS-SRP authentication
1972 --enable-unix-sockets Enable Unix domain sockets
1973 --disable-unix-sockets Disable Unix domain sockets
1974 --enable-cookies Enable cookies support
1975 --disable-cookies Disable cookies support
1976 --enable-socketpair Enable socketpair support
1977 --disable-socketpair Disable socketpair support
1978 --enable-http-auth Enable HTTP authentication support
1979 --disable-http-auth Disable HTTP authentication support
1980 --enable-doh Enable DoH support
1981 --disable-doh Disable DoH support
1982 --enable-mime Enable mime API support
1983 --disable-mime Disable mime API support
1984 --enable-dateparse Enable date parsing
1985 --disable-dateparse Disable date parsing
1986 --enable-netrc Enable netrc parsing
1987 --disable-netrc Disable netrc parsing
1988 --enable-progress-meter Enable progress-meter
1989 --disable-progress-meter
1990 Disable progress-meter
1991 --enable-dnsshuffle Enable DNS shuffling
1992 --disable-dnsshuffle Disable DNS shuffling
1993 --enable-get-easy-options
1994 Enable curl_easy_options
1995 --disable-get-easy-options
1996 Disable curl_easy_options
1997 --enable-alt-svc Enable alt-svc support
1998 --disable-alt-svc Disable alt-svc support
2001 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2002 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2003 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2005 --with-aix-soname=aix|svr4|both
2006 shared library versioning (aka "SONAME") variant to
2007 provide on AIX, [default=aix].
2008 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2009 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2010 compiler's sysroot if not specified).
2011 --with-zlib=PATH search for zlib in PATH
2012 --without-zlib disable use of zlib
2013 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
2014 installation; when possible, set the PKG_CONFIG_PATH
2015 environment variable instead of using this option
2016 --without-brotli disable BROTLI
2017 --with-zstd=PATH Where to look for libzstd, PATH points to the
2018 libzstd installation; when possible, set the
2019 PKG_CONFIG_PATH environment variable instead of
2021 --without-zstd disable libzstd
2022 --with-ldap-lib=libname Specify name of ldap lib file
2023 --with-lber-lib=libname Specify name of lber lib file
2024 --with-gssapi-includes=DIR
2025 Specify location of GSS-API headers
2026 --with-gssapi-libs=DIR Specify location of GSS-API libs
2027 --with-gssapi=DIR Where to look for GSS-API
2028 --with-default-ssl-backend=NAME
2029 Use NAME as default SSL backend
2030 --without-default-ssl-backend
2031 Use implicit default SSL backend
2032 --with-winssl enable Windows native SSL/TLS
2033 --without-winssl disable Windows native SSL/TLS
2034 --with-schannel enable Windows native SSL/TLS
2035 --without-schannel disable Windows native SSL/TLS
2036 --with-darwinssl enable Apple OS native SSL/TLS
2037 --without-darwinssl disable Apple OS native SSL/TLS
2038 --with-secure-transport enable Apple OS native SSL/TLS
2039 --without-secure-transport
2040 disable Apple OS native SSL/TLS
2041 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
2042 --without-amissl disable Amiga native SSL/TLS (AmiSSL)
2043 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
2044 installation (default: /usr/local/ssl); when
2045 possible, set the PKG_CONFIG_PATH environment
2046 variable instead of using this option
2047 --without-ssl disable OpenSSL
2048 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
2049 --with-random=FILE read randomness from FILE (default=/dev/urandom)
2050 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
2052 --without-gnutls disable GnuTLS detection
2053 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2055 --without-mbedtls disable mbedTLS detection
2056 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2057 installation root (default: system lib default)
2058 --without-wolfssl disable WolfSSL detection
2059 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2061 --without-mesalink disable MesaLink detection
2062 --with-bearssl=PATH where to look for BearSSL, PATH points to the
2064 --without-bearssl disable BearSSL detection
2065 --with-nss=PATH where to look for NSS, PATH points to the
2067 --without-nss disable NSS detection
2068 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2070 --without-ca-bundle Don't use a default CA bundle
2071 --with-ca-path=DIRECTORY
2072 Path to a directory containing CA certificates
2073 stored individually, with their filenames in a hash
2074 format. This option can be used with the OpenSSL,
2075 GnuTLS and mbedTLS backends. Refer to OpenSSL
2076 c_rehash for details. (example: /etc/certificates)
2077 --without-ca-path Don't use a default CA path
2078 --with-ca-fallback Use the built in CA store of the SSL library
2079 --without-ca-fallback Don't use the built in CA store of the SSL library
2080 --without-libpsl disable support for libpsl cookie checking
2081 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2083 --without-libmetalink disable libmetalink detection
2084 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2085 libssh2 installation; when possible, set the
2086 PKG_CONFIG_PATH environment variable instead of
2088 --with-libssh2 enable libssh2
2089 --with-libssh=PATH Where to look for libssh, PATH points to the libssh
2090 installation; when possible, set the PKG_CONFIG_PATH
2091 environment variable instead of using this option
2092 --with-libssh enable libssh
2093 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
2094 wolfSSH installation; when possible, set the
2095 PKG_CONFIG_PATH environment variable instead of
2097 --with-wolfssh enable wolfssh
2098 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2099 LIBRTMP installation; when possible, set the
2100 PKG_CONFIG_PATH environment variable instead of
2102 --without-librtmp disable LIBRTMP
2103 --with-winidn=PATH enable Windows native IDN
2104 --without-winidn disable Windows native IDN
2105 --with-libidn2=PATH Enable libidn2 usage
2106 --without-libidn2 Disable libidn2 usage
2107 --with-nghttp2=PATH Enable nghttp2 usage
2108 --without-nghttp2 Disable nghttp2 usage
2109 --with-ngtcp2=PATH Enable ngtcp2 usage
2110 --without-ngtcp2 Disable ngtcp2 usage
2111 --with-nghttp3=PATH Enable nghttp3 usage
2112 --without-nghttp3 Disable nghttp3 usage
2113 --with-quiche=PATH Enable quiche usage
2114 --without-quiche Disable quiche usage
2115 --with-zsh-functions-dir=PATH
2116 Install zsh completions to PATH
2117 --without-zsh-functions-dir
2118 Do not install zsh completions
2119 --with-fish-functions-dir=PATH
2120 Install fish completions to PATH
2121 --without-fish-functions-dir
2122 Do not install fish completions
2124 Some influential environment variables:
2125 CC C compiler command
2126 CFLAGS C compiler flags
2127 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2128 nonstandard directory <lib dir>
2129 LIBS libraries to pass to the linker, e.g. -l<library>
2130 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2131 you have headers in a nonstandard directory <include dir>
2134 User-defined run-time library search path.
2136 Use these variables to override the choices made by `configure' or to help
2137 it to find libraries and programs with nonstandard names/locations.
2139 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2144 if test "$ac_init_help" = "recursive"; then
2145 # If there are subdirs, report their specific --help.
2146 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2147 test -d "$ac_dir" ||
2148 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2153 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2155 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2156 # A ".." for each directory in $ac_dir_suffix.
2157 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2158 case $ac_top_builddir_sub in
2159 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2160 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2163 ac_abs_top_builddir=$ac_pwd
2164 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2165 # for backward compatibility:
2166 ac_top_builddir=$ac_top_build_prefix
2169 .) # We are building in place.
2171 ac_top_srcdir=$ac_top_builddir_sub
2172 ac_abs_top_srcdir=$ac_pwd ;;
2173 [\\/]* | ?:[\\/]* ) # Absolute name.
2174 ac_srcdir=$srcdir$ac_dir_suffix;
2175 ac_top_srcdir=$srcdir
2176 ac_abs_top_srcdir=$srcdir ;;
2178 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2179 ac_top_srcdir=$ac_top_build_prefix$srcdir
2180 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2182 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2184 cd "$ac_dir" || { ac_status=$?; continue; }
2185 # Check for guested configure.
2186 if test -f "$ac_srcdir/configure.gnu"; then
2188 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2189 elif test -f "$ac_srcdir/configure"; then
2191 $SHELL "$ac_srcdir/configure" --help=recursive
2193 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2195 cd "$ac_pwd" || { ac_status=$?; break; }
2199 test -n "$ac_init_help" && exit $ac_status
2200 if $ac_init_version; then
2203 generated by GNU Autoconf 2.69
2205 Copyright (C) 2012 Free Software Foundation, Inc.
2206 This configure script is free software; the Free Software Foundation
2207 gives unlimited permission to copy, distribute and modify it.
2209 Copyright (c) 1998 - 2020 Daniel Stenberg, <daniel@haxx.se>
2210 This configure script may be copied, distributed and modified under the
2211 terms of the curl license; see COPYING for more details
2216 ## ------------------------ ##
2217 ## Autoconf initialization. ##
2218 ## ------------------------ ##
2220 # ac_fn_c_try_compile LINENO
2221 # --------------------------
2222 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2223 ac_fn_c_try_compile ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 rm -f conftest.$ac_objext
2227 if { { ac_try="$ac_compile"
2229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2230 *) ac_try_echo=$ac_try;;
2232 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2233 $as_echo "$ac_try_echo"; } >&5
2234 (eval "$ac_compile") 2>conftest.err
2236 if test -s conftest.err; then
2237 grep -v '^ *+' conftest.err >conftest.er1
2238 cat conftest.er1 >&5
2239 mv -f conftest.er1 conftest.err
2241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2242 test $ac_status = 0; } && {
2243 test -z "$ac_c_werror_flag" ||
2244 test ! -s conftest.err
2245 } && test -s conftest.$ac_objext; then :
2248 $as_echo "$as_me: failed program was:" >&5
2249 sed 's/^/| /' conftest.$ac_ext >&5
2253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 as_fn_set_status $ac_retval
2256 } # ac_fn_c_try_compile
2258 # ac_fn_c_try_cpp LINENO
2259 # ----------------------
2260 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2263 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2264 if { { ac_try="$ac_cpp conftest.$ac_ext"
2266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2267 *) ac_try_echo=$ac_try;;
2269 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2270 $as_echo "$ac_try_echo"; } >&5
2271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2273 if test -s conftest.err; then
2274 grep -v '^ *+' conftest.err >conftest.er1
2275 cat conftest.er1 >&5
2276 mv -f conftest.er1 conftest.err
2278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2279 test $ac_status = 0; } > conftest.i && {
2280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2281 test ! -s conftest.err
2285 $as_echo "$as_me: failed program was:" >&5
2286 sed 's/^/| /' conftest.$ac_ext >&5
2290 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 as_fn_set_status $ac_retval
2295 # ac_fn_c_try_link LINENO
2296 # -----------------------
2297 # Try to link conftest.$ac_ext, and return whether this succeeded.
2300 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2301 rm -f conftest.$ac_objext conftest$ac_exeext
2302 if { { ac_try="$ac_link"
2304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2305 *) ac_try_echo=$ac_try;;
2307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2308 $as_echo "$ac_try_echo"; } >&5
2309 (eval "$ac_link") 2>conftest.err
2311 if test -s conftest.err; then
2312 grep -v '^ *+' conftest.err >conftest.er1
2313 cat conftest.er1 >&5
2314 mv -f conftest.er1 conftest.err
2316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2317 test $ac_status = 0; } && {
2318 test -z "$ac_c_werror_flag" ||
2319 test ! -s conftest.err
2320 } && test -s conftest$ac_exeext && {
2321 test "$cross_compiling" = yes ||
2322 test -x conftest$ac_exeext
2326 $as_echo "$as_me: failed program was:" >&5
2327 sed 's/^/| /' conftest.$ac_ext >&5
2331 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2332 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2333 # interfere with the next link command; also delete a directory that is
2334 # left behind by Apple's compiler. We do this before executing the actions.
2335 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2336 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2337 as_fn_set_status $ac_retval
2339 } # ac_fn_c_try_link
2341 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2342 # -------------------------------------------------------
2343 # Tests whether HEADER exists and can be compiled using the include files in
2344 # INCLUDES, setting the cache variable VAR accordingly.
2345 ac_fn_c_check_header_compile ()
2347 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2349 $as_echo_n "checking for $2... " >&6; }
2350 if eval \${$3+:} false; then :
2351 $as_echo_n "(cached) " >&6
2353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2354 /* end confdefs.h. */
2358 if ac_fn_c_try_compile "$LINENO"; then :
2363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2367 $as_echo "$ac_res" >&6; }
2368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2370 } # ac_fn_c_check_header_compile
2372 # ac_fn_c_try_run LINENO
2373 # ----------------------
2374 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2375 # that executables *can* be run.
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 if { { ac_try="$ac_link"
2381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2382 *) ac_try_echo=$ac_try;;
2384 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2385 $as_echo "$ac_try_echo"; } >&5
2386 (eval "$ac_link") 2>&5
2388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2389 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2390 { { case "(($ac_try" in
2391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2392 *) ac_try_echo=$ac_try;;
2394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2395 $as_echo "$ac_try_echo"; } >&5
2396 (eval "$ac_try") 2>&5
2398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2399 test $ac_status = 0; }; }; then :
2402 $as_echo "$as_me: program exited with status $ac_status" >&5
2403 $as_echo "$as_me: failed program was:" >&5
2404 sed 's/^/| /' conftest.$ac_ext >&5
2406 ac_retval=$ac_status
2408 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2409 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2410 as_fn_set_status $ac_retval
2414 # ac_fn_c_check_func LINENO FUNC VAR
2415 # ----------------------------------
2416 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2417 ac_fn_c_check_func ()
2419 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2421 $as_echo_n "checking for $2... " >&6; }
2422 if eval \${$3+:} false; then :
2423 $as_echo_n "(cached) " >&6
2425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2426 /* end confdefs.h. */
2428 #define $2 innocuous_$2
2430 # include <limits.h>
2432 # include <assert.h>
2439 #if defined __stub_$2 || defined __stub___$2
2450 if ac_fn_c_try_link "$LINENO"; then :
2455 rm -f core conftest.err conftest.$ac_objext \
2456 conftest$ac_exeext conftest.$ac_ext
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2460 $as_echo "$ac_res" >&6; }
2461 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2463 } # ac_fn_c_check_func
2465 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2466 # -------------------------------------------------------
2467 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2468 # the include files in INCLUDES and setting the cache variable VAR
2470 ac_fn_c_check_header_mongrel ()
2472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2473 if eval \${$3+:} false; then :
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2475 $as_echo_n "checking for $2... " >&6; }
2476 if eval \${$3+:} false; then :
2477 $as_echo_n "(cached) " >&6
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2481 $as_echo "$ac_res" >&6; }
2483 # Is the header compilable?
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2485 $as_echo_n "checking $2 usability... " >&6; }
2486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2487 /* end confdefs.h. */
2491 if ac_fn_c_try_compile "$LINENO"; then :
2492 ac_header_compiler=yes
2494 ac_header_compiler=no
2496 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2498 $as_echo "$ac_header_compiler" >&6; }
2500 # Is the header present?
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2502 $as_echo_n "checking $2 presence... " >&6; }
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2507 if ac_fn_c_try_cpp "$LINENO"; then :
2508 ac_header_preproc=yes
2510 ac_header_preproc=no
2512 rm -f conftest.err conftest.i conftest.$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2514 $as_echo "$ac_header_preproc" >&6; }
2516 # So? What about this header?
2517 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2520 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2522 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2526 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2528 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2530 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2532 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2534 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2535 ( $as_echo "## ----------------------------------------------------------------------- ##
2536 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2537 ## ----------------------------------------------------------------------- ##"
2538 ) | sed "s/^/$as_me: WARNING: /" >&2
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2542 $as_echo_n "checking for $2... " >&6; }
2543 if eval \${$3+:} false; then :
2544 $as_echo_n "(cached) " >&6
2546 eval "$3=\$ac_header_compiler"
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2550 $as_echo "$ac_res" >&6; }
2552 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2554 } # ac_fn_c_check_header_mongrel
2556 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2557 # -------------------------------------------
2558 # Tests whether TYPE exists after having included INCLUDES, setting cache
2559 # variable VAR accordingly.
2560 ac_fn_c_check_type ()
2562 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2564 $as_echo_n "checking for $2... " >&6; }
2565 if eval \${$3+:} false; then :
2566 $as_echo_n "(cached) " >&6
2569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2570 /* end confdefs.h. */
2580 if ac_fn_c_try_compile "$LINENO"; then :
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2592 if ac_fn_c_try_compile "$LINENO"; then :
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2603 $as_echo "$ac_res" >&6; }
2604 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2606 } # ac_fn_c_check_type
2608 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2609 # ---------------------------------------------
2610 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2612 ac_fn_c_check_decl ()
2614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2615 as_decl_name=`echo $2|sed 's/ *(.*//'`
2616 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2618 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2619 if eval \${$3+:} false; then :
2620 $as_echo_n "(cached) " >&6
2622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2623 /* end confdefs.h. */
2627 #ifndef $as_decl_name
2629 (void) $as_decl_use;
2631 (void) $as_decl_name;
2639 if ac_fn_c_try_compile "$LINENO"; then :
2644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648 $as_echo "$ac_res" >&6; }
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2651 } # ac_fn_c_check_decl
2653 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2654 # ----------------------------------------------------
2655 # Tries to find if the field MEMBER exists in type AGGR, after including
2656 # INCLUDES, setting cache variable VAR accordingly.
2657 ac_fn_c_check_member ()
2659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2661 $as_echo_n "checking for $2.$3... " >&6; }
2662 if eval \${$4+:} false; then :
2663 $as_echo_n "(cached) " >&6
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666 /* end confdefs.h. */
2677 if ac_fn_c_try_compile "$LINENO"; then :
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681 /* end confdefs.h. */
2686 if (sizeof ac_aggr.$3)
2692 if ac_fn_c_try_compile "$LINENO"; then :
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2703 $as_echo "$ac_res" >&6; }
2704 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2706 } # ac_fn_c_check_member
2707 cat >config.log <<_ACEOF
2708 This file contains any messages produced by compilers while
2709 running configure, to aid debugging if configure makes a mistake.
2711 It was created by curl $as_me -, which was
2712 generated by GNU Autoconf 2.69. Invocation command line was
2724 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2725 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2726 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2727 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2728 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2730 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2731 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2733 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2734 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2735 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2736 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2737 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2738 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2739 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2747 test -z "$as_dir" && as_dir=.
2748 $as_echo "PATH: $as_dir"
2764 # Keep a trace of the command line.
2765 # Strip out --no-create and --no-recursion so they do not pile up.
2766 # Strip out --silent because we don't want to record it for future runs.
2767 # Also quote any args containing shell meta-characters.
2768 # Make two passes to allow for proper duplicate-argument suppression.
2772 ac_must_keep_next=false
2778 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2779 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2780 | -silent | --silent | --silen | --sile | --sil)
2783 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2786 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2788 as_fn_append ac_configure_args1 " '$ac_arg'"
2789 if test $ac_must_keep_next = true; then
2790 ac_must_keep_next=false # Got value, back to normal.
2793 *=* | --config-cache | -C | -disable-* | --disable-* \
2794 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2795 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2796 | -with-* | --with-* | -without-* | --without-* | --x)
2797 case "$ac_configure_args0 " in
2798 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2801 -* ) ac_must_keep_next=true ;;
2804 as_fn_append ac_configure_args " '$ac_arg'"
2809 { ac_configure_args0=; unset ac_configure_args0;}
2810 { ac_configure_args1=; unset ac_configure_args1;}
2812 # When interrupted or exit'd, cleanup temporary files, and complete
2813 # config.log. We remove comments because anyway the quotes in there
2814 # would cause problems or look ugly.
2815 # WARNING: Use '\'' to represent an apostrophe within the trap.
2816 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2817 trap 'exit_status=$?
2818 # Save into config.log some information that might help in debugging.
2822 $as_echo "## ---------------- ##
2823 ## Cache variables. ##
2824 ## ---------------- ##"
2826 # The following way of writing the cache mishandles newlines in values,
2828 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2829 eval ac_val=\$$ac_var
2833 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2834 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2837 _ | IFS | as_nl) ;; #(
2838 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2839 *) { eval $ac_var=; unset $ac_var;} ;;
2844 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2845 *${as_nl}ac_space=\ *)
2847 "s/'\''/'\''\\\\'\'''\''/g;
2848 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2851 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2858 $as_echo "## ----------------- ##
2859 ## Output variables. ##
2860 ## ----------------- ##"
2862 for ac_var in $ac_subst_vars
2864 eval ac_val=\$$ac_var
2866 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2868 $as_echo "$ac_var='\''$ac_val'\''"
2872 if test -n "$ac_subst_files"; then
2873 $as_echo "## ------------------- ##
2874 ## File substitutions. ##
2875 ## ------------------- ##"
2877 for ac_var in $ac_subst_files
2879 eval ac_val=\$$ac_var
2881 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2883 $as_echo "$ac_var='\''$ac_val'\''"
2888 if test -s confdefs.h; then
2889 $as_echo "## ----------- ##
2896 test "$ac_signal" != 0 &&
2897 $as_echo "$as_me: caught signal $ac_signal"
2898 $as_echo "$as_me: exit $exit_status"
2900 rm -f core *.core core.conftest.* &&
2901 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2904 for ac_signal in 1 2 13 15; do
2905 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2909 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2910 rm -f -r conftest* confdefs.h
2912 $as_echo "/* confdefs.h */" > confdefs.h
2914 # Predefined preprocessor variables.
2916 cat >>confdefs.h <<_ACEOF
2917 #define PACKAGE_NAME "$PACKAGE_NAME"
2920 cat >>confdefs.h <<_ACEOF
2921 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2924 cat >>confdefs.h <<_ACEOF
2925 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2928 cat >>confdefs.h <<_ACEOF
2929 #define PACKAGE_STRING "$PACKAGE_STRING"
2932 cat >>confdefs.h <<_ACEOF
2933 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2936 cat >>confdefs.h <<_ACEOF
2937 #define PACKAGE_URL "$PACKAGE_URL"
2941 # Let the site file select an alternate cache file if it wants to.
2942 # Prefer an explicitly selected file to automatically selected ones.
2945 if test -n "$CONFIG_SITE"; then
2946 # We do not want a PATH search for config.site.
2947 case $CONFIG_SITE in #((
2948 -*) ac_site_file1=./$CONFIG_SITE;;
2949 */*) ac_site_file1=$CONFIG_SITE;;
2950 *) ac_site_file1=./$CONFIG_SITE;;
2952 elif test "x$prefix" != xNONE; then
2953 ac_site_file1=$prefix/share/config.site
2954 ac_site_file2=$prefix/etc/config.site
2956 ac_site_file1=$ac_default_prefix/share/config.site
2957 ac_site_file2=$ac_default_prefix/etc/config.site
2959 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2961 test "x$ac_site_file" = xNONE && continue
2962 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2964 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2965 sed 's/^/| /' "$ac_site_file" >&5
2967 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error $? "failed to load site script $ac_site_file
2970 See \`config.log' for more details" "$LINENO" 5; }
2974 if test -r "$cache_file"; then
2975 # Some versions of bash will fail to source /dev/null (special files
2976 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2977 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2979 $as_echo "$as_me: loading cache $cache_file" >&6;}
2981 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2982 *) . "./$cache_file";;
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2987 $as_echo "$as_me: creating cache $cache_file" >&6;}
2991 # Check that the precious variables saved in the cache have kept the same
2993 ac_cache_corrupted=false
2994 for ac_var in $ac_precious_vars; do
2995 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2996 eval ac_new_set=\$ac_env_${ac_var}_set
2997 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2998 eval ac_new_val=\$ac_env_${ac_var}_value
2999 case $ac_old_set,$ac_new_set in
3001 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3002 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3003 ac_cache_corrupted=: ;;
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3006 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3007 ac_cache_corrupted=: ;;
3010 if test "x$ac_old_val" != "x$ac_new_val"; then
3011 # differences in whitespace do not lead to failure.
3012 ac_old_val_w=`echo x $ac_old_val`
3013 ac_new_val_w=`echo x $ac_new_val`
3014 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3016 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3017 ac_cache_corrupted=:
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3020 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3021 eval $ac_var=\$ac_old_val
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3024 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3026 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3029 # Pass precious variables to config.status.
3030 if test "$ac_new_set" = set; then
3032 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3033 *) ac_arg=$ac_var=$ac_new_val ;;
3035 case " $ac_configure_args " in
3036 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3037 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3041 if $ac_cache_corrupted; then
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3043 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3045 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3046 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3048 ## -------------------- ##
3049 ## Main body of script. ##
3050 ## -------------------- ##
3053 ac_cpp='$CPP $CPPFLAGS'
3054 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3055 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3056 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 # using curl-override.m4
3070 ac_config_headers="$ac_config_headers lib/curl_config.h"
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3075 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3076 # Check whether --enable-maintainer-mode was given.
3077 if test "${enable_maintainer_mode+set}" = set; then :
3078 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3080 USE_MAINTAINER_MODE=no
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3084 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3085 if test $USE_MAINTAINER_MODE = yes; then
3086 MAINTAINER_MODE_TRUE=
3087 MAINTAINER_MODE_FALSE='#'
3089 MAINTAINER_MODE_TRUE='#'
3090 MAINTAINER_MODE_FALSE=
3093 MAINT=$MAINTAINER_MODE_TRUE
3096 # Check whether --enable-silent-rules was given.
3097 if test "${enable_silent_rules+set}" = set; then :
3098 enableval=$enable_silent_rules;
3101 case $enable_silent_rules in # (((
3102 yes) AM_DEFAULT_VERBOSITY=0;;
3103 no) AM_DEFAULT_VERBOSITY=1;;
3104 *) AM_DEFAULT_VERBOSITY=0;;
3106 am_make=${MAKE-make}
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3108 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3109 if ${am_cv_make_support_nested_variables+:} false; then :
3110 $as_echo_n "(cached) " >&6
3112 if $as_echo 'TRUE=$(BAR$(V))
3118 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3119 am_cv_make_support_nested_variables=yes
3121 am_cv_make_support_nested_variables=no
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3125 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3126 if test $am_cv_make_support_nested_variables = yes; then
3128 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3130 AM_V=$AM_DEFAULT_VERBOSITY
3131 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3138 $as_echo_n "checking whether to enable debug build options... " >&6; }
3139 OPT_DEBUG_BUILD="default"
3140 # Check whether --enable-debug was given.
3141 if test "${enable_debug+set}" = set; then :
3142 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3145 case "$OPT_DEBUG_BUILD" in
3155 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3160 $as_echo "$want_debug" >&6; }
3163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3164 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3165 OPT_COMPILER_OPTIMIZE="default"
3166 # Check whether --enable-optimize was given.
3167 if test "${enable_optimize+set}" = set; then :
3168 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3171 case "$OPT_COMPILER_OPTIMIZE" in
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3175 $as_echo "no" >&6; }
3178 if test "$want_debug" = "yes"; then
3179 want_optimize="assume_no"
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3181 $as_echo "(assumed) no" >&6; }
3183 want_optimize="assume_yes"
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3185 $as_echo "(assumed) yes" >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3191 $as_echo "yes" >&6; }
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3197 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3198 OPT_COMPILER_WARNINGS="default"
3199 # Check whether --enable-warnings was given.
3200 if test "${enable_warnings+set}" = set; then :
3201 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3204 case "$OPT_COMPILER_WARNINGS" in
3209 want_warnings="$want_debug"
3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3216 $as_echo "$want_warnings" >&6; }
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3220 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3221 OPT_COMPILER_WERROR="default"
3222 # Check whether --enable-werror was given.
3223 if test "${enable_werror+set}" = set; then :
3224 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3227 case "$OPT_COMPILER_WERROR" in
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3239 $as_echo "$want_werror" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3243 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3244 OPT_CURLDEBUG_BUILD="default"
3245 # Check whether --enable-curldebug was given.
3246 if test "${enable_curldebug+set}" = set; then :
3247 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3250 case "$OPT_CURLDEBUG_BUILD" in
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3254 $as_echo "no" >&6; }
3257 if test "$want_debug" = "yes"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3259 $as_echo "(assumed) yes" >&6; }
3261 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3267 want_curldebug_assumed="yes"
3268 want_curldebug="$want_debug"
3271 want_curldebug="yes"
3273 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3276 $as_echo "yes" >&6; }
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3282 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3283 OPT_SYMBOL_HIDING="default"
3284 # Check whether --enable-symbol-hiding was given.
3285 if test "${enable_symbol_hiding+set}" = set; then :
3286 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3289 # Check whether --enable-hidden-symbols was given.
3290 if test "${enable_hidden_symbols+set}" = set; then :
3291 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3294 case "$OPT_SYMBOL_HIDING" in
3296 want_symbol_hiding="no"
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3298 $as_echo "no" >&6; }
3301 want_symbol_hiding="yes"
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3303 $as_echo "yes" >&6; }
3306 want_symbol_hiding="yes"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3308 $as_echo "yes" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3314 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3316 # Check whether --enable-ares was given.
3317 if test "${enable_ares+set}" = set; then :
3318 enableval=$enable_ares; OPT_ARES=$enableval
3330 if test -n "$enableval" && test "$enableval" != "yes"; then
3331 want_ares_path="$enableval"
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3336 $as_echo "$want_ares" >&6; }
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3340 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3342 # Check whether --enable-rt was given.
3343 if test "${enable_rt+set}" = set; then :
3344 enableval=$enable_rt; OPT_RT=$enableval
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351 $as_echo "yes" >&6; }
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3356 $as_echo "(assumed no)" >&6; }
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3367 $as_echo_n "checking whether to enable ECH support... " >&6; }
3369 # Check whether --enable-ech was given.
3370 if test "${enable_ech+set}" = set; then :
3371 enableval=$enable_ech; OPT_ECH=$enableval
3377 curl_ech_msg="no (--enable-ech)"
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3383 curl_ech_msg="no (--enable-ech)"
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3389 curl_ech_msg="enabled (--disable-ech)"
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3392 $as_echo "yes" >&6; }
3398 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3401 if test -z "$xc_configure_preamble_result"; then
3402 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3406 # Check that 'PATH_SEPARATOR' has already been set.
3409 if test -z "$xc_PATH_SEPARATOR"; then
3410 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3412 if test -z "$PATH_SEPARATOR"; then
3413 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3416 $as_echo_n "checking for path separator... " >&6; }
3417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3418 $as_echo "$PATH_SEPARATOR" >&6; }
3419 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3421 $as_echo_n "checking for initial path separator... " >&6; }
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3423 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3424 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3429 # save the configure arguments
3431 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3434 if test -z "$SED"; then
3435 # Extract the first word of "sed", so it can be a program name with args.
3436 set dummy sed; ac_word=$2
3437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3438 $as_echo_n "checking for $ac_word... " >&6; }
3439 if ${ac_cv_path_SED+:} false; then :
3440 $as_echo_n "(cached) " >&6
3444 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3449 for as_dir in $as_dummy
3452 test -z "$as_dir" && as_dir=.
3453 for ac_exec_ext in '' $ac_executable_extensions; do
3454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3455 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3463 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3468 if test -n "$SED"; then
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3470 $as_echo "$SED" >&6; }
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3473 $as_echo "no" >&6; }
3477 if test -z "$SED" || test "$SED" = "not_found"; then
3478 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3483 if test -z "$GREP"; then
3484 # Extract the first word of "grep", so it can be a program name with args.
3485 set dummy grep; ac_word=$2
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3487 $as_echo_n "checking for $ac_word... " >&6; }
3488 if ${ac_cv_path_GREP+:} false; then :
3489 $as_echo_n "(cached) " >&6
3493 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3498 for as_dir in $as_dummy
3501 test -z "$as_dir" && as_dir=.
3502 for ac_exec_ext in '' $ac_executable_extensions; do
3503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3504 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3516 GREP=$ac_cv_path_GREP
3517 if test -n "$GREP"; then
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3519 $as_echo "$GREP" >&6; }
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3522 $as_echo "no" >&6; }
3526 if test -z "$GREP" || test "$GREP" = "not_found"; then
3527 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3532 if test -z "$EGREP"; then
3533 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3535 $as_echo_n "checking for egrep... " >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3538 $as_echo "$EGREP" >&6; }
3540 # Extract the first word of "egrep", so it can be a program name with args.
3541 set dummy egrep; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_path_EGREP+:} false; then :
3545 $as_echo_n "(cached) " >&6
3549 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3554 for as_dir in $as_dummy
3557 test -z "$as_dir" && as_dir=.
3558 for ac_exec_ext in '' $ac_executable_extensions; do
3559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3560 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3568 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3572 EGREP=$ac_cv_path_EGREP
3573 if test -n "$EGREP"; then
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3575 $as_echo "$EGREP" >&6; }
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3578 $as_echo "no" >&6; }
3584 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3585 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3589 if test -z "$AR"; then
3590 if test -n "$ac_tool_prefix"; then
3591 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3592 set dummy ${ac_tool_prefix}ar; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if ${ac_cv_path_AR+:} false; then :
3596 $as_echo_n "(cached) " >&6
3600 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3604 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3605 for as_dir in $as_dummy
3608 test -z "$as_dir" && as_dir=.
3609 for ac_exec_ext in '' $ac_executable_extensions; do
3610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3611 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 if test -n "$AR"; then
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3625 $as_echo "$AR" >&6; }
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3628 $as_echo "no" >&6; }
3633 if test -z "$ac_cv_path_AR"; then
3635 # Extract the first word of "ar", so it can be a program name with args.
3636 set dummy ar; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if ${ac_cv_path_ac_pt_AR+:} false; then :
3640 $as_echo_n "(cached) " >&6
3644 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3649 for as_dir in $as_dummy
3652 test -z "$as_dir" && as_dir=.
3653 for ac_exec_ext in '' $ac_executable_extensions; do
3654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3655 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3656 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3666 ac_pt_AR=$ac_cv_path_ac_pt_AR
3667 if test -n "$ac_pt_AR"; then
3668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3669 $as_echo "$ac_pt_AR" >&6; }
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3672 $as_echo "no" >&6; }
3675 if test "x$ac_pt_AR" = x; then
3678 case $cross_compiling:$ac_tool_warned in
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3682 ac_tool_warned=yes ;;
3690 if test -z "$AR" || test "$AR" = "not_found"; then
3691 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3698 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3700 xc_prog_cc_prev_IFS=$IFS
3701 xc_prog_cc_prev_LIBS=$LIBS
3702 xc_prog_cc_prev_CFLAGS=$CFLAGS
3703 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3704 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3709 for xc_word in $LIBS; do
3719 if test $xc_bad_var_libs = yes; then
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3721 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3723 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3727 xc_bad_var_ldflags=no
3728 for xc_word in $LDFLAGS; do
3731 xc_bad_var_ldflags=yes
3734 xc_bad_var_ldflags=yes
3737 xc_bad_var_ldflags=yes
3740 xc_bad_var_ldflags=yes
3744 if test $xc_bad_var_ldflags = yes; then
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3746 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3747 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3748 for xc_word in $LDFLAGS; do
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3752 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3756 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3760 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3764 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3771 xc_bad_var_cppflags=no
3772 for xc_word in $CPPFLAGS; do
3775 xc_bad_var_cppflags=yes
3777 -L* | --library-path=*)
3778 xc_bad_var_cppflags=yes
3781 xc_bad_var_cppflags=yes
3785 if test $xc_bad_var_cppflags = yes; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3787 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3788 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3789 for xc_word in $CPPFLAGS; do
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3793 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3795 -L* | --library-path=*)
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3797 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3801 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3808 xc_bad_var_cflags=no
3809 for xc_word in $CFLAGS; do
3812 xc_bad_var_cflags=yes
3815 xc_bad_var_cflags=yes
3818 xc_bad_var_cflags=yes
3821 xc_bad_var_cflags=yes
3823 -L* | --library-path=*)
3824 xc_bad_var_cflags=yes
3827 xc_bad_var_cflags=yes
3831 if test $xc_bad_var_cflags = yes; then
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3833 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3834 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3835 for xc_word in $CFLAGS; do
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3839 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3842 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3843 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3846 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3847 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3851 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3853 -L* | --library-path=*)
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3855 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3859 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3865 if test $xc_bad_var_libs = yes ||
3866 test $xc_bad_var_cflags = yes ||
3867 test $xc_bad_var_ldflags = yes ||
3868 test $xc_bad_var_cppflags = yes; then
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3870 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3874 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3875 if test -f "$ac_dir/install-sh"; then
3877 ac_install_sh="$ac_aux_dir/install-sh -c"
3879 elif test -f "$ac_dir/install.sh"; then
3881 ac_install_sh="$ac_aux_dir/install.sh -c"
3883 elif test -f "$ac_dir/shtool"; then
3885 ac_install_sh="$ac_aux_dir/shtool install -c"
3889 if test -z "$ac_aux_dir"; then
3890 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3893 # These three variables are undocumented and unsupported,
3894 # and are intended to be withdrawn in a future Autoconf release.
3895 # They can cause serious problems if a builder's source tree is in a directory
3896 # whose full name contains unusual characters.
3897 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3898 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3899 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3902 # Find a good install program. We prefer a C program (faster),
3903 # so one script is as good as another. But avoid the broken or
3904 # incompatible versions:
3905 # SysV /etc/install, /usr/sbin/install
3906 # SunOS /usr/etc/install
3907 # IRIX /sbin/install
3909 # AmigaOS /C/install, which installs bootblocks on floppy discs
3910 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3911 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3912 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3913 # OS/2's system install, which has a completely different semantic
3914 # ./install, which can be erroneously created by make from ./install.sh.
3915 # Reject install programs that cannot install multiple files.
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3917 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3918 if test -z "$INSTALL"; then
3919 if ${ac_cv_path_install+:} false; then :
3920 $as_echo_n "(cached) " >&6
3922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3926 test -z "$as_dir" && as_dir=.
3927 # Account for people who put trailing slashes in PATH elements.
3928 case $as_dir/ in #((
3929 ./ | .// | /[cC]/* | \
3930 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3931 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3934 # OSF1 and SCO ODT 3.0 have their own names for install.
3935 # Don't use installbsd from OSF since it installs stuff as root
3937 for ac_prog in ginstall scoinst install; do
3938 for ac_exec_ext in '' $ac_executable_extensions; do
3939 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3940 if test $ac_prog = install &&
3941 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3942 # AIX install. It has an incompatible calling convention.
3944 elif test $ac_prog = install &&
3945 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3946 # program-specific install script used by HP pwplus--don't use.
3949 rm -rf conftest.one conftest.two conftest.dir
3950 echo one > conftest.one
3951 echo two > conftest.two
3953 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3954 test -s conftest.one && test -s conftest.two &&
3955 test -s conftest.dir/conftest.one &&
3956 test -s conftest.dir/conftest.two
3958 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3971 rm -rf conftest.one conftest.two conftest.dir
3974 if test "${ac_cv_path_install+set}" = set; then
3975 INSTALL=$ac_cv_path_install
3977 # As a last resort, use the slow shell script. Don't cache a
3978 # value for INSTALL within a source directory, because that will
3979 # break other packages using the cache if that directory is
3980 # removed, or if the value is a relative name.
3981 INSTALL=$ac_install_sh
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3985 $as_echo "$INSTALL" >&6; }
3987 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3988 # It thinks the first close brace ends the variable substitution.
3989 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3991 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3993 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3995 # Expand $ac_aux_dir to an absolute path.
3996 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3999 ac_cpp='$CPP $CPPFLAGS'
4000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4003 if test -n "$ac_tool_prefix"; then
4004 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4005 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if ${ac_cv_prog_CC+:} false; then :
4009 $as_echo_n "(cached) " >&6
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4032 if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034 $as_echo "$CC" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037 $as_echo "no" >&6; }
4042 if test -z "$ac_cv_prog_CC"; then
4044 # Extract the first word of "gcc", so it can be a program name with args.
4045 set dummy gcc; ac_word=$2
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4047 $as_echo_n "checking for $ac_word... " >&6; }
4048 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4049 $as_echo_n "(cached) " >&6
4051 if test -n "$ac_ct_CC"; then
4052 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4058 test -z "$as_dir" && as_dir=.
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4061 ac_cv_prog_ac_ct_CC="gcc"
4062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4072 if test -n "$ac_ct_CC"; then
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4074 $as_echo "$ac_ct_CC" >&6; }
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4077 $as_echo "no" >&6; }
4080 if test "x$ac_ct_CC" = x; then
4083 case $cross_compiling:$ac_tool_warned in
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4086 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4087 ac_tool_warned=yes ;;
4095 if test -z "$CC"; then
4096 if test -n "$ac_tool_prefix"; then
4097 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4098 set dummy ${ac_tool_prefix}cc; ac_word=$2
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4100 $as_echo_n "checking for $ac_word... " >&6; }
4101 if ${ac_cv_prog_CC+:} false; then :
4102 $as_echo_n "(cached) " >&6
4104 if test -n "$CC"; then
4105 ac_cv_prog_CC="$CC" # Let the user override the test.
4107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4111 test -z "$as_dir" && as_dir=.
4112 for ac_exec_ext in '' $ac_executable_extensions; do
4113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4114 ac_cv_prog_CC="${ac_tool_prefix}cc"
4115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4125 if test -n "$CC"; then
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4127 $as_echo "$CC" >&6; }
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4130 $as_echo "no" >&6; }
4136 if test -z "$CC"; then
4137 # Extract the first word of "cc", so it can be a program name with args.
4138 set dummy cc; ac_word=$2
4139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4140 $as_echo_n "checking for $ac_word... " >&6; }
4141 if ${ac_cv_prog_CC+:} false; then :
4142 $as_echo_n "(cached) " >&6
4144 if test -n "$CC"; then
4145 ac_cv_prog_CC="$CC" # Let the user override the test.
4148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4152 test -z "$as_dir" && as_dir=.
4153 for ac_exec_ext in '' $ac_executable_extensions; do
4154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4155 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4156 ac_prog_rejected=yes
4160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4167 if test $ac_prog_rejected = yes; then
4168 # We found a bogon in the path, so make sure we never use it.
4169 set dummy $ac_cv_prog_CC
4171 if test $# != 0; then
4172 # We chose a different compiler from the bogus one.
4173 # However, it has the same basename, so the bogon will be chosen
4174 # first if we set CC to just the basename; use the full file name.
4176 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4182 if test -n "$CC"; then
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4184 $as_echo "$CC" >&6; }
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4187 $as_echo "no" >&6; }
4192 if test -z "$CC"; then
4193 if test -n "$ac_tool_prefix"; then
4194 for ac_prog in cl.exe
4196 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4197 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4199 $as_echo_n "checking for $ac_word... " >&6; }
4200 if ${ac_cv_prog_CC+:} false; then :
4201 $as_echo_n "(cached) " >&6
4203 if test -n "$CC"; then
4204 ac_cv_prog_CC="$CC" # Let the user override the test.
4206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 test -z "$as_dir" && as_dir=.
4211 for ac_exec_ext in '' $ac_executable_extensions; do
4212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4213 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 if test -n "$CC"; then
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4226 $as_echo "$CC" >&6; }
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4229 $as_echo "no" >&6; }
4233 test -n "$CC" && break
4236 if test -z "$CC"; then
4238 for ac_prog in cl.exe
4240 # Extract the first word of "$ac_prog", so it can be a program name with args.
4241 set dummy $ac_prog; ac_word=$2
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4243 $as_echo_n "checking for $ac_word... " >&6; }
4244 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4245 $as_echo_n "(cached) " >&6
4247 if test -n "$ac_ct_CC"; then
4248 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4254 test -z "$as_dir" && as_dir=.
4255 for ac_exec_ext in '' $ac_executable_extensions; do
4256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4257 ac_cv_prog_ac_ct_CC="$ac_prog"
4258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4268 if test -n "$ac_ct_CC"; then
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4270 $as_echo "$ac_ct_CC" >&6; }
4272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4273 $as_echo "no" >&6; }
4277 test -n "$ac_ct_CC" && break
4280 if test "x$ac_ct_CC" = x; then
4283 case $cross_compiling:$ac_tool_warned in
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4287 ac_tool_warned=yes ;;
4296 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4297 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4298 as_fn_error $? "no acceptable C compiler found in \$PATH
4299 See \`config.log' for more details" "$LINENO" 5; }
4301 # Provide some information about the compiler.
4302 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4305 for ac_option in --version -v -V -qversion; do
4306 { { ac_try="$ac_compiler $ac_option >&5"
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4311 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4312 $as_echo "$ac_try_echo"; } >&5
4313 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4315 if test -s conftest.err; then
4317 ... rest of stderr output deleted ...
4318 10q' conftest.err >conftest.er1
4319 cat conftest.er1 >&5
4321 rm -f conftest.er1 conftest.err
4322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4323 test $ac_status = 0; }
4326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4327 /* end confdefs.h. */
4336 ac_clean_files_save=$ac_clean_files
4337 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4338 # Try to create an executable without -o first, disregard a.out.
4339 # It will help us diagnose broken compilers, and finding out an intuition
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4342 $as_echo_n "checking whether the C compiler works... " >&6; }
4343 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4345 # The possible output files:
4346 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4349 for ac_file in $ac_files
4352 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4353 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4358 if { { ac_try="$ac_link_default"
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_link_default") 2>&5
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }; then :
4369 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4370 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4371 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4372 # so that the user can short-circuit this test for compilers unknown to
4374 for ac_file in $ac_files ''
4376 test -f "$ac_file" || continue
4378 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4381 # We found the default executable, but exeext='' is most
4385 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4387 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4389 # We set ac_cv_exeext here because the later test for it is not
4390 # safe: cross compilers may not add the suffix if given an `-o'
4391 # argument, so we may need to know it at that point already.
4392 # Even if this section looks crufty: it has the advantage of
4399 test "$ac_cv_exeext" = no && ac_cv_exeext=
4404 if test -z "$ac_file"; then :
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4407 $as_echo "$as_me: failed program was:" >&5
4408 sed 's/^/| /' conftest.$ac_ext >&5
4410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4412 as_fn_error 77 "C compiler cannot create executables
4413 See \`config.log' for more details" "$LINENO" 5; }
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4416 $as_echo "yes" >&6; }
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4419 $as_echo_n "checking for C compiler default output file name... " >&6; }
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4421 $as_echo "$ac_file" >&6; }
4422 ac_exeext=$ac_cv_exeext
4424 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4425 ac_clean_files=$ac_clean_files_save
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4427 $as_echo_n "checking for suffix of executables... " >&6; }
4428 if { { ac_try="$ac_link"
4430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4431 *) ac_try_echo=$ac_try;;
4433 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4434 $as_echo "$ac_try_echo"; } >&5
4435 (eval "$ac_link") 2>&5
4437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4438 test $ac_status = 0; }; then :
4439 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4440 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4441 # work properly (i.e., refer to `conftest.exe'), while it won't with
4443 for ac_file in conftest.exe conftest conftest.*; do
4444 test -f "$ac_file" || continue
4446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4447 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4454 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4455 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4456 See \`config.log' for more details" "$LINENO" 5; }
4458 rm -f conftest conftest$ac_cv_exeext
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4460 $as_echo "$ac_cv_exeext" >&6; }
4462 rm -f conftest.$ac_ext
4463 EXEEXT=$ac_cv_exeext
4465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4466 /* end confdefs.h. */
4470 FILE *f = fopen ("conftest.out", "w");
4471 return ferror (f) || fclose (f) != 0;
4477 ac_clean_files="$ac_clean_files conftest.out"
4478 # Check that the compiler produces executables we can run. If not, either
4479 # the compiler is broken, or we cross compile.
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4481 $as_echo_n "checking whether we are cross compiling... " >&6; }
4482 if test "$cross_compiling" != yes; then
4483 { { ac_try="$ac_link"
4485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4486 *) ac_try_echo=$ac_try;;
4488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4489 $as_echo "$ac_try_echo"; } >&5
4490 (eval "$ac_link") 2>&5
4492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4493 test $ac_status = 0; }
4494 if { ac_try='./conftest$ac_cv_exeext'
4495 { { case "(($ac_try" in
4496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4497 *) ac_try_echo=$ac_try;;
4499 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4500 $as_echo "$ac_try_echo"; } >&5
4501 (eval "$ac_try") 2>&5
4503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4504 test $ac_status = 0; }; }; then
4507 if test "$cross_compiling" = maybe; then
4510 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4511 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4512 as_fn_error $? "cannot run C compiled programs.
4513 If you meant to cross compile, use \`--host'.
4514 See \`config.log' for more details" "$LINENO" 5; }
4518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4519 $as_echo "$cross_compiling" >&6; }
4521 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4522 ac_clean_files=$ac_clean_files_save
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4524 $as_echo_n "checking for suffix of object files... " >&6; }
4525 if ${ac_cv_objext+:} false; then :
4526 $as_echo_n "(cached) " >&6
4528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4529 /* end confdefs.h. */
4538 rm -f conftest.o conftest.obj
4539 if { { ac_try="$ac_compile"
4541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4542 *) ac_try_echo=$ac_try;;
4544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4545 $as_echo "$ac_try_echo"; } >&5
4546 (eval "$ac_compile") 2>&5
4548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4549 test $ac_status = 0; }; then :
4550 for ac_file in conftest.o conftest.obj conftest.*; do
4551 test -f "$ac_file" || continue;
4553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4554 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4559 $as_echo "$as_me: failed program was:" >&5
4560 sed 's/^/| /' conftest.$ac_ext >&5
4562 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4563 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4564 as_fn_error $? "cannot compute suffix of object files: cannot compile
4565 See \`config.log' for more details" "$LINENO" 5; }
4567 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4570 $as_echo "$ac_cv_objext" >&6; }
4571 OBJEXT=$ac_cv_objext
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4574 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4575 if ${ac_cv_c_compiler_gnu+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4579 /* end confdefs.h. */
4591 if ac_fn_c_try_compile "$LINENO"; then :
4596 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4597 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4601 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4602 if test $ac_compiler_gnu = yes; then
4607 ac_test_CFLAGS=${CFLAGS+set}
4608 ac_save_CFLAGS=$CFLAGS
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4610 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4611 if ${ac_cv_prog_cc_g+:} false; then :
4612 $as_echo_n "(cached) " >&6
4614 ac_save_c_werror_flag=$ac_c_werror_flag
4615 ac_c_werror_flag=yes
4618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4619 /* end confdefs.h. */
4628 if ac_fn_c_try_compile "$LINENO"; then :
4632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4633 /* end confdefs.h. */
4642 if ac_fn_c_try_compile "$LINENO"; then :
4645 ac_c_werror_flag=$ac_save_c_werror_flag
4647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4648 /* end confdefs.h. */
4657 if ac_fn_c_try_compile "$LINENO"; then :
4660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4665 ac_c_werror_flag=$ac_save_c_werror_flag
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4668 $as_echo "$ac_cv_prog_cc_g" >&6; }
4669 if test "$ac_test_CFLAGS" = set; then
4670 CFLAGS=$ac_save_CFLAGS
4671 elif test $ac_cv_prog_cc_g = yes; then
4672 if test "$GCC" = yes; then
4678 if test "$GCC" = yes; then
4684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4685 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4686 if ${ac_cv_prog_cc_c89+:} false; then :
4687 $as_echo_n "(cached) " >&6
4689 ac_cv_prog_cc_c89=no
4691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4692 /* end confdefs.h. */
4696 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4697 struct buf { int x; };
4698 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4699 static char *e (p, i)
4705 static char *f (char * (*g) (char **, int), char **p, ...)
4710 s = g (p, va_arg (v,int));
4715 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4716 function prototypes and stuff, but not '\xHH' hex character constants.
4717 These don't provoke an error unfortunately, instead are silently treated
4718 as 'x'. The following induces an error, until -std is added to get
4719 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4720 array size at least. It's necessary to write '\x00'==0 to get something
4721 that's true only with -std. */
4722 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4724 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4725 inside strings and character constants. */
4727 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4729 int test (int i, double x);
4730 struct s1 {int (*f) (int a);};
4731 struct s2 {int (*f) (double a);};
4732 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4737 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4742 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4743 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4745 CC="$ac_save_CC $ac_arg"
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_prog_cc_c89=$ac_arg
4749 rm -f core conftest.err conftest.$ac_objext
4750 test "x$ac_cv_prog_cc_c89" != "xno" && break
4752 rm -f conftest.$ac_ext
4757 case "x$ac_cv_prog_cc_c89" in
4759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4760 $as_echo "none needed" >&6; } ;;
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4763 $as_echo "unsupported" >&6; } ;;
4765 CC="$CC $ac_cv_prog_cc_c89"
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4767 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4769 if test "x$ac_cv_prog_cc_c89" != xno; then :
4774 ac_cpp='$CPP $CPPFLAGS'
4775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4780 ac_cpp='$CPP $CPPFLAGS'
4781 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4782 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4783 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4785 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4786 if ${am_cv_prog_cc_c_o+:} false; then :
4787 $as_echo_n "(cached) " >&6
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4799 # Make sure it works both with $CC and with simple cc.
4800 # Following AC_PROG_CC_C_O, we do the test twice because some
4801 # compilers refuse to overwrite an existing .o file with -o,
4802 # though they will create one.
4803 am_cv_prog_cc_c_o=yes
4805 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4806 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4809 (exit $ac_status); } \
4810 && test -f conftest2.$ac_objext; then
4813 am_cv_prog_cc_c_o=no
4817 rm -f core conftest*
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4821 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4822 if test "$am_cv_prog_cc_c_o" != yes; then
4823 # Losing compiler, so override with the script.
4824 # FIXME: It is wrong to rewrite CC.
4825 # But if we don't then we get into trouble of one sort or another.
4826 # A longer-term fix would be to have automake use am__CC in this case,
4827 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4828 CC="$am_aux_dir/compile $CC"
4831 ac_cpp='$CPP $CPPFLAGS'
4832 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4833 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4834 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4839 ac_cpp='$CPP $CPPFLAGS'
4840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4844 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4845 # On Suns, sometimes $CPP names a directory.
4846 if test -n "$CPP" && test -d "$CPP"; then
4849 if test -z "$CPP"; then
4850 if ${ac_cv_prog_CPP+:} false; then :
4851 $as_echo_n "(cached) " >&6
4853 # Double quotes because CPP needs to be expanded
4854 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4857 for ac_c_preproc_warn_flag in '' yes
4859 # Use a header file that comes with gcc, so configuring glibc
4860 # with a fresh cross-compiler works.
4861 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4862 # <limits.h> exists even on freestanding compilers.
4863 # On the NeXT, cc -E runs the code through the compiler's parser,
4864 # not just through cpp. "Syntax error" is here to catch this case.
4865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4866 /* end confdefs.h. */
4868 # include <limits.h>
4870 # include <assert.h>
4874 if ac_fn_c_try_cpp "$LINENO"; then :
4877 # Broken: fails on valid input.
4880 rm -f conftest.err conftest.i conftest.$ac_ext
4882 # OK, works on sane cases. Now check whether nonexistent headers
4883 # can be detected and how.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #include <ac_nonexistent.h>
4888 if ac_fn_c_try_cpp "$LINENO"; then :
4889 # Broken: success on invalid input.
4892 # Passes both tests.
4896 rm -f conftest.err conftest.i conftest.$ac_ext
4899 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4900 rm -f conftest.i conftest.err conftest.$ac_ext
4901 if $ac_preproc_ok; then :
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4914 $as_echo "$CPP" >&6; }
4916 for ac_c_preproc_warn_flag in '' yes
4918 # Use a header file that comes with gcc, so configuring glibc
4919 # with a fresh cross-compiler works.
4920 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4921 # <limits.h> exists even on freestanding compilers.
4922 # On the NeXT, cc -E runs the code through the compiler's parser,
4923 # not just through cpp. "Syntax error" is here to catch this case.
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4927 # include <limits.h>
4929 # include <assert.h>
4933 if ac_fn_c_try_cpp "$LINENO"; then :
4936 # Broken: fails on valid input.
4939 rm -f conftest.err conftest.i conftest.$ac_ext
4941 # OK, works on sane cases. Now check whether nonexistent headers
4942 # can be detected and how.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #include <ac_nonexistent.h>
4947 if ac_fn_c_try_cpp "$LINENO"; then :
4948 # Broken: success on invalid input.
4951 # Passes both tests.
4955 rm -f conftest.err conftest.i conftest.$ac_ext
4958 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4959 rm -f conftest.i conftest.err conftest.$ac_ext
4960 if $ac_preproc_ok; then :
4963 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4964 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4965 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4966 See \`config.log' for more details" "$LINENO" 5; }
4970 ac_cpp='$CPP $CPPFLAGS'
4971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4976 IFS=$xc_prog_cc_prev_IFS
4977 LIBS=$xc_prog_cc_prev_LIBS
4978 CFLAGS=$xc_prog_cc_prev_CFLAGS
4979 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4980 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4988 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4989 if ${ac_cv_path_SED+:} false; then :
4990 $as_echo_n "(cached) " >&6
4992 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4993 for ac_i in 1 2 3 4 5 6 7; do
4994 ac_script="$ac_script$as_nl$ac_script"
4996 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4997 { ac_script=; unset ac_script;}
4998 if test -z "$SED"; then
4999 ac_path_SED_found=false
5000 # Loop through the user's path and test for each of PROGNAME-LIST
5001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 test -z "$as_dir" && as_dir=.
5006 for ac_prog in sed gsed; do
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5009 as_fn_executable_p "$ac_path_SED" || continue
5010 # Check for GNU ac_path_SED and select it if it is found.
5011 # Check for GNU $ac_path_SED
5012 case `"$ac_path_SED" --version 2>&1` in
5014 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5017 $as_echo_n 0123456789 >"conftest.in"
5020 cat "conftest.in" "conftest.in" >"conftest.tmp"
5021 mv "conftest.tmp" "conftest.in"
5022 cp "conftest.in" "conftest.nl"
5023 $as_echo '' >> "conftest.nl"
5024 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5026 as_fn_arith $ac_count + 1 && ac_count=$as_val
5027 if test $ac_count -gt ${ac_path_SED_max-0}; then
5028 # Best one so far, save it but keep looking for a better one
5029 ac_cv_path_SED="$ac_path_SED"
5030 ac_path_SED_max=$ac_count
5032 # 10*(2^10) chars as input seems more than enough
5033 test $ac_count -gt 10 && break
5035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5038 $ac_path_SED_found && break 3
5043 if test -z "$ac_cv_path_SED"; then
5044 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5052 $as_echo "$ac_cv_path_SED" >&6; }
5053 SED="$ac_cv_path_SED"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5060 $as_echo_n "checking for code coverage support... " >&6; }
5062 curl_coverage_msg="disabled"
5064 # Check whether --enable-code-coverage was given.
5065 if test "${enable_code_coverage+set}" = set; then :
5066 enableval=$enable_code_coverage; coverage="$enableval"
5070 if test "$GCC" != "yes" ; then :
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5074 $as_echo "$coverage" >&6; }
5076 if test "x$coverage" = "xyes"; then
5077 curl_coverage_msg="enabled"
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if ${ac_cv_prog_GCOV+:} false; then :
5085 $as_echo_n "(cached) " >&6
5087 if test -n "$GCOV"; then
5088 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5097 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5107 GCOV=$ac_cv_prog_GCOV
5108 if test -n "$GCOV"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5110 $as_echo "$GCOV" >&6; }
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5118 if test -z "$ac_cv_prog_GCOV"; then
5120 # Extract the first word of "gcov", so it can be a program name with args.
5121 set dummy gcov; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5125 $as_echo_n "(cached) " >&6
5127 if test -n "$ac_ct_GCOV"; then
5128 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5134 test -z "$as_dir" && as_dir=.
5135 for ac_exec_ext in '' $ac_executable_extensions; do
5136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5137 ac_cv_prog_ac_ct_GCOV="gcov"
5138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5147 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5148 if test -n "$ac_ct_GCOV"; then
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5150 $as_echo "$ac_ct_GCOV" >&6; }
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5153 $as_echo "no" >&6; }
5156 if test "x$ac_ct_GCOV" = x; then
5159 case $cross_compiling:$ac_tool_warned in
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5162 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5163 ac_tool_warned=yes ;;
5168 GCOV="$ac_cv_prog_GCOV"
5171 if test -z "$GCOV"; then
5172 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5174 # Extract the first word of "lcov", so it can be a program name with args.
5175 set dummy lcov; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_LCOV+:} false; then :
5179 $as_echo_n "(cached) " >&6
5181 if test -n "$LCOV"; then
5182 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_LCOV="lcov"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 LCOV=$ac_cv_prog_LCOV
5202 if test -n "$LCOV"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5204 $as_echo "$LCOV" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 if test -z "$LCOV"; then
5212 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5215 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5216 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5221 am__api_version='1.16'
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5224 $as_echo_n "checking whether build environment is sane... " >&6; }
5225 # Reject unsafe characters in $srcdir or the absolute working directory
5226 # name. Accept space and tab only in the latter.
5230 *[\\\"\#\$\&\'\`$am_lf]*)
5231 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5234 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5235 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5238 # Do 'set' in a subshell so we don't clobber the current shell's
5239 # arguments. Must try -L first in case configure is actually a
5240 # symlink; some systems play weird games with the mod time of symlinks
5241 # (eg FreeBSD returns the mod time of the symlink's containing
5245 for am_try in 1 2; do
5246 echo "timestamp, slept: $am_has_slept" > conftest.file
5247 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5248 if test "$*" = "X"; then
5250 set X `ls -t "$srcdir/configure" conftest.file`
5252 if test "$*" != "X $srcdir/configure conftest.file" \
5253 && test "$*" != "X conftest.file $srcdir/configure"; then
5255 # If neither matched, then we have a broken ls. This can happen
5256 # if, for instance, CONFIG_SHELL is bash and it inherits a
5257 # broken ls alias from the environment. This has actually
5258 # happened. Such a system could not be considered "sane".
5259 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5260 alias in your environment" "$LINENO" 5
5262 if test "$2" = conftest.file || test $am_try -eq 2; then
5269 test "$2" = conftest.file
5275 as_fn_error $? "newly created file is older than distributed files!
5276 Check your system clock" "$LINENO" 5
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5279 $as_echo "yes" >&6; }
5280 # If we didn't sleep, we still need to ensure time stamps of config.status and
5281 # generated files are strictly newer.
5283 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5290 test "$program_prefix" != NONE &&
5291 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5292 # Use a double $ so make ignores it.
5293 test "$program_suffix" != NONE &&
5294 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5295 # Double any \ or $.
5296 # By default was `s,x,x', remove it if useless.
5297 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5298 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5300 if test x"${MISSING+set}" != xset; then
5303 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5305 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5308 # Use eval to expand $SHELL
5309 if eval "$MISSING --is-lightweight"; then
5310 am_missing_run="$MISSING "
5313 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5314 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5317 if test x"${install_sh+set}" != xset; then
5320 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5322 install_sh="\${SHELL} $am_aux_dir/install-sh"
5326 # Installed binaries are usually stripped using 'strip' when the user
5327 # run "make install-strip". However 'strip' might not be the right
5328 # tool to use in cross-compilation environments, therefore Automake
5329 # will honor the 'STRIP' environment variable to overrule this program.
5330 if test "$cross_compiling" != no; then
5331 if test -n "$ac_tool_prefix"; then
5332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5333 set dummy ${ac_tool_prefix}strip; ac_word=$2
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5335 $as_echo_n "checking for $ac_word... " >&6; }
5336 if ${ac_cv_prog_STRIP+:} false; then :
5337 $as_echo_n "(cached) " >&6
5339 if test -n "$STRIP"; then
5340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 STRIP=$ac_cv_prog_STRIP
5360 if test -n "$STRIP"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5362 $as_echo "$STRIP" >&6; }
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5365 $as_echo "no" >&6; }
5370 if test -z "$ac_cv_prog_STRIP"; then
5372 # Extract the first word of "strip", so it can be a program name with args.
5373 set dummy strip; ac_word=$2
5374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5375 $as_echo_n "checking for $ac_word... " >&6; }
5376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5377 $as_echo_n "(cached) " >&6
5379 if test -n "$ac_ct_STRIP"; then
5380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 test -z "$as_dir" && as_dir=.
5387 for ac_exec_ext in '' $ac_executable_extensions; do
5388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5389 ac_cv_prog_ac_ct_STRIP="strip"
5390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5400 if test -n "$ac_ct_STRIP"; then
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5402 $as_echo "$ac_ct_STRIP" >&6; }
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5405 $as_echo "no" >&6; }
5408 if test "x$ac_ct_STRIP" = x; then
5411 case $cross_compiling:$ac_tool_warned in
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5415 ac_tool_warned=yes ;;
5420 STRIP="$ac_cv_prog_STRIP"
5424 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5427 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5428 if test -z "$MKDIR_P"; then
5429 if ${ac_cv_path_mkdir+:} false; then :
5430 $as_echo_n "(cached) " >&6
5432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5433 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5436 test -z "$as_dir" && as_dir=.
5437 for ac_prog in mkdir gmkdir; do
5438 for ac_exec_ext in '' $ac_executable_extensions; do
5439 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5440 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5441 'mkdir (GNU coreutils) '* | \
5442 'mkdir (coreutils) '* | \
5443 'mkdir (fileutils) '4.1*)
5444 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5454 test -d ./--version && rmdir ./--version
5455 if test "${ac_cv_path_mkdir+set}" = set; then
5456 MKDIR_P="$ac_cv_path_mkdir -p"
5458 # As a last resort, use the slow shell script. Don't cache a
5459 # value for MKDIR_P within a source directory, because that will
5460 # break other packages using the cache if that directory is
5461 # removed, or if the value is a relative name.
5462 MKDIR_P="$ac_install_sh -d"
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5466 $as_echo "$MKDIR_P" >&6; }
5468 for ac_prog in gawk mawk nawk awk
5470 # Extract the first word of "$ac_prog", so it can be a program name with args.
5471 set dummy $ac_prog; ac_word=$2
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5473 $as_echo_n "checking for $ac_word... " >&6; }
5474 if ${ac_cv_prog_AWK+:} false; then :
5475 $as_echo_n "(cached) " >&6
5477 if test -n "$AWK"; then
5478 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5484 test -z "$as_dir" && as_dir=.
5485 for ac_exec_ext in '' $ac_executable_extensions; do
5486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5487 ac_cv_prog_AWK="$ac_prog"
5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 if test -n "$AWK"; then
5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5500 $as_echo "$AWK" >&6; }
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5503 $as_echo "no" >&6; }
5507 test -n "$AWK" && break
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5511 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5513 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5514 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5515 $as_echo_n "(cached) " >&6
5517 cat >conftest.make <<\_ACEOF
5520 @echo '@@@%%%=$(MAKE)=@@@%%%'
5522 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5523 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5525 eval ac_cv_prog_make_${ac_make}_set=yes;;
5527 eval ac_cv_prog_make_${ac_make}_set=no;;
5531 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5533 $as_echo "yes" >&6; }
5536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5537 $as_echo "no" >&6; }
5538 SET_MAKE="MAKE=${MAKE-make}"
5541 rm -rf .tst 2>/dev/null
5542 mkdir .tst 2>/dev/null
5543 if test -d .tst; then
5548 rmdir .tst 2>/dev/null
5550 DEPDIR="${am__leading_dot}deps"
5552 ac_config_commands="$ac_config_commands depfiles"
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5555 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5556 cat > confinc.mk << 'END'
5558 @echo this is the am__doit target >confinc.out
5563 # BSD make does it like this.
5564 echo '.include "confinc.mk" # ignored' > confmf.BSD
5565 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5566 echo 'include confinc.mk # ignored' > confmf.GNU
5568 for s in GNU BSD; do
5569 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5570 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }
5574 case $?:`cat confinc.out 2>/dev/null` in #(
5575 '0:this is the am__doit target') :
5578 am__include='.include' am__quote='"' ;; #(
5580 am__include='include' am__quote='' ;;
5585 if test "$am__include" != "#"; then
5586 _am_result="yes ($s style)"
5590 rm -f confinc.* confmf.*
5591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5592 $as_echo "${_am_result}" >&6; }
5594 # Check whether --enable-dependency-tracking was given.
5595 if test "${enable_dependency_tracking+set}" = set; then :
5596 enableval=$enable_dependency_tracking;
5599 if test "x$enable_dependency_tracking" != xno; then
5600 am_depcomp="$ac_aux_dir/depcomp"
5604 if test "x$enable_dependency_tracking" != xno; then
5613 ## --------------------------------------- ##
5614 ## Start of automake initialization code ##
5615 ## --------------------------------------- ##
5617 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5618 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5619 # is not polluted with repeated "-I."
5620 am__isrc=' -I$(srcdir)'
5621 # test to see if srcdir already configured
5622 if test -f $srcdir/config.status; then
5623 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5627 # test whether we have cygpath
5628 if test -z "$CYGPATH_W"; then
5629 if (cygpath --version) >/dev/null 2>/dev/null; then
5630 CYGPATH_W='cygpath -w'
5637 # Define the identity of the package.
5642 cat >>confdefs.h <<_ACEOF
5643 #define PACKAGE "$PACKAGE"
5647 cat >>confdefs.h <<_ACEOF
5648 #define VERSION "$VERSION"
5651 # Some tools Automake needs.
5653 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5656 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5659 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5662 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5665 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5667 # For better backward compatibility. To be removed once Automake 1.9.x
5668 # dies out for good. For more background, see:
5669 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5670 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5671 mkdir_p='$(MKDIR_P)'
5673 # We need awk for the "check" target (and possibly the TAP driver). The
5674 # system "awk" is bad on some platforms.
5675 # Always define AMTAR for backward compatibility. Yes, it's still used
5676 # in the wild :-( We should find a proper way to deprecate it ...
5680 # We'll loop over all known methods to create a tar archive until one works.
5681 _am_tools='gnutar pax cpio none'
5683 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5689 depcc="$CC" am_compiler_list=
5691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5692 $as_echo_n "checking dependency style of $depcc... " >&6; }
5693 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5694 $as_echo_n "(cached) " >&6
5696 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5697 # We make a subdir and do the tests there. Otherwise we can end up
5698 # making bogus files that we don't know about and never remove. For
5699 # instance it was reported that on HP-UX the gcc test will end up
5700 # making a dummy file named 'D' -- because '-MD' means "put the output
5704 # Copy depcomp to subdir because otherwise we won't find it if we're
5705 # using a relative directory.
5706 cp "$am_depcomp" conftest.dir
5708 # We will build objects and dependencies in a subdirectory because
5709 # it helps to detect inapplicable dependency modes. For instance
5710 # both Tru64's cc and ICC support -MD to output dependencies as a
5711 # side effect of compilation, but ICC will put the dependencies in
5712 # the current directory while Tru64 will put them in the object
5716 am_cv_CC_dependencies_compiler_type=none
5717 if test "$am_compiler_list" = ""; then
5718 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5721 case " $depcc " in #(
5722 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5725 for depmode in $am_compiler_list; do
5726 # Setup a source with many dependencies, because some compilers
5727 # like to wrap large dependency lists on column 80 (with \), and
5728 # we should not choose a depcomp mode which is confused by this.
5730 # We need to recreate these files for each test, as the compiler may
5731 # overwrite some of them when testing with obscure command lines.
5732 # This happens at least with the AIX C compiler.
5734 for i in 1 2 3 4 5 6; do
5735 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5736 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5737 # Solaris 10 /bin/sh.
5738 echo '/* dummy */' > sub/conftst$i.h
5740 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5742 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5743 # mode. It turns out that the SunPro C++ compiler does not properly
5744 # handle '-M -o', and we need to detect this. Also, some Intel
5745 # versions had trouble with output in subdirs.
5746 am__obj=sub/conftest.${OBJEXT-o}
5747 am__minus_obj="-o $am__obj"
5750 # This depmode causes a compiler race in universal mode.
5751 test "$am__universal" = false || continue
5754 # After this tag, mechanisms are not by side-effect, so they'll
5755 # only be used when explicitly requested.
5756 if test "x$enable_dependency_tracking" = xyes; then
5762 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5763 # This compiler won't grok '-c -o', but also, the minuso test has
5764 # not run yet. These depmodes are late enough in the game, and
5765 # so weak that their functioning should not be impacted.
5766 am__obj=conftest.${OBJEXT-o}
5771 if depmode=$depmode \
5772 source=sub/conftest.c object=$am__obj \
5773 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5774 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5775 >/dev/null 2>conftest.err &&
5776 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5777 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5778 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5779 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5780 # icc doesn't choke on unknown options, it will just issue warnings
5781 # or remarks (even with -Werror). So we grep stderr for any message
5782 # that says an option was ignored or not supported.
5783 # When given -MP, icc 7.0 and 7.1 complain thusly:
5784 # icc: Command line warning: ignoring option '-M'; no argument required
5785 # The diagnosis changed in icc 8.0:
5786 # icc: Command line remark: option '-MP' not supported
5787 if (grep 'ignoring option' conftest.err ||
5788 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5789 am_cv_CC_dependencies_compiler_type=$depmode
5798 am_cv_CC_dependencies_compiler_type=none
5802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5803 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5804 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5807 test "x$enable_dependency_tracking" != xno \
5808 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5810 am__fastdepCC_FALSE='#'
5812 am__fastdepCC_TRUE='#'
5813 am__fastdepCC_FALSE=
5818 # POSIX will say in a future version that running "rm -f" with no argument
5819 # is OK; and we want to be able to make that assumption in our Makefile
5820 # recipes. So use an aggressive probe to check that the usage we want is
5821 # actually supported "in the wild" to an acceptable degree.
5822 # See automake bug#10828.
5823 # To make any issue more visible, cause the running configure to be aborted
5824 # by default if the 'rm' program in use doesn't match our expectations; the
5825 # user can still override this though.
5826 if rm -f && rm -fr && rm -rf; then : OK; else
5830 Your 'rm' program seems unable to run without file operands specified
5831 on the command line, even when the '-f' option is present. This is contrary
5832 to the behaviour of most rm programs out there, and not conforming with
5833 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5835 Please tell bug-automake@gnu.org about your system, including the value
5836 of your $PATH and any error possibly output before this message. This
5837 can help us improve future automake versions.
5840 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5841 echo 'Configuration will proceed anyway, since you have set the' >&2
5842 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5846 Aborting the configuration process, to ensure you take notice of the issue.
5848 You can download and install GNU coreutils to get an 'rm' implementation
5849 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5851 If you want to complete the configuration process using your problematic
5852 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5853 to "yes", and re-run configure.
5856 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5860 ## ------------------------------------- ##
5861 ## End of automake initialization code ##
5862 ## ------------------------------------- ##
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5866 $as_echo_n "checking curl version... " >&6; }
5867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5868 $as_echo "$CURLVERSION" >&6; }
5872 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5875 PKGADD_PKG="HAXXcurl"
5876 PKGADD_NAME="curl - a client that groks URLs"
5877 PKGADD_VENDOR="curl.haxx.se"
5882 curl_ssl_msg="no (--with-{ssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl} )"
5883 curl_ssh_msg="no (--with-{libssh,libssh2})"
5884 curl_zlib_msg="no (--with-zlib)"
5885 curl_brotli_msg="no (--with-brotli)"
5886 curl_zstd_msg="no (--with-zstd)"
5887 curl_gss_msg="no (--with-gssapi)"
5888 curl_tls_srp_msg="no (--enable-tls-srp)"
5889 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5890 curl_ipv6_msg="no (--enable-ipv6)"
5891 curl_unix_sockets_msg="no (--enable-unix-sockets)"
5892 curl_idn_msg="no (--with-{libidn2,winidn})"
5893 curl_manual_msg="no (--enable-manual)"
5894 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5895 curl_verbose_msg="enabled (--disable-verbose)"
5896 curl_sspi_msg="no (--enable-sspi)"
5897 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5898 curl_ldaps_msg="no (--enable-ldaps)"
5899 curl_rtsp_msg="no (--enable-rtsp)"
5900 curl_rtmp_msg="no (--with-librtmp)"
5901 curl_mtlnk_msg="no (--with-libmetalink)"
5902 curl_psl_msg="no (--with-libpsl)"
5906 INITIAL_LDFLAGS=$LDFLAGS
5910 # Make sure we can run config.sub.
5911 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5912 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5915 $as_echo_n "checking build system type... " >&6; }
5916 if ${ac_cv_build+:} false; then :
5917 $as_echo_n "(cached) " >&6
5919 ac_build_alias=$build_alias
5920 test "x$ac_build_alias" = x &&
5921 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5922 test "x$ac_build_alias" = x &&
5923 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5924 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5929 $as_echo "$ac_cv_build" >&6; }
5930 case $ac_cv_build in
5932 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5935 ac_save_IFS=$IFS; IFS='-'
5941 # Remember, the first character of IFS is used to create $*,
5942 # except with old shells:
5945 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5949 $as_echo_n "checking host system type... " >&6; }
5950 if ${ac_cv_host+:} false; then :
5951 $as_echo_n "(cached) " >&6
5953 if test "x$host_alias" = x; then
5954 ac_cv_host=$ac_cv_build
5956 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5957 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5962 $as_echo "$ac_cv_host" >&6; }
5965 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5968 ac_save_IFS=$IFS; IFS='-'
5974 # Remember, the first character of IFS is used to create $*,
5975 # except with old shells:
5978 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5982 cat >>confdefs.h <<_ACEOF
5983 #define OS "${host}"
5987 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5994 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5995 if ${ac_cv_path_GREP+:} false; then :
5996 $as_echo_n "(cached) " >&6
5998 if test -z "$GREP"; then
5999 ac_path_GREP_found=false
6000 # Loop through the user's path and test for each of PROGNAME-LIST
6001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6005 test -z "$as_dir" && as_dir=.
6006 for ac_prog in grep ggrep; do
6007 for ac_exec_ext in '' $ac_executable_extensions; do
6008 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6009 as_fn_executable_p "$ac_path_GREP" || continue
6010 # Check for GNU ac_path_GREP and select it if it is found.
6011 # Check for GNU $ac_path_GREP
6012 case `"$ac_path_GREP" --version 2>&1` in
6014 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6017 $as_echo_n 0123456789 >"conftest.in"
6020 cat "conftest.in" "conftest.in" >"conftest.tmp"
6021 mv "conftest.tmp" "conftest.in"
6022 cp "conftest.in" "conftest.nl"
6023 $as_echo 'GREP' >> "conftest.nl"
6024 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6026 as_fn_arith $ac_count + 1 && ac_count=$as_val
6027 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6028 # Best one so far, save it but keep looking for a better one
6029 ac_cv_path_GREP="$ac_path_GREP"
6030 ac_path_GREP_max=$ac_count
6032 # 10*(2^10) chars as input seems more than enough
6033 test $ac_count -gt 10 && break
6035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6038 $ac_path_GREP_found && break 3
6043 if test -z "$ac_cv_path_GREP"; then
6044 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6047 ac_cv_path_GREP=$GREP
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6052 $as_echo "$ac_cv_path_GREP" >&6; }
6053 GREP="$ac_cv_path_GREP"
6056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6057 $as_echo_n "checking for egrep... " >&6; }
6058 if ${ac_cv_path_EGREP+:} false; then :
6059 $as_echo_n "(cached) " >&6
6061 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6062 then ac_cv_path_EGREP="$GREP -E"
6064 if test -z "$EGREP"; then
6065 ac_path_EGREP_found=false
6066 # Loop through the user's path and test for each of PROGNAME-LIST
6067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6068 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6071 test -z "$as_dir" && as_dir=.
6072 for ac_prog in egrep; do
6073 for ac_exec_ext in '' $ac_executable_extensions; do
6074 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6075 as_fn_executable_p "$ac_path_EGREP" || continue
6076 # Check for GNU ac_path_EGREP and select it if it is found.
6077 # Check for GNU $ac_path_EGREP
6078 case `"$ac_path_EGREP" --version 2>&1` in
6080 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6083 $as_echo_n 0123456789 >"conftest.in"
6086 cat "conftest.in" "conftest.in" >"conftest.tmp"
6087 mv "conftest.tmp" "conftest.in"
6088 cp "conftest.in" "conftest.nl"
6089 $as_echo 'EGREP' >> "conftest.nl"
6090 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6091 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6092 as_fn_arith $ac_count + 1 && ac_count=$as_val
6093 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6094 # Best one so far, save it but keep looking for a better one
6095 ac_cv_path_EGREP="$ac_path_EGREP"
6096 ac_path_EGREP_max=$ac_count
6098 # 10*(2^10) chars as input seems more than enough
6099 test $ac_count -gt 10 && break
6101 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6104 $ac_path_EGREP_found && break 3
6109 if test -z "$ac_cv_path_EGREP"; then
6110 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6113 ac_cv_path_EGREP=$EGREP
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6119 $as_echo "$ac_cv_path_EGREP" >&6; }
6120 EGREP="$ac_cv_path_EGREP"
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6126 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6136 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6139 $as_echo "yes" >&6; }
6140 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6146 $as_echo "no" >&6; }
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6156 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6158 /* end confdefs.h. */
6168 force compilation error
6176 if ac_fn_c_try_compile "$LINENO"; then :
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6179 $as_echo "yes" >&6; }
6180 tmp_thread_safe_initially_defined="yes"
6184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6185 $as_echo "no" >&6; }
6186 tmp_thread_safe_initially_defined="no"
6189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6191 if test "$tmp_thread_safe_initially_defined" = "no"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6193 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6196 aix[123].* | aix4.[012].*)
6197 tmp_need_thread_safe="no"
6200 tmp_need_thread_safe="yes"
6203 tmp_need_thread_safe="no"
6207 if test "$tmp_need_thread_safe" = "yes"; then
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6209 $as_echo "yes" >&6; }
6211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6212 $as_echo "no" >&6; }
6216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6217 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6218 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6219 test "$tmp_need_thread_safe" = "yes"; then
6222 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6224 cat >>confdefs.h <<_EOF
6225 #ifndef _THREAD_SAFE
6226 # define _THREAD_SAFE
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6234 $as_echo "no" >&6; }
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6241 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6243 /* end confdefs.h. */
6253 force compilation error
6261 if ac_fn_c_try_compile "$LINENO"; then :
6263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6264 $as_echo "yes" >&6; }
6265 tmp_reentrant_initially_defined="yes"
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6270 $as_echo "no" >&6; }
6271 tmp_reentrant_initially_defined="no"
6274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6276 if test "$tmp_reentrant_initially_defined" = "no"; then
6277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6278 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6282 tmp_need_reentrant="yes"
6285 tmp_need_reentrant="no"
6289 if test "$tmp_need_reentrant" = "no"; then
6291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6292 /* end confdefs.h. */
6308 if ac_fn_c_try_compile "$LINENO"; then :
6317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6318 if test "$tmp_errno" = "yes"; then
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6331 force compilation error
6339 if ac_fn_c_try_compile "$LINENO"; then :
6341 tmp_errno="errno_macro_defined"
6345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6346 /* end confdefs.h. */
6358 force compilation error
6366 if ac_fn_c_try_compile "$LINENO"; then :
6368 tmp_errno="errno_macro_needs_reentrant"
6369 tmp_need_reentrant="yes"
6372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6379 if test "$tmp_need_reentrant" = "no"; then
6381 if test "$tmp_need_reentrant" = "no"; then
6383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6384 /* end confdefs.h. */
6387 #define gmtime_r innocuous_gmtime_r
6389 # include <limits.h>
6391 # include <assert.h>
6398 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6410 if ac_fn_c_try_link "$LINENO"; then :
6419 rm -f core conftest.err conftest.$ac_objext \
6420 conftest$ac_exeext conftest.$ac_ext
6421 if test "$tmp_gmtime_r" = "yes"; then
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423 /* end confdefs.h. */
6425 #include <sys/types.h>
6429 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6430 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6432 tmp_gmtime_r="proto_declared"
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6440 #include <sys/types.h>
6444 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6445 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6447 tmp_gmtime_r="proto_needs_reentrant"
6448 tmp_need_reentrant="yes"
6460 if test "$tmp_need_reentrant" = "no"; then
6462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6463 /* end confdefs.h. */
6466 #define localtime_r innocuous_localtime_r
6468 # include <limits.h>
6470 # include <assert.h>
6476 char localtime_r ();
6477 #if defined __stub_localtime_r || defined __stub___localtime_r
6483 return localtime_r ();
6489 if ac_fn_c_try_link "$LINENO"; then :
6491 tmp_localtime_r="yes"
6495 tmp_localtime_r="no"
6498 rm -f core conftest.err conftest.$ac_objext \
6499 conftest$ac_exeext conftest.$ac_ext
6500 if test "$tmp_localtime_r" = "yes"; then
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6504 #include <sys/types.h>
6508 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6509 $EGREP "localtime_r" >/dev/null 2>&1; then :
6511 tmp_localtime_r="proto_declared"
6515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6516 /* end confdefs.h. */
6519 #include <sys/types.h>
6523 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6524 $EGREP "localtime_r" >/dev/null 2>&1; then :
6526 tmp_localtime_r="proto_needs_reentrant"
6527 tmp_need_reentrant="yes"
6539 if test "$tmp_need_reentrant" = "no"; then
6541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6542 /* end confdefs.h. */
6545 #define strerror_r innocuous_strerror_r
6547 # include <limits.h>
6549 # include <assert.h>
6556 #if defined __stub_strerror_r || defined __stub___strerror_r
6562 return strerror_r ();
6568 if ac_fn_c_try_link "$LINENO"; then :
6570 tmp_strerror_r="yes"
6577 rm -f core conftest.err conftest.$ac_objext \
6578 conftest$ac_exeext conftest.$ac_ext
6579 if test "$tmp_strerror_r" = "yes"; then
6580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6581 /* end confdefs.h. */
6583 #include <sys/types.h>
6587 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6588 $EGREP "strerror_r" >/dev/null 2>&1; then :
6590 tmp_strerror_r="proto_declared"
6594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6595 /* end confdefs.h. */
6598 #include <sys/types.h>
6602 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6603 $EGREP "strerror_r" >/dev/null 2>&1; then :
6605 tmp_strerror_r="proto_needs_reentrant"
6606 tmp_need_reentrant="yes"
6618 if test "$tmp_need_reentrant" = "no"; then
6620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6621 /* end confdefs.h. */
6624 #define strtok_r innocuous_strtok_r
6626 # include <limits.h>
6628 # include <assert.h>
6635 #if defined __stub_strtok_r || defined __stub___strtok_r
6647 if ac_fn_c_try_link "$LINENO"; then :
6656 rm -f core conftest.err conftest.$ac_objext \
6657 conftest$ac_exeext conftest.$ac_ext
6658 if test "$tmp_strtok_r" = "yes"; then
6659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6660 /* end confdefs.h. */
6662 #include <sys/types.h>
6666 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6667 $EGREP "strtok_r" >/dev/null 2>&1; then :
6669 tmp_strtok_r="proto_declared"
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674 /* end confdefs.h. */
6677 #include <sys/types.h>
6681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6682 $EGREP "strtok_r" >/dev/null 2>&1; then :
6684 tmp_strtok_r="proto_needs_reentrant"
6685 tmp_need_reentrant="yes"
6697 if test "$tmp_need_reentrant" = "no"; then
6699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6700 /* end confdefs.h. */
6703 #define inet_ntoa_r innocuous_inet_ntoa_r
6705 # include <limits.h>
6707 # include <assert.h>
6713 char inet_ntoa_r ();
6714 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6720 return inet_ntoa_r ();
6726 if ac_fn_c_try_link "$LINENO"; then :
6728 tmp_inet_ntoa_r="yes"
6732 tmp_inet_ntoa_r="no"
6735 rm -f core conftest.err conftest.$ac_objext \
6736 conftest$ac_exeext conftest.$ac_ext
6737 if test "$tmp_inet_ntoa_r" = "yes"; then
6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6739 /* end confdefs.h. */
6741 #include <sys/types.h>
6742 #include <sys/socket.h>
6743 #include <netinet/in.h>
6744 #include <arpa/inet.h>
6747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6748 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6750 tmp_inet_ntoa_r="proto_declared"
6754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6755 /* end confdefs.h. */
6758 #include <sys/types.h>
6759 #include <sys/socket.h>
6760 #include <netinet/in.h>
6761 #include <arpa/inet.h>
6764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6765 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6767 tmp_inet_ntoa_r="proto_needs_reentrant"
6768 tmp_need_reentrant="yes"
6780 if test "$tmp_need_reentrant" = "no"; then
6782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6783 /* end confdefs.h. */
6786 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6788 # include <limits.h>
6790 # include <assert.h>
6792 #undef gethostbyaddr_r
6796 char gethostbyaddr_r ();
6797 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6803 return gethostbyaddr_r ();
6809 if ac_fn_c_try_link "$LINENO"; then :
6811 tmp_gethostbyaddr_r="yes"
6815 tmp_gethostbyaddr_r="no"
6818 rm -f core conftest.err conftest.$ac_objext \
6819 conftest$ac_exeext conftest.$ac_ext
6820 if test "$tmp_gethostbyaddr_r" = "yes"; then
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6824 #include <sys/types.h>
6828 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6829 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6831 tmp_gethostbyaddr_r="proto_declared"
6835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6836 /* end confdefs.h. */
6839 #include <sys/types.h>
6843 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6844 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6846 tmp_gethostbyaddr_r="proto_needs_reentrant"
6847 tmp_need_reentrant="yes"
6859 if test "$tmp_need_reentrant" = "no"; then
6861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6862 /* end confdefs.h. */
6865 #define gethostbyname_r innocuous_gethostbyname_r
6867 # include <limits.h>
6869 # include <assert.h>
6871 #undef gethostbyname_r
6875 char gethostbyname_r ();
6876 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6882 return gethostbyname_r ();
6888 if ac_fn_c_try_link "$LINENO"; then :
6890 tmp_gethostbyname_r="yes"
6894 tmp_gethostbyname_r="no"
6897 rm -f core conftest.err conftest.$ac_objext \
6898 conftest$ac_exeext conftest.$ac_ext
6899 if test "$tmp_gethostbyname_r" = "yes"; then
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6903 #include <sys/types.h>
6907 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6908 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6910 tmp_gethostbyname_r="proto_declared"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6918 #include <sys/types.h>
6922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6923 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6925 tmp_gethostbyname_r="proto_needs_reentrant"
6926 tmp_need_reentrant="yes"
6938 if test "$tmp_need_reentrant" = "no"; then
6940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6941 /* end confdefs.h. */
6944 #define getprotobyname_r innocuous_getprotobyname_r
6946 # include <limits.h>
6948 # include <assert.h>
6950 #undef getprotobyname_r
6954 char getprotobyname_r ();
6955 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6961 return getprotobyname_r ();
6967 if ac_fn_c_try_link "$LINENO"; then :
6969 tmp_getprotobyname_r="yes"
6973 tmp_getprotobyname_r="no"
6976 rm -f core conftest.err conftest.$ac_objext \
6977 conftest$ac_exeext conftest.$ac_ext
6978 if test "$tmp_getprotobyname_r" = "yes"; then
6979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6980 /* end confdefs.h. */
6982 #include <sys/types.h>
6986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6987 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6989 tmp_getprotobyname_r="proto_declared"
6993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6994 /* end confdefs.h. */
6997 #include <sys/types.h>
7001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7002 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7004 tmp_getprotobyname_r="proto_needs_reentrant"
7005 tmp_need_reentrant="yes"
7017 if test "$tmp_need_reentrant" = "no"; then
7019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7020 /* end confdefs.h. */
7023 #define getservbyport_r innocuous_getservbyport_r
7025 # include <limits.h>
7027 # include <assert.h>
7029 #undef getservbyport_r
7033 char getservbyport_r ();
7034 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7040 return getservbyport_r ();
7046 if ac_fn_c_try_link "$LINENO"; then :
7048 tmp_getservbyport_r="yes"
7052 tmp_getservbyport_r="no"
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7057 if test "$tmp_getservbyport_r" = "yes"; then
7058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7059 /* end confdefs.h. */
7061 #include <sys/types.h>
7065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7066 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7068 tmp_getservbyport_r="proto_declared"
7072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7073 /* end confdefs.h. */
7076 #include <sys/types.h>
7080 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7081 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7083 tmp_getservbyport_r="proto_needs_reentrant"
7084 tmp_need_reentrant="yes"
7098 if test "$tmp_need_reentrant" = "yes"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7100 $as_echo "yes" >&6; }
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103 $as_echo "no" >&6; }
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7108 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7109 if test "$tmp_reentrant_initially_defined" = "yes" ||
7110 test "$tmp_need_reentrant" = "yes"; then
7113 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7115 cat >>confdefs.h <<_EOF
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7122 $as_echo "yes" >&6; }
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7125 $as_echo "no" >&6; }
7130 # Check whether --enable-largefile was given.
7131 if test "${enable_largefile+set}" = set; then :
7132 enableval=$enable_largefile;
7135 if test "$enable_largefile" != no; then
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7138 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7139 if ${ac_cv_sys_largefile_CC+:} false; then :
7140 $as_echo_n "(cached) " >&6
7142 ac_cv_sys_largefile_CC=no
7143 if test "$GCC" != yes; then
7146 # IRIX 6.2 and later do not support large files by default,
7147 # so use the C compiler's -n32 option if that helps.
7148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7149 /* end confdefs.h. */
7150 #include <sys/types.h>
7151 /* Check that off_t can represent 2**63 - 1 correctly.
7152 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7153 since some C++ compilers masquerading as C compilers
7154 incorrectly reject 9223372036854775807. */
7155 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7156 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7157 && LARGE_OFF_T % 2147483647 == 1)
7166 if ac_fn_c_try_compile "$LINENO"; then :
7169 rm -f core conftest.err conftest.$ac_objext
7171 if ac_fn_c_try_compile "$LINENO"; then :
7172 ac_cv_sys_largefile_CC=' -n32'; break
7174 rm -f core conftest.err conftest.$ac_objext
7178 rm -f conftest.$ac_ext
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7182 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7183 if test "$ac_cv_sys_largefile_CC" != no; then
7184 CC=$CC$ac_cv_sys_largefile_CC
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7188 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7189 if ${ac_cv_sys_file_offset_bits+:} false; then :
7190 $as_echo_n "(cached) " >&6
7193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7194 /* end confdefs.h. */
7195 #include <sys/types.h>
7196 /* Check that off_t can represent 2**63 - 1 correctly.
7197 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7198 since some C++ compilers masquerading as C compilers
7199 incorrectly reject 9223372036854775807. */
7200 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7201 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7202 && LARGE_OFF_T % 2147483647 == 1)
7211 if ac_fn_c_try_compile "$LINENO"; then :
7212 ac_cv_sys_file_offset_bits=no; break
7214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7216 /* end confdefs.h. */
7217 #define _FILE_OFFSET_BITS 64
7218 #include <sys/types.h>
7219 /* Check that off_t can represent 2**63 - 1 correctly.
7220 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7221 since some C++ compilers masquerading as C compilers
7222 incorrectly reject 9223372036854775807. */
7223 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7224 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7225 && LARGE_OFF_T % 2147483647 == 1)
7234 if ac_fn_c_try_compile "$LINENO"; then :
7235 ac_cv_sys_file_offset_bits=64; break
7237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7238 ac_cv_sys_file_offset_bits=unknown
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7243 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7244 case $ac_cv_sys_file_offset_bits in #(
7247 cat >>confdefs.h <<_ACEOF
7248 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7253 if test $ac_cv_sys_file_offset_bits = unknown; then
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7255 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7256 if ${ac_cv_sys_large_files+:} false; then :
7257 $as_echo_n "(cached) " >&6
7260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7261 /* end confdefs.h. */
7262 #include <sys/types.h>
7263 /* Check that off_t can represent 2**63 - 1 correctly.
7264 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7265 since some C++ compilers masquerading as C compilers
7266 incorrectly reject 9223372036854775807. */
7267 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7268 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7269 && LARGE_OFF_T % 2147483647 == 1)
7278 if ac_fn_c_try_compile "$LINENO"; then :
7279 ac_cv_sys_large_files=no; break
7281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7283 /* end confdefs.h. */
7284 #define _LARGE_FILES 1
7285 #include <sys/types.h>
7286 /* Check that off_t can represent 2**63 - 1 correctly.
7287 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7288 since some C++ compilers masquerading as C compilers
7289 incorrectly reject 9223372036854775807. */
7290 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7291 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7292 && LARGE_OFF_T % 2147483647 == 1)
7301 if ac_fn_c_try_compile "$LINENO"; then :
7302 ac_cv_sys_large_files=1; break
7304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7305 ac_cv_sys_large_files=unknown
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7310 $as_echo "$ac_cv_sys_large_files" >&6; }
7311 case $ac_cv_sys_large_files in #(
7314 cat >>confdefs.h <<_ACEOF
7315 #define _LARGE_FILES $ac_cv_sys_large_files
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7329 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7334 macro_version='2.4.6'
7335 macro_revision='2.4.6'
7349 ltmain=$ac_aux_dir/ltmain.sh
7351 # Backslashify metacharacters that are still active within
7352 # double-quoted strings.
7353 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7355 # Same as above, but do not quote variable references.
7356 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7358 # Sed substitution to delay expansion of an escaped shell variable in a
7359 # double_quote_subst'ed string.
7360 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7362 # Sed substitution to delay expansion of an escaped single quote.
7363 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7365 # Sed substitution to avoid accidental globbing in evaled expressions
7366 no_glob_subst='s/\*/\\\*/g'
7368 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7369 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7370 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7373 $as_echo_n "checking how to print strings... " >&6; }
7374 # Test print first, because it will be a builtin if present.
7375 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7376 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7378 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7381 # Use this function as a fallback that always works.
7382 func_fallback_echo ()
7384 eval 'cat <<_LTECHO_EOF
7388 ECHO='func_fallback_echo'
7391 # func_echo_all arg...
7392 # Invoke $ECHO with all args, space-separated.
7399 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7400 $as_echo "printf" >&6; } ;;
7401 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7402 $as_echo "print -r" >&6; } ;;
7403 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7404 $as_echo "cat" >&6; } ;;
7420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7421 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7422 if ${ac_cv_path_SED+:} false; then :
7423 $as_echo_n "(cached) " >&6
7425 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7426 for ac_i in 1 2 3 4 5 6 7; do
7427 ac_script="$ac_script$as_nl$ac_script"
7429 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7430 { ac_script=; unset ac_script;}
7431 if test -z "$SED"; then
7432 ac_path_SED_found=false
7433 # Loop through the user's path and test for each of PROGNAME-LIST
7434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7438 test -z "$as_dir" && as_dir=.
7439 for ac_prog in sed gsed; do
7440 for ac_exec_ext in '' $ac_executable_extensions; do
7441 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7442 as_fn_executable_p "$ac_path_SED" || continue
7443 # Check for GNU ac_path_SED and select it if it is found.
7444 # Check for GNU $ac_path_SED
7445 case `"$ac_path_SED" --version 2>&1` in
7447 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7450 $as_echo_n 0123456789 >"conftest.in"
7453 cat "conftest.in" "conftest.in" >"conftest.tmp"
7454 mv "conftest.tmp" "conftest.in"
7455 cp "conftest.in" "conftest.nl"
7456 $as_echo '' >> "conftest.nl"
7457 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7459 as_fn_arith $ac_count + 1 && ac_count=$as_val
7460 if test $ac_count -gt ${ac_path_SED_max-0}; then
7461 # Best one so far, save it but keep looking for a better one
7462 ac_cv_path_SED="$ac_path_SED"
7463 ac_path_SED_max=$ac_count
7465 # 10*(2^10) chars as input seems more than enough
7466 test $ac_count -gt 10 && break
7468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7471 $ac_path_SED_found && break 3
7476 if test -z "$ac_cv_path_SED"; then
7477 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7485 $as_echo "$ac_cv_path_SED" >&6; }
7486 SED="$ac_cv_path_SED"
7489 test -z "$SED" && SED=sed
7490 Xsed="$SED -e 1s/^X//"
7502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7503 $as_echo_n "checking for fgrep... " >&6; }
7504 if ${ac_cv_path_FGREP+:} false; then :
7505 $as_echo_n "(cached) " >&6
7507 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7508 then ac_cv_path_FGREP="$GREP -F"
7510 if test -z "$FGREP"; then
7511 ac_path_FGREP_found=false
7512 # Loop through the user's path and test for each of PROGNAME-LIST
7513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7514 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7517 test -z "$as_dir" && as_dir=.
7518 for ac_prog in fgrep; do
7519 for ac_exec_ext in '' $ac_executable_extensions; do
7520 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7521 as_fn_executable_p "$ac_path_FGREP" || continue
7522 # Check for GNU ac_path_FGREP and select it if it is found.
7523 # Check for GNU $ac_path_FGREP
7524 case `"$ac_path_FGREP" --version 2>&1` in
7526 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7529 $as_echo_n 0123456789 >"conftest.in"
7532 cat "conftest.in" "conftest.in" >"conftest.tmp"
7533 mv "conftest.tmp" "conftest.in"
7534 cp "conftest.in" "conftest.nl"
7535 $as_echo 'FGREP' >> "conftest.nl"
7536 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7537 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7538 as_fn_arith $ac_count + 1 && ac_count=$as_val
7539 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7540 # Best one so far, save it but keep looking for a better one
7541 ac_cv_path_FGREP="$ac_path_FGREP"
7542 ac_path_FGREP_max=$ac_count
7544 # 10*(2^10) chars as input seems more than enough
7545 test $ac_count -gt 10 && break
7547 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7550 $ac_path_FGREP_found && break 3
7555 if test -z "$ac_cv_path_FGREP"; then
7556 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7559 ac_cv_path_FGREP=$FGREP
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7565 $as_echo "$ac_cv_path_FGREP" >&6; }
7566 FGREP="$ac_cv_path_FGREP"
7569 test -z "$GREP" && GREP=grep
7589 # Check whether --with-gnu-ld was given.
7590 if test "${with_gnu_ld+set}" = set; then :
7591 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7597 if test yes = "$GCC"; then
7598 # Check if gcc -print-prog-name=ld gives a path.
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7600 $as_echo_n "checking for ld used by $CC... " >&6; }
7603 # gcc leaves a trailing carriage return, which upsets mingw
7604 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7606 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7609 # Accept absolute paths.
7611 re_direlt='/[^/][^/]*/\.\./'
7612 # Canonicalize the pathname of ld
7613 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7614 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7615 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7617 test -z "$LD" && LD=$ac_prog
7620 # If it fails, then pretend we aren't using GCC.
7624 # If it is relative, then search for the first ld in PATH.
7628 elif test yes = "$with_gnu_ld"; then
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7630 $as_echo_n "checking for GNU ld... " >&6; }
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7633 $as_echo_n "checking for non-GNU ld... " >&6; }
7635 if ${lt_cv_path_LD+:} false; then :
7636 $as_echo_n "(cached) " >&6
7638 if test -z "$LD"; then
7639 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7640 for ac_dir in $PATH; do
7642 test -z "$ac_dir" && ac_dir=.
7643 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7644 lt_cv_path_LD=$ac_dir/$ac_prog
7645 # Check to see if the program is GNU ld. I'd rather use --version,
7646 # but apparently some variants of GNU ld only accept -v.
7647 # Break only if it was the GNU/non-GNU ld that we prefer.
7648 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7649 *GNU* | *'with BFD'*)
7650 test no != "$with_gnu_ld" && break
7653 test yes != "$with_gnu_ld" && break
7660 lt_cv_path_LD=$LD # Let the user override the test with a path.
7665 if test -n "$LD"; then
7666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7667 $as_echo "$LD" >&6; }
7669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7670 $as_echo "no" >&6; }
7672 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7674 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7675 if ${lt_cv_prog_gnu_ld+:} false; then :
7676 $as_echo_n "(cached) " >&6
7678 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7679 case `$LD -v 2>&1 </dev/null` in
7680 *GNU* | *'with BFD'*)
7681 lt_cv_prog_gnu_ld=yes
7684 lt_cv_prog_gnu_ld=no
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7689 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7690 with_gnu_ld=$lt_cv_prog_gnu_ld
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7701 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7702 if ${lt_cv_path_NM+:} false; then :
7703 $as_echo_n "(cached) " >&6
7705 if test -n "$NM"; then
7706 # Let the user override the test.
7709 lt_nm_to_check=${ac_tool_prefix}nm
7710 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7711 lt_nm_to_check="$lt_nm_to_check nm"
7713 for lt_tmp_nm in $lt_nm_to_check; do
7714 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7715 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7717 test -z "$ac_dir" && ac_dir=.
7718 tmp_nm=$ac_dir/$lt_tmp_nm
7719 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7720 # Check to see if the nm accepts a BSD-compat flag.
7721 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7722 # nm: unknown option "B" ignored
7723 # Tru64's nm complains that /dev/null is an invalid object file
7724 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7726 mingw*) lt_bad_file=conftest.nm/nofile ;;
7727 *) lt_bad_file=/dev/null ;;
7729 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7730 *$lt_bad_file* | *'Invalid file or object type'*)
7731 lt_cv_path_NM="$tmp_nm -B"
7735 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7737 lt_cv_path_NM="$tmp_nm -p"
7741 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7742 continue # so that we can try to find one that supports BSD flags
7751 : ${lt_cv_path_NM=no}
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7755 $as_echo "$lt_cv_path_NM" >&6; }
7756 if test no != "$lt_cv_path_NM"; then
7759 # Didn't find any BSD compatible name lister, look for dumpbin.
7760 if test -n "$DUMPBIN"; then :
7761 # Let the user override the test.
7763 if test -n "$ac_tool_prefix"; then
7764 for ac_prog in dumpbin "link -dump"
7766 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7767 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_prog_DUMPBIN+:} false; then :
7771 $as_echo_n "(cached) " >&6
7773 if test -n "$DUMPBIN"; then
7774 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7780 test -z "$as_dir" && as_dir=.
7781 for ac_exec_ext in '' $ac_executable_extensions; do
7782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7783 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 DUMPBIN=$ac_cv_prog_DUMPBIN
7794 if test -n "$DUMPBIN"; then
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7796 $as_echo "$DUMPBIN" >&6; }
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7799 $as_echo "no" >&6; }
7803 test -n "$DUMPBIN" && break
7806 if test -z "$DUMPBIN"; then
7807 ac_ct_DUMPBIN=$DUMPBIN
7808 for ac_prog in dumpbin "link -dump"
7810 # Extract the first word of "$ac_prog", so it can be a program name with args.
7811 set dummy $ac_prog; ac_word=$2
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7813 $as_echo_n "checking for $ac_word... " >&6; }
7814 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7815 $as_echo_n "(cached) " >&6
7817 if test -n "$ac_ct_DUMPBIN"; then
7818 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7820 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 test -z "$as_dir" && as_dir=.
7825 for ac_exec_ext in '' $ac_executable_extensions; do
7826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7827 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7837 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7838 if test -n "$ac_ct_DUMPBIN"; then
7839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7840 $as_echo "$ac_ct_DUMPBIN" >&6; }
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7843 $as_echo "no" >&6; }
7847 test -n "$ac_ct_DUMPBIN" && break
7850 if test "x$ac_ct_DUMPBIN" = x; then
7853 case $cross_compiling:$ac_tool_warned in
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7856 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7857 ac_tool_warned=yes ;;
7859 DUMPBIN=$ac_ct_DUMPBIN
7863 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7865 DUMPBIN="$DUMPBIN -symbols -headers"
7873 if test : != "$DUMPBIN"; then
7877 test -z "$NM" && NM=nm
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7885 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7886 if ${lt_cv_nm_interface+:} false; then :
7887 $as_echo_n "(cached) " >&6
7889 lt_cv_nm_interface="BSD nm"
7890 echo "int some_variable = 0;" > conftest.$ac_ext
7891 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7892 (eval "$ac_compile" 2>conftest.err)
7893 cat conftest.err >&5
7894 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7895 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7896 cat conftest.err >&5
7897 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7898 cat conftest.out >&5
7899 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7900 lt_cv_nm_interface="MS dumpbin"
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7905 $as_echo "$lt_cv_nm_interface" >&6; }
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7908 $as_echo_n "checking whether ln -s works... " >&6; }
7910 if test "$LN_S" = "ln -s"; then
7911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7912 $as_echo "yes" >&6; }
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7915 $as_echo "no, using $LN_S" >&6; }
7918 # find the maximum length of command line arguments
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7920 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7921 if ${lt_cv_sys_max_cmd_len+:} false; then :
7922 $as_echo_n "(cached) " >&6
7929 # On DJGPP, this test can blow up pretty badly due to problems in libc
7930 # (any single argument exceeding 2000 bytes causes a buffer overrun
7931 # during glob expansion). Even if it were fixed, the result of this
7932 # check would be larger than it should be.
7933 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7937 # Under GNU Hurd, this test is not required because there is
7938 # no limit to the length of command line arguments.
7939 # Libtool will interpret -1 as no limit whatsoever
7940 lt_cv_sys_max_cmd_len=-1;
7943 cygwin* | mingw* | cegcc*)
7944 # On Win9x/ME, this test blows up -- it succeeds, but takes
7945 # about 5 minutes as the teststring grows exponentially.
7946 # Worse, since 9x/ME are not pre-emptively multitasking,
7947 # you end up with a "frozen" computer, even though with patience
7948 # the test eventually succeeds (with a max line length of 256k).
7949 # Instead, let's just punt: use the minimum linelength reported by
7950 # all of the supported platforms: 8192 (on NT/2K/XP).
7951 lt_cv_sys_max_cmd_len=8192;
7955 # On MiNT this can take a long time and run out of memory.
7956 lt_cv_sys_max_cmd_len=8192;
7960 # On AmigaOS with pdksh, this test takes hours, literally.
7961 # So we just punt and use a minimum line length of 8192.
7962 lt_cv_sys_max_cmd_len=8192;
7965 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7966 # This has been around since 386BSD, at least. Likely further.
7967 if test -x /sbin/sysctl; then
7968 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7969 elif test -x /usr/sbin/sysctl; then
7970 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7972 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7974 # And add a safety zone
7975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7980 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7981 lt_cv_sys_max_cmd_len=196608
7985 # The test takes a long time on OS/2.
7986 lt_cv_sys_max_cmd_len=8192
7990 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7991 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7992 # nice to cause kernel panics so lets avoid the loop below.
7993 # First set a reasonable default.
7994 lt_cv_sys_max_cmd_len=16384
7996 if test -x /sbin/sysconfig; then
7997 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7998 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8003 lt_cv_sys_max_cmd_len=102400
8005 sysv5* | sco5v6* | sysv4.2uw2*)
8006 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8007 if test -n "$kargmax"; then
8008 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8010 lt_cv_sys_max_cmd_len=32768
8014 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8015 if test -n "$lt_cv_sys_max_cmd_len" && \
8016 test undefined != "$lt_cv_sys_max_cmd_len"; then
8017 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8018 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8020 # Make teststring a little bigger before we do anything with it.
8021 # a 1K string should be a reasonable start.
8022 for i in 1 2 3 4 5 6 7 8; do
8023 teststring=$teststring$teststring
8025 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8026 # If test is not a shell built-in, we'll probably end up computing a
8027 # maximum length that is only half of the actual maximum length, but
8029 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8030 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8031 test 17 != "$i" # 1/2 MB should be enough
8034 teststring=$teststring$teststring
8036 # Only check the string length outside the loop.
8037 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8039 # Add a significant safety factor because C++ compilers can tack on
8040 # massive amounts of additional arguments before passing them to the
8041 # linker. It appears as though 1/2 is a usable value.
8042 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8049 if test -n "$lt_cv_sys_max_cmd_len"; then
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8051 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8054 $as_echo "none" >&6; }
8056 max_cmd_len=$lt_cv_sys_max_cmd_len
8067 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8077 # test EBCDIC or ASCII
8078 case `echo X|tr X '\101'` in
8079 A) # ASCII based system
8080 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8081 lt_SP2NL='tr \040 \012'
8082 lt_NL2SP='tr \015\012 \040\040'
8084 *) # EBCDIC based system
8085 lt_SP2NL='tr \100 \n'
8086 lt_NL2SP='tr \r\n \100\100'
8098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8099 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8100 if ${lt_cv_to_host_file_cmd+:} false; then :
8101 $as_echo_n "(cached) " >&6
8106 *-*-mingw* ) # actually msys
8107 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8110 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8112 * ) # otherwise, assume *nix
8113 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8119 *-*-mingw* ) # actually msys
8120 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8123 lt_cv_to_host_file_cmd=func_convert_file_noop
8125 * ) # otherwise, assume *nix
8126 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8130 * ) # unhandled hosts (and "normal" native builds)
8131 lt_cv_to_host_file_cmd=func_convert_file_noop
8137 to_host_file_cmd=$lt_cv_to_host_file_cmd
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8139 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8146 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8147 if ${lt_cv_to_tool_file_cmd+:} false; then :
8148 $as_echo_n "(cached) " >&6
8150 #assume ordinary cross tools, or native build.
8151 lt_cv_to_tool_file_cmd=func_convert_file_noop
8155 *-*-mingw* ) # actually msys
8156 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8164 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8166 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8173 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8174 if ${lt_cv_ld_reload_flag+:} false; then :
8175 $as_echo_n "(cached) " >&6
8177 lt_cv_ld_reload_flag='-r'
8179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8180 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8181 reload_flag=$lt_cv_ld_reload_flag
8182 case $reload_flag in
8184 *) reload_flag=" $reload_flag" ;;
8186 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8188 cygwin* | mingw* | pw32* | cegcc*)
8189 if test yes != "$GCC"; then
8194 if test yes = "$GCC"; then
8195 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8197 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if ${ac_cv_prog_OBJDUMP+:} false; then :
8216 $as_echo_n "(cached) " >&6
8218 if test -n "$OBJDUMP"; then
8219 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8228 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8238 OBJDUMP=$ac_cv_prog_OBJDUMP
8239 if test -n "$OBJDUMP"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8241 $as_echo "$OBJDUMP" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 if test -z "$ac_cv_prog_OBJDUMP"; then
8250 ac_ct_OBJDUMP=$OBJDUMP
8251 # Extract the first word of "objdump", so it can be a program name with args.
8252 set dummy objdump; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8256 $as_echo_n "(cached) " >&6
8258 if test -n "$ac_ct_OBJDUMP"; then
8259 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8268 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8279 if test -n "$ac_ct_OBJDUMP"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8281 $as_echo "$ac_ct_OBJDUMP" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8287 if test "x$ac_ct_OBJDUMP" = x; then
8290 case $cross_compiling:$ac_tool_warned in
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8296 OBJDUMP=$ac_ct_OBJDUMP
8299 OBJDUMP="$ac_cv_prog_OBJDUMP"
8302 test -z "$OBJDUMP" && OBJDUMP=objdump
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8310 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8311 if ${lt_cv_deplibs_check_method+:} false; then :
8312 $as_echo_n "(cached) " >&6
8314 lt_cv_file_magic_cmd='$MAGIC_CMD'
8315 lt_cv_file_magic_test_file=
8316 lt_cv_deplibs_check_method='unknown'
8317 # Need to set the preceding variable on all platforms that support
8318 # interlibrary dependencies.
8319 # 'none' -- dependencies not supported.
8320 # 'unknown' -- same as none, but documents that we really don't know.
8321 # 'pass_all' -- all dependencies passed with no checks.
8322 # 'test_compile' -- check by making test program.
8323 # 'file_magic [[regex]]' -- check by looking for files in library path
8324 # that responds to the $file_magic_cmd with a given extended regex.
8325 # If you have 'file' or equivalent on your system and you're not sure
8326 # whether 'pass_all' will *always* work, you probably want this one.
8330 lt_cv_deplibs_check_method=pass_all
8334 lt_cv_deplibs_check_method=pass_all
8338 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8339 lt_cv_file_magic_cmd='/usr/bin/file -L'
8340 lt_cv_file_magic_test_file=/shlib/libc.so
8344 # func_win32_libid is a shell function defined in ltmain.sh
8345 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8346 lt_cv_file_magic_cmd='func_win32_libid'
8350 # Base MSYS/MinGW do not provide the 'file' command needed by
8351 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8352 # unless we find 'file', for example because we are cross-compiling.
8353 if ( file / ) >/dev/null 2>&1; then
8354 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8355 lt_cv_file_magic_cmd='func_win32_libid'
8357 # Keep this pattern in sync with the one in func_win32_libid.
8358 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8359 lt_cv_file_magic_cmd='$OBJDUMP -f'
8364 # use the weaker test based on 'objdump'. See mingw*.
8365 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8366 lt_cv_file_magic_cmd='$OBJDUMP -f'
8369 darwin* | rhapsody*)
8370 lt_cv_deplibs_check_method=pass_all
8373 freebsd* | dragonfly*)
8374 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8377 # Not sure whether the presence of OpenBSD here was a mistake.
8378 # Let's accept both of them until this is cleared up.
8379 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8380 lt_cv_file_magic_cmd=/usr/bin/file
8381 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8385 lt_cv_deplibs_check_method=pass_all
8390 lt_cv_deplibs_check_method=pass_all
8393 hpux10.20* | hpux11*)
8394 lt_cv_file_magic_cmd=/usr/bin/file
8397 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8398 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8401 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]'
8402 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8405 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8406 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8412 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8413 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8416 irix5* | irix6* | nonstopux*)
8418 *-32|*"-32 ") libmagic=32-bit;;
8419 *-n32|*"-n32 ") libmagic=N32;;
8420 *-64|*"-64 ") libmagic=64-bit;;
8421 *) libmagic=never-match;;
8423 lt_cv_deplibs_check_method=pass_all
8426 # This must be glibc/ELF.
8427 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8428 lt_cv_deplibs_check_method=pass_all
8431 netbsd* | netbsdelf*-gnu)
8432 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8441 lt_cv_file_magic_cmd=/usr/bin/file
8442 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8446 lt_cv_deplibs_check_method=pass_all
8450 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8451 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8453 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8457 osf3* | osf4* | osf5*)
8458 lt_cv_deplibs_check_method=pass_all
8462 lt_cv_deplibs_check_method=pass_all
8466 lt_cv_deplibs_check_method=pass_all
8469 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8470 lt_cv_deplibs_check_method=pass_all
8474 case $host_vendor in
8476 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]'
8477 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8480 lt_cv_deplibs_check_method=pass_all
8483 lt_cv_file_magic_cmd='/bin/file'
8484 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8487 lt_cv_file_magic_cmd='/bin/file'
8488 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8489 lt_cv_file_magic_test_file=/lib/libc.so
8492 lt_cv_deplibs_check_method=pass_all
8495 lt_cv_deplibs_check_method=pass_all
8501 lt_cv_deplibs_check_method=pass_all
8504 lt_cv_deplibs_check_method=pass_all
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8510 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8514 if test "$build" = "$host"; then
8517 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8520 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8526 file_magic_cmd=$lt_cv_file_magic_cmd
8527 deplibs_check_method=$lt_cv_deplibs_check_method
8528 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8551 if test -n "$ac_tool_prefix"; then
8552 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8553 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8555 $as_echo_n "checking for $ac_word... " >&6; }
8556 if ${ac_cv_prog_DLLTOOL+:} false; then :
8557 $as_echo_n "(cached) " >&6
8559 if test -n "$DLLTOOL"; then
8560 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8566 test -z "$as_dir" && as_dir=.
8567 for ac_exec_ext in '' $ac_executable_extensions; do
8568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8569 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8579 DLLTOOL=$ac_cv_prog_DLLTOOL
8580 if test -n "$DLLTOOL"; then
8581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8582 $as_echo "$DLLTOOL" >&6; }
8584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8585 $as_echo "no" >&6; }
8590 if test -z "$ac_cv_prog_DLLTOOL"; then
8591 ac_ct_DLLTOOL=$DLLTOOL
8592 # Extract the first word of "dlltool", so it can be a program name with args.
8593 set dummy dlltool; ac_word=$2
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8595 $as_echo_n "checking for $ac_word... " >&6; }
8596 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8597 $as_echo_n "(cached) " >&6
8599 if test -n "$ac_ct_DLLTOOL"; then
8600 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 test -z "$as_dir" && as_dir=.
8607 for ac_exec_ext in '' $ac_executable_extensions; do
8608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8609 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8619 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8620 if test -n "$ac_ct_DLLTOOL"; then
8621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8622 $as_echo "$ac_ct_DLLTOOL" >&6; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8625 $as_echo "no" >&6; }
8628 if test "x$ac_ct_DLLTOOL" = x; then
8631 case $cross_compiling:$ac_tool_warned in
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8634 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8635 ac_tool_warned=yes ;;
8637 DLLTOOL=$ac_ct_DLLTOOL
8640 DLLTOOL="$ac_cv_prog_DLLTOOL"
8643 test -z "$DLLTOOL" && DLLTOOL=dlltool
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8652 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8653 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8654 $as_echo_n "(cached) " >&6
8656 lt_cv_sharedlib_from_linklib_cmd='unknown'
8659 cygwin* | mingw* | pw32* | cegcc*)
8660 # two different shell functions defined in ltmain.sh;
8661 # decide which one to use based on capabilities of $DLLTOOL
8662 case `$DLLTOOL --help 2>&1` in
8663 *--identify-strict*)
8664 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8667 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8672 # fallback: assume linklib IS sharedlib
8673 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8679 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8680 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8681 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8689 if test -n "$ac_tool_prefix"; then
8692 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8693 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8695 $as_echo_n "checking for $ac_word... " >&6; }
8696 if ${ac_cv_prog_AR+:} false; then :
8697 $as_echo_n "(cached) " >&6
8699 if test -n "$AR"; then
8700 ac_cv_prog_AR="$AR" # Let the user override the test.
8702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8706 test -z "$as_dir" && as_dir=.
8707 for ac_exec_ext in '' $ac_executable_extensions; do
8708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8709 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8720 if test -n "$AR"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8722 $as_echo "$AR" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8729 test -n "$AR" && break
8732 if test -z "$AR"; then
8736 # Extract the first word of "$ac_prog", so it can be a program name with args.
8737 set dummy $ac_prog; ac_word=$2
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8739 $as_echo_n "checking for $ac_word... " >&6; }
8740 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8741 $as_echo_n "(cached) " >&6
8743 if test -n "$ac_ct_AR"; then
8744 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750 test -z "$as_dir" && as_dir=.
8751 for ac_exec_ext in '' $ac_executable_extensions; do
8752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8753 ac_cv_prog_ac_ct_AR="$ac_prog"
8754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8763 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8764 if test -n "$ac_ct_AR"; then
8765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8766 $as_echo "$ac_ct_AR" >&6; }
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8769 $as_echo "no" >&6; }
8773 test -n "$ac_ct_AR" && break
8776 if test "x$ac_ct_AR" = x; then
8779 case $cross_compiling:$ac_tool_warned in
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8783 ac_tool_warned=yes ;;
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8803 $as_echo_n "checking for archiver @FILE support... " >&6; }
8804 if ${lt_cv_ar_at_file+:} false; then :
8805 $as_echo_n "(cached) " >&6
8808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8809 /* end confdefs.h. */
8818 if ac_fn_c_try_compile "$LINENO"; then :
8819 echo conftest.$ac_objext > conftest.lst
8820 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8822 (eval $lt_ar_try) 2>&5
8824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8825 test $ac_status = 0; }
8826 if test 0 -eq "$ac_status"; then
8827 # Ensure the archiver fails upon bogus file names.
8828 rm -f conftest.$ac_objext libconftest.a
8829 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8830 (eval $lt_ar_try) 2>&5
8832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8833 test $ac_status = 0; }
8834 if test 0 -ne "$ac_status"; then
8838 rm -f conftest.* libconftest.a
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8845 $as_echo "$lt_cv_ar_at_file" >&6; }
8847 if test no = "$lt_cv_ar_at_file"; then
8850 archiver_list_spec=$lt_cv_ar_at_file
8859 if test -n "$ac_tool_prefix"; then
8860 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8861 set dummy ${ac_tool_prefix}strip; ac_word=$2
8862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8863 $as_echo_n "checking for $ac_word... " >&6; }
8864 if ${ac_cv_prog_STRIP+:} false; then :
8865 $as_echo_n "(cached) " >&6
8867 if test -n "$STRIP"; then
8868 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8874 test -z "$as_dir" && as_dir=.
8875 for ac_exec_ext in '' $ac_executable_extensions; do
8876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8877 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8887 STRIP=$ac_cv_prog_STRIP
8888 if test -n "$STRIP"; then
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8890 $as_echo "$STRIP" >&6; }
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8893 $as_echo "no" >&6; }
8898 if test -z "$ac_cv_prog_STRIP"; then
8900 # Extract the first word of "strip", so it can be a program name with args.
8901 set dummy strip; ac_word=$2
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8903 $as_echo_n "checking for $ac_word... " >&6; }
8904 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8905 $as_echo_n "(cached) " >&6
8907 if test -n "$ac_ct_STRIP"; then
8908 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8914 test -z "$as_dir" && as_dir=.
8915 for ac_exec_ext in '' $ac_executable_extensions; do
8916 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8917 ac_cv_prog_ac_ct_STRIP="strip"
8918 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8927 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8928 if test -n "$ac_ct_STRIP"; then
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8930 $as_echo "$ac_ct_STRIP" >&6; }
8932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8933 $as_echo "no" >&6; }
8936 if test "x$ac_ct_STRIP" = x; then
8939 case $cross_compiling:$ac_tool_warned in
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8943 ac_tool_warned=yes ;;
8948 STRIP="$ac_cv_prog_STRIP"
8951 test -z "$STRIP" && STRIP=:
8958 if test -n "$ac_tool_prefix"; then
8959 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8960 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8962 $as_echo_n "checking for $ac_word... " >&6; }
8963 if ${ac_cv_prog_RANLIB+:} false; then :
8964 $as_echo_n "(cached) " >&6
8966 if test -n "$RANLIB"; then
8967 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 test -z "$as_dir" && as_dir=.
8974 for ac_exec_ext in '' $ac_executable_extensions; do
8975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8976 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8977 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8986 RANLIB=$ac_cv_prog_RANLIB
8987 if test -n "$RANLIB"; then
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8989 $as_echo "$RANLIB" >&6; }
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8992 $as_echo "no" >&6; }
8997 if test -z "$ac_cv_prog_RANLIB"; then
8998 ac_ct_RANLIB=$RANLIB
8999 # Extract the first word of "ranlib", so it can be a program name with args.
9000 set dummy ranlib; ac_word=$2
9001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9002 $as_echo_n "checking for $ac_word... " >&6; }
9003 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9004 $as_echo_n "(cached) " >&6
9006 if test -n "$ac_ct_RANLIB"; then
9007 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 test -z "$as_dir" && as_dir=.
9014 for ac_exec_ext in '' $ac_executable_extensions; do
9015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9016 ac_cv_prog_ac_ct_RANLIB="ranlib"
9017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9026 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9027 if test -n "$ac_ct_RANLIB"; then
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9029 $as_echo "$ac_ct_RANLIB" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9032 $as_echo "no" >&6; }
9035 if test "x$ac_ct_RANLIB" = x; then
9038 case $cross_compiling:$ac_tool_warned in
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9042 ac_tool_warned=yes ;;
9044 RANLIB=$ac_ct_RANLIB
9047 RANLIB="$ac_cv_prog_RANLIB"
9050 test -z "$RANLIB" && RANLIB=:
9057 # Determine commands to create old-style static archives.
9058 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9059 old_postinstall_cmds='chmod 644 $oldlib'
9060 old_postuninstall_cmds=
9062 if test -n "$RANLIB"; then
9065 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9071 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9076 lock_old_archive_extraction=yes ;;
9078 lock_old_archive_extraction=no ;;
9119 # If no C compiler was specified, use CC.
9122 # If no C compiler flags were specified, use CFLAGS.
9123 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9125 # Allow CC to be a program name with arguments.
9129 # Check for command to grab the raw symbol name followed by C symbol from nm.
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9131 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9132 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9133 $as_echo_n "(cached) " >&6
9136 # These are sane defaults that work on at least a few old systems.
9137 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9139 # Character class describing NM global symbol codes.
9140 symcode='[BCDEGRST]'
9142 # Regexp to match symbols that can be accessed directly from C.
9143 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9145 # Define system-specific variables.
9150 cygwin* | mingw* | pw32* | cegcc*)
9151 symcode='[ABCDGISTW]'
9154 if test ia64 = "$host_cpu"; then
9155 symcode='[ABCDEGRST]'
9159 symcode='[BCDEGRST]'
9162 symcode='[BCDEGQRST]'
9173 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9181 # If we're using GNU nm, then use its standard symbol codes.
9182 case `$NM -V 2>&1` in
9183 *GNU* | *'with BFD'*)
9184 symcode='[ABCDGIRSTW]' ;;
9187 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9188 # Gets list of data symbols to import.
9189 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9190 # Adjust the below global symbol transforms to fixup imported variables.
9191 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9192 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9193 lt_c_name_lib_hook="\
9194 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9195 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9197 # Disable hooks by default.
9198 lt_cv_sys_global_symbol_to_import=
9204 # Transform an extracted symbol line into a proper C declaration.
9205 # Some systems (esp. on ia64) link data and code symbols differently,
9206 # so use this general approach.
9207 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9209 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9210 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9212 # Transform an extracted symbol line into symbol name and symbol address
9213 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9215 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9216 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9218 # Transform an extracted symbol line into symbol name with lib prefix and
9220 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9221 $lt_c_name_lib_hook\
9222 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9223 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9224 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9226 # Handle CRLF in mingw tool chain
9230 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9234 # Try without a prefix underscore, then with it.
9235 for ac_symprfx in "" "_"; do
9237 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9238 symxfrm="\\1 $ac_symprfx\\2 \\2"
9240 # Write the raw and C identifiers.
9241 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9242 # Fake it for dumpbin and say T for any non-static function,
9243 # D for any global variable and I for any imported variable.
9244 # Also find C++ and __fastcall symbols from MSVC++,
9245 # which start with @ or ?.
9246 lt_cv_sys_global_symbol_pipe="$AWK '"\
9247 " {last_section=section; section=\$ 3};"\
9248 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9249 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9250 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9251 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9252 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9253 " \$ 0!~/External *\|/{next};"\
9254 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9255 " {if(hide[section]) next};"\
9256 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9257 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9258 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9259 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9260 " ' prfx=^$ac_symprfx"
9262 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9264 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9266 # Check to see that the pipe works correctly.
9270 cat > conftest.$ac_ext <<_LT_EOF
9275 void nm_test_func(void);
9276 void nm_test_func(void){}
9280 int main(){nm_test_var='a';nm_test_func();return(0);}
9283 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9284 (eval $ac_compile) 2>&5
9286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9287 test $ac_status = 0; }; then
9288 # Now try to grab the symbols.
9290 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9291 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9292 # Try sorting and uniquifying the output.
9293 if sort "$nlist" | uniq > "$nlist"T; then
9294 mv -f "$nlist"T "$nlist"
9299 # Make sure that we snagged all the symbols we need.
9300 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9301 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9302 cat <<_LT_EOF > conftest.$ac_ext
9303 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9304 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9305 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9306 relocations are performed -- see ld's documentation on pseudo-relocs. */
9307 # define LT_DLSYM_CONST
9308 #elif defined __osf__
9309 /* This system does not cope well with relocations in const data. */
9310 # define LT_DLSYM_CONST
9312 # define LT_DLSYM_CONST const
9320 # Now generate the symbol file.
9321 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9323 cat <<_LT_EOF >> conftest.$ac_ext
9325 /* The mapping between symbol names and symbols. */
9326 LT_DLSYM_CONST struct {
9330 lt__PROGRAM__LTX_preloaded_symbols[] =
9332 { "@PROGRAM@", (void *) 0 },
9334 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9335 cat <<\_LT_EOF >> conftest.$ac_ext
9339 /* This works around a problem in FreeBSD linker */
9340 #ifdef FREEBSD_WORKAROUND
9341 static const void *lt_preloaded_setup() {
9342 return lt__PROGRAM__LTX_preloaded_symbols;
9350 # Now try linking the two files.
9351 mv conftest.$ac_objext conftstm.$ac_objext
9352 lt_globsym_save_LIBS=$LIBS
9353 lt_globsym_save_CFLAGS=$CFLAGS
9354 LIBS=conftstm.$ac_objext
9355 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9357 (eval $ac_link) 2>&5
9359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9360 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9363 LIBS=$lt_globsym_save_LIBS
9364 CFLAGS=$lt_globsym_save_CFLAGS
9366 echo "cannot find nm_test_func in $nlist" >&5
9369 echo "cannot find nm_test_var in $nlist" >&5
9372 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9375 echo "$progname: failed program was:" >&5
9376 cat conftest.$ac_ext >&5
9378 rm -rf conftest* conftst*
9380 # Do not use the global_symbol_pipe unless it works.
9381 if test yes = "$pipe_works"; then
9384 lt_cv_sys_global_symbol_pipe=
9390 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9391 lt_cv_sys_global_symbol_to_cdecl=
9393 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9395 $as_echo "failed" >&6; }
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9398 $as_echo "ok" >&6; }
9401 # Response file support.
9402 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9403 nm_file_list_spec='@'
9404 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9405 nm_file_list_spec='@'
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9445 $as_echo_n "checking for sysroot... " >&6; }
9447 # Check whether --with-sysroot was given.
9448 if test "${with_sysroot+set}" = set; then :
9449 withval=$with_sysroot;
9456 case $with_sysroot in #(
9458 if test yes = "$GCC"; then
9459 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9463 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9469 $as_echo "$with_sysroot" >&6; }
9470 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9475 $as_echo "${lt_sysroot:-no}" >&6; }
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9482 $as_echo_n "checking for a working dd... " >&6; }
9483 if ${ac_cv_path_lt_DD+:} false; then :
9484 $as_echo_n "(cached) " >&6
9486 printf 0123456789abcdef0123456789abcdef >conftest.i
9487 cat conftest.i conftest.i >conftest2.i
9489 if test -z "$lt_DD"; then
9490 ac_path_lt_DD_found=false
9491 # Loop through the user's path and test for each of PROGNAME-LIST
9492 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9496 test -z "$as_dir" && as_dir=.
9497 for ac_prog in dd; do
9498 for ac_exec_ext in '' $ac_executable_extensions; do
9499 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9500 as_fn_executable_p "$ac_path_lt_DD" || continue
9501 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9502 cmp -s conftest.i conftest.out \
9503 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9505 $ac_path_lt_DD_found && break 3
9510 if test -z "$ac_cv_path_lt_DD"; then
9514 ac_cv_path_lt_DD=$lt_DD
9517 rm -f conftest.i conftest2.i conftest.out
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9520 $as_echo "$ac_cv_path_lt_DD" >&6; }
9523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9524 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9525 if ${lt_cv_truncate_bin+:} false; then :
9526 $as_echo_n "(cached) " >&6
9528 printf 0123456789abcdef0123456789abcdef >conftest.i
9529 cat conftest.i conftest.i >conftest2.i
9531 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9532 cmp -s conftest.i conftest.out \
9533 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9535 rm -f conftest.i conftest2.i conftest.out
9536 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9539 $as_echo "$lt_cv_truncate_bin" >&6; }
9547 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9550 for cc_temp in $*""; do
9552 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9553 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9558 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9561 # Check whether --enable-libtool-lock was given.
9562 if test "${enable_libtool_lock+set}" = set; then :
9563 enableval=$enable_libtool_lock;
9566 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9568 # Some flags need to be propagated to the compiler or linker for good
9572 # Find out what ABI is being produced by ac_compile, and set mode
9573 # options accordingly.
9574 echo 'int i;' > conftest.$ac_ext
9575 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9576 (eval $ac_compile) 2>&5
9578 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9579 test $ac_status = 0; }; then
9580 case `/usr/bin/file conftest.$ac_objext` in
9592 # Find out what ABI is being produced by ac_compile, and set linker
9593 # options accordingly.
9594 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9595 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9596 (eval $ac_compile) 2>&5
9598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9599 test $ac_status = 0; }; then
9600 if test yes = "$lt_cv_prog_gnu_ld"; then
9601 case `/usr/bin/file conftest.$ac_objext` in
9603 LD="${LD-ld} -melf32bsmip"
9606 LD="${LD-ld} -melf32bmipn32"
9609 LD="${LD-ld} -melf64bmip"
9613 case `/usr/bin/file conftest.$ac_objext` in
9630 # Find out what ABI is being produced by ac_compile, and set linker
9631 # options accordingly.
9632 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9634 (eval $ac_compile) 2>&5
9636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9637 test $ac_status = 0; }; then
9639 case `/usr/bin/file conftest.$ac_objext` in
9647 case `/usr/bin/file conftest.$ac_objext` in
9649 emul="${emul}btsmip"
9652 emul="${emul}ltsmip"
9655 case `/usr/bin/file conftest.$ac_objext` in
9660 LD="${LD-ld} -m $emul"
9665 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9666 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9667 # Find out what ABI is being produced by ac_compile, and set linker
9668 # options accordingly. Note that the listed cases only cover the
9669 # situations where additional linker options are needed (such as when
9670 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9671 # vice versa); the common cases where no linker options are needed do
9672 # not appear in the list.
9673 echo 'int i;' > conftest.$ac_ext
9674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9675 (eval $ac_compile) 2>&5
9677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9678 test $ac_status = 0; }; then
9679 case `/usr/bin/file conftest.o` in
9682 x86_64-*kfreebsd*-gnu)
9683 LD="${LD-ld} -m elf_i386_fbsd"
9686 case `/usr/bin/file conftest.o` in
9688 LD="${LD-ld} -m elf32_x86_64"
9691 LD="${LD-ld} -m elf_i386"
9695 powerpc64le-*linux*)
9696 LD="${LD-ld} -m elf32lppclinux"
9699 LD="${LD-ld} -m elf32ppclinux"
9702 LD="${LD-ld} -m elf_s390"
9705 LD="${LD-ld} -m elf32_sparc"
9711 x86_64-*kfreebsd*-gnu)
9712 LD="${LD-ld} -m elf_x86_64_fbsd"
9715 LD="${LD-ld} -m elf_x86_64"
9718 LD="${LD-ld} -m elf64lppc"
9721 LD="${LD-ld} -m elf64ppc"
9723 s390*-*linux*|s390*-*tpf*)
9724 LD="${LD-ld} -m elf64_s390"
9727 LD="${LD-ld} -m elf64_sparc"
9737 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9739 CFLAGS="$CFLAGS -belf"
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9741 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9742 if ${lt_cv_cc_needs_belf+:} false; then :
9743 $as_echo_n "(cached) " >&6
9746 ac_cpp='$CPP $CPPFLAGS'
9747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9752 /* end confdefs.h. */
9761 if ac_fn_c_try_link "$LINENO"; then :
9762 lt_cv_cc_needs_belf=yes
9764 lt_cv_cc_needs_belf=no
9766 rm -f core conftest.err conftest.$ac_objext \
9767 conftest$ac_exeext conftest.$ac_ext
9769 ac_cpp='$CPP $CPPFLAGS'
9770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9776 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9777 if test yes != "$lt_cv_cc_needs_belf"; then
9778 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9783 # Find out what ABI is being produced by ac_compile, and set linker
9784 # options accordingly.
9785 echo 'int i;' > conftest.$ac_ext
9786 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9787 (eval $ac_compile) 2>&5
9789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9790 test $ac_status = 0; }; then
9791 case `/usr/bin/file conftest.o` in
9793 case $lt_cv_prog_gnu_ld in
9796 i?86-*-solaris*|x86_64-*-solaris*)
9797 LD="${LD-ld} -m elf_x86_64"
9800 LD="${LD-ld} -m elf64_sparc"
9803 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9804 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9809 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9821 need_locks=$enable_libtool_lock
9823 if test -n "$ac_tool_prefix"; then
9824 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9825 set dummy ${ac_tool_prefix}mt; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9829 $as_echo_n "(cached) " >&6
9831 if test -n "$MANIFEST_TOOL"; then
9832 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9841 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9852 if test -n "$MANIFEST_TOOL"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9854 $as_echo "$MANIFEST_TOOL" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9862 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9863 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9864 # Extract the first word of "mt", so it can be a program name with args.
9865 set dummy mt; ac_word=$2
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9867 $as_echo_n "checking for $ac_word... " >&6; }
9868 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9869 $as_echo_n "(cached) " >&6
9871 if test -n "$ac_ct_MANIFEST_TOOL"; then
9872 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9878 test -z "$as_dir" && as_dir=.
9879 for ac_exec_ext in '' $ac_executable_extensions; do
9880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9881 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9891 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9892 if test -n "$ac_ct_MANIFEST_TOOL"; then
9893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9894 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9897 $as_echo "no" >&6; }
9900 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9903 case $cross_compiling:$ac_tool_warned in
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9906 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9907 ac_tool_warned=yes ;;
9909 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9912 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9915 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9917 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9918 if ${lt_cv_path_mainfest_tool+:} false; then :
9919 $as_echo_n "(cached) " >&6
9921 lt_cv_path_mainfest_tool=no
9922 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9923 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9924 cat conftest.err >&5
9925 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9926 lt_cv_path_mainfest_tool=yes
9930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9931 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9932 if test yes != "$lt_cv_path_mainfest_tool"; then
9942 rhapsody* | darwin*)
9943 if test -n "$ac_tool_prefix"; then
9944 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9945 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9947 $as_echo_n "checking for $ac_word... " >&6; }
9948 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9949 $as_echo_n "(cached) " >&6
9951 if test -n "$DSYMUTIL"; then
9952 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9958 test -z "$as_dir" && as_dir=.
9959 for ac_exec_ext in '' $ac_executable_extensions; do
9960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9961 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9971 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9972 if test -n "$DSYMUTIL"; then
9973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9974 $as_echo "$DSYMUTIL" >&6; }
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9977 $as_echo "no" >&6; }
9982 if test -z "$ac_cv_prog_DSYMUTIL"; then
9983 ac_ct_DSYMUTIL=$DSYMUTIL
9984 # Extract the first word of "dsymutil", so it can be a program name with args.
9985 set dummy dsymutil; ac_word=$2
9986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9987 $as_echo_n "checking for $ac_word... " >&6; }
9988 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9989 $as_echo_n "(cached) " >&6
9991 if test -n "$ac_ct_DSYMUTIL"; then
9992 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9998 test -z "$as_dir" && as_dir=.
9999 for ac_exec_ext in '' $ac_executable_extensions; do
10000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10001 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10011 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10012 if test -n "$ac_ct_DSYMUTIL"; then
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10014 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10017 $as_echo "no" >&6; }
10020 if test "x$ac_ct_DSYMUTIL" = x; then
10023 case $cross_compiling:$ac_tool_warned in
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10027 ac_tool_warned=yes ;;
10029 DSYMUTIL=$ac_ct_DSYMUTIL
10032 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10035 if test -n "$ac_tool_prefix"; then
10036 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10037 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10039 $as_echo_n "checking for $ac_word... " >&6; }
10040 if ${ac_cv_prog_NMEDIT+:} false; then :
10041 $as_echo_n "(cached) " >&6
10043 if test -n "$NMEDIT"; then
10044 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10047 for as_dir in $PATH
10050 test -z "$as_dir" && as_dir=.
10051 for ac_exec_ext in '' $ac_executable_extensions; do
10052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10053 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10063 NMEDIT=$ac_cv_prog_NMEDIT
10064 if test -n "$NMEDIT"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10066 $as_echo "$NMEDIT" >&6; }
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10069 $as_echo "no" >&6; }
10074 if test -z "$ac_cv_prog_NMEDIT"; then
10075 ac_ct_NMEDIT=$NMEDIT
10076 # Extract the first word of "nmedit", so it can be a program name with args.
10077 set dummy nmedit; ac_word=$2
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10079 $as_echo_n "checking for $ac_word... " >&6; }
10080 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10081 $as_echo_n "(cached) " >&6
10083 if test -n "$ac_ct_NMEDIT"; then
10084 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10087 for as_dir in $PATH
10090 test -z "$as_dir" && as_dir=.
10091 for ac_exec_ext in '' $ac_executable_extensions; do
10092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10093 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10094 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10103 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10104 if test -n "$ac_ct_NMEDIT"; then
10105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10106 $as_echo "$ac_ct_NMEDIT" >&6; }
10108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10109 $as_echo "no" >&6; }
10112 if test "x$ac_ct_NMEDIT" = x; then
10115 case $cross_compiling:$ac_tool_warned in
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10118 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10119 ac_tool_warned=yes ;;
10121 NMEDIT=$ac_ct_NMEDIT
10124 NMEDIT="$ac_cv_prog_NMEDIT"
10127 if test -n "$ac_tool_prefix"; then
10128 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10129 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10131 $as_echo_n "checking for $ac_word... " >&6; }
10132 if ${ac_cv_prog_LIPO+:} false; then :
10133 $as_echo_n "(cached) " >&6
10135 if test -n "$LIPO"; then
10136 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10139 for as_dir in $PATH
10142 test -z "$as_dir" && as_dir=.
10143 for ac_exec_ext in '' $ac_executable_extensions; do
10144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10145 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10155 LIPO=$ac_cv_prog_LIPO
10156 if test -n "$LIPO"; then
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10158 $as_echo "$LIPO" >&6; }
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10161 $as_echo "no" >&6; }
10166 if test -z "$ac_cv_prog_LIPO"; then
10168 # Extract the first word of "lipo", so it can be a program name with args.
10169 set dummy lipo; ac_word=$2
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10171 $as_echo_n "checking for $ac_word... " >&6; }
10172 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10173 $as_echo_n "(cached) " >&6
10175 if test -n "$ac_ct_LIPO"; then
10176 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10179 for as_dir in $PATH
10182 test -z "$as_dir" && as_dir=.
10183 for ac_exec_ext in '' $ac_executable_extensions; do
10184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10185 ac_cv_prog_ac_ct_LIPO="lipo"
10186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10195 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10196 if test -n "$ac_ct_LIPO"; then
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10198 $as_echo "$ac_ct_LIPO" >&6; }
10200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10201 $as_echo "no" >&6; }
10204 if test "x$ac_ct_LIPO" = x; then
10207 case $cross_compiling:$ac_tool_warned in
10209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10210 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10211 ac_tool_warned=yes ;;
10216 LIPO="$ac_cv_prog_LIPO"
10219 if test -n "$ac_tool_prefix"; then
10220 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10221 set dummy ${ac_tool_prefix}otool; ac_word=$2
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10223 $as_echo_n "checking for $ac_word... " >&6; }
10224 if ${ac_cv_prog_OTOOL+:} false; then :
10225 $as_echo_n "(cached) " >&6
10227 if test -n "$OTOOL"; then
10228 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10231 for as_dir in $PATH
10234 test -z "$as_dir" && as_dir=.
10235 for ac_exec_ext in '' $ac_executable_extensions; do
10236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10237 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10247 OTOOL=$ac_cv_prog_OTOOL
10248 if test -n "$OTOOL"; then
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10250 $as_echo "$OTOOL" >&6; }
10252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10253 $as_echo "no" >&6; }
10258 if test -z "$ac_cv_prog_OTOOL"; then
10260 # Extract the first word of "otool", so it can be a program name with args.
10261 set dummy otool; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10263 $as_echo_n "checking for $ac_word... " >&6; }
10264 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10265 $as_echo_n "(cached) " >&6
10267 if test -n "$ac_ct_OTOOL"; then
10268 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_prog_ac_ct_OTOOL="otool"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10287 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10288 if test -n "$ac_ct_OTOOL"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10290 $as_echo "$ac_ct_OTOOL" >&6; }
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10293 $as_echo "no" >&6; }
10296 if test "x$ac_ct_OTOOL" = x; then
10299 case $cross_compiling:$ac_tool_warned in
10301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10302 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10303 ac_tool_warned=yes ;;
10308 OTOOL="$ac_cv_prog_OTOOL"
10311 if test -n "$ac_tool_prefix"; then
10312 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10313 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10315 $as_echo_n "checking for $ac_word... " >&6; }
10316 if ${ac_cv_prog_OTOOL64+:} false; then :
10317 $as_echo_n "(cached) " >&6
10319 if test -n "$OTOOL64"; then
10320 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10323 for as_dir in $PATH
10326 test -z "$as_dir" && as_dir=.
10327 for ac_exec_ext in '' $ac_executable_extensions; do
10328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10329 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10339 OTOOL64=$ac_cv_prog_OTOOL64
10340 if test -n "$OTOOL64"; then
10341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10342 $as_echo "$OTOOL64" >&6; }
10344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10345 $as_echo "no" >&6; }
10350 if test -z "$ac_cv_prog_OTOOL64"; then
10351 ac_ct_OTOOL64=$OTOOL64
10352 # Extract the first word of "otool64", so it can be a program name with args.
10353 set dummy otool64; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10357 $as_echo_n "(cached) " >&6
10359 if test -n "$ac_ct_OTOOL64"; then
10360 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_ac_ct_OTOOL64="otool64"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10379 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10380 if test -n "$ac_ct_OTOOL64"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10382 $as_echo "$ac_ct_OTOOL64" >&6; }
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10388 if test "x$ac_ct_OTOOL64" = x; then
10391 case $cross_compiling:$ac_tool_warned in
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10394 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10395 ac_tool_warned=yes ;;
10397 OTOOL64=$ac_ct_OTOOL64
10400 OTOOL64="$ac_cv_prog_OTOOL64"
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10430 $as_echo_n "checking for -single_module linker flag... " >&6; }
10431 if ${lt_cv_apple_cc_single_mod+:} false; then :
10432 $as_echo_n "(cached) " >&6
10434 lt_cv_apple_cc_single_mod=no
10435 if test -z "$LT_MULTI_MODULE"; then
10436 # By default we will add the -single_module flag. You can override
10437 # by either setting the environment variable LT_MULTI_MODULE
10438 # non-empty at configure time, or by adding -multi_module to the
10440 rm -rf libconftest.dylib*
10441 echo "int foo(void){return 1;}" > conftest.c
10442 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10443 -dynamiclib -Wl,-single_module conftest.c" >&5
10444 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10445 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10447 # If there is a non-empty error log, and "single_module"
10448 # appears in it, assume the flag caused a linker warning
10449 if test -s conftest.err && $GREP single_module conftest.err; then
10450 cat conftest.err >&5
10451 # Otherwise, if the output was created with a 0 exit code from
10452 # the compiler, it worked.
10453 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10454 lt_cv_apple_cc_single_mod=yes
10456 cat conftest.err >&5
10458 rm -rf libconftest.dylib*
10462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10463 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10466 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10467 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10468 $as_echo_n "(cached) " >&6
10470 lt_cv_ld_exported_symbols_list=no
10471 save_LDFLAGS=$LDFLAGS
10472 echo "_main" > conftest.sym
10473 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10475 /* end confdefs.h. */
10484 if ac_fn_c_try_link "$LINENO"; then :
10485 lt_cv_ld_exported_symbols_list=yes
10487 lt_cv_ld_exported_symbols_list=no
10489 rm -f core conftest.err conftest.$ac_objext \
10490 conftest$ac_exeext conftest.$ac_ext
10491 LDFLAGS=$save_LDFLAGS
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10495 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10498 $as_echo_n "checking for -force_load linker flag... " >&6; }
10499 if ${lt_cv_ld_force_load+:} false; then :
10500 $as_echo_n "(cached) " >&6
10502 lt_cv_ld_force_load=no
10503 cat > conftest.c << _LT_EOF
10504 int forced_loaded() { return 2;}
10506 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10507 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10508 echo "$AR cr libconftest.a conftest.o" >&5
10509 $AR cr libconftest.a conftest.o 2>&5
10510 echo "$RANLIB libconftest.a" >&5
10511 $RANLIB libconftest.a 2>&5
10512 cat > conftest.c << _LT_EOF
10513 int main() { return 0;}
10515 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10516 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10518 if test -s conftest.err && $GREP force_load conftest.err; then
10519 cat conftest.err >&5
10520 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10521 lt_cv_ld_force_load=yes
10523 cat conftest.err >&5
10525 rm -f conftest.err libconftest.a conftest conftest.c
10526 rm -rf conftest.dSYM
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10530 $as_echo "$lt_cv_ld_force_load" >&6; }
10532 rhapsody* | darwin1.[012])
10533 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10535 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10536 darwin*) # darwin 5.x on
10537 # if running on 10.5 or later, the deployment target defaults
10538 # to the OS version, if on x86, and 10.4, the deployment
10539 # target defaults to 10.4. Don't you love it?
10540 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10541 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10542 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10544 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10546 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10550 if test yes = "$lt_cv_apple_cc_single_mod"; then
10551 _lt_dar_single_mod='$single_module'
10553 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10554 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10556 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10558 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10559 _lt_dsymutil='~$DSYMUTIL $lib || :'
10566 # func_munge_path_list VARIABLE PATH
10567 # -----------------------------------
10568 # VARIABLE is name of variable containing _space_ separated list of
10569 # directories to be munged by the contents of PATH, which is string
10572 # string "DIR[ DIR]" will be prepended to VARIABLE
10574 # string "DIR[ DIR]" will be appended to VARIABLE
10575 # "DIRP[:DIRP]::[DIRA:]DIRA"
10576 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10577 # "DIRA[ DIRA]" will be appended to VARIABLE
10579 # VARIABLE will be replaced by "DIR[ DIR]"
10580 func_munge_path_list ()
10586 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10589 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10592 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10593 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10596 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10602 $as_echo_n "checking for ANSI C header files... " >&6; }
10603 if ${ac_cv_header_stdc+:} false; then :
10604 $as_echo_n "(cached) " >&6
10606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10607 /* end confdefs.h. */
10608 #include <stdlib.h>
10609 #include <stdarg.h>
10610 #include <string.h>
10620 if ac_fn_c_try_compile "$LINENO"; then :
10621 ac_cv_header_stdc=yes
10623 ac_cv_header_stdc=no
10625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10627 if test $ac_cv_header_stdc = yes; then
10628 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10630 /* end confdefs.h. */
10631 #include <string.h>
10634 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10635 $EGREP "memchr" >/dev/null 2>&1; then :
10638 ac_cv_header_stdc=no
10644 if test $ac_cv_header_stdc = yes; then
10645 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10647 /* end confdefs.h. */
10648 #include <stdlib.h>
10651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10652 $EGREP "free" >/dev/null 2>&1; then :
10655 ac_cv_header_stdc=no
10661 if test $ac_cv_header_stdc = yes; then
10662 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10663 if test "$cross_compiling" = yes; then :
10666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10667 /* end confdefs.h. */
10669 #include <stdlib.h>
10670 #if ((' ' & 0x0FF) == 0x020)
10671 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10672 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10674 # define ISLOWER(c) \
10675 (('a' <= (c) && (c) <= 'i') \
10676 || ('j' <= (c) && (c) <= 'r') \
10677 || ('s' <= (c) && (c) <= 'z'))
10678 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10681 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10686 for (i = 0; i < 256; i++)
10687 if (XOR (islower (i), ISLOWER (i))
10688 || toupper (i) != TOUPPER (i))
10693 if ac_fn_c_try_run "$LINENO"; then :
10696 ac_cv_header_stdc=no
10698 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10699 conftest.$ac_objext conftest.beam conftest.$ac_ext
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10705 $as_echo "$ac_cv_header_stdc" >&6; }
10706 if test $ac_cv_header_stdc = yes; then
10708 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10712 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10713 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10714 inttypes.h stdint.h unistd.h
10716 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10717 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10719 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10720 cat >>confdefs.h <<_ACEOF
10721 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10729 for ac_header in dlfcn.h
10731 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10733 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10734 cat >>confdefs.h <<_ACEOF
10735 #define HAVE_DLFCN_H 1
10742 # ------------------------------------ #
10743 # Determine libtool default behavior #
10744 # ------------------------------------ #
10747 # Default behavior is to enable shared and static libraries on systems
10748 # where libtool knows how to build both library versions, and does not
10749 # require separate configuration and build runs for each flavor.
10752 xc_lt_want_enable_shared='yes'
10753 xc_lt_want_enable_static='yes'
10756 # User may have disabled shared or static libraries.
10758 case "x$enable_shared" in # (
10760 xc_lt_want_enable_shared='no'
10763 case "x$enable_static" in # (
10765 xc_lt_want_enable_static='no'
10768 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10769 test "x$xc_lt_want_enable_static" = 'xno'; then
10770 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10774 # Default behavior on systems that require independent configuration
10775 # and build runs for shared and static is to enable shared libraries
10776 # and disable static ones. On these systems option '--disable-shared'
10777 # must be used in order to build a proper static library.
10780 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10781 test "x$xc_lt_want_enable_static" = 'xyes'; then
10782 case $host_os in # (
10783 pw32* | cegcc* | os2* | aix*)
10784 xc_lt_want_enable_static='no'
10790 # Make libtool aware of current shared and static library preferences
10791 # taking in account that, depending on host characteristics, libtool
10792 # may modify these option preferences later in this configure script.
10795 enable_shared=$xc_lt_want_enable_shared
10796 enable_static=$xc_lt_want_enable_static
10799 # Default behavior is to build PIC objects for shared libraries and
10800 # non-PIC objects for static libraries.
10803 xc_lt_want_with_pic='default'
10806 # User may have specified PIC preference.
10809 case "x$with_pic" in # ((
10811 xc_lt_want_with_pic='no'
10814 xc_lt_want_with_pic='yes'
10819 # Default behavior on some systems where building a shared library out
10820 # of non-PIC compiled objects will fail with following linker error
10821 # "relocation R_X86_64_32 can not be used when making a shared object"
10822 # is to build PIC objects even for static libraries. This behavior may
10823 # be overridden using 'configure --disable-shared --without-pic'.
10826 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10827 case $host_cpu in # (
10828 x86_64 | amd64 | ia64)
10829 case $host_os in # (
10831 xc_lt_want_with_pic='yes'
10839 # Make libtool aware of current PIC preference taking in account that,
10840 # depending on host characteristics, libtool may modify PIC default
10841 # behavior to fit host system idiosyncrasies later in this script.
10844 with_pic=$xc_lt_want_with_pic
10846 ## ----------------------- ##
10847 ## Start of libtool code ##
10848 ## ----------------------- ##
10854 enable_win32_dll=yes
10857 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10858 if test -n "$ac_tool_prefix"; then
10859 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10860 set dummy ${ac_tool_prefix}as; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10862 $as_echo_n "checking for $ac_word... " >&6; }
10863 if ${ac_cv_prog_AS+:} false; then :
10864 $as_echo_n "(cached) " >&6
10866 if test -n "$AS"; then
10867 ac_cv_prog_AS="$AS" # Let the user override the test.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876 ac_cv_prog_AS="${ac_tool_prefix}as"
10877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10887 if test -n "$AS"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10889 $as_echo "$AS" >&6; }
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10892 $as_echo "no" >&6; }
10897 if test -z "$ac_cv_prog_AS"; then
10899 # Extract the first word of "as", so it can be a program name with args.
10900 set dummy as; ac_word=$2
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10902 $as_echo_n "checking for $ac_word... " >&6; }
10903 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10904 $as_echo_n "(cached) " >&6
10906 if test -n "$ac_ct_AS"; then
10907 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10910 for as_dir in $PATH
10913 test -z "$as_dir" && as_dir=.
10914 for ac_exec_ext in '' $ac_executable_extensions; do
10915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10916 ac_cv_prog_ac_ct_AS="as"
10917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10926 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10927 if test -n "$ac_ct_AS"; then
10928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10929 $as_echo "$ac_ct_AS" >&6; }
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10932 $as_echo "no" >&6; }
10935 if test "x$ac_ct_AS" = x; then
10938 case $cross_compiling:$ac_tool_warned in
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10942 ac_tool_warned=yes ;;
10947 AS="$ac_cv_prog_AS"
10950 if test -n "$ac_tool_prefix"; then
10951 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10952 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10954 $as_echo_n "checking for $ac_word... " >&6; }
10955 if ${ac_cv_prog_DLLTOOL+:} false; then :
10956 $as_echo_n "(cached) " >&6
10958 if test -n "$DLLTOOL"; then
10959 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10962 for as_dir in $PATH
10965 test -z "$as_dir" && as_dir=.
10966 for ac_exec_ext in '' $ac_executable_extensions; do
10967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10968 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 DLLTOOL=$ac_cv_prog_DLLTOOL
10979 if test -n "$DLLTOOL"; then
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10981 $as_echo "$DLLTOOL" >&6; }
10983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10984 $as_echo "no" >&6; }
10989 if test -z "$ac_cv_prog_DLLTOOL"; then
10990 ac_ct_DLLTOOL=$DLLTOOL
10991 # Extract the first word of "dlltool", so it can be a program name with args.
10992 set dummy dlltool; ac_word=$2
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10994 $as_echo_n "checking for $ac_word... " >&6; }
10995 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10996 $as_echo_n "(cached) " >&6
10998 if test -n "$ac_ct_DLLTOOL"; then
10999 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11002 for as_dir in $PATH
11005 test -z "$as_dir" && as_dir=.
11006 for ac_exec_ext in '' $ac_executable_extensions; do
11007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11008 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11018 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11019 if test -n "$ac_ct_DLLTOOL"; then
11020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11021 $as_echo "$ac_ct_DLLTOOL" >&6; }
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11024 $as_echo "no" >&6; }
11027 if test "x$ac_ct_DLLTOOL" = x; then
11030 case $cross_compiling:$ac_tool_warned in
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11033 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11034 ac_tool_warned=yes ;;
11036 DLLTOOL=$ac_ct_DLLTOOL
11039 DLLTOOL="$ac_cv_prog_DLLTOOL"
11042 if test -n "$ac_tool_prefix"; then
11043 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11044 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11046 $as_echo_n "checking for $ac_word... " >&6; }
11047 if ${ac_cv_prog_OBJDUMP+:} false; then :
11048 $as_echo_n "(cached) " >&6
11050 if test -n "$OBJDUMP"; then
11051 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11054 for as_dir in $PATH
11057 test -z "$as_dir" && as_dir=.
11058 for ac_exec_ext in '' $ac_executable_extensions; do
11059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11060 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11070 OBJDUMP=$ac_cv_prog_OBJDUMP
11071 if test -n "$OBJDUMP"; then
11072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11073 $as_echo "$OBJDUMP" >&6; }
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11076 $as_echo "no" >&6; }
11081 if test -z "$ac_cv_prog_OBJDUMP"; then
11082 ac_ct_OBJDUMP=$OBJDUMP
11083 # Extract the first word of "objdump", so it can be a program name with args.
11084 set dummy objdump; ac_word=$2
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11086 $as_echo_n "checking for $ac_word... " >&6; }
11087 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11088 $as_echo_n "(cached) " >&6
11090 if test -n "$ac_ct_OBJDUMP"; then
11091 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11094 for as_dir in $PATH
11097 test -z "$as_dir" && as_dir=.
11098 for ac_exec_ext in '' $ac_executable_extensions; do
11099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11100 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11110 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11111 if test -n "$ac_ct_OBJDUMP"; then
11112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11113 $as_echo "$ac_ct_OBJDUMP" >&6; }
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11116 $as_echo "no" >&6; }
11119 if test "x$ac_ct_OBJDUMP" = x; then
11122 case $cross_compiling:$ac_tool_warned in
11124 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11125 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11126 ac_tool_warned=yes ;;
11128 OBJDUMP=$ac_ct_OBJDUMP
11131 OBJDUMP="$ac_cv_prog_OBJDUMP"
11137 test -z "$AS" && AS=as
11143 test -z "$DLLTOOL" && DLLTOOL=dlltool
11149 test -z "$OBJDUMP" && OBJDUMP=objdump
11161 # Check whether --enable-shared was given.
11162 if test "${enable_shared+set}" = set; then :
11163 enableval=$enable_shared; p=${PACKAGE-default}
11165 yes) enable_shared=yes ;;
11166 no) enable_shared=no ;;
11169 # Look at the argument we got. We use all the common list separators.
11170 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11171 for pkg in $enableval; do
11173 if test "X$pkg" = "X$p"; then
11192 # Check whether --enable-static was given.
11193 if test "${enable_static+set}" = set; then :
11194 enableval=$enable_static; p=${PACKAGE-default}
11196 yes) enable_static=yes ;;
11197 no) enable_static=no ;;
11200 # Look at the argument we got. We use all the common list separators.
11201 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11202 for pkg in $enableval; do
11204 if test "X$pkg" = "X$p"; then
11224 # Check whether --with-pic was given.
11225 if test "${with_pic+set}" = set; then :
11226 withval=$with_pic; lt_p=${PACKAGE-default}
11228 yes|no) pic_mode=$withval ;;
11231 # Look at the argument we got. We use all the common list separators.
11232 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11233 for lt_pkg in $withval; do
11235 if test "X$lt_pkg" = "X$lt_p"; then
11253 # Check whether --enable-fast-install was given.
11254 if test "${enable_fast_install+set}" = set; then :
11255 enableval=$enable_fast_install; p=${PACKAGE-default}
11257 yes) enable_fast_install=yes ;;
11258 no) enable_fast_install=no ;;
11260 enable_fast_install=no
11261 # Look at the argument we got. We use all the common list separators.
11262 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11263 for pkg in $enableval; do
11265 if test "X$pkg" = "X$p"; then
11266 enable_fast_install=yes
11273 enable_fast_install=yes
11283 shared_archive_member_spec=
11284 case $host,$enable_shared in
11285 power*-*-aix[5-9]*,yes)
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11287 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11289 # Check whether --with-aix-soname was given.
11290 if test "${with_aix_soname+set}" = set; then :
11291 withval=$with_aix_soname; case $withval in
11295 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11298 lt_cv_with_aix_soname=$with_aix_soname
11300 if ${lt_cv_with_aix_soname+:} false; then :
11301 $as_echo_n "(cached) " >&6
11303 lt_cv_with_aix_soname=aix
11306 with_aix_soname=$lt_cv_with_aix_soname
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11310 $as_echo "$with_aix_soname" >&6; }
11311 if test aix != "$with_aix_soname"; then
11312 # For the AIX way of multilib, we name the shared archive member
11313 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11314 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11315 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11316 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11317 if test 64 = "${OBJECT_MODE-32}"; then
11318 shared_archive_member_spec=shr_64
11320 shared_archive_member_spec=shr
11325 with_aix_soname=aix
11338 # This can be used to rebuild libtool when needed
11339 LIBTOOL_DEPS=$ltmain
11341 # Always use our own libtool.
11342 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11373 test -z "$LN_S" && LN_S="ln -s"
11388 if test -n "${ZSH_VERSION+set}"; then
11389 setopt NO_GLOB_SUBST
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11393 $as_echo_n "checking for objdir... " >&6; }
11394 if ${lt_cv_objdir+:} false; then :
11395 $as_echo_n "(cached) " >&6
11397 rm -f .libs 2>/dev/null
11398 mkdir .libs 2>/dev/null
11399 if test -d .libs; then
11402 # MS-DOS does not allow filenames that begin with a dot.
11405 rmdir .libs 2>/dev/null
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11408 $as_echo "$lt_cv_objdir" >&6; }
11409 objdir=$lt_cv_objdir
11415 cat >>confdefs.h <<_ACEOF
11416 #define LT_OBJDIR "$lt_cv_objdir/"
11424 # AIX sometimes has problems with the GCC collect2 program. For some
11425 # reason, if we set the COLLECT_NAMES environment variable, the problems
11426 # vanish in a puff of smoke.
11427 if test set != "${COLLECT_NAMES+set}"; then
11429 export COLLECT_NAMES
11434 # Global variables:
11436 can_build_shared=yes
11438 # All known linkers require a '.a' archive for static linking (except MSVC,
11439 # which needs '.lib').
11442 with_gnu_ld=$lt_cv_prog_gnu_ld
11447 # Set sane defaults for various variables
11448 test -z "$CC" && CC=cc
11449 test -z "$LTCC" && LTCC=$CC
11450 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11451 test -z "$LD" && LD=ld
11452 test -z "$ac_objext" && ac_objext=o
11454 func_cc_basename $compiler
11455 cc_basename=$func_cc_basename_result
11458 # Only perform the check for file, if the check method requires it
11459 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11460 case $deplibs_check_method in
11462 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11464 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11465 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11466 $as_echo_n "(cached) " >&6
11470 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11473 lt_save_MAGIC_CMD=$MAGIC_CMD
11474 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11475 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11476 for ac_dir in $ac_dummy; do
11478 test -z "$ac_dir" && ac_dir=.
11479 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11480 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11481 if test -n "$file_magic_test_file"; then
11482 case $deplibs_check_method in
11484 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11485 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11486 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11487 $EGREP "$file_magic_regex" > /dev/null; then
11492 *** Warning: the command libtool uses to detect shared libraries,
11493 *** $file_magic_cmd, produces output that libtool cannot recognize.
11494 *** The result is that libtool may fail to recognize shared libraries
11495 *** as such. This will affect the creation of libtool libraries that
11496 *** depend on shared libraries, but programs linked with such libtool
11497 *** libraries will work regardless of this problem. Nevertheless, you
11498 *** may want to report the problem to your system manager and/or to
11499 *** bug-libtool@gnu.org
11509 MAGIC_CMD=$lt_save_MAGIC_CMD
11514 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11515 if test -n "$MAGIC_CMD"; then
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11517 $as_echo "$MAGIC_CMD" >&6; }
11519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11520 $as_echo "no" >&6; }
11527 if test -z "$lt_cv_path_MAGIC_CMD"; then
11528 if test -n "$ac_tool_prefix"; then
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11530 $as_echo_n "checking for file... " >&6; }
11531 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11532 $as_echo_n "(cached) " >&6
11536 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11539 lt_save_MAGIC_CMD=$MAGIC_CMD
11540 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11541 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11542 for ac_dir in $ac_dummy; do
11544 test -z "$ac_dir" && ac_dir=.
11545 if test -f "$ac_dir/file"; then
11546 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11547 if test -n "$file_magic_test_file"; then
11548 case $deplibs_check_method in
11550 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11551 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11552 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11553 $EGREP "$file_magic_regex" > /dev/null; then
11558 *** Warning: the command libtool uses to detect shared libraries,
11559 *** $file_magic_cmd, produces output that libtool cannot recognize.
11560 *** The result is that libtool may fail to recognize shared libraries
11561 *** as such. This will affect the creation of libtool libraries that
11562 *** depend on shared libraries, but programs linked with such libtool
11563 *** libraries will work regardless of this problem. Nevertheless, you
11564 *** may want to report the problem to your system manager and/or to
11565 *** bug-libtool@gnu.org
11575 MAGIC_CMD=$lt_save_MAGIC_CMD
11580 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11581 if test -n "$MAGIC_CMD"; then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11583 $as_echo "$MAGIC_CMD" >&6; }
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11586 $as_echo "no" >&6; }
11599 # Use C for the default configuration in the libtool script
11603 ac_cpp='$CPP $CPPFLAGS'
11604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11609 # Source file extension for C test sources.
11612 # Object file extension for compiled C test sources.
11616 # Code to be used in simple compile tests
11617 lt_simple_compile_test_code="int some_variable = 0;"
11619 # Code to be used in simple link tests
11620 lt_simple_link_test_code='int main(){return(0);}'
11628 # If no C compiler was specified, use CC.
11631 # If no C compiler flags were specified, use CFLAGS.
11632 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11634 # Allow CC to be a program name with arguments.
11637 # Save the default compiler, since it gets overwritten when the other
11638 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11639 compiler_DEFAULT=$CC
11641 # save warnings/boilerplate of simple test code
11642 ac_outfile=conftest.$ac_objext
11643 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11644 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11645 _lt_compiler_boilerplate=`cat conftest.err`
11648 ac_outfile=conftest.$ac_objext
11649 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11650 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11651 _lt_linker_boilerplate=`cat conftest.err`
11656 ## There is no encapsulation within the following macros, do not change
11657 ## the running order or otherwise move them around unless you know exactly
11658 ## what you are doing...
11659 if test -n "$compiler"; then
11661 lt_prog_compiler_no_builtin_flag=
11663 if test yes = "$GCC"; then
11664 case $cc_basename in
11666 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11668 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11672 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11673 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11674 $as_echo_n "(cached) " >&6
11676 lt_cv_prog_compiler_rtti_exceptions=no
11677 ac_outfile=conftest.$ac_objext
11678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11679 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11680 # Insert the option either (1) after the last *FLAGS variable, or
11681 # (2) before a word containing "conftest.", or (3) at the end.
11682 # Note that $ac_compile itself does not contain backslashes and begins
11683 # with a dollar sign (not a hyphen), so the echo should work correctly.
11684 # The option is referenced via a variable to avoid confusing sed.
11685 lt_compile=`echo "$ac_compile" | $SED \
11686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11688 -e 's:$: $lt_compiler_flag:'`
11689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11690 (eval "$lt_compile" 2>conftest.err)
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 if (exit $ac_status) && test -s "$ac_outfile"; then
11695 # The compiler can only warn and ignore the option if not recognized
11696 # So say no if there are warnings other than the usual output.
11697 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11698 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11699 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11700 lt_cv_prog_compiler_rtti_exceptions=yes
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11707 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11709 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11710 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11722 lt_prog_compiler_wl=
11723 lt_prog_compiler_pic=
11724 lt_prog_compiler_static=
11727 if test yes = "$GCC"; then
11728 lt_prog_compiler_wl='-Wl,'
11729 lt_prog_compiler_static='-static'
11733 # All AIX code is PIC.
11734 if test ia64 = "$host_cpu"; then
11735 # AIX 5 now supports IA64 processor
11736 lt_prog_compiler_static='-Bstatic'
11738 lt_prog_compiler_pic='-fPIC'
11744 # see comment about AmigaOS4 .so support
11745 lt_prog_compiler_pic='-fPIC'
11748 # FIXME: we need at least 68020 code to build shared libraries, but
11749 # adding the '-m68020' flag to GCC prevents building anything better,
11751 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11756 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11757 # PIC is the default for these OSes.
11760 mingw* | cygwin* | pw32* | os2* | cegcc*)
11761 # This hack is so that the source file can tell whether it is being
11762 # built for inclusion in a dll (and should export symbols for example).
11763 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11764 # (--disable-auto-import) libraries
11765 lt_prog_compiler_pic='-DDLL_EXPORT'
11768 lt_prog_compiler_static='$wl-static'
11773 darwin* | rhapsody*)
11774 # PIC is the default on this platform
11775 # Common symbols not allowed in MH_DYLIB files
11776 lt_prog_compiler_pic='-fno-common'
11780 # PIC is the default for Haiku.
11781 # The "-static" flag exists, but is broken.
11782 lt_prog_compiler_static=
11786 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11787 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11788 # sets the default TLS model and affects inlining.
11794 lt_prog_compiler_pic='-fPIC'
11800 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11801 # Instead, we relocate shared libraries at runtime.
11805 # Just because we use GCC doesn't mean we suddenly get shared libraries
11806 # on systems that don't support them.
11807 lt_prog_compiler_can_build_shared=no
11812 # QNX uses GNU C++, but need to define -shared option too, otherwise
11813 # it will coredump.
11814 lt_prog_compiler_pic='-fPIC -shared'
11818 if test -d /usr/nec; then
11819 lt_prog_compiler_pic=-Kconform_pic
11824 lt_prog_compiler_pic='-fPIC'
11828 case $cc_basename in
11829 nvcc*) # Cuda Compiler Driver 2.2
11830 lt_prog_compiler_wl='-Xlinker '
11831 if test -n "$lt_prog_compiler_pic"; then
11832 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11837 # PORTME Check for flag to pass linker flags through the system compiler.
11840 lt_prog_compiler_wl='-Wl,'
11841 if test ia64 = "$host_cpu"; then
11842 # AIX 5 now supports IA64 processor
11843 lt_prog_compiler_static='-Bstatic'
11845 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11849 darwin* | rhapsody*)
11850 # PIC is the default on this platform
11851 # Common symbols not allowed in MH_DYLIB files
11852 lt_prog_compiler_pic='-fno-common'
11853 case $cc_basename in
11855 # NAG Fortran compiler
11856 lt_prog_compiler_wl='-Wl,-Wl,,'
11857 lt_prog_compiler_pic='-PIC'
11858 lt_prog_compiler_static='-Bstatic'
11863 mingw* | cygwin* | pw32* | os2* | cegcc*)
11864 # This hack is so that the source file can tell whether it is being
11865 # built for inclusion in a dll (and should export symbols for example).
11866 lt_prog_compiler_pic='-DDLL_EXPORT'
11869 lt_prog_compiler_static='$wl-static'
11874 hpux9* | hpux10* | hpux11*)
11875 lt_prog_compiler_wl='-Wl,'
11876 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11877 # not for PA HP-UX.
11883 lt_prog_compiler_pic='+Z'
11886 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11887 lt_prog_compiler_static='$wl-a ${wl}archive'
11890 irix5* | irix6* | nonstopux*)
11891 lt_prog_compiler_wl='-Wl,'
11892 # PIC (with -KPIC) is the default.
11893 lt_prog_compiler_static='-non_shared'
11896 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11897 case $cc_basename in
11898 # old Intel for x86_64, which still supported -KPIC.
11900 lt_prog_compiler_wl='-Wl,'
11901 lt_prog_compiler_pic='-KPIC'
11902 lt_prog_compiler_static='-static'
11904 # flang / f18. f95 an alias for gfortran or flang on Debian
11905 flang* | f18* | f95*)
11906 lt_prog_compiler_wl='-Wl,'
11907 lt_prog_compiler_pic='-fPIC'
11908 lt_prog_compiler_static='-static'
11910 # icc used to be incompatible with GCC.
11911 # ICC 10 doesn't accept -KPIC any more.
11913 lt_prog_compiler_wl='-Wl,'
11914 lt_prog_compiler_pic='-fPIC'
11915 lt_prog_compiler_static='-static'
11917 # Lahey Fortran 8.1.
11919 lt_prog_compiler_wl='-Wl,'
11920 lt_prog_compiler_pic='--shared'
11921 lt_prog_compiler_static='--static'
11924 # NAG Fortran compiler
11925 lt_prog_compiler_wl='-Wl,-Wl,,'
11926 lt_prog_compiler_pic='-PIC'
11927 lt_prog_compiler_static='-Bstatic'
11930 # Fabrice Bellard et al's Tiny C Compiler
11931 lt_prog_compiler_wl='-Wl,'
11932 lt_prog_compiler_pic='-fPIC'
11933 lt_prog_compiler_static='-static'
11935 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11936 # Portland Group compilers (*not* the Pentium gcc compiler,
11937 # which looks to be a dead project)
11938 lt_prog_compiler_wl='-Wl,'
11939 lt_prog_compiler_pic='-fpic'
11940 lt_prog_compiler_static='-Bstatic'
11943 lt_prog_compiler_wl='-Wl,'
11944 # All Alpha code is PIC.
11945 lt_prog_compiler_static='-non_shared'
11947 xl* | bgxl* | bgf* | mpixl*)
11948 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11949 lt_prog_compiler_wl='-Wl,'
11950 lt_prog_compiler_pic='-qpic'
11951 lt_prog_compiler_static='-qstaticlink'
11954 case `$CC -V 2>&1 | sed 5q` in
11955 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11956 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11957 lt_prog_compiler_pic='-KPIC'
11958 lt_prog_compiler_static='-Bstatic'
11959 lt_prog_compiler_wl=''
11961 *Sun\ F* | *Sun*Fortran*)
11962 lt_prog_compiler_pic='-KPIC'
11963 lt_prog_compiler_static='-Bstatic'
11964 lt_prog_compiler_wl='-Qoption ld '
11968 lt_prog_compiler_pic='-KPIC'
11969 lt_prog_compiler_static='-Bstatic'
11970 lt_prog_compiler_wl='-Wl,'
11972 *Intel*\ [CF]*Compiler*)
11973 lt_prog_compiler_wl='-Wl,'
11974 lt_prog_compiler_pic='-fPIC'
11975 lt_prog_compiler_static='-static'
11978 lt_prog_compiler_wl='-Wl,'
11979 lt_prog_compiler_pic='-fpic'
11980 lt_prog_compiler_static='-Bstatic'
11988 lt_prog_compiler_pic='-KPIC'
11989 lt_prog_compiler_static='-Bstatic'
11993 # QNX uses GNU C++, but need to define -shared option too, otherwise
11994 # it will coredump.
11995 lt_prog_compiler_pic='-fPIC -shared'
11998 osf3* | osf4* | osf5*)
11999 lt_prog_compiler_wl='-Wl,'
12000 # All OSF/1 code is PIC.
12001 lt_prog_compiler_static='-non_shared'
12005 lt_prog_compiler_static='-non_shared'
12009 lt_prog_compiler_pic='-KPIC'
12010 lt_prog_compiler_static='-Bstatic'
12011 case $cc_basename in
12012 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12013 lt_prog_compiler_wl='-Qoption ld ';;
12015 lt_prog_compiler_wl='-Wl,';;
12020 lt_prog_compiler_wl='-Qoption ld '
12021 lt_prog_compiler_pic='-PIC'
12022 lt_prog_compiler_static='-Bstatic'
12025 sysv4 | sysv4.2uw2* | sysv4.3*)
12026 lt_prog_compiler_wl='-Wl,'
12027 lt_prog_compiler_pic='-KPIC'
12028 lt_prog_compiler_static='-Bstatic'
12032 if test -d /usr/nec; then
12033 lt_prog_compiler_pic='-Kconform_pic'
12034 lt_prog_compiler_static='-Bstatic'
12038 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12039 lt_prog_compiler_wl='-Wl,'
12040 lt_prog_compiler_pic='-KPIC'
12041 lt_prog_compiler_static='-Bstatic'
12045 lt_prog_compiler_wl='-Wl,'
12046 lt_prog_compiler_can_build_shared=no
12050 lt_prog_compiler_pic='-pic'
12051 lt_prog_compiler_static='-Bstatic'
12055 lt_prog_compiler_can_build_shared=no
12061 # For platforms that do not support PIC, -DPIC is meaningless:
12063 lt_prog_compiler_pic=
12066 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12071 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12072 if ${lt_cv_prog_compiler_pic+:} false; then :
12073 $as_echo_n "(cached) " >&6
12075 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12078 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12079 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12082 # Check to make sure the PIC flag actually works.
12084 if test -n "$lt_prog_compiler_pic"; then
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12086 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12087 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12088 $as_echo_n "(cached) " >&6
12090 lt_cv_prog_compiler_pic_works=no
12091 ac_outfile=conftest.$ac_objext
12092 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12093 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12094 # Insert the option either (1) after the last *FLAGS variable, or
12095 # (2) before a word containing "conftest.", or (3) at the end.
12096 # Note that $ac_compile itself does not contain backslashes and begins
12097 # with a dollar sign (not a hyphen), so the echo should work correctly.
12098 # The option is referenced via a variable to avoid confusing sed.
12099 lt_compile=`echo "$ac_compile" | $SED \
12100 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12101 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12102 -e 's:$: $lt_compiler_flag:'`
12103 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12104 (eval "$lt_compile" 2>conftest.err)
12106 cat conftest.err >&5
12107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12108 if (exit $ac_status) && test -s "$ac_outfile"; then
12109 # The compiler can only warn and ignore the option if not recognized
12110 # So say no if there are warnings other than the usual output.
12111 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12113 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12114 lt_cv_prog_compiler_pic_works=yes
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12121 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12123 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12124 case $lt_prog_compiler_pic in
12126 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12129 lt_prog_compiler_pic=
12130 lt_prog_compiler_can_build_shared=no
12146 # Check to make sure the static flag actually works.
12148 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12150 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12151 if ${lt_cv_prog_compiler_static_works+:} false; then :
12152 $as_echo_n "(cached) " >&6
12154 lt_cv_prog_compiler_static_works=no
12155 save_LDFLAGS=$LDFLAGS
12156 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12157 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12158 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12159 # The linker can only warn and ignore the option if not recognized
12160 # So say no if there are warnings
12161 if test -s conftest.err; then
12162 # Append any errors to the config.log.
12163 cat conftest.err 1>&5
12164 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12165 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12166 if diff conftest.exp conftest.er2 >/dev/null; then
12167 lt_cv_prog_compiler_static_works=yes
12170 lt_cv_prog_compiler_static_works=yes
12174 LDFLAGS=$save_LDFLAGS
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12178 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12180 if test yes = "$lt_cv_prog_compiler_static_works"; then
12183 lt_prog_compiler_static=
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12193 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12194 if ${lt_cv_prog_compiler_c_o+:} false; then :
12195 $as_echo_n "(cached) " >&6
12197 lt_cv_prog_compiler_c_o=no
12198 $RM -r conftest 2>/dev/null
12202 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12204 lt_compiler_flag="-o out/conftest2.$ac_objext"
12205 # Insert the option either (1) after the last *FLAGS variable, or
12206 # (2) before a word containing "conftest.", or (3) at the end.
12207 # Note that $ac_compile itself does not contain backslashes and begins
12208 # with a dollar sign (not a hyphen), so the echo should work correctly.
12209 lt_compile=`echo "$ac_compile" | $SED \
12210 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12211 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12212 -e 's:$: $lt_compiler_flag:'`
12213 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12214 (eval "$lt_compile" 2>out/conftest.err)
12216 cat out/conftest.err >&5
12217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12218 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12220 # The compiler can only warn and ignore the option if not recognized
12221 # So say no if there are warnings
12222 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12223 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12224 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12225 lt_cv_prog_compiler_c_o=yes
12230 # SGI C++ compiler will create directory out/ii_files/ for
12231 # template instantiation
12232 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12233 $RM out/* && rmdir out
12239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12240 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12248 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12249 if ${lt_cv_prog_compiler_c_o+:} false; then :
12250 $as_echo_n "(cached) " >&6
12252 lt_cv_prog_compiler_c_o=no
12253 $RM -r conftest 2>/dev/null
12257 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12259 lt_compiler_flag="-o out/conftest2.$ac_objext"
12260 # Insert the option either (1) after the last *FLAGS variable, or
12261 # (2) before a word containing "conftest.", or (3) at the end.
12262 # Note that $ac_compile itself does not contain backslashes and begins
12263 # with a dollar sign (not a hyphen), so the echo should work correctly.
12264 lt_compile=`echo "$ac_compile" | $SED \
12265 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12266 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12267 -e 's:$: $lt_compiler_flag:'`
12268 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12269 (eval "$lt_compile" 2>out/conftest.err)
12271 cat out/conftest.err >&5
12272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12273 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12275 # The compiler can only warn and ignore the option if not recognized
12276 # So say no if there are warnings
12277 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12278 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12279 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12280 lt_cv_prog_compiler_c_o=yes
12285 # SGI C++ compiler will create directory out/ii_files/ for
12286 # template instantiation
12287 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12288 $RM out/* && rmdir out
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12295 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12300 hard_links=nottested
12301 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12302 # do not overwrite the value of need_locks provided by the user
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12304 $as_echo_n "checking if we can lock with hard links... " >&6; }
12307 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12309 ln conftest.a conftest.b 2>&5 || hard_links=no
12310 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12312 $as_echo "$hard_links" >&6; }
12313 if test no = "$hard_links"; then
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12315 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12328 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12331 allow_undefined_flag=
12332 always_export_symbols=no
12334 archive_expsym_cmds=
12335 compiler_needs_object=no
12336 enable_shared_with_static_runtimes=no
12337 export_dynamic_flag_spec=
12338 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12339 hardcode_automatic=no
12341 hardcode_direct_absolute=no
12342 hardcode_libdir_flag_spec=
12343 hardcode_libdir_separator=
12344 hardcode_minus_L=no
12345 hardcode_shlibpath_var=unsupported
12347 link_all_deplibs=unknown
12349 module_expsym_cmds=
12350 old_archive_from_new_cmds=
12351 old_archive_from_expsyms_cmds=
12352 thread_safe_flag_spec=
12353 whole_archive_flag_spec=
12354 # include_expsyms should be a list of space-separated symbols to be *always*
12355 # included in the symbol list
12357 # exclude_expsyms can be an extended regexp of symbols to exclude
12358 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12359 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12360 # as well as any symbol that contains 'd'.
12361 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12362 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12363 # platforms (ab)use it in PIC code, but their linkers get confused if
12364 # the symbol is explicitly referenced. Since portable code cannot
12365 # rely on this symbol name, it's probably fine to never include it in
12366 # preloaded symbol tables.
12367 # Exclude shared library initialization/finalization symbols.
12368 extract_expsyms_cmds=
12371 cygwin* | mingw* | pw32* | cegcc*)
12372 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12373 # When not using gcc, we currently assume that we are using
12374 # Microsoft Visual C++.
12375 if test yes != "$GCC"; then
12380 # we just hope/assume this is gcc and not c89 (= MSVC++)
12383 openbsd* | bitrig*)
12386 linux* | k*bsd*-gnu | gnu*)
12387 link_all_deplibs=no
12393 # On some targets, GNU ld is compatible enough with the native linker
12394 # that we're better off using the native interface for both.
12395 lt_use_gnu_ld_interface=no
12396 if test yes = "$with_gnu_ld"; then
12399 # The AIX port of GNU ld has always aspired to compatibility
12400 # with the native linker. However, as the warning in the GNU ld
12401 # block says, versions before 2.19.5* couldn't really create working
12402 # shared libraries, regardless of the interface used.
12403 case `$LD -v 2>&1` in
12404 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12405 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12406 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12408 lt_use_gnu_ld_interface=yes
12413 lt_use_gnu_ld_interface=yes
12418 if test yes = "$lt_use_gnu_ld_interface"; then
12419 # If archive_cmds runs LD, not CC, wlarc should be empty
12422 # Set some defaults for GNU ld with shared library support. These
12423 # are reset later if shared libraries are not supported. Putting them
12424 # here allows them to be overridden if necessary.
12425 runpath_var=LD_RUN_PATH
12426 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12427 export_dynamic_flag_spec='$wl--export-dynamic'
12428 # ancient GNU ld didn't support --whole-archive et. al.
12429 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12430 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12432 whole_archive_flag_spec=
12434 supports_anon_versioning=no
12435 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12436 *GNU\ gold*) supports_anon_versioning=yes ;;
12437 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12438 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12439 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12440 *\ 2.11.*) ;; # other 2.11 versions
12441 *) supports_anon_versioning=yes ;;
12444 # See if GNU ld supports shared libraries.
12447 # On AIX/PPC, the GNU linker is very broken
12448 if test ia64 != "$host_cpu"; then
12452 *** Warning: the GNU linker, at least up to release 2.19, is reported
12453 *** to be unable to reliably create shared libraries on AIX.
12454 *** Therefore, libtool is disabling shared libraries support. If you
12455 *** really care for shared libraries, you may want to install binutils
12456 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12457 *** You will then need to restart the configuration process.
12466 # see comment about AmigaOS4 .so support
12467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12468 archive_expsym_cmds=''
12471 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)'
12472 hardcode_libdir_flag_spec='-L$libdir'
12473 hardcode_minus_L=yes
12479 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12480 allow_undefined_flag=unsupported
12481 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12482 # support --undefined. This deserves some investigation. FIXME
12483 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12489 cygwin* | mingw* | pw32* | cegcc*)
12490 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12491 # as there is no search path for DLLs.
12492 hardcode_libdir_flag_spec='-L$libdir'
12493 export_dynamic_flag_spec='$wl--export-all-symbols'
12494 allow_undefined_flag=unsupported
12495 always_export_symbols=no
12496 enable_shared_with_static_runtimes=yes
12497 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'
12498 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12500 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12501 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12502 # If the export-symbols file already is a .def file, use it as
12503 # is; otherwise, prepend EXPORTS...
12504 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12505 cp $export_symbols $output_objdir/$soname.def;
12507 echo EXPORTS > $output_objdir/$soname.def;
12508 cat $export_symbols >> $output_objdir/$soname.def;
12510 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12517 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12518 link_all_deplibs=yes
12522 hardcode_libdir_flag_spec='-L$libdir'
12523 hardcode_minus_L=yes
12524 allow_undefined_flag=unsupported
12526 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12527 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12528 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12529 $ECHO EXPORTS >> $output_objdir/$libname.def~
12530 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12531 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12532 emximp -o $lib $output_objdir/$libname.def'
12533 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12534 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12535 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12536 $ECHO EXPORTS >> $output_objdir/$libname.def~
12537 prefix_cmds="$SED"~
12538 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12539 prefix_cmds="$prefix_cmds -e 1d";
12541 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12542 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12543 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12544 emximp -o $lib $output_objdir/$libname.def'
12545 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12546 enable_shared_with_static_runtimes=yes
12551 hardcode_shlibpath_var=no
12552 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12553 export_dynamic_flag_spec='$wl-E'
12554 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12555 # Instead, shared libraries are loaded at an image base (0x10000000 by
12556 # default) and relocated if they conflict, which is a slow very memory
12557 # consuming and fragmenting process. To avoid this, we pick a random,
12558 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12559 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12560 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12561 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'
12564 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12566 if test linux-dietlibc = "$host_os"; then
12567 case $cc_basename in
12568 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12571 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12572 && test no = "$tmp_diet"
12574 tmp_addflag=' $pic_flag'
12575 tmp_sharedflag='-shared'
12576 case $cc_basename,$host_cpu in
12577 pgcc*) # Portland Group C compiler
12578 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'
12579 tmp_addflag=' $pic_flag'
12581 pgf77* | pgf90* | pgf95* | pgfortran*)
12582 # Portland Group f77 and f90 compilers
12583 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'
12584 tmp_addflag=' $pic_flag -Mnomain' ;;
12585 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12586 tmp_addflag=' -i_dynamic' ;;
12587 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12588 tmp_addflag=' -i_dynamic -nofor_main' ;;
12589 ifc* | ifort*) # Intel Fortran compiler
12590 tmp_addflag=' -nofor_main' ;;
12591 lf95*) # Lahey Fortran 8.1
12592 whole_archive_flag_spec=
12593 tmp_sharedflag='--shared' ;;
12594 nagfor*) # NAGFOR 5.3
12595 tmp_sharedflag='-Wl,-shared' ;;
12596 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12597 tmp_sharedflag='-qmkshrobj'
12599 nvcc*) # Cuda Compiler Driver 2.2
12600 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'
12601 compiler_needs_object=yes
12604 case `$CC -V 2>&1 | sed 5q` in
12605 *Sun\ C*) # Sun C 5.9
12606 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'
12607 compiler_needs_object=yes
12608 tmp_sharedflag='-G' ;;
12609 *Sun\ F*) # Sun Fortran 8.3
12610 tmp_sharedflag='-G' ;;
12612 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12614 if test yes = "$supports_anon_versioning"; then
12615 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12616 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12617 echo "local: *; };" >> $output_objdir/$libname.ver~
12618 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12621 case $cc_basename in
12623 export_dynamic_flag_spec='-rdynamic'
12625 xlf* | bgf* | bgxlf* | mpixlf*)
12626 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12627 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12628 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12629 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12630 if test yes = "$supports_anon_versioning"; then
12631 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12632 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12633 echo "local: *; };" >> $output_objdir/$libname.ver~
12634 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12643 netbsd* | netbsdelf*-gnu)
12644 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12645 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12648 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12649 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12654 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12658 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12659 *** create shared libraries on Solaris systems. Therefore, libtool
12660 *** is disabling shared libraries support. We urge you to upgrade GNU
12661 *** binutils to release 2.9.1 or newer. Another option is to modify
12662 *** your PATH or compiler configuration so that the native linker is
12663 *** used, and then restart.
12666 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12667 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12668 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12674 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12675 case `$LD -v 2>&1` in
12676 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12680 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12681 *** reliably create shared libraries on SCO systems. Therefore, libtool
12682 *** is disabling shared libraries support. We urge you to upgrade GNU
12683 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12684 *** your PATH or compiler configuration so that the native linker is
12685 *** used, and then restart.
12690 # For security reasons, it is highly recommended that you always
12691 # use absolute paths for naming shared libraries, and exclude the
12692 # DT_RUNPATH tag from executables and libraries. But doing so
12693 # requires that you compile everything twice, which is a pain.
12694 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12695 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12696 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12697 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12706 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12708 hardcode_direct=yes
12709 hardcode_shlibpath_var=no
12713 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12714 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12715 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12722 if test no = "$ld_shlibs"; then
12724 hardcode_libdir_flag_spec=
12725 export_dynamic_flag_spec=
12726 whole_archive_flag_spec=
12729 # PORTME fill in a description of your system's linker (not GNU ld)
12732 allow_undefined_flag=unsupported
12733 always_export_symbols=yes
12734 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'
12735 # Note: this linker hardcodes the directories in LIBPATH if there
12736 # are no directories specified by -L.
12737 hardcode_minus_L=yes
12738 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12739 # Neither direct hardcoding nor static linking is supported with a
12741 hardcode_direct=unsupported
12746 if test ia64 = "$host_cpu"; then
12747 # On IA64, the linker does run time linking by default, so we don't
12748 # have to do anything special.
12749 aix_use_runtimelinking=no
12750 exp_sym_flag='-Bexport'
12753 # If we're using GNU nm, then we don't want the "-C" option.
12754 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12755 # Without the "-l" option, or with the "-B" option, AIX nm treats
12756 # weak defined symbols like other global defined symbols, whereas
12757 # GNU nm marks them as "W".
12758 # While the 'weak' keyword is ignored in the Export File, we need
12759 # it in the Import File for the 'aix-soname' feature, so we have
12760 # to replace the "-B" option with "-P" for AIX nm.
12761 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12762 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'
12764 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'
12766 aix_use_runtimelinking=no
12768 # Test if we are trying to use run time linking or normal
12769 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12770 # have runtime linking enabled, and use it for executables.
12771 # For shared libraries, we enable/disable runtime linking
12772 # depending on the kind of the shared library created -
12773 # when "with_aix_soname,aix_use_runtimelinking" is:
12774 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12775 # "aix,yes" lib.so shared, rtl:yes, for executables
12776 # lib.a static archive
12777 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12778 # lib.a(lib.so.V) shared, rtl:no, for executables
12779 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12780 # lib.a(lib.so.V) shared, rtl:no
12781 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12782 # lib.a static archive
12783 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12784 for ld_flag in $LDFLAGS; do
12785 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12786 aix_use_runtimelinking=yes
12790 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12791 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12792 # so we don't have lib.a shared libs to link our executables.
12793 # We have to force runtime linking in this case.
12794 aix_use_runtimelinking=yes
12795 LDFLAGS="$LDFLAGS -Wl,-brtl"
12800 exp_sym_flag='-bexport'
12801 no_entry_flag='-bnoentry'
12804 # When large executables or shared objects are built, AIX ld can
12805 # have problems creating the table of contents. If linking a library
12806 # or program results in "error TOC overflow" add -mminimal-toc to
12807 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12808 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12811 hardcode_direct=yes
12812 hardcode_direct_absolute=yes
12813 hardcode_libdir_separator=':'
12814 link_all_deplibs=yes
12815 file_list_spec='$wl-f,'
12816 case $with_aix_soname,$aix_use_runtimelinking in
12817 aix,*) ;; # traditional, no import file
12818 svr4,* | *,yes) # use import file
12819 # The Import File defines what to hardcode.
12821 hardcode_direct_absolute=no
12825 if test yes = "$GCC"; then
12826 case $host_os in aix4.[012]|aix4.[012].*)
12827 # We only want to do this on AIX 4.2 and lower, the check
12828 # below for broken collect2 doesn't work under 4.3+
12829 collect2name=`$CC -print-prog-name=collect2`
12830 if test -f "$collect2name" &&
12831 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12833 # We have reworked collect2
12836 # We have old collect2
12837 hardcode_direct=unsupported
12838 # It fails to find uninstalled libraries when the uninstalled
12839 # path is not listed in the libpath. Setting hardcode_minus_L
12840 # to unsupported forces relinking
12841 hardcode_minus_L=yes
12842 hardcode_libdir_flag_spec='-L$libdir'
12843 hardcode_libdir_separator=
12847 shared_flag='-shared'
12848 if test yes = "$aix_use_runtimelinking"; then
12849 shared_flag="$shared_flag "'$wl-G'
12851 # Need to ensure runtime linking is disabled for the traditional
12852 # shared library, or the linker may eventually find shared libraries
12853 # /with/ Import File - we do not want to mix them.
12854 shared_flag_aix='-shared'
12855 shared_flag_svr4='-shared $wl-G'
12858 if test ia64 = "$host_cpu"; then
12859 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12860 # chokes on -Wl,-G. The following line is correct:
12863 if test yes = "$aix_use_runtimelinking"; then
12864 shared_flag='$wl-G'
12866 shared_flag='$wl-bM:SRE'
12868 shared_flag_aix='$wl-bM:SRE'
12869 shared_flag_svr4='$wl-G'
12873 export_dynamic_flag_spec='$wl-bexpall'
12874 # It seems that -bexpall does not export symbols beginning with
12875 # underscore (_), so it is better to generate a list of symbols to export.
12876 always_export_symbols=yes
12877 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12878 # Warning - without using the other runtime loading flags (-brtl),
12879 # -berok will link without error, but may produce a broken library.
12880 allow_undefined_flag='-berok'
12881 # Determine the default libpath from the value encoded in an
12882 # empty executable.
12883 if test set = "${lt_cv_aix_libpath+set}"; then
12884 aix_libpath=$lt_cv_aix_libpath
12886 if ${lt_cv_aix_libpath_+:} false; then :
12887 $as_echo_n "(cached) " >&6
12889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12890 /* end confdefs.h. */
12899 if ac_fn_c_try_link "$LINENO"; then :
12901 lt_aix_libpath_sed='
12902 /Import File Strings/,/^$/ {
12904 s/^0 *\([^ ]*\) *$/\1/
12908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12909 # Check for a 64-bit object if we didn't find anything.
12910 if test -z "$lt_cv_aix_libpath_"; then
12911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12914 rm -f core conftest.err conftest.$ac_objext \
12915 conftest$ac_exeext conftest.$ac_ext
12916 if test -z "$lt_cv_aix_libpath_"; then
12917 lt_cv_aix_libpath_=/usr/lib:/lib
12922 aix_libpath=$lt_cv_aix_libpath_
12925 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12926 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
12928 if test ia64 = "$host_cpu"; then
12929 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12930 allow_undefined_flag="-z nodefs"
12931 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"
12933 # Determine the default libpath from the value encoded in an
12934 # empty executable.
12935 if test set = "${lt_cv_aix_libpath+set}"; then
12936 aix_libpath=$lt_cv_aix_libpath
12938 if ${lt_cv_aix_libpath_+:} false; then :
12939 $as_echo_n "(cached) " >&6
12941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12942 /* end confdefs.h. */
12951 if ac_fn_c_try_link "$LINENO"; then :
12953 lt_aix_libpath_sed='
12954 /Import File Strings/,/^$/ {
12956 s/^0 *\([^ ]*\) *$/\1/
12960 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12961 # Check for a 64-bit object if we didn't find anything.
12962 if test -z "$lt_cv_aix_libpath_"; then
12963 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12966 rm -f core conftest.err conftest.$ac_objext \
12967 conftest$ac_exeext conftest.$ac_ext
12968 if test -z "$lt_cv_aix_libpath_"; then
12969 lt_cv_aix_libpath_=/usr/lib:/lib
12974 aix_libpath=$lt_cv_aix_libpath_
12977 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12978 # Warning - without using the other run time loading flags,
12979 # -berok will link without error, but may produce a broken library.
12980 no_undefined_flag=' $wl-bernotok'
12981 allow_undefined_flag=' $wl-berok'
12982 if test yes = "$with_gnu_ld"; then
12983 # We only use this code for GNU lds that support --whole-archive.
12984 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12986 # Exported symbols can be pulled into shared objects from archives
12987 whole_archive_flag_spec='$convenience'
12989 archive_cmds_need_lc=yes
12990 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12991 # -brtl affects multiple linker settings, -berok does not and is overridden later
12992 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12993 if test svr4 != "$with_aix_soname"; then
12994 # This is similar to how AIX traditionally builds its shared libraries.
12995 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'
12997 if test aix != "$with_aix_soname"; then
12998 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'
13000 # used by -dlpreopen to get the symbols
13001 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13003 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13011 # see comment about AmigaOS4 .so support
13012 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13013 archive_expsym_cmds=''
13016 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)'
13017 hardcode_libdir_flag_spec='-L$libdir'
13018 hardcode_minus_L=yes
13024 export_dynamic_flag_spec=-rdynamic
13027 cygwin* | mingw* | pw32* | cegcc*)
13028 # When not using gcc, we currently assume that we are using
13029 # Microsoft Visual C++.
13030 # hardcode_libdir_flag_spec is actually meaningless, as there is
13031 # no search path for DLLs.
13032 case $cc_basename in
13035 hardcode_libdir_flag_spec=' '
13036 allow_undefined_flag=unsupported
13037 always_export_symbols=yes
13039 # Tell ltmain to make .lib files, not .a files.
13041 # Tell ltmain to make .dll files, not .so files.
13043 # FIXME: Setting linknames here is a bad hack.
13044 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13045 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13046 cp "$export_symbols" "$output_objdir/$soname.def";
13047 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13049 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13051 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13053 # The linker will not automatically build a static lib if we build a DLL.
13054 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13055 enable_shared_with_static_runtimes=yes
13056 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13057 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13059 old_postinstall_cmds='chmod 644 $oldlib'
13060 postlink_cmds='lt_outputfile="@OUTPUT@"~
13061 lt_tool_outputfile="@TOOL_OUTPUT@"~
13062 case $lt_outputfile in
13065 lt_outputfile=$lt_outputfile.exe
13066 lt_tool_outputfile=$lt_tool_outputfile.exe
13069 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13070 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13071 $RM "$lt_outputfile.manifest";
13075 # Assume MSVC wrapper
13076 hardcode_libdir_flag_spec=' '
13077 allow_undefined_flag=unsupported
13078 # Tell ltmain to make .lib files, not .a files.
13080 # Tell ltmain to make .dll files, not .so files.
13082 # FIXME: Setting linknames here is a bad hack.
13083 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13084 # The linker will automatically build a .lib file if we build a DLL.
13085 old_archive_from_new_cmds='true'
13086 # FIXME: Should let the user specify the lib program.
13087 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13088 enable_shared_with_static_runtimes=yes
13093 darwin* | rhapsody*)
13096 archive_cmds_need_lc=no
13098 hardcode_automatic=yes
13099 hardcode_shlibpath_var=unsupported
13100 if test yes = "$lt_cv_ld_force_load"; then
13101 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\"`'
13104 whole_archive_flag_spec=''
13106 link_all_deplibs=yes
13107 allow_undefined_flag=$_lt_dar_allow_undefined
13108 case $cc_basename in
13109 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13110 *) _lt_dar_can_shared=$GCC ;;
13112 if test yes = "$_lt_dar_can_shared"; then
13113 output_verbose_link_cmd=func_echo_all
13114 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13115 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13116 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"
13117 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"
13126 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13127 hardcode_libdir_flag_spec='-L$libdir'
13128 hardcode_shlibpath_var=no
13131 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13132 # support. Future versions do this automatically, but an explicit c++rt0.o
13133 # does not break anything, and helps significantly (at the cost of a little
13136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13137 hardcode_libdir_flag_spec='-R$libdir'
13138 hardcode_direct=yes
13139 hardcode_shlibpath_var=no
13142 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13144 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13145 hardcode_direct=yes
13146 hardcode_minus_L=yes
13147 hardcode_shlibpath_var=no
13150 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13151 freebsd* | dragonfly*)
13152 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13153 hardcode_libdir_flag_spec='-R$libdir'
13154 hardcode_direct=yes
13155 hardcode_shlibpath_var=no
13159 if test yes = "$GCC"; then
13160 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'
13162 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'
13164 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13165 hardcode_libdir_separator=:
13166 hardcode_direct=yes
13168 # hardcode_minus_L: Not really in the search PATH,
13169 # but as the default location of the library.
13170 hardcode_minus_L=yes
13171 export_dynamic_flag_spec='$wl-E'
13175 if test yes,no = "$GCC,$with_gnu_ld"; then
13176 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13178 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13180 if test no = "$with_gnu_ld"; then
13181 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13182 hardcode_libdir_separator=:
13183 hardcode_direct=yes
13184 hardcode_direct_absolute=yes
13185 export_dynamic_flag_spec='$wl-E'
13186 # hardcode_minus_L: Not really in the search PATH,
13187 # but as the default location of the library.
13188 hardcode_minus_L=yes
13193 if test yes,no = "$GCC,$with_gnu_ld"; then
13196 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13199 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13202 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13208 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13211 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13215 # Older versions of the 11.00 compiler do not understand -b yet
13216 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13218 $as_echo_n "checking if $CC understands -b... " >&6; }
13219 if ${lt_cv_prog_compiler__b+:} false; then :
13220 $as_echo_n "(cached) " >&6
13222 lt_cv_prog_compiler__b=no
13223 save_LDFLAGS=$LDFLAGS
13224 LDFLAGS="$LDFLAGS -b"
13225 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13226 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13227 # The linker can only warn and ignore the option if not recognized
13228 # So say no if there are warnings
13229 if test -s conftest.err; then
13230 # Append any errors to the config.log.
13231 cat conftest.err 1>&5
13232 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13233 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13234 if diff conftest.exp conftest.er2 >/dev/null; then
13235 lt_cv_prog_compiler__b=yes
13238 lt_cv_prog_compiler__b=yes
13242 LDFLAGS=$save_LDFLAGS
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13246 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13248 if test yes = "$lt_cv_prog_compiler__b"; then
13249 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13251 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13257 if test no = "$with_gnu_ld"; then
13258 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13259 hardcode_libdir_separator=:
13264 hardcode_shlibpath_var=no
13267 hardcode_direct=yes
13268 hardcode_direct_absolute=yes
13269 export_dynamic_flag_spec='$wl-E'
13271 # hardcode_minus_L: Not really in the search PATH,
13272 # but as the default location of the library.
13273 hardcode_minus_L=yes
13279 irix5* | irix6* | nonstopux*)
13280 if test yes = "$GCC"; then
13281 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'
13282 # Try to use the -exported_symbol ld option, if it does not
13283 # work, assume that -exports_file does not work either and
13284 # implicitly export all symbols.
13285 # This should be the same for all languages, so no per-tag cache variable.
13286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13287 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13288 if ${lt_cv_irix_exported_symbol+:} false; then :
13289 $as_echo_n "(cached) " >&6
13291 save_LDFLAGS=$LDFLAGS
13292 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13294 /* end confdefs.h. */
13295 int foo (void) { return 0; }
13297 if ac_fn_c_try_link "$LINENO"; then :
13298 lt_cv_irix_exported_symbol=yes
13300 lt_cv_irix_exported_symbol=no
13302 rm -f core conftest.err conftest.$ac_objext \
13303 conftest$ac_exeext conftest.$ac_ext
13304 LDFLAGS=$save_LDFLAGS
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13307 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13308 if test yes = "$lt_cv_irix_exported_symbol"; then
13309 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'
13311 link_all_deplibs=no
13313 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'
13314 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'
13316 archive_cmds_need_lc='no'
13317 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13318 hardcode_libdir_separator=:
13320 link_all_deplibs=yes
13324 case $cc_basename in
13326 # Fabrice Bellard et al's Tiny C Compiler
13328 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13333 netbsd* | netbsdelf*-gnu)
13334 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13335 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13337 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13339 hardcode_libdir_flag_spec='-R$libdir'
13340 hardcode_direct=yes
13341 hardcode_shlibpath_var=no
13345 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13346 hardcode_direct=yes
13347 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13348 hardcode_libdir_separator=:
13349 hardcode_shlibpath_var=no
13355 openbsd* | bitrig*)
13356 if test -f /usr/libexec/ld.so; then
13357 hardcode_direct=yes
13358 hardcode_shlibpath_var=no
13359 hardcode_direct_absolute=yes
13360 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13361 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13362 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13363 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13364 export_dynamic_flag_spec='$wl-E'
13366 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13367 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13375 hardcode_libdir_flag_spec='-L$libdir'
13376 hardcode_minus_L=yes
13377 allow_undefined_flag=unsupported
13379 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13380 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13381 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13382 $ECHO EXPORTS >> $output_objdir/$libname.def~
13383 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13384 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13385 emximp -o $lib $output_objdir/$libname.def'
13386 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13387 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13388 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13389 $ECHO EXPORTS >> $output_objdir/$libname.def~
13390 prefix_cmds="$SED"~
13391 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13392 prefix_cmds="$prefix_cmds -e 1d";
13394 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13395 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13396 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13397 emximp -o $lib $output_objdir/$libname.def'
13398 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13399 enable_shared_with_static_runtimes=yes
13403 if test yes = "$GCC"; then
13404 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13405 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'
13407 allow_undefined_flag=' -expect_unresolved \*'
13408 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'
13410 archive_cmds_need_lc='no'
13411 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13412 hardcode_libdir_separator=:
13415 osf4* | osf5*) # as osf3* with the addition of -msym flag
13416 if test yes = "$GCC"; then
13417 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13418 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'
13419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13421 allow_undefined_flag=' -expect_unresolved \*'
13422 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'
13423 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~
13424 $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'
13426 # Both c and cxx compiler support -rpath directly
13427 hardcode_libdir_flag_spec='-rpath $libdir'
13429 archive_cmds_need_lc='no'
13430 hardcode_libdir_separator=:
13434 no_undefined_flag=' -z defs'
13435 if test yes = "$GCC"; then
13437 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13438 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13439 $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'
13441 case `$CC -V 2>&1` in
13444 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13445 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13446 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13450 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13451 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13452 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13456 hardcode_libdir_flag_spec='-R$libdir'
13457 hardcode_shlibpath_var=no
13459 solaris2.[0-5] | solaris2.[0-5].*) ;;
13461 # The compiler driver will combine and reorder linker options,
13462 # but understands '-z linker_flag'. GCC discards it without '$wl',
13463 # but is careful enough not to reorder.
13464 # Supported since Solaris 2.6 (maybe 2.5.1?)
13465 if test yes = "$GCC"; then
13466 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13468 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13472 link_all_deplibs=yes
13476 if test sequent = "$host_vendor"; then
13477 # Use $CC to link under sequent, because it throws in some extra .o
13478 # files that make .init and .fini sections work.
13479 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13481 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13483 hardcode_libdir_flag_spec='-L$libdir'
13484 hardcode_direct=yes
13485 hardcode_minus_L=yes
13486 hardcode_shlibpath_var=no
13490 case $host_vendor in
13492 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13493 hardcode_direct=yes # is this really true???
13496 ## LD is ld it makes a PLAMLIB
13497 ## CC just makes a GrossModule.
13498 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13499 reload_cmds='$CC -r -o $output$reload_objs'
13503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13504 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13507 runpath_var='LD_RUN_PATH'
13508 hardcode_shlibpath_var=no
13512 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13513 hardcode_shlibpath_var=no
13514 export_dynamic_flag_spec='-Bexport'
13518 if test -d /usr/nec; then
13519 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13520 hardcode_shlibpath_var=no
13521 runpath_var=LD_RUN_PATH
13522 hardcode_runpath_var=yes
13527 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13528 no_undefined_flag='$wl-z,text'
13529 archive_cmds_need_lc=no
13530 hardcode_shlibpath_var=no
13531 runpath_var='LD_RUN_PATH'
13533 if test yes = "$GCC"; then
13534 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13535 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13537 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13538 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13542 sysv5* | sco3.2v5* | sco5v6*)
13543 # Note: We CANNOT use -z defs as we might desire, because we do not
13544 # link with -lc, and that would cause any symbols used from libc to
13545 # always be unresolved, which means just about no library would
13546 # ever link correctly. If we're not using GNU ld we use -z text
13547 # though, which does catch some bad symbols but isn't as heavy-handed
13549 no_undefined_flag='$wl-z,text'
13550 allow_undefined_flag='$wl-z,nodefs'
13551 archive_cmds_need_lc=no
13552 hardcode_shlibpath_var=no
13553 hardcode_libdir_flag_spec='$wl-R,$libdir'
13554 hardcode_libdir_separator=':'
13555 link_all_deplibs=yes
13556 export_dynamic_flag_spec='$wl-Bexport'
13557 runpath_var='LD_RUN_PATH'
13559 if test yes = "$GCC"; then
13560 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13561 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13563 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13564 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13570 hardcode_libdir_flag_spec='-L$libdir'
13571 hardcode_shlibpath_var=no
13579 if test sni = "$host_vendor"; then
13581 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13582 export_dynamic_flag_spec='$wl-Blargedynsym'
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13589 $as_echo "$ld_shlibs" >&6; }
13590 test no = "$ld_shlibs" && can_build_shared=no
13592 with_gnu_ld=$with_gnu_ld
13609 # Do we need to explicitly link libc?
13611 case "x$archive_cmds_need_lc" in
13613 # Assume -lc should be added
13614 archive_cmds_need_lc=yes
13616 if test yes,yes = "$GCC,$enable_shared"; then
13617 case $archive_cmds in
13619 # FIXME: we may have to deal with multi-command sequences.
13622 # Test whether the compiler implicitly links with -lc since on some
13623 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13624 # to ld, don't add -lc before -lgcc.
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13626 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13627 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13628 $as_echo_n "(cached) " >&6
13631 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13634 (eval $ac_compile) 2>&5
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; } 2>conftest.err; then
13640 libobjs=conftest.$ac_objext
13642 wl=$lt_prog_compiler_wl
13643 pic_flag=$lt_prog_compiler_pic
13649 lt_save_allow_undefined_flag=$allow_undefined_flag
13650 allow_undefined_flag=
13651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13652 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13655 test $ac_status = 0; }
13657 lt_cv_archive_cmds_need_lc=no
13659 lt_cv_archive_cmds_need_lc=yes
13661 allow_undefined_flag=$lt_save_allow_undefined_flag
13663 cat conftest.err 1>&5
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13669 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13670 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13829 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13831 if test yes = "$GCC"; then
13833 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13834 *) lt_awk_arg='/^libraries:/' ;;
13837 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13838 *) lt_sed_strip_eq='s|=/|/|g' ;;
13840 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13841 case $lt_search_path_spec in
13843 # if the path contains ";" then we assume it to be the separator
13844 # otherwise default to the standard path separator (i.e. ":") - it is
13845 # assumed that no part of a normal pathname contains ";" but that should
13846 # okay in the real world where ";" in dirpaths is itself problematic.
13847 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13850 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13853 # Ok, now we have the path, separated by spaces, we can step through it
13854 # and add multilib dir if necessary...
13855 lt_tmp_lt_search_path_spec=
13856 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13857 # ...but if some path component already ends with the multilib dir we assume
13858 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13859 case "$lt_multi_os_dir; $lt_search_path_spec " in
13860 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13864 for lt_sys_path in $lt_search_path_spec; do
13865 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13866 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13867 elif test -n "$lt_multi_os_dir"; then
13868 test -d "$lt_sys_path" && \
13869 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13872 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13873 BEGIN {RS = " "; FS = "/|\n";} {
13876 for (lt_i = NF; lt_i > 0; lt_i--) {
13877 if ($lt_i != "" && $lt_i != ".") {
13878 if ($lt_i == "..") {
13881 if (lt_count == 0) {
13882 lt_foo = "/" $lt_i lt_foo;
13889 if (lt_foo != "") { lt_freq[lt_foo]++; }
13890 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13892 # AWK program above erroneously prepends '/' to C:/dos/paths
13895 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13896 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13898 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13900 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13902 library_names_spec=
13903 libname_spec='lib$name'
13907 postuninstall_cmds=
13911 shlibpath_overrides_runpath=unknown
13913 dynamic_linker="$host_os ld.so"
13914 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13915 need_lib_prefix=unknown
13916 hardcode_into_libs=no
13918 # when you set need_version to no, make sure it does not cause -set_version
13919 # flags to be left without arguments
13920 need_version=unknown
13926 version_type=linux # correct to gnu/linux during the next big refactor
13927 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13928 shlibpath_var=LIBPATH
13930 # AIX 3 has no versioning support, so we append a major version to the name.
13931 soname_spec='$libname$release$shared_ext$major'
13935 version_type=linux # correct to gnu/linux during the next big refactor
13938 hardcode_into_libs=yes
13939 if test ia64 = "$host_cpu"; then
13940 # AIX 5 supports IA64
13941 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13942 shlibpath_var=LD_LIBRARY_PATH
13944 # With GCC up to 2.95.x, collect2 would create an import file
13945 # for dependence libraries. The import file would start with
13946 # the line '#! .'. This would cause the generated library to
13947 # depend on '.', always an invalid library. This was fixed in
13948 # development snapshots of GCC prior to 3.0.
13950 aix4 | aix4.[01] | aix4.[01].*)
13951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13953 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13956 can_build_shared=no
13960 # Using Import Files as archive members, it is possible to support
13961 # filename-based versioning of shared library archives on AIX. While
13962 # this would work for both with and without runtime linking, it will
13963 # prevent static linking of such archives. So we do filename-based
13964 # shared library versioning with .so extension only, which is used
13965 # when both runtime linking and shared linking is enabled.
13966 # Unfortunately, runtime linking may impact performance, so we do
13967 # not want this to be the default eventually. Also, we use the
13968 # versioned .so libs for executables only if there is the -brtl
13969 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13970 # To allow for filename-based versioning support, we need to create
13971 # libNAME.so.V as an archive file, containing:
13972 # *) an Import File, referring to the versioned filename of the
13973 # archive as well as the shared archive member, telling the
13974 # bitwidth (32 or 64) of that shared object, and providing the
13975 # list of exported symbols of that shared object, eventually
13976 # decorated with the 'weak' keyword
13977 # *) the shared object with the F_LOADONLY flag set, to really avoid
13978 # it being seen by the linker.
13979 # At run time we better use the real file rather than another symlink,
13980 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13982 case $with_aix_soname,$aix_use_runtimelinking in
13983 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13984 # soname into executable. Probably we can add versioning support to
13985 # collect2, so additional links can be useful in future.
13986 aix,yes) # traditional libtool
13987 dynamic_linker='AIX unversionable lib.so'
13988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13989 # instead of lib<name>.a to let people know that these are not
13990 # typical AIX shared libraries.
13991 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13993 aix,no) # traditional AIX only
13994 dynamic_linker='AIX lib.a(lib.so.V)'
13995 # We preserve .a as extension for shared libraries through AIX4.2
13996 # and later when we are not doing run time linking.
13997 library_names_spec='$libname$release.a $libname.a'
13998 soname_spec='$libname$release$shared_ext$major'
14000 svr4,*) # full svr4 only
14001 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14002 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14003 # We do not specify a path in Import Files, so LIBPATH fires.
14004 shlibpath_overrides_runpath=yes
14006 *,yes) # both, prefer svr4
14007 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14008 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14009 # unpreferred sharedlib libNAME.a needs extra handling
14010 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"'
14011 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"'
14012 # We do not specify a path in Import Files, so LIBPATH fires.
14013 shlibpath_overrides_runpath=yes
14015 *,no) # both, prefer aix
14016 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14017 library_names_spec='$libname$release.a $libname.a'
14018 soname_spec='$libname$release$shared_ext$major'
14019 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14020 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)'
14021 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"'
14024 shlibpath_var=LIBPATH
14031 # Since July 2007 AmigaOS4 officially supports .so libraries.
14032 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14033 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14036 library_names_spec='$libname.ixlibrary $libname.a'
14037 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14038 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'
14044 library_names_spec='$libname$shared_ext'
14045 dynamic_linker="$host_os ld.so"
14046 shlibpath_var=LIBRARY_PATH
14050 version_type=linux # correct to gnu/linux during the next big refactor
14052 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14053 soname_spec='$libname$release$shared_ext$major'
14054 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14055 shlibpath_var=LD_LIBRARY_PATH
14056 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14057 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14058 # the default ld.so.conf also contains /usr/contrib/lib and
14059 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14060 # libtool to hard-code these into programs
14063 cygwin* | mingw* | pw32* | cegcc*)
14064 version_type=windows
14069 case $GCC,$cc_basename in
14072 library_names_spec='$libname.dll.a'
14073 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14074 postinstall_cmds='base_file=`basename \$file`~
14075 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14076 dldir=$destdir/`dirname \$dlpath`~
14077 test -d \$dldir || mkdir -p \$dldir~
14078 $install_prog $dir/$dlname \$dldir/$dlname~
14079 chmod a+x \$dldir/$dlname~
14080 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14081 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14083 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14084 dlpath=$dir/\$dldll~
14086 shlibpath_overrides_runpath=yes
14090 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14091 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14093 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14096 # MinGW DLLs use traditional 'lib' prefix
14097 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14100 # pw32 DLLs use 'pw' prefix rather than 'lib'
14101 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14104 dynamic_linker='Win32 ld.exe'
14109 libname_spec='$name'
14110 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14111 library_names_spec='$libname.dll.lib'
14115 sys_lib_search_path_spec=
14118 for lt_path in $LIB
14121 # Let DOS variable expansion print the short 8.3 style file name.
14122 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14123 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14126 # Convert to MSYS style.
14127 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14130 # Convert to unix form, then to dos form, then back to unix form
14131 # but this time dos style (no spaces!) so that the unix form looks
14132 # like /cygdrive/c/PROGRA~1:/cygdr...
14133 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14134 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14135 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14138 sys_lib_search_path_spec=$LIB
14139 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14140 # It is most probably a Windows format PATH.
14141 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14143 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14145 # FIXME: find the short name or the path components, as spaces are
14146 # common. (e.g. "Program Files" -> "PROGRA~1")
14150 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14151 postinstall_cmds='base_file=`basename \$file`~
14152 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14153 dldir=$destdir/`dirname \$dlpath`~
14154 test -d \$dldir || mkdir -p \$dldir~
14155 $install_prog $dir/$dlname \$dldir/$dlname'
14156 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14157 dlpath=$dir/\$dldll~
14159 shlibpath_overrides_runpath=yes
14160 dynamic_linker='Win32 link.exe'
14164 # Assume MSVC wrapper
14165 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14166 dynamic_linker='Win32 ld.exe'
14169 # FIXME: first we should search . and the directory the executable is in
14173 darwin* | rhapsody*)
14174 dynamic_linker="$host_os dyld"
14175 version_type=darwin
14178 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14179 soname_spec='$libname$release$major$shared_ext'
14180 shlibpath_overrides_runpath=yes
14181 shlibpath_var=DYLD_LIBRARY_PATH
14182 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14184 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14185 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14189 version_type=linux # correct to gnu/linux during the next big refactor
14192 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14193 soname_spec='$libname$release$shared_ext$major'
14194 shlibpath_var=LD_LIBRARY_PATH
14197 freebsd* | dragonfly*)
14198 # DragonFly does not have aout. When/if they implement a new
14199 # versioning mechanism, adjust this.
14200 if test -x /usr/bin/objformat; then
14201 objformat=`/usr/bin/objformat`
14204 freebsd[23].*) objformat=aout ;;
14205 *) objformat=elf ;;
14208 version_type=freebsd-$objformat
14209 case $version_type in
14211 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14212 soname_spec='$libname$release$shared_ext$major'
14217 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14221 shlibpath_var=LD_LIBRARY_PATH
14224 shlibpath_overrides_runpath=yes
14226 freebsd3.[01]* | freebsdelf3.[01]*)
14227 shlibpath_overrides_runpath=yes
14228 hardcode_into_libs=yes
14230 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14231 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14232 shlibpath_overrides_runpath=no
14233 hardcode_into_libs=yes
14235 *) # from 4.6 on, and DragonFly
14236 shlibpath_overrides_runpath=yes
14237 hardcode_into_libs=yes
14243 version_type=linux # correct to gnu/linux during the next big refactor
14246 dynamic_linker="$host_os runtime_loader"
14247 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14248 soname_spec='$libname$release$shared_ext$major'
14249 shlibpath_var=LIBRARY_PATH
14250 shlibpath_overrides_runpath=no
14251 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14252 hardcode_into_libs=yes
14255 hpux9* | hpux10* | hpux11*)
14256 # Give a soname corresponding to the major version so that dld.sl refuses to
14257 # link against other versions.
14264 hardcode_into_libs=yes
14265 dynamic_linker="$host_os dld.so"
14266 shlibpath_var=LD_LIBRARY_PATH
14267 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14268 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14269 soname_spec='$libname$release$shared_ext$major'
14270 if test 32 = "$HPUX_IA64_MODE"; then
14271 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14272 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14274 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14275 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14280 hardcode_into_libs=yes
14281 dynamic_linker="$host_os dld.sl"
14282 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14283 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14284 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14285 soname_spec='$libname$release$shared_ext$major'
14286 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14287 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14291 dynamic_linker="$host_os dld.sl"
14292 shlibpath_var=SHLIB_PATH
14293 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14295 soname_spec='$libname$release$shared_ext$major'
14298 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14299 postinstall_cmds='chmod 555 $lib'
14300 # or fails outright, so override atomically:
14301 install_override_mode=555
14305 version_type=linux # correct to gnu/linux during the next big refactor
14308 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14309 soname_spec='$libname$release$shared_ext$major'
14310 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14311 shlibpath_var=LD_LIBRARY_PATH
14312 shlibpath_overrides_runpath=no
14313 hardcode_into_libs=yes
14316 irix5* | irix6* | nonstopux*)
14318 nonstopux*) version_type=nonstopux ;;
14320 if test yes = "$lt_cv_prog_gnu_ld"; then
14321 version_type=linux # correct to gnu/linux during the next big refactor
14328 soname_spec='$libname$release$shared_ext$major'
14329 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14331 irix5* | nonstopux*)
14332 libsuff= shlibsuff=
14335 case $LD in # libtool.m4 will add one of these switches to LD
14336 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14337 libsuff= shlibsuff= libmagic=32-bit;;
14338 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14339 libsuff=32 shlibsuff=N32 libmagic=N32;;
14340 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14341 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14342 *) libsuff= shlibsuff= libmagic=never-match;;
14346 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14347 shlibpath_overrides_runpath=no
14348 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14349 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14350 hardcode_into_libs=yes
14353 # No shared lib support for Linux oldld, aout, or coff.
14354 linux*oldld* | linux*aout* | linux*coff*)
14359 version_type=none # Android doesn't support versioned libraries.
14362 library_names_spec='$libname$release$shared_ext'
14363 soname_spec='$libname$release$shared_ext'
14365 shlibpath_var=LD_LIBRARY_PATH
14366 shlibpath_overrides_runpath=yes
14368 # This implies no fast_install, which is unacceptable.
14369 # Some rework will be needed to allow for fast_install
14370 # before this can be enabled.
14371 hardcode_into_libs=yes
14373 dynamic_linker='Android linker'
14374 # Don't embed -rpath directories since the linker doesn't support them.
14375 hardcode_libdir_flag_spec='-L$libdir'
14378 # This must be glibc/ELF.
14379 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14380 version_type=linux # correct to gnu/linux during the next big refactor
14383 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14384 soname_spec='$libname$release$shared_ext$major'
14385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14386 shlibpath_var=LD_LIBRARY_PATH
14387 shlibpath_overrides_runpath=no
14389 # Some binutils ld are patched to set DT_RUNPATH
14390 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14391 $as_echo_n "(cached) " >&6
14393 lt_cv_shlibpath_overrides_runpath=no
14394 save_LDFLAGS=$LDFLAGS
14395 save_libdir=$libdir
14396 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14397 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14399 /* end confdefs.h. */
14408 if ac_fn_c_try_link "$LINENO"; then :
14409 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14410 lt_cv_shlibpath_overrides_runpath=yes
14413 rm -f core conftest.err conftest.$ac_objext \
14414 conftest$ac_exeext conftest.$ac_ext
14415 LDFLAGS=$save_LDFLAGS
14416 libdir=$save_libdir
14420 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14422 # This implies no fast_install, which is unacceptable.
14423 # Some rework will be needed to allow for fast_install
14424 # before this can be enabled.
14425 hardcode_into_libs=yes
14427 # Ideally, we could use ldconfig to report *all* directores which are
14428 # searched for libraries, however this is still not possible. Aside from not
14429 # being certain /sbin/ldconfig is available, command
14430 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14431 # even though it is searched at run-time. Try to do the best guess by
14432 # appending ld.so.conf contents (and includes) to the search path.
14433 if test -f /etc/ld.so.conf; then
14434 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' ' '`
14435 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14438 # We used to test for /lib/ld.so.1 and disable shared libraries on
14439 # powerpc, because MkLinux only supported shared libraries with the
14440 # GNU dynamic linker. Since this was broken with cross compilers,
14441 # most powerpc-linux boxes support dynamic linking these days and
14442 # people can always --disable-shared, the test was removed, and we
14443 # assume the GNU/Linux dynamic linker is in use.
14444 dynamic_linker='GNU/Linux ld.so'
14451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14452 soname_spec='${libname}${release}${shared_ext}$major'
14453 shlibpath_var=LD_LIBRARY_PATH
14454 shlibpath_overrides_runpath=no
14455 hardcode_into_libs=yes
14456 dynamic_linker='NetBSD ld.elf_so'
14463 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14464 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14465 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14466 dynamic_linker='NetBSD (a.out) ld.so'
14468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14469 soname_spec='$libname$release$shared_ext$major'
14470 dynamic_linker='NetBSD ld.elf_so'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=yes
14474 hardcode_into_libs=yes
14478 version_type=linux # correct to gnu/linux during the next big refactor
14479 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14480 shlibpath_var=LD_LIBRARY_PATH
14481 shlibpath_overrides_runpath=yes
14488 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14489 soname_spec='$libname$release$shared_ext$major'
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=no
14492 hardcode_into_libs=yes
14493 dynamic_linker='ldqnx.so'
14496 openbsd* | bitrig*)
14498 sys_lib_dlsearch_path_spec=/usr/lib
14500 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14505 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14506 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14507 shlibpath_var=LD_LIBRARY_PATH
14508 shlibpath_overrides_runpath=yes
14512 libname_spec='$name'
14513 version_type=windows
14517 # OS/2 can only load a DLL with a base name of 8 characters or less.
14518 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14519 v=$($ECHO $release$versuffix | tr -d .-);
14520 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14521 $ECHO $n$v`$shared_ext'
14522 library_names_spec='${libname}_dll.$libext'
14523 dynamic_linker='OS/2 ld.exe'
14524 shlibpath_var=BEGINLIBPATH
14525 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14526 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14527 postinstall_cmds='base_file=`basename \$file`~
14528 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14529 dldir=$destdir/`dirname \$dlpath`~
14530 test -d \$dldir || mkdir -p \$dldir~
14531 $install_prog $dir/$dlname \$dldir/$dlname~
14532 chmod a+x \$dldir/$dlname~
14533 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14534 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14536 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14537 dlpath=$dir/\$dldll~
14541 osf3* | osf4* | osf5*)
14545 soname_spec='$libname$release$shared_ext$major'
14546 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14549 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14557 version_type=linux # correct to gnu/linux during the next big refactor
14560 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14561 soname_spec='$libname$release$shared_ext$major'
14562 shlibpath_var=LD_LIBRARY_PATH
14563 shlibpath_overrides_runpath=yes
14564 hardcode_into_libs=yes
14565 # ldd complains unless libraries are executable
14566 postinstall_cmds='chmod +x $lib'
14571 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14572 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14573 shlibpath_var=LD_LIBRARY_PATH
14574 shlibpath_overrides_runpath=yes
14575 if test yes = "$with_gnu_ld"; then
14582 version_type=linux # correct to gnu/linux during the next big refactor
14583 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14584 soname_spec='$libname$release$shared_ext$major'
14585 shlibpath_var=LD_LIBRARY_PATH
14586 case $host_vendor in
14588 shlibpath_overrides_runpath=no
14590 runpath_var=LD_RUN_PATH
14598 shlibpath_overrides_runpath=no
14599 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14605 if test -d /usr/nec; then
14606 version_type=linux # correct to gnu/linux during the next big refactor
14607 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14608 soname_spec='$libname$shared_ext.$major'
14609 shlibpath_var=LD_LIBRARY_PATH
14613 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14617 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14618 soname_spec='$libname$release$shared_ext$major'
14619 shlibpath_var=LD_LIBRARY_PATH
14620 shlibpath_overrides_runpath=yes
14621 hardcode_into_libs=yes
14622 if test yes = "$with_gnu_ld"; then
14623 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14625 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14628 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14632 sys_lib_dlsearch_path_spec='/usr/lib'
14636 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14637 version_type=linux # correct to gnu/linux during the next big refactor
14640 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14641 shlibpath_var=LD_LIBRARY_PATH
14642 shlibpath_overrides_runpath=no
14643 hardcode_into_libs=yes
14647 version_type=linux # correct to gnu/linux during the next big refactor
14648 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14649 soname_spec='$libname$release$shared_ext$major'
14650 shlibpath_var=LD_LIBRARY_PATH
14657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14658 $as_echo "$dynamic_linker" >&6; }
14659 test no = "$dynamic_linker" && can_build_shared=no
14661 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14662 if test yes = "$GCC"; then
14663 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14666 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14667 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14670 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14671 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14674 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14675 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14677 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14678 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14680 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14681 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14780 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14782 if test -n "$hardcode_libdir_flag_spec" ||
14783 test -n "$runpath_var" ||
14784 test yes = "$hardcode_automatic"; then
14786 # We can hardcode non-existent directories.
14787 if test no != "$hardcode_direct" &&
14788 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14789 # have to relink, otherwise we might link with an installed library
14790 # when we should be linking with a yet-to-be-installed one
14791 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14792 test no != "$hardcode_minus_L"; then
14793 # Linking always hardcodes the temporary library directory.
14794 hardcode_action=relink
14796 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14797 hardcode_action=immediate
14800 # We cannot hardcode anything, or else we can only hardcode existing
14802 hardcode_action=unsupported
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14805 $as_echo "$hardcode_action" >&6; }
14807 if test relink = "$hardcode_action" ||
14808 test yes = "$inherit_rpath"; then
14809 # Fast installation is not supported
14810 enable_fast_install=no
14811 elif test yes = "$shlibpath_overrides_runpath" ||
14812 test no = "$enable_shared"; then
14813 # Fast installation is not necessary
14814 enable_fast_install=needless
14822 if test yes != "$enable_dlopen"; then
14823 enable_dlopen=unknown
14824 enable_dlopen_self=unknown
14825 enable_dlopen_self_static=unknown
14832 lt_cv_dlopen=load_add_on
14834 lt_cv_dlopen_self=yes
14837 mingw* | pw32* | cegcc*)
14838 lt_cv_dlopen=LoadLibrary
14843 lt_cv_dlopen=dlopen
14848 # if libdl is installed we need to link against it
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14850 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14851 if ${ac_cv_lib_dl_dlopen+:} false; then :
14852 $as_echo_n "(cached) " >&6
14854 ac_check_lib_save_LIBS=$LIBS
14856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14857 /* end confdefs.h. */
14871 if ac_fn_c_try_link "$LINENO"; then :
14872 ac_cv_lib_dl_dlopen=yes
14874 ac_cv_lib_dl_dlopen=no
14876 rm -f core conftest.err conftest.$ac_objext \
14877 conftest$ac_exeext conftest.$ac_ext
14878 LIBS=$ac_check_lib_save_LIBS
14880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14881 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14882 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14883 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14888 lt_cv_dlopen_self=yes
14895 # Don't try to run any link tests for TPF. We know it's impossible
14896 # because TPF is a cross-compiler, and we know how we open DSOs.
14897 lt_cv_dlopen=dlopen
14899 lt_cv_dlopen_self=no
14903 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14904 if test "x$ac_cv_func_shl_load" = xyes; then :
14905 lt_cv_dlopen=shl_load
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14908 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14909 if ${ac_cv_lib_dld_shl_load+:} false; then :
14910 $as_echo_n "(cached) " >&6
14912 ac_check_lib_save_LIBS=$LIBS
14914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14915 /* end confdefs.h. */
14924 return shl_load ();
14929 if ac_fn_c_try_link "$LINENO"; then :
14930 ac_cv_lib_dld_shl_load=yes
14932 ac_cv_lib_dld_shl_load=no
14934 rm -f core conftest.err conftest.$ac_objext \
14935 conftest$ac_exeext conftest.$ac_ext
14936 LIBS=$ac_check_lib_save_LIBS
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14939 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14940 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14941 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14943 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14944 if test "x$ac_cv_func_dlopen" = xyes; then :
14945 lt_cv_dlopen=dlopen
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14948 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14949 if ${ac_cv_lib_dl_dlopen+:} false; then :
14950 $as_echo_n "(cached) " >&6
14952 ac_check_lib_save_LIBS=$LIBS
14954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14955 /* end confdefs.h. */
14969 if ac_fn_c_try_link "$LINENO"; then :
14970 ac_cv_lib_dl_dlopen=yes
14972 ac_cv_lib_dl_dlopen=no
14974 rm -f core conftest.err conftest.$ac_objext \
14975 conftest$ac_exeext conftest.$ac_ext
14976 LIBS=$ac_check_lib_save_LIBS
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14979 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14980 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14981 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14984 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14985 if ${ac_cv_lib_svld_dlopen+:} false; then :
14986 $as_echo_n "(cached) " >&6
14988 ac_check_lib_save_LIBS=$LIBS
14989 LIBS="-lsvld $LIBS"
14990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14991 /* end confdefs.h. */
15005 if ac_fn_c_try_link "$LINENO"; then :
15006 ac_cv_lib_svld_dlopen=yes
15008 ac_cv_lib_svld_dlopen=no
15010 rm -f core conftest.err conftest.$ac_objext \
15011 conftest$ac_exeext conftest.$ac_ext
15012 LIBS=$ac_check_lib_save_LIBS
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15015 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15016 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15017 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15020 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15021 if ${ac_cv_lib_dld_dld_link+:} false; then :
15022 $as_echo_n "(cached) " >&6
15024 ac_check_lib_save_LIBS=$LIBS
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15036 return dld_link ();
15041 if ac_fn_c_try_link "$LINENO"; then :
15042 ac_cv_lib_dld_dld_link=yes
15044 ac_cv_lib_dld_dld_link=no
15046 rm -f core conftest.err conftest.$ac_objext \
15047 conftest$ac_exeext conftest.$ac_ext
15048 LIBS=$ac_check_lib_save_LIBS
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15051 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15052 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15053 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15074 if test no = "$lt_cv_dlopen"; then
15080 case $lt_cv_dlopen in
15082 save_CPPFLAGS=$CPPFLAGS
15083 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15085 save_LDFLAGS=$LDFLAGS
15086 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15089 LIBS="$lt_cv_dlopen_libs $LIBS"
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15092 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15093 if ${lt_cv_dlopen_self+:} false; then :
15094 $as_echo_n "(cached) " >&6
15096 if test yes = "$cross_compiling"; then :
15097 lt_cv_dlopen_self=cross
15099 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15100 lt_status=$lt_dlunknown
15101 cat > conftest.$ac_ext <<_LT_EOF
15102 #line $LINENO "configure"
15103 #include "confdefs.h"
15112 # define LT_DLGLOBAL RTLD_GLOBAL
15115 # define LT_DLGLOBAL DL_GLOBAL
15117 # define LT_DLGLOBAL 0
15121 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15122 find out it does not work in some platform. */
15123 #ifndef LT_DLLAZY_OR_NOW
15125 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15128 # define LT_DLLAZY_OR_NOW DL_LAZY
15131 # define LT_DLLAZY_OR_NOW RTLD_NOW
15134 # define LT_DLLAZY_OR_NOW DL_NOW
15136 # define LT_DLLAZY_OR_NOW 0
15143 /* When -fvisibility=hidden is used, assume the code has been annotated
15144 correspondingly for the symbols needed. */
15145 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15146 int fnord () __attribute__((visibility("default")));
15149 int fnord () { return 42; }
15152 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15153 int status = $lt_dlunknown;
15157 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15160 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15161 else puts (dlerror ());
15163 /* dlclose (self); */
15171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15172 (eval $ac_link) 2>&5
15174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15175 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15176 (./conftest; exit; ) >&5 2>/dev/null
15178 case x$lt_status in
15179 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15180 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15181 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15184 # compilation failed
15185 lt_cv_dlopen_self=no
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15193 $as_echo "$lt_cv_dlopen_self" >&6; }
15195 if test yes = "$lt_cv_dlopen_self"; then
15196 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15198 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15199 if ${lt_cv_dlopen_self_static+:} false; then :
15200 $as_echo_n "(cached) " >&6
15202 if test yes = "$cross_compiling"; then :
15203 lt_cv_dlopen_self_static=cross
15205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15206 lt_status=$lt_dlunknown
15207 cat > conftest.$ac_ext <<_LT_EOF
15208 #line $LINENO "configure"
15209 #include "confdefs.h"
15218 # define LT_DLGLOBAL RTLD_GLOBAL
15221 # define LT_DLGLOBAL DL_GLOBAL
15223 # define LT_DLGLOBAL 0
15227 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15228 find out it does not work in some platform. */
15229 #ifndef LT_DLLAZY_OR_NOW
15231 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15234 # define LT_DLLAZY_OR_NOW DL_LAZY
15237 # define LT_DLLAZY_OR_NOW RTLD_NOW
15240 # define LT_DLLAZY_OR_NOW DL_NOW
15242 # define LT_DLLAZY_OR_NOW 0
15249 /* When -fvisibility=hidden is used, assume the code has been annotated
15250 correspondingly for the symbols needed. */
15251 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15252 int fnord () __attribute__((visibility("default")));
15255 int fnord () { return 42; }
15258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15259 int status = $lt_dlunknown;
15263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15267 else puts (dlerror ());
15269 /* dlclose (self); */
15277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15278 (eval $ac_link) 2>&5
15280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15281 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15282 (./conftest; exit; ) >&5 2>/dev/null
15284 case x$lt_status in
15285 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15286 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15287 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15290 # compilation failed
15291 lt_cv_dlopen_self_static=no
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15299 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15302 CPPFLAGS=$save_CPPFLAGS
15303 LDFLAGS=$save_LDFLAGS
15308 case $lt_cv_dlopen_self in
15309 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15310 *) enable_dlopen_self=unknown ;;
15313 case $lt_cv_dlopen_self_static in
15314 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15315 *) enable_dlopen_self_static=unknown ;;
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15338 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15339 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15340 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15341 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15343 $as_echo "yes" >&6; }
15345 # FIXME - insert some real tests, host_os isn't really good enough
15348 if test -n "$STRIP"; then
15349 striplib="$STRIP -x"
15350 old_striplib="$STRIP -S"
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15352 $as_echo "yes" >&6; }
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15355 $as_echo "no" >&6; }
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15360 $as_echo "no" >&6; }
15376 # Report what library types will actually be built
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15378 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15380 $as_echo "$can_build_shared" >&6; }
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15383 $as_echo_n "checking whether to build shared libraries... " >&6; }
15384 test no = "$can_build_shared" && enable_shared=no
15386 # On AIX, shared libraries and static libraries use the same namespace, and
15387 # are all built from PIC.
15390 test yes = "$enable_shared" && enable_static=no
15391 if test -n "$RANLIB"; then
15392 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15393 postinstall_cmds='$RANLIB $lib'
15398 if test ia64 != "$host_cpu"; then
15399 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15400 yes,aix,yes) ;; # shared object as lib.so file only
15401 yes,svr4,*) ;; # shared object as lib.so archive member only
15402 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15408 $as_echo "$enable_shared" >&6; }
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15411 $as_echo_n "checking whether to build static libraries... " >&6; }
15412 # Make sure either enable_shared or enable_static is yes.
15413 test yes = "$enable_shared" || enable_static=yes
15414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15415 $as_echo "$enable_static" >&6; }
15422 ac_cpp='$CPP $CPPFLAGS'
15423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15443 ac_config_commands="$ac_config_commands libtool"
15448 # Only expand once:
15451 ## --------------------- ##
15452 ## End of libtool code ##
15453 ## --------------------- ##
15456 # Verify if finally libtool shared libraries will be built
15459 case "x$enable_shared" in # ((
15461 xc_lt_build_shared=$enable_shared
15464 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15469 # Verify if finally libtool static libraries will be built
15472 case "x$enable_static" in # ((
15474 xc_lt_build_static=$enable_static
15477 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15482 # Verify if libtool shared libraries should be linked using flag -version-info
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15486 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15487 xc_lt_shlib_use_version_info='yes'
15488 if test "x$version_type" = 'xnone'; then
15489 xc_lt_shlib_use_version_info='no'
15491 case $host_os in # (
15493 xc_lt_shlib_use_version_info='yes'
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15497 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15500 # Verify if libtool shared libraries should be linked using flag -no-undefined
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15504 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15505 xc_lt_shlib_use_no_undefined='no'
15506 if test "x$allow_undefined" = 'xno'; then
15507 xc_lt_shlib_use_no_undefined='yes'
15508 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15509 xc_lt_shlib_use_no_undefined='yes'
15511 case $host_os in # (
15512 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15513 xc_lt_shlib_use_no_undefined='yes'
15516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15517 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15520 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15524 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15525 xc_lt_shlib_use_mimpure_text='no'
15526 case $host_os in # (
15528 if test "x$GCC" = 'xyes'; then
15529 xc_lt_shlib_use_mimpure_text='yes'
15533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15534 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15537 # Find out whether libtool libraries would be built wit PIC
15540 case "x$pic_mode" in # ((((
15542 xc_lt_build_shared_with_pic='yes'
15543 xc_lt_build_static_with_pic='no'
15546 xc_lt_build_shared_with_pic='yes'
15547 xc_lt_build_static_with_pic='yes'
15550 xc_lt_build_shared_with_pic='no'
15551 xc_lt_build_static_with_pic='no'
15554 xc_lt_build_shared_with_pic='unknown'
15555 xc_lt_build_static_with_pic='unknown'
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15557 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15561 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15563 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15565 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15567 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15570 # Verify if libtool shared libraries will be built while static not built
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15574 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15575 if test "$xc_lt_build_shared" = 'yes' &&
15576 test "$xc_lt_build_static" = 'no'; then
15577 xc_lt_build_shared_only='yes'
15579 xc_lt_build_shared_only='no'
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15582 $as_echo "$xc_lt_build_shared_only" >&6; }
15585 # Verify if libtool static libraries will be built while shared not built
15588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15589 $as_echo_n "checking whether to build static libraries only... " >&6; }
15590 if test "$xc_lt_build_static" = 'yes' &&
15591 test "$xc_lt_build_shared" = 'no'; then
15592 xc_lt_build_static_only='yes'
15594 xc_lt_build_static_only='no'
15596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15597 $as_echo "$xc_lt_build_static_only" >&6; }
15603 # Automake conditionals based on libtool related checks
15606 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15607 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15608 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15610 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15611 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15614 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15615 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15616 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15618 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15619 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15622 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15623 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15624 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15626 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15627 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15632 # Due to libtool and automake machinery limitations of not allowing
15633 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15634 # inclusion of these in shared or static libraries, we are forced to
15635 # build using separate configure runs for shared and static libraries
15636 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15637 # to compile objects for each kind of library. Notice that relying on
15638 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15639 # user might for example choose to build static libraries with PIC.
15643 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15644 # targeting a static library and not building its shared counterpart.
15647 if test "x$xc_lt_build_static_only" = 'xyes'; then
15648 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15649 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15651 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15652 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15657 # Make staticlib CPPFLAG variable and its definition visible in output
15658 # files unconditionally, providing an empty definition unless strictly
15659 # targeting a static library and not building its shared counterpart.
15662 CPPFLAG_CURL_STATICLIB=
15663 if test "x$xc_lt_build_static_only" = 'xyes'; then
15664 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15669 # Determine whether all dependent libraries must be specified when linking
15670 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15672 REQUIRE_LIB_DEPS=no
15674 REQUIRE_LIB_DEPS=yes
15677 if test x$REQUIRE_LIB_DEPS = xyes; then
15678 USE_EXPLICIT_LIB_DEPS_TRUE=
15679 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15681 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15682 USE_EXPLICIT_LIB_DEPS_FALSE=
15686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15687 $as_echo_n "checking for inline... " >&6; }
15688 if ${ac_cv_c_inline+:} false; then :
15689 $as_echo_n "(cached) " >&6
15692 for ac_kw in inline __inline__ __inline; do
15693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15694 /* end confdefs.h. */
15695 #ifndef __cplusplus
15697 static $ac_kw foo_t static_foo () {return 0; }
15698 $ac_kw foo_t foo () {return 0; }
15702 if ac_fn_c_try_compile "$LINENO"; then :
15703 ac_cv_c_inline=$ac_kw
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 test "$ac_cv_c_inline" != no && break
15710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15711 $as_echo "$ac_cv_c_inline" >&6; }
15713 case $ac_cv_c_inline in
15716 case $ac_cv_c_inline in
15718 *) ac_val=$ac_cv_c_inline;;
15720 cat >>confdefs.h <<_ACEOF
15721 #ifndef __cplusplus
15722 #define inline $ac_val
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15732 $as_echo_n "checking if cpp -P is needed... " >&6; }
15733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15734 /* end confdefs.h. */
15740 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15741 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15749 $as_echo "$cpp" >&6; }
15751 if test "x$cpp" = "xyes"; then
15752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15753 $as_echo_n "checking if cpp -P works... " >&6; }
15754 OLDCPPFLAGS=$CPPFLAGS
15755 CPPFLAGS="$CPPFLAGS -P"
15756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15757 /* end confdefs.h. */
15763 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15764 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15772 $as_echo "$cpp_p" >&6; }
15774 if test "x$cpp_p" = "xno"; then
15775 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15776 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15783 CPPFLAGS=$OLDCPPFLAGS
15791 compiler_id="unknown"
15794 flags_dbg_all="unknown"
15795 flags_dbg_yes="unknown"
15796 flags_dbg_off="unknown"
15797 flags_opt_all="unknown"
15798 flags_opt_yes="unknown"
15799 flags_opt_off="unknown"
15801 flags_prefer_cppflags="no"
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15805 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15807 OLDCPPFLAGS=$CPPFLAGS
15808 # CPPPFLAG comes from CURL_CPP_P
15809 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15810 if test -z "$SED"; then
15811 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15813 if test -z "$GREP"; then
15814 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15819 /* end confdefs.h. */
15823 CURL_DEF_TOKEN __DECC
15828 if ac_fn_c_try_cpp "$LINENO"; then :
15830 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15831 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15832 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15833 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15834 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15839 rm -f conftest.err conftest.i conftest.$ac_ext
15840 if test -z "$tmp_exp"; then
15841 curl_cv_have_def___DECC=no
15844 curl_cv_have_def___DECC=yes
15845 curl_cv_def___DECC=$tmp_exp
15848 CPPFLAGS=$OLDCPPFLAGS
15851 OLDCPPFLAGS=$CPPFLAGS
15852 # CPPPFLAG comes from CURL_CPP_P
15853 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15854 if test -z "$SED"; then
15855 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15857 if test -z "$GREP"; then
15858 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15863 /* end confdefs.h. */
15867 CURL_DEF_TOKEN __DECC_VER
15872 if ac_fn_c_try_cpp "$LINENO"; then :
15874 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15875 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15876 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15877 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15878 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15883 rm -f conftest.err conftest.i conftest.$ac_ext
15884 if test -z "$tmp_exp"; then
15885 curl_cv_have_def___DECC_VER=no
15888 curl_cv_have_def___DECC_VER=yes
15889 curl_cv_def___DECC_VER=$tmp_exp
15892 CPPFLAGS=$OLDCPPFLAGS
15894 if test "$curl_cv_have_def___DECC" = "yes" &&
15895 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15897 $as_echo "yes" >&6; }
15898 compiler_id="DEC_C"
15899 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15900 flags_dbg_yes="-g2"
15902 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15903 flags_opt_yes="-O1"
15904 flags_opt_off="-O0"
15906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15907 $as_echo "no" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15912 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15914 OLDCPPFLAGS=$CPPFLAGS
15915 # CPPPFLAG comes from CURL_CPP_P
15916 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15917 if test -z "$SED"; then
15918 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15920 if test -z "$GREP"; then
15921 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15926 /* end confdefs.h. */
15930 CURL_DEF_TOKEN __HP_cc
15935 if ac_fn_c_try_cpp "$LINENO"; then :
15937 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15938 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15939 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15940 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15941 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15946 rm -f conftest.err conftest.i conftest.$ac_ext
15947 if test -z "$tmp_exp"; then
15948 curl_cv_have_def___HP_cc=no
15951 curl_cv_have_def___HP_cc=yes
15952 curl_cv_def___HP_cc=$tmp_exp
15955 CPPFLAGS=$OLDCPPFLAGS
15957 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15959 $as_echo "yes" >&6; }
15960 compiler_id="HP_UX_C"
15961 flags_dbg_all="-g -s"
15964 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15965 flags_opt_yes="+O2"
15966 flags_opt_off="+O0"
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15969 $as_echo "no" >&6; }
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15974 $as_echo_n "checking if compiler is IBM C... " >&6; }
15976 OLDCPPFLAGS=$CPPFLAGS
15977 # CPPPFLAG comes from CURL_CPP_P
15978 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15979 if test -z "$SED"; then
15980 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15982 if test -z "$GREP"; then
15983 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15988 /* end confdefs.h. */
15992 CURL_DEF_TOKEN __IBMC__
15997 if ac_fn_c_try_cpp "$LINENO"; then :
15999 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16000 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16001 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16002 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16003 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16008 rm -f conftest.err conftest.i conftest.$ac_ext
16009 if test -z "$tmp_exp"; then
16010 curl_cv_have_def___IBMC__=no
16013 curl_cv_have_def___IBMC__=yes
16014 curl_cv_def___IBMC__=$tmp_exp
16017 CPPFLAGS=$OLDCPPFLAGS
16019 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16021 $as_echo "yes" >&6; }
16022 compiler_id="IBM_C"
16023 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16026 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16027 flags_opt_all="$flags_opt_all -qnooptimize"
16028 flags_opt_all="$flags_opt_all -qoptimize=0"
16029 flags_opt_all="$flags_opt_all -qoptimize=1"
16030 flags_opt_all="$flags_opt_all -qoptimize=2"
16031 flags_opt_all="$flags_opt_all -qoptimize=3"
16032 flags_opt_all="$flags_opt_all -qoptimize=4"
16033 flags_opt_all="$flags_opt_all -qoptimize=5"
16034 flags_opt_yes="-O2"
16035 flags_opt_off="-qnooptimize"
16036 flags_prefer_cppflags="yes"
16038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16039 $as_echo "no" >&6; }
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16044 $as_echo_n "checking if compiler is Intel C... " >&6; }
16046 OLDCPPFLAGS=$CPPFLAGS
16047 # CPPPFLAG comes from CURL_CPP_P
16048 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16049 if test -z "$SED"; then
16050 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16052 if test -z "$GREP"; then
16053 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16058 /* end confdefs.h. */
16061 #ifdef __INTEL_COMPILER
16062 CURL_DEF_TOKEN __INTEL_COMPILER
16067 if ac_fn_c_try_cpp "$LINENO"; then :
16069 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16070 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16071 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16072 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16073 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16078 rm -f conftest.err conftest.i conftest.$ac_ext
16079 if test -z "$tmp_exp"; then
16080 curl_cv_have_def___INTEL_COMPILER=no
16083 curl_cv_have_def___INTEL_COMPILER=yes
16084 curl_cv_def___INTEL_COMPILER=$tmp_exp
16087 CPPFLAGS=$OLDCPPFLAGS
16089 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16091 $as_echo "yes" >&6; }
16092 compiler_num="$curl_cv_def___INTEL_COMPILER"
16094 OLDCPPFLAGS=$CPPFLAGS
16095 # CPPPFLAG comes from CURL_CPP_P
16096 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16097 if test -z "$SED"; then
16098 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16100 if test -z "$GREP"; then
16101 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16106 /* end confdefs.h. */
16110 CURL_DEF_TOKEN __unix__
16115 if ac_fn_c_try_cpp "$LINENO"; then :
16117 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16118 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16119 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16120 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16121 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16126 rm -f conftest.err conftest.i conftest.$ac_ext
16127 if test -z "$tmp_exp"; then
16128 curl_cv_have_def___unix__=no
16131 curl_cv_have_def___unix__=yes
16132 curl_cv_def___unix__=$tmp_exp
16135 CPPFLAGS=$OLDCPPFLAGS
16137 if test "$curl_cv_have_def___unix__" = "yes"; then
16138 compiler_id="INTEL_UNIX_C"
16139 flags_dbg_all="-g -g0"
16142 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16143 flags_opt_yes="-O2"
16144 flags_opt_off="-O0"
16146 compiler_id="INTEL_WINDOWS_C"
16147 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16148 flags_dbg_all="$flags_dbg_all /debug"
16149 flags_dbg_all="$flags_dbg_all /debug:none"
16150 flags_dbg_all="$flags_dbg_all /debug:minimal"
16151 flags_dbg_all="$flags_dbg_all /debug:partial"
16152 flags_dbg_all="$flags_dbg_all /debug:full"
16153 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16154 flags_dbg_all="$flags_dbg_all /debug:extended"
16155 flags_dbg_yes="/Zi /Oy-"
16156 flags_dbg_off="/debug:none /Oy-"
16157 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16158 flags_opt_yes="/O2"
16159 flags_opt_off="/Od"
16162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16163 $as_echo "no" >&6; }
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16168 $as_echo_n "checking if compiler is clang... " >&6; }
16170 OLDCPPFLAGS=$CPPFLAGS
16171 # CPPPFLAG comes from CURL_CPP_P
16172 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16173 if test -z "$SED"; then
16174 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16176 if test -z "$GREP"; then
16177 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16182 /* end confdefs.h. */
16186 CURL_DEF_TOKEN __clang__
16191 if ac_fn_c_try_cpp "$LINENO"; then :
16193 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16194 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16195 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16196 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16197 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16202 rm -f conftest.err conftest.i conftest.$ac_ext
16203 if test -z "$tmp_exp"; then
16204 curl_cv_have_def___clang__=no
16207 curl_cv_have_def___clang__=yes
16208 curl_cv_def___clang__=$tmp_exp
16211 CPPFLAGS=$OLDCPPFLAGS
16213 if test "$curl_cv_have_def___clang__" = "yes"; then
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16215 $as_echo "yes" >&6; }
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16217 $as_echo_n "checking if compiler is xlclang... " >&6; }
16219 OLDCPPFLAGS=$CPPFLAGS
16220 # CPPPFLAG comes from CURL_CPP_P
16221 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16222 if test -z "$SED"; then
16223 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16225 if test -z "$GREP"; then
16226 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16231 /* end confdefs.h. */
16235 CURL_DEF_TOKEN __ibmxl__
16240 if ac_fn_c_try_cpp "$LINENO"; then :
16242 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16243 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16244 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16245 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16246 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16251 rm -f conftest.err conftest.i conftest.$ac_ext
16252 if test -z "$tmp_exp"; then
16253 curl_cv_have_def___ibmxl__=no
16256 curl_cv_have_def___ibmxl__=yes
16257 curl_cv_def___ibmxl__=$tmp_exp
16260 CPPFLAGS=$OLDCPPFLAGS
16262 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16264 $as_echo "yes" >&6; }
16265 compiler_id="XLCLANG"
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16268 $as_echo "no" >&6; }
16269 compiler_id="CLANG"
16271 fullclangver=`$CC -v 2>&1 | grep version`
16272 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16273 if test -z "$clangver"; then
16274 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16277 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16280 clangvhi=`echo $clangver | cut -d . -f1`
16281 clangvlo=`echo $clangver | cut -d . -f2`
16282 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16283 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16284 flags_dbg_all="$flags_dbg_all -ggdb"
16285 flags_dbg_all="$flags_dbg_all -gstabs"
16286 flags_dbg_all="$flags_dbg_all -gstabs+"
16287 flags_dbg_all="$flags_dbg_all -gcoff"
16288 flags_dbg_all="$flags_dbg_all -gxcoff"
16289 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16290 flags_dbg_all="$flags_dbg_all -gvms"
16293 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16294 flags_opt_yes="-Os"
16295 flags_opt_off="-O0"
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16298 $as_echo "no" >&6; }
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16303 $as_echo_n "checking if compiler is GNU C... " >&6; }
16305 OLDCPPFLAGS=$CPPFLAGS
16306 # CPPPFLAG comes from CURL_CPP_P
16307 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16308 if test -z "$SED"; then
16309 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16311 if test -z "$GREP"; then
16312 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16317 /* end confdefs.h. */
16321 CURL_DEF_TOKEN __GNUC__
16326 if ac_fn_c_try_cpp "$LINENO"; then :
16328 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16329 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16330 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16331 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16332 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16337 rm -f conftest.err conftest.i conftest.$ac_ext
16338 if test -z "$tmp_exp"; then
16339 curl_cv_have_def___GNUC__=no
16342 curl_cv_have_def___GNUC__=yes
16343 curl_cv_def___GNUC__=$tmp_exp
16346 CPPFLAGS=$OLDCPPFLAGS
16348 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16349 test "$compiler_id" = "unknown"; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16351 $as_echo "yes" >&6; }
16352 compiler_id="GNU_C"
16353 gccver=`$CC -dumpversion`
16354 gccvhi=`echo $gccver | cut -d . -f1`
16355 gccvlo=`echo $gccver | cut -d . -f2`
16356 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16357 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16358 flags_dbg_all="$flags_dbg_all -ggdb"
16359 flags_dbg_all="$flags_dbg_all -gstabs"
16360 flags_dbg_all="$flags_dbg_all -gstabs+"
16361 flags_dbg_all="$flags_dbg_all -gcoff"
16362 flags_dbg_all="$flags_dbg_all -gxcoff"
16363 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16364 flags_dbg_all="$flags_dbg_all -gvms"
16367 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16368 flags_opt_yes="-O2"
16369 flags_opt_off="-O0"
16371 OLDCPPFLAGS=$CPPFLAGS
16372 # CPPPFLAG comes from CURL_CPP_P
16373 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16374 if test -z "$SED"; then
16375 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16377 if test -z "$GREP"; then
16378 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16383 /* end confdefs.h. */
16387 CURL_DEF_TOKEN _WIN32
16392 if ac_fn_c_try_cpp "$LINENO"; then :
16394 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16395 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16396 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16397 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16398 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16403 rm -f conftest.err conftest.i conftest.$ac_ext
16404 if test -z "$tmp_exp"; then
16405 curl_cv_have_def__WIN32=no
16408 curl_cv_have_def__WIN32=yes
16409 curl_cv_def__WIN32=$tmp_exp
16412 CPPFLAGS=$OLDCPPFLAGS
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16416 $as_echo "no" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16421 $as_echo_n "checking if compiler is LCC... " >&6; }
16423 OLDCPPFLAGS=$CPPFLAGS
16424 # CPPPFLAG comes from CURL_CPP_P
16425 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16426 if test -z "$SED"; then
16427 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16429 if test -z "$GREP"; then
16430 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16435 /* end confdefs.h. */
16439 CURL_DEF_TOKEN __LCC__
16444 if ac_fn_c_try_cpp "$LINENO"; then :
16446 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16447 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16448 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16449 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16450 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16455 rm -f conftest.err conftest.i conftest.$ac_ext
16456 if test -z "$tmp_exp"; then
16457 curl_cv_have_def___LCC__=no
16460 curl_cv_have_def___LCC__=yes
16461 curl_cv_def___LCC__=$tmp_exp
16464 CPPFLAGS=$OLDCPPFLAGS
16466 if test "$curl_cv_have_def___LCC__" = "yes"; then
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16468 $as_echo "yes" >&6; }
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16478 $as_echo "no" >&6; }
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16483 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16485 OLDCPPFLAGS=$CPPFLAGS
16486 # CPPPFLAG comes from CURL_CPP_P
16487 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16488 if test -z "$SED"; then
16489 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16491 if test -z "$GREP"; then
16492 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16497 /* end confdefs.h. */
16501 CURL_DEF_TOKEN __GNUC__
16506 if ac_fn_c_try_cpp "$LINENO"; then :
16508 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16509 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16510 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16511 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16512 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16517 rm -f conftest.err conftest.i conftest.$ac_ext
16518 if test -z "$tmp_exp"; then
16519 curl_cv_have_def___GNUC__=no
16522 curl_cv_have_def___GNUC__=yes
16523 curl_cv_def___GNUC__=$tmp_exp
16526 CPPFLAGS=$OLDCPPFLAGS
16529 OLDCPPFLAGS=$CPPFLAGS
16530 # CPPPFLAG comes from CURL_CPP_P
16531 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16532 if test -z "$SED"; then
16533 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16535 if test -z "$GREP"; then
16536 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16541 /* end confdefs.h. */
16544 #ifdef _COMPILER_VERSION
16545 CURL_DEF_TOKEN _COMPILER_VERSION
16550 if ac_fn_c_try_cpp "$LINENO"; then :
16552 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16553 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16554 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16555 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16556 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16561 rm -f conftest.err conftest.i conftest.$ac_ext
16562 if test -z "$tmp_exp"; then
16563 curl_cv_have_def__COMPILER_VERSION=no
16566 curl_cv_have_def__COMPILER_VERSION=yes
16567 curl_cv_def__COMPILER_VERSION=$tmp_exp
16570 CPPFLAGS=$OLDCPPFLAGS
16573 OLDCPPFLAGS=$CPPFLAGS
16574 # CPPPFLAG comes from CURL_CPP_P
16575 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16576 if test -z "$SED"; then
16577 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16579 if test -z "$GREP"; then
16580 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16585 /* end confdefs.h. */
16588 #ifdef _SGI_COMPILER_VERSION
16589 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16594 if ac_fn_c_try_cpp "$LINENO"; then :
16596 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16597 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16598 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16599 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16600 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16605 rm -f conftest.err conftest.i conftest.$ac_ext
16606 if test -z "$tmp_exp"; then
16607 curl_cv_have_def__SGI_COMPILER_VERSION=no
16610 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16611 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16614 CPPFLAGS=$OLDCPPFLAGS
16616 if test "$curl_cv_have_def___GNUC__" = "no" &&
16617 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16618 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16620 $as_echo "yes" >&6; }
16621 compiler_id="SGI_MIPSPRO_C"
16622 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16625 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16626 flags_opt_yes="-O2"
16627 flags_opt_off="-O0"
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16630 $as_echo "no" >&6; }
16634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16635 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16637 OLDCPPFLAGS=$CPPFLAGS
16638 # CPPPFLAG comes from CURL_CPP_P
16639 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16640 if test -z "$SED"; then
16641 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16643 if test -z "$GREP"; then
16644 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16653 CURL_DEF_TOKEN __GNUC__
16658 if ac_fn_c_try_cpp "$LINENO"; then :
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" = "__GNUC__"; then
16669 rm -f conftest.err conftest.i conftest.$ac_ext
16670 if test -z "$tmp_exp"; then
16671 curl_cv_have_def___GNUC__=no
16674 curl_cv_have_def___GNUC__=yes
16675 curl_cv_def___GNUC__=$tmp_exp
16678 CPPFLAGS=$OLDCPPFLAGS
16681 OLDCPPFLAGS=$CPPFLAGS
16682 # CPPPFLAG comes from CURL_CPP_P
16683 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16684 if test -z "$SED"; then
16685 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16687 if test -z "$GREP"; then
16688 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16693 /* end confdefs.h. */
16697 CURL_DEF_TOKEN __sgi
16702 if ac_fn_c_try_cpp "$LINENO"; then :
16704 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16705 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16706 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16707 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16708 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16713 rm -f conftest.err conftest.i conftest.$ac_ext
16714 if test -z "$tmp_exp"; then
16715 curl_cv_have_def___sgi=no
16718 curl_cv_have_def___sgi=yes
16719 curl_cv_def___sgi=$tmp_exp
16722 CPPFLAGS=$OLDCPPFLAGS
16724 if test "$curl_cv_have_def___GNUC__" = "no" &&
16725 test "$curl_cv_have_def___sgi" = "yes" &&
16726 test "$compiler_id" = "unknown"; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16728 $as_echo "yes" >&6; }
16729 compiler_id="SGI_MIPS_C"
16730 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16733 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16734 flags_opt_yes="-O2"
16735 flags_opt_off="-O0"
16737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16738 $as_echo "no" >&6; }
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16743 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16745 OLDCPPFLAGS=$CPPFLAGS
16746 # CPPPFLAG comes from CURL_CPP_P
16747 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16748 if test -z "$SED"; then
16749 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16751 if test -z "$GREP"; then
16752 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16761 CURL_DEF_TOKEN __SUNPRO_C
16766 if ac_fn_c_try_cpp "$LINENO"; then :
16768 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16769 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16770 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16771 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16772 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16777 rm -f conftest.err conftest.i conftest.$ac_ext
16778 if test -z "$tmp_exp"; then
16779 curl_cv_have_def___SUNPRO_C=no
16782 curl_cv_have_def___SUNPRO_C=yes
16783 curl_cv_def___SUNPRO_C=$tmp_exp
16786 CPPFLAGS=$OLDCPPFLAGS
16788 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790 $as_echo "yes" >&6; }
16791 compiler_id="SUNPRO_C"
16792 flags_dbg_all="-g -s"
16795 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16796 flags_opt_yes="-xO2"
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800 $as_echo "no" >&6; }
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16805 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16807 OLDCPPFLAGS=$CPPFLAGS
16808 # CPPPFLAG comes from CURL_CPP_P
16809 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16810 if test -z "$SED"; then
16811 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16813 if test -z "$GREP"; then
16814 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16823 CURL_DEF_TOKEN __TINYC__
16828 if ac_fn_c_try_cpp "$LINENO"; then :
16830 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16831 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16832 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16833 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16834 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16839 rm -f conftest.err conftest.i conftest.$ac_ext
16840 if test -z "$tmp_exp"; then
16841 curl_cv_have_def___TINYC__=no
16844 curl_cv_have_def___TINYC__=yes
16845 curl_cv_def___TINYC__=$tmp_exp
16848 CPPFLAGS=$OLDCPPFLAGS
16850 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16852 $as_echo "yes" >&6; }
16853 compiler_id="TINY_C"
16854 flags_dbg_all="-g -b"
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16862 $as_echo "no" >&6; }
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16867 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16869 OLDCPPFLAGS=$CPPFLAGS
16870 # CPPPFLAG comes from CURL_CPP_P
16871 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16872 if test -z "$SED"; then
16873 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16875 if test -z "$GREP"; then
16876 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16881 /* end confdefs.h. */
16885 CURL_DEF_TOKEN __WATCOMC__
16890 if ac_fn_c_try_cpp "$LINENO"; then :
16892 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16893 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16894 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16895 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16896 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16901 rm -f conftest.err conftest.i conftest.$ac_ext
16902 if test -z "$tmp_exp"; then
16903 curl_cv_have_def___WATCOMC__=no
16906 curl_cv_have_def___WATCOMC__=yes
16907 curl_cv_def___WATCOMC__=$tmp_exp
16910 CPPFLAGS=$OLDCPPFLAGS
16912 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16914 $as_echo "yes" >&6; }
16916 OLDCPPFLAGS=$CPPFLAGS
16917 # CPPPFLAG comes from CURL_CPP_P
16918 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16919 if test -z "$SED"; then
16920 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16922 if test -z "$GREP"; then
16923 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16932 CURL_DEF_TOKEN __UNIX__
16937 if ac_fn_c_try_cpp "$LINENO"; then :
16939 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16940 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16941 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16942 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16943 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16948 rm -f conftest.err conftest.i conftest.$ac_ext
16949 if test -z "$tmp_exp"; then
16950 curl_cv_have_def___UNIX__=no
16953 curl_cv_have_def___UNIX__=yes
16954 curl_cv_def___UNIX__=$tmp_exp
16957 CPPFLAGS=$OLDCPPFLAGS
16959 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16960 compiler_id="WATCOM_UNIX_C"
16961 flags_dbg_all="-g1 -g1+ -g2 -g3"
16962 flags_dbg_yes="-g2"
16964 flags_opt_all="-O0 -O1 -O2 -O3"
16965 flags_opt_yes="-O2"
16966 flags_opt_off="-O0"
16968 compiler_id="WATCOM_WINDOWS_C"
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16978 $as_echo "no" >&6; }
16982 if test "$compiler_id" = "unknown"; then
16985 *** Warning: This configure script does not have information about the
16986 *** compiler you are using, relative to the flags required to enable or
16987 *** disable generation of debug info, optimization options or warnings.
16989 *** Whatever settings are present in CFLAGS will be used for this run.
16991 *** If you wish to help the curl project to better support your compiler
16992 *** you can report this and the required info on the libcurl development
16993 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17001 eval _sqz_input=\$$1
17002 for _sqz_token in $_sqz_input; do
17003 if test -z "$_sqz_result"; then
17004 _sqz_result="$_sqz_token"
17006 _sqz_result="$_sqz_result $_sqz_token"
17009 eval $1=\$_sqz_result
17015 if test "$compiler_id" != "unknown"; then
17017 tmp_save_CPPFLAGS="$CPPFLAGS"
17018 tmp_save_CFLAGS="$CFLAGS"
17022 case "$compiler_id" in
17026 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17031 tmp_CFLAGS="$tmp_CFLAGS -std1"
17032 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17033 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17034 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17039 if test "$compiler_num" -ge "295"; then
17040 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17046 tmp_CFLAGS="$tmp_CFLAGS -z"
17047 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17052 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17053 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17054 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17059 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17060 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17061 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17066 tmp_CFLAGS="$tmp_CFLAGS"
17071 tmp_CFLAGS="$tmp_CFLAGS -n"
17076 tmp_CFLAGS="$tmp_CFLAGS"
17081 tmp_CFLAGS="$tmp_CFLAGS"
17086 tmp_CFLAGS="$tmp_CFLAGS"
17091 tmp_CFLAGS="$tmp_CFLAGS"
17096 tmp_CFLAGS="$tmp_CFLAGS"
17101 tmp_CFLAGS="$tmp_CFLAGS"
17106 squeeze tmp_CPPFLAGS
17109 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17111 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17112 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17113 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17117 tmp_compiler_works="unknown"
17118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17119 /* end confdefs.h. */
17134 if ac_fn_c_try_compile "$LINENO"; then :
17136 tmp_compiler_works="yes"
17140 tmp_compiler_works="no"
17142 sed 's/^/cc-fail: /' conftest.err >&6
17146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17147 if test "$tmp_compiler_works" = "yes"; then
17148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17149 /* end confdefs.h. */
17164 if ac_fn_c_try_link "$LINENO"; then :
17166 tmp_compiler_works="yes"
17170 tmp_compiler_works="no"
17172 sed 's/^/link-fail: /' conftest.err >&6
17176 rm -f core conftest.err conftest.$ac_objext \
17177 conftest$ac_exeext conftest.$ac_ext
17179 if test "x$cross_compiling" != "xyes" &&
17180 test "$tmp_compiler_works" = "yes"; then
17182 old=$LD_LIBRARY_PATH
17183 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17184 export LD_LIBRARY_PATH
17185 if test "$cross_compiling" = yes; then :
17186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17188 as_fn_error $? "cannot run test program while cross compiling
17189 See \`config.log' for more details" "$LINENO" 5; }
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17196 # include <stdlib.h>
17210 if ac_fn_c_try_run "$LINENO"; then :
17211 tmp_compiler_works="yes"
17214 tmp_compiler_works="no"
17216 echo "run-fail: test program exited with status $ac_status" >&6
17220 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17221 conftest.$ac_objext conftest.beam conftest.$ac_ext
17224 LD_LIBRARY_PATH=$old # restore
17227 if test "$tmp_compiler_works" = "yes"; then
17229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17230 $as_echo "yes" >&6; }
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17232 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17237 $as_echo "no" >&6; }
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17239 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17240 CPPFLAGS="$tmp_save_CPPFLAGS"
17241 CFLAGS="$tmp_save_CFLAGS"
17251 if test "$compiler_id" != "unknown"; then
17253 tmp_save_CFLAGS="$CFLAGS"
17254 tmp_save_CPPFLAGS="$CPPFLAGS"
17257 tmp_CFLAGS="$CFLAGS"
17258 tmp_CPPFLAGS="$CPPFLAGS"
17261 for word1 in $tmp_CFLAGS; do
17262 ac_var_strip_word="no"
17263 for word2 in $flags_dbg_all; do
17264 if test "$word1" = "$word2"; then
17265 ac_var_strip_word="yes"
17268 if test "$ac_var_strip_word" = "no"; then
17269 ac_var_stripped="$ac_var_stripped $word1"
17272 tmp_CFLAGS="$ac_var_stripped"
17277 for word1 in $tmp_CPPFLAGS; do
17278 ac_var_strip_word="no"
17279 for word2 in $flags_dbg_all; do
17280 if test "$word1" = "$word2"; then
17281 ac_var_strip_word="yes"
17284 if test "$ac_var_strip_word" = "no"; then
17285 ac_var_stripped="$ac_var_stripped $word1"
17288 tmp_CPPFLAGS="$ac_var_stripped"
17289 squeeze tmp_CPPFLAGS
17292 if test "$want_debug" = "yes"; then
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17294 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17295 tmp_options="$flags_dbg_yes"
17297 if test "$want_debug" = "no"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17299 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17300 tmp_options="$flags_dbg_off"
17303 if test "$flags_prefer_cppflags" = "yes"; then
17304 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17305 CFLAGS="$tmp_CFLAGS"
17307 CPPFLAGS="$tmp_CPPFLAGS"
17308 CFLAGS="$tmp_CFLAGS $tmp_options"
17313 tmp_compiler_works="unknown"
17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h. */
17330 if ac_fn_c_try_compile "$LINENO"; then :
17332 tmp_compiler_works="yes"
17336 tmp_compiler_works="no"
17338 sed 's/^/cc-fail: /' conftest.err >&6
17342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17343 if test "$tmp_compiler_works" = "yes"; then
17344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17345 /* end confdefs.h. */
17360 if ac_fn_c_try_link "$LINENO"; then :
17362 tmp_compiler_works="yes"
17366 tmp_compiler_works="no"
17368 sed 's/^/link-fail: /' conftest.err >&6
17372 rm -f core conftest.err conftest.$ac_objext \
17373 conftest$ac_exeext conftest.$ac_ext
17375 if test "x$cross_compiling" != "xyes" &&
17376 test "$tmp_compiler_works" = "yes"; then
17378 old=$LD_LIBRARY_PATH
17379 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17380 export LD_LIBRARY_PATH
17381 if test "$cross_compiling" = yes; then :
17382 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17383 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17384 as_fn_error $? "cannot run test program while cross compiling
17385 See \`config.log' for more details" "$LINENO" 5; }
17387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17388 /* end confdefs.h. */
17392 # include <stdlib.h>
17406 if ac_fn_c_try_run "$LINENO"; then :
17407 tmp_compiler_works="yes"
17410 tmp_compiler_works="no"
17412 echo "run-fail: test program exited with status $ac_status" >&6
17416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17417 conftest.$ac_objext conftest.beam conftest.$ac_ext
17420 LD_LIBRARY_PATH=$old # restore
17423 if test "$tmp_compiler_works" = "yes"; then
17425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17426 $as_echo "yes" >&6; }
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17428 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17433 $as_echo "no" >&6; }
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17435 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17436 CPPFLAGS="$tmp_save_CPPFLAGS"
17437 CFLAGS="$tmp_save_CFLAGS"
17446 if test "$compiler_id" != "unknown"; then
17448 tmp_save_CFLAGS="$CFLAGS"
17449 tmp_save_CPPFLAGS="$CPPFLAGS"
17452 tmp_CFLAGS="$CFLAGS"
17453 tmp_CPPFLAGS="$CPPFLAGS"
17454 honor_optimize_option="yes"
17457 if test "$want_optimize" = "assume_no" ||
17458 test "$want_optimize" = "assume_yes"; then
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17460 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17463 ac_var_match_word="no"
17464 for word1 in $tmp_CFLAGS; do
17465 for word2 in $flags_opt_all; do
17466 if test "$word1" = "$word2"; then
17467 ac_var_match_word="yes"
17472 if test "$ac_var_match_word" = "yes"; then
17474 honor_optimize_option="no"
17481 ac_var_match_word="no"
17482 for word1 in $tmp_CPPFLAGS; do
17483 for word2 in $flags_opt_all; do
17484 if test "$word1" = "$word2"; then
17485 ac_var_match_word="yes"
17490 if test "$ac_var_match_word" = "yes"; then
17492 honor_optimize_option="no"
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17498 $as_echo "$honor_optimize_option" >&6; }
17499 if test "$honor_optimize_option" = "yes"; then
17500 if test "$want_optimize" = "assume_yes"; then
17501 want_optimize="yes"
17503 if test "$want_optimize" = "assume_no"; then
17509 if test "$honor_optimize_option" = "yes"; then
17512 for word1 in $tmp_CFLAGS; do
17513 ac_var_strip_word="no"
17514 for word2 in $flags_opt_all; do
17515 if test "$word1" = "$word2"; then
17516 ac_var_strip_word="yes"
17519 if test "$ac_var_strip_word" = "no"; then
17520 ac_var_stripped="$ac_var_stripped $word1"
17523 tmp_CFLAGS="$ac_var_stripped"
17528 for word1 in $tmp_CPPFLAGS; do
17529 ac_var_strip_word="no"
17530 for word2 in $flags_opt_all; do
17531 if test "$word1" = "$word2"; then
17532 ac_var_strip_word="yes"
17535 if test "$ac_var_strip_word" = "no"; then
17536 ac_var_stripped="$ac_var_stripped $word1"
17539 tmp_CPPFLAGS="$ac_var_stripped"
17540 squeeze tmp_CPPFLAGS
17542 if test "$want_optimize" = "yes"; then
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17544 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17545 tmp_options="$flags_opt_yes"
17547 if test "$want_optimize" = "no"; then
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17549 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17550 tmp_options="$flags_opt_off"
17552 if test "$flags_prefer_cppflags" = "yes"; then
17553 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17554 CFLAGS="$tmp_CFLAGS"
17556 CPPFLAGS="$tmp_CPPFLAGS"
17557 CFLAGS="$tmp_CFLAGS $tmp_options"
17562 tmp_compiler_works="unknown"
17563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17564 /* end confdefs.h. */
17579 if ac_fn_c_try_compile "$LINENO"; then :
17581 tmp_compiler_works="yes"
17585 tmp_compiler_works="no"
17587 sed 's/^/cc-fail: /' conftest.err >&6
17591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17592 if test "$tmp_compiler_works" = "yes"; then
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17609 if ac_fn_c_try_link "$LINENO"; then :
17611 tmp_compiler_works="yes"
17615 tmp_compiler_works="no"
17617 sed 's/^/link-fail: /' conftest.err >&6
17621 rm -f core conftest.err conftest.$ac_objext \
17622 conftest$ac_exeext conftest.$ac_ext
17624 if test "x$cross_compiling" != "xyes" &&
17625 test "$tmp_compiler_works" = "yes"; then
17627 old=$LD_LIBRARY_PATH
17628 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17629 export LD_LIBRARY_PATH
17630 if test "$cross_compiling" = yes; then :
17631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17633 as_fn_error $? "cannot run test program while cross compiling
17634 See \`config.log' for more details" "$LINENO" 5; }
17636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17637 /* end confdefs.h. */
17641 # include <stdlib.h>
17655 if ac_fn_c_try_run "$LINENO"; then :
17656 tmp_compiler_works="yes"
17659 tmp_compiler_works="no"
17661 echo "run-fail: test program exited with status $ac_status" >&6
17665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17666 conftest.$ac_objext conftest.beam conftest.$ac_ext
17669 LD_LIBRARY_PATH=$old # restore
17672 if test "$tmp_compiler_works" = "yes"; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17675 $as_echo "yes" >&6; }
17676 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17677 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17682 $as_echo "no" >&6; }
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17684 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17685 CPPFLAGS="$tmp_save_CPPFLAGS"
17686 CFLAGS="$tmp_save_CFLAGS"
17696 if test "$compiler_id" != "unknown"; then
17698 tmp_save_CPPFLAGS="$CPPFLAGS"
17699 tmp_save_CFLAGS="$CFLAGS"
17703 case "$compiler_id" in
17707 if test "$want_warnings" = "yes"; then
17708 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17710 ac_var_added_warnings=""
17711 for warning in all extra; do
17713 ac_var_match_word="no"
17714 for word1 in $CFLAGS; do
17715 for word2 in -Wno-$warning -W$warning; do
17716 if test "$word1" = "$word2"; then
17717 ac_var_match_word="yes"
17722 if test "$ac_var_match_word" = "no"; then
17723 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17726 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17730 ac_var_added_warnings=""
17731 for warning in pointer-arith write-strings; do
17733 ac_var_match_word="no"
17734 for word1 in $CFLAGS; do
17735 for word2 in -Wno-$warning -W$warning; do
17736 if test "$word1" = "$word2"; then
17737 ac_var_match_word="yes"
17742 if test "$ac_var_match_word" = "no"; then
17743 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17746 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17750 ac_var_added_warnings=""
17751 for warning in shadow; do
17753 ac_var_match_word="no"
17754 for word1 in $CFLAGS; do
17755 for word2 in -Wno-$warning -W$warning; do
17756 if test "$word1" = "$word2"; then
17757 ac_var_match_word="yes"
17762 if test "$ac_var_match_word" = "no"; then
17763 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17766 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17770 ac_var_added_warnings=""
17771 for warning in inline nested-externs; do
17773 ac_var_match_word="no"
17774 for word1 in $CFLAGS; do
17775 for word2 in -Wno-$warning -W$warning; do
17776 if test "$word1" = "$word2"; then
17777 ac_var_match_word="yes"
17782 if test "$ac_var_match_word" = "no"; then
17783 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17786 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17790 ac_var_added_warnings=""
17791 for warning in missing-declarations; do
17793 ac_var_match_word="no"
17794 for word1 in $CFLAGS; do
17795 for word2 in -Wno-$warning -W$warning; do
17796 if test "$word1" = "$word2"; then
17797 ac_var_match_word="yes"
17802 if test "$ac_var_match_word" = "no"; then
17803 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17806 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17810 ac_var_added_warnings=""
17811 for warning in missing-prototypes; do
17813 ac_var_match_word="no"
17814 for word1 in $CFLAGS; do
17815 for word2 in -Wno-$warning -W$warning; do
17816 if test "$word1" = "$word2"; then
17817 ac_var_match_word="yes"
17822 if test "$ac_var_match_word" = "no"; then
17823 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17826 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17829 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17831 ac_var_added_warnings=""
17832 for warning in float-equal; do
17834 ac_var_match_word="no"
17835 for word1 in $CFLAGS; do
17836 for word2 in -Wno-$warning -W$warning; do
17837 if test "$word1" = "$word2"; then
17838 ac_var_match_word="yes"
17843 if test "$ac_var_match_word" = "no"; then
17844 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17847 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17851 ac_var_added_warnings=""
17852 for warning in no-multichar sign-compare; do
17854 ac_var_match_word="no"
17855 for word1 in $CFLAGS; do
17856 for word2 in -Wno-$warning -W$warning; do
17857 if test "$word1" = "$word2"; then
17858 ac_var_match_word="yes"
17863 if test "$ac_var_match_word" = "no"; then
17864 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17867 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17871 ac_var_added_warnings=""
17872 for warning in undef; do
17874 ac_var_match_word="no"
17875 for word1 in $CFLAGS; do
17876 for word2 in -Wno-$warning -W$warning; do
17877 if test "$word1" = "$word2"; then
17878 ac_var_match_word="yes"
17883 if test "$ac_var_match_word" = "no"; then
17884 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17887 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17890 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17892 ac_var_added_warnings=""
17893 for warning in endif-labels strict-prototypes; do
17895 ac_var_match_word="no"
17896 for word1 in $CFLAGS; do
17897 for word2 in -Wno-$warning -W$warning; do
17898 if test "$word1" = "$word2"; then
17899 ac_var_match_word="yes"
17904 if test "$ac_var_match_word" = "no"; then
17905 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17908 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17912 ac_var_added_warnings=""
17913 for warning in declaration-after-statement; do
17915 ac_var_match_word="no"
17916 for word1 in $CFLAGS; do
17917 for word2 in -Wno-$warning -W$warning; do
17918 if test "$word1" = "$word2"; then
17919 ac_var_match_word="yes"
17924 if test "$ac_var_match_word" = "no"; then
17925 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17928 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17932 ac_var_added_warnings=""
17933 for warning in cast-align; do
17935 ac_var_match_word="no"
17936 for word1 in $CFLAGS; do
17937 for word2 in -Wno-$warning -W$warning; do
17938 if test "$word1" = "$word2"; then
17939 ac_var_match_word="yes"
17944 if test "$ac_var_match_word" = "no"; then
17945 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17948 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17951 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17953 ac_var_added_warnings=""
17954 for warning in shorten-64-to-32; do
17956 ac_var_match_word="no"
17957 for word1 in $CFLAGS; do
17958 for word2 in -Wno-$warning -W$warning; do
17959 if test "$word1" = "$word2"; then
17960 ac_var_match_word="yes"
17965 if test "$ac_var_match_word" = "no"; then
17966 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17969 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17973 if test "$compiler_num" -ge "101"; then
17975 ac_var_added_warnings=""
17976 for warning in unused; do
17978 ac_var_match_word="no"
17979 for word1 in $CFLAGS; do
17980 for word2 in -Wno-$warning -W$warning; do
17981 if test "$word1" = "$word2"; then
17982 ac_var_match_word="yes"
17987 if test "$ac_var_match_word" = "no"; then
17988 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
17991 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
17996 if test "$compiler_num" -ge "208"; then
17998 ac_var_added_warnings=""
17999 for warning in vla; do
18001 ac_var_match_word="no"
18002 for word1 in $CFLAGS; do
18003 for word2 in -Wno-$warning -W$warning; do
18004 if test "$word1" = "$word2"; then
18005 ac_var_match_word="yes"
18010 if test "$ac_var_match_word" = "no"; then
18011 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18014 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18019 if test "$compiler_num" -ge "209"; then
18021 ac_var_added_warnings=""
18022 for warning in shift-sign-overflow; do
18024 ac_var_match_word="no"
18025 for word1 in $CFLAGS; do
18026 for word2 in -Wno-$warning -W$warning; do
18027 if test "$word1" = "$word2"; then
18028 ac_var_match_word="yes"
18033 if test "$ac_var_match_word" = "no"; then
18034 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18037 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18042 if test "$compiler_num" -ge "302"; then
18048 ac_var_added_warnings=""
18049 for warning in missing-variable-declarations; do
18051 ac_var_match_word="no"
18052 for word1 in $CFLAGS; do
18053 for word2 in -Wno-$warning -W$warning; do
18054 if test "$word1" = "$word2"; then
18055 ac_var_match_word="yes"
18060 if test "$ac_var_match_word" = "no"; then
18061 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18064 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18071 if test "$compiler_num" -ge "306"; then
18073 ac_var_added_warnings=""
18074 for warning in double-promotion; do
18076 ac_var_match_word="no"
18077 for word1 in $CFLAGS; do
18078 for word2 in -Wno-$warning -W$warning; do
18079 if test "$word1" = "$word2"; then
18080 ac_var_match_word="yes"
18085 if test "$ac_var_match_word" = "no"; then
18086 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18089 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18094 if test "$compiler_num" -ge "309"; then
18096 ac_var_added_warnings=""
18097 for warning in comma; do
18099 ac_var_match_word="no"
18100 for word1 in $CFLAGS; do
18101 for word2 in -Wno-$warning -W$warning; do
18102 if test "$word1" = "$word2"; then
18103 ac_var_match_word="yes"
18108 if test "$ac_var_match_word" = "no"; then
18109 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18112 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18115 # avoid the varargs warning, fixed in 4.0
18116 # https://bugs.llvm.org/show_bug.cgi?id=29140
18117 if test "$compiler_num" -lt "400"; then
18118 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
18121 if test "$compiler_num" -ge "700"; then
18123 ac_var_added_warnings=""
18124 for warning in assign-enum; do
18126 ac_var_match_word="no"
18127 for word1 in $CFLAGS; do
18128 for word2 in -Wno-$warning -W$warning; do
18129 if test "$word1" = "$word2"; then
18130 ac_var_match_word="yes"
18135 if test "$ac_var_match_word" = "no"; then
18136 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18139 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18148 if test "$want_warnings" = "yes"; then
18149 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
18155 if test "$want_warnings" = "yes"; then
18157 if test "x$cross_compiling" != "xyes" ||
18158 test "$compiler_num" -ge "300"; then
18159 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18163 ac_var_added_warnings=""
18164 for warning in all; do
18166 ac_var_match_word="no"
18167 for word1 in $CFLAGS; do
18168 for word2 in -Wno-$warning -W$warning; do
18169 if test "$word1" = "$word2"; then
18170 ac_var_match_word="yes"
18175 if test "$ac_var_match_word" = "no"; then
18176 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18179 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18182 tmp_CFLAGS="$tmp_CFLAGS -W"
18184 if test "$compiler_num" -ge "104"; then
18186 ac_var_added_warnings=""
18187 for warning in pointer-arith write-strings; do
18189 ac_var_match_word="no"
18190 for word1 in $CFLAGS; do
18191 for word2 in -Wno-$warning -W$warning; do
18192 if test "$word1" = "$word2"; then
18193 ac_var_match_word="yes"
18198 if test "$ac_var_match_word" = "no"; then
18199 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18202 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18205 if test "x$cross_compiling" != "xyes" ||
18206 test "$compiler_num" -ge "300"; then
18208 ac_var_added_warnings=""
18209 for warning in unused shadow; do
18211 ac_var_match_word="no"
18212 for word1 in $CFLAGS; do
18213 for word2 in -Wno-$warning -W$warning; do
18214 if test "$word1" = "$word2"; then
18215 ac_var_match_word="yes"
18220 if test "$ac_var_match_word" = "no"; then
18221 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18224 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18230 if test "$compiler_num" -ge "207"; then
18232 ac_var_added_warnings=""
18233 for warning in inline nested-externs; do
18235 ac_var_match_word="no"
18236 for word1 in $CFLAGS; do
18237 for word2 in -Wno-$warning -W$warning; do
18238 if test "$word1" = "$word2"; then
18239 ac_var_match_word="yes"
18244 if test "$ac_var_match_word" = "no"; then
18245 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18248 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18251 if test "x$cross_compiling" != "xyes" ||
18252 test "$compiler_num" -ge "300"; then
18254 ac_var_added_warnings=""
18255 for warning in missing-declarations; do
18257 ac_var_match_word="no"
18258 for word1 in $CFLAGS; do
18259 for word2 in -Wno-$warning -W$warning; do
18260 if test "$word1" = "$word2"; then
18261 ac_var_match_word="yes"
18266 if test "$ac_var_match_word" = "no"; then
18267 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18270 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18274 ac_var_added_warnings=""
18275 for warning in missing-prototypes; do
18277 ac_var_match_word="no"
18278 for word1 in $CFLAGS; do
18279 for word2 in -Wno-$warning -W$warning; do
18280 if test "$word1" = "$word2"; then
18281 ac_var_match_word="yes"
18286 if test "$ac_var_match_word" = "no"; then
18287 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18290 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18296 if test "$compiler_num" -ge "295"; then
18297 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18299 ac_var_added_warnings=""
18300 for warning in bad-function-cast; do
18302 ac_var_match_word="no"
18303 for word1 in $CFLAGS; do
18304 for word2 in -Wno-$warning -W$warning; do
18305 if test "$word1" = "$word2"; then
18306 ac_var_match_word="yes"
18311 if test "$ac_var_match_word" = "no"; then
18312 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18315 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18320 if test "$compiler_num" -ge "296"; then
18322 ac_var_added_warnings=""
18323 for warning in float-equal; do
18325 ac_var_match_word="no"
18326 for word1 in $CFLAGS; do
18327 for word2 in -Wno-$warning -W$warning; do
18328 if test "$word1" = "$word2"; then
18329 ac_var_match_word="yes"
18334 if test "$ac_var_match_word" = "no"; then
18335 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18338 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18341 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
18343 ac_var_added_warnings=""
18344 for warning in sign-compare; do
18346 ac_var_match_word="no"
18347 for word1 in $CFLAGS; do
18348 for word2 in -Wno-$warning -W$warning; do
18349 if test "$word1" = "$word2"; then
18350 ac_var_match_word="yes"
18355 if test "$ac_var_match_word" = "no"; then
18356 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18359 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18363 ac_var_added_warnings=""
18364 for warning in undef; do
18366 ac_var_match_word="no"
18367 for word1 in $CFLAGS; do
18368 for word2 in -Wno-$warning -W$warning; do
18369 if test "$word1" = "$word2"; then
18370 ac_var_match_word="yes"
18375 if test "$ac_var_match_word" = "no"; then
18376 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18379 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18384 if test "$compiler_num" -ge "297"; then
18385 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18388 if test "$compiler_num" -ge "300"; then
18389 tmp_CFLAGS="$tmp_CFLAGS"
18392 if test "$compiler_num" -ge "303"; then
18394 ac_var_added_warnings=""
18395 for warning in endif-labels strict-prototypes; do
18397 ac_var_match_word="no"
18398 for word1 in $CFLAGS; do
18399 for word2 in -Wno-$warning -W$warning; do
18400 if test "$word1" = "$word2"; then
18401 ac_var_match_word="yes"
18406 if test "$ac_var_match_word" = "no"; then
18407 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18410 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18415 if test "$compiler_num" -ge "304"; then
18417 ac_var_added_warnings=""
18418 for warning in declaration-after-statement; do
18420 ac_var_match_word="no"
18421 for word1 in $CFLAGS; do
18422 for word2 in -Wno-$warning -W$warning; do
18423 if test "$word1" = "$word2"; then
18424 ac_var_match_word="yes"
18429 if test "$ac_var_match_word" = "no"; then
18430 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18433 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18437 ac_var_added_warnings=""
18438 for warning in old-style-definition; do
18440 ac_var_match_word="no"
18441 for word1 in $CFLAGS; do
18442 for word2 in -Wno-$warning -W$warning; do
18443 if test "$word1" = "$word2"; then
18444 ac_var_match_word="yes"
18449 if test "$ac_var_match_word" = "no"; then
18450 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18453 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18458 if test "$compiler_num" -ge "400"; then
18459 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18462 if test "$compiler_num" -ge "402"; then
18464 ac_var_added_warnings=""
18465 for warning in cast-align; do
18467 ac_var_match_word="no"
18468 for word1 in $CFLAGS; do
18469 for word2 in -Wno-$warning -W$warning; do
18470 if test "$word1" = "$word2"; then
18471 ac_var_match_word="yes"
18476 if test "$ac_var_match_word" = "no"; then
18477 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18480 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18485 if test "$compiler_num" -ge "403"; then
18487 ac_var_added_warnings=""
18488 for warning in type-limits old-style-declaration; do
18490 ac_var_match_word="no"
18491 for word1 in $CFLAGS; do
18492 for word2 in -Wno-$warning -W$warning; do
18493 if test "$word1" = "$word2"; then
18494 ac_var_match_word="yes"
18499 if test "$ac_var_match_word" = "no"; then
18500 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18503 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18507 ac_var_added_warnings=""
18508 for warning in missing-parameter-type empty-body; do
18510 ac_var_match_word="no"
18511 for word1 in $CFLAGS; do
18512 for word2 in -Wno-$warning -W$warning; do
18513 if test "$word1" = "$word2"; then
18514 ac_var_match_word="yes"
18519 if test "$ac_var_match_word" = "no"; then
18520 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18523 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18527 ac_var_added_warnings=""
18528 for warning in clobbered ignored-qualifiers; do
18530 ac_var_match_word="no"
18531 for word1 in $CFLAGS; do
18532 for word2 in -Wno-$warning -W$warning; do
18533 if test "$word1" = "$word2"; then
18534 ac_var_match_word="yes"
18539 if test "$ac_var_match_word" = "no"; then
18540 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18543 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18547 ac_var_added_warnings=""
18548 for warning in conversion; do
18550 ac_var_match_word="no"
18551 for word1 in $CFLAGS; do
18552 for word2 in -Wno-$warning -W$warning; do
18553 if test "$word1" = "$word2"; then
18554 ac_var_match_word="yes"
18559 if test "$ac_var_match_word" = "no"; then
18560 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18563 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18566 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
18568 ac_var_added_warnings=""
18569 for warning in vla; do
18571 ac_var_match_word="no"
18572 for word1 in $CFLAGS; do
18573 for word2 in -Wno-$warning -W$warning; do
18574 if test "$word1" = "$word2"; then
18575 ac_var_match_word="yes"
18580 if test "$ac_var_match_word" = "no"; then
18581 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18584 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18587 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
18590 if test "$compiler_num" -ge "405"; then
18591 if test "$curl_cv_have_def__WIN32" = "yes"; then
18592 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18596 if test "$compiler_num" -ge "406"; then
18598 ac_var_added_warnings=""
18599 for warning in double-promotion; do
18601 ac_var_match_word="no"
18602 for word1 in $CFLAGS; do
18603 for word2 in -Wno-$warning -W$warning; do
18604 if test "$word1" = "$word2"; then
18605 ac_var_match_word="yes"
18610 if test "$ac_var_match_word" = "no"; then
18611 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18614 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18619 if test "$compiler_num" -ge "408"; then
18620 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
18623 if test "$compiler_num" -ge "500"; then
18624 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
18627 if test "$compiler_num" -ge "600"; then
18629 ac_var_added_warnings=""
18630 for warning in shift-negative-value; do
18632 ac_var_match_word="no"
18633 for word1 in $CFLAGS; do
18634 for word2 in -Wno-$warning -W$warning; do
18635 if test "$word1" = "$word2"; then
18636 ac_var_match_word="yes"
18641 if test "$ac_var_match_word" = "no"; then
18642 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18645 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18648 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
18650 ac_var_added_warnings=""
18651 for warning in null-dereference; do
18653 ac_var_match_word="no"
18654 for word1 in $CFLAGS; do
18655 for word2 in -Wno-$warning -W$warning; do
18656 if test "$word1" = "$word2"; then
18657 ac_var_match_word="yes"
18662 if test "$ac_var_match_word" = "no"; then
18663 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18666 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18669 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
18671 ac_var_added_warnings=""
18672 for warning in duplicated-cond; do
18674 ac_var_match_word="no"
18675 for word1 in $CFLAGS; do
18676 for word2 in -Wno-$warning -W$warning; do
18677 if test "$word1" = "$word2"; then
18678 ac_var_match_word="yes"
18683 if test "$ac_var_match_word" = "no"; then
18684 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18687 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18691 ac_var_added_warnings=""
18692 for warning in unused-const-variable; do
18694 ac_var_match_word="no"
18695 for word1 in $CFLAGS; do
18696 for word2 in -Wno-$warning -W$warning; do
18697 if test "$word1" = "$word2"; then
18698 ac_var_match_word="yes"
18703 if test "$ac_var_match_word" = "no"; then
18704 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18707 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18712 if test "$compiler_num" -ge "700"; then
18714 ac_var_added_warnings=""
18715 for warning in duplicated-branches; do
18717 ac_var_match_word="no"
18718 for word1 in $CFLAGS; do
18719 for word2 in -Wno-$warning -W$warning; do
18720 if test "$word1" = "$word2"; then
18721 ac_var_match_word="yes"
18726 if test "$ac_var_match_word" = "no"; then
18727 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18730 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18734 ac_var_added_warnings=""
18735 for warning in restrict; do
18737 ac_var_match_word="no"
18738 for word1 in $CFLAGS; do
18739 for word2 in -Wno-$warning -W$warning; do
18740 if test "$word1" = "$word2"; then
18741 ac_var_match_word="yes"
18746 if test "$ac_var_match_word" = "no"; then
18747 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18750 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18754 ac_var_added_warnings=""
18755 for warning in alloc-zero; do
18757 ac_var_match_word="no"
18758 for word1 in $CFLAGS; do
18759 for word2 in -Wno-$warning -W$warning; do
18760 if test "$word1" = "$word2"; then
18761 ac_var_match_word="yes"
18766 if test "$ac_var_match_word" = "no"; then
18767 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18770 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18773 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
18774 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
18775 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
18780 if test "$compiler_num" -ge "300"; then
18781 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18783 if test "x$cross_compiling" = "xyes"; then
18784 if test "$compiler_num" -ge "104"; then
18785 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18787 if test "$compiler_num" -ge "207"; then
18788 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18789 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18793 if test "$compiler_num" -ge "1000"; then
18795 ac_var_added_warnings=""
18796 for warning in enum-conversion; do
18798 ac_var_match_word="no"
18799 for word1 in $CFLAGS; do
18800 for word2 in -Wno-$warning -W$warning; do
18801 if test "$word1" = "$word2"; then
18802 ac_var_match_word="yes"
18807 if test "$ac_var_match_word" = "no"; then
18808 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18811 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18819 if test "$want_warnings" = "yes"; then
18820 tmp_CFLAGS="$tmp_CFLAGS +w1"
18826 tmp_CFLAGS="$tmp_CFLAGS"
18831 if test "$want_warnings" = "yes"; then
18832 if test "$compiler_num" -gt "600"; then
18833 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18834 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18835 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18836 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18837 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18838 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18839 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18840 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18841 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18842 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18843 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18846 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18847 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18848 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18853 tmp_CFLAGS="$tmp_CFLAGS"
18858 if test "$want_warnings" = "yes"; then
18859 tmp_CFLAGS="$tmp_CFLAGS"
18865 if test "$want_warnings" = "yes"; then
18866 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18872 if test "$want_warnings" = "yes"; then
18873 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18874 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18880 if test "$want_warnings" = "yes"; then
18881 tmp_CFLAGS="$tmp_CFLAGS -v"
18887 if test "$want_warnings" = "yes"; then
18889 ac_var_added_warnings=""
18890 for warning in all; do
18892 ac_var_match_word="no"
18893 for word1 in $CFLAGS; do
18894 for word2 in -Wno-$warning -W$warning; do
18895 if test "$word1" = "$word2"; then
18896 ac_var_match_word="yes"
18901 if test "$ac_var_match_word" = "no"; then
18902 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18905 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18909 ac_var_added_warnings=""
18910 for warning in write-strings; do
18912 ac_var_match_word="no"
18913 for word1 in $CFLAGS; do
18914 for word2 in -Wno-$warning -W$warning; do
18915 if test "$word1" = "$word2"; then
18916 ac_var_match_word="yes"
18921 if test "$ac_var_match_word" = "no"; then
18922 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18925 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18929 ac_var_added_warnings=""
18930 for warning in unsupported; do
18932 ac_var_match_word="no"
18933 for word1 in $CFLAGS; do
18934 for word2 in -Wno-$warning -W$warning; do
18935 if test "$word1" = "$word2"; then
18936 ac_var_match_word="yes"
18941 if test "$ac_var_match_word" = "no"; then
18942 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18945 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18953 if test "$want_warnings" = "yes"; then
18954 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18960 tmp_CFLAGS="$tmp_CFLAGS"
18965 squeeze tmp_CPPFLAGS
18968 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18970 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18971 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18972 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18976 tmp_compiler_works="unknown"
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18993 if ac_fn_c_try_compile "$LINENO"; then :
18995 tmp_compiler_works="yes"
18999 tmp_compiler_works="no"
19001 sed 's/^/cc-fail: /' conftest.err >&6
19005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19006 if test "$tmp_compiler_works" = "yes"; then
19007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19008 /* end confdefs.h. */
19023 if ac_fn_c_try_link "$LINENO"; then :
19025 tmp_compiler_works="yes"
19029 tmp_compiler_works="no"
19031 sed 's/^/link-fail: /' conftest.err >&6
19035 rm -f core conftest.err conftest.$ac_objext \
19036 conftest$ac_exeext conftest.$ac_ext
19038 if test "x$cross_compiling" != "xyes" &&
19039 test "$tmp_compiler_works" = "yes"; then
19041 old=$LD_LIBRARY_PATH
19042 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
19043 export LD_LIBRARY_PATH
19044 if test "$cross_compiling" = yes; then :
19045 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19046 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19047 as_fn_error $? "cannot run test program while cross compiling
19048 See \`config.log' for more details" "$LINENO" 5; }
19050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19051 /* end confdefs.h. */
19055 # include <stdlib.h>
19069 if ac_fn_c_try_run "$LINENO"; then :
19070 tmp_compiler_works="yes"
19073 tmp_compiler_works="no"
19075 echo "run-fail: test program exited with status $ac_status" >&6
19079 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19080 conftest.$ac_objext conftest.beam conftest.$ac_ext
19083 LD_LIBRARY_PATH=$old # restore
19086 if test "$tmp_compiler_works" = "yes"; then
19088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19089 $as_echo "yes" >&6; }
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19091 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
19098 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
19099 CPPFLAGS="$tmp_save_CPPFLAGS"
19100 CFLAGS="$tmp_save_CFLAGS"
19109 if test "$compiler_id" = "INTEL_UNIX_C"; then
19111 if test "$compiler_num" -ge "1000"; then
19112 CFLAGS="$CFLAGS -shared-intel"
19113 elif test "$compiler_num" -ge "900"; then
19114 CFLAGS="$CFLAGS -i-dynamic"
19119 CURL_CFLAG_EXTRAS=""
19120 if test X"$want_werror" = Xyes; then
19121 CURL_CFLAG_EXTRAS="-Werror"
19122 if test "$compiler_id" = "GNU_C"; then
19123 if test "$compiler_num" -ge "500"; then
19124 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
19132 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19141 force compilation error
19148 if ac_fn_c_try_compile "$LINENO"; then :
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151 $as_echo "no" >&6; }
19152 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19157 $as_echo "yes" >&6; }
19160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
19164 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19169 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
19181 if ac_fn_c_try_compile "$LINENO"; then :
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19184 $as_echo "no" >&6; }
19185 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19190 $as_echo "yes" >&6; }
19193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
19197 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
19198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19199 /* end confdefs.h. */
19202 # include <stdlib.h>
19216 int j = rand(i[0]);
19225 if ac_fn_c_try_compile "$LINENO"; then :
19227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19228 $as_echo "no" >&6; }
19229 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
19233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19234 $as_echo "yes" >&6; }
19237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
19241 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
19242 supports_symbol_hiding="no"
19243 symbol_hiding_CFLAGS=""
19244 symbol_hiding_EXTERN=""
19247 case "$compiler_id" in
19249 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19250 tmp_CFLAGS="-fvisibility=hidden"
19251 supports_symbol_hiding="yes"
19254 if test "$compiler_num" -ge "304"; then
19255 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
19256 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19257 tmp_CFLAGS="-fvisibility=hidden"
19258 supports_symbol_hiding="yes"
19263 if test "$compiler_num" -ge "900"; then
19264 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
19265 tmp_save_CFLAGS="$CFLAGS"
19266 CFLAGS="$CFLAGS -fvisibility=hidden"
19267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19268 /* end confdefs.h. */
19271 # include <stdio.h>
19276 printf("icc fvisibility bug test");
19283 if ac_fn_c_try_link "$LINENO"; then :
19285 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
19286 tmp_CFLAGS="-fvisibility=hidden"
19287 supports_symbol_hiding="yes"
19290 rm -f core conftest.err conftest.$ac_objext \
19291 conftest$ac_exeext conftest.$ac_ext
19292 CFLAGS="$tmp_save_CFLAGS"
19297 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
19298 tmp_EXTERN="__global"
19299 tmp_CFLAGS="-xldscope=hidden"
19300 supports_symbol_hiding="yes"
19304 if test "$supports_symbol_hiding" = "yes"; then
19305 tmp_save_CFLAGS="$CFLAGS"
19306 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19309 /* end confdefs.h. */
19312 $tmp_EXTERN char *dummy(char *buff);
19313 char *dummy(char *buff)
19325 char *r = dummy(&b[0]);
19334 if ac_fn_c_try_compile "$LINENO"; then :
19336 supports_symbol_hiding="yes"
19337 if test -f conftest.err; then
19338 grep 'visibility' conftest.err >/dev/null
19339 if test "$?" -eq "0"; then
19340 supports_symbol_hiding="no"
19346 supports_symbol_hiding="no"
19348 sed 's/^/cc-src: /' conftest.$ac_ext >&6
19349 sed 's/^/cc-err: /' conftest.err >&6
19353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19354 CFLAGS="$tmp_save_CFLAGS"
19356 if test "$supports_symbol_hiding" = "yes"; then
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19358 $as_echo "yes" >&6; }
19359 symbol_hiding_CFLAGS="$tmp_CFLAGS"
19360 symbol_hiding_EXTERN="$tmp_EXTERN"
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19363 $as_echo "no" >&6; }
19368 supports_curldebug="unknown"
19369 if test "$want_curldebug" = "yes"; then
19370 if test "x$enable_shared" != "xno" &&
19371 test "x$enable_shared" != "xyes"; then
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
19373 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
19374 supports_curldebug="no"
19376 if test "x$enable_static" != "xno" &&
19377 test "x$enable_static" != "xyes"; then
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
19379 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
19380 supports_curldebug="no"
19382 if test "$supports_curldebug" != "no"; then
19383 if test "$enable_shared" = "yes" &&
19384 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
19385 supports_curldebug="no"
19386 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
19387 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
19392 if test "$want_curldebug" = "yes"; then
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
19394 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
19395 test "$supports_curldebug" = "no" || supports_curldebug="yes"
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
19397 $as_echo "$supports_curldebug" >&6; }
19398 if test "$supports_curldebug" = "no"; then
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
19400 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
19401 want_curldebug="no"
19405 if test x$want_curldebug = xyes; then
19407 CURLDEBUG_FALSE='#'
19414 supports_unittests=yes
19415 # cross-compilation of unit tests static library/programs fails when
19416 # libcurl shared library is built. This might be due to a libtool or
19417 # automake issue. In this case we disable unit tests.
19418 if test "x$cross_compiling" != "xno" &&
19419 test "x$enable_shared" != "xno"; then
19420 supports_unittests=no
19423 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
19424 # a problem related with OpenSSL headers and library versions not matching.
19425 # Disable unit tests while time to further investigate this is found.
19428 if test "$compiler_id" = "GNU_C"; then
19429 supports_unittests=no
19434 # All AIX autobuilds fails unit tests linking against unittests library
19435 # due to unittests library being built with no symbols or members. Libtool ?
19436 # Disable unit tests while time to further investigate this is found.
19439 supports_unittests=no
19443 if test "x$want_debug" = "xyes" &&
19444 test "x$supports_unittests" = "xyes"; then
19449 if test x$want_unittests = xyes; then
19450 BUILD_UNITTESTS_TRUE=
19451 BUILD_UNITTESTS_FALSE='#'
19453 BUILD_UNITTESTS_TRUE='#'
19454 BUILD_UNITTESTS_FALSE=
19461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19462 $as_echo_n "checking for windows.h... " >&6; }
19463 if ${curl_cv_header_windows_h+:} false; then :
19464 $as_echo_n "(cached) " >&6
19467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19468 /* end confdefs.h. */
19472 #ifndef WIN32_LEAN_AND_MEAN
19473 #define WIN32_LEAN_AND_MEAN
19475 #include <windows.h>
19480 #if defined(__CYGWIN__) || defined(__CEGCC__)
19481 HAVE_WINDOWS_H shall not be defined.
19483 int dummy=2*WINVER;
19491 if ac_fn_c_try_compile "$LINENO"; then :
19493 curl_cv_header_windows_h="yes"
19497 curl_cv_header_windows_h="no"
19500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
19504 $as_echo "$curl_cv_header_windows_h" >&6; }
19505 case "$curl_cv_header_windows_h" in
19508 cat >>confdefs.h <<_ACEOF
19509 #define HAVE_WINDOWS_H 1
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
19517 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
19518 if ${curl_cv_native_windows+:} false; then :
19519 $as_echo_n "(cached) " >&6
19522 if test "$curl_cv_header_windows_h" = "no"; then
19523 curl_cv_native_windows="no"
19525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19533 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
19534 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
19537 Not a native Windows build target.
19545 if ac_fn_c_try_compile "$LINENO"; then :
19547 curl_cv_native_windows="yes"
19551 curl_cv_native_windows="no"
19554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
19559 $as_echo "$curl_cv_native_windows" >&6; }
19560 if test "x$curl_cv_native_windows" = xyes; then
19561 DOING_NATIVE_WINDOWS_TRUE=
19562 DOING_NATIVE_WINDOWS_FALSE='#'
19564 DOING_NATIVE_WINDOWS_TRUE='#'
19565 DOING_NATIVE_WINDOWS_FALSE=
19569 case X-"$curl_cv_native_windows" in
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19573 $as_echo_n "checking for winsock.h... " >&6; }
19574 if ${curl_cv_header_winsock_h+:} false; then :
19575 $as_echo_n "(cached) " >&6
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19583 #ifndef WIN32_LEAN_AND_MEAN
19584 #define WIN32_LEAN_AND_MEAN
19586 #include <windows.h>
19587 #include <winsock.h>
19592 #if defined(__CYGWIN__) || defined(__CEGCC__)
19593 HAVE_WINSOCK_H shall not be defined.
19595 int dummy=WSACleanup();
19603 if ac_fn_c_try_compile "$LINENO"; then :
19605 curl_cv_header_winsock_h="yes"
19609 curl_cv_header_winsock_h="no"
19612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
19616 $as_echo "$curl_cv_header_winsock_h" >&6; }
19617 case "$curl_cv_header_winsock_h" in
19620 cat >>confdefs.h <<_ACEOF
19621 #define HAVE_WINSOCK_H 1
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19629 $as_echo_n "checking for winsock2.h... " >&6; }
19630 if ${curl_cv_header_winsock2_h+:} false; then :
19631 $as_echo_n "(cached) " >&6
19634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19635 /* end confdefs.h. */
19639 #ifndef WIN32_LEAN_AND_MEAN
19640 #define WIN32_LEAN_AND_MEAN
19642 #include <windows.h>
19643 #include <winsock2.h>
19648 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19649 HAVE_WINSOCK2_H shall not be defined.
19651 int dummy=2*IPPROTO_ESP;
19659 if ac_fn_c_try_compile "$LINENO"; then :
19661 curl_cv_header_winsock2_h="yes"
19665 curl_cv_header_winsock2_h="no"
19668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
19672 $as_echo "$curl_cv_header_winsock2_h" >&6; }
19673 case "$curl_cv_header_winsock2_h" in
19676 cat >>confdefs.h <<_ACEOF
19677 #define HAVE_WINSOCK2_H 1
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
19685 $as_echo_n "checking for ws2tcpip.h... " >&6; }
19686 if ${curl_cv_header_ws2tcpip_h+:} false; then :
19687 $as_echo_n "(cached) " >&6
19690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19691 /* end confdefs.h. */
19695 #ifndef WIN32_LEAN_AND_MEAN
19696 #define WIN32_LEAN_AND_MEAN
19698 #include <windows.h>
19699 #include <winsock2.h>
19700 #include <ws2tcpip.h>
19705 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19706 HAVE_WS2TCPIP_H shall not be defined.
19708 int dummy=2*IP_PKTINFO;
19716 if ac_fn_c_try_compile "$LINENO"; then :
19718 curl_cv_header_ws2tcpip_h="yes"
19722 curl_cv_header_ws2tcpip_h="no"
19725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
19729 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
19730 case "$curl_cv_header_ws2tcpip_h" in
19733 cat >>confdefs.h <<_ACEOF
19734 #define HAVE_WS2TCPIP_H 1
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
19742 $as_echo_n "checking for winldap.h... " >&6; }
19743 if ${curl_cv_header_winldap_h+:} false; then :
19744 $as_echo_n "(cached) " >&6
19747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19748 /* end confdefs.h. */
19752 #ifdef HAVE_WINDOWS_H
19753 #ifndef WIN32_LEAN_AND_MEAN
19754 #define WIN32_LEAN_AND_MEAN
19756 #include <windows.h>
19758 #include <winldap.h>
19763 #if defined(__CYGWIN__) || defined(__CEGCC__)
19764 HAVE_WINLDAP_H shall not be defined.
19766 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
19767 ULONG res = ldap_unbind(ldp);
19775 if ac_fn_c_try_compile "$LINENO"; then :
19777 curl_cv_header_winldap_h="yes"
19781 curl_cv_header_winldap_h="no"
19784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
19788 $as_echo "$curl_cv_header_winldap_h" >&6; }
19789 case "$curl_cv_header_winldap_h" in
19792 cat >>confdefs.h <<_ACEOF
19793 #define HAVE_WINLDAP_H 1
19800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
19801 $as_echo_n "checking for winber.h... " >&6; }
19802 if ${curl_cv_header_winber_h+:} false; then :
19803 $as_echo_n "(cached) " >&6
19806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19807 /* end confdefs.h. */
19811 #ifdef HAVE_WINDOWS_H
19812 #ifndef WIN32_LEAN_AND_MEAN
19813 #define WIN32_LEAN_AND_MEAN
19815 #include <windows.h>
19817 #include <winldap.h>
19818 #include <winber.h>
19823 #if defined(__CYGWIN__) || defined(__CEGCC__)
19824 HAVE_WINBER_H shall not be defined.
19826 BERVAL *bvp = NULL;
19827 BerElement *bep = ber_init(bvp);
19836 if ac_fn_c_try_compile "$LINENO"; then :
19838 curl_cv_header_winber_h="yes"
19842 curl_cv_header_winber_h="no"
19845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19849 $as_echo "$curl_cv_header_winber_h" >&6; }
19850 case "$curl_cv_header_winber_h" in
19853 cat >>confdefs.h <<_ACEOF
19854 #define HAVE_WINBER_H 1
19862 curl_cv_header_winsock_h="no"
19863 curl_cv_header_winsock2_h="no"
19864 curl_cv_header_ws2tcpip_h="no"
19865 curl_cv_header_winldap_h="no"
19866 curl_cv_header_winber_h="no"
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19871 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19872 curl_win32_file_api="no"
19873 if test "$curl_cv_header_windows_h" = "yes"; then
19874 if test x"$enable_largefile" != "xno"; then
19875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19876 /* end confdefs.h. */
19883 #if !defined(_WIN32_WCE) && \
19884 (defined(__MINGW32__) || \
19885 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19888 WIN32 large file API not supported.
19896 if ac_fn_c_try_compile "$LINENO"; then :
19898 curl_win32_file_api="win32_large_files"
19901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19903 if test "$curl_win32_file_api" = "no"; then
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19912 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19915 WIN32 small file API not supported.
19923 if ac_fn_c_try_compile "$LINENO"; then :
19925 curl_win32_file_api="win32_small_files"
19928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19931 case "$curl_win32_file_api" in
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19934 $as_echo "yes (large file enabled)" >&6; }
19936 cat >>confdefs.h <<_ACEOF
19937 #define USE_WIN32_LARGE_FILES 1
19942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19943 $as_echo "yes (large file disabled)" >&6; }
19945 cat >>confdefs.h <<_ACEOF
19946 #define USE_WIN32_SMALL_FILES 1
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19952 $as_echo "no" >&6; }
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19967 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19969 $as_echo "$tst_cflags" >&6; };
19971 if test "$tst_cflags" = "yes"; then
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19973 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19975 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19976 min="-mmacosx-version-min=10.8"
19977 CFLAGS="$CFLAGS $min"
19979 if test -z "$min"; then
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19981 $as_echo "set by user" >&6; }
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19984 $as_echo "$min set" >&6; }
19988 CFLAGS="$CFLAGS -Werror=partial-availability"
19989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19990 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19992 /* end confdefs.h. */
20001 if ac_fn_c_try_compile "$LINENO"; then :
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20003 $as_echo "yes" >&6; }
20005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20006 $as_echo "no" >&6; }
20009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
20015 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
20016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20017 /* end confdefs.h. */
20020 #include <stdlib.h>
20025 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
20032 if ac_fn_c_try_compile "$LINENO"; then :
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20035 $as_echo "yes" >&6; }
20037 cat >>confdefs.h <<_ACEOF
20038 #define HAVE_BUILTIN_AVAILABLE 1
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20045 $as_echo "no" >&6; }
20048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
20053 $as_echo_n "checking whether to support http... " >&6; }
20054 # Check whether --enable-http was given.
20055 if test "${enable_http+set}" = set; then :
20056 enableval=$enable_http; case "$enableval" in
20058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20059 $as_echo "no" >&6; }
20061 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
20064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
20065 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
20066 CURL_DISABLE_HTTP=1
20069 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
20071 CURL_DISABLE_RTSP=1
20074 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20075 $as_echo "yes" >&6; }
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20080 $as_echo "yes" >&6; }
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
20085 $as_echo_n "checking whether to support ftp... " >&6; }
20086 # Check whether --enable-ftp was given.
20087 if test "${enable_ftp+set}" = set; then :
20088 enableval=$enable_ftp; case "$enableval" in
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20091 $as_echo "no" >&6; }
20093 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
20098 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20099 $as_echo "yes" >&6; }
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20104 $as_echo "yes" >&6; }
20108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
20109 $as_echo_n "checking whether to support file... " >&6; }
20110 # Check whether --enable-file was given.
20111 if test "${enable_file+set}" = set; then :
20112 enableval=$enable_file; case "$enableval" in
20114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20115 $as_echo "no" >&6; }
20117 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
20119 CURL_DISABLE_FILE=1
20122 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20123 $as_echo "yes" >&6; }
20127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20128 $as_echo "yes" >&6; }
20132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
20133 $as_echo_n "checking whether to support ldap... " >&6; }
20134 # Check whether --enable-ldap was given.
20135 if test "${enable_ldap+set}" = set; then :
20136 enableval=$enable_ldap; case "$enableval" in
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20139 $as_echo "no" >&6; }
20141 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20143 CURL_DISABLE_LDAP=1
20147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20148 $as_echo "yes" >&6; }
20153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20154 $as_echo "yes" >&6; }
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
20159 $as_echo_n "checking whether to support ldaps... " >&6; }
20160 # Check whether --enable-ldaps was given.
20161 if test "${enable_ldaps+set}" = set; then :
20162 enableval=$enable_ldaps; case "$enableval" in
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20165 $as_echo "no" >&6; }
20167 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20169 CURL_DISABLE_LDAPS=1
20172 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
20174 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
20176 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20178 CURL_DISABLE_LDAPS=1
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20182 $as_echo "yes" >&6; }
20184 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
20193 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20195 $as_echo "no" >&6; }
20197 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20199 CURL_DISABLE_LDAPS=1
20202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20203 $as_echo "yes" >&6; }
20205 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
20214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
20215 $as_echo_n "checking whether to support rtsp... " >&6; }
20216 # Check whether --enable-rtsp was given.
20217 if test "${enable_rtsp+set}" = set; then :
20218 enableval=$enable_rtsp; case "$enableval" in
20220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20221 $as_echo "no" >&6; }
20223 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
20225 CURL_DISABLE_RTSP=1
20228 *) if test x$CURL_DISABLE_HTTP = x1 ; then
20229 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20232 $as_echo "yes" >&6; }
20233 curl_rtsp_msg="enabled"
20238 if test "x$CURL_DISABLE_HTTP" != "x1"; then
20239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20240 $as_echo "yes" >&6; }
20241 curl_rtsp_msg="enabled"
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20244 $as_echo "no" >&6; }
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
20251 $as_echo_n "checking whether to support proxies... " >&6; }
20252 # Check whether --enable-proxy was given.
20253 if test "${enable_proxy+set}" = set; then :
20254 enableval=$enable_proxy; case "$enableval" in
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20257 $as_echo "no" >&6; }
20259 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
20261 CURL_DISABLE_PROXY=1
20265 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20266 $as_echo "yes" >&6; }
20270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20271 $as_echo "yes" >&6; }
20276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
20277 $as_echo_n "checking whether to support dict... " >&6; }
20278 # Check whether --enable-dict was given.
20279 if test "${enable_dict+set}" = set; then :
20280 enableval=$enable_dict; case "$enableval" in
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20283 $as_echo "no" >&6; }
20285 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
20287 CURL_DISABLE_DICT=1
20290 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20291 $as_echo "yes" >&6; }
20295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20296 $as_echo "yes" >&6; }
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
20301 $as_echo_n "checking whether to support telnet... " >&6; }
20302 # Check whether --enable-telnet was given.
20303 if test "${enable_telnet+set}" = set; then :
20304 enableval=$enable_telnet; case "$enableval" in
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20307 $as_echo "no" >&6; }
20309 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
20311 CURL_DISABLE_TELNET=1
20314 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20315 $as_echo "yes" >&6; }
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20320 $as_echo "yes" >&6; }
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
20325 $as_echo_n "checking whether to support tftp... " >&6; }
20326 # Check whether --enable-tftp was given.
20327 if test "${enable_tftp+set}" = set; then :
20328 enableval=$enable_tftp; case "$enableval" in
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20331 $as_echo "no" >&6; }
20333 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
20335 CURL_DISABLE_TFTP=1
20338 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20339 $as_echo "yes" >&6; }
20343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20344 $as_echo "yes" >&6; }
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
20350 $as_echo_n "checking whether to support pop3... " >&6; }
20351 # Check whether --enable-pop3 was given.
20352 if test "${enable_pop3+set}" = set; then :
20353 enableval=$enable_pop3; case "$enableval" in
20355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20356 $as_echo "no" >&6; }
20358 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
20360 CURL_DISABLE_POP3=1
20363 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20364 $as_echo "yes" >&6; }
20368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20369 $as_echo "yes" >&6; }
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
20376 $as_echo_n "checking whether to support imap... " >&6; }
20377 # Check whether --enable-imap was given.
20378 if test "${enable_imap+set}" = set; then :
20379 enableval=$enable_imap; case "$enableval" in
20381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20382 $as_echo "no" >&6; }
20384 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
20386 CURL_DISABLE_IMAP=1
20389 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20390 $as_echo "yes" >&6; }
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20395 $as_echo "yes" >&6; }
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
20402 $as_echo_n "checking whether to support smb... " >&6; }
20403 # Check whether --enable-smb was given.
20404 if test "${enable_smb+set}" = set; then :
20405 enableval=$enable_smb; case "$enableval" in
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20408 $as_echo "no" >&6; }
20410 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
20415 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20416 $as_echo "yes" >&6; }
20420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20421 $as_echo "yes" >&6; }
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
20427 $as_echo_n "checking whether to support smtp... " >&6; }
20428 # Check whether --enable-smtp was given.
20429 if test "${enable_smtp+set}" = set; then :
20430 enableval=$enable_smtp; case "$enableval" in
20432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20433 $as_echo "no" >&6; }
20435 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
20437 CURL_DISABLE_SMTP=1
20440 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20441 $as_echo "yes" >&6; }
20445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20446 $as_echo "yes" >&6; }
20451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
20452 $as_echo_n "checking whether to support gopher... " >&6; }
20453 # Check whether --enable-gopher was given.
20454 if test "${enable_gopher+set}" = set; then :
20455 enableval=$enable_gopher; case "$enableval" in
20457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20458 $as_echo "no" >&6; }
20460 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
20462 CURL_DISABLE_GOPHER=1
20465 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20466 $as_echo "yes" >&6; }
20470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20471 $as_echo "yes" >&6; }
20476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
20477 $as_echo_n "checking whether to support mqtt... " >&6; }
20478 # Check whether --enable-mqtt was given.
20479 if test "${enable_mqtt+set}" = set; then :
20480 enableval=$enable_mqtt; case "$enableval" in
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20483 $as_echo "no" >&6; }
20485 $as_echo "#define CURL_DISABLE_MQTT 1" >>confdefs.h
20487 CURL_DISABLE_MQTT=1
20490 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20491 $as_echo "yes" >&6; }
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20496 $as_echo "no" >&6; }
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
20503 $as_echo_n "checking whether to provide built-in manual... " >&6; }
20504 # Check whether --enable-manual was given.
20505 if test "${enable_manual+set}" = set; then :
20506 enableval=$enable_manual; case "$enableval" in
20508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20509 $as_echo "no" >&6; }
20511 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20512 $as_echo "yes" >&6; }
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20518 $as_echo "yes" >&6; }
20524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
20525 $as_echo_n "checking whether to enable generation of C code... " >&6; }
20526 # Check whether --enable-libcurl_option was given.
20527 if test "${enable_libcurl_option+set}" = set; then :
20528 enableval=$enable_libcurl_option; case "$enableval" in
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20531 $as_echo "no" >&6; }
20533 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
20535 curl_libcurl_msg="no"
20537 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20538 $as_echo "yes" >&6; }
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20543 $as_echo "yes" >&6; }
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
20550 $as_echo_n "checking whether to use libgcc... " >&6; }
20551 # Check whether --enable-libgcc was given.
20552 if test "${enable_libgcc+set}" = set; then :
20553 enableval=$enable_libgcc; case "$enableval" in
20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20557 $as_echo "yes" >&6; }
20559 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20560 $as_echo "no" >&6; }
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20565 $as_echo "no" >&6; }
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
20572 $as_echo_n "checking if X/Open network library is required... " >&6; }
20573 tst_lib_xnet_required="no"
20574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20575 /* end confdefs.h. */
20580 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
20582 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
20585 force compilation error
20591 if ac_fn_c_try_compile "$LINENO"; then :
20593 tst_lib_xnet_required="yes"
20594 LIBS="-lxnet $LIBS"
20597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
20599 $as_echo "$tst_lib_xnet_required" >&6; }
20602 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20603 if test "x$ac_cv_func_gethostbyname" = xyes; then :
20604 HAVE_GETHOSTBYNAME="1"
20607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20608 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20609 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20610 $as_echo_n "(cached) " >&6
20612 ac_check_lib_save_LIBS=$LIBS
20614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615 /* end confdefs.h. */
20621 char gethostbyname ();
20624 return gethostbyname ();
20629 if ac_fn_c_try_link "$LINENO"; then :
20630 ac_cv_lib_nsl_gethostbyname=yes
20632 ac_cv_lib_nsl_gethostbyname=no
20634 rm -f core conftest.err conftest.$ac_objext \
20635 conftest$ac_exeext conftest.$ac_ext
20636 LIBS=$ac_check_lib_save_LIBS
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20639 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20640 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20641 HAVE_GETHOSTBYNAME="1"
20650 if test "$HAVE_GETHOSTBYNAME" != "1"
20652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
20653 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
20654 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
20655 $as_echo_n "(cached) " >&6
20657 ac_check_lib_save_LIBS=$LIBS
20658 LIBS="-lsocket $LIBS"
20659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20660 /* end confdefs.h. */
20666 char gethostbyname ();
20669 return gethostbyname ();
20674 if ac_fn_c_try_link "$LINENO"; then :
20675 ac_cv_lib_socket_gethostbyname=yes
20677 ac_cv_lib_socket_gethostbyname=no
20679 rm -f core conftest.err conftest.$ac_objext \
20680 conftest$ac_exeext conftest.$ac_ext
20681 LIBS=$ac_check_lib_save_LIBS
20683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
20684 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
20685 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
20686 HAVE_GETHOSTBYNAME="1"
20687 LIBS="-lsocket $LIBS"
20693 if test "$HAVE_GETHOSTBYNAME" != "1"
20695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
20696 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
20697 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
20698 $as_echo_n "(cached) " >&6
20700 ac_check_lib_save_LIBS=$LIBS
20701 LIBS="-lwatt $LIBS"
20702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20703 /* end confdefs.h. */
20709 char gethostbyname ();
20712 return gethostbyname ();
20717 if ac_fn_c_try_link "$LINENO"; then :
20718 ac_cv_lib_watt_gethostbyname=yes
20720 ac_cv_lib_watt_gethostbyname=no
20722 rm -f core conftest.err conftest.$ac_objext \
20723 conftest$ac_exeext conftest.$ac_ext
20724 LIBS=$ac_check_lib_save_LIBS
20726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
20727 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
20728 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
20729 HAVE_GETHOSTBYNAME="1"
20730 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
20731 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
20732 LIBS="-lwatt $LIBS"
20738 if test "$HAVE_GETHOSTBYNAME" != "1"
20740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
20741 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
20742 my_ac_save_LIBS=$LIBS
20743 LIBS="-lnsl -lsocket $LIBS"
20744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20745 /* end confdefs.h. */
20759 if ac_fn_c_try_link "$LINENO"; then :
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20762 $as_echo "yes" >&6; }
20763 HAVE_GETHOSTBYNAME="1"
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20768 $as_echo "no" >&6; }
20769 LIBS=$my_ac_save_LIBS
20772 rm -f core conftest.err conftest.$ac_objext \
20773 conftest$ac_exeext conftest.$ac_ext
20776 if test "$HAVE_GETHOSTBYNAME" != "1"
20778 if test "$curl_cv_header_windows_h" = "yes"; then
20779 if test "$curl_cv_header_winsock_h" = "yes"; then
20782 winsock_LIB="-lwinsock"
20785 winsock_LIB="-lwsock32"
20789 if test "$curl_cv_header_winsock2_h" = "yes"; then
20790 winsock_LIB="-lws2_32"
20792 if test ! -z "$winsock_LIB"; then
20793 my_ac_save_LIBS=$LIBS
20794 LIBS="$winsock_LIB $LIBS"
20795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
20796 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798 /* end confdefs.h. */
20801 #ifdef HAVE_WINDOWS_H
20802 #ifndef WIN32_LEAN_AND_MEAN
20803 #define WIN32_LEAN_AND_MEAN
20805 #include <windows.h>
20806 #ifdef HAVE_WINSOCK2_H
20807 #include <winsock2.h>
20809 #ifdef HAVE_WINSOCK_H
20810 #include <winsock.h>
20818 gethostbyname("www.dummysite.com");
20825 if ac_fn_c_try_link "$LINENO"; then :
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20828 $as_echo "yes" >&6; }
20829 HAVE_GETHOSTBYNAME="1"
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20834 $as_echo "no" >&6; }
20836 LIBS=$my_ac_save_LIBS
20839 rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
20845 if test "$HAVE_GETHOSTBYNAME" != "1"
20847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20848 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20850 /* end confdefs.h. */
20853 /* Older Minix versions may need <net/gen/netdb.h> here instead */
20859 gethostbyname("www.dummysite.com");
20866 if ac_fn_c_try_link "$LINENO"; then :
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20869 $as_echo "yes" >&6; }
20870 HAVE_GETHOSTBYNAME="1"
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20875 $as_echo "no" >&6; }
20878 rm -f core conftest.err conftest.$ac_objext \
20879 conftest$ac_exeext conftest.$ac_ext
20882 if test "$HAVE_GETHOSTBYNAME" != "1"
20884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20885 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20887 /* end confdefs.h. */
20896 gethostbyname("www.dummysite.com");
20903 if ac_fn_c_try_link "$LINENO"; then :
20905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20906 $as_echo "yes" >&6; }
20907 HAVE_GETHOSTBYNAME="1"
20911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20912 $as_echo "no" >&6; }
20915 rm -f core conftest.err conftest.$ac_objext \
20916 conftest$ac_exeext conftest.$ac_ext
20919 if test "$HAVE_GETHOSTBYNAME" != "1"
20921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
20922 $as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
20923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20924 /* end confdefs.h. */
20927 #include <proto/bsdsocket.h>
20928 struct Library *SocketBase = NULL;
20933 gethostbyname("www.dummysite.com");
20940 if ac_fn_c_try_link "$LINENO"; then :
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20943 $as_echo "yes" >&6; }
20944 HAVE_GETHOSTBYNAME="1"
20945 HAVE_PROTO_BSDSOCKET_H="1"
20947 $as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
20949 HAVE_PROTO_BSDSOCKET_H=1
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20955 $as_echo "no" >&6; }
20958 rm -f core conftest.err conftest.$ac_objext \
20959 conftest$ac_exeext conftest.$ac_ext
20962 if test "$HAVE_GETHOSTBYNAME" != "1"
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20965 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20966 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20967 $as_echo_n "(cached) " >&6
20969 ac_check_lib_save_LIBS=$LIBS
20970 LIBS="-lnetwork $LIBS"
20971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20972 /* end confdefs.h. */
20978 char gethostbyname ();
20981 return gethostbyname ();
20986 if ac_fn_c_try_link "$LINENO"; then :
20987 ac_cv_lib_network_gethostbyname=yes
20989 ac_cv_lib_network_gethostbyname=no
20991 rm -f core conftest.err conftest.$ac_objext \
20992 conftest$ac_exeext conftest.$ac_ext
20993 LIBS=$ac_check_lib_save_LIBS
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20996 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20997 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20998 HAVE_GETHOSTBYNAME="1"
20999 LIBS="-lnetwork $LIBS"
21005 if test "$HAVE_GETHOSTBYNAME" != "1"
21007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
21008 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
21009 if ${ac_cv_lib_net_gethostbyname+:} false; then :
21010 $as_echo_n "(cached) " >&6
21012 ac_check_lib_save_LIBS=$LIBS
21014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21015 /* end confdefs.h. */
21021 char gethostbyname ();
21024 return gethostbyname ();
21029 if ac_fn_c_try_link "$LINENO"; then :
21030 ac_cv_lib_net_gethostbyname=yes
21032 ac_cv_lib_net_gethostbyname=no
21034 rm -f core conftest.err conftest.$ac_objext \
21035 conftest$ac_exeext conftest.$ac_ext
21036 LIBS=$ac_check_lib_save_LIBS
21038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
21039 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
21040 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
21041 HAVE_GETHOSTBYNAME="1"
21049 if test "$HAVE_GETHOSTBYNAME" != "1"; then
21050 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
21054 curl_includes_winsock2="\
21055 /* includes start */
21056 #ifdef HAVE_WINDOWS_H
21057 # ifndef WIN32_LEAN_AND_MEAN
21058 # define WIN32_LEAN_AND_MEAN
21060 # include <windows.h>
21061 # ifdef HAVE_WINSOCK2_H
21062 # include <winsock2.h>
21064 # ifdef HAVE_WINSOCK_H
21065 # include <winsock.h>
21069 /* includes end */"
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
21072 $as_echo_n "checking for windows.h... " >&6; }
21073 if ${curl_cv_header_windows_h+:} false; then :
21074 $as_echo_n "(cached) " >&6
21077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078 /* end confdefs.h. */
21082 #ifndef WIN32_LEAN_AND_MEAN
21083 #define WIN32_LEAN_AND_MEAN
21085 #include <windows.h>
21090 #if defined(__CYGWIN__) || defined(__CEGCC__)
21091 HAVE_WINDOWS_H shall not be defined.
21093 int dummy=2*WINVER;
21101 if ac_fn_c_try_compile "$LINENO"; then :
21103 curl_cv_header_windows_h="yes"
21107 curl_cv_header_windows_h="no"
21110 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
21114 $as_echo "$curl_cv_header_windows_h" >&6; }
21115 case "$curl_cv_header_windows_h" in
21118 cat >>confdefs.h <<_ACEOF
21119 #define HAVE_WINDOWS_H 1
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
21127 $as_echo_n "checking for winsock.h... " >&6; }
21128 if ${curl_cv_header_winsock_h+:} false; then :
21129 $as_echo_n "(cached) " >&6
21132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21133 /* end confdefs.h. */
21137 #ifndef WIN32_LEAN_AND_MEAN
21138 #define WIN32_LEAN_AND_MEAN
21140 #include <windows.h>
21141 #include <winsock.h>
21146 #if defined(__CYGWIN__) || defined(__CEGCC__)
21147 HAVE_WINSOCK_H shall not be defined.
21149 int dummy=WSACleanup();
21157 if ac_fn_c_try_compile "$LINENO"; then :
21159 curl_cv_header_winsock_h="yes"
21163 curl_cv_header_winsock_h="no"
21166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
21170 $as_echo "$curl_cv_header_winsock_h" >&6; }
21171 case "$curl_cv_header_winsock_h" in
21174 cat >>confdefs.h <<_ACEOF
21175 #define HAVE_WINSOCK_H 1
21182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
21183 $as_echo_n "checking for winsock2.h... " >&6; }
21184 if ${curl_cv_header_winsock2_h+:} false; then :
21185 $as_echo_n "(cached) " >&6
21188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189 /* end confdefs.h. */
21193 #ifndef WIN32_LEAN_AND_MEAN
21194 #define WIN32_LEAN_AND_MEAN
21196 #include <windows.h>
21197 #include <winsock2.h>
21202 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
21203 HAVE_WINSOCK2_H shall not be defined.
21205 int dummy=2*IPPROTO_ESP;
21213 if ac_fn_c_try_compile "$LINENO"; then :
21215 curl_cv_header_winsock2_h="yes"
21219 curl_cv_header_winsock2_h="no"
21222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
21226 $as_echo "$curl_cv_header_winsock2_h" >&6; }
21227 case "$curl_cv_header_winsock2_h" in
21230 cat >>confdefs.h <<_ACEOF
21231 #define HAVE_WINSOCK2_H 1
21239 curl_includes_bsdsocket="\
21240 /* includes start */
21241 #ifdef HAVE_PROTO_BSDSOCKET_H
21242 # include <proto/bsdsocket.h>
21243 struct Library *SocketBase = NULL;
21245 /* includes end */"
21246 for ac_header in proto/bsdsocket.h
21248 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
21250 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
21251 cat >>confdefs.h <<_ACEOF
21252 #define HAVE_PROTO_BSDSOCKET_H 1
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
21262 $as_echo_n "checking for connect in libraries... " >&6; }
21263 tst_connect_save_LIBS="$LIBS"
21264 tst_connect_need_LIBS="unknown"
21265 for tst_lib in '' '-lsocket' ; do
21266 if test "$tst_connect_need_LIBS" = "unknown"; then
21267 LIBS="$tst_lib $tst_connect_save_LIBS"
21268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21269 /* end confdefs.h. */
21272 $curl_includes_winsock2
21273 $curl_includes_bsdsocket
21274 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
21275 int connect(int, void*, int);
21281 if(0 != connect(0, 0, 0))
21289 if ac_fn_c_try_link "$LINENO"; then :
21291 tst_connect_need_LIBS="$tst_lib"
21294 rm -f core conftest.err conftest.$ac_objext \
21295 conftest$ac_exeext conftest.$ac_ext
21298 LIBS="$tst_connect_save_LIBS"
21300 case X-"$tst_connect_need_LIBS" in
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
21303 $as_echo "cannot find connect" >&6; }
21304 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21308 $as_echo "yes" >&6; }
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
21312 $as_echo "$tst_connect_need_LIBS" >&6; }
21313 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
21318 CURL_NETWORK_LIBS=$LIBS
21320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
21321 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
21322 if ${ac_cv_header_time+:} false; then :
21323 $as_echo_n "(cached) " >&6
21325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21326 /* end confdefs.h. */
21327 #include <sys/types.h>
21328 #include <sys/time.h>
21333 if ((struct tm *) 0)
21339 if ac_fn_c_try_compile "$LINENO"; then :
21340 ac_cv_header_time=yes
21342 ac_cv_header_time=no
21344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
21347 $as_echo "$ac_cv_header_time" >&6; }
21348 if test $ac_cv_header_time = yes; then
21350 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
21355 for ac_header in sys/types.h sys/time.h time.h
21357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21358 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21359 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21360 cat >>confdefs.h <<_ACEOF
21361 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
21369 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
21371 if test "x$dontwant_rt" = "xno" ; then
21372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21373 /* end confdefs.h. */
21376 #ifdef HAVE_SYS_TYPES_H
21377 #include <sys/types.h>
21379 #ifdef HAVE_SYS_TIME_H
21380 #include <sys/time.h>
21381 #ifdef TIME_WITH_SYS_TIME
21393 struct timespec ts;
21394 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
21401 if ac_fn_c_try_compile "$LINENO"; then :
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21404 $as_echo "yes" >&6; }
21405 curl_func_clock_gettime="yes"
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21410 $as_echo "no" >&6; }
21411 curl_func_clock_gettime="no"
21414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21419 if test "$curl_func_clock_gettime" = "yes"; then
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
21422 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
21424 curl_cv_save_LIBS="$LIBS"
21425 curl_cv_gclk_LIBS="unknown"
21427 for x_xlibs in '' '-lrt' '-lposix4' ; do
21428 if test "$curl_cv_gclk_LIBS" = "unknown"; then
21429 if test -z "$x_xlibs"; then
21430 LIBS="$curl_cv_save_LIBS"
21432 LIBS="$x_xlibs $curl_cv_save_LIBS"
21434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21435 /* end confdefs.h. */
21438 #ifdef HAVE_SYS_TYPES_H
21439 #include <sys/types.h>
21441 #ifdef HAVE_SYS_TIME_H
21442 #include <sys/time.h>
21443 #ifdef TIME_WITH_SYS_TIME
21455 struct timespec ts;
21456 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
21463 if ac_fn_c_try_link "$LINENO"; then :
21465 curl_cv_gclk_LIBS="$x_xlibs"
21468 rm -f core conftest.err conftest.$ac_objext \
21469 conftest$ac_exeext conftest.$ac_ext
21473 LIBS="$curl_cv_save_LIBS"
21475 case X-"$curl_cv_gclk_LIBS" in
21477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
21478 $as_echo "cannot find clock_gettime" >&6; }
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
21480 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
21481 curl_func_clock_gettime="no"
21484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21485 $as_echo "no additional lib required" >&6; }
21486 curl_func_clock_gettime="yes"
21489 if test -z "$curl_cv_save_LIBS"; then
21490 LIBS="$curl_cv_gclk_LIBS"
21492 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
21495 $as_echo "$curl_cv_gclk_LIBS" >&6; }
21496 curl_func_clock_gettime="yes"
21500 if test "x$cross_compiling" != "xyes" &&
21501 test "$curl_func_clock_gettime" = "yes"; then
21502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
21503 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
21505 old=$LD_LIBRARY_PATH
21506 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21507 export LD_LIBRARY_PATH
21508 if test "$cross_compiling" = yes; then :
21509 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21511 as_fn_error $? "cannot run test program while cross compiling
21512 See \`config.log' for more details" "$LINENO" 5; }
21514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21515 /* end confdefs.h. */
21518 #ifdef HAVE_STDLIB_H
21519 #include <stdlib.h>
21521 #ifdef HAVE_SYS_TYPES_H
21522 #include <sys/types.h>
21524 #ifdef HAVE_SYS_TIME_H
21525 #include <sys/time.h>
21526 #ifdef TIME_WITH_SYS_TIME
21538 struct timespec ts;
21539 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
21549 if ac_fn_c_try_run "$LINENO"; then :
21550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21551 $as_echo "yes" >&6; }
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21555 $as_echo "no" >&6; }
21556 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
21557 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
21558 curl_func_clock_gettime="no"
21559 LIBS="$curl_cv_save_LIBS"
21562 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21563 conftest.$ac_objext conftest.beam conftest.$ac_ext
21566 LD_LIBRARY_PATH=$old # restore
21570 case "$curl_func_clock_gettime" in
21573 cat >>confdefs.h <<_ACEOF
21574 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
21584 CURL_NETWORK_AND_TIME_LIBS=$LIBS
21588 clean_CPPFLAGS=$CPPFLAGS
21589 clean_LDFLAGS=$LDFLAGS
21593 # Check whether --with-zlib was given.
21594 if test "${with_zlib+set}" = set; then :
21595 withval=$with_zlib; OPT_ZLIB="$withval"
21599 if test "$OPT_ZLIB" = "no" ; then
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
21601 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
21603 if test "$OPT_ZLIB" = "yes" ; then
21607 if test -z "$OPT_ZLIB" ; then
21609 if test -n "$PKG_CONFIG"; then
21610 PKGCONFIG="$PKG_CONFIG"
21612 if test -n "$ac_tool_prefix"; then
21613 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21614 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21616 $as_echo_n "checking for $ac_word... " >&6; }
21617 if ${ac_cv_path_PKGCONFIG+:} false; then :
21618 $as_echo_n "(cached) " >&6
21622 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21626 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21627 for as_dir in $as_dummy
21630 test -z "$as_dir" && as_dir=.
21631 for ac_exec_ext in '' $ac_executable_extensions; do
21632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21633 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21644 PKGCONFIG=$ac_cv_path_PKGCONFIG
21645 if test -n "$PKGCONFIG"; then
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21647 $as_echo "$PKGCONFIG" >&6; }
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21650 $as_echo "no" >&6; }
21655 if test -z "$ac_cv_path_PKGCONFIG"; then
21656 ac_pt_PKGCONFIG=$PKGCONFIG
21657 # Extract the first word of "pkg-config", so it can be a program name with args.
21658 set dummy pkg-config; ac_word=$2
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21660 $as_echo_n "checking for $ac_word... " >&6; }
21661 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21662 $as_echo_n "(cached) " >&6
21664 case $ac_pt_PKGCONFIG in
21666 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21670 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21671 for as_dir in $as_dummy
21674 test -z "$as_dir" && as_dir=.
21675 for ac_exec_ext in '' $ac_executable_extensions; do
21676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21677 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21688 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21689 if test -n "$ac_pt_PKGCONFIG"; then
21690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21691 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21694 $as_echo "no" >&6; }
21697 if test "x$ac_pt_PKGCONFIG" = x; then
21700 case $cross_compiling:$ac_tool_warned in
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21704 ac_tool_warned=yes ;;
21706 PKGCONFIG=$ac_pt_PKGCONFIG
21709 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21714 if test "x$PKGCONFIG" != "xno"; then
21715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
21716 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
21718 if test -n ""; then
21719 PKG_CONFIG_LIBDIR=""
21720 export PKG_CONFIG_LIBDIR
21722 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
21724 if test -z "$itexists"; then
21726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21727 $as_echo "no" >&6; }
21729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21730 $as_echo "found" >&6; }
21735 if test "$PKGCONFIG" != "no" ; then
21736 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
21737 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
21738 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
21743 if test -z "$HAVE_LIBZ"; then
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
21747 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
21748 if ${ac_cv_lib_z_inflateEnd+:} false; then :
21749 $as_echo_n "(cached) " >&6
21751 ac_check_lib_save_LIBS=$LIBS
21753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21754 /* end confdefs.h. */
21760 char inflateEnd ();
21763 return inflateEnd ();
21768 if ac_fn_c_try_link "$LINENO"; then :
21769 ac_cv_lib_z_inflateEnd=yes
21771 ac_cv_lib_z_inflateEnd=no
21773 rm -f core conftest.err conftest.$ac_objext \
21774 conftest$ac_exeext conftest.$ac_ext
21775 LIBS=$ac_check_lib_save_LIBS
21777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
21778 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
21779 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
21783 OPT_ZLIB="/usr/local"
21789 if test -n "$OPT_ZLIB"; then
21790 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
21791 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
21794 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21795 if test "x$ac_cv_header_zlib_h" = xyes; then :
21798 if test "$HAVE_LIBZ" != "1"; then
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
21800 $as_echo_n "checking for gzread in -lz... " >&6; }
21801 if ${ac_cv_lib_z_gzread+:} false; then :
21802 $as_echo_n "(cached) " >&6
21804 ac_check_lib_save_LIBS=$LIBS
21806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21807 /* end confdefs.h. */
21821 if ac_fn_c_try_link "$LINENO"; then :
21822 ac_cv_lib_z_gzread=yes
21824 ac_cv_lib_z_gzread=no
21826 rm -f core conftest.err conftest.$ac_objext \
21827 conftest$ac_exeext conftest.$ac_ext
21828 LIBS=$ac_check_lib_save_LIBS
21830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
21831 $as_echo "$ac_cv_lib_z_gzread" >&6; }
21832 if test "x$ac_cv_lib_z_gzread" = xyes; then :
21838 CPPFLAGS=$clean_CPPFLAGS
21839 LDFLAGS=$clean_LDFLAGS
21846 CPPFLAGS=$clean_CPPFLAGS
21847 LDFLAGS=$clean_LDFLAGS
21853 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
21856 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
21858 CPPFLAGS=$clean_CPPFLAGS
21859 LDFLAGS=$clean_LDFLAGS
21861 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
21864 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
21865 CPPFLAGS=$clean_CPPFLAGS
21866 LDFLAGS=$clean_LDFLAGS
21868 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
21872 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
21875 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
21879 LIBS="-lz $clean_LIBS"
21882 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
21883 $as_echo "$as_me: found both libz and libz.h header" >&6;}
21884 curl_zlib_msg="enabled"
21888 if test x"$AMFIXLIB" = x1; then
21890 HAVE_LIBZ_FALSE='#'
21902 # Check whether --with-brotli was given.
21903 if test "${with_brotli+set}" = set; then :
21904 withval=$with_brotli; OPT_BROTLI=$withval
21908 if test X"$OPT_BROTLI" != Xno; then
21909 CLEANLDFLAGS="$LDFLAGS"
21910 CLEANCPPFLAGS="$CPPFLAGS"
21913 case "$OPT_BROTLI" in
21916 if test -n "$PKG_CONFIG"; then
21917 PKGCONFIG="$PKG_CONFIG"
21919 if test -n "$ac_tool_prefix"; then
21920 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21921 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21923 $as_echo_n "checking for $ac_word... " >&6; }
21924 if ${ac_cv_path_PKGCONFIG+:} false; then :
21925 $as_echo_n "(cached) " >&6
21929 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21933 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21934 for as_dir in $as_dummy
21937 test -z "$as_dir" && as_dir=.
21938 for ac_exec_ext in '' $ac_executable_extensions; do
21939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21940 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21951 PKGCONFIG=$ac_cv_path_PKGCONFIG
21952 if test -n "$PKGCONFIG"; then
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21954 $as_echo "$PKGCONFIG" >&6; }
21956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21957 $as_echo "no" >&6; }
21962 if test -z "$ac_cv_path_PKGCONFIG"; then
21963 ac_pt_PKGCONFIG=$PKGCONFIG
21964 # Extract the first word of "pkg-config", so it can be a program name with args.
21965 set dummy pkg-config; ac_word=$2
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21967 $as_echo_n "checking for $ac_word... " >&6; }
21968 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21969 $as_echo_n "(cached) " >&6
21971 case $ac_pt_PKGCONFIG in
21973 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21977 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21978 for as_dir in $as_dummy
21981 test -z "$as_dir" && as_dir=.
21982 for ac_exec_ext in '' $ac_executable_extensions; do
21983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21984 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21995 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21996 if test -n "$ac_pt_PKGCONFIG"; then
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21998 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22001 $as_echo "no" >&6; }
22004 if test "x$ac_pt_PKGCONFIG" = x; then
22007 case $cross_compiling:$ac_tool_warned in
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22010 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22011 ac_tool_warned=yes ;;
22013 PKGCONFIG=$ac_pt_PKGCONFIG
22016 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22021 if test "x$PKGCONFIG" != "xno"; then
22022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
22023 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
22025 if test -n ""; then
22026 PKG_CONFIG_LIBDIR=""
22027 export PKG_CONFIG_LIBDIR
22029 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
22031 if test -z "$itexists"; then
22033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22034 $as_echo "no" >&6; }
22036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22037 $as_echo "found" >&6; }
22042 if test "$PKGCONFIG" != "no" ; then
22043 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
22044 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
22045 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
22046 version=`$PKGCONFIG --modversion libbrotlidec`
22047 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
22054 PREFIX_BROTLI=$OPT_BROTLI
22058 if test -n "$PREFIX_BROTLI"; then
22059 LIB_BROTLI="-lbrotlidec"
22060 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
22061 CPP_BROTLI=-I${PREFIX_BROTLI}/include
22062 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
22065 LDFLAGS="$LDFLAGS $LD_BROTLI"
22066 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
22067 LIBS="$LIB_BROTLI $LIBS"
22069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
22070 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
22071 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
22072 $as_echo_n "(cached) " >&6
22074 ac_check_lib_save_LIBS=$LIBS
22075 LIBS="-lbrotlidec $LIBS"
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22083 char BrotliDecoderDecompress ();
22086 return BrotliDecoderDecompress ();
22091 if ac_fn_c_try_link "$LINENO"; then :
22092 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
22094 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
22096 rm -f core conftest.err conftest.$ac_objext \
22097 conftest$ac_exeext conftest.$ac_ext
22098 LIBS=$ac_check_lib_save_LIBS
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
22101 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
22102 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
22103 cat >>confdefs.h <<_ACEOF
22104 #define HAVE_LIBBROTLIDEC 1
22107 LIBS="-lbrotlidec $LIBS"
22112 for ac_header in brotli/decode.h
22114 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
22115 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
22116 cat >>confdefs.h <<_ACEOF
22117 #define HAVE_BROTLI_DECODE_H 1
22119 curl_brotli_msg="enabled (libbrotlidec)"
22122 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
22132 if test X"$OPT_BROTLI" != Xoff &&
22133 test "$HAVE_BROTLI" != "1"; then
22134 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
22137 if test "$HAVE_BROTLI" = "1"; then
22138 if test -n "$DIR_BROTLI"; then
22140 if test "x$cross_compiling" != "xyes"; then
22141 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
22142 export CURL_LIBRARY_PATH
22143 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
22144 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
22148 LDFLAGS=$CLEANLDFLAGS
22149 CPPFLAGS=$CLEANCPPFLAGS
22157 # Check whether --with-zstd was given.
22158 if test "${with_zstd+set}" = set; then :
22159 withval=$with_zstd; OPT_ZSTD=$withval
22163 if test X"$OPT_ZSTD" != Xno; then
22164 CLEANLDFLAGS="$LDFLAGS"
22165 CLEANCPPFLAGS="$CPPFLAGS"
22168 case "$OPT_ZSTD" in
22171 if test -n "$PKG_CONFIG"; then
22172 PKGCONFIG="$PKG_CONFIG"
22174 if test -n "$ac_tool_prefix"; then
22175 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22176 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22178 $as_echo_n "checking for $ac_word... " >&6; }
22179 if ${ac_cv_path_PKGCONFIG+:} false; then :
22180 $as_echo_n "(cached) " >&6
22184 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22188 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22189 for as_dir in $as_dummy
22192 test -z "$as_dir" && as_dir=.
22193 for ac_exec_ext in '' $ac_executable_extensions; do
22194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22195 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22206 PKGCONFIG=$ac_cv_path_PKGCONFIG
22207 if test -n "$PKGCONFIG"; then
22208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22209 $as_echo "$PKGCONFIG" >&6; }
22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22212 $as_echo "no" >&6; }
22217 if test -z "$ac_cv_path_PKGCONFIG"; then
22218 ac_pt_PKGCONFIG=$PKGCONFIG
22219 # Extract the first word of "pkg-config", so it can be a program name with args.
22220 set dummy pkg-config; ac_word=$2
22221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222 $as_echo_n "checking for $ac_word... " >&6; }
22223 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22224 $as_echo_n "(cached) " >&6
22226 case $ac_pt_PKGCONFIG in
22228 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22233 for as_dir in $as_dummy
22236 test -z "$as_dir" && as_dir=.
22237 for ac_exec_ext in '' $ac_executable_extensions; do
22238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22239 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22250 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22251 if test -n "$ac_pt_PKGCONFIG"; then
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22253 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22256 $as_echo "no" >&6; }
22259 if test "x$ac_pt_PKGCONFIG" = x; then
22262 case $cross_compiling:$ac_tool_warned in
22264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22266 ac_tool_warned=yes ;;
22268 PKGCONFIG=$ac_pt_PKGCONFIG
22271 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22276 if test "x$PKGCONFIG" != "xno"; then
22277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
22278 $as_echo_n "checking for libzstd options with pkg-config... " >&6; }
22280 if test -n ""; then
22281 PKG_CONFIG_LIBDIR=""
22282 export PKG_CONFIG_LIBDIR
22284 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
22286 if test -z "$itexists"; then
22288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22289 $as_echo "no" >&6; }
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22292 $as_echo "found" >&6; }
22297 if test "$PKGCONFIG" != "no" ; then
22298 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
22299 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
22300 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
22301 version=`$PKGCONFIG --modversion libzstd`
22302 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
22309 PREFIX_ZSTD=$OPT_ZSTD
22313 if test -n "$PREFIX_ZSTD"; then
22315 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
22316 CPP_ZSTD=-I${PREFIX_ZSTD}/include
22317 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
22320 LDFLAGS="$LDFLAGS $LD_ZSTD"
22321 CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
22322 LIBS="$LIB_ZSTD $LIBS"
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
22325 $as_echo_n "checking for ZSTD_createDStream in -lzstd... " >&6; }
22326 if ${ac_cv_lib_zstd_ZSTD_createDStream+:} false; then :
22327 $as_echo_n "(cached) " >&6
22329 ac_check_lib_save_LIBS=$LIBS
22330 LIBS="-lzstd $LIBS"
22331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22332 /* end confdefs.h. */
22338 char ZSTD_createDStream ();
22341 return ZSTD_createDStream ();
22346 if ac_fn_c_try_link "$LINENO"; then :
22347 ac_cv_lib_zstd_ZSTD_createDStream=yes
22349 ac_cv_lib_zstd_ZSTD_createDStream=no
22351 rm -f core conftest.err conftest.$ac_objext \
22352 conftest$ac_exeext conftest.$ac_ext
22353 LIBS=$ac_check_lib_save_LIBS
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
22356 $as_echo "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
22357 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes; then :
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_LIBZSTD 1
22362 LIBS="-lzstd $LIBS"
22367 for ac_header in zstd.h
22369 ac_fn_c_check_header_mongrel "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
22370 if test "x$ac_cv_header_zstd_h" = xyes; then :
22371 cat >>confdefs.h <<_ACEOF
22372 #define HAVE_ZSTD_H 1
22374 curl_zstd_msg="enabled (libzstd)"
22377 $as_echo "#define HAVE_ZSTD 1" >>confdefs.h
22387 if test X"$OPT_ZSTD" != Xoff &&
22388 test "$HAVE_ZSTD" != "1"; then
22389 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
22392 if test "$HAVE_ZSTD" = "1"; then
22393 if test -n "$DIR_ZSTD"; then
22395 if test "x$cross_compiling" != "xyes"; then
22396 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
22397 export CURL_LIBRARY_PATH
22398 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
22399 $as_echo "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
22403 LDFLAGS=$CLEANLDFLAGS
22404 CPPFLAGS=$CLEANCPPFLAGS
22412 # Check whether --with-ldap-lib was given.
22413 if test "${with_ldap_lib+set}" = set; then :
22414 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
22420 # Check whether --with-lber-lib was given.
22421 if test "${with_lber_lib+set}" = set; then :
22422 withval=$with_lber_lib; LBERLIBNAME="$withval"
22426 if test x$CURL_DISABLE_LDAP != x1 ; then
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
22430 $as_echo_n "checking for lber.h... " >&6; }
22431 if ${curl_cv_header_lber_h+:} false; then :
22432 $as_echo_n "(cached) " >&6
22435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22436 /* end confdefs.h. */
22440 #ifdef HAVE_WINDOWS_H
22441 #ifndef WIN32_LEAN_AND_MEAN
22442 #define WIN32_LEAN_AND_MEAN
22444 #include <windows.h>
22446 #ifdef HAVE_SYS_TYPES_H
22447 #include <sys/types.h>
22451 #define NULL (void *)0
22458 BerValue *bvp = NULL;
22459 BerElement *bep = ber_init(bvp);
22467 if ac_fn_c_try_compile "$LINENO"; then :
22469 curl_cv_header_lber_h="yes"
22473 curl_cv_header_lber_h="no"
22476 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
22480 $as_echo "$curl_cv_header_lber_h" >&6; }
22481 if test "$curl_cv_header_lber_h" = "yes"; then
22483 cat >>confdefs.h <<_ACEOF
22484 #define HAVE_LBER_H 1
22488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22489 /* end confdefs.h. */
22493 #ifdef HAVE_WINDOWS_H
22494 #ifndef WIN32_LEAN_AND_MEAN
22495 #define WIN32_LEAN_AND_MEAN
22497 #include <windows.h>
22499 #ifdef HAVE_SYS_TYPES_H
22500 #include <sys/types.h>
22504 #define NULL (void *)0
22506 #ifndef LDAP_DEPRECATED
22507 #define LDAP_DEPRECATED 1
22514 BerValue *bvp = NULL;
22515 BerElement *bep = ber_init(bvp);
22523 if ac_fn_c_try_compile "$LINENO"; then :
22525 curl_cv_need_header_lber_h="no"
22529 curl_cv_need_header_lber_h="yes"
22532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22534 case "$curl_cv_need_header_lber_h" in
22537 cat >>confdefs.h <<_ACEOF
22538 #define NEED_LBER_H 1
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
22547 $as_echo_n "checking for ldap.h... " >&6; }
22548 if ${curl_cv_header_ldap_h+:} false; then :
22549 $as_echo_n "(cached) " >&6
22552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22553 /* end confdefs.h. */
22557 #ifdef HAVE_WINDOWS_H
22558 #ifndef WIN32_LEAN_AND_MEAN
22559 #define WIN32_LEAN_AND_MEAN
22561 #include <windows.h>
22563 #ifdef HAVE_SYS_TYPES_H
22564 #include <sys/types.h>
22567 #ifndef LDAP_DEPRECATED
22568 #define LDAP_DEPRECATED 1
22578 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
22579 int res = ldap_unbind(ldp);
22586 if ac_fn_c_try_compile "$LINENO"; then :
22588 curl_cv_header_ldap_h="yes"
22592 curl_cv_header_ldap_h="no"
22595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
22599 $as_echo "$curl_cv_header_ldap_h" >&6; }
22600 case "$curl_cv_header_ldap_h" in
22603 cat >>confdefs.h <<_ACEOF
22604 #define HAVE_LDAP_H 1
22611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
22612 $as_echo_n "checking for ldapssl.h... " >&6; }
22613 if ${curl_cv_header_ldapssl_h+:} false; then :
22614 $as_echo_n "(cached) " >&6
22617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618 /* end confdefs.h. */
22622 #ifdef HAVE_WINDOWS_H
22623 #ifndef WIN32_LEAN_AND_MEAN
22624 #define WIN32_LEAN_AND_MEAN
22626 #include <windows.h>
22628 #ifdef HAVE_SYS_TYPES_H
22629 #include <sys/types.h>
22633 #define NULL (void *)0
22635 #ifndef LDAP_DEPRECATED
22636 #define LDAP_DEPRECATED 1
22644 #include <ldapssl.h>
22649 char *cert_label = NULL;
22650 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
22657 if ac_fn_c_try_compile "$LINENO"; then :
22659 curl_cv_header_ldapssl_h="yes"
22663 curl_cv_header_ldapssl_h="no"
22666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
22670 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
22671 case "$curl_cv_header_ldapssl_h" in
22674 cat >>confdefs.h <<_ACEOF
22675 #define HAVE_LDAPSSL_H 1
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
22683 $as_echo_n "checking for ldap_ssl.h... " >&6; }
22684 if ${curl_cv_header_ldap_ssl_h+:} false; then :
22685 $as_echo_n "(cached) " >&6
22688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22689 /* end confdefs.h. */
22693 #ifdef HAVE_WINDOWS_H
22694 #ifndef WIN32_LEAN_AND_MEAN
22695 #define WIN32_LEAN_AND_MEAN
22697 #include <windows.h>
22699 #ifdef HAVE_SYS_TYPES_H
22700 #include <sys/types.h>
22703 #ifndef LDAP_DEPRECATED
22704 #define LDAP_DEPRECATED 1
22712 #include <ldap_ssl.h>
22717 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
22724 if ac_fn_c_try_compile "$LINENO"; then :
22726 curl_cv_header_ldap_ssl_h="yes"
22730 curl_cv_header_ldap_ssl_h="no"
22733 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
22737 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
22738 case "$curl_cv_header_ldap_ssl_h" in
22741 cat >>confdefs.h <<_ACEOF
22742 #define HAVE_LDAP_SSL_H 1
22749 if test -z "$LDAPLIBNAME" ; then
22750 if test "$curl_cv_native_windows" = "yes"; then
22751 LDAPLIBNAME="wldap32"
22756 if test "$LDAPLIBNAME" ; then
22757 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
22758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
22759 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
22760 if eval \${$as_ac_Lib+:} false; then :
22761 $as_echo_n "(cached) " >&6
22763 ac_check_lib_save_LIBS=$LIBS
22764 LIBS="-l"$LDAPLIBNAME" $LIBS"
22765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22766 /* end confdefs.h. */
22775 return ldap_init ();
22780 if ac_fn_c_try_link "$LINENO"; then :
22781 eval "$as_ac_Lib=yes"
22783 eval "$as_ac_Lib=no"
22785 rm -f core conftest.err conftest.$ac_objext \
22786 conftest$ac_exeext conftest.$ac_ext
22787 LIBS=$ac_check_lib_save_LIBS
22789 eval ac_res=\$$as_ac_Lib
22790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22791 $as_echo "$ac_res" >&6; }
22792 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22793 cat >>confdefs.h <<_ACEOF
22794 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
22797 LIBS="-l"$LDAPLIBNAME" $LIBS"
22801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
22802 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
22804 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22806 CURL_DISABLE_LDAP=1
22809 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22811 CURL_DISABLE_LDAPS=1
22818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
22819 $as_echo_n "checking for LDAP libraries... " >&6; }
22825 curl_cv_save_LIBS="$LIBS"
22826 curl_cv_ldap_LIBS="unknown"
22828 for x_nlibs in '' "$u_libs" \
22832 '-lldapssl -lldapx -lldapsdk' \
22833 '-lldapsdk -lldapx -lldapssl' \
22834 '-lldap -llber -lssl -lcrypto' ; do
22836 if test "$curl_cv_ldap_LIBS" = "unknown"; then
22837 if test -z "$x_nlibs"; then
22838 LIBS="$curl_cv_save_LIBS"
22840 LIBS="$x_nlibs $curl_cv_save_LIBS"
22842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22843 /* end confdefs.h. */
22847 #ifdef HAVE_WINDOWS_H
22848 #ifndef WIN32_LEAN_AND_MEAN
22849 #define WIN32_LEAN_AND_MEAN
22851 #include <windows.h>
22853 #ifdef HAVE_SYS_TYPES_H
22854 #include <sys/types.h>
22858 #define NULL (void *)0
22860 #ifndef LDAP_DEPRECATED
22861 #define LDAP_DEPRECATED 1
22873 BerValue *bvp = NULL;
22874 BerElement *bep = ber_init(bvp);
22875 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
22876 int res = ldap_unbind(ldp);
22884 if ac_fn_c_try_link "$LINENO"; then :
22886 curl_cv_ldap_LIBS="$x_nlibs"
22889 rm -f core conftest.err conftest.$ac_objext \
22890 conftest$ac_exeext conftest.$ac_ext
22894 LIBS="$curl_cv_save_LIBS"
22896 case X-"$curl_cv_ldap_LIBS" in
22898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
22899 $as_echo "cannot find LDAP libraries" >&6; }
22902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22903 $as_echo "no additional lib required" >&6; }
22906 if test -z "$curl_cv_save_LIBS"; then
22907 LIBS="$curl_cv_ldap_LIBS"
22909 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
22911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
22912 $as_echo "$curl_cv_ldap_LIBS" >&6; }
22917 case X-"$curl_cv_ldap_LIBS" in
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
22920 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
22922 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22924 CURL_DISABLE_LDAP=1
22927 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22929 CURL_DISABLE_LDAPS=1
22936 if test x$CURL_DISABLE_LDAP != x1 ; then
22938 if test "$LBERLIBNAME" ; then
22939 if test "$LBERLIBNAME" != "no" ; then
22940 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
22941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
22942 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
22943 if eval \${$as_ac_Lib+:} false; then :
22944 $as_echo_n "(cached) " >&6
22946 ac_check_lib_save_LIBS=$LIBS
22947 LIBS="-l"$LBERLIBNAME" $LIBS"
22948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22949 /* end confdefs.h. */
22958 return ber_free ();
22963 if ac_fn_c_try_link "$LINENO"; then :
22964 eval "$as_ac_Lib=yes"
22966 eval "$as_ac_Lib=no"
22968 rm -f core conftest.err conftest.$ac_objext \
22969 conftest$ac_exeext conftest.$ac_ext
22970 LIBS=$ac_check_lib_save_LIBS
22972 eval ac_res=\$$as_ac_Lib
22973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22974 $as_echo "$ac_res" >&6; }
22975 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
22976 cat >>confdefs.h <<_ACEOF
22977 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
22980 LIBS="-l"$LBERLIBNAME" $LIBS"
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
22985 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
22987 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
22989 CURL_DISABLE_LDAP=1
22992 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
22994 CURL_DISABLE_LDAPS=1
23002 if test x$CURL_DISABLE_LDAP != x1 ; then
23003 for ac_func in ldap_url_parse ldap_init_fd
23005 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
23006 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
23007 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
23008 cat >>confdefs.h <<_ACEOF
23009 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
23016 if test "$LDAPLIBNAME" = "wldap32"; then
23017 curl_ldap_msg="enabled (winldap)"
23019 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
23022 curl_ldap_msg="enabled (OpenLDAP)"
23023 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
23025 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
23033 if test x$CURL_DISABLE_LDAPS != x1 ; then
23034 curl_ldaps_msg="enabled"
23038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
23039 $as_echo_n "checking whether to enable IPv6... " >&6; }
23040 # Check whether --enable-ipv6 was given.
23041 if test "${enable_ipv6+set}" = set; then :
23042 enableval=$enable_ipv6; case "$enableval" in
23044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23045 $as_echo "no" >&6; }
23048 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23049 $as_echo "yes" >&6; }
23054 if test "$cross_compiling" = yes; then :
23055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23056 $as_echo "yes" >&6; }
23060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23061 /* end confdefs.h. */
23062 /* are AF_INET6 and sockaddr_in6 available? */
23063 #include <sys/types.h>
23064 #ifdef HAVE_WINSOCK2_H
23065 #include <winsock2.h>
23066 #include <ws2tcpip.h>
23068 #include <sys/socket.h>
23069 #include <netinet/in.h>
23070 #if defined (__TANDEM)
23071 # include <netinet/in6.h>
23074 #include <stdlib.h> /* for exit() */
23077 struct sockaddr_in6 s;
23079 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
23086 if ac_fn_c_try_run "$LINENO"; then :
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23088 $as_echo "yes" >&6; }
23091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23092 $as_echo "no" >&6; }
23095 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23096 conftest.$ac_objext conftest.beam conftest.$ac_ext
23102 if test "$ipv6" = yes; then
23103 curl_ipv6_msg="enabled"
23105 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
23111 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
23112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23113 /* end confdefs.h. */
23115 #include <sys/types.h>
23116 #ifdef HAVE_WINSOCK2_H
23117 #include <winsock2.h>
23118 #include <ws2tcpip.h>
23120 #include <netinet/in.h>
23121 #if defined (__TANDEM)
23122 # include <netinet/in6.h>
23127 struct sockaddr_in6 s; s.sin6_scope_id = 0;
23132 if ac_fn_c_try_compile "$LINENO"; then :
23133 have_sin6_scope_id=yes
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136 if test "$have_sin6_scope_id" = yes; then
23137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23138 $as_echo "yes" >&6; }
23140 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
23143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23144 $as_echo "no" >&6; }
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
23150 $as_echo_n "checking if argv can be written to... " >&6; }
23152 old=$LD_LIBRARY_PATH
23153 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
23154 export LD_LIBRARY_PATH
23155 if test "$cross_compiling" = yes; then :
23156 curl_cv_writable_argv=cross
23159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23160 /* end confdefs.h. */
23162 int main(int argc, char **argv)
23166 return (argv[0][0] == ' ')?0:1;
23170 if ac_fn_c_try_run "$LINENO"; then :
23171 curl_cv_writable_argv=yes
23174 curl_cv_writable_argv=no
23177 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23178 conftest.$ac_objext conftest.beam conftest.$ac_ext
23181 LD_LIBRARY_PATH=$old # restore
23183 case $curl_cv_writable_argv in
23186 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
23188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23189 $as_echo "yes" >&6; }
23192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23193 $as_echo "no" >&6; }
23196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23197 $as_echo "no" >&6; }
23198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
23199 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
23207 # Check whether --with-gssapi-includes was given.
23208 if test "${with_gssapi_includes+set}" = set; then :
23209 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
23216 # Check whether --with-gssapi-libs was given.
23217 if test "${with_gssapi_libs+set}" = set; then :
23218 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
23225 # Check whether --with-gssapi was given.
23226 if test "${with_gssapi+set}" = set; then :
23227 withval=$with_gssapi;
23228 GSSAPI_ROOT="$withval"
23229 if test x"$GSSAPI_ROOT" != xno; then
23231 if test x"$GSSAPI_ROOT" = xyes; then
23239 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
23241 save_CPPFLAGS="$CPPFLAGS"
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
23243 $as_echo_n "checking if GSS-API support is requested... " >&6; }
23244 if test x"$want_gss" = xyes; then
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23246 $as_echo "yes" >&6; }
23248 if test -z "$GSSAPI_INCS"; then
23249 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
23250 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
23251 elif test -f "$KRB5CONFIG"; then
23252 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
23253 elif test "$GSSAPI_ROOT" != "yes"; then
23254 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
23258 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
23260 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
23261 if test "x$ac_cv_header_gss_h" = xyes; then :
23264 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
23270 for ac_header in gssapi/gssapi.h
23272 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
23273 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
23274 cat >>confdefs.h <<_ACEOF
23275 #define HAVE_GSSAPI_GSSAPI_H 1
23284 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
23286 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23287 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
23288 $ac_includes_default
23289 #ifdef HAVE_GSSAPI_GSSAPI_H
23290 #include <gssapi/gssapi.h>
23294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
23295 cat >>confdefs.h <<_ACEOF
23296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23305 if test "x$not_mit" = "x1"; then
23306 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
23307 if test "x$ac_cv_header_gssapi_h" = xyes; then :
23310 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
23317 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
23325 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
23328 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330 /* end confdefs.h. */
23333 #include <gssapi/gssapi.h>
23334 #include <gssapi/gssapi_generic.h>
23335 #include <gssapi/gssapi_krb5.h>
23343 GSS_C_NT_HOSTBASED_SERVICE,
23351 if ac_fn_c_try_compile "$LINENO"; then :
23353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23354 $as_echo "yes" >&6; }
23358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23359 $as_echo "no" >&6; }
23361 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
23365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23374 $as_echo "no" >&6; }
23376 if test x"$want_gss" = xyes; then
23378 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
23381 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
23383 if test -n "$gnu_gss"; then
23384 curl_gss_msg="enabled (GNU GSS)"
23385 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
23387 elif test -z "$GSSAPI_LIB_DIR"; then
23390 LIBS="-lgssapi_krb5 -lresolv $LIBS"
23393 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
23394 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
23395 LIBS="$gss_libs $LIBS"
23396 elif test -f "$KRB5CONFIG"; then
23397 gss_libs=`$KRB5CONFIG --libs gssapi`
23398 LIBS="$gss_libs $LIBS"
23405 gss_libname="gssapi"
23409 if test "$GSSAPI_ROOT" != "yes"; then
23410 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
23411 LIBS="-l$gss_libname $LIBS"
23413 LIBS="-l$gss_libname $LIBS"
23419 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
23425 LIBS="-lgssapi $LIBS"
23430 CPPFLAGS="$save_CPPFLAGS"
23433 build_libstubgss=no
23434 if test x"$want_gss" = "xyes"; then
23435 build_libstubgss=yes
23438 if test "x$build_libstubgss" = "xyes"; then
23439 BUILD_STUB_GSS_TRUE=
23440 BUILD_STUB_GSS_FALSE='#'
23442 BUILD_STUB_GSS_TRUE='#'
23443 BUILD_STUB_GSS_FALSE=
23448 DEFAULT_SSL_BACKEND=no
23449 VALID_DEFAULT_SSL_BACKEND=
23451 # Check whether --with-default-ssl-backend was given.
23452 if test "${with_default_ssl_backend+set}" = set; then :
23453 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
23456 case "$DEFAULT_SSL_BACKEND" in
23460 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
23464 VALID_DEFAULT_SSL_BACKEND=no
23472 # Check whether --with-winssl was given.
23473 if test "${with_winssl+set}" = set; then :
23474 withval=$with_winssl; OPT_SCHANNEL=$withval
23479 # Check whether --with-schannel was given.
23480 if test "${with_schannel+set}" = set; then :
23481 withval=$with_schannel; OPT_SCHANNEL=$withval
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
23486 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
23487 if test -z "$ssl_backends" -o "x$OPT_SCHANNEL" != xno; then
23489 if test "x$OPT_SCHANNEL" != "xno" &&
23490 test "x$curl_cv_native_windows" = "xyes"; then
23491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23492 $as_echo "yes" >&6; }
23494 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
23498 ssl_msg="Windows-native"
23499 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23501 # --with-schannel implies --enable-sspi
23503 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
23507 curl_sspi_msg="enabled"
23508 LIBS="-lcrypt32 $LIBS"
23510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23511 $as_echo "no" >&6; }
23513 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23516 $as_echo "no" >&6; }
23519 OPT_SECURETRANSPORT=no
23521 # Check whether --with-darwinssl was given.
23522 if test "${with_darwinssl+set}" = set; then :
23523 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
23528 # Check whether --with-secure-transport was given.
23529 if test "${with_secure_transport+set}" = set; then :
23530 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
23534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
23535 $as_echo_n "checking whether to enable Secure Transport... " >&6; }
23536 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
23537 if test "x$OPT_SECURETRANSPORT" != "xno" &&
23538 (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
23539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23540 $as_echo "yes" >&6; }
23542 $as_echo "#define USE_SECTRANSP 1" >>confdefs.h
23546 ssl_msg="Secure Transport"
23547 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23548 SECURETRANSPORT_ENABLED=1
23549 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
23551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23552 $as_echo "no" >&6; }
23554 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23557 $as_echo "no" >&6; }
23562 # Check whether --with-amissl was given.
23563 if test "${with_amissl+set}" = set; then :
23564 withval=$with_amissl; OPT_AMISSL=$withval
23568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
23569 $as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
23570 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
23571 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
23573 if test "x$OPT_AMISSL" != "xno"; then
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23575 $as_echo "yes" >&6; }
23577 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
23579 LIBS="-lamisslauto $LIBS"
23581 $as_echo "#define USE_AMISSL 1" >>confdefs.h
23584 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
23587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23588 $as_echo "no" >&6; }
23590 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23593 $as_echo "no" >&6; }
23596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23597 $as_echo "no" >&6; }
23604 # Check whether --with-ssl was given.
23605 if test "${with_ssl+set}" = set; then :
23606 withval=$with_ssl; OPT_SSL=$withval
23610 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
23611 test X"$OPT_SSL" != Xno; then
23614 CLEANLDFLAGS="$LDFLAGS"
23615 CLEANCPPFLAGS="$CPPFLAGS"
23619 *-*-msys* | *-*-mingw*)
23620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
23621 $as_echo_n "checking for gdi32... " >&6; }
23622 my_ac_save_LIBS=$LIBS
23623 LIBS="-lgdi32 $LIBS"
23624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23625 /* end confdefs.h. */
23626 #include <windef.h>
23627 #include <wingdi.h>
23635 if ac_fn_c_try_link "$LINENO"; then :
23636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23637 $as_echo "yes" >&6; }
23639 LIBS=$my_ac_save_LIBS
23640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23641 $as_echo "no" >&6; }
23644 rm -f core conftest.err conftest.$ac_objext \
23645 conftest$ac_exeext conftest.$ac_ext
23651 if test x$cross_compiling != xyes; then
23654 PREFIX_OPENSSL=/usr/local/ssl
23655 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
23658 if test x$cross_compiling != xyes; then
23665 PREFIX_OPENSSL=$OPT_SSL
23667 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
23668 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
23669 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
23670 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
23672 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
23673 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
23676 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
23677 if test "$PREFIX_OPENSSL" != "/usr" ; then
23678 SSL_LDFLAGS="-L$LIB_OPENSSL"
23679 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
23681 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
23685 if test "$PKGTEST" = "yes"; then
23688 if test -n "$PKG_CONFIG"; then
23689 PKGCONFIG="$PKG_CONFIG"
23691 if test -n "$ac_tool_prefix"; then
23692 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23693 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23695 $as_echo_n "checking for $ac_word... " >&6; }
23696 if ${ac_cv_path_PKGCONFIG+:} false; then :
23697 $as_echo_n "(cached) " >&6
23701 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23705 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23706 for as_dir in $as_dummy
23709 test -z "$as_dir" && as_dir=.
23710 for ac_exec_ext in '' $ac_executable_extensions; do
23711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23712 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23723 PKGCONFIG=$ac_cv_path_PKGCONFIG
23724 if test -n "$PKGCONFIG"; then
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23726 $as_echo "$PKGCONFIG" >&6; }
23728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23729 $as_echo "no" >&6; }
23734 if test -z "$ac_cv_path_PKGCONFIG"; then
23735 ac_pt_PKGCONFIG=$PKGCONFIG
23736 # Extract the first word of "pkg-config", so it can be a program name with args.
23737 set dummy pkg-config; ac_word=$2
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23739 $as_echo_n "checking for $ac_word... " >&6; }
23740 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23741 $as_echo_n "(cached) " >&6
23743 case $ac_pt_PKGCONFIG in
23745 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23749 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23750 for as_dir in $as_dummy
23753 test -z "$as_dir" && as_dir=.
23754 for ac_exec_ext in '' $ac_executable_extensions; do
23755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23756 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23767 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23768 if test -n "$ac_pt_PKGCONFIG"; then
23769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23770 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23773 $as_echo "no" >&6; }
23776 if test "x$ac_pt_PKGCONFIG" = x; then
23779 case $cross_compiling:$ac_tool_warned in
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23783 ac_tool_warned=yes ;;
23785 PKGCONFIG=$ac_pt_PKGCONFIG
23788 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23793 if test "x$PKGCONFIG" != "xno"; then
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
23795 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
23797 if test -n "$OPENSSL_PCDIR"; then
23798 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23799 export PKG_CONFIG_LIBDIR
23801 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
23803 if test -z "$itexists"; then
23805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23806 $as_echo "no" >&6; }
23808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23809 $as_echo "found" >&6; }
23814 if test "$PKGCONFIG" != "no" ; then
23816 if test -n "$OPENSSL_PCDIR"; then
23817 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23818 export PKG_CONFIG_LIBDIR
23820 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
23823 if test -n "$OPENSSL_PCDIR"; then
23824 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23825 export PKG_CONFIG_LIBDIR
23827 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
23830 if test -n "$OPENSSL_PCDIR"; then
23831 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
23832 export PKG_CONFIG_LIBDIR
23834 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
23837 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
23838 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
23839 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
23840 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
23841 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
23842 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
23844 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
23846 LIBS="$SSL_LIBS $LIBS"
23850 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
23851 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
23853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
23854 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
23855 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
23856 $as_echo_n "(cached) " >&6
23858 ac_check_lib_save_LIBS=$LIBS
23859 LIBS="-lcrypto $LIBS"
23860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23861 /* end confdefs.h. */
23867 char HMAC_Update ();
23870 return HMAC_Update ();
23875 if ac_fn_c_try_link "$LINENO"; then :
23876 ac_cv_lib_crypto_HMAC_Update=yes
23878 ac_cv_lib_crypto_HMAC_Update=no
23880 rm -f core conftest.err conftest.$ac_objext \
23881 conftest$ac_exeext conftest.$ac_ext
23882 LIBS=$ac_check_lib_save_LIBS
23884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
23885 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
23886 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
23889 LIBS="-lcrypto $LIBS"
23893 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
23894 if test "$PKGCONFIG" = "no" ; then
23895 # only set this if pkg-config wasn't used
23896 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
23898 # Linking previously failed, try extra paths from --with-ssl or pkg-config.
23899 # Use a different function name to avoid reusing the earlier cached result.
23900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
23901 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
23902 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
23903 $as_echo_n "(cached) " >&6
23905 ac_check_lib_save_LIBS=$LIBS
23906 LIBS="-lcrypto $LIBS"
23907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23908 /* end confdefs.h. */
23914 char HMAC_Init_ex ();
23917 return HMAC_Init_ex ();
23922 if ac_fn_c_try_link "$LINENO"; then :
23923 ac_cv_lib_crypto_HMAC_Init_ex=yes
23925 ac_cv_lib_crypto_HMAC_Init_ex=no
23927 rm -f core conftest.err conftest.$ac_objext \
23928 conftest$ac_exeext conftest.$ac_ext
23929 LIBS=$ac_check_lib_save_LIBS
23931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
23932 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
23933 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
23936 LIBS="-lcrypto $LIBS"
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
23941 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
23942 LIBS="$CLEANLIBS -lcrypto -ldl"
23943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23944 /* end confdefs.h. */
23946 #include <openssl/err.h>
23957 if ac_fn_c_try_link "$LINENO"; then :
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23960 $as_echo "yes" >&6; }
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23966 $as_echo "no" >&6; }
23968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
23969 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
23970 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
23971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23972 /* end confdefs.h. */
23974 #include <openssl/err.h>
23985 if ac_fn_c_try_link "$LINENO"; then :
23987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23988 $as_echo "yes" >&6; }
23993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23994 $as_echo "no" >&6; }
23995 LDFLAGS="$CLEANLDFLAGS"
23996 CPPFLAGS="$CLEANCPPFLAGS"
24001 rm -f core conftest.err conftest.$ac_objext \
24002 conftest$ac_exeext conftest.$ac_ext
24006 rm -f core conftest.err conftest.$ac_objext \
24007 conftest$ac_exeext conftest.$ac_ext
24016 if test X"$HAVECRYPTO" = X"yes"; then
24018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
24019 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
24020 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
24021 $as_echo_n "(cached) " >&6
24023 ac_check_lib_save_LIBS=$LIBS
24025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24026 /* end confdefs.h. */
24032 char SSL_connect ();
24035 return SSL_connect ();
24040 if ac_fn_c_try_link "$LINENO"; then :
24041 ac_cv_lib_ssl_SSL_connect=yes
24043 ac_cv_lib_ssl_SSL_connect=no
24045 rm -f core conftest.err conftest.$ac_objext \
24046 conftest$ac_exeext conftest.$ac_ext
24047 LIBS=$ac_check_lib_save_LIBS
24049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
24050 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
24051 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
24052 cat >>confdefs.h <<_ACEOF
24053 #define HAVE_LIBSSL 1
24061 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
24063 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
24065 LIBS="-lRSAglue -lrsaref $LIBS"
24066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
24067 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
24068 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
24069 $as_echo_n "(cached) " >&6
24071 ac_check_lib_save_LIBS=$LIBS
24073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24074 /* end confdefs.h. */
24080 char SSL_connect ();
24083 return SSL_connect ();
24088 if ac_fn_c_try_link "$LINENO"; then :
24089 ac_cv_lib_ssl_SSL_connect=yes
24091 ac_cv_lib_ssl_SSL_connect=no
24093 rm -f core conftest.err conftest.$ac_objext \
24094 conftest$ac_exeext conftest.$ac_ext
24095 LIBS=$ac_check_lib_save_LIBS
24097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
24098 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
24099 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
24100 cat >>confdefs.h <<_ACEOF
24101 #define HAVE_LIBSSL 1
24108 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24110 $as_echo "no" >&6; }
24113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24114 $as_echo "yes" >&6; }
24119 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
24120 openssl/pem.h openssl/ssl.h openssl/err.h
24122 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24123 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24125 cat >>confdefs.h <<_ACEOF
24126 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24129 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24132 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
24139 if test $ac_cv_header_openssl_x509_h = no; then
24140 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
24142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24143 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24145 cat >>confdefs.h <<_ACEOF
24146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24154 if test $ac_cv_header_x509_h = yes &&
24155 test $ac_cv_header_crypto_h = yes &&
24156 test $ac_cv_header_ssl_h = yes; then
24163 if test X"$OPENSSL_ENABLED" != X"1"; then
24167 if test X"$OPT_SSL" != Xoff &&
24168 test "$OPENSSL_ENABLED" != "1"; then
24169 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
24173 if test X"$OPENSSL_ENABLED" = X"1"; then
24175 for ac_func in RAND_egd \
24176 SSLv2_client_method \
24179 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24180 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24181 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24182 cat >>confdefs.h <<_ACEOF
24183 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
24191 $as_echo_n "checking for BoringSSL... " >&6; }
24192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24193 /* end confdefs.h. */
24196 #include <openssl/base.h>
24201 #ifndef OPENSSL_IS_BORINGSSL
24202 #error not boringssl
24210 if ac_fn_c_try_compile "$LINENO"; then :
24212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24213 $as_echo "yes" >&6; }
24215 cat >>confdefs.h <<_ACEOF
24216 #define HAVE_BORINGSSL 1
24219 ssl_msg="BoringSSL"
24223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24224 $as_echo "no" >&6; }
24227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
24230 $as_echo_n "checking for libressl... " >&6; }
24231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24232 /* end confdefs.h. */
24235 #include <openssl/opensslv.h>
24240 int dummy = LIBRESSL_VERSION_NUMBER;
24247 if ac_fn_c_try_compile "$LINENO"; then :
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24250 $as_echo "yes" >&6; }
24252 cat >>confdefs.h <<_ACEOF
24253 #define HAVE_LIBRESSL 1
24260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24261 $as_echo "no" >&6; }
24264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
24267 $as_echo_n "checking for OpenSSL >= v3... " >&6; }
24268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24269 /* end confdefs.h. */
24272 #include <openssl/opensslv.h>
24277 #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
24280 #error older than 3
24288 if ac_fn_c_try_compile "$LINENO"; then :
24290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24291 $as_echo "yes" >&6; }
24293 cat >>confdefs.h <<_ACEOF
24294 #define HAVE_OPENSSL3 1
24297 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
24298 ssl_msg="OpenSSL v3+"
24302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24303 $as_echo "no" >&6; }
24306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24309 if test "$OPENSSL_ENABLED" = "1"; then
24310 if test -n "$LIB_OPENSSL"; then
24311 if test "x$cross_compiling" != "xyes"; then
24312 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
24313 export CURL_LIBRARY_PATH
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
24315 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
24325 $as_echo_n "checking for OpenSSL headers version... " >&6; }
24327 OLDCPPFLAGS=$CPPFLAGS
24328 # CPPPFLAG comes from CURL_CPP_P
24329 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
24330 if test -z "$SED"; then
24331 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
24333 if test -z "$GREP"; then
24334 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
24338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24339 /* end confdefs.h. */
24342 # ifdef USE_OPENSSL
24343 # include <openssl/crypto.h>
24345 # include <crypto.h>
24348 #ifdef OPENSSL_VERSION_NUMBER
24349 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
24354 if ac_fn_c_try_cpp "$LINENO"; then :
24356 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
24357 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
24358 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
24359 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
24360 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
24365 rm -f conftest.err conftest.i conftest.$ac_ext
24366 if test -z "$tmp_exp"; then
24367 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
24370 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
24371 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
24374 CPPFLAGS=$OLDCPPFLAGS
24376 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
24377 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
24378 case "x$tst_verlen" in
24380 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
24381 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
24382 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
24383 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
24386 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
24387 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
24388 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
24389 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
24396 0x111) tst_show="1.1.1" ;;
24397 0x110) tst_show="1.1.0" ;;
24398 0x102) tst_show="1.0.2" ;;
24399 0x101) tst_show="1.0.1" ;;
24400 0x100) tst_show="1.0.0" ;;
24401 0x099) tst_show="0.9.9" ;;
24402 0x098) tst_show="0.9.8" ;;
24403 0x097) tst_show="0.9.7" ;;
24404 0x096) tst_show="0.9.6" ;;
24405 0x095) tst_show="0.9.5" ;;
24406 0x094) tst_show="0.9.4" ;;
24407 0x093) tst_show="0.9.3" ;;
24408 0x092) tst_show="0.9.2" ;;
24409 0x091) tst_show="0.9.1" ;;
24410 *) tst_show="unknown" ;;
24412 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
24416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
24417 $as_echo "$tst_show" >&6; }
24419 curl_openssl_api_headers=$tst_api
24425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
24426 $as_echo_n "checking for OpenSSL library version... " >&6; }
24427 if test "$tst_api" = "unknown"; then
24428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24429 /* end confdefs.h. */
24432 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
24434 # include <limits.h>
24436 # include <assert.h>
24438 #undef ERR_clear_last_mark
24442 char ERR_clear_last_mark ();
24443 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
24449 return ERR_clear_last_mark ();
24455 if ac_fn_c_try_link "$LINENO"; then :
24460 rm -f core conftest.err conftest.$ac_objext \
24461 conftest$ac_exeext conftest.$ac_ext
24463 if test "$tst_api" = "unknown"; then
24466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467 /* end confdefs.h. */
24470 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
24472 # include <limits.h>
24474 # include <assert.h>
24476 #undef SSL_CTX_set_not_resumbl_sess_cb
24480 char SSL_CTX_set_not_resumbl_sess_cb ();
24481 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
24487 return SSL_CTX_set_not_resumbl_sess_cb ();
24493 if ac_fn_c_try_link "$LINENO"; then :
24498 rm -f core conftest.err conftest.$ac_objext \
24499 conftest$ac_exeext conftest.$ac_ext
24502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24503 /* end confdefs.h. */
24506 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
24508 # include <limits.h>
24510 # include <assert.h>
24512 #undef SSL_CTX_set_not_resumable_session_callback
24516 char SSL_CTX_set_not_resumable_session_callback ();
24517 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
24523 return SSL_CTX_set_not_resumable_session_callback ();
24529 if ac_fn_c_try_link "$LINENO"; then :
24534 rm -f core conftest.err conftest.$ac_objext \
24535 conftest$ac_exeext conftest.$ac_ext
24539 if test "$tst_api" = "unknown"; then
24540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24541 /* end confdefs.h. */
24544 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
24546 # include <limits.h>
24548 # include <assert.h>
24550 #undef SSL_CONF_CTX_new
24554 char SSL_CONF_CTX_new ();
24555 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
24561 return SSL_CONF_CTX_new ();
24567 if ac_fn_c_try_link "$LINENO"; then :
24572 rm -f core conftest.err conftest.$ac_objext \
24573 conftest$ac_exeext conftest.$ac_ext
24575 if test "$tst_api" = "unknown"; then
24576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24577 /* end confdefs.h. */
24580 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
24582 # include <limits.h>
24584 # include <assert.h>
24586 #undef SSL_renegotiate_abbreviated
24590 char SSL_renegotiate_abbreviated ();
24591 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
24597 return SSL_renegotiate_abbreviated ();
24603 if ac_fn_c_try_link "$LINENO"; then :
24608 rm -f core conftest.err conftest.$ac_objext \
24609 conftest$ac_exeext conftest.$ac_ext
24611 if test "$tst_api" = "unknown"; then
24612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24613 /* end confdefs.h. */
24616 #define OBJ_add_sigid innocuous_OBJ_add_sigid
24618 # include <limits.h>
24620 # include <assert.h>
24622 #undef OBJ_add_sigid
24626 char OBJ_add_sigid ();
24627 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
24633 return OBJ_add_sigid ();
24639 if ac_fn_c_try_link "$LINENO"; then :
24644 rm -f core conftest.err conftest.$ac_objext \
24645 conftest$ac_exeext conftest.$ac_ext
24647 if test "$tst_api" = "unknown"; then
24648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24649 /* end confdefs.h. */
24652 #define ERR_set_mark innocuous_ERR_set_mark
24654 # include <limits.h>
24656 # include <assert.h>
24658 #undef ERR_set_mark
24662 char ERR_set_mark ();
24663 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
24669 return ERR_set_mark ();
24675 if ac_fn_c_try_link "$LINENO"; then :
24680 rm -f core conftest.err conftest.$ac_objext \
24681 conftest$ac_exeext conftest.$ac_ext
24683 if test "$tst_api" = "unknown"; then
24684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24685 /* end confdefs.h. */
24688 #define ERR_peek_last_error innocuous_ERR_peek_last_error
24690 # include <limits.h>
24692 # include <assert.h>
24694 #undef ERR_peek_last_error
24698 char ERR_peek_last_error ();
24699 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
24705 return ERR_peek_last_error ();
24711 if ac_fn_c_try_link "$LINENO"; then :
24716 rm -f core conftest.err conftest.$ac_objext \
24717 conftest$ac_exeext conftest.$ac_ext
24719 if test "$tst_api" = "unknown"; then
24720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24721 /* end confdefs.h. */
24724 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
24726 # include <limits.h>
24728 # include <assert.h>
24730 #undef c2i_ASN1_OBJECT
24734 char c2i_ASN1_OBJECT ();
24735 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
24741 return c2i_ASN1_OBJECT ();
24747 if ac_fn_c_try_link "$LINENO"; then :
24752 rm -f core conftest.err conftest.$ac_objext \
24753 conftest$ac_exeext conftest.$ac_ext
24755 if test "$tst_api" = "unknown"; then
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24760 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
24762 # include <limits.h>
24764 # include <assert.h>
24766 #undef SSL_CTX_set_purpose
24770 char SSL_CTX_set_purpose ();
24771 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
24777 return SSL_CTX_set_purpose ();
24783 if ac_fn_c_try_link "$LINENO"; then :
24788 rm -f core conftest.err conftest.$ac_objext \
24789 conftest$ac_exeext conftest.$ac_ext
24791 if test "$tst_api" = "unknown"; then
24792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24793 /* end confdefs.h. */
24796 #define OBJ_obj2txt innocuous_OBJ_obj2txt
24798 # include <limits.h>
24800 # include <assert.h>
24806 char OBJ_obj2txt ();
24807 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
24813 return OBJ_obj2txt ();
24819 if ac_fn_c_try_link "$LINENO"; then :
24824 rm -f core conftest.err conftest.$ac_objext \
24825 conftest$ac_exeext conftest.$ac_ext
24827 if test "$tst_api" = "unknown"; then
24828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24829 /* end confdefs.h. */
24832 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
24834 # include <limits.h>
24836 # include <assert.h>
24838 #undef SSL_get_verify_depth
24842 char SSL_get_verify_depth ();
24843 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
24849 return SSL_get_verify_depth ();
24855 if ac_fn_c_try_link "$LINENO"; then :
24860 rm -f core conftest.err conftest.$ac_objext \
24861 conftest$ac_exeext conftest.$ac_ext
24863 if test "$tst_api" = "unknown"; then
24864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24865 /* end confdefs.h. */
24868 #define SSL_library_init innocuous_SSL_library_init
24870 # include <limits.h>
24872 # include <assert.h>
24874 #undef SSL_library_init
24878 char SSL_library_init ();
24879 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
24885 return SSL_library_init ();
24891 if ac_fn_c_try_link "$LINENO"; then :
24896 rm -f core conftest.err conftest.$ac_objext \
24897 conftest$ac_exeext conftest.$ac_ext
24899 if test "$tst_api" = "unknown"; then
24900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901 /* end confdefs.h. */
24904 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
24906 # include <limits.h>
24908 # include <assert.h>
24910 #undef SSL_CTX_set_cipher_list
24914 char SSL_CTX_set_cipher_list ();
24915 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
24921 return SSL_CTX_set_cipher_list ();
24927 if ac_fn_c_try_link "$LINENO"; then :
24932 rm -f core conftest.err conftest.$ac_objext \
24933 conftest$ac_exeext conftest.$ac_ext
24936 0x111) tst_show="1.1.1" ;;
24937 0x110) tst_show="1.1.0" ;;
24938 0x102) tst_show="1.0.2" ;;
24939 0x101) tst_show="1.0.1" ;;
24940 0x100) tst_show="1.0.0" ;;
24941 0x099) tst_show="0.9.9" ;;
24942 0x098) tst_show="0.9.8" ;;
24943 0x097) tst_show="0.9.7" ;;
24944 0x096) tst_show="0.9.6" ;;
24945 0x095) tst_show="0.9.5" ;;
24946 0x094) tst_show="0.9.4" ;;
24947 0x093) tst_show="0.9.3" ;;
24948 0x092) tst_show="0.9.2" ;;
24949 0x091) tst_show="0.9.1" ;;
24950 *) tst_show="unknown" ;;
24952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
24953 $as_echo "$tst_show" >&6; }
24955 curl_openssl_api_library=$tst_api
24960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
24961 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
24962 if test "$curl_openssl_api_headers" = "unknown" ||
24963 test "$curl_openssl_api_library" = "unknown"; then
24965 tst_warns="Can not compare OpenSSL headers and library versions."
24966 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
24968 tst_warns="OpenSSL headers and library versions do not match."
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
24971 $as_echo "$tst_match" >&6; }
24972 if test "$tst_match" != "yes"; then
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
24974 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
24977 check_for_ca_bundle=1
24980 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24983 if test X"$OPT_SSL" != Xoff &&
24984 test X"$OPT_SSL" != Xno &&
24985 test "$OPENSSL_ENABLED" != "1"; then
24986 { $as_echo "$as_me:${as_lineno-$LINENO}: OPT_SSL: $OPT_SSL" >&5
24987 $as_echo "$as_me: OPT_SSL: $OPT_SSL" >&6;}
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
24989 $as_echo "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
24990 as_fn_error $? "--with-ssl was given but OpenSSL could not be detected" "$LINENO" 5
24994 if test X"$OPENSSL_ENABLED" = X"1"; then
24996 # Check whether --with-egd-socket was given.
24997 if test "${with_egd_socket+set}" = set; then :
24998 withval=$with_egd_socket; EGD_SOCKET="$withval"
25002 if test -n "$EGD_SOCKET" ; then
25004 cat >>confdefs.h <<_ACEOF
25005 #define EGD_SOCKET "$EGD_SOCKET"
25011 # Check whether --with-random was given.
25012 if test "${with_random+set}" = set; then :
25013 withval=$with_random; RANDOM_FILE="$withval"
25016 if test x$cross_compiling != xyes; then
25017 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
25018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
25019 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
25020 if eval \${$as_ac_File+:} false; then :
25021 $as_echo_n "(cached) " >&6
25023 test "$cross_compiling" = yes &&
25024 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
25025 if test -r ""/dev/urandom""; then
25026 eval "$as_ac_File=yes"
25028 eval "$as_ac_File=no"
25031 eval ac_res=\$$as_ac_File
25032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
25033 $as_echo "$ac_res" >&6; }
25034 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
25035 RANDOM_FILE="/dev/urandom"
25039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
25040 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
25046 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
25049 cat >>confdefs.h <<_ACEOF
25050 #define RANDOM_FILE "$RANDOM_FILE"
25056 if test "$OPENSSL_ENABLED" = "1"; then
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
25058 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
25059 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
25060 $as_echo_n "(cached) " >&6
25062 ac_check_lib_save_LIBS=$LIBS
25063 LIBS="-lcrypto $LIBS"
25064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25065 /* end confdefs.h. */
25071 char SRP_Calc_client_key ();
25074 return SRP_Calc_client_key ();
25079 if ac_fn_c_try_link "$LINENO"; then :
25080 ac_cv_lib_crypto_SRP_Calc_client_key=yes
25082 ac_cv_lib_crypto_SRP_Calc_client_key=no
25084 rm -f core conftest.err conftest.$ac_objext \
25085 conftest$ac_exeext conftest.$ac_ext
25086 LIBS=$ac_check_lib_save_LIBS
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
25089 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
25090 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
25093 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
25102 if test X"$OPENSSL_ENABLED" = X"1"; then
25103 # Check whether --enable-openssl-auto-load-config was given.
25104 if test "${enable_openssl_auto_load_config+set}" = set; then :
25105 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
25107 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
25109 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
25121 # Check whether --with-gnutls was given.
25122 if test "${with_gnutls+set}" = set; then :
25123 withval=$with_gnutls; OPT_GNUTLS=$withval
25127 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
25130 if test X"$OPT_GNUTLS" != Xno; then
25138 if test "x$OPT_GNUTLS" = "xyes"; then
25140 if test -n "$PKG_CONFIG"; then
25141 PKGCONFIG="$PKG_CONFIG"
25143 if test -n "$ac_tool_prefix"; then
25144 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25145 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25147 $as_echo_n "checking for $ac_word... " >&6; }
25148 if ${ac_cv_path_PKGCONFIG+:} false; then :
25149 $as_echo_n "(cached) " >&6
25153 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25157 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25158 for as_dir in $as_dummy
25161 test -z "$as_dir" && as_dir=.
25162 for ac_exec_ext in '' $ac_executable_extensions; do
25163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25164 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25175 PKGCONFIG=$ac_cv_path_PKGCONFIG
25176 if test -n "$PKGCONFIG"; then
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25178 $as_echo "$PKGCONFIG" >&6; }
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25181 $as_echo "no" >&6; }
25186 if test -z "$ac_cv_path_PKGCONFIG"; then
25187 ac_pt_PKGCONFIG=$PKGCONFIG
25188 # Extract the first word of "pkg-config", so it can be a program name with args.
25189 set dummy pkg-config; ac_word=$2
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25191 $as_echo_n "checking for $ac_word... " >&6; }
25192 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25193 $as_echo_n "(cached) " >&6
25195 case $ac_pt_PKGCONFIG in
25197 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25201 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25202 for as_dir in $as_dummy
25205 test -z "$as_dir" && as_dir=.
25206 for ac_exec_ext in '' $ac_executable_extensions; do
25207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25208 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25219 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25220 if test -n "$ac_pt_PKGCONFIG"; then
25221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25222 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25225 $as_echo "no" >&6; }
25228 if test "x$ac_pt_PKGCONFIG" = x; then
25231 case $cross_compiling:$ac_tool_warned in
25233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25235 ac_tool_warned=yes ;;
25237 PKGCONFIG=$ac_pt_PKGCONFIG
25240 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25245 if test "x$PKGCONFIG" != "xno"; then
25246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
25247 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
25249 if test -n ""; then
25250 PKG_CONFIG_LIBDIR=""
25251 export PKG_CONFIG_LIBDIR
25253 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
25255 if test -z "$itexists"; then
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25258 $as_echo "no" >&6; }
25260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25261 $as_echo "found" >&6; }
25266 if test "$PKGCONFIG" != "no" ; then
25267 addlib=`$PKGCONFIG --libs-only-l gnutls`
25268 addld=`$PKGCONFIG --libs-only-L gnutls`
25269 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
25270 version=`$PKGCONFIG --modversion gnutls`
25271 gtlslib=`echo $addld | $SED -e 's/^-L//'`
25273 check=`libgnutls-config --version 2>/dev/null`
25274 if test -n "$check"; then
25275 addlib=`libgnutls-config --libs`
25276 addcflags=`libgnutls-config --cflags`
25277 version=`libgnutls-config --version`
25278 gtlslib=`libgnutls-config --prefix`/lib$libsuff
25282 cfg=$OPT_GNUTLS/bin/libgnutls-config
25283 check=`$cfg --version 2>/dev/null`
25284 if test -n "$check"; then
25285 addlib=`$cfg --libs`
25286 addcflags=`$cfg --cflags`
25287 version=`$cfg --version`
25288 gtlslib=`$cfg --prefix`/lib$libsuff
25291 addld=-L$OPT_GNUTLS/lib$libsuff
25292 addcflags=-I$OPT_GNUTLS/include
25293 version="" # we just don't know
25294 gtlslib=$OPT_GNUTLS/lib$libsuff
25298 if test -z "$version"; then
25302 if test -n "$addlib"; then
25305 CLEANCPPFLAGS="$CPPFLAGS"
25306 CLEANLDFLAGS="$LDFLAGS"
25308 LIBS="$addlib $LIBS"
25309 LDFLAGS="$LDFLAGS $addld"
25310 if test "$addcflags" != "-I/usr/include"; then
25311 CPPFLAGS="$CPPFLAGS $addcflags"
25314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
25315 $as_echo_n "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
25316 if ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+:} false; then :
25317 $as_echo_n "(cached) " >&6
25319 ac_check_lib_save_LIBS=$LIBS
25320 LIBS="-lgnutls $LIBS"
25321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25322 /* end confdefs.h. */
25328 char gnutls_x509_crt_get_dn2 ();
25331 return gnutls_x509_crt_get_dn2 ();
25336 if ac_fn_c_try_link "$LINENO"; then :
25337 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
25339 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
25341 rm -f core conftest.err conftest.$ac_objext \
25342 conftest$ac_exeext conftest.$ac_ext
25343 LIBS=$ac_check_lib_save_LIBS
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
25346 $as_echo "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
25347 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes; then :
25350 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
25357 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25362 CPPFLAGS="$CLEANCPPFLAGS"
25367 if test "x$USE_GNUTLS" = "xyes"; then
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
25369 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
25370 check_for_ca_bundle=1
25371 if test -n "$gtlslib"; then
25372 if test "x$cross_compiling" != "xyes"; then
25373 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
25374 export CURL_LIBRARY_PATH
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
25376 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
25384 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25388 if test "$GNUTLS_ENABLED" = "1"; then
25390 # First check if we can detect either crypto library via transitive linking
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
25392 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
25393 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
25394 $as_echo_n "(cached) " >&6
25396 ac_check_lib_save_LIBS=$LIBS
25397 LIBS="-lgnutls $LIBS"
25398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25399 /* end confdefs.h. */
25405 char nettle_MD5Init ();
25408 return nettle_MD5Init ();
25413 if ac_fn_c_try_link "$LINENO"; then :
25414 ac_cv_lib_gnutls_nettle_MD5Init=yes
25416 ac_cv_lib_gnutls_nettle_MD5Init=no
25418 rm -f core conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
25420 LIBS=$ac_check_lib_save_LIBS
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
25423 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
25424 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
25425 USE_GNUTLS_NETTLE=1
25428 if test "$USE_GNUTLS_NETTLE" = ""; then
25429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
25430 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
25431 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
25432 $as_echo_n "(cached) " >&6
25434 ac_check_lib_save_LIBS=$LIBS
25435 LIBS="-lgnutls $LIBS"
25436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25437 /* end confdefs.h. */
25443 char gcry_control ();
25446 return gcry_control ();
25451 if ac_fn_c_try_link "$LINENO"; then :
25452 ac_cv_lib_gnutls_gcry_control=yes
25454 ac_cv_lib_gnutls_gcry_control=no
25456 rm -f core conftest.err conftest.$ac_objext \
25457 conftest$ac_exeext conftest.$ac_ext
25458 LIBS=$ac_check_lib_save_LIBS
25460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
25461 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
25462 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
25463 USE_GNUTLS_NETTLE=0
25467 # If not, try linking directly to both of them to see if they are available
25468 if test "$USE_GNUTLS_NETTLE" = ""; then
25469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
25470 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
25471 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
25472 $as_echo_n "(cached) " >&6
25474 ac_check_lib_save_LIBS=$LIBS
25475 LIBS="-lnettle $LIBS"
25476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477 /* end confdefs.h. */
25483 char nettle_MD5Init ();
25486 return nettle_MD5Init ();
25491 if ac_fn_c_try_link "$LINENO"; then :
25492 ac_cv_lib_nettle_nettle_MD5Init=yes
25494 ac_cv_lib_nettle_nettle_MD5Init=no
25496 rm -f core conftest.err conftest.$ac_objext \
25497 conftest$ac_exeext conftest.$ac_ext
25498 LIBS=$ac_check_lib_save_LIBS
25500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
25501 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
25502 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
25503 USE_GNUTLS_NETTLE=1
25507 if test "$USE_GNUTLS_NETTLE" = ""; then
25508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
25509 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
25510 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
25511 $as_echo_n "(cached) " >&6
25513 ac_check_lib_save_LIBS=$LIBS
25514 LIBS="-lgcrypt $LIBS"
25515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25516 /* end confdefs.h. */
25522 char gcry_control ();
25525 return gcry_control ();
25530 if ac_fn_c_try_link "$LINENO"; then :
25531 ac_cv_lib_gcrypt_gcry_control=yes
25533 ac_cv_lib_gcrypt_gcry_control=no
25535 rm -f core conftest.err conftest.$ac_objext \
25536 conftest$ac_exeext conftest.$ac_ext
25537 LIBS=$ac_check_lib_save_LIBS
25539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
25540 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
25541 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
25542 USE_GNUTLS_NETTLE=0
25546 if test "$USE_GNUTLS_NETTLE" = ""; then
25547 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
25549 if test "$USE_GNUTLS_NETTLE" = "1"; then
25551 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
25553 USE_GNUTLS_NETTLE=1
25555 LIBS="-lnettle $LIBS"
25557 LIBS="-lgcrypt $LIBS"
25561 if test "$GNUTLS_ENABLED" = "1"; then
25562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
25563 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
25564 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
25565 $as_echo_n "(cached) " >&6
25567 ac_check_lib_save_LIBS=$LIBS
25568 LIBS="-lgnutls $LIBS"
25569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25570 /* end confdefs.h. */
25576 char gnutls_srp_verifier ();
25579 return gnutls_srp_verifier ();
25584 if ac_fn_c_try_link "$LINENO"; then :
25585 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
25587 ac_cv_lib_gnutls_gnutls_srp_verifier=no
25589 rm -f core conftest.err conftest.$ac_objext \
25590 conftest$ac_exeext conftest.$ac_ext
25591 LIBS=$ac_check_lib_save_LIBS
25593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
25594 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
25595 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
25598 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
25610 _cppflags=$CPPFLAGS
25613 # Check whether --with-mbedtls was given.
25614 if test "${with_mbedtls+set}" = set; then :
25615 withval=$with_mbedtls; OPT_MBEDTLS=$withval
25619 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
25622 if test X"$OPT_MBEDTLS" != Xno; then
25624 if test "$OPT_MBEDTLS" = "yes"; then
25628 if test -z "$OPT_MBEDTLS" ; then
25630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
25631 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
25632 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
25633 $as_echo_n "(cached) " >&6
25635 ac_check_lib_save_LIBS=$LIBS
25636 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
25637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25638 /* end confdefs.h. */
25644 char mbedtls_havege_init ();
25647 return mbedtls_havege_init ();
25652 if ac_fn_c_try_link "$LINENO"; then :
25653 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
25655 ac_cv_lib_mbedtls_mbedtls_havege_init=no
25657 rm -f core conftest.err conftest.$ac_objext \
25658 conftest$ac_exeext conftest.$ac_ext
25659 LIBS=$ac_check_lib_save_LIBS
25661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
25662 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
25663 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
25666 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
25673 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25684 if test "x$USE_MBEDTLS" != "xyes"; then
25685 addld=-L$OPT_MBEDTLS/lib$libsuff
25686 addcflags=-I$OPT_MBEDTLS/include
25687 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
25689 LDFLAGS="$LDFLAGS $addld"
25690 if test "$addcflags" != "-I/usr/include"; then
25691 CPPFLAGS="$CPPFLAGS $addcflags"
25694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
25695 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
25696 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
25697 $as_echo_n "(cached) " >&6
25699 ac_check_lib_save_LIBS=$LIBS
25700 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
25701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25702 /* end confdefs.h. */
25708 char mbedtls_ssl_init ();
25711 return mbedtls_ssl_init ();
25716 if ac_fn_c_try_link "$LINENO"; then :
25717 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
25719 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
25721 rm -f core conftest.err conftest.$ac_objext \
25722 conftest$ac_exeext conftest.$ac_ext
25723 LIBS=$ac_check_lib_save_LIBS
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
25726 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
25727 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
25730 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
25737 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25741 CPPFLAGS=$_cppflags
25748 if test "x$USE_MBEDTLS" = "xyes"; then
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
25750 $as_echo "$as_me: detected mbedTLS" >&6;}
25751 check_for_ca_bundle=1
25753 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
25755 if test -n "$mbedtlslib"; then
25756 if test "x$cross_compiling" != "xyes"; then
25757 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
25758 export CURL_LIBRARY_PATH
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
25760 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
25766 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25772 _cppflags=$CPPFLAGS
25776 # Check whether --with-wolfssl was given.
25777 if test "${with_wolfssl+set}" = set; then :
25778 withval=$with_wolfssl; OPT_WOLFSSL=$withval
25782 case "$OPT_WOLFSSL" in
25787 wolfpkg="$withval/lib/pkgconfig"
25791 if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
25794 if test X"$OPT_WOLFSSL" != Xno; then
25796 if test "$OPT_WOLFSSL" = "yes"; then
25801 if test -n "$PKG_CONFIG"; then
25802 PKGCONFIG="$PKG_CONFIG"
25804 if test -n "$ac_tool_prefix"; then
25805 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25806 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25808 $as_echo_n "checking for $ac_word... " >&6; }
25809 if ${ac_cv_path_PKGCONFIG+:} false; then :
25810 $as_echo_n "(cached) " >&6
25814 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25818 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25819 for as_dir in $as_dummy
25822 test -z "$as_dir" && as_dir=.
25823 for ac_exec_ext in '' $ac_executable_extensions; do
25824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25825 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25826 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25836 PKGCONFIG=$ac_cv_path_PKGCONFIG
25837 if test -n "$PKGCONFIG"; then
25838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25839 $as_echo "$PKGCONFIG" >&6; }
25841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25842 $as_echo "no" >&6; }
25847 if test -z "$ac_cv_path_PKGCONFIG"; then
25848 ac_pt_PKGCONFIG=$PKGCONFIG
25849 # Extract the first word of "pkg-config", so it can be a program name with args.
25850 set dummy pkg-config; ac_word=$2
25851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25852 $as_echo_n "checking for $ac_word... " >&6; }
25853 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25854 $as_echo_n "(cached) " >&6
25856 case $ac_pt_PKGCONFIG in
25858 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25862 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25863 for as_dir in $as_dummy
25866 test -z "$as_dir" && as_dir=.
25867 for ac_exec_ext in '' $ac_executable_extensions; do
25868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25869 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25880 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25881 if test -n "$ac_pt_PKGCONFIG"; then
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25883 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25886 $as_echo "no" >&6; }
25889 if test "x$ac_pt_PKGCONFIG" = x; then
25892 case $cross_compiling:$ac_tool_warned in
25894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25896 ac_tool_warned=yes ;;
25898 PKGCONFIG=$ac_pt_PKGCONFIG
25901 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25906 if test "x$PKGCONFIG" != "xno"; then
25907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
25908 $as_echo_n "checking for wolfssl options with pkg-config... " >&6; }
25910 if test -n "$wolfpkg"; then
25911 PKG_CONFIG_LIBDIR="$wolfpkg"
25912 export PKG_CONFIG_LIBDIR
25914 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
25916 if test -z "$itexists"; then
25918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25919 $as_echo "no" >&6; }
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25922 $as_echo "found" >&6; }
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
25927 $as_echo "$as_me: Check dir $wolfpkg" >&6;}
25932 if test "$PKGCONFIG" != "no" ; then
25934 if test -n "$wolfpkg"; then
25935 PKG_CONFIG_LIBDIR="$wolfpkg"
25936 export PKG_CONFIG_LIBDIR
25939 $PKGCONFIG --libs-only-l wolfssl`
25941 if test -n "$wolfpkg"; then
25942 PKG_CONFIG_LIBDIR="$wolfpkg"
25943 export PKG_CONFIG_LIBDIR
25946 $PKGCONFIG --libs-only-L wolfssl`
25948 if test -n "$wolfpkg"; then
25949 PKG_CONFIG_LIBDIR="$wolfpkg"
25950 export PKG_CONFIG_LIBDIR
25953 $PKGCONFIG --cflags-only-I wolfssl`
25955 if test -n "$wolfpkg"; then
25956 PKG_CONFIG_LIBDIR="$wolfpkg"
25957 export PKG_CONFIG_LIBDIR
25960 $PKGCONFIG --modversion wolfssl`
25961 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
25964 if test -n "$OPT_WOLFSSL"; then
25965 addld=-L$OPT_WOLFSSL/lib$libsuff
25966 addcflags=-I$OPT_WOLFSSL/include
25967 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
25971 if test "x$USE_WOLFSSL" != "xyes"; then
25973 LDFLAGS="$LDFLAGS $addld"
25974 { $as_echo "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
25975 $as_echo "$as_me: Add $addld to LDFLAGS" >&6;}
25976 if test "$addcflags" != "-I/usr/include"; then
25977 CPPFLAGS="$CPPFLAGS $addcflags"
25978 { $as_echo "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
25979 $as_echo "$as_me: Add $addcflags to CPPFLAGS" >&6;}
25982 my_ac_save_LIBS="$LIBS"
25983 LIBS="$addlib $LIBS"
25984 { $as_echo "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
25985 $as_echo "$as_me: Add $addlib to LIBS" >&6;}
25987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
25988 $as_echo_n "checking for wolfSSL_Init in -lwolfssl... " >&6; }
25989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25990 /* end confdefs.h. */
25993 /* These aren't needed for detection and confuse WolfSSL.
25994 They are set up properly later if it is detected. */
25996 #undef SIZEOF_LONG_LONG
25997 #include <wolfssl/ssl.h>
26002 return wolfSSL_Init();
26009 if ac_fn_c_try_link "$LINENO"; then :
26011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26012 $as_echo "yes" >&6; }
26014 $as_echo "#define USE_WOLFSSL 1" >>confdefs.h
26021 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26026 $as_echo "no" >&6; }
26027 CPPFLAGS=$_cppflags
26032 rm -f core conftest.err conftest.$ac_objext \
26033 conftest$ac_exeext conftest.$ac_ext
26034 LIBS="$my_ac_save_LIBS"
26037 if test "x$USE_WOLFSSL" = "xyes"; then
26038 { $as_echo "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
26039 $as_echo "$as_me: detected wolfSSL" >&6;}
26040 check_for_ca_bundle=1
26042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
26043 $as_echo_n "checking size of long long... " >&6; }
26044 if ${ac_cv_sizeof_long_long+:} false; then :
26045 $as_echo_n "(cached) " >&6
26047 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
26048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26049 /* end confdefs.h. */
26051 #include <sys/types.h>
26056 switch (0) case 0: case (sizeof (long long) == $ac_size):;
26061 if ac_fn_c_try_compile "$LINENO"; then :
26062 ac_cv_sizeof_long_long=$ac_size
26064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26065 if test x$ac_cv_sizeof_long_long != x ; then break; fi
26070 if test x$ac_cv_sizeof_long_long = x ; then
26071 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
26074 $as_echo "$ac_cv_sizeof_long_long" >&6; }
26076 cat >>confdefs.h <<_ACEOF
26077 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
26082 LIBS="$addlib -lm $LIBS"
26084 for ac_func in wolfSSLv3_client_method \
26085 wolfSSL_get_peer_certificate \
26088 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
26089 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
26090 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
26091 cat >>confdefs.h <<_ACEOF
26092 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
26099 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
26100 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes; then :
26103 $as_echo "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
26105 if test -n "$addcflags"; then
26106 for f in $addcflags; do
26107 CPPFLAGS="$f/wolfssl $CPPFLAGS"
26108 { $as_echo "$as_me:${as_lineno-$LINENO}: Add $f/wolfssl to CPPFLAGS" >&5
26109 $as_echo "$as_me: Add $f/wolfssl to CPPFLAGS" >&6;}
26113 CPPFLAGS="-I$includedir/wolfssl $CPPFLAGS"
26114 { $as_echo "$as_me:${as_lineno-$LINENO}: Add $includedir/wolfssl to CPPFLAGS" >&5
26115 $as_echo "$as_me: Add $includedir/wolfssl to CPPFLAGS" >&6;}
26123 if test -n "$wolfssllibpath"; then
26124 if test "x$cross_compiling" != "xyes"; then
26125 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
26126 export CURL_LIBRARY_PATH
26127 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
26128 $as_echo "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
26135 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26141 _cppflags=$CPPFLAGS
26144 # Check whether --with-mesalink was given.
26145 if test "${with_mesalink+set}" = set; then :
26146 withval=$with_mesalink; OPT_MESALINK=$withval
26150 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
26153 if test X"$OPT_MESALINK" != Xno; then
26155 if test "$OPT_MESALINK" = "yes"; then
26159 if test -z "$OPT_MESALINK" ; then
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
26162 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
26163 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
26164 $as_echo_n "(cached) " >&6
26166 ac_check_lib_save_LIBS=$LIBS
26167 LIBS="-lmesalink $LIBS"
26168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26169 /* end confdefs.h. */
26175 char mesalink_library_init ();
26178 return mesalink_library_init ();
26183 if ac_fn_c_try_link "$LINENO"; then :
26184 ac_cv_lib_mesalink_mesalink_library_init=yes
26186 ac_cv_lib_mesalink_mesalink_library_init=no
26188 rm -f core conftest.err conftest.$ac_objext \
26189 conftest$ac_exeext conftest.$ac_ext
26190 LIBS=$ac_check_lib_save_LIBS
26192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
26193 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
26194 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
26197 $as_echo "#define USE_MESALINK 1" >>confdefs.h
26204 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26215 if test "x$USE_MESALINK" != "xyes"; then
26216 addld=-L$OPT_MESALINK/lib$libsuff
26217 addcflags=-I$OPT_MESALINK/include
26218 mesalinklib=$OPT_MESALINK/lib$libsuff
26220 LDFLAGS="$LDFLAGS $addld"
26221 if test "$addcflags" != "-I/usr/include"; then
26222 CPPFLAGS="$CPPFLAGS $addcflags"
26225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
26226 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
26227 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
26228 $as_echo_n "(cached) " >&6
26230 ac_check_lib_save_LIBS=$LIBS
26231 LIBS="-lmesalink $LIBS"
26232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26233 /* end confdefs.h. */
26239 char mesalink_library_init ();
26242 return mesalink_library_init ();
26247 if ac_fn_c_try_link "$LINENO"; then :
26248 ac_cv_lib_mesalink_mesalink_library_init=yes
26250 ac_cv_lib_mesalink_mesalink_library_init=no
26252 rm -f core conftest.err conftest.$ac_objext \
26253 conftest$ac_exeext conftest.$ac_ext
26254 LIBS=$ac_check_lib_save_LIBS
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
26257 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
26258 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
26261 $as_echo "#define USE_MESALINK 1" >>confdefs.h
26268 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26272 CPPFLAGS=$_cppflags
26279 if test "x$USE_MESALINK" = "xyes"; then
26280 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
26281 $as_echo "$as_me: detected MesaLink" >&6;}
26283 LIBS="-lmesalink $LIBS"
26285 if test -n "$mesalinklib"; then
26286 if test "x$cross_compiling" != "xyes"; then
26287 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
26288 export LD_LIBRARY_PATH
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
26290 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
26296 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26302 _cppflags=$CPPFLAGS
26305 # Check whether --with-bearssl was given.
26306 if test "${with_bearssl+set}" = set; then :
26307 withval=$with_bearssl; OPT_BEARSSL=$withval
26311 if test -z "$ssl_backends" -o "x$OPT_BEARSSL" != xno; then
26314 if test X"$OPT_BEARSSL" != Xno; then
26316 if test "$OPT_BEARSSL" = "yes"; then
26320 if test -z "$OPT_BEARSSL" ; then
26322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
26323 $as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
26324 if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
26325 $as_echo_n "(cached) " >&6
26327 ac_check_lib_save_LIBS=$LIBS
26328 LIBS="-lbearssl -lbearssl $LIBS"
26329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26330 /* end confdefs.h. */
26336 char br_ssl_client_init_full ();
26339 return br_ssl_client_init_full ();
26344 if ac_fn_c_try_link "$LINENO"; then :
26345 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
26347 ac_cv_lib_bearssl_br_ssl_client_init_full=no
26349 rm -f core conftest.err conftest.$ac_objext \
26350 conftest$ac_exeext conftest.$ac_ext
26351 LIBS=$ac_check_lib_save_LIBS
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
26354 $as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
26355 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
26358 $as_echo "#define USE_BEARSSL 1" >>confdefs.h
26365 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26376 if test "x$USE_BEARSSL" != "xyes"; then
26377 addld=-L$OPT_BEARSSL/lib$libsuff
26378 addcflags=-I$OPT_BEARSSL/include
26379 bearssllib=$OPT_BEARSSL/lib$libsuff
26381 LDFLAGS="$LDFLAGS $addld"
26382 if test "$addcflags" != "-I/usr/include"; then
26383 CPPFLAGS="$CPPFLAGS $addcflags"
26386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
26387 $as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
26388 if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
26389 $as_echo_n "(cached) " >&6
26391 ac_check_lib_save_LIBS=$LIBS
26392 LIBS="-lbearssl -lbearssl $LIBS"
26393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26394 /* end confdefs.h. */
26400 char br_ssl_client_init_full ();
26403 return br_ssl_client_init_full ();
26408 if ac_fn_c_try_link "$LINENO"; then :
26409 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
26411 ac_cv_lib_bearssl_br_ssl_client_init_full=no
26413 rm -f core conftest.err conftest.$ac_objext \
26414 conftest$ac_exeext conftest.$ac_ext
26415 LIBS=$ac_check_lib_save_LIBS
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
26418 $as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
26419 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
26422 $as_echo "#define USE_BEARSSL 1" >>confdefs.h
26429 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26433 CPPFLAGS=$_cppflags
26440 if test "x$USE_BEARSSL" = "xyes"; then
26441 { $as_echo "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
26442 $as_echo "$as_me: detected BearSSL" >&6;}
26443 check_for_ca_bundle=1
26445 LIBS="-lbearssl $LIBS"
26447 if test -n "$bearssllib"; then
26448 if test "x$cross_compiling" != "xyes"; then
26449 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
26450 export CURL_LIBRARY_PATH
26451 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
26452 $as_echo "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
26458 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26465 # Check whether --with-nss was given.
26466 if test "${with_nss+set}" = set; then :
26467 withval=$with_nss; OPT_NSS=$withval
26471 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
26474 if test X"$OPT_NSS" != Xno; then
26482 if test "x$OPT_NSS" = "xyes"; then
26485 if test -n "$PKG_CONFIG"; then
26486 PKGCONFIG="$PKG_CONFIG"
26488 if test -n "$ac_tool_prefix"; then
26489 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26490 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26492 $as_echo_n "checking for $ac_word... " >&6; }
26493 if ${ac_cv_path_PKGCONFIG+:} false; then :
26494 $as_echo_n "(cached) " >&6
26498 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26502 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26503 for as_dir in $as_dummy
26506 test -z "$as_dir" && as_dir=.
26507 for ac_exec_ext in '' $ac_executable_extensions; do
26508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26509 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26520 PKGCONFIG=$ac_cv_path_PKGCONFIG
26521 if test -n "$PKGCONFIG"; then
26522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26523 $as_echo "$PKGCONFIG" >&6; }
26525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26526 $as_echo "no" >&6; }
26531 if test -z "$ac_cv_path_PKGCONFIG"; then
26532 ac_pt_PKGCONFIG=$PKGCONFIG
26533 # Extract the first word of "pkg-config", so it can be a program name with args.
26534 set dummy pkg-config; ac_word=$2
26535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26536 $as_echo_n "checking for $ac_word... " >&6; }
26537 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26538 $as_echo_n "(cached) " >&6
26540 case $ac_pt_PKGCONFIG in
26542 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26546 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26547 for as_dir in $as_dummy
26550 test -z "$as_dir" && as_dir=.
26551 for ac_exec_ext in '' $ac_executable_extensions; do
26552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26553 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26564 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26565 if test -n "$ac_pt_PKGCONFIG"; then
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26567 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26570 $as_echo "no" >&6; }
26573 if test "x$ac_pt_PKGCONFIG" = x; then
26576 case $cross_compiling:$ac_tool_warned in
26578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26580 ac_tool_warned=yes ;;
26582 PKGCONFIG=$ac_pt_PKGCONFIG
26585 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26590 if test "x$PKGCONFIG" != "xno"; then
26591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
26592 $as_echo_n "checking for nss options with pkg-config... " >&6; }
26594 if test -n ""; then
26595 PKG_CONFIG_LIBDIR=""
26596 export PKG_CONFIG_LIBDIR
26598 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
26600 if test -z "$itexists"; then
26602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26603 $as_echo "no" >&6; }
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26606 $as_echo "found" >&6; }
26611 if test "$PKGCONFIG" != "no" ; then
26612 addlib=`$PKGCONFIG --libs nss`
26613 addcflags=`$PKGCONFIG --cflags nss`
26614 version=`$PKGCONFIG --modversion nss`
26615 nssprefix=`$PKGCONFIG --variable=prefix nss`
26618 check=`nss-config --version 2>/dev/null`
26619 if test -n "$check"; then
26620 addlib=`nss-config --libs`
26621 addcflags=`nss-config --cflags`
26622 version=`nss-config --version`
26623 nssprefix=`nss-config --prefix`
26631 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
26632 if test -f "$NSS_PCDIR/nss.pc"; then
26634 if test -n "$PKG_CONFIG"; then
26635 PKGCONFIG="$PKG_CONFIG"
26637 if test -n "$ac_tool_prefix"; then
26638 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26639 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26641 $as_echo_n "checking for $ac_word... " >&6; }
26642 if ${ac_cv_path_PKGCONFIG+:} false; then :
26643 $as_echo_n "(cached) " >&6
26647 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26651 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26652 for as_dir in $as_dummy
26655 test -z "$as_dir" && as_dir=.
26656 for ac_exec_ext in '' $ac_executable_extensions; do
26657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26658 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26669 PKGCONFIG=$ac_cv_path_PKGCONFIG
26670 if test -n "$PKGCONFIG"; then
26671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26672 $as_echo "$PKGCONFIG" >&6; }
26674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26675 $as_echo "no" >&6; }
26680 if test -z "$ac_cv_path_PKGCONFIG"; then
26681 ac_pt_PKGCONFIG=$PKGCONFIG
26682 # Extract the first word of "pkg-config", so it can be a program name with args.
26683 set dummy pkg-config; ac_word=$2
26684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26685 $as_echo_n "checking for $ac_word... " >&6; }
26686 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26687 $as_echo_n "(cached) " >&6
26689 case $ac_pt_PKGCONFIG in
26691 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26695 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26696 for as_dir in $as_dummy
26699 test -z "$as_dir" && as_dir=.
26700 for ac_exec_ext in '' $ac_executable_extensions; do
26701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26702 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26713 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26714 if test -n "$ac_pt_PKGCONFIG"; then
26715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26716 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26719 $as_echo "no" >&6; }
26722 if test "x$ac_pt_PKGCONFIG" = x; then
26725 case $cross_compiling:$ac_tool_warned in
26727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26728 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26729 ac_tool_warned=yes ;;
26731 PKGCONFIG=$ac_pt_PKGCONFIG
26734 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26739 if test "x$PKGCONFIG" != "xno"; then
26740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
26741 $as_echo_n "checking for nss options with pkg-config... " >&6; }
26743 if test -n "$NSS_PCDIR"; then
26744 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26745 export PKG_CONFIG_LIBDIR
26747 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
26749 if test -z "$itexists"; then
26751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26752 $as_echo "no" >&6; }
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26755 $as_echo "found" >&6; }
26759 if test "$PKGCONFIG" != "no" ; then
26761 if test -n "$NSS_PCDIR"; then
26762 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26763 export PKG_CONFIG_LIBDIR
26765 $PKGCONFIG --libs-only-L nss`
26767 if test -n "$NSS_PCDIR"; then
26768 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26769 export PKG_CONFIG_LIBDIR
26771 $PKGCONFIG --libs-only-l nss`
26773 if test -n "$NSS_PCDIR"; then
26774 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26775 export PKG_CONFIG_LIBDIR
26777 $PKGCONFIG --cflags nss`
26779 if test -n "$NSS_PCDIR"; then
26780 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26781 export PKG_CONFIG_LIBDIR
26783 $PKGCONFIG --modversion nss`
26785 if test -n "$NSS_PCDIR"; then
26786 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
26787 export PKG_CONFIG_LIBDIR
26789 $PKGCONFIG --variable=prefix nss`
26794 if test -z "$addlib"; then
26795 # Without pkg-config, we'll kludge in some defaults
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
26797 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
26798 addld="-L$OPT_NSS/lib"
26799 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
26800 addcflags="-I$OPT_NSS/include"
26805 CLEANLDFLAGS="$LDFLAGS"
26807 CLEANCPPFLAGS="$CPPFLAGS"
26809 LDFLAGS="$addld $LDFLAGS"
26810 LIBS="$addlib $LIBS"
26811 if test "$addcflags" != "-I/usr/include"; then
26812 CPPFLAGS="$CPPFLAGS $addcflags"
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
26816 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
26817 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
26818 $as_echo_n "(cached) " >&6
26820 ac_check_lib_save_LIBS=$LIBS
26821 LIBS="-lnss3 $LIBS"
26822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26823 /* end confdefs.h. */
26829 char SSL_VersionRangeSet ();
26832 return SSL_VersionRangeSet ();
26837 if ac_fn_c_try_link "$LINENO"; then :
26838 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
26840 ac_cv_lib_nss3_SSL_VersionRangeSet=no
26842 rm -f core conftest.err conftest.$ac_objext \
26843 conftest$ac_exeext conftest.$ac_ext
26844 LIBS=$ac_check_lib_save_LIBS
26846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
26847 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
26848 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
26851 $as_echo "#define USE_NSS 1" >>confdefs.h
26858 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26862 LDFLAGS="$CLEANLDFLAGS"
26864 CPPFLAGS="$CLEANCPPFLAGS"
26869 if test "x$USE_NSS" = "xyes"; then
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
26871 $as_echo "$as_me: detected NSS version $version" >&6;}
26873 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
26874 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
26877 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
26886 if test "x$cross_compiling" != "xyes"; then
26887 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
26888 export CURL_LIBRARY_PATH
26889 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
26890 $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
26895 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26898 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED" in
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
26901 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
26902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl or --with-bearssl to address this." >&5
26903 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-mesalink, --with-amissl or --with-bearssl to address this." >&2;}
26906 # one SSL backend is enabled
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
26910 $as_echo "$as_me: built with one SSL backend" >&6;}
26913 # more than one SSL backend is enabled
26917 CURL_WITH_MULTI_SSL="1"
26919 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
26921 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
26922 $as_echo "$as_me: built with multiple SSL backends" >&6;}
26926 if test -n "$ssl_backends"; then
26927 curl_ssl_msg="enabled ($ssl_backends)"
26930 if test no = "$VALID_DEFAULT_SSL_BACKEND"
26932 if test -n "$SSL_ENABLED"
26934 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
26936 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
26938 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
26941 cat >>confdefs.h <<_ACEOF
26942 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
26948 if test -n "$check_for_ca_bundle"; then
26951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
26952 $as_echo_n "checking default CA cert bundle/path... " >&6; }
26955 # Check whether --with-ca-bundle was given.
26956 if test "${with_ca_bundle+set}" = set; then :
26957 withval=$with_ca_bundle;
26959 if test "x$want_ca" = "xyes"; then
26960 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
26968 # Check whether --with-ca-path was given.
26969 if test "${with_ca_path+set}" = set; then :
26970 withval=$with_ca_path;
26971 want_capath="$withval"
26972 if test "x$want_capath" = "xyes"; then
26973 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
26977 want_capath="unset"
26981 ca_warning=" (warning: certs not found)"
26982 capath_warning=" (warning: certs not found)"
26985 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
26986 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
26988 capath="$want_capath"
26989 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
26992 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
26993 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
26994 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
26996 capath="$want_capath"
27001 if test "x$cross_compiling" != "xyes"; then
27002 if test "x$want_ca" = "xunset"; then
27003 if test "x$prefix" != xNONE; then
27004 cac="${prefix}/share/curl/curl-ca-bundle.crt"
27006 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
27009 for a in /etc/ssl/certs/ca-certificates.crt \
27010 /etc/pki/tls/certs/ca-bundle.crt \
27011 /usr/share/ssl/certs/ca-bundle.crt \
27012 /usr/local/share/certs/ca-root-nss.crt \
27013 /etc/ssl/cert.pem \
27015 if test -f "$a"; then
27021 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
27022 "x$OPENSSL_ENABLED" = "x1"; then
27023 check_capath="/etc/ssl/certs/"
27026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
27027 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
27031 if test "x$ca" = "xno" || test -f "$ca"; then
27035 if test "x$capath" != "xno"; then
27036 check_capath="$capath"
27039 if test ! -z "$check_capath"; then
27040 for a in "$check_capath"; do
27041 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
27042 if test "x$capath" = "xno"; then
27051 if test "x$capath" = "xno"; then
27055 if test "x$ca" != "xno"; then
27056 CURL_CA_BUNDLE='"'$ca'"'
27058 cat >>confdefs.h <<_ACEOF
27059 #define CURL_CA_BUNDLE "$ca"
27063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
27064 $as_echo "$ca" >&6; }
27066 if test "x$capath" != "xno"; then
27067 CURL_CA_PATH="\"$capath\""
27069 cat >>confdefs.h <<_ACEOF
27070 #define CURL_CA_PATH "$capath"
27073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
27074 $as_echo "$capath (capath)" >&6; }
27076 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
27077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27078 $as_echo "no" >&6; }
27081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
27082 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
27084 # Check whether --with-ca-fallback was given.
27085 if test "${with_ca_fallback+set}" = set; then :
27086 withval=$with_ca_fallback;
27087 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
27088 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
27092 with_ca_fallback="no"
27095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
27096 $as_echo "$with_ca_fallback" >&6; }
27097 if test "x$with_ca_fallback" = "xyes"; then
27098 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
27099 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
27102 cat >>confdefs.h <<_ACEOF
27103 #define CURL_CA_FALLBACK 1
27112 # Check whether --with-libpsl was given.
27113 if test "${with_libpsl+set}" = set; then :
27114 withval=$with_libpsl; with_libpsl=$withval
27119 if test $with_libpsl != "no"; then
27120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
27121 $as_echo_n "checking for library containing psl_builtin... " >&6; }
27122 if ${ac_cv_search_psl_builtin+:} false; then :
27123 $as_echo_n "(cached) " >&6
27125 ac_func_search_save_LIBS=$LIBS
27126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27127 /* end confdefs.h. */
27133 char psl_builtin ();
27136 return psl_builtin ();
27141 for ac_lib in '' psl; do
27142 if test -z "$ac_lib"; then
27143 ac_res="none required"
27146 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
27148 if ac_fn_c_try_link "$LINENO"; then :
27149 ac_cv_search_psl_builtin=$ac_res
27151 rm -f core conftest.err conftest.$ac_objext \
27153 if ${ac_cv_search_psl_builtin+:} false; then :
27157 if ${ac_cv_search_psl_builtin+:} false; then :
27160 ac_cv_search_psl_builtin=no
27162 rm conftest.$ac_ext
27163 LIBS=$ac_func_search_save_LIBS
27165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
27166 $as_echo "$ac_cv_search_psl_builtin" >&6; }
27167 ac_res=$ac_cv_search_psl_builtin
27168 if test "$ac_res" != no; then :
27169 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
27170 curl_psl_msg="enabled";
27172 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
27176 curl_psl_msg="no (libpsl not found)";
27177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
27178 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
27184 if test "$curl_psl_msg" = "enabled"; then
27186 USE_LIBPSL_FALSE='#'
27188 USE_LIBPSL_TRUE='#'
27197 # Check whether --with-libmetalink was given.
27198 if test "${with_libmetalink+set}" = set; then :
27199 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
27203 if test X"$OPT_LIBMETALINK" != Xno; then
27212 if test "x$OPT_LIBMETALINK" = "xyes"; then
27215 if test -n "$PKG_CONFIG"; then
27216 PKGCONFIG="$PKG_CONFIG"
27218 if test -n "$ac_tool_prefix"; then
27219 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27220 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27222 $as_echo_n "checking for $ac_word... " >&6; }
27223 if ${ac_cv_path_PKGCONFIG+:} false; then :
27224 $as_echo_n "(cached) " >&6
27228 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27232 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27233 for as_dir in $as_dummy
27236 test -z "$as_dir" && as_dir=.
27237 for ac_exec_ext in '' $ac_executable_extensions; do
27238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27239 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27250 PKGCONFIG=$ac_cv_path_PKGCONFIG
27251 if test -n "$PKGCONFIG"; then
27252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27253 $as_echo "$PKGCONFIG" >&6; }
27255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27256 $as_echo "no" >&6; }
27261 if test -z "$ac_cv_path_PKGCONFIG"; then
27262 ac_pt_PKGCONFIG=$PKGCONFIG
27263 # Extract the first word of "pkg-config", so it can be a program name with args.
27264 set dummy pkg-config; ac_word=$2
27265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27266 $as_echo_n "checking for $ac_word... " >&6; }
27267 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27268 $as_echo_n "(cached) " >&6
27270 case $ac_pt_PKGCONFIG in
27272 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27276 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27277 for as_dir in $as_dummy
27280 test -z "$as_dir" && as_dir=.
27281 for ac_exec_ext in '' $ac_executable_extensions; do
27282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27283 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27294 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27295 if test -n "$ac_pt_PKGCONFIG"; then
27296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27297 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27300 $as_echo "no" >&6; }
27303 if test "x$ac_pt_PKGCONFIG" = x; then
27306 case $cross_compiling:$ac_tool_warned in
27308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27310 ac_tool_warned=yes ;;
27312 PKGCONFIG=$ac_pt_PKGCONFIG
27315 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27320 if test "x$PKGCONFIG" != "xno"; then
27321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
27322 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
27324 if test -n ""; then
27325 PKG_CONFIG_LIBDIR=""
27326 export PKG_CONFIG_LIBDIR
27328 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
27330 if test -z "$itexists"; then
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27333 $as_echo "no" >&6; }
27335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27336 $as_echo "found" >&6; }
27341 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
27342 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
27343 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
27344 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
27347 if test "$PKGTEST" = "yes"; then
27349 if test -n "$PKG_CONFIG"; then
27350 PKGCONFIG="$PKG_CONFIG"
27352 if test -n "$ac_tool_prefix"; then
27353 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27354 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27356 $as_echo_n "checking for $ac_word... " >&6; }
27357 if ${ac_cv_path_PKGCONFIG+:} false; then :
27358 $as_echo_n "(cached) " >&6
27362 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27366 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27367 for as_dir in $as_dummy
27370 test -z "$as_dir" && as_dir=.
27371 for ac_exec_ext in '' $ac_executable_extensions; do
27372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27373 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27384 PKGCONFIG=$ac_cv_path_PKGCONFIG
27385 if test -n "$PKGCONFIG"; then
27386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27387 $as_echo "$PKGCONFIG" >&6; }
27389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27390 $as_echo "no" >&6; }
27395 if test -z "$ac_cv_path_PKGCONFIG"; then
27396 ac_pt_PKGCONFIG=$PKGCONFIG
27397 # Extract the first word of "pkg-config", so it can be a program name with args.
27398 set dummy pkg-config; ac_word=$2
27399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27400 $as_echo_n "checking for $ac_word... " >&6; }
27401 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27402 $as_echo_n "(cached) " >&6
27404 case $ac_pt_PKGCONFIG in
27406 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27410 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27411 for as_dir in $as_dummy
27414 test -z "$as_dir" && as_dir=.
27415 for ac_exec_ext in '' $ac_executable_extensions; do
27416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27417 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27428 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27429 if test -n "$ac_pt_PKGCONFIG"; then
27430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27431 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434 $as_echo "no" >&6; }
27437 if test "x$ac_pt_PKGCONFIG" = x; then
27440 case $cross_compiling:$ac_tool_warned in
27442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27444 ac_tool_warned=yes ;;
27446 PKGCONFIG=$ac_pt_PKGCONFIG
27449 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27454 if test "x$PKGCONFIG" != "xno"; then
27455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
27456 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
27458 if test -n "$LIBMETALINK_PCDIR"; then
27459 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27460 export PKG_CONFIG_LIBDIR
27462 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
27464 if test -z "$itexists"; then
27466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27467 $as_echo "no" >&6; }
27469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27470 $as_echo "found" >&6; }
27476 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
27478 if test -n "$LIBMETALINK_PCDIR"; then
27479 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27480 export PKG_CONFIG_LIBDIR
27482 $PKGCONFIG --libs-only-l libmetalink`
27484 if test -n "$LIBMETALINK_PCDIR"; then
27485 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27486 export PKG_CONFIG_LIBDIR
27488 $PKGCONFIG --libs-only-L libmetalink`
27490 if test -n "$LIBMETALINK_PCDIR"; then
27491 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27492 export PKG_CONFIG_LIBDIR
27494 $PKGCONFIG --cflags-only-I libmetalink`
27496 if test -n "$LIBMETALINK_PCDIR"; then
27497 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
27498 export PKG_CONFIG_LIBDIR
27500 $PKGCONFIG --modversion libmetalink`
27501 libmetalinklib=`echo $addld | $SED -e 's/^-L//'`
27503 if test -n "$addlib"; then
27505 clean_CPPFLAGS="$CPPFLAGS"
27506 clean_LDFLAGS="$LDFLAGS"
27508 CPPFLAGS="$clean_CPPFLAGS $addcflags"
27509 LDFLAGS="$clean_LDFLAGS $addld"
27510 LIBS="$addlib $clean_LIBS"
27511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
27512 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
27513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27514 /* end confdefs.h. */
27517 # include <metalink/metalink.h>
27522 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
27530 if ac_fn_c_try_link "$LINENO"; then :
27532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
27533 $as_echo "yes ($version)" >&6; }
27534 want_metalink="yes"
27538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
27539 $as_echo "no ($version)" >&6; }
27540 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
27541 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
27545 rm -f core conftest.err conftest.$ac_objext \
27546 conftest$ac_exeext conftest.$ac_ext
27547 if test "x$OPENSSL_ENABLED" != "x1" -a "x$USE_WINDOWS_SSPI" != "x1" \
27548 -a "x$GNUTLS_ENABLED" != "x1" -a "x$NSS_ENABLED" != "x1" \
27549 -a "x$SECURETRANSPORT_ENABLED" != "x1"; then
27550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: metalink support requires a compatible SSL/TLS backend" >&5
27551 $as_echo "$as_me: WARNING: metalink support requires a compatible SSL/TLS backend" >&2;}
27554 CPPFLAGS="$clean_CPPFLAGS"
27555 LDFLAGS="$clean_LDFLAGS"
27557 if test "$want_metalink" = "yes"; then
27559 $as_echo "#define USE_METALINK 1" >>confdefs.h
27561 LIBMETALINK_LIBS=$addlib
27562 LIBMETALINK_LDFLAGS=$addld
27563 LIBMETALINK_CPPFLAGS=$addcflags
27567 curl_mtlnk_msg="enabled"
27576 # Check whether --with-libssh2 was given.
27577 if test "${with_libssh2+set}" = set; then :
27578 withval=$with_libssh2; OPT_LIBSSH2=$withval
27587 # Check whether --with-libssh was given.
27588 if test "${with_libssh+set}" = set; then :
27589 withval=$with_libssh; OPT_LIBSSH=$withval
27597 # Check whether --with-wolfssh was given.
27598 if test "${with_wolfssh+set}" = set; then :
27599 withval=$with_wolfssh; OPT_WOLFSSH=$withval
27605 if test X"$OPT_LIBSSH2" != Xno; then
27606 CLEANLDFLAGS="$LDFLAGS"
27607 CLEANCPPFLAGS="$CPPFLAGS"
27610 case "$OPT_LIBSSH2" in
27613 if test -n "$PKG_CONFIG"; then
27614 PKGCONFIG="$PKG_CONFIG"
27616 if test -n "$ac_tool_prefix"; then
27617 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27618 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27620 $as_echo_n "checking for $ac_word... " >&6; }
27621 if ${ac_cv_path_PKGCONFIG+:} false; then :
27622 $as_echo_n "(cached) " >&6
27626 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27630 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27631 for as_dir in $as_dummy
27634 test -z "$as_dir" && as_dir=.
27635 for ac_exec_ext in '' $ac_executable_extensions; do
27636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27637 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27648 PKGCONFIG=$ac_cv_path_PKGCONFIG
27649 if test -n "$PKGCONFIG"; then
27650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27651 $as_echo "$PKGCONFIG" >&6; }
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27654 $as_echo "no" >&6; }
27659 if test -z "$ac_cv_path_PKGCONFIG"; then
27660 ac_pt_PKGCONFIG=$PKGCONFIG
27661 # Extract the first word of "pkg-config", so it can be a program name with args.
27662 set dummy pkg-config; ac_word=$2
27663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27664 $as_echo_n "checking for $ac_word... " >&6; }
27665 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27666 $as_echo_n "(cached) " >&6
27668 case $ac_pt_PKGCONFIG in
27670 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27674 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27675 for as_dir in $as_dummy
27678 test -z "$as_dir" && as_dir=.
27679 for ac_exec_ext in '' $ac_executable_extensions; do
27680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27681 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27692 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27693 if test -n "$ac_pt_PKGCONFIG"; then
27694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27695 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27698 $as_echo "no" >&6; }
27701 if test "x$ac_pt_PKGCONFIG" = x; then
27704 case $cross_compiling:$ac_tool_warned in
27706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27708 ac_tool_warned=yes ;;
27710 PKGCONFIG=$ac_pt_PKGCONFIG
27713 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27718 if test "x$PKGCONFIG" != "xno"; then
27719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
27720 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
27722 if test -n ""; then
27723 PKG_CONFIG_LIBDIR=""
27724 export PKG_CONFIG_LIBDIR
27726 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
27728 if test -z "$itexists"; then
27730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27731 $as_echo "no" >&6; }
27733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27734 $as_echo "found" >&6; }
27739 if test "$PKGCONFIG" != "no" ; then
27740 LIB_SSH2=`$PKGCONFIG --libs libssh2`
27741 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
27742 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
27743 version=`$PKGCONFIG --modversion libssh2`
27744 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
27751 PREFIX_SSH2=$OPT_LIBSSH2
27755 if test -n "$PREFIX_SSH2"; then
27757 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
27758 CPP_SSH2=-I${PREFIX_SSH2}/include
27759 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
27762 LDFLAGS="$LDFLAGS $LD_SSH2"
27763 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
27764 LIBS="$LIB_SSH2 $LIBS"
27766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
27767 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
27768 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
27769 $as_echo_n "(cached) " >&6
27771 ac_check_lib_save_LIBS=$LIBS
27772 LIBS="-lssh2 $LIBS"
27773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27774 /* end confdefs.h. */
27780 char libssh2_channel_open_ex ();
27783 return libssh2_channel_open_ex ();
27788 if ac_fn_c_try_link "$LINENO"; then :
27789 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
27791 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
27793 rm -f core conftest.err conftest.$ac_objext \
27794 conftest$ac_exeext conftest.$ac_ext
27795 LIBS=$ac_check_lib_save_LIBS
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
27798 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
27799 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
27800 cat >>confdefs.h <<_ACEOF
27801 #define HAVE_LIBSSH2 1
27804 LIBS="-lssh2 $LIBS"
27809 for ac_header in libssh2.h
27811 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
27812 if test "x$ac_cv_header_libssh2_h" = xyes; then :
27813 cat >>confdefs.h <<_ACEOF
27814 #define HAVE_LIBSSH2_H 1
27816 curl_ssh_msg="enabled (libSSH2)"
27819 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
27829 if test X"$OPT_LIBSSH2" != Xoff &&
27830 test "$LIBSSH2_ENABLED" != "1"; then
27831 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
27834 if test "$LIBSSH2_ENABLED" = "1"; then
27835 if test -n "$DIR_SSH2"; then
27837 if test "x$cross_compiling" != "xyes"; then
27838 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
27839 export CURL_LIBRARY_PATH
27840 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
27841 $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
27845 LDFLAGS=$CLEANLDFLAGS
27846 CPPFLAGS=$CLEANCPPFLAGS
27849 elif test X"$OPT_LIBSSH" != Xno; then
27850 CLEANLDFLAGS="$LDFLAGS"
27851 CLEANCPPFLAGS="$CPPFLAGS"
27854 case "$OPT_LIBSSH" in
27857 if test -n "$PKG_CONFIG"; then
27858 PKGCONFIG="$PKG_CONFIG"
27860 if test -n "$ac_tool_prefix"; then
27861 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27862 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27864 $as_echo_n "checking for $ac_word... " >&6; }
27865 if ${ac_cv_path_PKGCONFIG+:} false; then :
27866 $as_echo_n "(cached) " >&6
27870 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27874 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27875 for as_dir in $as_dummy
27878 test -z "$as_dir" && as_dir=.
27879 for ac_exec_ext in '' $ac_executable_extensions; do
27880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27881 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27892 PKGCONFIG=$ac_cv_path_PKGCONFIG
27893 if test -n "$PKGCONFIG"; then
27894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27895 $as_echo "$PKGCONFIG" >&6; }
27897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27898 $as_echo "no" >&6; }
27903 if test -z "$ac_cv_path_PKGCONFIG"; then
27904 ac_pt_PKGCONFIG=$PKGCONFIG
27905 # Extract the first word of "pkg-config", so it can be a program name with args.
27906 set dummy pkg-config; ac_word=$2
27907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27908 $as_echo_n "checking for $ac_word... " >&6; }
27909 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27910 $as_echo_n "(cached) " >&6
27912 case $ac_pt_PKGCONFIG in
27914 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27918 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27919 for as_dir in $as_dummy
27922 test -z "$as_dir" && as_dir=.
27923 for ac_exec_ext in '' $ac_executable_extensions; do
27924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27925 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27936 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27937 if test -n "$ac_pt_PKGCONFIG"; then
27938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27939 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27942 $as_echo "no" >&6; }
27945 if test "x$ac_pt_PKGCONFIG" = x; then
27948 case $cross_compiling:$ac_tool_warned in
27950 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27951 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27952 ac_tool_warned=yes ;;
27954 PKGCONFIG=$ac_pt_PKGCONFIG
27957 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27962 if test "x$PKGCONFIG" != "xno"; then
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
27964 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
27966 if test -n ""; then
27967 PKG_CONFIG_LIBDIR=""
27968 export PKG_CONFIG_LIBDIR
27970 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
27972 if test -z "$itexists"; then
27974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27975 $as_echo "no" >&6; }
27977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27978 $as_echo "found" >&6; }
27983 if test "$PKGCONFIG" != "no" ; then
27984 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
27985 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
27986 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
27987 version=`$PKGCONFIG --modversion libssh`
27988 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
27995 PREFIX_SSH=$OPT_LIBSSH
27999 if test -n "$PREFIX_SSH"; then
28001 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
28002 CPP_SSH=-I${PREFIX_SSH}/include
28003 DIR_SSH=${PREFIX_SSH}/lib$libsuff
28006 LDFLAGS="$LDFLAGS $LD_SSH"
28007 CPPFLAGS="$CPPFLAGS $CPP_SSH"
28008 LIBS="$LIB_SSH $LIBS"
28010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
28011 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
28012 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
28013 $as_echo_n "(cached) " >&6
28015 ac_check_lib_save_LIBS=$LIBS
28017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28018 /* end confdefs.h. */
28032 if ac_fn_c_try_link "$LINENO"; then :
28033 ac_cv_lib_ssh_ssh_new=yes
28035 ac_cv_lib_ssh_ssh_new=no
28037 rm -f core conftest.err conftest.$ac_objext \
28038 conftest$ac_exeext conftest.$ac_ext
28039 LIBS=$ac_check_lib_save_LIBS
28041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
28042 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
28043 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
28044 cat >>confdefs.h <<_ACEOF
28045 #define HAVE_LIBSSH 1
28053 for ac_header in libssh/libssh.h
28055 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
28056 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
28057 cat >>confdefs.h <<_ACEOF
28058 #define HAVE_LIBSSH_LIBSSH_H 1
28060 curl_ssh_msg="enabled (libSSH)"
28063 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
28073 if test X"$OPT_LIBSSH" != Xoff &&
28074 test "$LIBSSH_ENABLED" != "1"; then
28075 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
28078 if test "$LIBSSH_ENABLED" = "1"; then
28079 if test -n "$DIR_SSH"; then
28081 if test "x$cross_compiling" != "xyes"; then
28082 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
28083 export CURL_LIBRARY_PATH
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
28085 $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
28089 LDFLAGS=$CLEANLDFLAGS
28090 CPPFLAGS=$CLEANCPPFLAGS
28093 elif test X"$OPT_WOLFSSH" != Xno; then
28094 CLEANLDFLAGS="$LDFLAGS"
28095 CLEANCPPFLAGS="$CPPFLAGS"
28099 if test "$OPT_WOLFSSH" != yes; then
28100 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
28101 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
28102 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
28105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
28106 $as_echo_n "checking for wolfSSH_Init in -lwolfssh... " >&6; }
28107 if ${ac_cv_lib_wolfssh_wolfSSH_Init+:} false; then :
28108 $as_echo_n "(cached) " >&6
28110 ac_check_lib_save_LIBS=$LIBS
28111 LIBS="-lwolfssh $LIBS"
28112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28113 /* end confdefs.h. */
28119 char wolfSSH_Init ();
28122 return wolfSSH_Init ();
28127 if ac_fn_c_try_link "$LINENO"; then :
28128 ac_cv_lib_wolfssh_wolfSSH_Init=yes
28130 ac_cv_lib_wolfssh_wolfSSH_Init=no
28132 rm -f core conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
28134 LIBS=$ac_check_lib_save_LIBS
28136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
28137 $as_echo "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
28138 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes; then :
28139 cat >>confdefs.h <<_ACEOF
28140 #define HAVE_LIBWOLFSSH 1
28143 LIBS="-lwolfssh $LIBS"
28148 for ac_header in wolfssh/ssh.h
28150 ac_fn_c_check_header_mongrel "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
28151 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes; then :
28152 cat >>confdefs.h <<_ACEOF
28153 #define HAVE_WOLFSSH_SSH_H 1
28155 curl_ssh_msg="enabled (wolfSSH)"
28158 $as_echo "#define USE_WOLFSSH 1" >>confdefs.h
28173 # Check whether --with-librtmp was given.
28174 if test "${with_librtmp+set}" = set; then :
28175 withval=$with_librtmp; OPT_LIBRTMP=$withval
28179 if test X"$OPT_LIBRTMP" != Xno; then
28180 CLEANLDFLAGS="$LDFLAGS"
28181 CLEANCPPFLAGS="$CPPFLAGS"
28184 case "$OPT_LIBRTMP" in
28187 if test -n "$PKG_CONFIG"; then
28188 PKGCONFIG="$PKG_CONFIG"
28190 if test -n "$ac_tool_prefix"; then
28191 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28192 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28194 $as_echo_n "checking for $ac_word... " >&6; }
28195 if ${ac_cv_path_PKGCONFIG+:} false; then :
28196 $as_echo_n "(cached) " >&6
28200 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28204 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28205 for as_dir in $as_dummy
28208 test -z "$as_dir" && as_dir=.
28209 for ac_exec_ext in '' $ac_executable_extensions; do
28210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28211 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28222 PKGCONFIG=$ac_cv_path_PKGCONFIG
28223 if test -n "$PKGCONFIG"; then
28224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28225 $as_echo "$PKGCONFIG" >&6; }
28227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28228 $as_echo "no" >&6; }
28233 if test -z "$ac_cv_path_PKGCONFIG"; then
28234 ac_pt_PKGCONFIG=$PKGCONFIG
28235 # Extract the first word of "pkg-config", so it can be a program name with args.
28236 set dummy pkg-config; ac_word=$2
28237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28238 $as_echo_n "checking for $ac_word... " >&6; }
28239 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28240 $as_echo_n "(cached) " >&6
28242 case $ac_pt_PKGCONFIG in
28244 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28248 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28249 for as_dir in $as_dummy
28252 test -z "$as_dir" && as_dir=.
28253 for ac_exec_ext in '' $ac_executable_extensions; do
28254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28255 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28266 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28267 if test -n "$ac_pt_PKGCONFIG"; then
28268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28269 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28272 $as_echo "no" >&6; }
28275 if test "x$ac_pt_PKGCONFIG" = x; then
28278 case $cross_compiling:$ac_tool_warned in
28280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28282 ac_tool_warned=yes ;;
28284 PKGCONFIG=$ac_pt_PKGCONFIG
28287 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28292 if test "x$PKGCONFIG" != "xno"; then
28293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
28294 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
28296 if test -n ""; then
28297 PKG_CONFIG_LIBDIR=""
28298 export PKG_CONFIG_LIBDIR
28300 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
28302 if test -z "$itexists"; then
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28305 $as_echo "no" >&6; }
28307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28308 $as_echo "found" >&6; }
28313 if test "$PKGCONFIG" != "no" ; then
28314 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
28315 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
28316 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
28317 version=`$PKGCONFIG --modversion librtmp`
28318 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
28320 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
28329 PREFIX_RTMP=$OPT_LIBRTMP
28333 if test -n "$PREFIX_RTMP"; then
28334 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
28335 CPP_RTMP=-I${PREFIX_RTMP}/include
28336 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
28339 LDFLAGS="$LDFLAGS $LD_RTMP"
28340 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
28341 LIBS="$LIB_RTMP $LIBS"
28343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
28344 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
28345 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
28346 $as_echo_n "(cached) " >&6
28348 ac_check_lib_save_LIBS=$LIBS
28349 LIBS="-lrtmp $LIBS"
28350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28351 /* end confdefs.h. */
28360 return RTMP_Init ();
28365 if ac_fn_c_try_link "$LINENO"; then :
28366 ac_cv_lib_rtmp_RTMP_Init=yes
28368 ac_cv_lib_rtmp_RTMP_Init=no
28370 rm -f core conftest.err conftest.$ac_objext \
28371 conftest$ac_exeext conftest.$ac_ext
28372 LIBS=$ac_check_lib_save_LIBS
28374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
28375 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
28376 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
28378 for ac_header in librtmp/rtmp.h
28380 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
28381 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
28382 cat >>confdefs.h <<_ACEOF
28383 #define HAVE_LIBRTMP_RTMP_H 1
28385 curl_rtmp_msg="enabled (librtmp)"
28388 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
28399 LDFLAGS=$CLEANLDFLAGS
28400 CPPFLAGS=$CLEANCPPFLAGS
28406 if test X"$OPT_LIBRTMP" != Xoff &&
28407 test "$LIBRTMP_ENABLED" != "1"; then
28408 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
28414 versioned_symbols_flavour=
28415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
28416 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
28417 # Check whether --enable-versioned-symbols was given.
28418 if test "${enable_versioned_symbols+set}" = set; then :
28419 enableval=$enable_versioned_symbols; case "$enableval" in
28420 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28421 $as_echo "yes" >&6; }
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
28423 $as_echo_n "checking if libraries can be versioned... " >&6; }
28424 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
28425 if test -z "$GLD"; then
28426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28427 $as_echo "no" >&6; }
28428 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
28429 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
28431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28432 $as_echo "yes" >&6; }
28433 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
28434 versioned_symbols_flavour="MULTISSL_"
28435 elif test "x$OPENSSL_ENABLED" = "x1"; then
28436 versioned_symbols_flavour="OPENSSL_"
28437 elif test "x$GNUTLS_ENABLED" = "x1"; then
28438 versioned_symbols_flavour="GNUTLS_"
28439 elif test "x$NSS_ENABLED" = "x1"; then
28440 versioned_symbols_flavour="NSS_"
28441 elif test "x$WOLFSSL_ENABLED" = "x1"; then
28442 versioned_symbols_flavour="WOLFSSL_"
28443 elif test "x$SCHANNEL_ENABLED" = "x1"; then
28444 versioned_symbols_flavour="SCHANNEL_"
28445 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
28446 versioned_symbols_flavour="SECURE_TRANSPORT_"
28448 versioned_symbols_flavour=""
28450 versioned_symbols="yes"
28454 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28455 $as_echo "no" >&6; }
28461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28462 $as_echo "no" >&6; }
28468 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
28470 if test "x$versioned_symbols" = 'xyes'; then
28471 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
28472 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
28474 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
28475 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
28480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
28481 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
28482 OPT_WINIDN="default"
28484 # Check whether --with-winidn was given.
28485 if test "${with_winidn+set}" = set; then :
28486 withval=$with_winidn; OPT_WINIDN=$withval
28489 case "$OPT_WINIDN" in
28492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28493 $as_echo "no" >&6; }
28497 want_winidn_path="default"
28498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28499 $as_echo "yes" >&6; }
28503 want_winidn_path="$withval"
28504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
28505 $as_echo "yes ($withval)" >&6; }
28509 if test "$want_winidn" = "yes"; then
28510 clean_CPPFLAGS="$CPPFLAGS"
28511 clean_LDFLAGS="$LDFLAGS"
28513 WINIDN_LIBS="-lnormaliz"
28514 WINIDN_CPPFLAGS="-DWINVER=0x0600"
28516 if test "$want_winidn_path" != "default"; then
28517 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
28518 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
28519 WINIDN_DIR="$want_winidn_path/lib$libsuff"
28522 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
28523 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
28524 LIBS="$WINIDN_LIBS $LIBS"
28526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
28527 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
28528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28529 /* end confdefs.h. */
28532 #include <windows.h>
28537 IdnToUnicode(0, NULL, 0, NULL, 0);
28544 if ac_fn_c_try_link "$LINENO"; then :
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28547 $as_echo "yes" >&6; }
28548 tst_links_winidn="yes"
28552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28553 $as_echo "no" >&6; }
28554 tst_links_winidn="no"
28557 rm -f core conftest.err conftest.$ac_objext \
28558 conftest$ac_exeext conftest.$ac_ext
28560 if test "$tst_links_winidn" = "yes"; then
28562 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
28565 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
28569 curl_idn_msg="enabled (Windows-native)"
28571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
28572 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
28573 CPPFLAGS="$clean_CPPFLAGS"
28574 LDFLAGS="$clean_LDFLAGS"
28580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
28581 $as_echo_n "checking whether to build with libidn2... " >&6; }
28584 # Check whether --with-libidn2 was given.
28585 if test "${with_libidn2+set}" = set; then :
28586 withval=$with_libidn2; OPT_IDN=$withval
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28593 $as_echo "no" >&6; }
28597 want_idn_path="default"
28598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
28599 $as_echo "(assumed) yes" >&6; }
28603 want_idn_path="default"
28604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28605 $as_echo "yes" >&6; }
28609 want_idn_path="$withval"
28610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
28611 $as_echo "yes ($withval)" >&6; }
28615 if test "$want_idn" = "yes"; then
28616 clean_CPPFLAGS="$CPPFLAGS"
28617 clean_LDFLAGS="$LDFLAGS"
28621 if test "$want_idn_path" != "default"; then
28622 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
28624 if test -n "$PKG_CONFIG"; then
28625 PKGCONFIG="$PKG_CONFIG"
28627 if test -n "$ac_tool_prefix"; then
28628 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28629 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28631 $as_echo_n "checking for $ac_word... " >&6; }
28632 if ${ac_cv_path_PKGCONFIG+:} false; then :
28633 $as_echo_n "(cached) " >&6
28637 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28641 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28642 for as_dir in $as_dummy
28645 test -z "$as_dir" && as_dir=.
28646 for ac_exec_ext in '' $ac_executable_extensions; do
28647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28648 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28659 PKGCONFIG=$ac_cv_path_PKGCONFIG
28660 if test -n "$PKGCONFIG"; then
28661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28662 $as_echo "$PKGCONFIG" >&6; }
28664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28665 $as_echo "no" >&6; }
28670 if test -z "$ac_cv_path_PKGCONFIG"; then
28671 ac_pt_PKGCONFIG=$PKGCONFIG
28672 # Extract the first word of "pkg-config", so it can be a program name with args.
28673 set dummy pkg-config; ac_word=$2
28674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28675 $as_echo_n "checking for $ac_word... " >&6; }
28676 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28677 $as_echo_n "(cached) " >&6
28679 case $ac_pt_PKGCONFIG in
28681 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28685 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28686 for as_dir in $as_dummy
28689 test -z "$as_dir" && as_dir=.
28690 for ac_exec_ext in '' $ac_executable_extensions; do
28691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28692 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28703 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28704 if test -n "$ac_pt_PKGCONFIG"; then
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28706 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28709 $as_echo "no" >&6; }
28712 if test "x$ac_pt_PKGCONFIG" = x; then
28715 case $cross_compiling:$ac_tool_warned in
28717 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28718 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28719 ac_tool_warned=yes ;;
28721 PKGCONFIG=$ac_pt_PKGCONFIG
28724 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28729 if test "x$PKGCONFIG" != "xno"; then
28730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
28731 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
28733 if test -n "$IDN_PCDIR"; then
28734 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28735 export PKG_CONFIG_LIBDIR
28737 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
28739 if test -z "$itexists"; then
28741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28742 $as_echo "no" >&6; }
28744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28745 $as_echo "found" >&6; }
28749 if test "$PKGCONFIG" != "no"; then
28751 if test -n "$IDN_PCDIR"; then
28752 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28753 export PKG_CONFIG_LIBDIR
28755 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
28757 if test -n "$IDN_PCDIR"; then
28758 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28759 export PKG_CONFIG_LIBDIR
28761 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
28763 if test -n "$IDN_PCDIR"; then
28764 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
28765 export PKG_CONFIG_LIBDIR
28767 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
28768 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
28771 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
28772 IDN_CPPFLAGS="-I$want_idn_path/include"
28773 IDN_DIR="$want_idn_path/lib$libsuff"
28777 if test -n "$PKG_CONFIG"; then
28778 PKGCONFIG="$PKG_CONFIG"
28780 if test -n "$ac_tool_prefix"; then
28781 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28782 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28784 $as_echo_n "checking for $ac_word... " >&6; }
28785 if ${ac_cv_path_PKGCONFIG+:} false; then :
28786 $as_echo_n "(cached) " >&6
28790 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28794 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28795 for as_dir in $as_dummy
28798 test -z "$as_dir" && as_dir=.
28799 for ac_exec_ext in '' $ac_executable_extensions; do
28800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28801 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28812 PKGCONFIG=$ac_cv_path_PKGCONFIG
28813 if test -n "$PKGCONFIG"; then
28814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28815 $as_echo "$PKGCONFIG" >&6; }
28817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28818 $as_echo "no" >&6; }
28823 if test -z "$ac_cv_path_PKGCONFIG"; then
28824 ac_pt_PKGCONFIG=$PKGCONFIG
28825 # Extract the first word of "pkg-config", so it can be a program name with args.
28826 set dummy pkg-config; ac_word=$2
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28828 $as_echo_n "checking for $ac_word... " >&6; }
28829 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28830 $as_echo_n "(cached) " >&6
28832 case $ac_pt_PKGCONFIG in
28834 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28838 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28839 for as_dir in $as_dummy
28842 test -z "$as_dir" && as_dir=.
28843 for ac_exec_ext in '' $ac_executable_extensions; do
28844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28845 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28856 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28857 if test -n "$ac_pt_PKGCONFIG"; then
28858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28859 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28862 $as_echo "no" >&6; }
28865 if test "x$ac_pt_PKGCONFIG" = x; then
28868 case $cross_compiling:$ac_tool_warned in
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28871 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28872 ac_tool_warned=yes ;;
28874 PKGCONFIG=$ac_pt_PKGCONFIG
28877 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28882 if test "x$PKGCONFIG" != "xno"; then
28883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
28884 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
28886 if test -n ""; then
28887 PKG_CONFIG_LIBDIR=""
28888 export PKG_CONFIG_LIBDIR
28890 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
28892 if test -z "$itexists"; then
28894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28895 $as_echo "no" >&6; }
28897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28898 $as_echo "found" >&6; }
28902 if test "$PKGCONFIG" != "no"; then
28903 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
28904 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
28905 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
28906 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
28912 if test "$PKGCONFIG" != "no"; then
28913 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
28914 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
28916 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
28917 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
28918 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
28919 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
28920 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
28922 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
28923 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
28924 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
28925 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
28926 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
28927 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
28928 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
28929 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
28932 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
28933 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
28934 LIBS="$IDN_LIBS $LIBS"
28936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
28937 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
28938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28939 /* end confdefs.h. */
28942 #define idn2_lookup_ul innocuous_idn2_lookup_ul
28944 # include <limits.h>
28946 # include <assert.h>
28948 #undef idn2_lookup_ul
28952 char idn2_lookup_ul ();
28953 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
28959 return idn2_lookup_ul ();
28965 if ac_fn_c_try_link "$LINENO"; then :
28967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28968 $as_echo "yes" >&6; }
28969 tst_links_libidn="yes"
28973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28974 $as_echo "no" >&6; }
28975 tst_links_libidn="no"
28978 rm -f core conftest.err conftest.$ac_objext \
28979 conftest$ac_exeext conftest.$ac_ext
28981 for ac_header in idn2.h
28983 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28984 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28985 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28986 cat >>confdefs.h <<_ACEOF
28987 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28995 if test "$tst_links_libidn" = "yes"; then
28997 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
29002 curl_idn_msg="enabled (libidn2)"
29003 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
29004 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
29005 export CURL_LIBRARY_PATH
29006 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
29007 $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
29010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29011 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29012 CPPFLAGS="$clean_CPPFLAGS"
29013 LDFLAGS="$clean_LDFLAGS"
29024 if test "x$disable_http" = "xyes"; then
29025 # without HTTP, nghttp2 is no use
29030 # Check whether --with-nghttp2 was given.
29031 if test "${with_nghttp2+set}" = set; then :
29032 withval=$with_nghttp2; OPT_H2=$withval
29045 want_h2_path="$withval/lib/pkgconfig"
29049 curl_h2_msg="no (--with-nghttp2)"
29050 if test X"$want_h2" != Xno; then
29051 CLEANLDFLAGS="$LDFLAGS"
29052 CLEANCPPFLAGS="$CPPFLAGS"
29056 if test -n "$PKG_CONFIG"; then
29057 PKGCONFIG="$PKG_CONFIG"
29059 if test -n "$ac_tool_prefix"; then
29060 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29061 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29063 $as_echo_n "checking for $ac_word... " >&6; }
29064 if ${ac_cv_path_PKGCONFIG+:} false; then :
29065 $as_echo_n "(cached) " >&6
29069 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29073 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29074 for as_dir in $as_dummy
29077 test -z "$as_dir" && as_dir=.
29078 for ac_exec_ext in '' $ac_executable_extensions; do
29079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29080 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29091 PKGCONFIG=$ac_cv_path_PKGCONFIG
29092 if test -n "$PKGCONFIG"; then
29093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29094 $as_echo "$PKGCONFIG" >&6; }
29096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29097 $as_echo "no" >&6; }
29102 if test -z "$ac_cv_path_PKGCONFIG"; then
29103 ac_pt_PKGCONFIG=$PKGCONFIG
29104 # Extract the first word of "pkg-config", so it can be a program name with args.
29105 set dummy pkg-config; ac_word=$2
29106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29107 $as_echo_n "checking for $ac_word... " >&6; }
29108 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29109 $as_echo_n "(cached) " >&6
29111 case $ac_pt_PKGCONFIG in
29113 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29117 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29118 for as_dir in $as_dummy
29121 test -z "$as_dir" && as_dir=.
29122 for ac_exec_ext in '' $ac_executable_extensions; do
29123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29124 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29135 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29136 if test -n "$ac_pt_PKGCONFIG"; then
29137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29138 $as_echo "$ac_pt_PKGCONFIG" >&6; }
29140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29141 $as_echo "no" >&6; }
29144 if test "x$ac_pt_PKGCONFIG" = x; then
29147 case $cross_compiling:$ac_tool_warned in
29149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29151 ac_tool_warned=yes ;;
29153 PKGCONFIG=$ac_pt_PKGCONFIG
29156 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29161 if test "x$PKGCONFIG" != "xno"; then
29162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
29163 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
29165 if test -n "$want_h2_path"; then
29166 PKG_CONFIG_LIBDIR="$want_h2_path"
29167 export PKG_CONFIG_LIBDIR
29169 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
29171 if test -z "$itexists"; then
29173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29174 $as_echo "no" >&6; }
29176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29177 $as_echo "found" >&6; }
29182 if test "$PKGCONFIG" != "no" ; then
29184 if test -n "$want_h2_path"; then
29185 PKG_CONFIG_LIBDIR="$want_h2_path"
29186 export PKG_CONFIG_LIBDIR
29189 $PKGCONFIG --libs-only-l libnghttp2`
29190 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
29191 $as_echo "$as_me: -l is $LIB_H2" >&6;}
29194 if test -n "$want_h2_path"; then
29195 PKG_CONFIG_LIBDIR="$want_h2_path"
29196 export PKG_CONFIG_LIBDIR
29198 $PKGCONFIG --cflags-only-I libnghttp2`
29199 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
29200 $as_echo "$as_me: -I is $CPP_H2" >&6;}
29203 if test -n "$want_h2_path"; then
29204 PKG_CONFIG_LIBDIR="$want_h2_path"
29205 export PKG_CONFIG_LIBDIR
29208 $PKGCONFIG --libs-only-L libnghttp2`
29209 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
29210 $as_echo "$as_me: -L is $LD_H2" >&6;}
29212 LDFLAGS="$LDFLAGS $LD_H2"
29213 CPPFLAGS="$CPPFLAGS $CPP_H2"
29214 LIBS="$LIB_H2 $LIBS"
29216 # use nghttp2_session_set_local_window_size to require nghttp2
29218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
29219 $as_echo_n "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
29220 if ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+:} false; then :
29221 $as_echo_n "(cached) " >&6
29223 ac_check_lib_save_LIBS=$LIBS
29224 LIBS="-lnghttp2 $LIBS"
29225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29226 /* end confdefs.h. */
29232 char nghttp2_session_set_local_window_size ();
29235 return nghttp2_session_set_local_window_size ();
29240 if ac_fn_c_try_link "$LINENO"; then :
29241 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
29243 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
29245 rm -f core conftest.err conftest.$ac_objext \
29246 conftest$ac_exeext conftest.$ac_ext
29247 LIBS=$ac_check_lib_save_LIBS
29249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
29250 $as_echo "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
29251 if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes; then :
29253 for ac_header in nghttp2/nghttp2.h
29255 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
29256 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
29257 cat >>confdefs.h <<_ACEOF
29258 #define HAVE_NGHTTP2_NGHTTP2_H 1
29260 curl_h2_msg="enabled (nghttp2)"
29263 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
29274 LDFLAGS=$CLEANLDFLAGS
29275 CPPFLAGS=$CLEANCPPFLAGS
29282 if test X"$want_h2" != Xdefault; then
29283 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
29291 curl_h3_msg="no (--with-ngtcp2, --with-quiche)"
29293 if test "x$disable_http" = "xyes"; then
29294 # without HTTP, ngtcp2 is no use
29299 # Check whether --with-ngtcp2 was given.
29300 if test "${with_ngtcp2+set}" = set; then :
29301 withval=$with_ngtcp2; OPT_TCP2=$withval
29304 case "$OPT_TCP2" in
29309 want_tcp2="default"
29314 want_tcp2_path="$withval/lib/pkgconfig"
29318 curl_tcp2_msg="no (--with-ngtcp2)"
29319 if test X"$want_tcp2" != Xno; then
29320 CLEANLDFLAGS="$LDFLAGS"
29321 CLEANCPPFLAGS="$CPPFLAGS"
29325 if test -n "$PKG_CONFIG"; then
29326 PKGCONFIG="$PKG_CONFIG"
29328 if test -n "$ac_tool_prefix"; then
29329 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29330 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29332 $as_echo_n "checking for $ac_word... " >&6; }
29333 if ${ac_cv_path_PKGCONFIG+:} false; then :
29334 $as_echo_n "(cached) " >&6
29338 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29342 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29343 for as_dir in $as_dummy
29346 test -z "$as_dir" && as_dir=.
29347 for ac_exec_ext in '' $ac_executable_extensions; do
29348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29349 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29360 PKGCONFIG=$ac_cv_path_PKGCONFIG
29361 if test -n "$PKGCONFIG"; then
29362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29363 $as_echo "$PKGCONFIG" >&6; }
29365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29366 $as_echo "no" >&6; }
29371 if test -z "$ac_cv_path_PKGCONFIG"; then
29372 ac_pt_PKGCONFIG=$PKGCONFIG
29373 # Extract the first word of "pkg-config", so it can be a program name with args.
29374 set dummy pkg-config; ac_word=$2
29375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29376 $as_echo_n "checking for $ac_word... " >&6; }
29377 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29378 $as_echo_n "(cached) " >&6
29380 case $ac_pt_PKGCONFIG in
29382 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29386 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29387 for as_dir in $as_dummy
29390 test -z "$as_dir" && as_dir=.
29391 for ac_exec_ext in '' $ac_executable_extensions; do
29392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29393 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29404 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29405 if test -n "$ac_pt_PKGCONFIG"; then
29406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29407 $as_echo "$ac_pt_PKGCONFIG" >&6; }
29409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29410 $as_echo "no" >&6; }
29413 if test "x$ac_pt_PKGCONFIG" = x; then
29416 case $cross_compiling:$ac_tool_warned in
29418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29420 ac_tool_warned=yes ;;
29422 PKGCONFIG=$ac_pt_PKGCONFIG
29425 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29430 if test "x$PKGCONFIG" != "xno"; then
29431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
29432 $as_echo_n "checking for libngtcp2 options with pkg-config... " >&6; }
29434 if test -n "$want_tcp2_path"; then
29435 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29436 export PKG_CONFIG_LIBDIR
29438 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
29440 if test -z "$itexists"; then
29442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29443 $as_echo "no" >&6; }
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29446 $as_echo "found" >&6; }
29451 if test "$PKGCONFIG" != "no" ; then
29453 if test -n "$want_tcp2_path"; then
29454 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29455 export PKG_CONFIG_LIBDIR
29458 $PKGCONFIG --libs-only-l libngtcp2`
29459 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
29460 $as_echo "$as_me: -l is $LIB_TCP2" >&6;}
29463 if test -n "$want_tcp2_path"; then
29464 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29465 export PKG_CONFIG_LIBDIR
29467 $PKGCONFIG --cflags-only-I libngtcp2`
29468 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
29469 $as_echo "$as_me: -I is $CPP_TCP2" >&6;}
29472 if test -n "$want_tcp2_path"; then
29473 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29474 export PKG_CONFIG_LIBDIR
29477 $PKGCONFIG --libs-only-L libngtcp2`
29478 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
29479 $as_echo "$as_me: -L is $LD_TCP2" >&6;}
29481 LDFLAGS="$LDFLAGS $LD_TCP2"
29482 CPPFLAGS="$CPPFLAGS $CPP_TCP2"
29483 LIBS="$LIB_TCP2 $LIBS"
29485 if test "x$cross_compiling" != "xyes"; then
29486 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
29488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new in -lngtcp2" >&5
29489 $as_echo_n "checking for ngtcp2_conn_client_new in -lngtcp2... " >&6; }
29490 if ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new+:} false; then :
29491 $as_echo_n "(cached) " >&6
29493 ac_check_lib_save_LIBS=$LIBS
29494 LIBS="-lngtcp2 $LIBS"
29495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29496 /* end confdefs.h. */
29502 char ngtcp2_conn_client_new ();
29505 return ngtcp2_conn_client_new ();
29510 if ac_fn_c_try_link "$LINENO"; then :
29511 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=yes
29513 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=no
29515 rm -f core conftest.err conftest.$ac_objext \
29516 conftest$ac_exeext conftest.$ac_ext
29517 LIBS=$ac_check_lib_save_LIBS
29519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&5
29520 $as_echo "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&6; }
29521 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" = xyes; then :
29523 for ac_header in ngtcp2/ngtcp2.h
29525 ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
29526 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes; then :
29527 cat >>confdefs.h <<_ACEOF
29528 #define HAVE_NGTCP2_NGTCP2_H 1
29532 $as_echo "#define USE_NGTCP2 1" >>confdefs.h
29536 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
29537 export CURL_LIBRARY_PATH
29538 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
29539 $as_echo "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
29547 LDFLAGS=$CLEANLDFLAGS
29548 CPPFLAGS=$CLEANCPPFLAGS
29555 if test X"$want_tcp2" != Xdefault; then
29556 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
29562 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
29563 CLEANLDFLAGS="$LDFLAGS"
29564 CLEANCPPFLAGS="$CPPFLAGS"
29568 if test -n "$PKG_CONFIG"; then
29569 PKGCONFIG="$PKG_CONFIG"
29571 if test -n "$ac_tool_prefix"; then
29572 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29573 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29575 $as_echo_n "checking for $ac_word... " >&6; }
29576 if ${ac_cv_path_PKGCONFIG+:} false; then :
29577 $as_echo_n "(cached) " >&6
29581 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29585 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29586 for as_dir in $as_dummy
29589 test -z "$as_dir" && as_dir=.
29590 for ac_exec_ext in '' $ac_executable_extensions; do
29591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29592 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29603 PKGCONFIG=$ac_cv_path_PKGCONFIG
29604 if test -n "$PKGCONFIG"; then
29605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29606 $as_echo "$PKGCONFIG" >&6; }
29608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29609 $as_echo "no" >&6; }
29614 if test -z "$ac_cv_path_PKGCONFIG"; then
29615 ac_pt_PKGCONFIG=$PKGCONFIG
29616 # Extract the first word of "pkg-config", so it can be a program name with args.
29617 set dummy pkg-config; ac_word=$2
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29619 $as_echo_n "checking for $ac_word... " >&6; }
29620 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29621 $as_echo_n "(cached) " >&6
29623 case $ac_pt_PKGCONFIG in
29625 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29629 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29630 for as_dir in $as_dummy
29633 test -z "$as_dir" && as_dir=.
29634 for ac_exec_ext in '' $ac_executable_extensions; do
29635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29636 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29647 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29648 if test -n "$ac_pt_PKGCONFIG"; then
29649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29650 $as_echo "$ac_pt_PKGCONFIG" >&6; }
29652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29653 $as_echo "no" >&6; }
29656 if test "x$ac_pt_PKGCONFIG" = x; then
29659 case $cross_compiling:$ac_tool_warned in
29661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29662 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29663 ac_tool_warned=yes ;;
29665 PKGCONFIG=$ac_pt_PKGCONFIG
29668 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29673 if test "x$PKGCONFIG" != "xno"; then
29674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
29675 $as_echo_n "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
29677 if test -n "$want_tcp2_path"; then
29678 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29679 export PKG_CONFIG_LIBDIR
29681 $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
29683 if test -z "$itexists"; then
29685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29686 $as_echo "no" >&6; }
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29689 $as_echo "found" >&6; }
29694 if test "$PKGCONFIG" != "no" ; then
29695 LIB_NGTCP2_CRYPTO_OPENSSL=`
29696 if test -n "$want_tcp2_path"; then
29697 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29698 export PKG_CONFIG_LIBDIR
29701 $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
29702 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
29703 $as_echo "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
29705 CPP_NGTCP2_CRYPTO_OPENSSL=`
29706 if test -n "$want_tcp2_path"; then
29707 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29708 export PKG_CONFIG_LIBDIR
29710 $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
29711 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
29712 $as_echo "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
29714 LD_NGTCP2_CRYPTO_OPENSSL=`
29715 if test -n "$want_tcp2_path"; then
29716 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29717 export PKG_CONFIG_LIBDIR
29720 $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
29721 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
29722 $as_echo "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
29724 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
29725 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
29726 LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
29728 if test "x$cross_compiling" != "xyes"; then
29729 DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
29731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
29732 $as_echo_n "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
29733 if ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+:} false; then :
29734 $as_echo_n "(cached) " >&6
29736 ac_check_lib_save_LIBS=$LIBS
29737 LIBS="-lngtcp2_crypto_openssl $LIBS"
29738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29739 /* end confdefs.h. */
29745 char ngtcp2_crypto_ctx_initial ();
29748 return ngtcp2_crypto_ctx_initial ();
29753 if ac_fn_c_try_link "$LINENO"; then :
29754 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
29756 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
29758 rm -f core conftest.err conftest.$ac_objext \
29759 conftest$ac_exeext conftest.$ac_ext
29760 LIBS=$ac_check_lib_save_LIBS
29762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
29763 $as_echo "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
29764 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes; then :
29766 for ac_header in ngtcp2/ngtcp2_crypto.h
29768 ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
29769 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes; then :
29770 cat >>confdefs.h <<_ACEOF
29771 #define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1
29775 $as_echo "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
29777 USE_NGTCP2_CRYPTO_OPENSSL=1
29779 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
29780 export CURL_LIBRARY_PATH
29781 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
29782 $as_echo "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
29790 LDFLAGS=$CLEANLDFLAGS
29791 CPPFLAGS=$CLEANCPPFLAGS
29798 if test X"$want_tcp2" != Xdefault; then
29799 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
29804 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
29805 CLEANLDFLAGS="$LDFLAGS"
29806 CLEANCPPFLAGS="$CPPFLAGS"
29810 if test -n "$PKG_CONFIG"; then
29811 PKGCONFIG="$PKG_CONFIG"
29813 if test -n "$ac_tool_prefix"; then
29814 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29815 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29817 $as_echo_n "checking for $ac_word... " >&6; }
29818 if ${ac_cv_path_PKGCONFIG+:} false; then :
29819 $as_echo_n "(cached) " >&6
29823 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29827 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29828 for as_dir in $as_dummy
29831 test -z "$as_dir" && as_dir=.
29832 for ac_exec_ext in '' $ac_executable_extensions; do
29833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29834 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29845 PKGCONFIG=$ac_cv_path_PKGCONFIG
29846 if test -n "$PKGCONFIG"; then
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29848 $as_echo "$PKGCONFIG" >&6; }
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29851 $as_echo "no" >&6; }
29856 if test -z "$ac_cv_path_PKGCONFIG"; then
29857 ac_pt_PKGCONFIG=$PKGCONFIG
29858 # Extract the first word of "pkg-config", so it can be a program name with args.
29859 set dummy pkg-config; ac_word=$2
29860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29861 $as_echo_n "checking for $ac_word... " >&6; }
29862 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
29863 $as_echo_n "(cached) " >&6
29865 case $ac_pt_PKGCONFIG in
29867 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29871 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29872 for as_dir in $as_dummy
29875 test -z "$as_dir" && as_dir=.
29876 for ac_exec_ext in '' $ac_executable_extensions; do
29877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29878 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
29879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29889 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29890 if test -n "$ac_pt_PKGCONFIG"; then
29891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29892 $as_echo "$ac_pt_PKGCONFIG" >&6; }
29894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29895 $as_echo "no" >&6; }
29898 if test "x$ac_pt_PKGCONFIG" = x; then
29901 case $cross_compiling:$ac_tool_warned in
29903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29905 ac_tool_warned=yes ;;
29907 PKGCONFIG=$ac_pt_PKGCONFIG
29910 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29915 if test "x$PKGCONFIG" != "xno"; then
29916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
29917 $as_echo_n "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
29919 if test -n "$want_tcp2_path"; then
29920 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29921 export PKG_CONFIG_LIBDIR
29923 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
29925 if test -z "$itexists"; then
29927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29928 $as_echo "no" >&6; }
29930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
29931 $as_echo "found" >&6; }
29936 if test "$PKGCONFIG" != "no" ; then
29937 LIB_NGTCP2_CRYPTO_GNUTLS=`
29938 if test -n "$want_tcp2_path"; then
29939 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29940 export PKG_CONFIG_LIBDIR
29943 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
29944 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
29945 $as_echo "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
29947 CPP_NGTCP2_CRYPTO_GNUTLS=`
29948 if test -n "$want_tcp2_path"; then
29949 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29950 export PKG_CONFIG_LIBDIR
29952 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
29953 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
29954 $as_echo "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
29956 LD_NGTCP2_CRYPTO_GNUTLS=`
29957 if test -n "$want_tcp2_path"; then
29958 PKG_CONFIG_LIBDIR="$want_tcp2_path"
29959 export PKG_CONFIG_LIBDIR
29962 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
29963 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
29964 $as_echo "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
29966 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
29967 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
29968 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
29970 if test "x$cross_compiling" != "xyes"; then
29971 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
29973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls" >&5
29974 $as_echo_n "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_gnutls... " >&6; }
29975 if ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial+:} false; then :
29976 $as_echo_n "(cached) " >&6
29978 ac_check_lib_save_LIBS=$LIBS
29979 LIBS="-lngtcp2_crypto_gnutls $LIBS"
29980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29981 /* end confdefs.h. */
29987 char ngtcp2_crypto_ctx_initial ();
29990 return ngtcp2_crypto_ctx_initial ();
29995 if ac_fn_c_try_link "$LINENO"; then :
29996 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=yes
29998 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial=no
30000 rm -f core conftest.err conftest.$ac_objext \
30001 conftest$ac_exeext conftest.$ac_ext
30002 LIBS=$ac_check_lib_save_LIBS
30004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&5
30005 $as_echo "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" >&6; }
30006 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_ctx_initial" = xyes; then :
30008 for ac_header in ngtcp2/ngtcp2_crypto.h
30010 ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
30011 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes; then :
30012 cat >>confdefs.h <<_ACEOF
30013 #define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1
30017 $as_echo "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
30019 USE_NGTCP2_CRYPTO_GNUTLS=1
30021 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
30022 export CURL_LIBRARY_PATH
30023 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
30024 $as_echo "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
30032 LDFLAGS=$CLEANLDFLAGS
30033 CPPFLAGS=$CLEANCPPFLAGS
30040 if test X"$want_tcp2" != Xdefault; then
30041 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
30049 if test "x$NGTCP2_ENABLED" = "x"; then
30050 # without ngtcp2, nghttp3 is of no use for us
30055 # Check whether --with-nghttp3 was given.
30056 if test "${with_nghttp3+set}" = set; then :
30057 withval=$with_nghttp3; OPT_NGHTTP3=$withval
30060 case "$OPT_NGHTTP3" in
30065 want_nghttp3="default"
30066 want_nghttp3_path=""
30070 want_nghttp3_path="$withval/lib/pkgconfig"
30074 curl_http3_msg="no (--with-nghttp3)"
30075 if test X"$want_nghttp3" != Xno; then
30076 CLEANLDFLAGS="$LDFLAGS"
30077 CLEANCPPFLAGS="$CPPFLAGS"
30081 if test -n "$PKG_CONFIG"; then
30082 PKGCONFIG="$PKG_CONFIG"
30084 if test -n "$ac_tool_prefix"; then
30085 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30086 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30088 $as_echo_n "checking for $ac_word... " >&6; }
30089 if ${ac_cv_path_PKGCONFIG+:} false; then :
30090 $as_echo_n "(cached) " >&6
30094 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30098 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30099 for as_dir in $as_dummy
30102 test -z "$as_dir" && as_dir=.
30103 for ac_exec_ext in '' $ac_executable_extensions; do
30104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30105 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30116 PKGCONFIG=$ac_cv_path_PKGCONFIG
30117 if test -n "$PKGCONFIG"; then
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30119 $as_echo "$PKGCONFIG" >&6; }
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30122 $as_echo "no" >&6; }
30127 if test -z "$ac_cv_path_PKGCONFIG"; then
30128 ac_pt_PKGCONFIG=$PKGCONFIG
30129 # Extract the first word of "pkg-config", so it can be a program name with args.
30130 set dummy pkg-config; ac_word=$2
30131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30132 $as_echo_n "checking for $ac_word... " >&6; }
30133 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
30134 $as_echo_n "(cached) " >&6
30136 case $ac_pt_PKGCONFIG in
30138 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30142 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30143 for as_dir in $as_dummy
30146 test -z "$as_dir" && as_dir=.
30147 for ac_exec_ext in '' $ac_executable_extensions; do
30148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30149 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30160 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30161 if test -n "$ac_pt_PKGCONFIG"; then
30162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30163 $as_echo "$ac_pt_PKGCONFIG" >&6; }
30165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30166 $as_echo "no" >&6; }
30169 if test "x$ac_pt_PKGCONFIG" = x; then
30172 case $cross_compiling:$ac_tool_warned in
30174 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30175 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30176 ac_tool_warned=yes ;;
30178 PKGCONFIG=$ac_pt_PKGCONFIG
30181 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30186 if test "x$PKGCONFIG" != "xno"; then
30187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
30188 $as_echo_n "checking for libnghttp3 options with pkg-config... " >&6; }
30190 if test -n "$want_nghttp3_path"; then
30191 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30192 export PKG_CONFIG_LIBDIR
30194 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
30196 if test -z "$itexists"; then
30198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199 $as_echo "no" >&6; }
30201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
30202 $as_echo "found" >&6; }
30207 if test "$PKGCONFIG" != "no" ; then
30209 if test -n "$want_nghttp3_path"; then
30210 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30211 export PKG_CONFIG_LIBDIR
30214 $PKGCONFIG --libs-only-l libnghttp3`
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
30216 $as_echo "$as_me: -l is $LIB_NGHTTP3" >&6;}
30219 if test -n "$want_nghttp3_path"; then
30220 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30221 export PKG_CONFIG_LIBDIR
30223 $PKGCONFIG --cflags-only-I libnghttp3`
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
30225 $as_echo "$as_me: -I is $CPP_NGHTTP3" >&6;}
30228 if test -n "$want_nghttp3_path"; then
30229 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
30230 export PKG_CONFIG_LIBDIR
30233 $PKGCONFIG --libs-only-L libnghttp3`
30234 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
30235 $as_echo "$as_me: -L is $LD_NGHTTP3" >&6;}
30237 LDFLAGS="$LDFLAGS $LD_NGHTTP3"
30238 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
30239 LIBS="$LIB_NGHTTP3 $LIBS"
30241 if test "x$cross_compiling" != "xyes"; then
30242 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
30244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new in -lnghttp3" >&5
30245 $as_echo_n "checking for nghttp3_conn_client_new in -lnghttp3... " >&6; }
30246 if ${ac_cv_lib_nghttp3_nghttp3_conn_client_new+:} false; then :
30247 $as_echo_n "(cached) " >&6
30249 ac_check_lib_save_LIBS=$LIBS
30250 LIBS="-lnghttp3 $LIBS"
30251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30252 /* end confdefs.h. */
30258 char nghttp3_conn_client_new ();
30261 return nghttp3_conn_client_new ();
30266 if ac_fn_c_try_link "$LINENO"; then :
30267 ac_cv_lib_nghttp3_nghttp3_conn_client_new=yes
30269 ac_cv_lib_nghttp3_nghttp3_conn_client_new=no
30271 rm -f core conftest.err conftest.$ac_objext \
30272 conftest$ac_exeext conftest.$ac_ext
30273 LIBS=$ac_check_lib_save_LIBS
30275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&5
30276 $as_echo "$ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&6; }
30277 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new" = xyes; then :
30279 for ac_header in nghttp3/nghttp3.h
30281 ac_fn_c_check_header_mongrel "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
30282 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes; then :
30283 cat >>confdefs.h <<_ACEOF
30284 #define HAVE_NGHTTP3_NGHTTP3_H 1
30286 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
30289 $as_echo "#define USE_NGHTTP3 1" >>confdefs.h
30293 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
30294 export CURL_LIBRARY_PATH
30295 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
30296 $as_echo "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
30297 experimental="$experimental HTTP3"
30305 LDFLAGS=$CLEANLDFLAGS
30306 CPPFLAGS=$CLEANCPPFLAGS
30313 if test X"$want_nghttp3" != Xdefault; then
30314 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
30323 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
30324 # without HTTP or with ngtcp2, quiche is no use
30329 # Check whether --with-quiche was given.
30330 if test "${with_quiche+set}" = set; then :
30331 withval=$with_quiche; OPT_QUICHE=$withval
30334 case "$OPT_QUICHE" in
30339 want_quiche="default"
30340 want_quiche_path=""
30344 want_quiche_path="$withval"
30348 if test X"$want_quiche" != Xno; then
30349 CLEANLDFLAGS="$LDFLAGS"
30350 CLEANCPPFLAGS="$CPPFLAGS"
30354 if test -n "$PKG_CONFIG"; then
30355 PKGCONFIG="$PKG_CONFIG"
30357 if test -n "$ac_tool_prefix"; then
30358 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30359 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30361 $as_echo_n "checking for $ac_word... " >&6; }
30362 if ${ac_cv_path_PKGCONFIG+:} false; then :
30363 $as_echo_n "(cached) " >&6
30367 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30371 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30372 for as_dir in $as_dummy
30375 test -z "$as_dir" && as_dir=.
30376 for ac_exec_ext in '' $ac_executable_extensions; do
30377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30378 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30389 PKGCONFIG=$ac_cv_path_PKGCONFIG
30390 if test -n "$PKGCONFIG"; then
30391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30392 $as_echo "$PKGCONFIG" >&6; }
30394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30395 $as_echo "no" >&6; }
30400 if test -z "$ac_cv_path_PKGCONFIG"; then
30401 ac_pt_PKGCONFIG=$PKGCONFIG
30402 # Extract the first word of "pkg-config", so it can be a program name with args.
30403 set dummy pkg-config; ac_word=$2
30404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30405 $as_echo_n "checking for $ac_word... " >&6; }
30406 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
30407 $as_echo_n "(cached) " >&6
30409 case $ac_pt_PKGCONFIG in
30411 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30415 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30416 for as_dir in $as_dummy
30419 test -z "$as_dir" && as_dir=.
30420 for ac_exec_ext in '' $ac_executable_extensions; do
30421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30422 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30433 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30434 if test -n "$ac_pt_PKGCONFIG"; then
30435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30436 $as_echo "$ac_pt_PKGCONFIG" >&6; }
30438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30439 $as_echo "no" >&6; }
30442 if test "x$ac_pt_PKGCONFIG" = x; then
30445 case $cross_compiling:$ac_tool_warned in
30447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30449 ac_tool_warned=yes ;;
30451 PKGCONFIG=$ac_pt_PKGCONFIG
30454 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30459 if test "x$PKGCONFIG" != "xno"; then
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
30461 $as_echo_n "checking for quiche options with pkg-config... " >&6; }
30463 if test -n "$want_quiche_path"; then
30464 PKG_CONFIG_LIBDIR="$want_quiche_path"
30465 export PKG_CONFIG_LIBDIR
30467 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
30469 if test -z "$itexists"; then
30471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30472 $as_echo "no" >&6; }
30474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
30475 $as_echo "found" >&6; }
30480 if test "$PKGCONFIG" != "no" ; then
30482 if test -n "$want_quiche_path"; then
30483 PKG_CONFIG_LIBDIR="$want_quiche_path"
30484 export PKG_CONFIG_LIBDIR
30487 $PKGCONFIG --libs-only-l quiche`
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
30489 $as_echo "$as_me: -l is $LIB_QUICHE" >&6;}
30492 if test -n "$want_quiche_path"; then
30493 PKG_CONFIG_LIBDIR="$want_quiche_path"
30494 export PKG_CONFIG_LIBDIR
30496 $PKGCONFIG --cflags-only-I quiche`
30497 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
30498 $as_echo "$as_me: -I is $CPP_QUICHE" >&6;}
30501 if test -n "$want_quiche_path"; then
30502 PKG_CONFIG_LIBDIR="$want_quiche_path"
30503 export PKG_CONFIG_LIBDIR
30506 $PKGCONFIG --libs-only-L quiche`
30507 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
30508 $as_echo "$as_me: -L is $LD_QUICHE" >&6;}
30510 LDFLAGS="$LDFLAGS $LD_QUICHE"
30511 CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
30512 LIBS="$LIB_QUICHE $LIBS"
30514 if test "x$cross_compiling" != "xyes"; then
30515 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
30517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
30518 $as_echo_n "checking for quiche_connect in -lquiche... " >&6; }
30519 if ${ac_cv_lib_quiche_quiche_connect+:} false; then :
30520 $as_echo_n "(cached) " >&6
30522 ac_check_lib_save_LIBS=$LIBS
30523 LIBS="-lquiche $LIBS"
30524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30525 /* end confdefs.h. */
30531 char quiche_connect ();
30534 return quiche_connect ();
30539 if ac_fn_c_try_link "$LINENO"; then :
30540 ac_cv_lib_quiche_quiche_connect=yes
30542 ac_cv_lib_quiche_quiche_connect=no
30544 rm -f core conftest.err conftest.$ac_objext \
30545 conftest$ac_exeext conftest.$ac_ext
30546 LIBS=$ac_check_lib_save_LIBS
30548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
30549 $as_echo "$ac_cv_lib_quiche_quiche_connect" >&6; }
30550 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes; then :
30552 for ac_header in quiche.h
30554 ac_fn_c_check_header_mongrel "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "$ac_includes_default"
30555 if test "x$ac_cv_header_quiche_h" = xyes; then :
30556 cat >>confdefs.h <<_ACEOF
30557 #define HAVE_QUICHE_H 1
30559 experimental="$experimental HTTP3"
30560 { $as_echo "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
30561 $as_echo "$as_me: HTTP3 support is experimental" >&6;}
30562 curl_h3_msg="enabled (quiche)"
30565 $as_echo "#define USE_QUICHE 1" >>confdefs.h
30569 for ac_func in quiche_conn_set_qlog_fd
30571 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
30572 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes; then :
30573 cat >>confdefs.h <<_ACEOF
30574 #define HAVE_QUICHE_CONN_SET_QLOG_FD 1
30580 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
30581 export CURL_LIBRARY_PATH
30582 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
30583 $as_echo "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
30590 LDFLAGS=$CLEANLDFLAGS
30591 CPPFLAGS=$CLEANCPPFLAGS
30597 if test X"$want_quiche" != Xdefault; then
30598 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
30604 OPT_ZSH_FPATH=default
30606 # Check whether --with-zsh-functions-dir was given.
30607 if test "${with_zsh_functions_dir+set}" = set; then :
30608 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
30611 case "$OPT_ZSH_FPATH" in
30615 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
30619 ZSH_FUNCTIONS_DIR="$withval"
30625 OPT_FISH_FPATH=default
30627 # Check whether --with-fish-functions-dir was given.
30628 if test "${with_fish_functions_dir+set}" = set; then :
30629 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
30632 case "$OPT_FISH_FPATH" in
30637 if test -n "$PKG_CONFIG"; then
30638 PKGCONFIG="$PKG_CONFIG"
30640 if test -n "$ac_tool_prefix"; then
30641 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30642 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30644 $as_echo_n "checking for $ac_word... " >&6; }
30645 if ${ac_cv_path_PKGCONFIG+:} false; then :
30646 $as_echo_n "(cached) " >&6
30650 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30654 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30655 for as_dir in $as_dummy
30658 test -z "$as_dir" && as_dir=.
30659 for ac_exec_ext in '' $ac_executable_extensions; do
30660 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30661 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30672 PKGCONFIG=$ac_cv_path_PKGCONFIG
30673 if test -n "$PKGCONFIG"; then
30674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30675 $as_echo "$PKGCONFIG" >&6; }
30677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30678 $as_echo "no" >&6; }
30683 if test -z "$ac_cv_path_PKGCONFIG"; then
30684 ac_pt_PKGCONFIG=$PKGCONFIG
30685 # Extract the first word of "pkg-config", so it can be a program name with args.
30686 set dummy pkg-config; ac_word=$2
30687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30688 $as_echo_n "checking for $ac_word... " >&6; }
30689 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
30690 $as_echo_n "(cached) " >&6
30692 case $ac_pt_PKGCONFIG in
30694 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30698 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30699 for as_dir in $as_dummy
30702 test -z "$as_dir" && as_dir=.
30703 for ac_exec_ext in '' $ac_executable_extensions; do
30704 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
30705 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
30706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
30716 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30717 if test -n "$ac_pt_PKGCONFIG"; then
30718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30719 $as_echo "$ac_pt_PKGCONFIG" >&6; }
30721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30722 $as_echo "no" >&6; }
30725 if test "x$ac_pt_PKGCONFIG" = x; then
30728 case $cross_compiling:$ac_tool_warned in
30730 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30732 ac_tool_warned=yes ;;
30734 PKGCONFIG=$ac_pt_PKGCONFIG
30737 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30742 if test "x$PKGCONFIG" != "xno"; then
30743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
30744 $as_echo_n "checking for fish options with pkg-config... " >&6; }
30746 if test -n ""; then
30747 PKG_CONFIG_LIBDIR=""
30748 export PKG_CONFIG_LIBDIR
30750 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
30752 if test -z "$itexists"; then
30754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30755 $as_echo "no" >&6; }
30757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
30758 $as_echo "found" >&6; }
30762 if test "$PKGCONFIG" != "no" ; then
30763 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
30765 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
30770 FISH_FUNCTIONS_DIR="$withval"
30776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
30777 $as_echo_n "checking for ANSI C header files... " >&6; }
30778 if ${ac_cv_header_stdc+:} false; then :
30779 $as_echo_n "(cached) " >&6
30781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30782 /* end confdefs.h. */
30783 #include <stdlib.h>
30784 #include <stdarg.h>
30785 #include <string.h>
30795 if ac_fn_c_try_compile "$LINENO"; then :
30796 ac_cv_header_stdc=yes
30798 ac_cv_header_stdc=no
30800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30802 if test $ac_cv_header_stdc = yes; then
30803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
30804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30805 /* end confdefs.h. */
30806 #include <string.h>
30809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30810 $EGREP "memchr" >/dev/null 2>&1; then :
30813 ac_cv_header_stdc=no
30819 if test $ac_cv_header_stdc = yes; then
30820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
30821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30822 /* end confdefs.h. */
30823 #include <stdlib.h>
30826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30827 $EGREP "free" >/dev/null 2>&1; then :
30830 ac_cv_header_stdc=no
30836 if test $ac_cv_header_stdc = yes; then
30837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
30838 if test "$cross_compiling" = yes; then :
30841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30842 /* end confdefs.h. */
30844 #include <stdlib.h>
30845 #if ((' ' & 0x0FF) == 0x020)
30846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
30847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
30849 # define ISLOWER(c) \
30850 (('a' <= (c) && (c) <= 'i') \
30851 || ('j' <= (c) && (c) <= 'r') \
30852 || ('s' <= (c) && (c) <= 'z'))
30853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
30856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
30861 for (i = 0; i < 256; i++)
30862 if (XOR (islower (i), ISLOWER (i))
30863 || toupper (i) != TOUPPER (i))
30868 if ac_fn_c_try_run "$LINENO"; then :
30871 ac_cv_header_stdc=no
30873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30874 conftest.$ac_objext conftest.beam conftest.$ac_ext
30879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
30880 $as_echo "$ac_cv_header_stdc" >&6; }
30881 if test $ac_cv_header_stdc = yes; then
30883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
30889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
30890 $as_echo_n "checking for malloc.h... " >&6; }
30891 if ${curl_cv_header_malloc_h+:} false; then :
30892 $as_echo_n "(cached) " >&6
30895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30896 /* end confdefs.h. */
30899 #include <malloc.h>
30904 void *p = malloc(10);
30905 void *q = calloc(10,10);
30914 if ac_fn_c_try_compile "$LINENO"; then :
30916 curl_cv_header_malloc_h="yes"
30920 curl_cv_header_malloc_h="no"
30923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
30927 $as_echo "$curl_cv_header_malloc_h" >&6; }
30928 if test "$curl_cv_header_malloc_h" = "yes"; then
30930 cat >>confdefs.h <<_ACEOF
30931 #define HAVE_MALLOC_H 1
30935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30936 /* end confdefs.h. */
30939 #include <stdlib.h>
30944 void *p = malloc(10);
30945 void *q = calloc(10,10);
30954 if ac_fn_c_try_compile "$LINENO"; then :
30956 curl_cv_need_header_malloc_h="no"
30960 curl_cv_need_header_malloc_h="yes"
30963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30965 case "$curl_cv_need_header_malloc_h" in
30968 cat >>confdefs.h <<_ACEOF
30969 #define NEED_MALLOC_H 1
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
30978 $as_echo_n "checking for memory.h... " >&6; }
30979 if ${curl_cv_header_memory_h+:} false; then :
30980 $as_echo_n "(cached) " >&6
30983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30984 /* end confdefs.h. */
30987 #include <memory.h>
30992 void *p = malloc(10);
30993 void *q = calloc(10,10);
31002 if ac_fn_c_try_compile "$LINENO"; then :
31004 curl_cv_header_memory_h="yes"
31008 curl_cv_header_memory_h="no"
31011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
31015 $as_echo "$curl_cv_header_memory_h" >&6; }
31016 if test "$curl_cv_header_memory_h" = "yes"; then
31018 cat >>confdefs.h <<_ACEOF
31019 #define HAVE_MEMORY_H 1
31023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31024 /* end confdefs.h. */
31027 #include <stdlib.h>
31032 void *p = malloc(10);
31033 void *q = calloc(10,10);
31042 if ac_fn_c_try_compile "$LINENO"; then :
31044 curl_cv_need_header_memory_h="no"
31048 curl_cv_need_header_memory_h="yes"
31051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31053 case "$curl_cv_need_header_memory_h" in
31056 cat >>confdefs.h <<_ACEOF
31057 #define NEED_MEMORY_H 1
31065 for ac_header in sys/types.h \
31108 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31109 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
31110 #ifdef HAVE_SYS_TYPES_H
31111 #include <sys/types.h>
31113 #ifdef HAVE_SYS_TIME_H
31114 #include <sys/time.h>
31116 #ifdef HAVE_SYS_SELECT_H
31117 #include <sys/select.h>
31118 #elif defined(HAVE_UNISTD_H)
31119 #include <unistd.h>
31121 #ifdef HAVE_SYS_SOCKET_H
31122 #include <sys/socket.h>
31124 #ifdef HAVE_NETINET_IN_H
31125 #include <netinet/in.h>
31127 #ifdef HAVE_NETINET_IN6_H
31128 #include <netinet/in6.h>
31130 #ifdef HAVE_SYS_UN_H
31131 #include <sys/un.h>
31136 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31137 cat >>confdefs.h <<_ACEOF
31138 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
31148 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
31149 if ${ac_cv_c_const+:} false; then :
31150 $as_echo_n "(cached) " >&6
31152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31153 /* end confdefs.h. */
31158 #ifndef __cplusplus
31159 /* Ultrix mips cc rejects this sort of thing. */
31160 typedef int charset[2];
31161 const charset cs = { 0, 0 };
31162 /* SunOS 4.1.1 cc rejects this. */
31163 char const *const *pcpcc;
31165 /* NEC SVR4.0.2 mips cc rejects this. */
31166 struct point {int x, y;};
31167 static struct point const zero = {0,0};
31168 /* AIX XL C 1.02.0.0 rejects this.
31169 It does not let you subtract one const X* pointer from another in
31170 an arm of an if-expression whose if-part is not a constant
31172 const char *g = "string";
31173 pcpcc = &g + (g ? g-g : 0);
31174 /* HPUX 7.0 cc rejects these. */
31176 ppc = (char**) pcpcc;
31177 pcpcc = (char const *const *) ppc;
31178 { /* SCO 3.2v4 cc rejects this sort of thing. */
31181 char const *s = 0 ? (char *) 0 : (char const *) 0;
31186 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
31187 int x[] = {25, 17};
31188 const int *foo = &x[0];
31191 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
31192 typedef const int *iptr;
31196 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
31197 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
31198 struct s { int j; const int *ap[3]; } bx;
31199 struct s *b = &bx; b->j = 5;
31201 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
31202 const int foo = 10;
31203 if (!foo) return 0;
31205 return !cs[0] && !zero.x;
31212 if ac_fn_c_try_compile "$LINENO"; then :
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
31220 $as_echo "$ac_cv_c_const" >&6; }
31221 if test $ac_cv_c_const = no; then
31223 $as_echo "#define const /**/" >>confdefs.h
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
31229 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
31230 if ${curl_cv_variadic_macros_c99+:} false; then :
31231 $as_echo_n "(cached) " >&6
31234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31235 /* end confdefs.h. */
31238 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
31239 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
31240 int fun3(int arg1, int arg2, int arg3);
31241 int fun2(int arg1, int arg2);
31242 int fun3(int arg1, int arg2, int arg3)
31243 { return arg1 + arg2 + arg3; }
31244 int fun2(int arg1, int arg2)
31245 { return arg1 + arg2; }
31250 int res3 = c99_vmacro3(1, 2, 3);
31251 int res2 = c99_vmacro2(1, 2);
31258 if ac_fn_c_try_compile "$LINENO"; then :
31260 curl_cv_variadic_macros_c99="yes"
31264 curl_cv_variadic_macros_c99="no"
31267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
31271 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
31272 case "$curl_cv_variadic_macros_c99" in
31275 cat >>confdefs.h <<_ACEOF
31276 #define HAVE_VARIADIC_MACROS_C99 1
31281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
31282 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
31283 if ${curl_cv_variadic_macros_gcc+:} false; then :
31284 $as_echo_n "(cached) " >&6
31287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31288 /* end confdefs.h. */
31291 #define gcc_vmacro3(first, args...) fun3(first, args)
31292 #define gcc_vmacro2(first, args...) fun2(first, args)
31293 int fun3(int arg1, int arg2, int arg3);
31294 int fun2(int arg1, int arg2);
31295 int fun3(int arg1, int arg2, int arg3)
31296 { return arg1 + arg2 + arg3; }
31297 int fun2(int arg1, int arg2)
31298 { return arg1 + arg2; }
31303 int res3 = gcc_vmacro3(1, 2, 3);
31304 int res2 = gcc_vmacro2(1, 2);
31311 if ac_fn_c_try_compile "$LINENO"; then :
31313 curl_cv_variadic_macros_gcc="yes"
31317 curl_cv_variadic_macros_gcc="no"
31320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
31324 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
31325 case "$curl_cv_variadic_macros_gcc" in
31328 cat >>confdefs.h <<_ACEOF
31329 #define HAVE_VARIADIC_MACROS_GCC 1
31335 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
31336 if test "x$ac_cv_type_size_t" = xyes; then :
31340 cat >>confdefs.h <<_ACEOF
31341 #define size_t unsigned int
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
31347 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
31348 if ${ac_cv_header_time+:} false; then :
31349 $as_echo_n "(cached) " >&6
31351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31352 /* end confdefs.h. */
31353 #include <sys/types.h>
31354 #include <sys/time.h>
31359 if ((struct tm *) 0)
31365 if ac_fn_c_try_compile "$LINENO"; then :
31366 ac_cv_header_time=yes
31368 ac_cv_header_time=no
31370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
31373 $as_echo "$ac_cv_header_time" >&6; }
31374 if test $ac_cv_header_time = yes; then
31376 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
31381 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
31383 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31384 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31385 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31386 cat >>confdefs.h <<_ACEOF
31387 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
31395 $as_echo_n "checking for struct timeval... " >&6; }
31396 if ${curl_cv_struct_timeval+:} false; then :
31397 $as_echo_n "(cached) " >&6
31400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31401 /* end confdefs.h. */
31405 #ifdef HAVE_WINDOWS_H
31406 #ifndef WIN32_LEAN_AND_MEAN
31407 #define WIN32_LEAN_AND_MEAN
31409 #include <windows.h>
31410 #ifdef HAVE_WINSOCK2_H
31411 #include <winsock2.h>
31413 #ifdef HAVE_WINSOCK_H
31414 #include <winsock.h>
31418 #ifdef HAVE_SYS_TYPES_H
31419 #include <sys/types.h>
31421 #ifdef HAVE_SYS_TIME_H
31422 #include <sys/time.h>
31423 #ifdef TIME_WITH_SYS_TIME
31431 #ifdef HAVE_SYS_SOCKET_H
31432 #include <sys/socket.h>
31447 if ac_fn_c_try_compile "$LINENO"; then :
31449 curl_cv_struct_timeval="yes"
31453 curl_cv_struct_timeval="no"
31456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
31460 $as_echo "$curl_cv_struct_timeval" >&6; }
31461 case "$curl_cv_struct_timeval" in
31464 cat >>confdefs.h <<_ACEOF
31465 #define HAVE_STRUCT_TIMEVAL 1
31473 if test "x$cross_compiling" != xyes; then
31475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
31476 $as_echo_n "checking run-time libs availability... " >&6; }
31478 old=$LD_LIBRARY_PATH
31479 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
31480 export LD_LIBRARY_PATH
31481 if test "$cross_compiling" = yes; then :
31482 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31483 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31484 as_fn_error $? "cannot run test program while cross compiling
31485 See \`config.log' for more details" "$LINENO" 5; }
31487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31488 /* end confdefs.h. */
31496 if ac_fn_c_try_run "$LINENO"; then :
31497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
31498 $as_echo "fine" >&6; }
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
31501 $as_echo "failed" >&6; }
31502 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
31505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31506 conftest.$ac_objext conftest.beam conftest.$ac_ext
31509 LD_LIBRARY_PATH=$old # restore
31515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
31516 $as_echo_n "checking size of size_t... " >&6; }
31517 if ${ac_cv_sizeof_size_t+:} false; then :
31518 $as_echo_n "(cached) " >&6
31520 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31522 /* end confdefs.h. */
31524 #include <sys/types.h>
31529 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
31534 if ac_fn_c_try_compile "$LINENO"; then :
31535 ac_cv_sizeof_size_t=$ac_size
31537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31538 if test x$ac_cv_sizeof_size_t != x ; then break; fi
31543 if test x$ac_cv_sizeof_size_t = x ; then
31544 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
31546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
31547 $as_echo "$ac_cv_sizeof_size_t" >&6; }
31549 cat >>confdefs.h <<_ACEOF
31550 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
31554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
31555 $as_echo_n "checking size of long... " >&6; }
31556 if ${ac_cv_sizeof_long+:} false; then :
31557 $as_echo_n "(cached) " >&6
31559 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31561 /* end confdefs.h. */
31563 #include <sys/types.h>
31568 switch (0) case 0: case (sizeof (long) == $ac_size):;
31573 if ac_fn_c_try_compile "$LINENO"; then :
31574 ac_cv_sizeof_long=$ac_size
31576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31577 if test x$ac_cv_sizeof_long != x ; then break; fi
31582 if test x$ac_cv_sizeof_long = x ; then
31583 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
31585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
31586 $as_echo "$ac_cv_sizeof_long" >&6; }
31588 cat >>confdefs.h <<_ACEOF
31589 #define SIZEOF_LONG $ac_cv_sizeof_long
31593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
31594 $as_echo_n "checking size of int... " >&6; }
31595 if ${ac_cv_sizeof_int+:} false; then :
31596 $as_echo_n "(cached) " >&6
31598 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31600 /* end confdefs.h. */
31602 #include <sys/types.h>
31607 switch (0) case 0: case (sizeof (int) == $ac_size):;
31612 if ac_fn_c_try_compile "$LINENO"; then :
31613 ac_cv_sizeof_int=$ac_size
31615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31616 if test x$ac_cv_sizeof_int != x ; then break; fi
31621 if test x$ac_cv_sizeof_int = x ; then
31622 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
31624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
31625 $as_echo "$ac_cv_sizeof_int" >&6; }
31627 cat >>confdefs.h <<_ACEOF
31628 #define SIZEOF_INT $ac_cv_sizeof_int
31632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
31633 $as_echo_n "checking size of short... " >&6; }
31634 if ${ac_cv_sizeof_short+:} false; then :
31635 $as_echo_n "(cached) " >&6
31637 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31639 /* end confdefs.h. */
31641 #include <sys/types.h>
31646 switch (0) case 0: case (sizeof (short) == $ac_size):;
31651 if ac_fn_c_try_compile "$LINENO"; then :
31652 ac_cv_sizeof_short=$ac_size
31654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31655 if test x$ac_cv_sizeof_short != x ; then break; fi
31660 if test x$ac_cv_sizeof_short = x ; then
31661 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
31663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
31664 $as_echo "$ac_cv_sizeof_short" >&6; }
31666 cat >>confdefs.h <<_ACEOF
31667 #define SIZEOF_SHORT $ac_cv_sizeof_short
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
31672 $as_echo_n "checking size of time_t... " >&6; }
31673 if ${ac_cv_sizeof_time_t+:} false; then :
31674 $as_echo_n "(cached) " >&6
31676 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31678 /* end confdefs.h. */
31680 #include <sys/types.h>
31685 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
31690 if ac_fn_c_try_compile "$LINENO"; then :
31691 ac_cv_sizeof_time_t=$ac_size
31693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31694 if test x$ac_cv_sizeof_time_t != x ; then break; fi
31699 if test x$ac_cv_sizeof_time_t = x ; then
31700 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
31702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
31703 $as_echo "$ac_cv_sizeof_time_t" >&6; }
31705 cat >>confdefs.h <<_ACEOF
31706 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
31710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
31711 $as_echo_n "checking size of off_t... " >&6; }
31712 if ${ac_cv_sizeof_off_t+:} false; then :
31713 $as_echo_n "(cached) " >&6
31715 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31717 /* end confdefs.h. */
31719 #include <sys/types.h>
31724 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
31729 if ac_fn_c_try_compile "$LINENO"; then :
31730 ac_cv_sizeof_off_t=$ac_size
31732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31733 if test x$ac_cv_sizeof_off_t != x ; then break; fi
31738 if test x$ac_cv_sizeof_off_t = x ; then
31739 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
31741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
31742 $as_echo "$ac_cv_sizeof_off_t" >&6; }
31744 cat >>confdefs.h <<_ACEOF
31745 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
31751 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
31752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
31753 $as_echo_n "checking size of curl_off_t... " >&6; }
31754 if ${ac_cv_sizeof_curl_off_t+:} false; then :
31755 $as_echo_n "(cached) " >&6
31757 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
31758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31759 /* end confdefs.h. */
31761 #include <sys/types.h>
31763 #include <curl/system.h>
31768 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
31773 if ac_fn_c_try_compile "$LINENO"; then :
31774 ac_cv_sizeof_curl_off_t=$ac_size
31776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31777 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
31782 if test x$ac_cv_sizeof_curl_off_t = x ; then
31783 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
31785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
31786 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
31788 cat >>confdefs.h <<_ACEOF
31789 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
31795 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
31796 if test "x$ac_cv_type_long_long" = xyes; then :
31798 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
31805 if test "xyes" = "x$longlong"; then
31806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
31807 $as_echo_n "checking if numberLL works... " >&6; }
31808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31809 /* end confdefs.h. */
31816 long long val = 1000LL;
31823 if ac_fn_c_try_compile "$LINENO"; then :
31825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31826 $as_echo "yes" >&6; }
31828 $as_echo "#define HAVE_LL 1" >>confdefs.h
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31834 $as_echo "no" >&6; }
31837 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31841 # check for ssize_t
31842 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
31843 if test "x$ac_cv_type_ssize_t" = xyes; then :
31847 $as_echo "#define ssize_t int" >>confdefs.h
31852 # check for bool type
31853 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
31854 #ifdef HAVE_SYS_TYPES_H
31855 #include <sys/types.h>
31857 #ifdef HAVE_STDBOOL_H
31858 #include <stdbool.h>
31862 if test "x$ac_cv_type_bool" = xyes; then :
31865 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
31871 # check for sa_family_t
31872 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
31873 #ifdef HAVE_SYS_SOCKET_H
31874 #include <sys/socket.h>
31878 if test "x$ac_cv_type_sa_family_t" = xyes; then :
31880 $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
31884 # The windows name?
31885 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
31886 #ifdef HAVE_SYS_SOCKET_H
31887 #include <sys/socket.h>
31891 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
31893 $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
31897 $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
31905 # check for suseconds_t
31906 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
31907 #ifdef HAVE_SYS_TYPES_H
31908 #include <sys/types.h>
31910 #ifdef HAVE_SYS_TIME_H
31911 #include <sys/time.h>
31915 if test "x$ac_cv_type_suseconds_t" = xyes; then :
31918 $as_echo "#define HAVE_SUSECONDS_T 1" >>confdefs.h
31924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
31925 $as_echo_n "checking if time_t is unsigned... " >&6; }
31927 old=$LD_LIBRARY_PATH
31928 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
31929 export LD_LIBRARY_PATH
31930 if test "$cross_compiling" = yes; then :
31931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31932 $as_echo "no" >&6; }
31935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31936 /* end confdefs.h. */
31939 #include <limits.h>
31944 if ac_fn_c_try_run "$LINENO"; then :
31945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31946 $as_echo "yes" >&6; }
31948 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
31952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31953 $as_echo "no" >&6; }
31956 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
31957 conftest.$ac_objext conftest.beam conftest.$ac_ext
31960 LD_LIBRARY_PATH=$old # restore
31964 curl_includes_poll="\
31965 /* includes start */
31966 #ifdef HAVE_SYS_TYPES_H
31967 # include <sys/types.h>
31972 #ifdef HAVE_SYS_POLL_H
31973 # include <sys/poll.h>
31975 /* includes end */"
31976 for ac_header in sys/types.h poll.h sys/poll.h
31978 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31979 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
31981 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31982 cat >>confdefs.h <<_ACEOF
31983 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31993 tst_poll_events_macro_defined="unknown"
31995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31996 /* end confdefs.h. */
31999 $curl_includes_poll
32004 #if defined(events) || defined(revents)
32007 force compilation error
32015 if ac_fn_c_try_compile "$LINENO"; then :
32017 tst_poll_events_macro_defined="yes"
32021 tst_poll_events_macro_defined="no"
32024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32026 if test "$tst_poll_events_macro_defined" = "yes"; then
32027 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
32029 cat >>confdefs.h <<_EOF
32030 #define CURL_PULL_SYS_POLL_H 1
32039 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
32041 #ifdef HAVE_WINDOWS_H
32042 #ifndef WIN32_LEAN_AND_MEAN
32043 #define WIN32_LEAN_AND_MEAN
32045 #include <windows.h>
32046 #ifdef HAVE_WINSOCK2_H
32047 #include <winsock2.h>
32049 #ifdef HAVE_WINSOCK_H
32050 #include <winsock.h>
32054 #ifdef HAVE_SYS_TYPES_H
32055 #include <sys/types.h>
32057 #ifdef HAVE_SYS_SOCKET_H
32058 #include <sys/socket.h>
32060 #ifdef HAVE_NETINET_IN_H
32061 #include <netinet/in.h>
32063 #ifdef HAVE_ARPA_INET_H
32064 #include <arpa/inet.h>
32069 if test "x$ac_cv_type_in_addr_t" = xyes; then :
32073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
32074 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
32075 if ${curl_cv_in_addr_t_equiv+:} false; then :
32076 $as_echo_n "(cached) " >&6
32079 curl_cv_in_addr_t_equiv="unknown"
32080 for t in "unsigned long" int size_t unsigned long; do
32081 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
32082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32083 /* end confdefs.h. */
32087 #ifdef HAVE_WINDOWS_H
32088 #ifndef WIN32_LEAN_AND_MEAN
32089 #define WIN32_LEAN_AND_MEAN
32091 #include <windows.h>
32092 #ifdef HAVE_WINSOCK2_H
32093 #include <winsock2.h>
32095 #ifdef HAVE_WINSOCK_H
32096 #include <winsock.h>
32100 #ifdef HAVE_SYS_TYPES_H
32101 #include <sys/types.h>
32103 #ifdef HAVE_SYS_SOCKET_H
32104 #include <sys/socket.h>
32106 #ifdef HAVE_NETINET_IN_H
32107 #include <netinet/in.h>
32109 #ifdef HAVE_ARPA_INET_H
32110 #include <arpa/inet.h>
32117 $t data = inet_addr ("1.2.3.4");
32124 if ac_fn_c_try_link "$LINENO"; then :
32126 curl_cv_in_addr_t_equiv="$t"
32129 rm -f core conftest.err conftest.$ac_objext \
32130 conftest$ac_exeext conftest.$ac_ext
32135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
32136 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
32137 case "$curl_cv_in_addr_t_equiv" in
32139 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
32143 cat >>confdefs.h <<_ACEOF
32144 #define in_addr_t $curl_cv_in_addr_t_equiv
32155 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
32157 #ifdef HAVE_WINDOWS_H
32158 #ifndef WIN32_LEAN_AND_MEAN
32159 #define WIN32_LEAN_AND_MEAN
32161 #include <windows.h>
32162 #ifdef HAVE_WINSOCK2_H
32163 #include <winsock2.h>
32166 #ifdef HAVE_SYS_TYPES_H
32167 #include <sys/types.h>
32169 #ifdef HAVE_SYS_SOCKET_H
32170 #include <sys/socket.h>
32172 #ifdef HAVE_NETINET_IN_H
32173 #include <netinet/in.h>
32175 #ifdef HAVE_ARPA_INET_H
32176 #include <arpa/inet.h>
32181 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
32183 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
32190 for ac_header in signal.h
32192 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
32193 if test "x$ac_cv_header_signal_h" = xyes; then :
32194 cat >>confdefs.h <<_ACEOF
32195 #define HAVE_SIGNAL_H 1
32202 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
32203 #ifdef HAVE_SIGNAL_H
32204 #include <signal.h>
32208 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
32211 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
32216 case "$ac_cv_type_sig_atomic_t" in
32219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
32220 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
32221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32222 /* end confdefs.h. */
32225 #ifdef HAVE_SIGNAL_H
32226 #include <signal.h>
32232 static volatile sig_atomic_t dummy = 0;
32239 if ac_fn_c_try_link "$LINENO"; then :
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32242 $as_echo "no" >&6; }
32243 curl_cv_sig_atomic_t_volatile="no"
32247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32248 $as_echo "yes" >&6; }
32249 curl_cv_sig_atomic_t_volatile="yes"
32252 rm -f core conftest.err conftest.$ac_objext \
32253 conftest$ac_exeext conftest.$ac_ext
32255 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
32257 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
32264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
32265 $as_echo_n "checking return type of signal handlers... " >&6; }
32266 if ${ac_cv_type_signal+:} false; then :
32267 $as_echo_n "(cached) " >&6
32269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32270 /* end confdefs.h. */
32271 #include <sys/types.h>
32272 #include <signal.h>
32276 return *(signal (0, 0)) (0) == 1;
32281 if ac_fn_c_try_compile "$LINENO"; then :
32282 ac_cv_type_signal=int
32284 ac_cv_type_signal=void
32286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
32289 $as_echo "$ac_cv_type_signal" >&6; }
32291 cat >>confdefs.h <<_ACEOF
32292 #define RETSIGTYPE $ac_cv_type_signal
32298 for ac_header in sys/select.h sys/socket.h
32300 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32301 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32302 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32303 cat >>confdefs.h <<_ACEOF
32304 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
32313 $as_echo_n "checking for select... " >&6; }
32314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32315 /* end confdefs.h. */
32319 #ifdef HAVE_WINDOWS_H
32320 #ifndef WIN32_LEAN_AND_MEAN
32321 #define WIN32_LEAN_AND_MEAN
32323 #include <windows.h>
32324 #ifdef HAVE_WINSOCK2_H
32325 #include <winsock2.h>
32327 #ifdef HAVE_WINSOCK_H
32328 #include <winsock.h>
32332 #ifdef HAVE_SYS_TYPES_H
32333 #include <sys/types.h>
32335 #ifdef HAVE_SYS_TIME_H
32336 #include <sys/time.h>
32337 #ifdef TIME_WITH_SYS_TIME
32345 #ifndef HAVE_WINDOWS_H
32346 #ifdef HAVE_PROTO_BSDSOCKET_H
32347 #include <proto/bsdsocket.h>
32348 struct Library *SocketBase = NULL;
32349 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
32351 #ifdef HAVE_SYS_SELECT_H
32352 #include <sys/select.h>
32353 #elif defined(HAVE_UNISTD_H)
32354 #include <unistd.h>
32356 #ifdef HAVE_SYS_SOCKET_H
32357 #include <sys/socket.h>
32364 select(0, 0, 0, 0, 0);
32371 if ac_fn_c_try_link "$LINENO"; then :
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32374 $as_echo "yes" >&6; }
32375 curl_cv_select="yes"
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32380 $as_echo "no" >&6; }
32381 curl_cv_select="no"
32384 rm -f core conftest.err conftest.$ac_objext \
32385 conftest$ac_exeext conftest.$ac_ext
32387 if test "$curl_cv_select" = "yes"; then
32388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
32389 $as_echo_n "checking types of args and return type for select... " >&6; }
32390 if ${curl_cv_func_select_args+:} false; then :
32391 $as_echo_n "(cached) " >&6
32394 curl_cv_func_select_args="unknown"
32395 for sel_retv in 'int' 'ssize_t'; do
32396 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
32397 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
32398 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
32399 if test "$curl_cv_func_select_args" = "unknown"; then
32400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32401 /* end confdefs.h. */
32405 #ifdef HAVE_WINDOWS_H
32406 #ifndef WIN32_LEAN_AND_MEAN
32407 #define WIN32_LEAN_AND_MEAN
32409 #include <windows.h>
32410 #ifdef HAVE_WINSOCK2_H
32411 #include <winsock2.h>
32413 #ifdef HAVE_WINSOCK_H
32414 #include <winsock.h>
32417 #define SELECTCALLCONV PASCAL
32419 #ifdef HAVE_SYS_TYPES_H
32420 #include <sys/types.h>
32422 #ifdef HAVE_SYS_TIME_H
32423 #include <sys/time.h>
32424 #ifdef TIME_WITH_SYS_TIME
32432 #ifndef HAVE_WINDOWS_H
32433 #ifdef HAVE_PROTO_BSDSOCKET_H
32434 #include <proto/bsdsocket.h>
32435 struct Library *SocketBase = NULL;
32436 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
32438 #ifdef HAVE_SYS_SELECT_H
32439 #include <sys/select.h>
32440 #elif defined(HAVE_UNISTD_H)
32441 #include <unistd.h>
32443 #ifdef HAVE_SYS_SOCKET_H
32444 #include <sys/socket.h>
32446 #define SELECTCALLCONV
32448 #ifndef HAVE_STRUCT_TIMEVAL
32454 #ifndef HAVE_PROTO_BSDSOCKET_H
32455 extern $sel_retv SELECTCALLCONV
32467 $sel_arg234 rfds=0;
32468 $sel_arg234 wfds=0;
32469 $sel_arg234 efds=0;
32470 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
32477 if ac_fn_c_try_compile "$LINENO"; then :
32479 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
32482 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
32491 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
32492 if test "$curl_cv_func_select_args" = "unknown"; then
32493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
32494 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
32496 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
32498 select_prev_IFS=$IFS; IFS=','
32499 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
32500 IFS=$select_prev_IFS
32503 sel_qual_type_arg5=$3
32506 cat >>confdefs.h <<_ACEOF
32507 #define SELECT_TYPE_ARG1 $1
32511 cat >>confdefs.h <<_ACEOF
32512 #define SELECT_TYPE_ARG234 $2
32516 cat >>confdefs.h <<_ACEOF
32517 #define SELECT_TYPE_RETV $4
32523 case $prev_sh_opts in
32531 case "$sel_qual_type_arg5" in
32533 sel_qual_arg5=const
32534 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
32538 sel_type_arg5=$sel_qual_type_arg5
32543 cat >>confdefs.h <<_ACEOF
32544 #define SELECT_QUAL_ARG5 $sel_qual_arg5
32548 cat >>confdefs.h <<_ACEOF
32549 #define SELECT_TYPE_ARG5 $sel_type_arg5
32553 case $prev_sh_opts in
32562 cat >>confdefs.h <<_ACEOF
32563 #define HAVE_SELECT 1
32566 curl_cv_func_select="yes"
32572 for ac_header in sys/types.h sys/socket.h
32574 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32575 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32576 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32577 cat >>confdefs.h <<_ACEOF
32578 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
32587 $as_echo_n "checking for recv... " >&6; }
32588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32589 /* end confdefs.h. */
32593 #ifdef HAVE_WINDOWS_H
32594 #ifndef WIN32_LEAN_AND_MEAN
32595 #define WIN32_LEAN_AND_MEAN
32597 #include <windows.h>
32598 #ifdef HAVE_WINSOCK2_H
32599 #include <winsock2.h>
32601 #ifdef HAVE_WINSOCK_H
32602 #include <winsock.h>
32606 #ifdef HAVE_PROTO_BSDSOCKET_H
32607 #include <proto/bsdsocket.h>
32608 struct Library *SocketBase = NULL;
32610 #ifdef HAVE_SYS_TYPES_H
32611 #include <sys/types.h>
32613 #ifdef HAVE_SYS_SOCKET_H
32614 #include <sys/socket.h>
32628 if ac_fn_c_try_link "$LINENO"; then :
32630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32631 $as_echo "yes" >&6; }
32636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32637 $as_echo "no" >&6; }
32641 rm -f core conftest.err conftest.$ac_objext \
32642 conftest$ac_exeext conftest.$ac_ext
32644 if test "$curl_cv_recv" = "yes"; then
32645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
32646 $as_echo_n "checking types of args and return type for recv... " >&6; }
32647 if ${curl_cv_func_recv_args+:} false; then :
32648 $as_echo_n "(cached) " >&6
32651 curl_cv_func_recv_args="unknown"
32652 for recv_retv in 'int' 'ssize_t'; do
32653 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
32654 for recv_arg2 in 'char *' 'void *'; do
32655 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
32656 for recv_arg4 in 'int' 'unsigned int'; do
32657 if test "$curl_cv_func_recv_args" = "unknown"; then
32658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32659 /* end confdefs.h. */
32663 #ifdef HAVE_WINDOWS_H
32664 #ifndef WIN32_LEAN_AND_MEAN
32665 #define WIN32_LEAN_AND_MEAN
32667 #include <windows.h>
32668 #ifdef HAVE_WINSOCK2_H
32669 #include <winsock2.h>
32671 #ifdef HAVE_WINSOCK_H
32672 #include <winsock.h>
32675 #define RECVCALLCONV PASCAL
32677 #ifdef HAVE_PROTO_BSDSOCKET_H
32678 #include <proto/bsdsocket.h>
32679 struct Library *SocketBase = NULL;
32681 #ifdef HAVE_SYS_TYPES_H
32682 #include <sys/types.h>
32684 #ifdef HAVE_SYS_SOCKET_H
32685 #include <sys/socket.h>
32687 #define RECVCALLCONV
32689 #ifndef HAVE_PROTO_BSDSOCKET_H
32690 extern $recv_retv RECVCALLCONV
32691 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
32700 $recv_arg4 flags=0;
32701 $recv_retv res = recv(s, buf, len, flags);
32708 if ac_fn_c_try_compile "$LINENO"; then :
32710 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
32713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
32723 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
32724 if test "$curl_cv_func_recv_args" = "unknown"; then
32725 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
32727 recv_prev_IFS=$IFS; IFS=','
32728 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
32733 cat >>confdefs.h <<_ACEOF
32734 #define RECV_TYPE_ARG1 $1
32738 cat >>confdefs.h <<_ACEOF
32739 #define RECV_TYPE_ARG2 $2
32743 cat >>confdefs.h <<_ACEOF
32744 #define RECV_TYPE_ARG3 $3
32748 cat >>confdefs.h <<_ACEOF
32749 #define RECV_TYPE_ARG4 $4
32753 cat >>confdefs.h <<_ACEOF
32754 #define RECV_TYPE_RETV $5
32759 cat >>confdefs.h <<_ACEOF
32760 #define HAVE_RECV 1
32763 curl_cv_func_recv="yes"
32766 as_fn_error $? "Unable to link function recv" "$LINENO" 5
32770 for ac_header in sys/types.h sys/socket.h
32772 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32773 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
32774 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32775 cat >>confdefs.h <<_ACEOF
32776 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
32785 $as_echo_n "checking for send... " >&6; }
32786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32787 /* end confdefs.h. */
32791 #ifdef HAVE_WINDOWS_H
32792 #ifndef WIN32_LEAN_AND_MEAN
32793 #define WIN32_LEAN_AND_MEAN
32795 #include <windows.h>
32796 #ifdef HAVE_WINSOCK2_H
32797 #include <winsock2.h>
32799 #ifdef HAVE_WINSOCK_H
32800 #include <winsock.h>
32804 #ifdef HAVE_PROTO_BSDSOCKET_H
32805 #include <proto/bsdsocket.h>
32806 struct Library *SocketBase = NULL;
32808 #ifdef HAVE_SYS_TYPES_H
32809 #include <sys/types.h>
32811 #ifdef HAVE_SYS_SOCKET_H
32812 #include <sys/socket.h>
32826 if ac_fn_c_try_link "$LINENO"; then :
32828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32829 $as_echo "yes" >&6; }
32834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32835 $as_echo "no" >&6; }
32839 rm -f core conftest.err conftest.$ac_objext \
32840 conftest$ac_exeext conftest.$ac_ext
32842 if test "$curl_cv_send" = "yes"; then
32843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
32844 $as_echo_n "checking types of args and return type for send... " >&6; }
32845 if ${curl_cv_func_send_args+:} false; then :
32846 $as_echo_n "(cached) " >&6
32849 curl_cv_func_send_args="unknown"
32850 for send_retv in 'int' 'ssize_t'; do
32851 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
32852 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
32853 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
32854 for send_arg4 in 'int' 'unsigned int'; do
32855 if test "$curl_cv_func_send_args" = "unknown"; then
32856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32857 /* end confdefs.h. */
32861 #ifdef HAVE_WINDOWS_H
32862 #ifndef WIN32_LEAN_AND_MEAN
32863 #define WIN32_LEAN_AND_MEAN
32865 #include <windows.h>
32866 #ifdef HAVE_WINSOCK2_H
32867 #include <winsock2.h>
32869 #ifdef HAVE_WINSOCK_H
32870 #include <winsock.h>
32873 #define SENDCALLCONV PASCAL
32875 #ifdef HAVE_PROTO_BSDSOCKET_H
32876 #include <proto/bsdsocket.h>
32877 struct Library *SocketBase = NULL;
32879 #ifdef HAVE_SYS_TYPES_H
32880 #include <sys/types.h>
32882 #ifdef HAVE_SYS_SOCKET_H
32883 #include <sys/socket.h>
32885 #define SENDCALLCONV
32887 #ifndef HAVE_PROTO_BSDSOCKET_H
32888 extern $send_retv SENDCALLCONV
32889 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
32897 $send_arg4 flags=0;
32898 $send_retv res = send(s, 0, len, flags);
32905 if ac_fn_c_try_compile "$LINENO"; then :
32907 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
32910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
32920 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
32921 if test "$curl_cv_func_send_args" = "unknown"; then
32922 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
32924 send_prev_IFS=$IFS; IFS=','
32925 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
32929 send_qual_type_arg2=$2
32932 cat >>confdefs.h <<_ACEOF
32933 #define SEND_TYPE_ARG1 $1
32937 cat >>confdefs.h <<_ACEOF
32938 #define SEND_TYPE_ARG3 $3
32942 cat >>confdefs.h <<_ACEOF
32943 #define SEND_TYPE_ARG4 $4
32947 cat >>confdefs.h <<_ACEOF
32948 #define SEND_TYPE_RETV $5
32954 case $prev_sh_opts in
32962 case "$send_qual_type_arg2" in
32964 send_qual_arg2=const
32965 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
32969 send_type_arg2=$send_qual_type_arg2
32974 cat >>confdefs.h <<_ACEOF
32975 #define SEND_QUAL_ARG2 $send_qual_arg2
32979 cat >>confdefs.h <<_ACEOF
32980 #define SEND_TYPE_ARG2 $send_type_arg2
32984 case $prev_sh_opts in
32993 cat >>confdefs.h <<_ACEOF
32994 #define HAVE_SEND 1
32997 curl_cv_func_send="yes"
33000 as_fn_error $? "Unable to link function send" "$LINENO" 5
33004 for ac_header in sys/types.h sys/socket.h
33006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
33008 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33009 cat >>confdefs.h <<_ACEOF
33010 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
33018 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
33019 if ${curl_cv_msg_nosignal+:} false; then :
33020 $as_echo_n "(cached) " >&6
33023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33024 /* end confdefs.h. */
33028 #ifdef HAVE_WINDOWS_H
33029 #ifndef WIN32_LEAN_AND_MEAN
33030 #define WIN32_LEAN_AND_MEAN
33032 #include <windows.h>
33033 #ifdef HAVE_WINSOCK2_H
33034 #include <winsock2.h>
33036 #ifdef HAVE_WINSOCK_H
33037 #include <winsock.h>
33041 #ifdef HAVE_PROTO_BSDSOCKET_H
33042 #include <proto/bsdsocket.h>
33043 struct Library *SocketBase = NULL;
33045 #ifdef HAVE_SYS_TYPES_H
33046 #include <sys/types.h>
33048 #ifdef HAVE_SYS_SOCKET_H
33049 #include <sys/socket.h>
33056 int flag=MSG_NOSIGNAL;
33063 if ac_fn_c_try_compile "$LINENO"; then :
33065 curl_cv_msg_nosignal="yes"
33069 curl_cv_msg_nosignal="no"
33072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
33076 $as_echo "$curl_cv_msg_nosignal" >&6; }
33077 case "$curl_cv_msg_nosignal" in
33080 cat >>confdefs.h <<_ACEOF
33081 #define HAVE_MSG_NOSIGNAL 1
33089 curl_includes_unistd="\
33090 /* includes start */
33091 #ifdef HAVE_SYS_TYPES_H
33092 # include <sys/types.h>
33094 #ifdef HAVE_UNISTD_H
33095 # include <unistd.h>
33097 /* includes end */"
33098 for ac_header in sys/types.h unistd.h
33100 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33101 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
33103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33104 cat >>confdefs.h <<_ACEOF
33105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33115 tst_links_alarm="unknown"
33116 tst_proto_alarm="unknown"
33117 tst_compi_alarm="unknown"
33118 tst_allow_alarm="unknown"
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
33121 $as_echo_n "checking if alarm can be linked... " >&6; }
33122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123 /* end confdefs.h. */
33126 #define alarm innocuous_alarm
33128 # include <limits.h>
33130 # include <assert.h>
33137 #if defined __stub_alarm || defined __stub___alarm
33149 if ac_fn_c_try_link "$LINENO"; then :
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33152 $as_echo "yes" >&6; }
33153 tst_links_alarm="yes"
33157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158 $as_echo "no" >&6; }
33159 tst_links_alarm="no"
33162 rm -f core conftest.err conftest.$ac_objext \
33163 conftest$ac_exeext conftest.$ac_ext
33165 if test "$tst_links_alarm" = "yes"; then
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
33167 $as_echo_n "checking if alarm is prototyped... " >&6; }
33168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33169 /* end confdefs.h. */
33171 $curl_includes_unistd
33174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33175 $EGREP "alarm" >/dev/null 2>&1; then :
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33179 tst_proto_alarm="yes"
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185 tst_proto_alarm="no"
33192 if test "$tst_proto_alarm" = "yes"; then
33193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
33194 $as_echo_n "checking if alarm is compilable... " >&6; }
33195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33196 /* end confdefs.h. */
33199 $curl_includes_unistd
33212 if ac_fn_c_try_compile "$LINENO"; then :
33214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33215 $as_echo "yes" >&6; }
33216 tst_compi_alarm="yes"
33220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33221 $as_echo "no" >&6; }
33222 tst_compi_alarm="no"
33225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33228 if test "$tst_compi_alarm" = "yes"; then
33229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
33230 $as_echo_n "checking if alarm usage allowed... " >&6; }
33231 if test "x$curl_disallow_alarm" != "xyes"; then
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33233 $as_echo "yes" >&6; }
33234 tst_allow_alarm="yes"
33236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33237 $as_echo "no" >&6; }
33238 tst_allow_alarm="no"
33242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
33243 $as_echo_n "checking if alarm might be used... " >&6; }
33244 if test "$tst_links_alarm" = "yes" &&
33245 test "$tst_proto_alarm" = "yes" &&
33246 test "$tst_compi_alarm" = "yes" &&
33247 test "$tst_allow_alarm" = "yes"; then
33248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33249 $as_echo "yes" >&6; }
33251 cat >>confdefs.h <<_ACEOF
33252 #define HAVE_ALARM 1
33255 curl_cv_func_alarm="yes"
33257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33258 $as_echo "no" >&6; }
33259 curl_cv_func_alarm="no"
33263 curl_includes_string="\
33264 /* includes start */
33265 #ifdef HAVE_SYS_TYPES_H
33266 # include <sys/types.h>
33268 #ifdef HAVE_STRING_H
33269 # include <string.h>
33271 #ifdef HAVE_STRINGS_H
33272 # include <strings.h>
33274 /* includes end */"
33275 for ac_header in sys/types.h string.h strings.h
33277 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33278 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
33280 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33281 cat >>confdefs.h <<_ACEOF
33282 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33291 curl_includes_libgen="\
33292 /* includes start */
33293 #ifdef HAVE_SYS_TYPES_H
33294 # include <sys/types.h>
33296 #ifdef HAVE_LIBGEN_H
33297 # include <libgen.h>
33299 /* includes end */"
33300 for ac_header in sys/types.h libgen.h
33302 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33303 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
33305 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33306 cat >>confdefs.h <<_ACEOF
33307 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33317 tst_links_basename="unknown"
33318 tst_proto_basename="unknown"
33319 tst_compi_basename="unknown"
33320 tst_allow_basename="unknown"
33322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
33323 $as_echo_n "checking if basename can be linked... " >&6; }
33324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33325 /* end confdefs.h. */
33328 #define basename innocuous_basename
33330 # include <limits.h>
33332 # include <assert.h>
33339 #if defined __stub_basename || defined __stub___basename
33345 return basename ();
33351 if ac_fn_c_try_link "$LINENO"; then :
33353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33354 $as_echo "yes" >&6; }
33355 tst_links_basename="yes"
33359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33360 $as_echo "no" >&6; }
33361 tst_links_basename="no"
33364 rm -f core conftest.err conftest.$ac_objext \
33365 conftest$ac_exeext conftest.$ac_ext
33367 if test "$tst_links_basename" = "yes"; then
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
33369 $as_echo_n "checking if basename is prototyped... " >&6; }
33370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33371 /* end confdefs.h. */
33373 $curl_includes_string
33374 $curl_includes_libgen
33375 $curl_includes_unistd
33378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33379 $EGREP "basename" >/dev/null 2>&1; then :
33381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33382 $as_echo "yes" >&6; }
33383 tst_proto_basename="yes"
33387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33388 $as_echo "no" >&6; }
33389 tst_proto_basename="no"
33396 if test "$tst_proto_basename" = "yes"; then
33397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
33398 $as_echo_n "checking if basename is compilable... " >&6; }
33399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33400 /* end confdefs.h. */
33403 $curl_includes_string
33404 $curl_includes_libgen
33405 $curl_includes_unistd
33410 if(0 != basename(0))
33418 if ac_fn_c_try_compile "$LINENO"; then :
33420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33421 $as_echo "yes" >&6; }
33422 tst_compi_basename="yes"
33426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33427 $as_echo "no" >&6; }
33428 tst_compi_basename="no"
33431 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33434 if test "$tst_compi_basename" = "yes"; then
33435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
33436 $as_echo_n "checking if basename usage allowed... " >&6; }
33437 if test "x$curl_disallow_basename" != "xyes"; then
33438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33439 $as_echo "yes" >&6; }
33440 tst_allow_basename="yes"
33442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33443 $as_echo "no" >&6; }
33444 tst_allow_basename="no"
33448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
33449 $as_echo_n "checking if basename might be used... " >&6; }
33450 if test "$tst_links_basename" = "yes" &&
33451 test "$tst_proto_basename" = "yes" &&
33452 test "$tst_compi_basename" = "yes" &&
33453 test "$tst_allow_basename" = "yes"; then
33454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33455 $as_echo "yes" >&6; }
33457 cat >>confdefs.h <<_ACEOF
33458 #define HAVE_BASENAME 1
33461 curl_cv_func_basename="yes"
33463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33464 $as_echo "no" >&6; }
33465 curl_cv_func_basename="no"
33469 curl_includes_socket="\
33470 /* includes start */
33471 #ifdef HAVE_SYS_TYPES_H
33472 # include <sys/types.h>
33474 #ifdef HAVE_SOCKET_H
33475 # include <socket.h>
33477 /* includes end */"
33478 for ac_header in sys/types.h socket.h
33480 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33481 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
33483 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33484 cat >>confdefs.h <<_ACEOF
33485 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33495 tst_links_closesocket="unknown"
33496 tst_proto_closesocket="unknown"
33497 tst_compi_closesocket="unknown"
33498 tst_allow_closesocket="unknown"
33500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
33501 $as_echo_n "checking if closesocket can be linked... " >&6; }
33502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33503 /* end confdefs.h. */
33506 $curl_includes_winsock2
33507 $curl_includes_bsdsocket
33508 $curl_includes_socket
33513 if(0 != closesocket(0))
33521 if ac_fn_c_try_link "$LINENO"; then :
33523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33524 $as_echo "yes" >&6; }
33525 tst_links_closesocket="yes"
33529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33530 $as_echo "no" >&6; }
33531 tst_links_closesocket="no"
33534 rm -f core conftest.err conftest.$ac_objext \
33535 conftest$ac_exeext conftest.$ac_ext
33537 if test "$tst_links_closesocket" = "yes"; then
33538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
33539 $as_echo_n "checking if closesocket is prototyped... " >&6; }
33540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33541 /* end confdefs.h. */
33543 $curl_includes_winsock2
33544 $curl_includes_bsdsocket
33545 $curl_includes_socket
33548 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33549 $EGREP "closesocket" >/dev/null 2>&1; then :
33551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33552 $as_echo "yes" >&6; }
33553 tst_proto_closesocket="yes"
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33558 $as_echo "no" >&6; }
33559 tst_proto_closesocket="no"
33566 if test "$tst_proto_closesocket" = "yes"; then
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
33568 $as_echo_n "checking if closesocket is compilable... " >&6; }
33569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33570 /* end confdefs.h. */
33573 $curl_includes_winsock2
33574 $curl_includes_bsdsocket
33575 $curl_includes_socket
33580 if(0 != closesocket(0))
33588 if ac_fn_c_try_compile "$LINENO"; then :
33590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33591 $as_echo "yes" >&6; }
33592 tst_compi_closesocket="yes"
33596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33597 $as_echo "no" >&6; }
33598 tst_compi_closesocket="no"
33601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33604 if test "$tst_compi_closesocket" = "yes"; then
33605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
33606 $as_echo_n "checking if closesocket usage allowed... " >&6; }
33607 if test "x$curl_disallow_closesocket" != "xyes"; then
33608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33609 $as_echo "yes" >&6; }
33610 tst_allow_closesocket="yes"
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33613 $as_echo "no" >&6; }
33614 tst_allow_closesocket="no"
33618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
33619 $as_echo_n "checking if closesocket might be used... " >&6; }
33620 if test "$tst_links_closesocket" = "yes" &&
33621 test "$tst_proto_closesocket" = "yes" &&
33622 test "$tst_compi_closesocket" = "yes" &&
33623 test "$tst_allow_closesocket" = "yes"; then
33624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33625 $as_echo "yes" >&6; }
33627 cat >>confdefs.h <<_ACEOF
33628 #define HAVE_CLOSESOCKET 1
33631 curl_cv_func_closesocket="yes"
33633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33634 $as_echo "no" >&6; }
33635 curl_cv_func_closesocket="no"
33639 curl_includes_sys_socket="\
33640 /* includes start */
33641 #ifdef HAVE_SYS_TYPES_H
33642 # include <sys/types.h>
33644 #ifdef HAVE_SYS_SOCKET_H
33645 # include <sys/socket.h>
33647 /* includes end */"
33648 for ac_header in sys/types.h sys/socket.h
33650 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33651 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
33653 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33654 cat >>confdefs.h <<_ACEOF
33655 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33665 tst_links_closesocket_camel="unknown"
33666 tst_proto_closesocket_camel="unknown"
33667 tst_compi_closesocket_camel="unknown"
33668 tst_allow_closesocket_camel="unknown"
33670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
33671 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
33672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33673 /* end confdefs.h. */
33676 $curl_includes_sys_socket
33681 if(0 != CloseSocket(0))
33689 if ac_fn_c_try_link "$LINENO"; then :
33691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33692 $as_echo "yes" >&6; }
33693 tst_links_closesocket_camel="yes"
33697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33698 $as_echo "no" >&6; }
33699 tst_links_closesocket_camel="no"
33702 rm -f core conftest.err conftest.$ac_objext \
33703 conftest$ac_exeext conftest.$ac_ext
33705 if test "$tst_links_closesocket_camel" = "yes"; then
33706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
33707 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
33708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33709 /* end confdefs.h. */
33711 $curl_includes_sys_socket
33714 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33715 $EGREP "CloseSocket" >/dev/null 2>&1; then :
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33718 $as_echo "yes" >&6; }
33719 tst_proto_closesocket_camel="yes"
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33724 $as_echo "no" >&6; }
33725 tst_proto_closesocket_camel="no"
33732 if test "$tst_proto_closesocket_camel" = "yes"; then
33733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
33734 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
33735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33736 /* end confdefs.h. */
33739 $curl_includes_sys_socket
33744 if(0 != CloseSocket(0))
33752 if ac_fn_c_try_compile "$LINENO"; then :
33754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33755 $as_echo "yes" >&6; }
33756 tst_compi_closesocket_camel="yes"
33760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33761 $as_echo "no" >&6; }
33762 tst_compi_closesocket_camel="no"
33765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33768 if test "$tst_compi_closesocket_camel" = "yes"; then
33769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
33770 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
33771 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
33772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33773 $as_echo "yes" >&6; }
33774 tst_allow_closesocket_camel="yes"
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33777 $as_echo "no" >&6; }
33778 tst_allow_closesocket_camel="no"
33782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
33783 $as_echo_n "checking if CloseSocket might be used... " >&6; }
33784 if test "$tst_links_closesocket_camel" = "yes" &&
33785 test "$tst_proto_closesocket_camel" = "yes" &&
33786 test "$tst_compi_closesocket_camel" = "yes" &&
33787 test "$tst_allow_closesocket_camel" = "yes"; then
33788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33789 $as_echo "yes" >&6; }
33791 cat >>confdefs.h <<_ACEOF
33792 #define HAVE_CLOSESOCKET_CAMEL 1
33795 curl_cv_func_closesocket_camel="yes"
33797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33798 $as_echo "no" >&6; }
33799 curl_cv_func_closesocket_camel="no"
33804 tst_links_connect="unknown"
33805 tst_proto_connect="unknown"
33806 tst_compi_connect="unknown"
33807 tst_allow_connect="unknown"
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
33810 $as_echo_n "checking if connect can be linked... " >&6; }
33811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33812 /* end confdefs.h. */
33815 $curl_includes_winsock2
33816 $curl_includes_bsdsocket
33817 $curl_includes_sys_socket
33818 $curl_includes_socket
33823 if(0 != connect(0, 0, 0))
33831 if ac_fn_c_try_link "$LINENO"; then :
33833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33834 $as_echo "yes" >&6; }
33835 tst_links_connect="yes"
33839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33840 $as_echo "no" >&6; }
33841 tst_links_connect="no"
33844 rm -f core conftest.err conftest.$ac_objext \
33845 conftest$ac_exeext conftest.$ac_ext
33847 if test "$tst_links_connect" = "yes"; then
33848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
33849 $as_echo_n "checking if connect is prototyped... " >&6; }
33850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33851 /* end confdefs.h. */
33853 $curl_includes_winsock2
33854 $curl_includes_bsdsocket
33855 $curl_includes_sys_socket
33856 $curl_includes_socket
33859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33860 $EGREP "connect" >/dev/null 2>&1; then :
33862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33863 $as_echo "yes" >&6; }
33864 tst_proto_connect="yes"
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33869 $as_echo "no" >&6; }
33870 tst_proto_connect="no"
33877 if test "$tst_proto_connect" = "yes"; then
33878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
33879 $as_echo_n "checking if connect is compilable... " >&6; }
33880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33881 /* end confdefs.h. */
33884 $curl_includes_winsock2
33885 $curl_includes_bsdsocket
33886 $curl_includes_sys_socket
33887 $curl_includes_socket
33892 if(0 != connect(0, 0, 0))
33900 if ac_fn_c_try_compile "$LINENO"; then :
33902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33903 $as_echo "yes" >&6; }
33904 tst_compi_connect="yes"
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33909 $as_echo "no" >&6; }
33910 tst_compi_connect="no"
33913 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33916 if test "$tst_compi_connect" = "yes"; then
33917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
33918 $as_echo_n "checking if connect usage allowed... " >&6; }
33919 if test "x$curl_disallow_connect" != "xyes"; then
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33921 $as_echo "yes" >&6; }
33922 tst_allow_connect="yes"
33924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33925 $as_echo "no" >&6; }
33926 tst_allow_connect="no"
33930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
33931 $as_echo_n "checking if connect might be used... " >&6; }
33932 if test "$tst_links_connect" = "yes" &&
33933 test "$tst_proto_connect" = "yes" &&
33934 test "$tst_compi_connect" = "yes" &&
33935 test "$tst_allow_connect" = "yes"; then
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937 $as_echo "yes" >&6; }
33939 cat >>confdefs.h <<_ACEOF
33940 #define HAVE_CONNECT 1
33943 curl_cv_func_connect="yes"
33945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33946 $as_echo "no" >&6; }
33947 curl_cv_func_connect="no"
33951 curl_includes_fcntl="\
33952 /* includes start */
33953 #ifdef HAVE_SYS_TYPES_H
33954 # include <sys/types.h>
33956 #ifdef HAVE_UNISTD_H
33957 # include <unistd.h>
33959 #ifdef HAVE_FCNTL_H
33960 # include <fcntl.h>
33962 /* includes end */"
33963 for ac_header in sys/types.h unistd.h fcntl.h
33965 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33966 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
33968 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33969 cat >>confdefs.h <<_ACEOF
33970 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33980 tst_links_fcntl="unknown"
33981 tst_proto_fcntl="unknown"
33982 tst_compi_fcntl="unknown"
33983 tst_allow_fcntl="unknown"
33985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
33986 $as_echo_n "checking if fcntl can be linked... " >&6; }
33987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33988 /* end confdefs.h. */
33991 #define fcntl innocuous_fcntl
33993 # include <limits.h>
33995 # include <assert.h>
34002 #if defined __stub_fcntl || defined __stub___fcntl
34014 if ac_fn_c_try_link "$LINENO"; then :
34016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34017 $as_echo "yes" >&6; }
34018 tst_links_fcntl="yes"
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34023 $as_echo "no" >&6; }
34024 tst_links_fcntl="no"
34027 rm -f core conftest.err conftest.$ac_objext \
34028 conftest$ac_exeext conftest.$ac_ext
34030 if test "$tst_links_fcntl" = "yes"; then
34031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
34032 $as_echo_n "checking if fcntl is prototyped... " >&6; }
34033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34034 /* end confdefs.h. */
34036 $curl_includes_fcntl
34039 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34040 $EGREP "fcntl" >/dev/null 2>&1; then :
34042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34043 $as_echo "yes" >&6; }
34044 tst_proto_fcntl="yes"
34048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34049 $as_echo "no" >&6; }
34050 tst_proto_fcntl="no"
34057 if test "$tst_proto_fcntl" = "yes"; then
34058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
34059 $as_echo_n "checking if fcntl is compilable... " >&6; }
34060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34061 /* end confdefs.h. */
34064 $curl_includes_fcntl
34069 if(0 != fcntl(0, 0, 0))
34077 if ac_fn_c_try_compile "$LINENO"; then :
34079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34080 $as_echo "yes" >&6; }
34081 tst_compi_fcntl="yes"
34085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34086 $as_echo "no" >&6; }
34087 tst_compi_fcntl="no"
34090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34093 if test "$tst_compi_fcntl" = "yes"; then
34094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
34095 $as_echo_n "checking if fcntl usage allowed... " >&6; }
34096 if test "x$curl_disallow_fcntl" != "xyes"; then
34097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34098 $as_echo "yes" >&6; }
34099 tst_allow_fcntl="yes"
34101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34102 $as_echo "no" >&6; }
34103 tst_allow_fcntl="no"
34107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
34108 $as_echo_n "checking if fcntl might be used... " >&6; }
34109 if test "$tst_links_fcntl" = "yes" &&
34110 test "$tst_proto_fcntl" = "yes" &&
34111 test "$tst_compi_fcntl" = "yes" &&
34112 test "$tst_allow_fcntl" = "yes"; then
34113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34114 $as_echo "yes" >&6; }
34116 cat >>confdefs.h <<_ACEOF
34117 #define HAVE_FCNTL 1
34120 curl_cv_func_fcntl="yes"
34123 tst_compi_fcntl_o_nonblock="unknown"
34124 tst_allow_fcntl_o_nonblock="unknown"
34127 sunos4* | aix3* | beos*)
34128 curl_disallow_fcntl_o_nonblock="yes"
34132 if test "$curl_cv_func_fcntl" = "yes"; then
34133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
34134 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
34135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34136 /* end confdefs.h. */
34139 $curl_includes_fcntl
34145 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
34153 if ac_fn_c_try_compile "$LINENO"; then :
34155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34156 $as_echo "yes" >&6; }
34157 tst_compi_fcntl_o_nonblock="yes"
34161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34162 $as_echo "no" >&6; }
34163 tst_compi_fcntl_o_nonblock="no"
34166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34169 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
34170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
34171 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
34172 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
34173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34174 $as_echo "yes" >&6; }
34175 tst_allow_fcntl_o_nonblock="yes"
34177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34178 $as_echo "no" >&6; }
34179 tst_allow_fcntl_o_nonblock="no"
34183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
34184 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
34185 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
34186 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
34187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34188 $as_echo "yes" >&6; }
34190 cat >>confdefs.h <<_ACEOF
34191 #define HAVE_FCNTL_O_NONBLOCK 1
34194 curl_cv_func_fcntl_o_nonblock="yes"
34196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34197 $as_echo "no" >&6; }
34198 curl_cv_func_fcntl_o_nonblock="no"
34202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34203 $as_echo "no" >&6; }
34204 curl_cv_func_fcntl="no"
34208 curl_includes_ws2tcpip="\
34209 /* includes start */
34210 #ifdef HAVE_WINDOWS_H
34211 # ifndef WIN32_LEAN_AND_MEAN
34212 # define WIN32_LEAN_AND_MEAN
34214 # include <windows.h>
34215 # ifdef HAVE_WINSOCK2_H
34216 # include <winsock2.h>
34217 # ifdef HAVE_WS2TCPIP_H
34218 # include <ws2tcpip.h>
34222 /* includes end */"
34224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
34225 $as_echo_n "checking for windows.h... " >&6; }
34226 if ${curl_cv_header_windows_h+:} false; then :
34227 $as_echo_n "(cached) " >&6
34230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231 /* end confdefs.h. */
34235 #ifndef WIN32_LEAN_AND_MEAN
34236 #define WIN32_LEAN_AND_MEAN
34238 #include <windows.h>
34243 #if defined(__CYGWIN__) || defined(__CEGCC__)
34244 HAVE_WINDOWS_H shall not be defined.
34246 int dummy=2*WINVER;
34254 if ac_fn_c_try_compile "$LINENO"; then :
34256 curl_cv_header_windows_h="yes"
34260 curl_cv_header_windows_h="no"
34263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
34267 $as_echo "$curl_cv_header_windows_h" >&6; }
34268 case "$curl_cv_header_windows_h" in
34271 cat >>confdefs.h <<_ACEOF
34272 #define HAVE_WINDOWS_H 1
34279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
34280 $as_echo_n "checking for winsock2.h... " >&6; }
34281 if ${curl_cv_header_winsock2_h+:} false; then :
34282 $as_echo_n "(cached) " >&6
34285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34286 /* end confdefs.h. */
34290 #ifndef WIN32_LEAN_AND_MEAN
34291 #define WIN32_LEAN_AND_MEAN
34293 #include <windows.h>
34294 #include <winsock2.h>
34299 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
34300 HAVE_WINSOCK2_H shall not be defined.
34302 int dummy=2*IPPROTO_ESP;
34310 if ac_fn_c_try_compile "$LINENO"; then :
34312 curl_cv_header_winsock2_h="yes"
34316 curl_cv_header_winsock2_h="no"
34319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
34323 $as_echo "$curl_cv_header_winsock2_h" >&6; }
34324 case "$curl_cv_header_winsock2_h" in
34327 cat >>confdefs.h <<_ACEOF
34328 #define HAVE_WINSOCK2_H 1
34335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
34336 $as_echo_n "checking for ws2tcpip.h... " >&6; }
34337 if ${curl_cv_header_ws2tcpip_h+:} false; then :
34338 $as_echo_n "(cached) " >&6
34341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34342 /* end confdefs.h. */
34346 #ifndef WIN32_LEAN_AND_MEAN
34347 #define WIN32_LEAN_AND_MEAN
34349 #include <windows.h>
34350 #include <winsock2.h>
34351 #include <ws2tcpip.h>
34356 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
34357 HAVE_WS2TCPIP_H shall not be defined.
34359 int dummy=2*IP_PKTINFO;
34367 if ac_fn_c_try_compile "$LINENO"; then :
34369 curl_cv_header_ws2tcpip_h="yes"
34373 curl_cv_header_ws2tcpip_h="no"
34376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
34380 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
34381 case "$curl_cv_header_ws2tcpip_h" in
34384 cat >>confdefs.h <<_ACEOF
34385 #define HAVE_WS2TCPIP_H 1
34393 curl_includes_netdb="\
34394 /* includes start */
34395 #ifdef HAVE_SYS_TYPES_H
34396 # include <sys/types.h>
34398 #ifdef HAVE_NETDB_H
34399 # include <netdb.h>
34401 /* includes end */"
34402 for ac_header in sys/types.h netdb.h
34404 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34405 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
34407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34408 cat >>confdefs.h <<_ACEOF
34409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34419 tst_links_freeaddrinfo="unknown"
34420 tst_proto_freeaddrinfo="unknown"
34421 tst_compi_freeaddrinfo="unknown"
34422 tst_allow_freeaddrinfo="unknown"
34424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
34425 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
34426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34427 /* end confdefs.h. */
34430 $curl_includes_ws2tcpip
34431 $curl_includes_sys_socket
34432 $curl_includes_netdb
34444 if ac_fn_c_try_link "$LINENO"; then :
34446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34447 $as_echo "yes" >&6; }
34448 tst_links_freeaddrinfo="yes"
34452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34453 $as_echo "no" >&6; }
34454 tst_links_freeaddrinfo="no"
34457 rm -f core conftest.err conftest.$ac_objext \
34458 conftest$ac_exeext conftest.$ac_ext
34460 if test "$tst_links_freeaddrinfo" = "yes"; then
34461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
34462 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
34463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34464 /* end confdefs.h. */
34466 $curl_includes_ws2tcpip
34467 $curl_includes_sys_socket
34468 $curl_includes_netdb
34471 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34472 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
34474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34475 $as_echo "yes" >&6; }
34476 tst_proto_freeaddrinfo="yes"
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34481 $as_echo "no" >&6; }
34482 tst_proto_freeaddrinfo="no"
34489 if test "$tst_proto_freeaddrinfo" = "yes"; then
34490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
34491 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
34492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34493 /* end confdefs.h. */
34496 $curl_includes_ws2tcpip
34497 $curl_includes_sys_socket
34498 $curl_includes_netdb
34510 if ac_fn_c_try_compile "$LINENO"; then :
34512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34513 $as_echo "yes" >&6; }
34514 tst_compi_freeaddrinfo="yes"
34518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34519 $as_echo "no" >&6; }
34520 tst_compi_freeaddrinfo="no"
34523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34526 if test "$tst_compi_freeaddrinfo" = "yes"; then
34527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
34528 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
34529 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
34530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34531 $as_echo "yes" >&6; }
34532 tst_allow_freeaddrinfo="yes"
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535 $as_echo "no" >&6; }
34536 tst_allow_freeaddrinfo="no"
34540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
34541 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
34542 if test "$tst_links_freeaddrinfo" = "yes" &&
34543 test "$tst_proto_freeaddrinfo" = "yes" &&
34544 test "$tst_compi_freeaddrinfo" = "yes" &&
34545 test "$tst_allow_freeaddrinfo" = "yes"; then
34546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34547 $as_echo "yes" >&6; }
34549 cat >>confdefs.h <<_ACEOF
34550 #define HAVE_FREEADDRINFO 1
34553 curl_cv_func_freeaddrinfo="yes"
34555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34556 $as_echo "no" >&6; }
34557 curl_cv_func_freeaddrinfo="no"
34561 curl_includes_ifaddrs="\
34562 /* includes start */
34563 #ifdef HAVE_SYS_TYPES_H
34564 # include <sys/types.h>
34566 #ifdef HAVE_SYS_SOCKET_H
34567 # include <sys/socket.h>
34569 #ifdef HAVE_NETINET_IN_H
34570 # include <netinet/in.h>
34572 #ifdef HAVE_IFADDRS_H
34573 # include <ifaddrs.h>
34575 /* includes end */"
34576 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
34578 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34579 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
34581 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34582 cat >>confdefs.h <<_ACEOF
34583 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34593 tst_links_freeifaddrs="unknown"
34594 tst_proto_freeifaddrs="unknown"
34595 tst_compi_freeifaddrs="unknown"
34596 tst_allow_freeifaddrs="unknown"
34598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
34599 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
34600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34601 /* end confdefs.h. */
34604 #define freeifaddrs innocuous_freeifaddrs
34606 # include <limits.h>
34608 # include <assert.h>
34614 char freeifaddrs ();
34615 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
34621 return freeifaddrs ();
34627 if ac_fn_c_try_link "$LINENO"; then :
34629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34630 $as_echo "yes" >&6; }
34631 tst_links_freeifaddrs="yes"
34635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34636 $as_echo "no" >&6; }
34637 tst_links_freeifaddrs="no"
34640 rm -f core conftest.err conftest.$ac_objext \
34641 conftest$ac_exeext conftest.$ac_ext
34643 if test "$tst_links_freeifaddrs" = "yes"; then
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
34645 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
34646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647 /* end confdefs.h. */
34649 $curl_includes_ifaddrs
34652 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34653 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
34655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34656 $as_echo "yes" >&6; }
34657 tst_proto_freeifaddrs="yes"
34661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34662 $as_echo "no" >&6; }
34663 tst_proto_freeifaddrs="no"
34670 if test "$tst_proto_freeifaddrs" = "yes"; then
34671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
34672 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
34673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34674 /* end confdefs.h. */
34677 $curl_includes_ifaddrs
34689 if ac_fn_c_try_compile "$LINENO"; then :
34691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34692 $as_echo "yes" >&6; }
34693 tst_compi_freeifaddrs="yes"
34697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34698 $as_echo "no" >&6; }
34699 tst_compi_freeifaddrs="no"
34702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34705 if test "$tst_compi_freeifaddrs" = "yes"; then
34706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
34707 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
34708 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
34709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34710 $as_echo "yes" >&6; }
34711 tst_allow_freeifaddrs="yes"
34713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34714 $as_echo "no" >&6; }
34715 tst_allow_freeifaddrs="no"
34719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
34720 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
34721 if test "$tst_links_freeifaddrs" = "yes" &&
34722 test "$tst_proto_freeifaddrs" = "yes" &&
34723 test "$tst_compi_freeifaddrs" = "yes" &&
34724 test "$tst_allow_freeifaddrs" = "yes"; then
34725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34726 $as_echo "yes" >&6; }
34728 cat >>confdefs.h <<_ACEOF
34729 #define HAVE_FREEIFADDRS 1
34732 curl_cv_func_freeifaddrs="yes"
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34735 $as_echo "no" >&6; }
34736 curl_cv_func_freeifaddrs="no"
34740 curl_includes_sys_xattr="\
34741 /* includes start */
34742 #ifdef HAVE_SYS_TYPES_H
34743 # include <sys/types.h>
34745 #ifdef HAVE_SYS_XATTR_H
34746 # include <sys/xattr.h>
34748 /* includes end */"
34749 for ac_header in sys/types.h sys/xattr.h
34751 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34752 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
34754 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34755 cat >>confdefs.h <<_ACEOF
34756 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34766 tst_links_fsetxattr="unknown"
34767 tst_proto_fsetxattr="unknown"
34768 tst_compi_fsetxattr="unknown"
34769 tst_allow_fsetxattr="unknown"
34770 tst_nargs_fsetxattr="unknown"
34772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
34773 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
34774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34775 /* end confdefs.h. */
34778 #define fsetxattr innocuous_fsetxattr
34780 # include <limits.h>
34782 # include <assert.h>
34789 #if defined __stub_fsetxattr || defined __stub___fsetxattr
34795 return fsetxattr ();
34801 if ac_fn_c_try_link "$LINENO"; then :
34803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34804 $as_echo "yes" >&6; }
34805 tst_links_fsetxattr="yes"
34809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34810 $as_echo "no" >&6; }
34811 tst_links_fsetxattr="no"
34814 rm -f core conftest.err conftest.$ac_objext \
34815 conftest$ac_exeext conftest.$ac_ext
34817 if test "$tst_links_fsetxattr" = "yes"; then
34818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
34819 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
34820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34821 /* end confdefs.h. */
34823 $curl_includes_sys_xattr
34826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34827 $EGREP "fsetxattr" >/dev/null 2>&1; then :
34829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34830 $as_echo "yes" >&6; }
34831 tst_proto_fsetxattr="yes"
34835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34836 $as_echo "no" >&6; }
34837 tst_proto_fsetxattr="no"
34844 if test "$tst_proto_fsetxattr" = "yes"; then
34845 if test "$tst_nargs_fsetxattr" = "unknown"; then
34846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
34847 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
34848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34849 /* end confdefs.h. */
34852 $curl_includes_sys_xattr
34857 if(0 != fsetxattr(0, 0, 0, 0, 0))
34865 if ac_fn_c_try_compile "$LINENO"; then :
34867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34868 $as_echo "yes" >&6; }
34869 tst_compi_fsetxattr="yes"
34870 tst_nargs_fsetxattr="5"
34874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34875 $as_echo "no" >&6; }
34876 tst_compi_fsetxattr="no"
34879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34881 if test "$tst_nargs_fsetxattr" = "unknown"; then
34882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
34883 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
34884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34885 /* end confdefs.h. */
34888 $curl_includes_sys_xattr
34893 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
34901 if ac_fn_c_try_compile "$LINENO"; then :
34903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34904 $as_echo "yes" >&6; }
34905 tst_compi_fsetxattr="yes"
34906 tst_nargs_fsetxattr="6"
34910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34911 $as_echo "no" >&6; }
34912 tst_compi_fsetxattr="no"
34915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
34918 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
34919 if test "$tst_compi_fsetxattr" = "yes"; then
34920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34921 $as_echo "yes" >&6; }
34923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34924 $as_echo "no" >&6; }
34928 if test "$tst_compi_fsetxattr" = "yes"; then
34929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
34930 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
34931 if test "x$curl_disallow_fsetxattr" != "xyes"; then
34932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34933 $as_echo "yes" >&6; }
34934 tst_allow_fsetxattr="yes"
34936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34937 $as_echo "no" >&6; }
34938 tst_allow_fsetxattr="no"
34942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
34943 $as_echo_n "checking if fsetxattr might be used... " >&6; }
34944 if test "$tst_links_fsetxattr" = "yes" &&
34945 test "$tst_proto_fsetxattr" = "yes" &&
34946 test "$tst_compi_fsetxattr" = "yes" &&
34947 test "$tst_allow_fsetxattr" = "yes"; then
34948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34949 $as_echo "yes" >&6; }
34951 cat >>confdefs.h <<_ACEOF
34952 #define HAVE_FSETXATTR 1
34956 if test "$tst_nargs_fsetxattr" -eq "5"; then
34958 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
34960 elif test "$tst_nargs_fsetxattr" -eq "6"; then
34962 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
34966 curl_cv_func_fsetxattr="yes"
34968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34969 $as_echo "no" >&6; }
34970 curl_cv_func_fsetxattr="no"
34975 tst_links_ftruncate="unknown"
34976 tst_proto_ftruncate="unknown"
34977 tst_compi_ftruncate="unknown"
34978 tst_allow_ftruncate="unknown"
34980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
34981 $as_echo_n "checking if ftruncate can be linked... " >&6; }
34982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34983 /* end confdefs.h. */
34986 #define ftruncate innocuous_ftruncate
34988 # include <limits.h>
34990 # include <assert.h>
34997 #if defined __stub_ftruncate || defined __stub___ftruncate
35003 return ftruncate ();
35009 if ac_fn_c_try_link "$LINENO"; then :
35011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35012 $as_echo "yes" >&6; }
35013 tst_links_ftruncate="yes"
35017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35018 $as_echo "no" >&6; }
35019 tst_links_ftruncate="no"
35022 rm -f core conftest.err conftest.$ac_objext \
35023 conftest$ac_exeext conftest.$ac_ext
35025 if test "$tst_links_ftruncate" = "yes"; then
35026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
35027 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
35028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35029 /* end confdefs.h. */
35031 $curl_includes_unistd
35034 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35035 $EGREP "ftruncate" >/dev/null 2>&1; then :
35037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35038 $as_echo "yes" >&6; }
35039 tst_proto_ftruncate="yes"
35043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35044 $as_echo "no" >&6; }
35045 tst_proto_ftruncate="no"
35052 if test "$tst_proto_ftruncate" = "yes"; then
35053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
35054 $as_echo_n "checking if ftruncate is compilable... " >&6; }
35055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35056 /* end confdefs.h. */
35059 $curl_includes_unistd
35064 if(0 != ftruncate(0, 0))
35072 if ac_fn_c_try_compile "$LINENO"; then :
35074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35075 $as_echo "yes" >&6; }
35076 tst_compi_ftruncate="yes"
35080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35081 $as_echo "no" >&6; }
35082 tst_compi_ftruncate="no"
35085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35088 if test "$tst_compi_ftruncate" = "yes"; then
35089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
35090 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
35091 if test "x$curl_disallow_ftruncate" != "xyes"; then
35092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35093 $as_echo "yes" >&6; }
35094 tst_allow_ftruncate="yes"
35096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35097 $as_echo "no" >&6; }
35098 tst_allow_ftruncate="no"
35102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
35103 $as_echo_n "checking if ftruncate might be used... " >&6; }
35104 if test "$tst_links_ftruncate" = "yes" &&
35105 test "$tst_proto_ftruncate" = "yes" &&
35106 test "$tst_compi_ftruncate" = "yes" &&
35107 test "$tst_allow_ftruncate" = "yes"; then
35108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35109 $as_echo "yes" >&6; }
35111 cat >>confdefs.h <<_ACEOF
35112 #define HAVE_FTRUNCATE 1
35115 curl_cv_func_ftruncate="yes"
35117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35118 $as_echo "no" >&6; }
35119 curl_cv_func_ftruncate="no"
35123 curl_includes_stdlib="\
35124 /* includes start */
35125 #ifdef HAVE_SYS_TYPES_H
35126 # include <sys/types.h>
35128 #ifdef HAVE_STDLIB_H
35129 # include <stdlib.h>
35131 /* includes end */"
35132 for ac_header in sys/types.h stdlib.h
35134 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35135 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
35137 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35138 cat >>confdefs.h <<_ACEOF
35139 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35149 tst_links_getaddrinfo="unknown"
35150 tst_proto_getaddrinfo="unknown"
35151 tst_compi_getaddrinfo="unknown"
35152 tst_works_getaddrinfo="unknown"
35153 tst_allow_getaddrinfo="unknown"
35154 tst_tsafe_getaddrinfo="unknown"
35156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
35157 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
35158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35159 /* end confdefs.h. */
35162 $curl_includes_ws2tcpip
35163 $curl_includes_sys_socket
35164 $curl_includes_netdb
35169 if(0 != getaddrinfo(0, 0, 0, 0))
35177 if ac_fn_c_try_link "$LINENO"; then :
35179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35180 $as_echo "yes" >&6; }
35181 tst_links_getaddrinfo="yes"
35185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35186 $as_echo "no" >&6; }
35187 tst_links_getaddrinfo="no"
35190 rm -f core conftest.err conftest.$ac_objext \
35191 conftest$ac_exeext conftest.$ac_ext
35193 if test "$tst_links_getaddrinfo" = "yes"; then
35194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
35195 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
35196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35197 /* end confdefs.h. */
35199 $curl_includes_ws2tcpip
35200 $curl_includes_sys_socket
35201 $curl_includes_netdb
35204 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35205 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
35207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35208 $as_echo "yes" >&6; }
35209 tst_proto_getaddrinfo="yes"
35213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35214 $as_echo "no" >&6; }
35215 tst_proto_getaddrinfo="no"
35222 if test "$tst_proto_getaddrinfo" = "yes"; then
35223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
35224 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
35225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35226 /* end confdefs.h. */
35229 $curl_includes_ws2tcpip
35230 $curl_includes_sys_socket
35231 $curl_includes_netdb
35236 if(0 != getaddrinfo(0, 0, 0, 0))
35244 if ac_fn_c_try_compile "$LINENO"; then :
35246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35247 $as_echo "yes" >&6; }
35248 tst_compi_getaddrinfo="yes"
35252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35253 $as_echo "no" >&6; }
35254 tst_compi_getaddrinfo="no"
35257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35260 if test "x$cross_compiling" != "xyes" &&
35261 test "$tst_compi_getaddrinfo" = "yes"; then
35262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
35263 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
35265 old=$LD_LIBRARY_PATH
35266 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35267 export LD_LIBRARY_PATH
35268 if test "$cross_compiling" = yes; then :
35269 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35270 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35271 as_fn_error $? "cannot run test program while cross compiling
35272 See \`config.log' for more details" "$LINENO" 5; }
35274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35275 /* end confdefs.h. */
35278 $curl_includes_ws2tcpip
35279 $curl_includes_stdlib
35280 $curl_includes_string
35281 $curl_includes_sys_socket
35282 $curl_includes_netdb
35287 struct addrinfo hints;
35288 struct addrinfo *ai = 0;
35291 #ifdef HAVE_WINSOCK2_H
35293 if (WSAStartup(MAKEWORD(2,2), &wsa))
35297 memset(&hints, 0, sizeof(hints));
35298 hints.ai_flags = AI_NUMERICHOST;
35299 hints.ai_family = AF_UNSPEC;
35300 hints.ai_socktype = SOCK_STREAM;
35301 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
35303 exit(1); /* fail */
35312 if ac_fn_c_try_run "$LINENO"; then :
35313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35314 $as_echo "yes" >&6; }
35315 tst_works_getaddrinfo="yes"
35318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35319 $as_echo "no" >&6; }
35320 tst_works_getaddrinfo="no"
35323 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35324 conftest.$ac_objext conftest.beam conftest.$ac_ext
35327 LD_LIBRARY_PATH=$old # restore
35331 if test "$tst_compi_getaddrinfo" = "yes" &&
35332 test "$tst_works_getaddrinfo" != "no"; then
35333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
35334 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
35335 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
35336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35337 $as_echo "yes" >&6; }
35338 tst_allow_getaddrinfo="yes"
35340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35341 $as_echo "no" >&6; }
35342 tst_allow_getaddrinfo="no"
35346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
35347 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
35348 if test "$tst_links_getaddrinfo" = "yes" &&
35349 test "$tst_proto_getaddrinfo" = "yes" &&
35350 test "$tst_compi_getaddrinfo" = "yes" &&
35351 test "$tst_allow_getaddrinfo" = "yes" &&
35352 test "$tst_works_getaddrinfo" != "no"; then
35353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35354 $as_echo "yes" >&6; }
35356 cat >>confdefs.h <<_ACEOF
35357 #define HAVE_GETADDRINFO 1
35360 curl_cv_func_getaddrinfo="yes"
35362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35363 $as_echo "no" >&6; }
35364 curl_cv_func_getaddrinfo="no"
35365 curl_cv_func_getaddrinfo_threadsafe="no"
35368 if test "$curl_cv_func_getaddrinfo" = "yes"; then
35369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
35370 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
35372 aix[1234].* | aix5.[01].*)
35373 tst_tsafe_getaddrinfo="no"
35376 tst_tsafe_getaddrinfo="yes"
35379 tst_tsafe_getaddrinfo="no"
35382 tst_tsafe_getaddrinfo="yes"
35384 freebsd[1234].* | freebsd5.[1234]*)
35385 tst_tsafe_getaddrinfo="no"
35388 tst_tsafe_getaddrinfo="yes"
35390 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
35391 tst_tsafe_getaddrinfo="no"
35394 tst_tsafe_getaddrinfo="yes"
35397 tst_tsafe_getaddrinfo="no"
35400 tst_tsafe_getaddrinfo="yes"
35403 tst_tsafe_getaddrinfo="no"
35406 tst_tsafe_getaddrinfo="yes"
35409 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
35410 test "$curl_cv_native_windows" = "yes"; then
35411 tst_tsafe_getaddrinfo="yes"
35413 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
35416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35417 /* end confdefs.h. */
35420 $curl_includes_sys_socket
35421 $curl_includes_netdb
35428 force compilation error
35434 if ac_fn_c_try_compile "$LINENO"; then :
35436 tst_symbol_defined="yes"
35440 tst_symbol_defined="no"
35443 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35444 if test "$tst_symbol_defined" = "yes"; then
35445 curl_cv_have_def_h_errno=yes
35448 curl_cv_have_def_h_errno=no
35452 if test "$curl_cv_have_def_h_errno" = "yes"; then
35453 tst_h_errno_macro="yes"
35455 tst_h_errno_macro="no"
35457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35458 /* end confdefs.h. */
35461 $curl_includes_sys_socket
35462 $curl_includes_netdb
35476 if ac_fn_c_try_compile "$LINENO"; then :
35478 tst_h_errno_modifiable_lvalue="yes"
35482 tst_h_errno_modifiable_lvalue="no"
35485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35487 /* end confdefs.h. */
35494 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
35496 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
35499 force compilation error
35507 if ac_fn_c_try_compile "$LINENO"; then :
35509 tst_h_errno_sbs_issue_7="yes"
35513 tst_h_errno_sbs_issue_7="no"
35516 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35517 if test "$tst_h_errno_macro" = "no" &&
35518 test "$tst_h_errno_modifiable_lvalue" = "no" &&
35519 test "$tst_h_errno_sbs_issue_7" = "no"; then
35520 tst_tsafe_getaddrinfo="no"
35522 tst_tsafe_getaddrinfo="yes"
35525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
35526 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
35527 if test "$tst_tsafe_getaddrinfo" = "yes"; then
35529 cat >>confdefs.h <<_ACEOF
35530 #define HAVE_GETADDRINFO_THREADSAFE 1
35533 curl_cv_func_getaddrinfo_threadsafe="yes"
35535 curl_cv_func_getaddrinfo_threadsafe="no"
35541 tst_links_gai_strerror="unknown"
35542 tst_proto_gai_strerror="unknown"
35543 tst_compi_gai_strerror="unknown"
35544 tst_allow_gai_strerror="unknown"
35546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
35547 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
35548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35549 /* end confdefs.h. */
35552 $curl_includes_winsock2
35553 $curl_includes_bsdsocket
35554 $curl_includes_netdb
35559 if(0 != gai_strerror(0))
35567 if ac_fn_c_try_link "$LINENO"; then :
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570 $as_echo "yes" >&6; }
35571 tst_links_gai_strerror="yes"
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576 $as_echo "no" >&6; }
35577 tst_links_gai_strerror="no"
35580 rm -f core conftest.err conftest.$ac_objext \
35581 conftest$ac_exeext conftest.$ac_ext
35583 if test "$tst_links_gai_strerror" = "yes"; then
35584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
35585 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
35586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35587 /* end confdefs.h. */
35589 $curl_includes_winsock2
35590 $curl_includes_bsdsocket
35591 $curl_includes_netdb
35594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35595 $EGREP "gai_strerror" >/dev/null 2>&1; then :
35597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598 $as_echo "yes" >&6; }
35599 tst_proto_gai_strerror="yes"
35603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604 $as_echo "no" >&6; }
35605 tst_proto_gai_strerror="no"
35612 if test "$tst_proto_gai_strerror" = "yes"; then
35613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
35614 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
35615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35616 /* end confdefs.h. */
35619 $curl_includes_winsock2
35620 $curl_includes_bsdsocket
35621 $curl_includes_netdb
35626 if(0 != gai_strerror(0))
35634 if ac_fn_c_try_compile "$LINENO"; then :
35636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35637 $as_echo "yes" >&6; }
35638 tst_compi_gai_strerror="yes"
35642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35643 $as_echo "no" >&6; }
35644 tst_compi_gai_strerror="no"
35647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35650 if test "$tst_compi_gai_strerror" = "yes"; then
35651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
35652 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
35653 if test "x$curl_disallow_gai_strerror" != "xyes"; then
35654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35655 $as_echo "yes" >&6; }
35656 tst_allow_gai_strerror="yes"
35658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35659 $as_echo "no" >&6; }
35660 tst_allow_gai_strerror="no"
35664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
35665 $as_echo_n "checking if gai_strerror might be used... " >&6; }
35666 if test "$tst_links_gai_strerror" = "yes" &&
35667 test "$tst_proto_gai_strerror" = "yes" &&
35668 test "$tst_compi_gai_strerror" = "yes" &&
35669 test "$tst_allow_gai_strerror" = "yes"; then
35670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35671 $as_echo "yes" >&6; }
35673 cat >>confdefs.h <<_ACEOF
35674 #define HAVE_GAI_STRERROR 1
35677 curl_cv_func_gai_strerror="yes"
35679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35680 $as_echo "no" >&6; }
35681 curl_cv_func_gai_strerror="no"
35686 tst_links_gethostbyaddr="unknown"
35687 tst_proto_gethostbyaddr="unknown"
35688 tst_compi_gethostbyaddr="unknown"
35689 tst_allow_gethostbyaddr="unknown"
35691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
35692 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
35693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35694 /* end confdefs.h. */
35697 $curl_includes_winsock2
35698 $curl_includes_bsdsocket
35699 $curl_includes_netdb
35704 if(0 != gethostbyaddr(0, 0, 0))
35712 if ac_fn_c_try_link "$LINENO"; then :
35714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35715 $as_echo "yes" >&6; }
35716 tst_links_gethostbyaddr="yes"
35720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35721 $as_echo "no" >&6; }
35722 tst_links_gethostbyaddr="no"
35725 rm -f core conftest.err conftest.$ac_objext \
35726 conftest$ac_exeext conftest.$ac_ext
35728 if test "$tst_links_gethostbyaddr" = "yes"; then
35729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
35730 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
35731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35732 /* end confdefs.h. */
35734 $curl_includes_winsock2
35735 $curl_includes_bsdsocket
35736 $curl_includes_netdb
35739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35740 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
35742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35743 $as_echo "yes" >&6; }
35744 tst_proto_gethostbyaddr="yes"
35748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35749 $as_echo "no" >&6; }
35750 tst_proto_gethostbyaddr="no"
35757 if test "$tst_proto_gethostbyaddr" = "yes"; then
35758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
35759 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
35760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35761 /* end confdefs.h. */
35764 $curl_includes_winsock2
35765 $curl_includes_bsdsocket
35766 $curl_includes_netdb
35771 if(0 != gethostbyaddr(0, 0, 0))
35779 if ac_fn_c_try_compile "$LINENO"; then :
35781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35782 $as_echo "yes" >&6; }
35783 tst_compi_gethostbyaddr="yes"
35787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35788 $as_echo "no" >&6; }
35789 tst_compi_gethostbyaddr="no"
35792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35795 if test "$tst_compi_gethostbyaddr" = "yes"; then
35796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
35797 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
35798 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
35799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35800 $as_echo "yes" >&6; }
35801 tst_allow_gethostbyaddr="yes"
35803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35804 $as_echo "no" >&6; }
35805 tst_allow_gethostbyaddr="no"
35809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
35810 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
35811 if test "$tst_links_gethostbyaddr" = "yes" &&
35812 test "$tst_proto_gethostbyaddr" = "yes" &&
35813 test "$tst_compi_gethostbyaddr" = "yes" &&
35814 test "$tst_allow_gethostbyaddr" = "yes"; then
35815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35816 $as_echo "yes" >&6; }
35818 cat >>confdefs.h <<_ACEOF
35819 #define HAVE_GETHOSTBYADDR 1
35822 curl_cv_func_gethostbyaddr="yes"
35824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35825 $as_echo "no" >&6; }
35826 curl_cv_func_gethostbyaddr="no"
35831 tst_links_gethostbyaddr_r="unknown"
35832 tst_proto_gethostbyaddr_r="unknown"
35833 tst_compi_gethostbyaddr_r="unknown"
35834 tst_allow_gethostbyaddr_r="unknown"
35835 tst_nargs_gethostbyaddr_r="unknown"
35837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
35838 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
35839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35840 /* end confdefs.h. */
35843 #define gethostbyaddr_r innocuous_gethostbyaddr_r
35845 # include <limits.h>
35847 # include <assert.h>
35849 #undef gethostbyaddr_r
35853 char gethostbyaddr_r ();
35854 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
35860 return gethostbyaddr_r ();
35866 if ac_fn_c_try_link "$LINENO"; then :
35868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35869 $as_echo "yes" >&6; }
35870 tst_links_gethostbyaddr_r="yes"
35874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35875 $as_echo "no" >&6; }
35876 tst_links_gethostbyaddr_r="no"
35879 rm -f core conftest.err conftest.$ac_objext \
35880 conftest$ac_exeext conftest.$ac_ext
35882 if test "$tst_links_gethostbyaddr_r" = "yes"; then
35883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
35884 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
35885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35886 /* end confdefs.h. */
35888 $curl_includes_netdb
35891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35892 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
35894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35895 $as_echo "yes" >&6; }
35896 tst_proto_gethostbyaddr_r="yes"
35900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35901 $as_echo "no" >&6; }
35902 tst_proto_gethostbyaddr_r="no"
35909 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
35910 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
35912 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
35913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35914 /* end confdefs.h. */
35917 $curl_includes_netdb
35922 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
35930 if ac_fn_c_try_compile "$LINENO"; then :
35932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35933 $as_echo "yes" >&6; }
35934 tst_compi_gethostbyaddr_r="yes"
35935 tst_nargs_gethostbyaddr_r="5"
35939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35940 $as_echo "no" >&6; }
35941 tst_compi_gethostbyaddr_r="no"
35944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35946 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
35948 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
35949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35950 /* end confdefs.h. */
35953 $curl_includes_netdb
35958 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
35966 if ac_fn_c_try_compile "$LINENO"; then :
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35969 $as_echo "yes" >&6; }
35970 tst_compi_gethostbyaddr_r="yes"
35971 tst_nargs_gethostbyaddr_r="7"
35975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35976 $as_echo "no" >&6; }
35977 tst_compi_gethostbyaddr_r="no"
35980 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35982 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
35983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
35984 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
35985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35986 /* end confdefs.h. */
35989 $curl_includes_netdb
35994 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
36002 if ac_fn_c_try_compile "$LINENO"; then :
36004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36005 $as_echo "yes" >&6; }
36006 tst_compi_gethostbyaddr_r="yes"
36007 tst_nargs_gethostbyaddr_r="8"
36011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36012 $as_echo "no" >&6; }
36013 tst_compi_gethostbyaddr_r="no"
36016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
36019 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
36020 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
36021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36022 $as_echo "yes" >&6; }
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36025 $as_echo "no" >&6; }
36029 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
36030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
36031 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
36032 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
36033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36034 $as_echo "yes" >&6; }
36035 tst_allow_gethostbyaddr_r="yes"
36037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36038 $as_echo "no" >&6; }
36039 tst_allow_gethostbyaddr_r="no"
36043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
36044 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
36045 if test "$tst_links_gethostbyaddr_r" = "yes" &&
36046 test "$tst_proto_gethostbyaddr_r" = "yes" &&
36047 test "$tst_compi_gethostbyaddr_r" = "yes" &&
36048 test "$tst_allow_gethostbyaddr_r" = "yes"; then
36049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36050 $as_echo "yes" >&6; }
36052 cat >>confdefs.h <<_ACEOF
36053 #define HAVE_GETHOSTBYADDR_R 1
36057 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
36059 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
36061 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
36063 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
36065 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
36067 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
36071 curl_cv_func_gethostbyaddr_r="yes"
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36074 $as_echo "no" >&6; }
36075 curl_cv_func_gethostbyaddr_r="no"
36080 tst_links_gethostbyname="unknown"
36081 tst_proto_gethostbyname="unknown"
36082 tst_compi_gethostbyname="unknown"
36083 tst_allow_gethostbyname="unknown"
36085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
36086 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
36087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36088 /* end confdefs.h. */
36091 $curl_includes_winsock2
36092 $curl_includes_bsdsocket
36093 $curl_includes_netdb
36098 if(0 != gethostbyname(0))
36106 if ac_fn_c_try_link "$LINENO"; then :
36108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36109 $as_echo "yes" >&6; }
36110 tst_links_gethostbyname="yes"
36114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36115 $as_echo "no" >&6; }
36116 tst_links_gethostbyname="no"
36119 rm -f core conftest.err conftest.$ac_objext \
36120 conftest$ac_exeext conftest.$ac_ext
36122 if test "$tst_links_gethostbyname" = "yes"; then
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
36124 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
36125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36126 /* end confdefs.h. */
36128 $curl_includes_winsock2
36129 $curl_includes_bsdsocket
36130 $curl_includes_netdb
36133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36134 $EGREP "gethostbyname" >/dev/null 2>&1; then :
36136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36137 $as_echo "yes" >&6; }
36138 tst_proto_gethostbyname="yes"
36142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36143 $as_echo "no" >&6; }
36144 tst_proto_gethostbyname="no"
36151 if test "$tst_proto_gethostbyname" = "yes"; then
36152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
36153 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
36154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36155 /* end confdefs.h. */
36158 $curl_includes_winsock2
36159 $curl_includes_bsdsocket
36160 $curl_includes_netdb
36165 if(0 != gethostbyname(0))
36173 if ac_fn_c_try_compile "$LINENO"; then :
36175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36176 $as_echo "yes" >&6; }
36177 tst_compi_gethostbyname="yes"
36181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36182 $as_echo "no" >&6; }
36183 tst_compi_gethostbyname="no"
36186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36189 if test "$tst_compi_gethostbyname" = "yes"; then
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
36191 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
36192 if test "x$curl_disallow_gethostbyname" != "xyes"; then
36193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36194 $as_echo "yes" >&6; }
36195 tst_allow_gethostbyname="yes"
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36198 $as_echo "no" >&6; }
36199 tst_allow_gethostbyname="no"
36203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
36204 $as_echo_n "checking if gethostbyname might be used... " >&6; }
36205 if test "$tst_links_gethostbyname" = "yes" &&
36206 test "$tst_proto_gethostbyname" = "yes" &&
36207 test "$tst_compi_gethostbyname" = "yes" &&
36208 test "$tst_allow_gethostbyname" = "yes"; then
36209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36210 $as_echo "yes" >&6; }
36212 cat >>confdefs.h <<_ACEOF
36213 #define HAVE_GETHOSTBYNAME 1
36216 curl_cv_func_gethostbyname="yes"
36218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36219 $as_echo "no" >&6; }
36220 curl_cv_func_gethostbyname="no"
36225 tst_links_gethostbyname_r="unknown"
36226 tst_proto_gethostbyname_r="unknown"
36227 tst_compi_gethostbyname_r="unknown"
36228 tst_allow_gethostbyname_r="unknown"
36229 tst_nargs_gethostbyname_r="unknown"
36231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
36232 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
36233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36234 /* end confdefs.h. */
36237 #define gethostbyname_r innocuous_gethostbyname_r
36239 # include <limits.h>
36241 # include <assert.h>
36243 #undef gethostbyname_r
36247 char gethostbyname_r ();
36248 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
36254 return gethostbyname_r ();
36260 if ac_fn_c_try_link "$LINENO"; then :
36262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36263 $as_echo "yes" >&6; }
36264 tst_links_gethostbyname_r="yes"
36268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36269 $as_echo "no" >&6; }
36270 tst_links_gethostbyname_r="no"
36273 rm -f core conftest.err conftest.$ac_objext \
36274 conftest$ac_exeext conftest.$ac_ext
36276 if test "$tst_links_gethostbyname_r" = "yes"; then
36277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
36278 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
36279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36280 /* end confdefs.h. */
36282 $curl_includes_netdb
36285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36286 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
36288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36289 $as_echo "yes" >&6; }
36290 tst_proto_gethostbyname_r="yes"
36294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36295 $as_echo "no" >&6; }
36296 tst_proto_gethostbyname_r="no"
36303 if test "$tst_proto_gethostbyname_r" = "yes"; then
36304 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
36306 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
36307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36308 /* end confdefs.h. */
36311 $curl_includes_netdb
36316 if(0 != gethostbyname_r(0, 0, 0))
36324 if ac_fn_c_try_compile "$LINENO"; then :
36326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36327 $as_echo "yes" >&6; }
36328 tst_compi_gethostbyname_r="yes"
36329 tst_nargs_gethostbyname_r="3"
36333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36334 $as_echo "no" >&6; }
36335 tst_compi_gethostbyname_r="no"
36338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36340 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
36342 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
36343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36344 /* end confdefs.h. */
36347 $curl_includes_netdb
36352 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
36360 if ac_fn_c_try_compile "$LINENO"; then :
36362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36363 $as_echo "yes" >&6; }
36364 tst_compi_gethostbyname_r="yes"
36365 tst_nargs_gethostbyname_r="5"
36369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36370 $as_echo "no" >&6; }
36371 tst_compi_gethostbyname_r="no"
36374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36376 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
36377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
36378 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
36379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36380 /* end confdefs.h. */
36383 $curl_includes_netdb
36388 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
36396 if ac_fn_c_try_compile "$LINENO"; then :
36398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36399 $as_echo "yes" >&6; }
36400 tst_compi_gethostbyname_r="yes"
36401 tst_nargs_gethostbyname_r="6"
36405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36406 $as_echo "no" >&6; }
36407 tst_compi_gethostbyname_r="no"
36410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
36413 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
36414 if test "$tst_compi_gethostbyname_r" = "yes"; then
36415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36416 $as_echo "yes" >&6; }
36418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36419 $as_echo "no" >&6; }
36423 if test "$tst_compi_gethostbyname_r" = "yes"; then
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
36425 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
36426 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
36427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36428 $as_echo "yes" >&6; }
36429 tst_allow_gethostbyname_r="yes"
36431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36432 $as_echo "no" >&6; }
36433 tst_allow_gethostbyname_r="no"
36437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
36438 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
36439 if test "$tst_links_gethostbyname_r" = "yes" &&
36440 test "$tst_proto_gethostbyname_r" = "yes" &&
36441 test "$tst_compi_gethostbyname_r" = "yes" &&
36442 test "$tst_allow_gethostbyname_r" = "yes"; then
36443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36444 $as_echo "yes" >&6; }
36446 cat >>confdefs.h <<_ACEOF
36447 #define HAVE_GETHOSTBYNAME_R 1
36451 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
36453 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
36455 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
36457 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
36459 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
36461 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
36465 curl_cv_func_gethostbyname_r="yes"
36467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36468 $as_echo "no" >&6; }
36469 curl_cv_func_gethostbyname_r="no"
36473 curl_preprocess_callconv="\
36474 /* preprocess start */
36475 #ifdef HAVE_WINDOWS_H
36476 # define FUNCALLCONV __stdcall
36478 # define FUNCALLCONV
36480 /* preprocess end */"
36484 tst_links_gethostname="unknown"
36485 tst_proto_gethostname="unknown"
36486 tst_compi_gethostname="unknown"
36487 tst_allow_gethostname="unknown"
36489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
36490 $as_echo_n "checking if gethostname can be linked... " >&6; }
36491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36492 /* end confdefs.h. */
36495 $curl_includes_winsock2
36496 $curl_includes_bsdsocket
36497 $curl_includes_unistd
36502 if(0 != gethostname(0, 0))
36510 if ac_fn_c_try_link "$LINENO"; then :
36512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36513 $as_echo "yes" >&6; }
36514 tst_links_gethostname="yes"
36518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36519 $as_echo "no" >&6; }
36520 tst_links_gethostname="no"
36523 rm -f core conftest.err conftest.$ac_objext \
36524 conftest$ac_exeext conftest.$ac_ext
36526 if test "$tst_links_gethostname" = "yes"; then
36527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
36528 $as_echo_n "checking if gethostname is prototyped... " >&6; }
36529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36530 /* end confdefs.h. */
36532 $curl_includes_winsock2
36533 $curl_includes_bsdsocket
36534 $curl_includes_unistd
36537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36538 $EGREP "gethostname" >/dev/null 2>&1; then :
36540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36541 $as_echo "yes" >&6; }
36542 tst_proto_gethostname="yes"
36546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36547 $as_echo "no" >&6; }
36548 tst_proto_gethostname="no"
36555 if test "$tst_proto_gethostname" = "yes"; then
36556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
36557 $as_echo_n "checking if gethostname is compilable... " >&6; }
36558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36559 /* end confdefs.h. */
36562 $curl_includes_winsock2
36563 $curl_includes_bsdsocket
36564 $curl_includes_unistd
36569 if(0 != gethostname(0, 0))
36577 if ac_fn_c_try_compile "$LINENO"; then :
36579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36580 $as_echo "yes" >&6; }
36581 tst_compi_gethostname="yes"
36585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36586 $as_echo "no" >&6; }
36587 tst_compi_gethostname="no"
36590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36593 if test "$tst_compi_gethostname" = "yes"; then
36594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
36595 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
36596 tst_gethostname_type_arg2="unknown"
36597 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
36598 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
36599 if test "$tst_gethostname_type_arg2" = "unknown"; then
36600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36601 /* end confdefs.h. */
36604 $curl_includes_winsock2
36605 $curl_includes_bsdsocket
36606 $curl_includes_unistd
36607 $curl_preprocess_callconv
36608 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
36613 if(0 != gethostname(0, 0))
36621 if ac_fn_c_try_compile "$LINENO"; then :
36623 tst_gethostname_type_arg2="$tst_arg2"
36626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
36631 $as_echo "$tst_gethostname_type_arg2" >&6; }
36632 if test "$tst_gethostname_type_arg2" != "unknown"; then
36634 cat >>confdefs.h <<_ACEOF
36635 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
36641 if test "$tst_compi_gethostname" = "yes"; then
36642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
36643 $as_echo_n "checking if gethostname usage allowed... " >&6; }
36644 if test "x$curl_disallow_gethostname" != "xyes"; then
36645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36646 $as_echo "yes" >&6; }
36647 tst_allow_gethostname="yes"
36649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36650 $as_echo "no" >&6; }
36651 tst_allow_gethostname="no"
36655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
36656 $as_echo_n "checking if gethostname might be used... " >&6; }
36657 if test "$tst_links_gethostname" = "yes" &&
36658 test "$tst_proto_gethostname" = "yes" &&
36659 test "$tst_compi_gethostname" = "yes" &&
36660 test "$tst_allow_gethostname" = "yes"; then
36661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36662 $as_echo "yes" >&6; }
36664 cat >>confdefs.h <<_ACEOF
36665 #define HAVE_GETHOSTNAME 1
36668 curl_cv_func_gethostname="yes"
36670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36671 $as_echo "no" >&6; }
36672 curl_cv_func_gethostname="no"
36677 tst_links_getpeername="unknown"
36678 tst_proto_getpeername="unknown"
36679 tst_compi_getpeername="unknown"
36680 tst_allow_getpeername="unknown"
36682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
36683 $as_echo_n "checking if getpeername can be linked... " >&6; }
36684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36685 /* end confdefs.h. */
36688 $curl_includes_winsock2
36689 $curl_includes_bsdsocket
36690 $curl_includes_sys_socket
36695 if(0 != getpeername(0, (void *)0, (void *)0))
36703 if ac_fn_c_try_link "$LINENO"; then :
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36706 $as_echo "yes" >&6; }
36707 tst_links_getpeername="yes"
36711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36712 $as_echo "no" >&6; }
36713 tst_links_getpeername="no"
36716 rm -f core conftest.err conftest.$ac_objext \
36717 conftest$ac_exeext conftest.$ac_ext
36719 if test "$tst_links_getpeername" = "yes"; then
36720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
36721 $as_echo_n "checking if getpeername is prototyped... " >&6; }
36722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36723 /* end confdefs.h. */
36725 $curl_includes_winsock2
36726 $curl_includes_bsdsocket
36727 $curl_includes_sys_socket
36730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36731 $EGREP "getpeername" >/dev/null 2>&1; then :
36733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36734 $as_echo "yes" >&6; }
36735 tst_proto_getpeername="yes"
36739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36740 $as_echo "no" >&6; }
36741 tst_proto_getpeername="no"
36748 if test "$tst_proto_getpeername" = "yes"; then
36749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
36750 $as_echo_n "checking if getpeername is compilable... " >&6; }
36751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36752 /* end confdefs.h. */
36755 $curl_includes_winsock2
36756 $curl_includes_bsdsocket
36757 $curl_includes_sys_socket
36762 if(0 != getpeername(0, (void *)0, (void *)0))
36770 if ac_fn_c_try_compile "$LINENO"; then :
36772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36773 $as_echo "yes" >&6; }
36774 tst_compi_getpeername="yes"
36778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36779 $as_echo "no" >&6; }
36780 tst_compi_getpeername="no"
36783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36786 if test "$tst_compi_getpeername" = "yes"; then
36787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
36788 $as_echo_n "checking if getpeername usage allowed... " >&6; }
36789 if test "x$curl_disallow_getpeername" != "xyes"; then
36790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36791 $as_echo "yes" >&6; }
36792 tst_allow_getpeername="yes"
36794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36795 $as_echo "no" >&6; }
36796 tst_allow_getpeername="no"
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
36801 $as_echo_n "checking if getpeername might be used... " >&6; }
36802 if test "$tst_links_getpeername" = "yes" &&
36803 test "$tst_proto_getpeername" = "yes" &&
36804 test "$tst_compi_getpeername" = "yes" &&
36805 test "$tst_allow_getpeername" = "yes"; then
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36807 $as_echo "yes" >&6; }
36809 cat >>confdefs.h <<_ACEOF
36810 #define HAVE_GETPEERNAME 1
36813 curl_cv_func_getpeername="yes"
36815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36816 $as_echo "no" >&6; }
36817 curl_cv_func_getpeername="no"
36822 tst_links_getsockname="unknown"
36823 tst_proto_getsockname="unknown"
36824 tst_compi_getsockname="unknown"
36825 tst_allow_getsockname="unknown"
36827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
36828 $as_echo_n "checking if getsockname can be linked... " >&6; }
36829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36830 /* end confdefs.h. */
36833 $curl_includes_winsock2
36834 $curl_includes_bsdsocket
36835 $curl_includes_sys_socket
36840 if(0 != getsockname(0, (void *)0, (void *)0))
36848 if ac_fn_c_try_link "$LINENO"; then :
36850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36851 $as_echo "yes" >&6; }
36852 tst_links_getsockname="yes"
36856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36857 $as_echo "no" >&6; }
36858 tst_links_getsockname="no"
36861 rm -f core conftest.err conftest.$ac_objext \
36862 conftest$ac_exeext conftest.$ac_ext
36864 if test "$tst_links_getsockname" = "yes"; then
36865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
36866 $as_echo_n "checking if getsockname is prototyped... " >&6; }
36867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36868 /* end confdefs.h. */
36870 $curl_includes_winsock2
36871 $curl_includes_bsdsocket
36872 $curl_includes_sys_socket
36875 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36876 $EGREP "getsockname" >/dev/null 2>&1; then :
36878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36879 $as_echo "yes" >&6; }
36880 tst_proto_getsockname="yes"
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885 $as_echo "no" >&6; }
36886 tst_proto_getsockname="no"
36893 if test "$tst_proto_getsockname" = "yes"; then
36894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
36895 $as_echo_n "checking if getsockname is compilable... " >&6; }
36896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36897 /* end confdefs.h. */
36900 $curl_includes_winsock2
36901 $curl_includes_bsdsocket
36902 $curl_includes_sys_socket
36907 if(0 != getsockname(0, (void *)0, (void *)0))
36915 if ac_fn_c_try_compile "$LINENO"; then :
36917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36918 $as_echo "yes" >&6; }
36919 tst_compi_getsockname="yes"
36923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36924 $as_echo "no" >&6; }
36925 tst_compi_getsockname="no"
36928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36931 if test "$tst_compi_getsockname" = "yes"; then
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
36933 $as_echo_n "checking if getsockname usage allowed... " >&6; }
36934 if test "x$curl_disallow_getsockname" != "xyes"; then
36935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36936 $as_echo "yes" >&6; }
36937 tst_allow_getsockname="yes"
36939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36940 $as_echo "no" >&6; }
36941 tst_allow_getsockname="no"
36945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
36946 $as_echo_n "checking if getsockname might be used... " >&6; }
36947 if test "$tst_links_getsockname" = "yes" &&
36948 test "$tst_proto_getsockname" = "yes" &&
36949 test "$tst_compi_getsockname" = "yes" &&
36950 test "$tst_allow_getsockname" = "yes"; then
36951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 $as_echo "yes" >&6; }
36954 cat >>confdefs.h <<_ACEOF
36955 #define HAVE_GETSOCKNAME 1
36958 curl_cv_func_getsockname="yes"
36960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36961 $as_echo "no" >&6; }
36962 curl_cv_func_getsockname="no"
36966 curl_includes_netif="\
36967 /* includes start */
36968 #ifdef HAVE_NET_IF_H
36969 # include <net/if.h>
36971 /* includes end */"
36972 for ac_header in net/if.h
36974 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
36976 if test "x$ac_cv_header_net_if_h" = xyes; then :
36977 cat >>confdefs.h <<_ACEOF
36978 #define HAVE_NET_IF_H 1
36988 tst_links_if_nametoindex="unknown"
36989 tst_proto_if_nametoindex="unknown"
36990 tst_compi_if_nametoindex="unknown"
36991 tst_allow_if_nametoindex="unknown"
36993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
36994 $as_echo_n "checking if if_nametoindex can be linked... " >&6; }
36995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36996 /* end confdefs.h. */
36999 $curl_includes_winsock2
37000 $curl_includes_bsdsocket
37001 #include <net/if.h>
37006 if(0 != if_nametoindex(""))
37014 if ac_fn_c_try_link "$LINENO"; then :
37016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37017 $as_echo "yes" >&6; }
37018 tst_links_if_nametoindex="yes"
37022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37023 $as_echo "no" >&6; }
37024 tst_links_if_nametoindex="no"
37027 rm -f core conftest.err conftest.$ac_objext \
37028 conftest$ac_exeext conftest.$ac_ext
37030 if test "$tst_links_if_nametoindex" = "yes"; then
37031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
37032 $as_echo_n "checking if if_nametoindex is prototyped... " >&6; }
37033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37034 /* end confdefs.h. */
37036 $curl_includes_winsock2
37037 $curl_includes_netif
37040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37041 $EGREP "if_nametoindex" >/dev/null 2>&1; then :
37043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37044 $as_echo "yes" >&6; }
37045 tst_proto_if_nametoindex="yes"
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37050 $as_echo "no" >&6; }
37051 tst_proto_if_nametoindex="no"
37058 if test "$tst_proto_if_nametoindex" = "yes"; then
37059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
37060 $as_echo_n "checking if if_nametoindex is compilable... " >&6; }
37061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37062 /* end confdefs.h. */
37065 $curl_includes_winsock2
37066 $curl_includes_netif
37071 if(0 != if_nametoindex(""))
37079 if ac_fn_c_try_compile "$LINENO"; then :
37081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37082 $as_echo "yes" >&6; }
37083 tst_compi_if_nametoindex="yes"
37087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37088 $as_echo "no" >&6; }
37089 tst_compi_if_nametoindex="no"
37092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37095 if test "$tst_compi_if_nametoindex" = "yes"; then
37096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
37097 $as_echo_n "checking if if_nametoindex usage allowed... " >&6; }
37098 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
37099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37100 $as_echo "yes" >&6; }
37101 tst_allow_if_nametoindex="yes"
37103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37104 $as_echo "no" >&6; }
37105 tst_allow_if_nametoindex="no"
37109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
37110 $as_echo_n "checking if if_nametoindex might be used... " >&6; }
37111 if test "$tst_links_if_nametoindex" = "yes" &&
37112 test "$tst_proto_if_nametoindex" = "yes" &&
37113 test "$tst_compi_if_nametoindex" = "yes" &&
37114 test "$tst_allow_if_nametoindex" = "yes"; then
37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37116 $as_echo "yes" >&6; }
37118 cat >>confdefs.h <<_ACEOF
37119 #define HAVE_IF_NAMETOINDEX 1
37122 curl_cv_func_if_nametoindex="yes"
37124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37125 $as_echo "no" >&6; }
37126 curl_cv_func_if_nametoindex="no"
37131 tst_links_getifaddrs="unknown"
37132 tst_proto_getifaddrs="unknown"
37133 tst_compi_getifaddrs="unknown"
37134 tst_works_getifaddrs="unknown"
37135 tst_allow_getifaddrs="unknown"
37137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
37138 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
37139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37140 /* end confdefs.h. */
37143 #define getifaddrs innocuous_getifaddrs
37145 # include <limits.h>
37147 # include <assert.h>
37153 char getifaddrs ();
37154 #if defined __stub_getifaddrs || defined __stub___getifaddrs
37160 return getifaddrs ();
37166 if ac_fn_c_try_link "$LINENO"; then :
37168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37169 $as_echo "yes" >&6; }
37170 tst_links_getifaddrs="yes"
37174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37175 $as_echo "no" >&6; }
37176 tst_links_getifaddrs="no"
37179 rm -f core conftest.err conftest.$ac_objext \
37180 conftest$ac_exeext conftest.$ac_ext
37182 if test "$tst_links_getifaddrs" = "yes"; then
37183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
37184 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
37185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37186 /* end confdefs.h. */
37188 $curl_includes_ifaddrs
37191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37192 $EGREP "getifaddrs" >/dev/null 2>&1; then :
37194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37195 $as_echo "yes" >&6; }
37196 tst_proto_getifaddrs="yes"
37200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37201 $as_echo "no" >&6; }
37202 tst_proto_getifaddrs="no"
37209 if test "$tst_proto_getifaddrs" = "yes"; then
37210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
37211 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
37212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37213 /* end confdefs.h. */
37216 $curl_includes_ifaddrs
37221 if(0 != getifaddrs(0))
37229 if ac_fn_c_try_compile "$LINENO"; then :
37231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 $as_echo "yes" >&6; }
37233 tst_compi_getifaddrs="yes"
37237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37238 $as_echo "no" >&6; }
37239 tst_compi_getifaddrs="no"
37242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37245 if test "x$cross_compiling" != "xyes" &&
37246 test "$tst_compi_getifaddrs" = "yes"; then
37247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
37248 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
37250 old=$LD_LIBRARY_PATH
37251 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37252 export LD_LIBRARY_PATH
37253 if test "$cross_compiling" = yes; then :
37254 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37255 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37256 as_fn_error $? "cannot run test program while cross compiling
37257 See \`config.log' for more details" "$LINENO" 5; }
37259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37260 /* end confdefs.h. */
37263 $curl_includes_stdlib
37264 $curl_includes_ifaddrs
37269 struct ifaddrs *ifa = 0;
37272 error = getifaddrs(&ifa);
37274 exit(1); /* fail */
37283 if ac_fn_c_try_run "$LINENO"; then :
37284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37285 $as_echo "yes" >&6; }
37286 tst_works_getifaddrs="yes"
37289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37290 $as_echo "no" >&6; }
37291 tst_works_getifaddrs="no"
37294 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37295 conftest.$ac_objext conftest.beam conftest.$ac_ext
37298 LD_LIBRARY_PATH=$old # restore
37302 if test "$tst_compi_getifaddrs" = "yes" &&
37303 test "$tst_works_getifaddrs" != "no"; then
37304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
37305 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
37306 if test "x$curl_disallow_getifaddrs" != "xyes"; then
37307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37308 $as_echo "yes" >&6; }
37309 tst_allow_getifaddrs="yes"
37311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37312 $as_echo "no" >&6; }
37313 tst_allow_getifaddrs="no"
37317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
37318 $as_echo_n "checking if getifaddrs might be used... " >&6; }
37319 if test "$tst_links_getifaddrs" = "yes" &&
37320 test "$tst_proto_getifaddrs" = "yes" &&
37321 test "$tst_compi_getifaddrs" = "yes" &&
37322 test "$tst_allow_getifaddrs" = "yes" &&
37323 test "$tst_works_getifaddrs" != "no"; then
37324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37325 $as_echo "yes" >&6; }
37327 cat >>confdefs.h <<_ACEOF
37328 #define HAVE_GETIFADDRS 1
37331 curl_cv_func_getifaddrs="yes"
37333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37334 $as_echo "no" >&6; }
37335 curl_cv_func_getifaddrs="no"
37340 tst_links_getservbyport_r="unknown"
37341 tst_proto_getservbyport_r="unknown"
37342 tst_compi_getservbyport_r="unknown"
37343 tst_allow_getservbyport_r="unknown"
37344 tst_nargs_getservbyport_r="unknown"
37346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
37347 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
37348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37349 /* end confdefs.h. */
37352 #define getservbyport_r innocuous_getservbyport_r
37354 # include <limits.h>
37356 # include <assert.h>
37358 #undef getservbyport_r
37362 char getservbyport_r ();
37363 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
37369 return getservbyport_r ();
37375 if ac_fn_c_try_link "$LINENO"; then :
37377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37378 $as_echo "yes" >&6; }
37379 tst_links_getservbyport_r="yes"
37383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37384 $as_echo "no" >&6; }
37385 tst_links_getservbyport_r="no"
37388 rm -f core conftest.err conftest.$ac_objext \
37389 conftest$ac_exeext conftest.$ac_ext
37391 if test "$tst_links_getservbyport_r" = "yes"; then
37392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
37393 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
37394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37395 /* end confdefs.h. */
37397 $curl_includes_netdb
37400 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37401 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
37403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37404 $as_echo "yes" >&6; }
37405 tst_proto_getservbyport_r="yes"
37409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37410 $as_echo "no" >&6; }
37411 tst_proto_getservbyport_r="no"
37418 if test "$tst_proto_getservbyport_r" = "yes"; then
37419 if test "$tst_nargs_getservbyport_r" = "unknown"; then
37420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
37421 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
37422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37423 /* end confdefs.h. */
37426 $curl_includes_netdb
37431 if(0 != getservbyport_r(0, 0, 0, 0))
37439 if ac_fn_c_try_compile "$LINENO"; then :
37441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37442 $as_echo "yes" >&6; }
37443 tst_compi_getservbyport_r="yes"
37444 tst_nargs_getservbyport_r="4"
37448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37449 $as_echo "no" >&6; }
37450 tst_compi_getservbyport_r="no"
37453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37455 if test "$tst_nargs_getservbyport_r" = "unknown"; then
37456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
37457 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
37458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37459 /* end confdefs.h. */
37462 $curl_includes_netdb
37467 if(0 != getservbyport_r(0, 0, 0, 0, 0))
37475 if ac_fn_c_try_compile "$LINENO"; then :
37477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37478 $as_echo "yes" >&6; }
37479 tst_compi_getservbyport_r="yes"
37480 tst_nargs_getservbyport_r="5"
37484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37485 $as_echo "no" >&6; }
37486 tst_compi_getservbyport_r="no"
37489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37491 if test "$tst_nargs_getservbyport_r" = "unknown"; then
37492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
37493 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
37494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37495 /* end confdefs.h. */
37498 $curl_includes_netdb
37503 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
37511 if ac_fn_c_try_compile "$LINENO"; then :
37513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37514 $as_echo "yes" >&6; }
37515 tst_compi_getservbyport_r="yes"
37516 tst_nargs_getservbyport_r="6"
37520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37521 $as_echo "no" >&6; }
37522 tst_compi_getservbyport_r="no"
37525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
37528 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
37529 if test "$tst_compi_getservbyport_r" = "yes"; then
37530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37531 $as_echo "yes" >&6; }
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37534 $as_echo "no" >&6; }
37538 if test "$tst_compi_getservbyport_r" = "yes"; then
37539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
37540 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
37541 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
37542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37543 $as_echo "yes" >&6; }
37544 tst_allow_getservbyport_r="yes"
37546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37547 $as_echo "no" >&6; }
37548 tst_allow_getservbyport_r="no"
37552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
37553 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
37554 if test "$tst_links_getservbyport_r" = "yes" &&
37555 test "$tst_proto_getservbyport_r" = "yes" &&
37556 test "$tst_compi_getservbyport_r" = "yes" &&
37557 test "$tst_allow_getservbyport_r" = "yes"; then
37558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37559 $as_echo "yes" >&6; }
37561 cat >>confdefs.h <<_ACEOF
37562 #define HAVE_GETSERVBYPORT_R 1
37566 cat >>confdefs.h <<_ACEOF
37567 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
37570 if test "$tst_nargs_getservbyport_r" -eq "4"; then
37572 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
37576 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
37579 curl_cv_func_getservbyport_r="yes"
37581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37582 $as_echo "no" >&6; }
37583 curl_cv_func_getservbyport_r="no"
37587 curl_includes_time="\
37588 /* includes start */
37589 #ifdef HAVE_SYS_TYPES_H
37590 # include <sys/types.h>
37592 #ifdef HAVE_SYS_TIME_H
37593 # include <sys/time.h>
37594 # ifdef TIME_WITH_SYS_TIME
37598 # ifdef HAVE_TIME_H
37602 /* includes end */"
37603 for ac_header in sys/types.h sys/time.h time.h
37605 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37606 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
37608 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37609 cat >>confdefs.h <<_ACEOF
37610 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37620 tst_links_gmtime_r="unknown"
37621 tst_proto_gmtime_r="unknown"
37622 tst_compi_gmtime_r="unknown"
37623 tst_works_gmtime_r="unknown"
37624 tst_allow_gmtime_r="unknown"
37626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
37627 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
37628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37629 /* end confdefs.h. */
37632 #define gmtime_r innocuous_gmtime_r
37634 # include <limits.h>
37636 # include <assert.h>
37643 #if defined __stub_gmtime_r || defined __stub___gmtime_r
37649 return gmtime_r ();
37655 if ac_fn_c_try_link "$LINENO"; then :
37657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37658 $as_echo "yes" >&6; }
37659 tst_links_gmtime_r="yes"
37663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37664 $as_echo "no" >&6; }
37665 tst_links_gmtime_r="no"
37668 rm -f core conftest.err conftest.$ac_objext \
37669 conftest$ac_exeext conftest.$ac_ext
37671 if test "$tst_links_gmtime_r" = "yes"; then
37672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
37673 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
37674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37675 /* end confdefs.h. */
37677 $curl_includes_time
37680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37681 $EGREP "gmtime_r" >/dev/null 2>&1; then :
37683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37684 $as_echo "yes" >&6; }
37685 tst_proto_gmtime_r="yes"
37689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37690 $as_echo "no" >&6; }
37691 tst_proto_gmtime_r="no"
37698 if test "$tst_proto_gmtime_r" = "yes"; then
37699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
37700 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
37701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37702 /* end confdefs.h. */
37705 $curl_includes_time
37710 if(0 != gmtime_r(0, 0))
37718 if ac_fn_c_try_compile "$LINENO"; then :
37720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37721 $as_echo "yes" >&6; }
37722 tst_compi_gmtime_r="yes"
37726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37727 $as_echo "no" >&6; }
37728 tst_compi_gmtime_r="no"
37731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37734 if test "x$cross_compiling" != "xyes" &&
37735 test "$tst_compi_gmtime_r" = "yes"; then
37736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
37737 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
37739 old=$LD_LIBRARY_PATH
37740 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37741 export LD_LIBRARY_PATH
37742 if test "$cross_compiling" = yes; then :
37743 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37744 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37745 as_fn_error $? "cannot run test program while cross compiling
37746 See \`config.log' for more details" "$LINENO" 5; }
37748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37749 /* end confdefs.h. */
37752 $curl_includes_stdlib
37753 $curl_includes_time
37758 time_t local = 1170352587;
37759 struct tm *gmt = 0;
37761 gmt = gmtime_r(&local, &result);
37772 if ac_fn_c_try_run "$LINENO"; then :
37773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37774 $as_echo "yes" >&6; }
37775 tst_works_gmtime_r="yes"
37778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37779 $as_echo "no" >&6; }
37780 tst_works_gmtime_r="no"
37783 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37784 conftest.$ac_objext conftest.beam conftest.$ac_ext
37787 LD_LIBRARY_PATH=$old # restore
37791 if test "$tst_compi_gmtime_r" = "yes" &&
37792 test "$tst_works_gmtime_r" != "no"; then
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
37794 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
37795 if test "x$curl_disallow_gmtime_r" != "xyes"; then
37796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37797 $as_echo "yes" >&6; }
37798 tst_allow_gmtime_r="yes"
37800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37801 $as_echo "no" >&6; }
37802 tst_allow_gmtime_r="no"
37806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
37807 $as_echo_n "checking if gmtime_r might be used... " >&6; }
37808 if test "$tst_links_gmtime_r" = "yes" &&
37809 test "$tst_proto_gmtime_r" = "yes" &&
37810 test "$tst_compi_gmtime_r" = "yes" &&
37811 test "$tst_allow_gmtime_r" = "yes" &&
37812 test "$tst_works_gmtime_r" != "no"; then
37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37814 $as_echo "yes" >&6; }
37816 cat >>confdefs.h <<_ACEOF
37817 #define HAVE_GMTIME_R 1
37820 curl_cv_func_gmtime_r="yes"
37822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37823 $as_echo "no" >&6; }
37824 curl_cv_func_gmtime_r="no"
37828 curl_includes_arpa_inet="\
37829 /* includes start */
37830 #ifdef HAVE_SYS_TYPES_H
37831 # include <sys/types.h>
37833 #ifdef HAVE_SYS_SOCKET_H
37834 # include <sys/socket.h>
37836 #ifdef HAVE_NETINET_IN_H
37837 # include <netinet/in.h>
37839 #ifdef HAVE_ARPA_INET_H
37840 # include <arpa/inet.h>
37842 #ifdef HAVE_WINSOCK2_H
37843 #include <winsock2.h>
37844 #include <ws2tcpip.h>
37846 /* includes end */"
37847 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
37849 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37850 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
37852 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37853 cat >>confdefs.h <<_ACEOF
37854 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37864 tst_links_inet_ntoa_r="unknown"
37865 tst_proto_inet_ntoa_r="unknown"
37866 tst_compi_inet_ntoa_r="unknown"
37867 tst_allow_inet_ntoa_r="unknown"
37868 tst_nargs_inet_ntoa_r="unknown"
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
37871 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
37872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37873 /* end confdefs.h. */
37876 #define inet_ntoa_r innocuous_inet_ntoa_r
37878 # include <limits.h>
37880 # include <assert.h>
37886 char inet_ntoa_r ();
37887 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
37893 return inet_ntoa_r ();
37899 if ac_fn_c_try_link "$LINENO"; then :
37901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37902 $as_echo "yes" >&6; }
37903 tst_links_inet_ntoa_r="yes"
37907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37908 $as_echo "no" >&6; }
37909 tst_links_inet_ntoa_r="no"
37912 rm -f core conftest.err conftest.$ac_objext \
37913 conftest$ac_exeext conftest.$ac_ext
37915 if test "$tst_links_inet_ntoa_r" = "yes"; then
37916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
37917 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
37918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37919 /* end confdefs.h. */
37921 $curl_includes_arpa_inet
37924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37925 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
37927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37928 $as_echo "yes" >&6; }
37929 tst_proto_inet_ntoa_r="yes"
37933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37934 $as_echo "no" >&6; }
37935 tst_proto_inet_ntoa_r="no"
37942 if test "$tst_proto_inet_ntoa_r" = "yes"; then
37943 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
37944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
37945 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
37946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37947 /* end confdefs.h. */
37950 $curl_includes_arpa_inet
37955 struct in_addr addr;
37956 if(0 != inet_ntoa_r(addr, 0))
37964 if ac_fn_c_try_compile "$LINENO"; then :
37966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37967 $as_echo "yes" >&6; }
37968 tst_compi_inet_ntoa_r="yes"
37969 tst_nargs_inet_ntoa_r="2"
37973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37974 $as_echo "no" >&6; }
37975 tst_compi_inet_ntoa_r="no"
37978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37980 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
37981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
37982 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
37983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37984 /* end confdefs.h. */
37987 $curl_includes_arpa_inet
37992 struct in_addr addr;
37993 if(0 != inet_ntoa_r(addr, 0, 0))
38001 if ac_fn_c_try_compile "$LINENO"; then :
38003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38004 $as_echo "yes" >&6; }
38005 tst_compi_inet_ntoa_r="yes"
38006 tst_nargs_inet_ntoa_r="3"
38010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38011 $as_echo "no" >&6; }
38012 tst_compi_inet_ntoa_r="no"
38015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
38018 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
38019 if test "$tst_compi_inet_ntoa_r" = "yes"; then
38020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38021 $as_echo "yes" >&6; }
38023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38024 $as_echo "no" >&6; }
38028 if test "$tst_compi_inet_ntoa_r" = "yes"; then
38029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
38030 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
38031 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
38032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38033 $as_echo "yes" >&6; }
38034 tst_allow_inet_ntoa_r="yes"
38036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38037 $as_echo "no" >&6; }
38038 tst_allow_inet_ntoa_r="no"
38042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
38043 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
38044 if test "$tst_links_inet_ntoa_r" = "yes" &&
38045 test "$tst_proto_inet_ntoa_r" = "yes" &&
38046 test "$tst_compi_inet_ntoa_r" = "yes" &&
38047 test "$tst_allow_inet_ntoa_r" = "yes"; then
38048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38049 $as_echo "yes" >&6; }
38051 cat >>confdefs.h <<_ACEOF
38052 #define HAVE_INET_NTOA_R 1
38056 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
38058 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
38060 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
38062 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
38066 curl_cv_func_inet_ntoa_r="yes"
38068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38069 $as_echo "no" >&6; }
38070 curl_cv_func_inet_ntoa_r="no"
38075 tst_links_inet_ntop="unknown"
38076 tst_proto_inet_ntop="unknown"
38077 tst_compi_inet_ntop="unknown"
38078 tst_works_inet_ntop="unknown"
38079 tst_allow_inet_ntop="unknown"
38081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
38082 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
38083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38084 /* end confdefs.h. */
38087 #define inet_ntop innocuous_inet_ntop
38089 # include <limits.h>
38091 # include <assert.h>
38098 #if defined __stub_inet_ntop || defined __stub___inet_ntop
38104 return inet_ntop ();
38110 if ac_fn_c_try_link "$LINENO"; then :
38112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38113 $as_echo "yes" >&6; }
38114 tst_links_inet_ntop="yes"
38118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38119 $as_echo "no" >&6; }
38120 tst_links_inet_ntop="no"
38123 rm -f core conftest.err conftest.$ac_objext \
38124 conftest$ac_exeext conftest.$ac_ext
38126 if test "$tst_links_inet_ntop" = "yes"; then
38127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
38128 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
38129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38130 /* end confdefs.h. */
38132 $curl_includes_arpa_inet
38135 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38136 $EGREP "inet_ntop" >/dev/null 2>&1; then :
38138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38139 $as_echo "yes" >&6; }
38140 tst_proto_inet_ntop="yes"
38144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38145 $as_echo "no" >&6; }
38146 tst_proto_inet_ntop="no"
38153 if test "$tst_proto_inet_ntop" = "yes"; then
38154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
38155 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
38156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38157 /* end confdefs.h. */
38160 $curl_includes_arpa_inet
38165 if(0 != inet_ntop(0, 0, 0, 0))
38173 if ac_fn_c_try_compile "$LINENO"; then :
38175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38176 $as_echo "yes" >&6; }
38177 tst_compi_inet_ntop="yes"
38181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38182 $as_echo "no" >&6; }
38183 tst_compi_inet_ntop="no"
38186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38189 if test "x$cross_compiling" != "xyes" &&
38190 test "$tst_compi_inet_ntop" = "yes"; then
38191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
38192 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
38194 old=$LD_LIBRARY_PATH
38195 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38196 export LD_LIBRARY_PATH
38197 if test "$cross_compiling" = yes; then :
38198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38200 as_fn_error $? "cannot run test program while cross compiling
38201 See \`config.log' for more details" "$LINENO" 5; }
38203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38204 /* end confdefs.h. */
38207 $curl_includes_stdlib
38208 $curl_includes_arpa_inet
38209 $curl_includes_string
38214 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
38215 char ipv4res[sizeof "255.255.255.255"];
38216 unsigned char ipv6a[26];
38217 unsigned char ipv4a[5];
38228 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
38230 exit(1); /* fail */
38231 if(ipv4ptr != ipv4res)
38232 exit(1); /* fail */
38234 exit(1); /* fail */
38235 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
38236 exit(1); /* fail */
38239 memset(ipv6a, 0, sizeof(ipv6a));
38252 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
38254 exit(1); /* fail */
38255 if(ipv6ptr != ipv6res)
38256 exit(1); /* fail */
38258 exit(1); /* fail */
38259 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
38260 exit(1); /* fail */
38269 if ac_fn_c_try_run "$LINENO"; then :
38270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38271 $as_echo "yes" >&6; }
38272 tst_works_inet_ntop="yes"
38275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38276 $as_echo "no" >&6; }
38277 tst_works_inet_ntop="no"
38280 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38281 conftest.$ac_objext conftest.beam conftest.$ac_ext
38284 LD_LIBRARY_PATH=$old # restore
38288 if test "$tst_compi_inet_ntop" = "yes" &&
38289 test "$tst_works_inet_ntop" != "no"; then
38290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
38291 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
38292 if test "x$curl_disallow_inet_ntop" != "xyes"; then
38293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38294 $as_echo "yes" >&6; }
38295 tst_allow_inet_ntop="yes"
38297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38298 $as_echo "no" >&6; }
38299 tst_allow_inet_ntop="no"
38303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
38304 $as_echo_n "checking if inet_ntop might be used... " >&6; }
38305 if test "$tst_links_inet_ntop" = "yes" &&
38306 test "$tst_proto_inet_ntop" = "yes" &&
38307 test "$tst_compi_inet_ntop" = "yes" &&
38308 test "$tst_allow_inet_ntop" = "yes" &&
38309 test "$tst_works_inet_ntop" != "no"; then
38310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38311 $as_echo "yes" >&6; }
38313 cat >>confdefs.h <<_ACEOF
38314 #define HAVE_INET_NTOP 1
38317 curl_cv_func_inet_ntop="yes"
38319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38320 $as_echo "no" >&6; }
38321 curl_cv_func_inet_ntop="no"
38326 tst_links_inet_pton="unknown"
38327 tst_proto_inet_pton="unknown"
38328 tst_compi_inet_pton="unknown"
38329 tst_works_inet_pton="unknown"
38330 tst_allow_inet_pton="unknown"
38332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
38333 $as_echo_n "checking if inet_pton can be linked... " >&6; }
38334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38335 /* end confdefs.h. */
38338 #define inet_pton innocuous_inet_pton
38340 # include <limits.h>
38342 # include <assert.h>
38349 #if defined __stub_inet_pton || defined __stub___inet_pton
38355 return inet_pton ();
38361 if ac_fn_c_try_link "$LINENO"; then :
38363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38364 $as_echo "yes" >&6; }
38365 tst_links_inet_pton="yes"
38369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38370 $as_echo "no" >&6; }
38371 tst_links_inet_pton="no"
38374 rm -f core conftest.err conftest.$ac_objext \
38375 conftest$ac_exeext conftest.$ac_ext
38377 if test "$tst_links_inet_pton" = "yes"; then
38378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
38379 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
38380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38381 /* end confdefs.h. */
38383 $curl_includes_arpa_inet
38386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38387 $EGREP "inet_pton" >/dev/null 2>&1; then :
38389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38390 $as_echo "yes" >&6; }
38391 tst_proto_inet_pton="yes"
38395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38396 $as_echo "no" >&6; }
38397 tst_proto_inet_pton="no"
38404 if test "$tst_proto_inet_pton" = "yes"; then
38405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
38406 $as_echo_n "checking if inet_pton is compilable... " >&6; }
38407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38408 /* end confdefs.h. */
38411 $curl_includes_arpa_inet
38416 if(0 != inet_pton(0, 0, 0))
38424 if ac_fn_c_try_compile "$LINENO"; then :
38426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38427 $as_echo "yes" >&6; }
38428 tst_compi_inet_pton="yes"
38432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38433 $as_echo "no" >&6; }
38434 tst_compi_inet_pton="no"
38437 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38440 if test "x$cross_compiling" != "xyes" &&
38441 test "$tst_compi_inet_pton" = "yes"; then
38442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
38443 $as_echo_n "checking if inet_pton seems to work... " >&6; }
38445 old=$LD_LIBRARY_PATH
38446 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38447 export LD_LIBRARY_PATH
38448 if test "$cross_compiling" = yes; then :
38449 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38451 as_fn_error $? "cannot run test program while cross compiling
38452 See \`config.log' for more details" "$LINENO" 5; }
38454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38455 /* end confdefs.h. */
38458 $curl_includes_stdlib
38459 $curl_includes_arpa_inet
38460 $curl_includes_string
38465 unsigned char ipv6a[16+1];
38466 unsigned char ipv4a[4+1];
38467 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
38468 const char *ipv4src = "192.168.100.1";
38470 memset(ipv4a, 1, sizeof(ipv4a));
38471 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
38472 exit(1); /* fail */
38474 if( (ipv4a[0] != 0xc0) ||
38475 (ipv4a[1] != 0xa8) ||
38476 (ipv4a[2] != 0x64) ||
38477 (ipv4a[3] != 0x01) ||
38478 (ipv4a[4] != 0x01) )
38479 exit(1); /* fail */
38481 memset(ipv6a, 1, sizeof(ipv6a));
38482 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
38483 exit(1); /* fail */
38485 if( (ipv6a[0] != 0xfe) ||
38486 (ipv6a[1] != 0x80) ||
38487 (ipv6a[8] != 0x02) ||
38488 (ipv6a[9] != 0x14) ||
38489 (ipv6a[10] != 0x4f) ||
38490 (ipv6a[11] != 0xff) ||
38491 (ipv6a[12] != 0xfe) ||
38492 (ipv6a[13] != 0x0b) ||
38493 (ipv6a[14] != 0x76) ||
38494 (ipv6a[15] != 0xc8) ||
38495 (ipv6a[16] != 0x01) )
38496 exit(1); /* fail */
38498 if( (ipv6a[2] != 0x0) ||
38499 (ipv6a[3] != 0x0) ||
38500 (ipv6a[4] != 0x0) ||
38501 (ipv6a[5] != 0x0) ||
38502 (ipv6a[6] != 0x0) ||
38503 (ipv6a[7] != 0x0) )
38504 exit(1); /* fail */
38513 if ac_fn_c_try_run "$LINENO"; then :
38514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38515 $as_echo "yes" >&6; }
38516 tst_works_inet_pton="yes"
38519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38520 $as_echo "no" >&6; }
38521 tst_works_inet_pton="no"
38524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38525 conftest.$ac_objext conftest.beam conftest.$ac_ext
38528 LD_LIBRARY_PATH=$old # restore
38532 if test "$tst_compi_inet_pton" = "yes" &&
38533 test "$tst_works_inet_pton" != "no"; then
38534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
38535 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
38536 if test "x$curl_disallow_inet_pton" != "xyes"; then
38537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538 $as_echo "yes" >&6; }
38539 tst_allow_inet_pton="yes"
38541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38542 $as_echo "no" >&6; }
38543 tst_allow_inet_pton="no"
38547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
38548 $as_echo_n "checking if inet_pton might be used... " >&6; }
38549 if test "$tst_links_inet_pton" = "yes" &&
38550 test "$tst_proto_inet_pton" = "yes" &&
38551 test "$tst_compi_inet_pton" = "yes" &&
38552 test "$tst_allow_inet_pton" = "yes" &&
38553 test "$tst_works_inet_pton" != "no"; then
38554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38555 $as_echo "yes" >&6; }
38557 cat >>confdefs.h <<_ACEOF
38558 #define HAVE_INET_PTON 1
38561 curl_cv_func_inet_pton="yes"
38563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38564 $as_echo "no" >&6; }
38565 curl_cv_func_inet_pton="no"
38569 curl_includes_stropts="\
38570 /* includes start */
38571 #ifdef HAVE_SYS_TYPES_H
38572 # include <sys/types.h>
38574 #ifdef HAVE_UNISTD_H
38575 # include <unistd.h>
38577 #ifdef HAVE_SYS_SOCKET_H
38578 # include <sys/socket.h>
38580 #ifdef HAVE_SYS_IOCTL_H
38581 # include <sys/ioctl.h>
38583 #ifdef HAVE_STROPTS_H
38584 # include <stropts.h>
38586 /* includes end */"
38587 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
38589 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38590 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
38592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38593 cat >>confdefs.h <<_ACEOF
38594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38604 tst_links_ioctl="unknown"
38605 tst_proto_ioctl="unknown"
38606 tst_compi_ioctl="unknown"
38607 tst_allow_ioctl="unknown"
38609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
38610 $as_echo_n "checking if ioctl can be linked... " >&6; }
38611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38612 /* end confdefs.h. */
38615 #define ioctl innocuous_ioctl
38617 # include <limits.h>
38619 # include <assert.h>
38626 #if defined __stub_ioctl || defined __stub___ioctl
38638 if ac_fn_c_try_link "$LINENO"; then :
38640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38641 $as_echo "yes" >&6; }
38642 tst_links_ioctl="yes"
38646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38647 $as_echo "no" >&6; }
38648 tst_links_ioctl="no"
38651 rm -f core conftest.err conftest.$ac_objext \
38652 conftest$ac_exeext conftest.$ac_ext
38654 if test "$tst_links_ioctl" = "yes"; then
38655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
38656 $as_echo_n "checking if ioctl is prototyped... " >&6; }
38657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38658 /* end confdefs.h. */
38660 $curl_includes_stropts
38663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38664 $EGREP "ioctl" >/dev/null 2>&1; then :
38666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38667 $as_echo "yes" >&6; }
38668 tst_proto_ioctl="yes"
38672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38673 $as_echo "no" >&6; }
38674 tst_proto_ioctl="no"
38681 if test "$tst_proto_ioctl" = "yes"; then
38682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
38683 $as_echo_n "checking if ioctl is compilable... " >&6; }
38684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38685 /* end confdefs.h. */
38688 $curl_includes_stropts
38693 if(0 != ioctl(0, 0, 0))
38701 if ac_fn_c_try_compile "$LINENO"; then :
38703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38704 $as_echo "yes" >&6; }
38705 tst_compi_ioctl="yes"
38709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38710 $as_echo "no" >&6; }
38711 tst_compi_ioctl="no"
38714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38717 if test "$tst_compi_ioctl" = "yes"; then
38718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
38719 $as_echo_n "checking if ioctl usage allowed... " >&6; }
38720 if test "x$curl_disallow_ioctl" != "xyes"; then
38721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38722 $as_echo "yes" >&6; }
38723 tst_allow_ioctl="yes"
38725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38726 $as_echo "no" >&6; }
38727 tst_allow_ioctl="no"
38731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
38732 $as_echo_n "checking if ioctl might be used... " >&6; }
38733 if test "$tst_links_ioctl" = "yes" &&
38734 test "$tst_proto_ioctl" = "yes" &&
38735 test "$tst_compi_ioctl" = "yes" &&
38736 test "$tst_allow_ioctl" = "yes"; then
38737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38738 $as_echo "yes" >&6; }
38740 cat >>confdefs.h <<_ACEOF
38741 #define HAVE_IOCTL 1
38744 curl_cv_func_ioctl="yes"
38747 tst_compi_ioctl_fionbio="unknown"
38748 tst_allow_ioctl_fionbio="unknown"
38750 if test "$curl_cv_func_ioctl" = "yes"; then
38751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
38752 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
38753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38754 /* end confdefs.h. */
38757 $curl_includes_stropts
38763 if(0 != ioctl(0, FIONBIO, &flags))
38771 if ac_fn_c_try_compile "$LINENO"; then :
38773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38774 $as_echo "yes" >&6; }
38775 tst_compi_ioctl_fionbio="yes"
38779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38780 $as_echo "no" >&6; }
38781 tst_compi_ioctl_fionbio="no"
38784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38787 if test "$tst_compi_ioctl_fionbio" = "yes"; then
38788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
38789 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
38790 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
38791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38792 $as_echo "yes" >&6; }
38793 tst_allow_ioctl_fionbio="yes"
38795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38796 $as_echo "no" >&6; }
38797 tst_allow_ioctl_fionbio="no"
38801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
38802 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
38803 if test "$tst_compi_ioctl_fionbio" = "yes" &&
38804 test "$tst_allow_ioctl_fionbio" = "yes"; then
38805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38806 $as_echo "yes" >&6; }
38808 cat >>confdefs.h <<_ACEOF
38809 #define HAVE_IOCTL_FIONBIO 1
38812 curl_cv_func_ioctl_fionbio="yes"
38814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38815 $as_echo "no" >&6; }
38816 curl_cv_func_ioctl_fionbio="no"
38821 tst_compi_ioctl_siocgifaddr="unknown"
38822 tst_allow_ioctl_siocgifaddr="unknown"
38824 if test "$curl_cv_func_ioctl" = "yes"; then
38825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
38826 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
38827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38828 /* end confdefs.h. */
38831 $curl_includes_stropts
38832 #include <net/if.h>
38838 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
38846 if ac_fn_c_try_compile "$LINENO"; then :
38848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38849 $as_echo "yes" >&6; }
38850 tst_compi_ioctl_siocgifaddr="yes"
38854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38855 $as_echo "no" >&6; }
38856 tst_compi_ioctl_siocgifaddr="no"
38859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38862 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
38863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
38864 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
38865 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
38866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38867 $as_echo "yes" >&6; }
38868 tst_allow_ioctl_siocgifaddr="yes"
38870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38871 $as_echo "no" >&6; }
38872 tst_allow_ioctl_siocgifaddr="no"
38876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
38877 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
38878 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
38879 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
38880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38881 $as_echo "yes" >&6; }
38883 cat >>confdefs.h <<_ACEOF
38884 #define HAVE_IOCTL_SIOCGIFADDR 1
38887 curl_cv_func_ioctl_siocgifaddr="yes"
38889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38890 $as_echo "no" >&6; }
38891 curl_cv_func_ioctl_siocgifaddr="no"
38895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38896 $as_echo "no" >&6; }
38897 curl_cv_func_ioctl="no"
38902 tst_links_ioctlsocket="unknown"
38903 tst_proto_ioctlsocket="unknown"
38904 tst_compi_ioctlsocket="unknown"
38905 tst_allow_ioctlsocket="unknown"
38907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
38908 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
38909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38910 /* end confdefs.h. */
38913 $curl_includes_winsock2
38914 $curl_includes_bsdsocket
38919 if(0 != ioctlsocket(0, 0, 0))
38927 if ac_fn_c_try_link "$LINENO"; then :
38929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38930 $as_echo "yes" >&6; }
38931 tst_links_ioctlsocket="yes"
38935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38936 $as_echo "no" >&6; }
38937 tst_links_ioctlsocket="no"
38940 rm -f core conftest.err conftest.$ac_objext \
38941 conftest$ac_exeext conftest.$ac_ext
38943 if test "$tst_links_ioctlsocket" = "yes"; then
38944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
38945 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
38946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38947 /* end confdefs.h. */
38949 $curl_includes_winsock2
38950 $curl_includes_bsdsocket
38953 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38954 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
38956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38957 $as_echo "yes" >&6; }
38958 tst_proto_ioctlsocket="yes"
38962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38963 $as_echo "no" >&6; }
38964 tst_proto_ioctlsocket="no"
38971 if test "$tst_proto_ioctlsocket" = "yes"; then
38972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
38973 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
38974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38975 /* end confdefs.h. */
38978 $curl_includes_winsock2
38979 $curl_includes_bsdsocket
38984 if(0 != ioctlsocket(0, 0, 0))
38992 if ac_fn_c_try_compile "$LINENO"; then :
38994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38995 $as_echo "yes" >&6; }
38996 tst_compi_ioctlsocket="yes"
39000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39001 $as_echo "no" >&6; }
39002 tst_compi_ioctlsocket="no"
39005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39008 if test "$tst_compi_ioctlsocket" = "yes"; then
39009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
39010 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
39011 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
39012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39013 $as_echo "yes" >&6; }
39014 tst_allow_ioctlsocket="yes"
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39017 $as_echo "no" >&6; }
39018 tst_allow_ioctlsocket="no"
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
39023 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
39024 if test "$tst_links_ioctlsocket" = "yes" &&
39025 test "$tst_proto_ioctlsocket" = "yes" &&
39026 test "$tst_compi_ioctlsocket" = "yes" &&
39027 test "$tst_allow_ioctlsocket" = "yes"; then
39028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39029 $as_echo "yes" >&6; }
39031 cat >>confdefs.h <<_ACEOF
39032 #define HAVE_IOCTLSOCKET 1
39035 curl_cv_func_ioctlsocket="yes"
39038 tst_compi_ioctlsocket_fionbio="unknown"
39039 tst_allow_ioctlsocket_fionbio="unknown"
39041 if test "$curl_cv_func_ioctlsocket" = "yes"; then
39042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
39043 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
39044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39045 /* end confdefs.h. */
39048 $curl_includes_winsock2
39049 $curl_includes_bsdsocket
39055 if(0 != ioctlsocket(0, FIONBIO, &flags))
39063 if ac_fn_c_try_compile "$LINENO"; then :
39065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39066 $as_echo "yes" >&6; }
39067 tst_compi_ioctlsocket_fionbio="yes"
39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39072 $as_echo "no" >&6; }
39073 tst_compi_ioctlsocket_fionbio="no"
39076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39079 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
39080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
39081 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
39082 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
39083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39084 $as_echo "yes" >&6; }
39085 tst_allow_ioctlsocket_fionbio="yes"
39087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39088 $as_echo "no" >&6; }
39089 tst_allow_ioctlsocket_fionbio="no"
39093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
39094 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
39095 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
39096 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
39097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39098 $as_echo "yes" >&6; }
39100 cat >>confdefs.h <<_ACEOF
39101 #define HAVE_IOCTLSOCKET_FIONBIO 1
39104 curl_cv_func_ioctlsocket_fionbio="yes"
39106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39107 $as_echo "no" >&6; }
39108 curl_cv_func_ioctlsocket_fionbio="no"
39112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39113 $as_echo "no" >&6; }
39114 curl_cv_func_ioctlsocket="no"
39119 tst_links_ioctlsocket_camel="unknown"
39120 tst_proto_ioctlsocket_camel="unknown"
39121 tst_compi_ioctlsocket_camel="unknown"
39122 tst_allow_ioctlsocket_camel="unknown"
39124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
39125 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
39126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39127 /* end confdefs.h. */
39130 #define IoctlSocket innocuous_IoctlSocket
39132 # include <limits.h>
39134 # include <assert.h>
39140 char IoctlSocket ();
39141 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
39147 return IoctlSocket ();
39153 if ac_fn_c_try_link "$LINENO"; then :
39155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39156 $as_echo "yes" >&6; }
39157 tst_links_ioctlsocket_camel="yes"
39161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162 $as_echo "no" >&6; }
39163 tst_links_ioctlsocket_camel="no"
39166 rm -f core conftest.err conftest.$ac_objext \
39167 conftest$ac_exeext conftest.$ac_ext
39169 if test "$tst_links_ioctlsocket_camel" = "yes"; then
39170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
39171 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
39172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39173 /* end confdefs.h. */
39175 $curl_includes_stropts
39178 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39179 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
39181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39182 $as_echo "yes" >&6; }
39183 tst_proto_ioctlsocket_camel="yes"
39187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39188 $as_echo "no" >&6; }
39189 tst_proto_ioctlsocket_camel="no"
39196 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
39197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
39198 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
39199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39200 /* end confdefs.h. */
39203 $curl_includes_stropts
39208 if(0 != IoctlSocket(0, 0, 0))
39216 if ac_fn_c_try_compile "$LINENO"; then :
39218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39219 $as_echo "yes" >&6; }
39220 tst_compi_ioctlsocket_camel="yes"
39224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39225 $as_echo "no" >&6; }
39226 tst_compi_ioctlsocket_camel="no"
39229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39232 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
39233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
39234 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
39235 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
39236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39237 $as_echo "yes" >&6; }
39238 tst_allow_ioctlsocket_camel="yes"
39240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39241 $as_echo "no" >&6; }
39242 tst_allow_ioctlsocket_camel="no"
39246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
39247 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
39248 if test "$tst_links_ioctlsocket_camel" = "yes" &&
39249 test "$tst_proto_ioctlsocket_camel" = "yes" &&
39250 test "$tst_compi_ioctlsocket_camel" = "yes" &&
39251 test "$tst_allow_ioctlsocket_camel" = "yes"; then
39252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39253 $as_echo "yes" >&6; }
39255 cat >>confdefs.h <<_ACEOF
39256 #define HAVE_IOCTLSOCKET_CAMEL 1
39259 curl_cv_func_ioctlsocket_camel="yes"
39262 tst_compi_ioctlsocket_camel_fionbio="unknown"
39263 tst_allow_ioctlsocket_camel_fionbio="unknown"
39265 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
39266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
39267 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
39268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39269 /* end confdefs.h. */
39272 $curl_includes_stropts
39278 if(0 != ioctlsocket(0, FIONBIO, &flags))
39286 if ac_fn_c_try_compile "$LINENO"; then :
39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39289 $as_echo "yes" >&6; }
39290 tst_compi_ioctlsocket_camel_fionbio="yes"
39294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39295 $as_echo "no" >&6; }
39296 tst_compi_ioctlsocket_camel_fionbio="no"
39299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39302 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
39303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
39304 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
39305 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
39306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39307 $as_echo "yes" >&6; }
39308 tst_allow_ioctlsocket_camel_fionbio="yes"
39310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39311 $as_echo "no" >&6; }
39312 tst_allow_ioctlsocket_camel_fionbio="no"
39316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
39317 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
39318 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
39319 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
39320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39321 $as_echo "yes" >&6; }
39323 cat >>confdefs.h <<_ACEOF
39324 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
39327 curl_cv_func_ioctlsocket_camel_fionbio="yes"
39329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39330 $as_echo "no" >&6; }
39331 curl_cv_func_ioctlsocket_camel_fionbio="no"
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39336 $as_echo "no" >&6; }
39337 curl_cv_func_ioctlsocket_camel="no"
39342 tst_links_localtime_r="unknown"
39343 tst_proto_localtime_r="unknown"
39344 tst_compi_localtime_r="unknown"
39345 tst_works_localtime_r="unknown"
39346 tst_allow_localtime_r="unknown"
39348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
39349 $as_echo_n "checking if localtime_r can be linked... " >&6; }
39350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39351 /* end confdefs.h. */
39354 #define localtime_r innocuous_localtime_r
39356 # include <limits.h>
39358 # include <assert.h>
39364 char localtime_r ();
39365 #if defined __stub_localtime_r || defined __stub___localtime_r
39371 return localtime_r ();
39377 if ac_fn_c_try_link "$LINENO"; then :
39379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39380 $as_echo "yes" >&6; }
39381 tst_links_localtime_r="yes"
39385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39386 $as_echo "no" >&6; }
39387 tst_links_localtime_r="no"
39390 rm -f core conftest.err conftest.$ac_objext \
39391 conftest$ac_exeext conftest.$ac_ext
39393 if test "$tst_links_localtime_r" = "yes"; then
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
39395 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
39396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39397 /* end confdefs.h. */
39399 $curl_includes_time
39402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39403 $EGREP "localtime_r" >/dev/null 2>&1; then :
39405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39406 $as_echo "yes" >&6; }
39407 tst_proto_localtime_r="yes"
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39412 $as_echo "no" >&6; }
39413 tst_proto_localtime_r="no"
39420 if test "$tst_proto_localtime_r" = "yes"; then
39421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
39422 $as_echo_n "checking if localtime_r is compilable... " >&6; }
39423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39424 /* end confdefs.h. */
39427 $curl_includes_time
39432 if(0 != localtime_r(0, 0))
39440 if ac_fn_c_try_compile "$LINENO"; then :
39442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39443 $as_echo "yes" >&6; }
39444 tst_compi_localtime_r="yes"
39448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39449 $as_echo "no" >&6; }
39450 tst_compi_localtime_r="no"
39453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39456 if test "x$cross_compiling" != "xyes" &&
39457 test "$tst_compi_localtime_r" = "yes"; then
39458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
39459 $as_echo_n "checking if localtime_r seems to work... " >&6; }
39461 old=$LD_LIBRARY_PATH
39462 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39463 export LD_LIBRARY_PATH
39464 if test "$cross_compiling" = yes; then :
39465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39467 as_fn_error $? "cannot run test program while cross compiling
39468 See \`config.log' for more details" "$LINENO" 5; }
39470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39471 /* end confdefs.h. */
39474 $curl_includes_stdlib
39475 $curl_includes_time
39480 time_t clock = 1170352587;
39481 struct tm *tmp = 0;
39483 tmp = localtime_r(&clock, &result);
39494 if ac_fn_c_try_run "$LINENO"; then :
39495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39496 $as_echo "yes" >&6; }
39497 tst_works_localtime_r="yes"
39500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39501 $as_echo "no" >&6; }
39502 tst_works_localtime_r="no"
39505 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39506 conftest.$ac_objext conftest.beam conftest.$ac_ext
39509 LD_LIBRARY_PATH=$old # restore
39513 if test "$tst_compi_localtime_r" = "yes" &&
39514 test "$tst_works_localtime_r" != "no"; then
39515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
39516 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
39517 if test "x$curl_disallow_localtime_r" != "xyes"; then
39518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39519 $as_echo "yes" >&6; }
39520 tst_allow_localtime_r="yes"
39522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39523 $as_echo "no" >&6; }
39524 tst_allow_localtime_r="no"
39528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
39529 $as_echo_n "checking if localtime_r might be used... " >&6; }
39530 if test "$tst_links_localtime_r" = "yes" &&
39531 test "$tst_proto_localtime_r" = "yes" &&
39532 test "$tst_compi_localtime_r" = "yes" &&
39533 test "$tst_allow_localtime_r" = "yes" &&
39534 test "$tst_works_localtime_r" != "no"; then
39535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39536 $as_echo "yes" >&6; }
39538 cat >>confdefs.h <<_ACEOF
39539 #define HAVE_LOCALTIME_R 1
39542 curl_cv_func_localtime_r="yes"
39544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39545 $as_echo "no" >&6; }
39546 curl_cv_func_localtime_r="no"
39551 tst_links_memrchr="unknown"
39552 tst_macro_memrchr="unknown"
39553 tst_proto_memrchr="unknown"
39554 tst_compi_memrchr="unknown"
39555 tst_allow_memrchr="unknown"
39557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
39558 $as_echo_n "checking if memrchr can be linked... " >&6; }
39559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39560 /* end confdefs.h. */
39563 #define memrchr innocuous_memrchr
39565 # include <limits.h>
39567 # include <assert.h>
39574 #if defined __stub_memrchr || defined __stub___memrchr
39586 if ac_fn_c_try_link "$LINENO"; then :
39588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39589 $as_echo "yes" >&6; }
39590 tst_links_memrchr="yes"
39594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39595 $as_echo "no" >&6; }
39596 tst_links_memrchr="no"
39599 rm -f core conftest.err conftest.$ac_objext \
39600 conftest$ac_exeext conftest.$ac_ext
39602 if test "$tst_links_memrchr" = "no"; then
39603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
39604 $as_echo_n "checking if memrchr seems a macro... " >&6; }
39605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39606 /* end confdefs.h. */
39609 $curl_includes_string
39614 if(0 != memrchr(0, 0, 0))
39622 if ac_fn_c_try_link "$LINENO"; then :
39624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39625 $as_echo "yes" >&6; }
39626 tst_macro_memrchr="yes"
39630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39631 $as_echo "no" >&6; }
39632 tst_macro_memrchr="no"
39635 rm -f core conftest.err conftest.$ac_objext \
39636 conftest$ac_exeext conftest.$ac_ext
39639 if test "$tst_links_memrchr" = "yes"; then
39640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
39641 $as_echo_n "checking if memrchr is prototyped... " >&6; }
39642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39643 /* end confdefs.h. */
39645 $curl_includes_string
39648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39649 $EGREP "memrchr" >/dev/null 2>&1; then :
39651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39652 $as_echo "yes" >&6; }
39653 tst_proto_memrchr="yes"
39657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39658 $as_echo "no" >&6; }
39659 tst_proto_memrchr="no"
39666 if test "$tst_proto_memrchr" = "yes" ||
39667 test "$tst_macro_memrchr" = "yes"; then
39668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
39669 $as_echo_n "checking if memrchr is compilable... " >&6; }
39670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39671 /* end confdefs.h. */
39674 $curl_includes_string
39679 if(0 != memrchr(0, 0, 0))
39687 if ac_fn_c_try_compile "$LINENO"; then :
39689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39690 $as_echo "yes" >&6; }
39691 tst_compi_memrchr="yes"
39695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39696 $as_echo "no" >&6; }
39697 tst_compi_memrchr="no"
39700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39703 if test "$tst_compi_memrchr" = "yes"; then
39704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
39705 $as_echo_n "checking if memrchr usage allowed... " >&6; }
39706 if test "x$curl_disallow_memrchr" != "xyes"; then
39707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39708 $as_echo "yes" >&6; }
39709 tst_allow_memrchr="yes"
39711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39712 $as_echo "no" >&6; }
39713 tst_allow_memrchr="no"
39717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
39718 $as_echo_n "checking if memrchr might be used... " >&6; }
39719 if (test "$tst_proto_memrchr" = "yes" ||
39720 test "$tst_macro_memrchr" = "yes") &&
39721 test "$tst_compi_memrchr" = "yes" &&
39722 test "$tst_allow_memrchr" = "yes"; then
39723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39724 $as_echo "yes" >&6; }
39726 cat >>confdefs.h <<_ACEOF
39727 #define HAVE_MEMRCHR 1
39730 curl_cv_func_memrchr="yes"
39732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39733 $as_echo "no" >&6; }
39734 curl_cv_func_memrchr="no"
39739 tst_links_poll="unknown"
39740 tst_proto_poll="unknown"
39741 tst_compi_poll="unknown"
39742 tst_works_poll="unknown"
39743 tst_allow_poll="unknown"
39747 curl_disallow_poll="yes"
39748 tst_compi_poll="no"
39752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
39753 $as_echo_n "checking if poll can be linked... " >&6; }
39754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39755 /* end confdefs.h. */
39758 $curl_includes_poll
39763 if(0 != poll(0, 0, 0))
39771 if ac_fn_c_try_link "$LINENO"; then :
39773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39774 $as_echo "yes" >&6; }
39775 tst_links_poll="yes"
39779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39780 $as_echo "no" >&6; }
39781 tst_links_poll="no"
39784 rm -f core conftest.err conftest.$ac_objext \
39785 conftest$ac_exeext conftest.$ac_ext
39787 if test "$tst_links_poll" = "yes"; then
39788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
39789 $as_echo_n "checking if poll is prototyped... " >&6; }
39790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791 /* end confdefs.h. */
39793 $curl_includes_poll
39796 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39797 $EGREP "poll" >/dev/null 2>&1; then :
39799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39800 $as_echo "yes" >&6; }
39801 tst_proto_poll="yes"
39805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39806 $as_echo "no" >&6; }
39807 tst_proto_poll="no"
39814 if test "$tst_proto_poll" = "yes"; then
39815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
39816 $as_echo_n "checking if poll is compilable... " >&6; }
39817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39818 /* end confdefs.h. */
39821 $curl_includes_poll
39826 if(0 != poll(0, 0, 0))
39834 if ac_fn_c_try_compile "$LINENO"; then :
39836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39837 $as_echo "yes" >&6; }
39838 tst_compi_poll="yes"
39842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39843 $as_echo "no" >&6; }
39844 tst_compi_poll="no"
39847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39850 if test "x$cross_compiling" != "xyes" &&
39851 test "$tst_compi_poll" = "yes"; then
39852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
39853 $as_echo_n "checking if poll seems to work... " >&6; }
39855 old=$LD_LIBRARY_PATH
39856 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39857 export LD_LIBRARY_PATH
39858 if test "$cross_compiling" = yes; then :
39859 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39860 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39861 as_fn_error $? "cannot run test program while cross compiling
39862 See \`config.log' for more details" "$LINENO" 5; }
39864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39865 /* end confdefs.h. */
39868 $curl_includes_stdlib
39869 $curl_includes_poll
39870 $curl_includes_time
39875 /* detect the original poll() breakage */
39876 if(0 != poll(0, 0, 10))
39877 exit(1); /* fail */
39879 /* detect the 10.12 poll() breakage */
39880 struct timeval before, after;
39884 gettimeofday(&before, NULL);
39885 rc = poll(NULL, 0, 500);
39886 gettimeofday(&after, NULL);
39888 us = (after.tv_sec - before.tv_sec) * 1000000 +
39889 (after.tv_usec - before.tv_usec);
39900 if ac_fn_c_try_run "$LINENO"; then :
39901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39902 $as_echo "yes" >&6; }
39903 tst_works_poll="yes"
39906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39907 $as_echo "no" >&6; }
39908 tst_works_poll="no"
39911 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39912 conftest.$ac_objext conftest.beam conftest.$ac_ext
39915 LD_LIBRARY_PATH=$old # restore
39919 if test "$tst_compi_poll" = "yes" &&
39920 test "$tst_works_poll" != "no"; then
39921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
39922 $as_echo_n "checking if poll usage allowed... " >&6; }
39923 if test "x$curl_disallow_poll" != "xyes"; then
39924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39925 $as_echo "yes" >&6; }
39926 tst_allow_poll="yes"
39928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39929 $as_echo "no" >&6; }
39930 tst_allow_poll="no"
39934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
39935 $as_echo_n "checking if poll might be used... " >&6; }
39936 if test "$tst_links_poll" = "yes" &&
39937 test "$tst_proto_poll" = "yes" &&
39938 test "$tst_compi_poll" = "yes" &&
39939 test "$tst_allow_poll" = "yes" &&
39940 test "$tst_works_poll" != "no"; then
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39942 $as_echo "yes" >&6; }
39944 cat >>confdefs.h <<_ACEOF
39945 #define HAVE_POLL 1
39949 cat >>confdefs.h <<_ACEOF
39950 #define HAVE_POLL_FINE 1
39953 curl_cv_func_poll="yes"
39955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956 $as_echo "no" >&6; }
39957 curl_cv_func_poll="no"
39962 tst_links_setsockopt="unknown"
39963 tst_proto_setsockopt="unknown"
39964 tst_compi_setsockopt="unknown"
39965 tst_allow_setsockopt="unknown"
39967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
39968 $as_echo_n "checking if setsockopt can be linked... " >&6; }
39969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39970 /* end confdefs.h. */
39973 $curl_includes_winsock2
39974 $curl_includes_bsdsocket
39975 $curl_includes_sys_socket
39980 if(0 != setsockopt(0, 0, 0, 0, 0))
39988 if ac_fn_c_try_link "$LINENO"; then :
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39991 $as_echo "yes" >&6; }
39992 tst_links_setsockopt="yes"
39996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39997 $as_echo "no" >&6; }
39998 tst_links_setsockopt="no"
40001 rm -f core conftest.err conftest.$ac_objext \
40002 conftest$ac_exeext conftest.$ac_ext
40004 if test "$tst_links_setsockopt" = "yes"; then
40005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
40006 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
40007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40008 /* end confdefs.h. */
40010 $curl_includes_winsock2
40011 $curl_includes_bsdsocket
40012 $curl_includes_sys_socket
40015 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40016 $EGREP "setsockopt" >/dev/null 2>&1; then :
40018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40019 $as_echo "yes" >&6; }
40020 tst_proto_setsockopt="yes"
40024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40025 $as_echo "no" >&6; }
40026 tst_proto_setsockopt="no"
40033 if test "$tst_proto_setsockopt" = "yes"; then
40034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
40035 $as_echo_n "checking if setsockopt is compilable... " >&6; }
40036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40037 /* end confdefs.h. */
40040 $curl_includes_winsock2
40041 $curl_includes_bsdsocket
40042 $curl_includes_sys_socket
40047 if(0 != setsockopt(0, 0, 0, 0, 0))
40055 if ac_fn_c_try_compile "$LINENO"; then :
40057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40058 $as_echo "yes" >&6; }
40059 tst_compi_setsockopt="yes"
40063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40064 $as_echo "no" >&6; }
40065 tst_compi_setsockopt="no"
40068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40071 if test "$tst_compi_setsockopt" = "yes"; then
40072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
40073 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
40074 if test "x$curl_disallow_setsockopt" != "xyes"; then
40075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40076 $as_echo "yes" >&6; }
40077 tst_allow_setsockopt="yes"
40079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40080 $as_echo "no" >&6; }
40081 tst_allow_setsockopt="no"
40085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
40086 $as_echo_n "checking if setsockopt might be used... " >&6; }
40087 if test "$tst_links_setsockopt" = "yes" &&
40088 test "$tst_proto_setsockopt" = "yes" &&
40089 test "$tst_compi_setsockopt" = "yes" &&
40090 test "$tst_allow_setsockopt" = "yes"; then
40091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40092 $as_echo "yes" >&6; }
40094 cat >>confdefs.h <<_ACEOF
40095 #define HAVE_SETSOCKOPT 1
40098 curl_cv_func_setsockopt="yes"
40101 tst_compi_setsockopt_so_nonblock="unknown"
40102 tst_allow_setsockopt_so_nonblock="unknown"
40104 if test "$curl_cv_func_setsockopt" = "yes"; then
40105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
40106 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
40107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40108 /* end confdefs.h. */
40111 $curl_includes_winsock2
40112 $curl_includes_bsdsocket
40113 $curl_includes_sys_socket
40118 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
40126 if ac_fn_c_try_compile "$LINENO"; then :
40128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40129 $as_echo "yes" >&6; }
40130 tst_compi_setsockopt_so_nonblock="yes"
40134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40135 $as_echo "no" >&6; }
40136 tst_compi_setsockopt_so_nonblock="no"
40139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40142 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
40143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
40144 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
40145 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
40146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40147 $as_echo "yes" >&6; }
40148 tst_allow_setsockopt_so_nonblock="yes"
40150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40151 $as_echo "no" >&6; }
40152 tst_allow_setsockopt_so_nonblock="no"
40156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
40157 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
40158 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
40159 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
40160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40161 $as_echo "yes" >&6; }
40163 cat >>confdefs.h <<_ACEOF
40164 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
40167 curl_cv_func_setsockopt_so_nonblock="yes"
40169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40170 $as_echo "no" >&6; }
40171 curl_cv_func_setsockopt_so_nonblock="no"
40175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40176 $as_echo "no" >&6; }
40177 curl_cv_func_setsockopt="no"
40181 curl_includes_signal="\
40182 /* includes start */
40183 #ifdef HAVE_SYS_TYPES_H
40184 # include <sys/types.h>
40186 #ifdef HAVE_SIGNAL_H
40187 # include <signal.h>
40189 /* includes end */"
40190 for ac_header in sys/types.h signal.h
40192 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40193 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
40195 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40196 cat >>confdefs.h <<_ACEOF
40197 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40207 tst_links_sigaction="unknown"
40208 tst_proto_sigaction="unknown"
40209 tst_compi_sigaction="unknown"
40210 tst_allow_sigaction="unknown"
40212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
40213 $as_echo_n "checking if sigaction can be linked... " >&6; }
40214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40215 /* end confdefs.h. */
40218 #define sigaction innocuous_sigaction
40220 # include <limits.h>
40222 # include <assert.h>
40229 #if defined __stub_sigaction || defined __stub___sigaction
40235 return sigaction ();
40241 if ac_fn_c_try_link "$LINENO"; then :
40243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40244 $as_echo "yes" >&6; }
40245 tst_links_sigaction="yes"
40249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40250 $as_echo "no" >&6; }
40251 tst_links_sigaction="no"
40254 rm -f core conftest.err conftest.$ac_objext \
40255 conftest$ac_exeext conftest.$ac_ext
40257 if test "$tst_links_sigaction" = "yes"; then
40258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
40259 $as_echo_n "checking if sigaction is prototyped... " >&6; }
40260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40261 /* end confdefs.h. */
40263 $curl_includes_signal
40266 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40267 $EGREP "sigaction" >/dev/null 2>&1; then :
40269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40270 $as_echo "yes" >&6; }
40271 tst_proto_sigaction="yes"
40275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40276 $as_echo "no" >&6; }
40277 tst_proto_sigaction="no"
40284 if test "$tst_proto_sigaction" = "yes"; then
40285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
40286 $as_echo_n "checking if sigaction is compilable... " >&6; }
40287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40288 /* end confdefs.h. */
40291 $curl_includes_signal
40296 if(0 != sigaction(0, 0, 0))
40304 if ac_fn_c_try_compile "$LINENO"; then :
40306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40307 $as_echo "yes" >&6; }
40308 tst_compi_sigaction="yes"
40312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40313 $as_echo "no" >&6; }
40314 tst_compi_sigaction="no"
40317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40320 if test "$tst_compi_sigaction" = "yes"; then
40321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
40322 $as_echo_n "checking if sigaction usage allowed... " >&6; }
40323 if test "x$curl_disallow_sigaction" != "xyes"; then
40324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40325 $as_echo "yes" >&6; }
40326 tst_allow_sigaction="yes"
40328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40329 $as_echo "no" >&6; }
40330 tst_allow_sigaction="no"
40334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
40335 $as_echo_n "checking if sigaction might be used... " >&6; }
40336 if test "$tst_links_sigaction" = "yes" &&
40337 test "$tst_proto_sigaction" = "yes" &&
40338 test "$tst_compi_sigaction" = "yes" &&
40339 test "$tst_allow_sigaction" = "yes"; then
40340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40341 $as_echo "yes" >&6; }
40343 cat >>confdefs.h <<_ACEOF
40344 #define HAVE_SIGACTION 1
40347 curl_cv_func_sigaction="yes"
40349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40350 $as_echo "no" >&6; }
40351 curl_cv_func_sigaction="no"
40356 tst_links_siginterrupt="unknown"
40357 tst_proto_siginterrupt="unknown"
40358 tst_compi_siginterrupt="unknown"
40359 tst_allow_siginterrupt="unknown"
40361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
40362 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
40363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40364 /* end confdefs.h. */
40367 #define siginterrupt innocuous_siginterrupt
40369 # include <limits.h>
40371 # include <assert.h>
40373 #undef siginterrupt
40377 char siginterrupt ();
40378 #if defined __stub_siginterrupt || defined __stub___siginterrupt
40384 return siginterrupt ();
40390 if ac_fn_c_try_link "$LINENO"; then :
40392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40393 $as_echo "yes" >&6; }
40394 tst_links_siginterrupt="yes"
40398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40399 $as_echo "no" >&6; }
40400 tst_links_siginterrupt="no"
40403 rm -f core conftest.err conftest.$ac_objext \
40404 conftest$ac_exeext conftest.$ac_ext
40406 if test "$tst_links_siginterrupt" = "yes"; then
40407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
40408 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
40409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40410 /* end confdefs.h. */
40412 $curl_includes_signal
40415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40416 $EGREP "siginterrupt" >/dev/null 2>&1; then :
40418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40419 $as_echo "yes" >&6; }
40420 tst_proto_siginterrupt="yes"
40424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40425 $as_echo "no" >&6; }
40426 tst_proto_siginterrupt="no"
40433 if test "$tst_proto_siginterrupt" = "yes"; then
40434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
40435 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
40436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40437 /* end confdefs.h. */
40440 $curl_includes_signal
40445 if(0 != siginterrupt(0, 0))
40453 if ac_fn_c_try_compile "$LINENO"; then :
40455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40456 $as_echo "yes" >&6; }
40457 tst_compi_siginterrupt="yes"
40461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40462 $as_echo "no" >&6; }
40463 tst_compi_siginterrupt="no"
40466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40469 if test "$tst_compi_siginterrupt" = "yes"; then
40470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
40471 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
40472 if test "x$curl_disallow_siginterrupt" != "xyes"; then
40473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40474 $as_echo "yes" >&6; }
40475 tst_allow_siginterrupt="yes"
40477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40478 $as_echo "no" >&6; }
40479 tst_allow_siginterrupt="no"
40483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
40484 $as_echo_n "checking if siginterrupt might be used... " >&6; }
40485 if test "$tst_links_siginterrupt" = "yes" &&
40486 test "$tst_proto_siginterrupt" = "yes" &&
40487 test "$tst_compi_siginterrupt" = "yes" &&
40488 test "$tst_allow_siginterrupt" = "yes"; then
40489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40490 $as_echo "yes" >&6; }
40492 cat >>confdefs.h <<_ACEOF
40493 #define HAVE_SIGINTERRUPT 1
40496 curl_cv_func_siginterrupt="yes"
40498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40499 $as_echo "no" >&6; }
40500 curl_cv_func_siginterrupt="no"
40505 tst_links_signal="unknown"
40506 tst_proto_signal="unknown"
40507 tst_compi_signal="unknown"
40508 tst_allow_signal="unknown"
40510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
40511 $as_echo_n "checking if signal can be linked... " >&6; }
40512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40513 /* end confdefs.h. */
40516 #define signal innocuous_signal
40518 # include <limits.h>
40520 # include <assert.h>
40527 #if defined __stub_signal || defined __stub___signal
40539 if ac_fn_c_try_link "$LINENO"; then :
40541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40542 $as_echo "yes" >&6; }
40543 tst_links_signal="yes"
40547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40548 $as_echo "no" >&6; }
40549 tst_links_signal="no"
40552 rm -f core conftest.err conftest.$ac_objext \
40553 conftest$ac_exeext conftest.$ac_ext
40555 if test "$tst_links_signal" = "yes"; then
40556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
40557 $as_echo_n "checking if signal is prototyped... " >&6; }
40558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40559 /* end confdefs.h. */
40561 $curl_includes_signal
40564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40565 $EGREP "signal" >/dev/null 2>&1; then :
40567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40568 $as_echo "yes" >&6; }
40569 tst_proto_signal="yes"
40573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40574 $as_echo "no" >&6; }
40575 tst_proto_signal="no"
40582 if test "$tst_proto_signal" = "yes"; then
40583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
40584 $as_echo_n "checking if signal is compilable... " >&6; }
40585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40586 /* end confdefs.h. */
40589 $curl_includes_signal
40594 if(0 != signal(0, 0))
40602 if ac_fn_c_try_compile "$LINENO"; then :
40604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40605 $as_echo "yes" >&6; }
40606 tst_compi_signal="yes"
40610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40611 $as_echo "no" >&6; }
40612 tst_compi_signal="no"
40615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40618 if test "$tst_compi_signal" = "yes"; then
40619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
40620 $as_echo_n "checking if signal usage allowed... " >&6; }
40621 if test "x$curl_disallow_signal" != "xyes"; then
40622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40623 $as_echo "yes" >&6; }
40624 tst_allow_signal="yes"
40626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40627 $as_echo "no" >&6; }
40628 tst_allow_signal="no"
40632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
40633 $as_echo_n "checking if signal might be used... " >&6; }
40634 if test "$tst_links_signal" = "yes" &&
40635 test "$tst_proto_signal" = "yes" &&
40636 test "$tst_compi_signal" = "yes" &&
40637 test "$tst_allow_signal" = "yes"; then
40638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40639 $as_echo "yes" >&6; }
40641 cat >>confdefs.h <<_ACEOF
40642 #define HAVE_SIGNAL 1
40645 curl_cv_func_signal="yes"
40647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40648 $as_echo "no" >&6; }
40649 curl_cv_func_signal="no"
40653 curl_includes_setjmp="\
40654 /* includes start */
40655 #ifdef HAVE_SYS_TYPES_H
40656 # include <sys/types.h>
40658 #ifdef HAVE_SETJMP_H
40659 # include <setjmp.h>
40661 /* includes end */"
40662 for ac_header in sys/types.h setjmp.h
40664 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40665 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
40667 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40668 cat >>confdefs.h <<_ACEOF
40669 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40679 tst_links_sigsetjmp="unknown"
40680 tst_macro_sigsetjmp="unknown"
40681 tst_proto_sigsetjmp="unknown"
40682 tst_compi_sigsetjmp="unknown"
40683 tst_allow_sigsetjmp="unknown"
40685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
40686 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
40687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40688 /* end confdefs.h. */
40691 #define sigsetjmp innocuous_sigsetjmp
40693 # include <limits.h>
40695 # include <assert.h>
40702 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
40708 return sigsetjmp ();
40714 if ac_fn_c_try_link "$LINENO"; then :
40716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40717 $as_echo "yes" >&6; }
40718 tst_links_sigsetjmp="yes"
40722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40723 $as_echo "no" >&6; }
40724 tst_links_sigsetjmp="no"
40727 rm -f core conftest.err conftest.$ac_objext \
40728 conftest$ac_exeext conftest.$ac_ext
40730 if test "$tst_links_sigsetjmp" = "no"; then
40731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
40732 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
40733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40734 /* end confdefs.h. */
40737 $curl_includes_setjmp
40743 if(0 != sigsetjmp(env, 0))
40751 if ac_fn_c_try_link "$LINENO"; then :
40753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40754 $as_echo "yes" >&6; }
40755 tst_macro_sigsetjmp="yes"
40759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40760 $as_echo "no" >&6; }
40761 tst_macro_sigsetjmp="no"
40764 rm -f core conftest.err conftest.$ac_objext \
40765 conftest$ac_exeext conftest.$ac_ext
40768 if test "$tst_links_sigsetjmp" = "yes"; then
40769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
40770 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
40771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40772 /* end confdefs.h. */
40774 $curl_includes_setjmp
40777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40778 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
40780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40781 $as_echo "yes" >&6; }
40782 tst_proto_sigsetjmp="yes"
40786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40787 $as_echo "no" >&6; }
40788 tst_proto_sigsetjmp="no"
40795 if test "$tst_proto_sigsetjmp" = "yes" ||
40796 test "$tst_macro_sigsetjmp" = "yes"; then
40797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
40798 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
40799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40800 /* end confdefs.h. */
40803 $curl_includes_setjmp
40809 if(0 != sigsetjmp(env, 0))
40817 if ac_fn_c_try_compile "$LINENO"; then :
40819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40820 $as_echo "yes" >&6; }
40821 tst_compi_sigsetjmp="yes"
40825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40826 $as_echo "no" >&6; }
40827 tst_compi_sigsetjmp="no"
40830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40833 if test "$tst_compi_sigsetjmp" = "yes"; then
40834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
40835 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
40836 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
40837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40838 $as_echo "yes" >&6; }
40839 tst_allow_sigsetjmp="yes"
40841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40842 $as_echo "no" >&6; }
40843 tst_allow_sigsetjmp="no"
40847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
40848 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
40849 if (test "$tst_proto_sigsetjmp" = "yes" ||
40850 test "$tst_macro_sigsetjmp" = "yes") &&
40851 test "$tst_compi_sigsetjmp" = "yes" &&
40852 test "$tst_allow_sigsetjmp" = "yes"; then
40853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40854 $as_echo "yes" >&6; }
40856 cat >>confdefs.h <<_ACEOF
40857 #define HAVE_SIGSETJMP 1
40860 curl_cv_func_sigsetjmp="yes"
40862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40863 $as_echo "no" >&6; }
40864 curl_cv_func_sigsetjmp="no"
40869 tst_links_socket="unknown"
40870 tst_proto_socket="unknown"
40871 tst_compi_socket="unknown"
40872 tst_allow_socket="unknown"
40874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
40875 $as_echo_n "checking if socket can be linked... " >&6; }
40876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40877 /* end confdefs.h. */
40880 $curl_includes_winsock2
40881 $curl_includes_bsdsocket
40882 $curl_includes_sys_socket
40883 $curl_includes_socket
40888 if(0 != socket(0, 0, 0))
40896 if ac_fn_c_try_link "$LINENO"; then :
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40899 $as_echo "yes" >&6; }
40900 tst_links_socket="yes"
40904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40905 $as_echo "no" >&6; }
40906 tst_links_socket="no"
40909 rm -f core conftest.err conftest.$ac_objext \
40910 conftest$ac_exeext conftest.$ac_ext
40912 if test "$tst_links_socket" = "yes"; then
40913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
40914 $as_echo_n "checking if socket is prototyped... " >&6; }
40915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40916 /* end confdefs.h. */
40918 $curl_includes_winsock2
40919 $curl_includes_bsdsocket
40920 $curl_includes_sys_socket
40921 $curl_includes_socket
40924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40925 $EGREP "socket" >/dev/null 2>&1; then :
40927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40928 $as_echo "yes" >&6; }
40929 tst_proto_socket="yes"
40933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40934 $as_echo "no" >&6; }
40935 tst_proto_socket="no"
40942 if test "$tst_proto_socket" = "yes"; then
40943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
40944 $as_echo_n "checking if socket is compilable... " >&6; }
40945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40946 /* end confdefs.h. */
40949 $curl_includes_winsock2
40950 $curl_includes_bsdsocket
40951 $curl_includes_sys_socket
40952 $curl_includes_socket
40957 if(0 != socket(0, 0, 0))
40965 if ac_fn_c_try_compile "$LINENO"; then :
40967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40968 $as_echo "yes" >&6; }
40969 tst_compi_socket="yes"
40973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40974 $as_echo "no" >&6; }
40975 tst_compi_socket="no"
40978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40981 if test "$tst_compi_socket" = "yes"; then
40982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
40983 $as_echo_n "checking if socket usage allowed... " >&6; }
40984 if test "x$curl_disallow_socket" != "xyes"; then
40985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986 $as_echo "yes" >&6; }
40987 tst_allow_socket="yes"
40989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40990 $as_echo "no" >&6; }
40991 tst_allow_socket="no"
40995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
40996 $as_echo_n "checking if socket might be used... " >&6; }
40997 if test "$tst_links_socket" = "yes" &&
40998 test "$tst_proto_socket" = "yes" &&
40999 test "$tst_compi_socket" = "yes" &&
41000 test "$tst_allow_socket" = "yes"; then
41001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41002 $as_echo "yes" >&6; }
41004 cat >>confdefs.h <<_ACEOF
41005 #define HAVE_SOCKET 1
41008 curl_cv_func_socket="yes"
41010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41011 $as_echo "no" >&6; }
41012 curl_cv_func_socket="no"
41017 tst_links_socketpair="unknown"
41018 tst_proto_socketpair="unknown"
41019 tst_compi_socketpair="unknown"
41020 tst_allow_socketpair="unknown"
41022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
41023 $as_echo_n "checking if socketpair can be linked... " >&6; }
41024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41025 /* end confdefs.h. */
41028 #define socketpair innocuous_socketpair
41030 # include <limits.h>
41032 # include <assert.h>
41038 char socketpair ();
41039 #if defined __stub_socketpair || defined __stub___socketpair
41045 return socketpair ();
41051 if ac_fn_c_try_link "$LINENO"; then :
41053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41054 $as_echo "yes" >&6; }
41055 tst_links_socketpair="yes"
41059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41060 $as_echo "no" >&6; }
41061 tst_links_socketpair="no"
41064 rm -f core conftest.err conftest.$ac_objext \
41065 conftest$ac_exeext conftest.$ac_ext
41067 if test "$tst_links_socketpair" = "yes"; then
41068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
41069 $as_echo_n "checking if socketpair is prototyped... " >&6; }
41070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41071 /* end confdefs.h. */
41073 $curl_includes_sys_socket
41074 $curl_includes_socket
41077 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41078 $EGREP "socketpair" >/dev/null 2>&1; then :
41080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41081 $as_echo "yes" >&6; }
41082 tst_proto_socketpair="yes"
41086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41087 $as_echo "no" >&6; }
41088 tst_proto_socketpair="no"
41095 if test "$tst_proto_socketpair" = "yes"; then
41096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
41097 $as_echo_n "checking if socketpair is compilable... " >&6; }
41098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41099 /* end confdefs.h. */
41102 $curl_includes_sys_socket
41103 $curl_includes_socket
41109 if(0 != socketpair(0, 0, 0, sv))
41117 if ac_fn_c_try_compile "$LINENO"; then :
41119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41120 $as_echo "yes" >&6; }
41121 tst_compi_socketpair="yes"
41125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41126 $as_echo "no" >&6; }
41127 tst_compi_socketpair="no"
41130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41133 if test "$tst_compi_socketpair" = "yes"; then
41134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
41135 $as_echo_n "checking if socketpair usage allowed... " >&6; }
41136 if test "x$curl_disallow_socketpair" != "xyes"; then
41137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41138 $as_echo "yes" >&6; }
41139 tst_allow_socketpair="yes"
41141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41142 $as_echo "no" >&6; }
41143 tst_allow_socketpair="no"
41147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
41148 $as_echo_n "checking if socketpair might be used... " >&6; }
41149 if test "$tst_links_socketpair" = "yes" &&
41150 test "$tst_proto_socketpair" = "yes" &&
41151 test "$tst_compi_socketpair" = "yes" &&
41152 test "$tst_allow_socketpair" = "yes"; then
41153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41154 $as_echo "yes" >&6; }
41156 cat >>confdefs.h <<_ACEOF
41157 #define HAVE_SOCKETPAIR 1
41160 curl_cv_func_socketpair="yes"
41162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41163 $as_echo "no" >&6; }
41164 curl_cv_func_socketpair="no"
41169 tst_links_strcasecmp="unknown"
41170 tst_proto_strcasecmp="unknown"
41171 tst_compi_strcasecmp="unknown"
41172 tst_allow_strcasecmp="unknown"
41174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
41175 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
41176 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41177 /* end confdefs.h. */
41180 #define strcasecmp innocuous_strcasecmp
41182 # include <limits.h>
41184 # include <assert.h>
41190 char strcasecmp ();
41191 #if defined __stub_strcasecmp || defined __stub___strcasecmp
41197 return strcasecmp ();
41203 if ac_fn_c_try_link "$LINENO"; then :
41205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41206 $as_echo "yes" >&6; }
41207 tst_links_strcasecmp="yes"
41211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41212 $as_echo "no" >&6; }
41213 tst_links_strcasecmp="no"
41216 rm -f core conftest.err conftest.$ac_objext \
41217 conftest$ac_exeext conftest.$ac_ext
41219 if test "$tst_links_strcasecmp" = "yes"; then
41220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
41221 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
41222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41223 /* end confdefs.h. */
41225 $curl_includes_string
41228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41229 $EGREP "strcasecmp" >/dev/null 2>&1; then :
41231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41232 $as_echo "yes" >&6; }
41233 tst_proto_strcasecmp="yes"
41237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41238 $as_echo "no" >&6; }
41239 tst_proto_strcasecmp="no"
41246 if test "$tst_proto_strcasecmp" = "yes"; then
41247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
41248 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
41249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41250 /* end confdefs.h. */
41253 $curl_includes_string
41258 if(0 != strcasecmp(0, 0))
41266 if ac_fn_c_try_compile "$LINENO"; then :
41268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41269 $as_echo "yes" >&6; }
41270 tst_compi_strcasecmp="yes"
41274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41275 $as_echo "no" >&6; }
41276 tst_compi_strcasecmp="no"
41279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41282 if test "$tst_compi_strcasecmp" = "yes"; then
41283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
41284 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
41285 if test "x$curl_disallow_strcasecmp" != "xyes"; then
41286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41287 $as_echo "yes" >&6; }
41288 tst_allow_strcasecmp="yes"
41290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41291 $as_echo "no" >&6; }
41292 tst_allow_strcasecmp="no"
41296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
41297 $as_echo_n "checking if strcasecmp might be used... " >&6; }
41298 if test "$tst_links_strcasecmp" = "yes" &&
41299 test "$tst_proto_strcasecmp" = "yes" &&
41300 test "$tst_compi_strcasecmp" = "yes" &&
41301 test "$tst_allow_strcasecmp" = "yes"; then
41302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41303 $as_echo "yes" >&6; }
41305 cat >>confdefs.h <<_ACEOF
41306 #define HAVE_STRCASECMP 1
41309 curl_cv_func_strcasecmp="yes"
41311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41312 $as_echo "no" >&6; }
41313 curl_cv_func_strcasecmp="no"
41318 tst_links_strcmpi="unknown"
41319 tst_proto_strcmpi="unknown"
41320 tst_compi_strcmpi="unknown"
41321 tst_allow_strcmpi="unknown"
41323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
41324 $as_echo_n "checking if strcmpi can be linked... " >&6; }
41325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41326 /* end confdefs.h. */
41329 #define strcmpi innocuous_strcmpi
41331 # include <limits.h>
41333 # include <assert.h>
41340 #if defined __stub_strcmpi || defined __stub___strcmpi
41352 if ac_fn_c_try_link "$LINENO"; then :
41354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41355 $as_echo "yes" >&6; }
41356 tst_links_strcmpi="yes"
41360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41361 $as_echo "no" >&6; }
41362 tst_links_strcmpi="no"
41365 rm -f core conftest.err conftest.$ac_objext \
41366 conftest$ac_exeext conftest.$ac_ext
41368 if test "$tst_links_strcmpi" = "yes"; then
41369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
41370 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
41371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41372 /* end confdefs.h. */
41374 $curl_includes_string
41377 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41378 $EGREP "strcmpi" >/dev/null 2>&1; then :
41380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41381 $as_echo "yes" >&6; }
41382 tst_proto_strcmpi="yes"
41386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41387 $as_echo "no" >&6; }
41388 tst_proto_strcmpi="no"
41395 if test "$tst_proto_strcmpi" = "yes"; then
41396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
41397 $as_echo_n "checking if strcmpi is compilable... " >&6; }
41398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41399 /* end confdefs.h. */
41402 $curl_includes_string
41407 if(0 != strcmpi(0, 0))
41415 if ac_fn_c_try_compile "$LINENO"; then :
41417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41418 $as_echo "yes" >&6; }
41419 tst_compi_strcmpi="yes"
41423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41424 $as_echo "no" >&6; }
41425 tst_compi_strcmpi="no"
41428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41431 if test "$tst_compi_strcmpi" = "yes"; then
41432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
41433 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
41434 if test "x$curl_disallow_strcmpi" != "xyes"; then
41435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41436 $as_echo "yes" >&6; }
41437 tst_allow_strcmpi="yes"
41439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41440 $as_echo "no" >&6; }
41441 tst_allow_strcmpi="no"
41445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
41446 $as_echo_n "checking if strcmpi might be used... " >&6; }
41447 if test "$tst_links_strcmpi" = "yes" &&
41448 test "$tst_proto_strcmpi" = "yes" &&
41449 test "$tst_compi_strcmpi" = "yes" &&
41450 test "$tst_allow_strcmpi" = "yes"; then
41451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41452 $as_echo "yes" >&6; }
41454 cat >>confdefs.h <<_ACEOF
41455 #define HAVE_STRCMPI 1
41458 curl_cv_func_strcmpi="yes"
41460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41461 $as_echo "no" >&6; }
41462 curl_cv_func_strcmpi="no"
41467 tst_links_strdup="unknown"
41468 tst_proto_strdup="unknown"
41469 tst_compi_strdup="unknown"
41470 tst_allow_strdup="unknown"
41472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
41473 $as_echo_n "checking if strdup can be linked... " >&6; }
41474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41475 /* end confdefs.h. */
41478 #define strdup innocuous_strdup
41480 # include <limits.h>
41482 # include <assert.h>
41489 #if defined __stub_strdup || defined __stub___strdup
41501 if ac_fn_c_try_link "$LINENO"; then :
41503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41504 $as_echo "yes" >&6; }
41505 tst_links_strdup="yes"
41509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41510 $as_echo "no" >&6; }
41511 tst_links_strdup="no"
41514 rm -f core conftest.err conftest.$ac_objext \
41515 conftest$ac_exeext conftest.$ac_ext
41517 if test "$tst_links_strdup" = "yes"; then
41518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
41519 $as_echo_n "checking if strdup is prototyped... " >&6; }
41520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41521 /* end confdefs.h. */
41523 $curl_includes_string
41526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41527 $EGREP "strdup" >/dev/null 2>&1; then :
41529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41530 $as_echo "yes" >&6; }
41531 tst_proto_strdup="yes"
41535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41536 $as_echo "no" >&6; }
41537 tst_proto_strdup="no"
41544 if test "$tst_proto_strdup" = "yes"; then
41545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
41546 $as_echo_n "checking if strdup is compilable... " >&6; }
41547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41548 /* end confdefs.h. */
41551 $curl_includes_string
41564 if ac_fn_c_try_compile "$LINENO"; then :
41566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41567 $as_echo "yes" >&6; }
41568 tst_compi_strdup="yes"
41572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41573 $as_echo "no" >&6; }
41574 tst_compi_strdup="no"
41577 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41580 if test "$tst_compi_strdup" = "yes"; then
41581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
41582 $as_echo_n "checking if strdup usage allowed... " >&6; }
41583 if test "x$curl_disallow_strdup" != "xyes"; then
41584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41585 $as_echo "yes" >&6; }
41586 tst_allow_strdup="yes"
41588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41589 $as_echo "no" >&6; }
41590 tst_allow_strdup="no"
41594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
41595 $as_echo_n "checking if strdup might be used... " >&6; }
41596 if test "$tst_links_strdup" = "yes" &&
41597 test "$tst_proto_strdup" = "yes" &&
41598 test "$tst_compi_strdup" = "yes" &&
41599 test "$tst_allow_strdup" = "yes"; then
41600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41601 $as_echo "yes" >&6; }
41603 cat >>confdefs.h <<_ACEOF
41604 #define HAVE_STRDUP 1
41607 curl_cv_func_strdup="yes"
41609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41610 $as_echo "no" >&6; }
41611 curl_cv_func_strdup="no"
41616 tst_links_strerror_r="unknown"
41617 tst_proto_strerror_r="unknown"
41618 tst_compi_strerror_r="unknown"
41619 tst_glibc_strerror_r="unknown"
41620 tst_posix_strerror_r="unknown"
41621 tst_allow_strerror_r="unknown"
41622 tst_works_glibc_strerror_r="unknown"
41623 tst_works_posix_strerror_r="unknown"
41624 tst_glibc_strerror_r_type_arg3="unknown"
41625 tst_posix_strerror_r_type_arg3="unknown"
41627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
41628 $as_echo_n "checking if strerror_r can be linked... " >&6; }
41629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41630 /* end confdefs.h. */
41633 #define strerror_r innocuous_strerror_r
41635 # include <limits.h>
41637 # include <assert.h>
41643 char strerror_r ();
41644 #if defined __stub_strerror_r || defined __stub___strerror_r
41650 return strerror_r ();
41656 if ac_fn_c_try_link "$LINENO"; then :
41658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41659 $as_echo "yes" >&6; }
41660 tst_links_strerror_r="yes"
41664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41665 $as_echo "no" >&6; }
41666 tst_links_strerror_r="no"
41669 rm -f core conftest.err conftest.$ac_objext \
41670 conftest$ac_exeext conftest.$ac_ext
41672 if test "$tst_links_strerror_r" = "yes"; then
41673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
41674 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
41675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41676 /* end confdefs.h. */
41678 $curl_includes_string
41681 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41682 $EGREP "strerror_r" >/dev/null 2>&1; then :
41684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41685 $as_echo "yes" >&6; }
41686 tst_proto_strerror_r="yes"
41690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41691 $as_echo "no" >&6; }
41692 tst_proto_strerror_r="no"
41699 if test "$tst_proto_strerror_r" = "yes"; then
41700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
41701 $as_echo_n "checking if strerror_r is compilable... " >&6; }
41702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41703 /* end confdefs.h. */
41706 $curl_includes_string
41711 if(0 != strerror_r(0, 0, 0))
41719 if ac_fn_c_try_compile "$LINENO"; then :
41721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41722 $as_echo "yes" >&6; }
41723 tst_compi_strerror_r="yes"
41727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41728 $as_echo "no" >&6; }
41729 tst_compi_strerror_r="no"
41732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41735 if test "$tst_compi_strerror_r" = "yes"; then
41736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
41737 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
41738 tst_glibc_strerror_r_type_arg3="unknown"
41739 for arg3 in 'size_t' 'int' 'unsigned int'; do
41740 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
41741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41742 /* end confdefs.h. */
41745 $curl_includes_string
41746 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
41751 if(0 != strerror_r(0, 0, 0))
41759 if ac_fn_c_try_compile "$LINENO"; then :
41761 tst_glibc_strerror_r_type_arg3="$arg3"
41764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41767 case "$tst_glibc_strerror_r_type_arg3" in
41769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41770 $as_echo "no" >&6; }
41771 tst_glibc_strerror_r="no"
41774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41775 $as_echo "yes" >&6; }
41776 tst_glibc_strerror_r="yes"
41781 if test "x$cross_compiling" != "xyes" &&
41782 test "$tst_glibc_strerror_r" = "yes"; then
41783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
41784 $as_echo_n "checking if strerror_r seems to work... " >&6; }
41786 old=$LD_LIBRARY_PATH
41787 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41788 export LD_LIBRARY_PATH
41789 if test "$cross_compiling" = yes; then :
41790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41791 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41792 as_fn_error $? "cannot run test program while cross compiling
41793 See \`config.log' for more details" "$LINENO" 5; }
41795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41796 /* end confdefs.h. */
41799 $curl_includes_stdlib
41800 $curl_includes_string
41801 # include <errno.h>
41809 string = strerror_r(EACCES, buffer, sizeof(buffer));
41811 exit(1); /* fail */
41813 exit(1); /* fail */
41822 if ac_fn_c_try_run "$LINENO"; then :
41823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41824 $as_echo "yes" >&6; }
41825 tst_works_glibc_strerror_r="yes"
41828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41829 $as_echo "no" >&6; }
41830 tst_works_glibc_strerror_r="no"
41833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41834 conftest.$ac_objext conftest.beam conftest.$ac_ext
41837 LD_LIBRARY_PATH=$old # restore
41841 if test "$tst_compi_strerror_r" = "yes" &&
41842 test "$tst_works_glibc_strerror_r" != "yes"; then
41843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
41844 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
41845 tst_posix_strerror_r_type_arg3="unknown"
41846 for arg3 in 'size_t' 'int' 'unsigned int'; do
41847 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
41848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41849 /* end confdefs.h. */
41852 $curl_includes_string
41853 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
41858 if(0 != strerror_r(0, 0, 0))
41866 if ac_fn_c_try_compile "$LINENO"; then :
41868 tst_posix_strerror_r_type_arg3="$arg3"
41871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41874 case "$tst_posix_strerror_r_type_arg3" in
41876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41877 $as_echo "no" >&6; }
41878 tst_posix_strerror_r="no"
41881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41882 $as_echo "yes" >&6; }
41883 tst_posix_strerror_r="yes"
41888 if test "x$cross_compiling" != "xyes" &&
41889 test "$tst_posix_strerror_r" = "yes"; then
41890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
41891 $as_echo_n "checking if strerror_r seems to work... " >&6; }
41893 old=$LD_LIBRARY_PATH
41894 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
41895 export LD_LIBRARY_PATH
41896 if test "$cross_compiling" = yes; then :
41897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
41898 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
41899 as_fn_error $? "cannot run test program while cross compiling
41900 See \`config.log' for more details" "$LINENO" 5; }
41902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41903 /* end confdefs.h. */
41906 $curl_includes_stdlib
41907 $curl_includes_string
41908 # include <errno.h>
41916 error = strerror_r(EACCES, buffer, sizeof(buffer));
41918 exit(1); /* fail */
41919 if(buffer[0] == '\0')
41920 exit(1); /* fail */
41929 if ac_fn_c_try_run "$LINENO"; then :
41930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41931 $as_echo "yes" >&6; }
41932 tst_works_posix_strerror_r="yes"
41935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41936 $as_echo "no" >&6; }
41937 tst_works_posix_strerror_r="no"
41940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
41941 conftest.$ac_objext conftest.beam conftest.$ac_ext
41944 LD_LIBRARY_PATH=$old # restore
41948 if test "$tst_works_glibc_strerror_r" = "yes"; then
41949 tst_posix_strerror_r="no"
41951 if test "$tst_works_posix_strerror_r" = "yes"; then
41952 tst_glibc_strerror_r="no"
41954 if test "$tst_glibc_strerror_r" = "yes" &&
41955 test "$tst_works_glibc_strerror_r" != "no" &&
41956 test "$tst_posix_strerror_r" != "yes"; then
41957 tst_allow_strerror_r="check"
41959 if test "$tst_posix_strerror_r" = "yes" &&
41960 test "$tst_works_posix_strerror_r" != "no" &&
41961 test "$tst_glibc_strerror_r" != "yes"; then
41962 tst_allow_strerror_r="check"
41964 if test "$tst_allow_strerror_r" = "check"; then
41965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
41966 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
41967 if test "x$curl_disallow_strerror_r" != "xyes"; then
41968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41969 $as_echo "yes" >&6; }
41970 tst_allow_strerror_r="yes"
41972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41973 $as_echo "no" >&6; }
41974 tst_allow_strerror_r="no"
41978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
41979 $as_echo_n "checking if strerror_r might be used... " >&6; }
41980 if test "$tst_links_strerror_r" = "yes" &&
41981 test "$tst_proto_strerror_r" = "yes" &&
41982 test "$tst_compi_strerror_r" = "yes" &&
41983 test "$tst_allow_strerror_r" = "yes"; then
41984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41985 $as_echo "yes" >&6; }
41986 if test "$tst_glibc_strerror_r" = "yes"; then
41988 cat >>confdefs.h <<_ACEOF
41989 #define HAVE_STRERROR_R 1
41993 cat >>confdefs.h <<_ACEOF
41994 #define HAVE_GLIBC_STRERROR_R 1
41998 cat >>confdefs.h <<_ACEOF
41999 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
42003 if test "$tst_posix_strerror_r" = "yes"; then
42005 cat >>confdefs.h <<_ACEOF
42006 #define HAVE_STRERROR_R 1
42010 cat >>confdefs.h <<_ACEOF
42011 #define HAVE_POSIX_STRERROR_R 1
42015 cat >>confdefs.h <<_ACEOF
42016 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
42020 curl_cv_func_strerror_r="yes"
42022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42023 $as_echo "no" >&6; }
42024 curl_cv_func_strerror_r="no"
42027 if test "$tst_compi_strerror_r" = "yes" &&
42028 test "$tst_allow_strerror_r" = "unknown"; then
42029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
42030 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
42036 tst_links_stricmp="unknown"
42037 tst_proto_stricmp="unknown"
42038 tst_compi_stricmp="unknown"
42039 tst_allow_stricmp="unknown"
42041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
42042 $as_echo_n "checking if stricmp can be linked... " >&6; }
42043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42044 /* end confdefs.h. */
42047 #define stricmp innocuous_stricmp
42049 # include <limits.h>
42051 # include <assert.h>
42058 #if defined __stub_stricmp || defined __stub___stricmp
42070 if ac_fn_c_try_link "$LINENO"; then :
42072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42073 $as_echo "yes" >&6; }
42074 tst_links_stricmp="yes"
42078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42079 $as_echo "no" >&6; }
42080 tst_links_stricmp="no"
42083 rm -f core conftest.err conftest.$ac_objext \
42084 conftest$ac_exeext conftest.$ac_ext
42086 if test "$tst_links_stricmp" = "yes"; then
42087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
42088 $as_echo_n "checking if stricmp is prototyped... " >&6; }
42089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42090 /* end confdefs.h. */
42092 $curl_includes_string
42095 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42096 $EGREP "stricmp" >/dev/null 2>&1; then :
42098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42099 $as_echo "yes" >&6; }
42100 tst_proto_stricmp="yes"
42104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42105 $as_echo "no" >&6; }
42106 tst_proto_stricmp="no"
42113 if test "$tst_proto_stricmp" = "yes"; then
42114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
42115 $as_echo_n "checking if stricmp is compilable... " >&6; }
42116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42117 /* end confdefs.h. */
42120 $curl_includes_string
42125 if(0 != stricmp(0, 0))
42133 if ac_fn_c_try_compile "$LINENO"; then :
42135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42136 $as_echo "yes" >&6; }
42137 tst_compi_stricmp="yes"
42141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42142 $as_echo "no" >&6; }
42143 tst_compi_stricmp="no"
42146 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42149 if test "$tst_compi_stricmp" = "yes"; then
42150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
42151 $as_echo_n "checking if stricmp usage allowed... " >&6; }
42152 if test "x$curl_disallow_stricmp" != "xyes"; then
42153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42154 $as_echo "yes" >&6; }
42155 tst_allow_stricmp="yes"
42157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42158 $as_echo "no" >&6; }
42159 tst_allow_stricmp="no"
42163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
42164 $as_echo_n "checking if stricmp might be used... " >&6; }
42165 if test "$tst_links_stricmp" = "yes" &&
42166 test "$tst_proto_stricmp" = "yes" &&
42167 test "$tst_compi_stricmp" = "yes" &&
42168 test "$tst_allow_stricmp" = "yes"; then
42169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42170 $as_echo "yes" >&6; }
42172 cat >>confdefs.h <<_ACEOF
42173 #define HAVE_STRICMP 1
42176 curl_cv_func_stricmp="yes"
42178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42179 $as_echo "no" >&6; }
42180 curl_cv_func_stricmp="no"
42185 tst_links_strncasecmp="unknown"
42186 tst_proto_strncasecmp="unknown"
42187 tst_compi_strncasecmp="unknown"
42188 tst_allow_strncasecmp="unknown"
42190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
42191 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
42192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42193 /* end confdefs.h. */
42196 #define strncasecmp innocuous_strncasecmp
42198 # include <limits.h>
42200 # include <assert.h>
42206 char strncasecmp ();
42207 #if defined __stub_strncasecmp || defined __stub___strncasecmp
42213 return strncasecmp ();
42219 if ac_fn_c_try_link "$LINENO"; then :
42221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42222 $as_echo "yes" >&6; }
42223 tst_links_strncasecmp="yes"
42227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42228 $as_echo "no" >&6; }
42229 tst_links_strncasecmp="no"
42232 rm -f core conftest.err conftest.$ac_objext \
42233 conftest$ac_exeext conftest.$ac_ext
42235 if test "$tst_links_strncasecmp" = "yes"; then
42236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
42237 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
42238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42239 /* end confdefs.h. */
42241 $curl_includes_string
42244 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42245 $EGREP "strncasecmp" >/dev/null 2>&1; then :
42247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42248 $as_echo "yes" >&6; }
42249 tst_proto_strncasecmp="yes"
42253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42254 $as_echo "no" >&6; }
42255 tst_proto_strncasecmp="no"
42262 if test "$tst_proto_strncasecmp" = "yes"; then
42263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
42264 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
42265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42266 /* end confdefs.h. */
42269 $curl_includes_string
42274 if(0 != strncasecmp(0, 0, 0))
42282 if ac_fn_c_try_compile "$LINENO"; then :
42284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42285 $as_echo "yes" >&6; }
42286 tst_compi_strncasecmp="yes"
42290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42291 $as_echo "no" >&6; }
42292 tst_compi_strncasecmp="no"
42295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42298 if test "$tst_compi_strncasecmp" = "yes"; then
42299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
42300 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
42301 if test "x$curl_disallow_strncasecmp" != "xyes"; then
42302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42303 $as_echo "yes" >&6; }
42304 tst_allow_strncasecmp="yes"
42306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42307 $as_echo "no" >&6; }
42308 tst_allow_strncasecmp="no"
42312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
42313 $as_echo_n "checking if strncasecmp might be used... " >&6; }
42314 if test "$tst_links_strncasecmp" = "yes" &&
42315 test "$tst_proto_strncasecmp" = "yes" &&
42316 test "$tst_compi_strncasecmp" = "yes" &&
42317 test "$tst_allow_strncasecmp" = "yes"; then
42318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42319 $as_echo "yes" >&6; }
42321 cat >>confdefs.h <<_ACEOF
42322 #define HAVE_STRNCASECMP 1
42325 curl_cv_func_strncasecmp="yes"
42327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42328 $as_echo "no" >&6; }
42329 curl_cv_func_strncasecmp="no"
42334 tst_links_strncmpi="unknown"
42335 tst_proto_strncmpi="unknown"
42336 tst_compi_strncmpi="unknown"
42337 tst_allow_strncmpi="unknown"
42339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
42340 $as_echo_n "checking if strncmpi can be linked... " >&6; }
42341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42342 /* end confdefs.h. */
42345 #define strncmpi innocuous_strncmpi
42347 # include <limits.h>
42349 # include <assert.h>
42356 #if defined __stub_strncmpi || defined __stub___strncmpi
42362 return strncmpi ();
42368 if ac_fn_c_try_link "$LINENO"; then :
42370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42371 $as_echo "yes" >&6; }
42372 tst_links_strncmpi="yes"
42376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42377 $as_echo "no" >&6; }
42378 tst_links_strncmpi="no"
42381 rm -f core conftest.err conftest.$ac_objext \
42382 conftest$ac_exeext conftest.$ac_ext
42384 if test "$tst_links_strncmpi" = "yes"; then
42385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
42386 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
42387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42388 /* end confdefs.h. */
42390 $curl_includes_string
42393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42394 $EGREP "strncmpi" >/dev/null 2>&1; then :
42396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42397 $as_echo "yes" >&6; }
42398 tst_proto_strncmpi="yes"
42402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42403 $as_echo "no" >&6; }
42404 tst_proto_strncmpi="no"
42411 if test "$tst_proto_strncmpi" = "yes"; then
42412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
42413 $as_echo_n "checking if strncmpi is compilable... " >&6; }
42414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42415 /* end confdefs.h. */
42418 $curl_includes_string
42423 if(0 != strncmpi(0, 0))
42431 if ac_fn_c_try_compile "$LINENO"; then :
42433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42434 $as_echo "yes" >&6; }
42435 tst_compi_strncmpi="yes"
42439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42440 $as_echo "no" >&6; }
42441 tst_compi_strncmpi="no"
42444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42447 if test "$tst_compi_strncmpi" = "yes"; then
42448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
42449 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
42450 if test "x$curl_disallow_strncmpi" != "xyes"; then
42451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42452 $as_echo "yes" >&6; }
42453 tst_allow_strncmpi="yes"
42455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42456 $as_echo "no" >&6; }
42457 tst_allow_strncmpi="no"
42461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
42462 $as_echo_n "checking if strncmpi might be used... " >&6; }
42463 if test "$tst_links_strncmpi" = "yes" &&
42464 test "$tst_proto_strncmpi" = "yes" &&
42465 test "$tst_compi_strncmpi" = "yes" &&
42466 test "$tst_allow_strncmpi" = "yes"; then
42467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42468 $as_echo "yes" >&6; }
42470 cat >>confdefs.h <<_ACEOF
42471 #define HAVE_STRNCMPI 1
42474 curl_cv_func_strncmpi="yes"
42476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42477 $as_echo "no" >&6; }
42478 curl_cv_func_strncmpi="no"
42483 tst_links_strnicmp="unknown"
42484 tst_proto_strnicmp="unknown"
42485 tst_compi_strnicmp="unknown"
42486 tst_allow_strnicmp="unknown"
42488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
42489 $as_echo_n "checking if strnicmp can be linked... " >&6; }
42490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42491 /* end confdefs.h. */
42494 #define strnicmp innocuous_strnicmp
42496 # include <limits.h>
42498 # include <assert.h>
42505 #if defined __stub_strnicmp || defined __stub___strnicmp
42511 return strnicmp ();
42517 if ac_fn_c_try_link "$LINENO"; then :
42519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42520 $as_echo "yes" >&6; }
42521 tst_links_strnicmp="yes"
42525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42526 $as_echo "no" >&6; }
42527 tst_links_strnicmp="no"
42530 rm -f core conftest.err conftest.$ac_objext \
42531 conftest$ac_exeext conftest.$ac_ext
42533 if test "$tst_links_strnicmp" = "yes"; then
42534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
42535 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
42536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42537 /* end confdefs.h. */
42539 $curl_includes_string
42542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42543 $EGREP "strnicmp" >/dev/null 2>&1; then :
42545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42546 $as_echo "yes" >&6; }
42547 tst_proto_strnicmp="yes"
42551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42552 $as_echo "no" >&6; }
42553 tst_proto_strnicmp="no"
42560 if test "$tst_proto_strnicmp" = "yes"; then
42561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
42562 $as_echo_n "checking if strnicmp is compilable... " >&6; }
42563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42564 /* end confdefs.h. */
42567 $curl_includes_string
42572 if(0 != strnicmp(0, 0))
42580 if ac_fn_c_try_compile "$LINENO"; then :
42582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42583 $as_echo "yes" >&6; }
42584 tst_compi_strnicmp="yes"
42588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42589 $as_echo "no" >&6; }
42590 tst_compi_strnicmp="no"
42593 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42596 if test "$tst_compi_strnicmp" = "yes"; then
42597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
42598 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
42599 if test "x$curl_disallow_strnicmp" != "xyes"; then
42600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42601 $as_echo "yes" >&6; }
42602 tst_allow_strnicmp="yes"
42604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42605 $as_echo "no" >&6; }
42606 tst_allow_strnicmp="no"
42610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
42611 $as_echo_n "checking if strnicmp might be used... " >&6; }
42612 if test "$tst_links_strnicmp" = "yes" &&
42613 test "$tst_proto_strnicmp" = "yes" &&
42614 test "$tst_compi_strnicmp" = "yes" &&
42615 test "$tst_allow_strnicmp" = "yes"; then
42616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42617 $as_echo "yes" >&6; }
42619 cat >>confdefs.h <<_ACEOF
42620 #define HAVE_STRNICMP 1
42623 curl_cv_func_strnicmp="yes"
42625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42626 $as_echo "no" >&6; }
42627 curl_cv_func_strnicmp="no"
42632 tst_links_strstr="unknown"
42633 tst_proto_strstr="unknown"
42634 tst_compi_strstr="unknown"
42635 tst_allow_strstr="unknown"
42637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
42638 $as_echo_n "checking if strstr can be linked... " >&6; }
42639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42640 /* end confdefs.h. */
42643 #define strstr innocuous_strstr
42645 # include <limits.h>
42647 # include <assert.h>
42654 #if defined __stub_strstr || defined __stub___strstr
42666 if ac_fn_c_try_link "$LINENO"; then :
42668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42669 $as_echo "yes" >&6; }
42670 tst_links_strstr="yes"
42674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42675 $as_echo "no" >&6; }
42676 tst_links_strstr="no"
42679 rm -f core conftest.err conftest.$ac_objext \
42680 conftest$ac_exeext conftest.$ac_ext
42682 if test "$tst_links_strstr" = "yes"; then
42683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
42684 $as_echo_n "checking if strstr is prototyped... " >&6; }
42685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42686 /* end confdefs.h. */
42688 $curl_includes_string
42691 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42692 $EGREP "strstr" >/dev/null 2>&1; then :
42694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42695 $as_echo "yes" >&6; }
42696 tst_proto_strstr="yes"
42700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42701 $as_echo "no" >&6; }
42702 tst_proto_strstr="no"
42709 if test "$tst_proto_strstr" = "yes"; then
42710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
42711 $as_echo_n "checking if strstr is compilable... " >&6; }
42712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42713 /* end confdefs.h. */
42716 $curl_includes_string
42721 if(0 != strstr(0, 0))
42729 if ac_fn_c_try_compile "$LINENO"; then :
42731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42732 $as_echo "yes" >&6; }
42733 tst_compi_strstr="yes"
42737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42738 $as_echo "no" >&6; }
42739 tst_compi_strstr="no"
42742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42745 if test "$tst_compi_strstr" = "yes"; then
42746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
42747 $as_echo_n "checking if strstr usage allowed... " >&6; }
42748 if test "x$curl_disallow_strstr" != "xyes"; then
42749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42750 $as_echo "yes" >&6; }
42751 tst_allow_strstr="yes"
42753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42754 $as_echo "no" >&6; }
42755 tst_allow_strstr="no"
42759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
42760 $as_echo_n "checking if strstr might be used... " >&6; }
42761 if test "$tst_links_strstr" = "yes" &&
42762 test "$tst_proto_strstr" = "yes" &&
42763 test "$tst_compi_strstr" = "yes" &&
42764 test "$tst_allow_strstr" = "yes"; then
42765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42766 $as_echo "yes" >&6; }
42768 cat >>confdefs.h <<_ACEOF
42769 #define HAVE_STRSTR 1
42772 curl_cv_func_strstr="yes"
42774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42775 $as_echo "no" >&6; }
42776 curl_cv_func_strstr="no"
42781 tst_links_strtok_r="unknown"
42782 tst_proto_strtok_r="unknown"
42783 tst_compi_strtok_r="unknown"
42784 tst_allow_strtok_r="unknown"
42786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
42787 $as_echo_n "checking if strtok_r can be linked... " >&6; }
42788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42789 /* end confdefs.h. */
42792 #define strtok_r innocuous_strtok_r
42794 # include <limits.h>
42796 # include <assert.h>
42803 #if defined __stub_strtok_r || defined __stub___strtok_r
42809 return strtok_r ();
42815 if ac_fn_c_try_link "$LINENO"; then :
42817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42818 $as_echo "yes" >&6; }
42819 tst_links_strtok_r="yes"
42823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42824 $as_echo "no" >&6; }
42825 tst_links_strtok_r="no"
42828 rm -f core conftest.err conftest.$ac_objext \
42829 conftest$ac_exeext conftest.$ac_ext
42831 if test "$tst_links_strtok_r" = "yes"; then
42832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
42833 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
42834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42835 /* end confdefs.h. */
42837 $curl_includes_string
42840 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42841 $EGREP "strtok_r" >/dev/null 2>&1; then :
42843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42844 $as_echo "yes" >&6; }
42845 tst_proto_strtok_r="yes"
42849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42850 $as_echo "no" >&6; }
42851 tst_proto_strtok_r="no"
42858 if test "$tst_proto_strtok_r" = "yes"; then
42859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
42860 $as_echo_n "checking if strtok_r is compilable... " >&6; }
42861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42862 /* end confdefs.h. */
42865 $curl_includes_string
42870 if(0 != strtok_r(0, 0, 0))
42878 if ac_fn_c_try_compile "$LINENO"; then :
42880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42881 $as_echo "yes" >&6; }
42882 tst_compi_strtok_r="yes"
42886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42887 $as_echo "no" >&6; }
42888 tst_compi_strtok_r="no"
42891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
42894 if test "$tst_compi_strtok_r" = "yes"; then
42895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
42896 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
42897 if test "x$curl_disallow_strtok_r" != "xyes"; then
42898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42899 $as_echo "yes" >&6; }
42900 tst_allow_strtok_r="yes"
42902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42903 $as_echo "no" >&6; }
42904 tst_allow_strtok_r="no"
42908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
42909 $as_echo_n "checking if strtok_r might be used... " >&6; }
42910 if test "$tst_links_strtok_r" = "yes" &&
42911 test "$tst_proto_strtok_r" = "yes" &&
42912 test "$tst_compi_strtok_r" = "yes" &&
42913 test "$tst_allow_strtok_r" = "yes"; then
42914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42915 $as_echo "yes" >&6; }
42917 cat >>confdefs.h <<_ACEOF
42918 #define HAVE_STRTOK_R 1
42921 curl_cv_func_strtok_r="yes"
42923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42924 $as_echo "no" >&6; }
42925 curl_cv_func_strtok_r="no"
42930 tst_links_strtoll="unknown"
42931 tst_proto_strtoll="unknown"
42932 tst_compi_strtoll="unknown"
42933 tst_allow_strtoll="unknown"
42935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
42936 $as_echo_n "checking if strtoll can be linked... " >&6; }
42937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42938 /* end confdefs.h. */
42941 #define strtoll innocuous_strtoll
42943 # include <limits.h>
42945 # include <assert.h>
42952 #if defined __stub_strtoll || defined __stub___strtoll
42964 if ac_fn_c_try_link "$LINENO"; then :
42966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42967 $as_echo "yes" >&6; }
42968 tst_links_strtoll="yes"
42972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42973 $as_echo "no" >&6; }
42974 tst_links_strtoll="no"
42977 rm -f core conftest.err conftest.$ac_objext \
42978 conftest$ac_exeext conftest.$ac_ext
42980 if test "$tst_links_strtoll" = "yes"; then
42981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
42982 $as_echo_n "checking if strtoll is prototyped... " >&6; }
42983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42984 /* end confdefs.h. */
42986 $curl_includes_stdlib
42989 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42990 $EGREP "strtoll" >/dev/null 2>&1; then :
42992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42993 $as_echo "yes" >&6; }
42994 tst_proto_strtoll="yes"
42998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42999 $as_echo "no" >&6; }
43000 tst_proto_strtoll="no"
43007 if test "$tst_proto_strtoll" = "yes"; then
43008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43009 $as_echo_n "checking if strtoll is compilable... " >&6; }
43010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43011 /* end confdefs.h. */
43014 $curl_includes_stdlib
43019 if(0 != strtoll(0, 0, 0))
43027 if ac_fn_c_try_compile "$LINENO"; then :
43029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43030 $as_echo "yes" >&6; }
43031 tst_compi_strtoll="yes"
43035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43036 $as_echo "no" >&6; }
43037 tst_compi_strtoll="no"
43040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43043 if test "$tst_compi_strtoll" = "yes"; then
43044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43045 $as_echo_n "checking if strtoll usage allowed... " >&6; }
43046 if test "x$curl_disallow_strtoll" != "xyes"; then
43047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43048 $as_echo "yes" >&6; }
43049 tst_allow_strtoll="yes"
43051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43052 $as_echo "no" >&6; }
43053 tst_allow_strtoll="no"
43057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43058 $as_echo_n "checking if strtoll might be used... " >&6; }
43059 if test "$tst_links_strtoll" = "yes" &&
43060 test "$tst_proto_strtoll" = "yes" &&
43061 test "$tst_compi_strtoll" = "yes" &&
43062 test "$tst_allow_strtoll" = "yes"; then
43063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43064 $as_echo "yes" >&6; }
43066 cat >>confdefs.h <<_ACEOF
43067 #define HAVE_STRTOLL 1
43070 curl_cv_func_strtoll="yes"
43072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43073 $as_echo "no" >&6; }
43074 curl_cv_func_strtoll="no"
43078 curl_includes_sys_uio="\
43079 /* includes start */
43080 #ifdef HAVE_SYS_TYPES_H
43081 # include <sys/types.h>
43083 #ifdef HAVE_SYS_UIO_H
43084 # include <sys/uio.h>
43086 /* includes end */"
43087 for ac_header in sys/types.h sys/uio.h
43089 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
43090 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
43092 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
43093 cat >>confdefs.h <<_ACEOF
43094 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
43104 tst_links_writev="unknown"
43105 tst_proto_writev="unknown"
43106 tst_compi_writev="unknown"
43107 tst_allow_writev="unknown"
43109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
43110 $as_echo_n "checking if writev can be linked... " >&6; }
43111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43112 /* end confdefs.h. */
43115 #define writev innocuous_writev
43117 # include <limits.h>
43119 # include <assert.h>
43126 #if defined __stub_writev || defined __stub___writev
43138 if ac_fn_c_try_link "$LINENO"; then :
43140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43141 $as_echo "yes" >&6; }
43142 tst_links_writev="yes"
43146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43147 $as_echo "no" >&6; }
43148 tst_links_writev="no"
43151 rm -f core conftest.err conftest.$ac_objext \
43152 conftest$ac_exeext conftest.$ac_ext
43154 if test "$tst_links_writev" = "yes"; then
43155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
43156 $as_echo_n "checking if writev is prototyped... " >&6; }
43157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43158 /* end confdefs.h. */
43160 $curl_includes_sys_uio
43163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43164 $EGREP "writev" >/dev/null 2>&1; then :
43166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43167 $as_echo "yes" >&6; }
43168 tst_proto_writev="yes"
43172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43173 $as_echo "no" >&6; }
43174 tst_proto_writev="no"
43181 if test "$tst_proto_writev" = "yes"; then
43182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
43183 $as_echo_n "checking if writev is compilable... " >&6; }
43184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43185 /* end confdefs.h. */
43188 $curl_includes_sys_uio
43193 if(0 != writev(0, 0, 0))
43201 if ac_fn_c_try_compile "$LINENO"; then :
43203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43204 $as_echo "yes" >&6; }
43205 tst_compi_writev="yes"
43209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43210 $as_echo "no" >&6; }
43211 tst_compi_writev="no"
43214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
43217 if test "$tst_compi_writev" = "yes"; then
43218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
43219 $as_echo_n "checking if writev usage allowed... " >&6; }
43220 if test "x$curl_disallow_writev" != "xyes"; then
43221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43222 $as_echo "yes" >&6; }
43223 tst_allow_writev="yes"
43225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43226 $as_echo "no" >&6; }
43227 tst_allow_writev="no"
43231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
43232 $as_echo_n "checking if writev might be used... " >&6; }
43233 if test "$tst_links_writev" = "yes" &&
43234 test "$tst_proto_writev" = "yes" &&
43235 test "$tst_compi_writev" = "yes" &&
43236 test "$tst_allow_writev" = "yes"; then
43237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43238 $as_echo "yes" >&6; }
43240 cat >>confdefs.h <<_ACEOF
43241 #define HAVE_WRITEV 1
43244 curl_cv_func_writev="yes"
43246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43247 $as_echo "no" >&6; }
43248 curl_cv_func_writev="no"
43256 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43257 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43261 ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43262 #include <sys/types.h>
43264 if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
43270 cat >>confdefs.h <<_ACEOF
43271 #define HAVE_DECL_GETPWUID_R $ac_have_decl
43273 if test $ac_have_decl = 1; then :
43277 $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43283 for ac_func in fnmatch \
43292 mach_absolute_time \
43302 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
43303 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43304 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
43305 cat >>confdefs.h <<_ACEOF
43306 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
43313 eval skipcheck=\$skipcheck_$func
43314 if test "x$skipcheck" != "xyes"; then
43315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43316 $as_echo_n "checking deeper for $func... " >&6; }
43317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43318 /* end confdefs.h. */
43332 if ac_fn_c_try_link "$LINENO"; then :
43334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43335 $as_echo "yes" >&6; }
43336 eval "ac_cv_func_$func=yes"
43338 cat >>confdefs.h <<_ACEOF
43339 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43346 $as_echo "but still no" >&6; }
43349 rm -f core conftest.err conftest.$ac_objext \
43350 conftest$ac_exeext conftest.$ac_ext
43359 tst_method="unknown"
43361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43362 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
43363 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43364 tst_method="fcntl O_NONBLOCK"
43365 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43366 tst_method="ioctl FIONBIO"
43367 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43368 tst_method="ioctlsocket FIONBIO"
43369 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43370 tst_method="IoctlSocket FIONBIO"
43371 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43372 tst_method="setsockopt SO_NONBLOCK"
43374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43375 $as_echo "$tst_method" >&6; }
43376 if test "$tst_method" = "unknown"; then
43377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43378 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43383 # Extract the first word of "perl", so it can be a program name with args.
43384 set dummy perl; ac_word=$2
43385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43386 $as_echo_n "checking for $ac_word... " >&6; }
43387 if ${ac_cv_path_PERL+:} false; then :
43388 $as_echo_n "(cached) " >&6
43392 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43396 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43397 for as_dir in $as_dummy
43400 test -z "$as_dir" && as_dir=.
43401 for ac_exec_ext in '' $ac_executable_extensions; do
43402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43403 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
43404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43414 PERL=$ac_cv_path_PERL
43415 if test -n "$PERL"; then
43416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43417 $as_echo "$PERL" >&6; }
43419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43420 $as_echo "no" >&6; }
43426 for ac_prog in gnroff nroff
43428 # Extract the first word of "$ac_prog", so it can be a program name with args.
43429 set dummy $ac_prog; ac_word=$2
43430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43431 $as_echo_n "checking for $ac_word... " >&6; }
43432 if ${ac_cv_path_NROFF+:} false; then :
43433 $as_echo_n "(cached) " >&6
43437 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43441 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43442 for as_dir in $as_dummy
43445 test -z "$as_dir" && as_dir=.
43446 for ac_exec_ext in '' $ac_executable_extensions; do
43447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43448 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
43449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43459 NROFF=$ac_cv_path_NROFF
43460 if test -n "$NROFF"; then
43461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43462 $as_echo "$NROFF" >&6; }
43464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43465 $as_echo "no" >&6; }
43469 test -n "$NROFF" && break
43474 if test -n "$NROFF"; then
43476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43477 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
43479 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43480 if test -z "$mancheck"; then
43482 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43483 if test -z "$mancheck"; then
43485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43486 $as_echo "failed" >&6; }
43487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43488 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43491 $as_echo "$MANOPT" >&6; }
43494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43495 $as_echo "$MANOPT" >&6; }
43500 if test -z "$MANOPT"
43502 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43503 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
43508 if test "$USE_MANUAL" = "1"; then
43510 $as_echo "#define USE_MANUAL 1" >>confdefs.h
43512 curl_manual_msg="enabled"
43515 if test x"$USE_MANUAL" = x1; then
43517 USE_MANUAL_FALSE='#'
43519 USE_MANUAL_TRUE='#'
43528 if test "$want_ares" = "yes"; then
43529 clean_CPPFLAGS="$CPPFLAGS"
43530 clean_LDFLAGS="$LDFLAGS"
43532 embedded_ares="unknown"
43533 configure_runpath=`pwd`
43534 embedded_ares_builddir="$configure_runpath/ares"
43535 if test -n "$want_ares_path"; then
43536 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43538 if test -n "$PKG_CONFIG"; then
43539 PKGCONFIG="$PKG_CONFIG"
43541 if test -n "$ac_tool_prefix"; then
43542 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43543 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43545 $as_echo_n "checking for $ac_word... " >&6; }
43546 if ${ac_cv_path_PKGCONFIG+:} false; then :
43547 $as_echo_n "(cached) " >&6
43551 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43555 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43556 for as_dir in $as_dummy
43559 test -z "$as_dir" && as_dir=.
43560 for ac_exec_ext in '' $ac_executable_extensions; do
43561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43562 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43573 PKGCONFIG=$ac_cv_path_PKGCONFIG
43574 if test -n "$PKGCONFIG"; then
43575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43576 $as_echo "$PKGCONFIG" >&6; }
43578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43579 $as_echo "no" >&6; }
43584 if test -z "$ac_cv_path_PKGCONFIG"; then
43585 ac_pt_PKGCONFIG=$PKGCONFIG
43586 # Extract the first word of "pkg-config", so it can be a program name with args.
43587 set dummy pkg-config; ac_word=$2
43588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43589 $as_echo_n "checking for $ac_word... " >&6; }
43590 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
43591 $as_echo_n "(cached) " >&6
43593 case $ac_pt_PKGCONFIG in
43595 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43599 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43600 for as_dir in $as_dummy
43603 test -z "$as_dir" && as_dir=.
43604 for ac_exec_ext in '' $ac_executable_extensions; do
43605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43606 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43617 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43618 if test -n "$ac_pt_PKGCONFIG"; then
43619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43620 $as_echo "$ac_pt_PKGCONFIG" >&6; }
43622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43623 $as_echo "no" >&6; }
43626 if test "x$ac_pt_PKGCONFIG" = x; then
43629 case $cross_compiling:$ac_tool_warned in
43631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43632 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43633 ac_tool_warned=yes ;;
43635 PKGCONFIG=$ac_pt_PKGCONFIG
43638 PKGCONFIG="$ac_cv_path_PKGCONFIG"
43643 if test "x$PKGCONFIG" != "xno"; then
43644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43645 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
43647 if test -n "$ARES_PCDIR"; then
43648 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43649 export PKG_CONFIG_LIBDIR
43651 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43653 if test -z "$itexists"; then
43655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43656 $as_echo "no" >&6; }
43658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
43659 $as_echo "found" >&6; }
43663 if test "$PKGCONFIG" != "no" ; then
43665 if test -n "$ARES_PCDIR"; then
43666 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43667 export PKG_CONFIG_LIBDIR
43670 $PKGCONFIG --libs-only-l libcares`
43672 if test -n "$ARES_PCDIR"; then
43673 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43674 export PKG_CONFIG_LIBDIR
43677 $PKGCONFIG --libs-only-L libcares`
43679 if test -n "$ARES_PCDIR"; then
43680 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43681 export PKG_CONFIG_LIBDIR
43684 $PKGCONFIG --cflags-only-I libcares`
43685 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
43686 $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
43687 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
43688 $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43689 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43690 $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43692 ares_CPPFLAGS="-I$want_ares_path/include"
43693 ares_LDFLAGS="-L$want_ares_path/lib"
43694 ares_LIBS="-lcares"
43697 if test -d "$srcdir/ares"; then
43698 embedded_ares="yes"
43699 subdirs="$subdirs ares"
43702 ares_LDFLAGS="-L$embedded_ares_builddir"
43703 ares_LIBS="-lcares"
43706 if test -n "$PKG_CONFIG"; then
43707 PKGCONFIG="$PKG_CONFIG"
43709 if test -n "$ac_tool_prefix"; then
43710 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43711 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43713 $as_echo_n "checking for $ac_word... " >&6; }
43714 if ${ac_cv_path_PKGCONFIG+:} false; then :
43715 $as_echo_n "(cached) " >&6
43719 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43723 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43724 for as_dir in $as_dummy
43727 test -z "$as_dir" && as_dir=.
43728 for ac_exec_ext in '' $ac_executable_extensions; do
43729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43730 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43741 PKGCONFIG=$ac_cv_path_PKGCONFIG
43742 if test -n "$PKGCONFIG"; then
43743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43744 $as_echo "$PKGCONFIG" >&6; }
43746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43747 $as_echo "no" >&6; }
43752 if test -z "$ac_cv_path_PKGCONFIG"; then
43753 ac_pt_PKGCONFIG=$PKGCONFIG
43754 # Extract the first word of "pkg-config", so it can be a program name with args.
43755 set dummy pkg-config; ac_word=$2
43756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43757 $as_echo_n "checking for $ac_word... " >&6; }
43758 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
43759 $as_echo_n "(cached) " >&6
43761 case $ac_pt_PKGCONFIG in
43763 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43767 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43768 for as_dir in $as_dummy
43771 test -z "$as_dir" && as_dir=.
43772 for ac_exec_ext in '' $ac_executable_extensions; do
43773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
43774 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
43775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
43785 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43786 if test -n "$ac_pt_PKGCONFIG"; then
43787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43788 $as_echo "$ac_pt_PKGCONFIG" >&6; }
43790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43791 $as_echo "no" >&6; }
43794 if test "x$ac_pt_PKGCONFIG" = x; then
43797 case $cross_compiling:$ac_tool_warned in
43799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43800 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43801 ac_tool_warned=yes ;;
43803 PKGCONFIG=$ac_pt_PKGCONFIG
43806 PKGCONFIG="$ac_cv_path_PKGCONFIG"
43811 if test "x$PKGCONFIG" != "xno"; then
43812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43813 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
43815 if test -n ""; then
43816 PKG_CONFIG_LIBDIR=""
43817 export PKG_CONFIG_LIBDIR
43819 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43821 if test -z "$itexists"; then
43823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43824 $as_echo "no" >&6; }
43826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
43827 $as_echo "found" >&6; }
43831 if test "$PKGCONFIG" != "no" ; then
43832 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
43833 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
43834 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
43835 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
43836 $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
43837 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
43838 $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43839 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43840 $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43844 ares_LIBS="-lcares"
43849 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
43850 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
43851 LIBS="$ares_LIBS $clean_LIBS"
43853 if test "$embedded_ares" != "yes"; then
43854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
43855 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
43856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43857 /* end confdefs.h. */
43861 /* set of dummy functions in case c-ares was built with debug */
43862 void curl_dofree() { }
43863 void curl_sclose() { }
43864 void curl_domalloc() { }
43865 void curl_docalloc() { }
43866 void curl_socket() { }
43871 ares_channel channel;
43872 ares_cancel(channel); /* added in 1.2.0 */
43873 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
43874 ares_dup(&channel, channel); /* added in 1.6.0 */
43881 if ac_fn_c_try_link "$LINENO"; then :
43883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43884 $as_echo "yes" >&6; }
43888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43889 $as_echo "no" >&6; }
43890 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
43891 CPPFLAGS="$clean_CPPFLAGS"
43892 LDFLAGS="$clean_LDFLAGS"
43898 rm -f core conftest.err conftest.$ac_objext \
43899 conftest$ac_exeext conftest.$ac_ext
43901 if test "$want_ares" = "yes"; then
43903 $as_echo "#define USE_ARES 1" >>confdefs.h
43907 curl_res_msg="c-ares"
43911 if test x$embedded_ares = xyes; then
43912 USE_EMBEDDED_ARES_TRUE=
43913 USE_EMBEDDED_ARES_FALSE='#'
43915 USE_EMBEDDED_ARES_TRUE='#'
43916 USE_EMBEDDED_ARES_FALSE=
43920 if test "x$curl_cv_native_windows" != "xyes" &&
43921 test "x$enable_shared" = "xyes"; then
43922 build_libhostname=yes
43924 build_libhostname=no
43926 if test x$build_libhostname = xyes; then
43927 BUILD_LIBHOSTNAME_TRUE=
43928 BUILD_LIBHOSTNAME_FALSE='#'
43930 BUILD_LIBHOSTNAME_TRUE='#'
43931 BUILD_LIBHOSTNAME_FALSE=
43935 if test "x$want_ares" != xyes; then
43937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
43938 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
43939 OPT_THRES="default"
43940 # Check whether --enable-threaded_resolver was given.
43941 if test "${enable_threaded_resolver+set}" = set; then :
43942 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
43945 case "$OPT_THRES" in
43953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
43954 $as_echo "$want_thres" >&6; }
43958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
43959 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
43960 # Check whether --enable-pthreads was given.
43961 if test "${enable_pthreads+set}" = set; then :
43962 enableval=$enable_pthreads; case "$enableval" in
43963 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
43964 $as_echo "no" >&6; }
43967 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43968 $as_echo "yes" >&6; }
43974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
43975 $as_echo "auto" >&6; }
43982 if test "$want_pthreads" != "no"; then
43983 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
43984 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
43986 if test "$dontwant_rt" != "no"; then
43987 if test "$want_pthreads" = "yes"; then
43988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
43989 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
43995 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
43999 if test "$want_pthreads" != "no"; then
44000 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44001 if test "x$ac_cv_header_pthread_h" = xyes; then :
44003 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
44005 save_CFLAGS="$CFLAGS"
44009 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44010 if test "x$ac_cv_func_pthread_create" = xyes; then :
44011 USE_THREADS_POSIX=1
44018 USE_THREADS_POSIX=""
44024 if test "$USE_THREADS_POSIX" != "1"
44026 CFLAGS="$CFLAGS -pthread"
44027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44028 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
44029 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
44030 $as_echo_n "(cached) " >&6
44032 ac_check_lib_save_LIBS=$LIBS
44033 LIBS="-lpthread $LIBS"
44034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44035 /* end confdefs.h. */
44041 char pthread_create ();
44044 return pthread_create ();
44049 if ac_fn_c_try_link "$LINENO"; then :
44050 ac_cv_lib_pthread_pthread_create=yes
44052 ac_cv_lib_pthread_pthread_create=no
44054 rm -f core conftest.err conftest.$ac_objext \
44055 conftest$ac_exeext conftest.$ac_ext
44056 LIBS=$ac_check_lib_save_LIBS
44058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44059 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
44060 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
44061 USE_THREADS_POSIX=1
44063 CFLAGS="$save_CFLAGS"
44068 if test "x$USE_THREADS_POSIX" = "x1"
44071 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
44073 curl_res_msg="POSIX threaded"
44081 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44082 if test "$want_pthreads" = "yes"; then
44083 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44085 if test "$curl_cv_native_windows" = "yes"; then
44086 USE_THREADS_WIN32=1
44088 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
44090 curl_res_msg="Win32 threaded"
44092 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44098 $as_echo_n "checking convert -I options to -isystem... " >&6; }
44099 if test "$compiler_id" = "GNU_C" ||
44100 test "$compiler_id" = "CLANG"; then
44101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44102 $as_echo "yes" >&6; }
44103 tmp_has_include="no"
44104 tmp_chg_FLAGS="$CFLAGS"
44105 for word1 in $tmp_chg_FLAGS; do
44108 tmp_has_include="yes"
44112 if test "$tmp_has_include" = "yes"; then
44113 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44114 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44115 CFLAGS="$tmp_chg_FLAGS"
44118 tmp_has_include="no"
44119 tmp_chg_FLAGS="$CPPFLAGS"
44120 for word1 in $tmp_chg_FLAGS; do
44123 tmp_has_include="yes"
44127 if test "$tmp_has_include" = "yes"; then
44128 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44129 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44130 CPPFLAGS="$tmp_chg_FLAGS"
44134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44135 $as_echo "no" >&6; }
44139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44140 $as_echo_n "checking whether to enable verbose strings... " >&6; }
44141 # Check whether --enable-verbose was given.
44142 if test "${enable_verbose+set}" = set; then :
44143 enableval=$enable_verbose; case "$enableval" in
44145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44146 $as_echo "no" >&6; }
44148 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44150 curl_verbose_msg="no"
44152 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44153 $as_echo "yes" >&6; }
44157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44158 $as_echo "yes" >&6; }
44163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44164 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44165 # Check whether --enable-sspi was given.
44166 if test "${enable_sspi+set}" = set; then :
44167 enableval=$enable_sspi; case "$enableval" in
44169 if test "$curl_cv_native_windows" = "yes"; then
44170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44171 $as_echo "yes" >&6; }
44173 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44177 curl_sspi_msg="enabled"
44179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44180 $as_echo "no" >&6; }
44181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44182 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44186 if test "x$SCHANNEL_ENABLED" = "x1"; then
44187 # --with-schannel implies --enable-sspi
44188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44189 $as_echo "yes" >&6; }
44191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44192 $as_echo "no" >&6; }
44197 if test "x$SCHANNEL_ENABLED" = "x1"; then
44198 # --with-schannel implies --enable-sspi
44199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44200 $as_echo "yes" >&6; }
44202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44203 $as_echo "no" >&6; }
44209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
44210 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
44211 # Check whether --enable-crypto-auth was given.
44212 if test "${enable_crypto_auth+set}" = set; then :
44213 enableval=$enable_crypto_auth; case "$enableval" in
44215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44216 $as_echo "no" >&6; }
44218 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
44220 CURL_DISABLE_CRYPTO_AUTH=1
44222 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44223 $as_echo "yes" >&6; }
44227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44228 $as_echo "yes" >&6; }
44234 OPT_NTLM_WB="default"
44235 # Check whether --enable-ntlm-wb was given.
44236 if test "${enable_ntlm_wb+set}" = set; then :
44237 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44240 want_ntlm_wb_file="/usr/bin/ntlm_auth"
44241 case "$OPT_NTLM_WB" in
44250 if test -n "$enableval" && test "$enableval" != "yes"; then
44251 want_ntlm_wb_file="$enableval"
44258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44259 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44260 if test "$curl_cv_native_windows" = "yes" ||
44261 test "x$SSL_ENABLED" = "x"; then
44262 want_ntlm_wb_file=""
44265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44266 $as_echo "$want_ntlm_wb" >&6; }
44267 if test "$want_ntlm_wb" = "yes"; then
44269 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
44272 cat >>confdefs.h <<_ACEOF
44273 #define NTLM_WB_FILE "$want_ntlm_wb_file"
44280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44281 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
44282 # Check whether --enable-tls-srp was given.
44283 if test "${enable_tls_srp+set}" = set; then :
44284 enableval=$enable_tls_srp; case "$enableval" in
44286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44287 $as_echo "no" >&6; }
44290 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44291 $as_echo "yes" >&6; }
44296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44297 $as_echo "yes" >&6; }
44303 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44305 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
44308 curl_tls_srp_msg="enabled"
44311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44312 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
44313 # Check whether --enable-unix-sockets was given.
44314 if test "${enable_unix_sockets+set}" = set; then :
44315 enableval=$enable_unix_sockets; case "$enableval" in
44316 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44317 $as_echo "no" >&6; }
44318 want_unix_sockets=no
44320 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44321 $as_echo "yes" >&6; }
44322 want_unix_sockets=yes
44327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44328 $as_echo "auto" >&6; }
44329 want_unix_sockets=auto
44334 if test "x$want_unix_sockets" != "xno"; then
44335 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44336 #include <sys/un.h>
44339 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
44342 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44346 curl_unix_sockets_msg="enabled"
44350 if test "x$want_unix_sockets" = "xyes"; then
44351 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44359 $as_echo_n "checking whether to support cookies... " >&6; }
44360 # Check whether --enable-cookies was given.
44361 if test "${enable_cookies+set}" = set; then :
44362 enableval=$enable_cookies; case "$enableval" in
44364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44365 $as_echo "no" >&6; }
44367 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44370 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44371 $as_echo "yes" >&6; }
44375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44376 $as_echo "yes" >&6; }
44381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44382 $as_echo_n "checking whether to support socketpair... " >&6; }
44383 # Check whether --enable-socketpair was given.
44384 if test "${enable_socketpair+set}" = set; then :
44385 enableval=$enable_socketpair; case "$enableval" in
44387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44388 $as_echo "no" >&6; }
44390 $as_echo "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44393 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44394 $as_echo "yes" >&6; }
44398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44399 $as_echo "yes" >&6; }
44404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44405 $as_echo_n "checking whether to support HTTP authentication... " >&6; }
44406 # Check whether --enable-http-auth was given.
44407 if test "${enable_http_auth+set}" = set; then :
44408 enableval=$enable_http_auth; case "$enableval" in
44410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44411 $as_echo "no" >&6; }
44413 $as_echo "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44416 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44417 $as_echo "yes" >&6; }
44421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44422 $as_echo "yes" >&6; }
44427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44428 $as_echo_n "checking whether to support DoH... " >&6; }
44429 # Check whether --enable-doh was given.
44430 if test "${enable_doh+set}" = set; then :
44431 enableval=$enable_doh; case "$enableval" in
44433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44434 $as_echo "no" >&6; }
44436 $as_echo "#define CURL_DISABLE_DOH 1" >>confdefs.h
44439 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44440 $as_echo "yes" >&6; }
44444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44445 $as_echo "yes" >&6; }
44450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44451 $as_echo_n "checking whether to support the MIME API... " >&6; }
44452 # Check whether --enable-mime was given.
44453 if test "${enable_mime+set}" = set; then :
44454 enableval=$enable_mime; case "$enableval" in
44456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44457 $as_echo "no" >&6; }
44459 $as_echo "#define CURL_DISABLE_MIME 1" >>confdefs.h
44462 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44463 $as_echo "yes" >&6; }
44467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44468 $as_echo "yes" >&6; }
44473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44474 $as_echo_n "checking whether to support date parsing... " >&6; }
44475 # Check whether --enable-dateparse was given.
44476 if test "${enable_dateparse+set}" = set; then :
44477 enableval=$enable_dateparse; case "$enableval" in
44479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44480 $as_echo "no" >&6; }
44482 $as_echo "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44485 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44486 $as_echo "yes" >&6; }
44490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44491 $as_echo "yes" >&6; }
44496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
44497 $as_echo_n "checking whether to support netrc parsing... " >&6; }
44498 # Check whether --enable-netrc was given.
44499 if test "${enable_netrc+set}" = set; then :
44500 enableval=$enable_netrc; case "$enableval" in
44502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44503 $as_echo "no" >&6; }
44505 $as_echo "#define CURL_DISABLE_NETRC 1" >>confdefs.h
44508 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44509 $as_echo "yes" >&6; }
44513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44514 $as_echo "yes" >&6; }
44519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
44520 $as_echo_n "checking whether to support progress-meter... " >&6; }
44521 # Check whether --enable-progress-meter was given.
44522 if test "${enable_progress_meter+set}" = set; then :
44523 enableval=$enable_progress_meter; case "$enableval" in
44525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44526 $as_echo "no" >&6; }
44528 $as_echo "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
44531 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44532 $as_echo "yes" >&6; }
44536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44537 $as_echo "yes" >&6; }
44542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
44543 $as_echo_n "checking whether to support DNS shuffling... " >&6; }
44544 # Check whether --enable-dnsshuffle was given.
44545 if test "${enable_dnsshuffle+set}" = set; then :
44546 enableval=$enable_dnsshuffle; case "$enableval" in
44548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44549 $as_echo "no" >&6; }
44551 $as_echo "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
44554 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44555 $as_echo "yes" >&6; }
44559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44560 $as_echo "yes" >&6; }
44565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
44566 $as_echo_n "checking whether to support curl_easy_option*... " >&6; }
44567 # Check whether --enable-get-easy-option was given.
44568 if test "${enable_get_easy_option+set}" = set; then :
44569 enableval=$enable_get_easy_option; case "$enableval" in
44571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44572 $as_echo "no" >&6; }
44574 $as_echo "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
44577 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44578 $as_echo "yes" >&6; }
44582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44583 $as_echo "yes" >&6; }
44588 curl_altsvc_msg="no (--enable-alt-svc)";
44589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
44590 $as_echo_n "checking whether to support alt-svc... " >&6; }
44591 # Check whether --enable-alt-svc was given.
44592 if test "${enable_alt_svc+set}" = set; then :
44593 enableval=$enable_alt_svc; case "$enableval" in
44595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44596 $as_echo "no" >&6; }
44598 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44599 $as_echo "yes" >&6; }
44600 curl_altsvc_msg="enabled";
44601 enable_altsvc="yes"
44605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44606 $as_echo "no" >&6; }
44611 if test "$enable_altsvc" = "yes"; then
44613 $as_echo "#define USE_ALTSVC 1" >>confdefs.h
44615 experimental="$experimental alt-svc"
44618 if test "x$want_ech" != "xno"; then
44619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
44620 $as_echo_n "checking whether ECH support is available... " >&6; }
44625 if test "x$OPENSSL_ENABLED" = "x1"; then
44626 for ac_func in SSL_get_ech_status
44628 ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
44629 if test "x$ac_cv_func_SSL_get_ech_status" = xyes; then :
44630 cat >>confdefs.h <<_ACEOF
44631 #define HAVE_SSL_GET_ECH_STATUS 1
44633 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
44641 if test "x$ECH_ENABLED" = "x1"; then
44643 $as_echo "#define USE_ECH 1" >>confdefs.h
44645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
44646 $as_echo "$ECH_SUPPORT" >&6; }
44647 experimental="$experimental ECH"
44649 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
44654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
44655 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
44656 CFLAG_CURL_SYMBOL_HIDING=""
44657 doing_symbol_hiding="no"
44658 if test x"$curl_cv_native_windows" != "xyes" &&
44659 test "$want_symbol_hiding" = "yes" &&
44660 test "$supports_symbol_hiding" = "yes"; then
44661 doing_symbol_hiding="yes"
44662 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
44664 cat >>confdefs.h <<_ACEOF
44665 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
44668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44669 $as_echo "yes" >&6; }
44671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
44672 $as_echo "no" >&6; }
44674 if test x$doing_symbol_hiding = xyes; then
44675 DOING_CURL_SYMBOL_HIDING_TRUE=
44676 DOING_CURL_SYMBOL_HIDING_FALSE='#'
44678 DOING_CURL_SYMBOL_HIDING_TRUE='#'
44679 DOING_CURL_SYMBOL_HIDING_FALSE=
44694 if test x$cross_compiling = xyes; then
44695 CROSSCOMPILING_TRUE=
44696 CROSSCOMPILING_FALSE='#'
44698 CROSSCOMPILING_TRUE='#'
44699 CROSSCOMPILING_FALSE=
44703 ENABLE_SHARED="$enable_shared"
44706 ENABLE_STATIC="$enable_static"
44709 if test "x$enable_shared" = "xno"; then
44710 LIBCURL_NO_SHARED=$LIBCURL_LIBS
44717 if test "x$OPENSSL_ENABLED" = "x1"; then
44718 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44719 elif test -n "$SSL_ENABLED"; then
44720 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44722 if test "x$IPV6_ENABLED" = "x1"; then
44723 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
44725 if test "x$USE_UNIX_SOCKETS" = "x1"; then
44726 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
44728 if test "x$HAVE_LIBZ" = "x1"; then
44729 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
44731 if test "x$HAVE_BROTLI" = "x1"; then
44732 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
44734 if test "x$HAVE_ZSTD" = "x1"; then
44735 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
44737 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
44738 -o "x$USE_THREADS_WIN32" = "x1"; then
44739 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
44741 if test "x$IDN_ENABLED" = "x1"; then
44742 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
44744 if test "x$USE_WINDOWS_SSPI" = "x1"; then
44745 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
44748 if test "x$HAVE_GSSAPI" = "x1"; then
44749 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
44752 if test "x$curl_psl_msg" = "xenabled"; then
44753 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
44756 if test "x$enable_altsvc" = "xyes"; then
44757 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
44760 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44761 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44762 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
44765 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44766 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44767 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
44770 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
44771 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
44772 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
44773 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \
44774 -o "x$WOLFSSL_NTLM" = "x1"; then
44775 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
44777 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
44778 "x$NTLM_WB_ENABLED" = "x1"; then
44779 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
44784 if test "x$USE_TLS_SRP" = "x1"; then
44785 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
44788 if test "x$USE_NGHTTP2" = "x1"; then
44789 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
44792 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
44793 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
44796 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
44797 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
44800 if test "x$https_proxy" != "xno"; then
44801 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
44802 -o "x$NSS_ENABLED" = "x1"; then
44803 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
44807 if test "x$ECH_ENABLED" = "x1"; then
44808 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
44811 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
44814 if test "x$CURL_DISABLE_HTTP" != "x1"; then
44815 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
44816 if test "x$SSL_ENABLED" = "x1"; then
44817 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
44820 if test "x$CURL_DISABLE_FTP" != "x1"; then
44821 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
44822 if test "x$SSL_ENABLED" = "x1"; then
44823 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
44826 if test "x$CURL_DISABLE_FILE" != "x1"; then
44827 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
44829 if test "x$CURL_DISABLE_TELNET" != "x1"; then
44830 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
44832 if test "x$CURL_DISABLE_LDAP" != "x1"; then
44833 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
44834 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
44835 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
44836 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
44837 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
44841 if test "x$CURL_DISABLE_DICT" != "x1"; then
44842 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
44844 if test "x$CURL_DISABLE_TFTP" != "x1"; then
44845 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
44847 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
44848 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
44850 if test "x$CURL_DISABLE_MQTT" != "x1"; then
44851 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
44853 if test "x$CURL_DISABLE_POP3" != "x1"; then
44854 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
44855 if test "x$SSL_ENABLED" = "x1"; then
44856 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
44859 if test "x$CURL_DISABLE_IMAP" != "x1"; then
44860 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
44861 if test "x$SSL_ENABLED" = "x1"; then
44862 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
44865 if test "x$CURL_DISABLE_SMB" != "x1" \
44866 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
44867 -a \( "x$OPENSSL_ENABLED" = "x1" \
44868 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
44869 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \
44870 -o "x$WOLFSSL_NTLM" = "x1" \); then
44871 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
44872 if test "x$SSL_ENABLED" = "x1"; then
44873 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
44876 if test "x$CURL_DISABLE_SMTP" != "x1"; then
44877 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
44878 if test "x$SSL_ENABLED" = "x1"; then
44879 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
44882 if test "x$USE_LIBSSH2" = "x1"; then
44883 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
44884 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
44886 if test "x$USE_LIBSSH" = "x1"; then
44887 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
44888 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
44890 if test "x$USE_WOLFSSH" = "x1"; then
44891 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
44893 if test "x$CURL_DISABLE_RTSP" != "x1"; then
44894 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
44896 if test "x$USE_LIBRTMP" = "x1"; then
44897 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
44900 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
44911 squeeze LIBCURL_LIBS
44912 squeeze CURL_NETWORK_LIBS
44913 squeeze CURL_NETWORK_AND_TIME_LIBS
44915 squeeze SUPPORT_FEATURES
44916 squeeze SUPPORT_PROTOCOLS
44921 for xc_word in $LIBS; do
44927 xc_bad_var_libs=yes
44931 if test $xc_bad_var_libs = yes; then
44932 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
44933 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
44934 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
44935 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
44939 xc_bad_var_ldflags=no
44940 for xc_word in $LDFLAGS; do
44943 xc_bad_var_ldflags=yes
44946 xc_bad_var_ldflags=yes
44949 xc_bad_var_ldflags=yes
44952 xc_bad_var_ldflags=yes
44956 if test $xc_bad_var_ldflags = yes; then
44957 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
44958 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
44959 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
44960 for xc_word in $LDFLAGS; do
44963 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
44964 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
44967 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
44968 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
44971 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
44972 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
44975 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
44976 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
44983 xc_bad_var_cppflags=no
44984 for xc_word in $CPPFLAGS; do
44987 xc_bad_var_cppflags=yes
44989 -L* | --library-path=*)
44990 xc_bad_var_cppflags=yes
44993 xc_bad_var_cppflags=yes
44997 if test $xc_bad_var_cppflags = yes; then
44998 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
44999 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45000 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45001 for xc_word in $CPPFLAGS; do
45004 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45005 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45007 -L* | --library-path=*)
45008 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45009 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45012 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45013 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45020 xc_bad_var_cflags=no
45021 for xc_word in $CFLAGS; do
45024 xc_bad_var_cflags=yes
45027 xc_bad_var_cflags=yes
45030 xc_bad_var_cflags=yes
45033 xc_bad_var_cflags=yes
45035 -L* | --library-path=*)
45036 xc_bad_var_cflags=yes
45039 xc_bad_var_cflags=yes
45043 if test $xc_bad_var_cflags = yes; then
45044 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45045 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
45046 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45047 for xc_word in $CFLAGS; do
45050 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45051 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45054 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45055 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45058 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45059 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45062 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45063 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45065 -L* | --library-path=*)
45066 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45067 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45070 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45071 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45077 if test $xc_bad_var_libs = yes ||
45078 test $xc_bad_var_cflags = yes ||
45079 test $xc_bad_var_ldflags = yes ||
45080 test $xc_bad_var_cppflags = yes; then
45081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45082 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45086 SSL_BACKENDS=${ssl_backends}
45089 if test "x$want_curldebug_assumed" = "xyes" &&
45090 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45091 ac_configure_args="$ac_configure_args --enable-curldebug"
45094 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"
45096 cat >confcache <<\_ACEOF
45097 # This file is a shell script that caches the results of configure
45098 # tests run on this system so they can be shared between configure
45099 # scripts and configure runs, see configure's option --config-cache.
45100 # It is not useful on other systems. If it contains results you don't
45101 # want to keep, you may remove or edit it.
45103 # config.status only pays attention to the cache file if you give it
45104 # the --recheck option to rerun configure.
45106 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45107 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45108 # following values.
45112 # The following way of writing the cache mishandles newlines in values,
45113 # but we know of no workaround that is simple, portable, and efficient.
45114 # So, we kill variables containing newlines.
45115 # Ultrix sh set writes to stderr and can't be redirected directly,
45116 # and sets the high bit in the cache file unless we assign to the vars.
45118 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45119 eval ac_val=\$$ac_var
45123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45127 _ | IFS | as_nl) ;; #(
45128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45129 *) { eval $ac_var=; unset $ac_var;} ;;
45135 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45136 *${as_nl}ac_space=\ *)
45137 # `set' does not quote correctly, so add quotes: double-quote
45138 # substitution turns \\\\ into \\, and sed turns \\ into \.
45141 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45144 # `set' quotes correctly as required by POSIX, so do not add quotes.
45145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45154 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
45156 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45158 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45159 if test -w "$cache_file"; then
45160 if test "x$cache_file" != "x/dev/null"; then
45161 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45162 $as_echo "$as_me: updating cache $cache_file" >&6;}
45163 if test ! -f "$cache_file" || test -h "$cache_file"; then
45164 cat confcache >"$cache_file"
45166 case $cache_file in #(
45168 mv -f confcache "$cache_file"$$ &&
45169 mv -f "$cache_file"$$ "$cache_file" ;; #(
45171 mv -f confcache "$cache_file" ;;
45176 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45177 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
45182 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45183 # Let make expand exec_prefix.
45184 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45186 DEFS=-DHAVE_CONFIG_H
45191 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45192 # 1. Remove the extension, and $U if already installed.
45193 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45194 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
45195 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45196 # will be set to the directory where LIBOBJS objects are built.
45197 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45198 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45200 LIBOBJS=$ac_libobjs
45202 LTLIBOBJS=$ac_ltlibobjs
45205 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45206 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45210 $as_echo_n "checking that generated files are newer than configure... " >&6; }
45211 if test -n "$am_sleep_pid"; then
45212 # Hide warnings about reused PIDs.
45213 wait $am_sleep_pid 2>/dev/null
45215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
45216 $as_echo "done" >&6; }
45217 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45218 as_fn_error $? "conditional \"AMDEP\" was never defined.
45219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45221 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45222 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45225 if test -n "$EXEEXT"; then
45227 am__EXEEXT_FALSE='#'
45229 am__EXEEXT_TRUE='#'
45233 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45234 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45235 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45237 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45238 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45239 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45241 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45242 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45245 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45246 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45247 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45249 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45250 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45253 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45254 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45257 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45258 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45261 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45262 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45265 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45266 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45269 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45270 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45273 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45274 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45277 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45278 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45281 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45282 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45285 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
45286 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
45287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45289 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45290 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45293 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45294 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45297 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45298 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45302 : "${CONFIG_STATUS=./config.status}"
45304 ac_clean_files_save=$ac_clean_files
45305 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45307 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
45309 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45311 # Generated by $as_me.
45312 # Run this file to recreate the current configuration.
45313 # Compiler output produced by configure, useful for debugging
45314 # configure, is in config.log if it exists.
45317 ac_cs_recheck=false
45320 SHELL=\${CONFIG_SHELL-$SHELL}
45323 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45324 ## -------------------- ##
45325 ## M4sh Initialization. ##
45326 ## -------------------- ##
45328 # Be more Bourne compatible
45329 DUALCASE=1; export DUALCASE # for MKS sh
45330 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
45333 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45334 # is contrary to our usage. Disable this feature.
45335 alias -g '${1+"$@"}'='"$@"'
45336 setopt NO_GLOB_SUBST
45338 case `(set -o) 2>/dev/null` in #(
45350 # Printing a long string crashes Solaris 7 /usr/bin/printf.
45351 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
45352 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
45353 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45354 # Prefer a ksh shell builtin over an external printf program on Solaris,
45355 # but without wasting forks for bash or zsh.
45356 if test -z "$BASH_VERSION$ZSH_VERSION" \
45357 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45358 as_echo='print -r --'
45359 as_echo_n='print -rn --'
45360 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
45361 as_echo='printf %s\n'
45362 as_echo_n='printf %s'
45364 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
45365 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
45366 as_echo_n='/usr/ucb/echo -n'
45368 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
45369 as_echo_n_body='eval
45373 expr "X$arg" : "X\\(.*\\)$as_nl";
45374 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
45376 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
45378 export as_echo_n_body
45379 as_echo_n='sh -c $as_echo_n_body as_echo'
45381 export as_echo_body
45382 as_echo='sh -c $as_echo_body as_echo'
45388 # We need space, tab and new line, in precisely that order. Quoting is
45389 # there to prevent editors from complaining about space-tab.
45390 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
45391 # splitting by setting IFS to empty value.)
45394 # Find who we are. Look in the path if we contain no directory separator.
45397 *[\\/]* ) as_myself=$0 ;;
45398 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45399 for as_dir in $PATH
45402 test -z "$as_dir" && as_dir=.
45403 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
45409 # We did not find ourselves, most probably we were run as `sh COMMAND'
45410 # in which case we are not to be found in the path.
45411 if test "x$as_myself" = x; then
45414 if test ! -f "$as_myself"; then
45415 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45419 # Unset variables that we do not need and which cause bugs (e.g. in
45420 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
45421 # suppresses any "Segmentation fault" message there. '((' could
45422 # trigger a bug in pdksh 5.2.14.
45423 for as_var in BASH_ENV ENV MAIL MAILPATH
45424 do eval test x\${$as_var+set} = xset \
45425 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45438 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45441 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45442 # ----------------------------------------
45443 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45444 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45445 # script with STATUS, using 1 if that was 0.
45448 as_status=$1; test $as_status -eq 0 && as_status=1
45450 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45451 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45453 $as_echo "$as_me: error: $2" >&2
45454 as_fn_exit $as_status
45458 # as_fn_set_status STATUS
45459 # -----------------------
45460 # Set $? to STATUS, without forking.
45461 as_fn_set_status ()
45464 } # as_fn_set_status
45466 # as_fn_exit STATUS
45467 # -----------------
45468 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45472 as_fn_set_status $1
45478 # Portably unset VAR.
45481 { eval $1=; unset $1;}
45483 as_unset=as_fn_unset
45484 # as_fn_append VAR VALUE
45485 # ----------------------
45486 # Append the text in VALUE to the end of the definition contained in VAR. Take
45487 # advantage of any shell optimizations that allow amortized linear growth over
45488 # repeated appends, instead of the typical quadratic growth present in naive
45490 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
45491 eval 'as_fn_append ()
45502 # as_fn_arith ARG...
45503 # ------------------
45504 # Perform arithmetic evaluation on the ARGs, and store the result in the
45505 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45506 # must be portable across $(()) and expr.
45507 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
45508 eval 'as_fn_arith ()
45515 as_val=`expr "$@" || test $? -eq 1`
45520 if expr a : '\(a\)' >/dev/null 2>&1 &&
45521 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45527 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45528 as_basename=basename
45533 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45539 as_me=`$as_basename -- "$0" ||
45540 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45541 X"$0" : 'X\(//\)$' \| \
45542 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45544 sed '/^.*\/\([^/][^/]*\)\/*$/{
45558 # Avoid depending upon Character Ranges.
45559 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45560 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45561 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45562 as_cr_digits='0123456789'
45563 as_cr_alnum=$as_cr_Letters$as_cr_digits
45565 ECHO_C= ECHO_N= ECHO_T=
45566 case `echo -n x` in #(((((
45568 case `echo 'xy\c'` in
45569 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45571 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
45578 rm -f conf$$ conf$$.exe conf$$.file
45579 if test -d conf$$.dir; then
45580 rm -f conf$$.dir/conf$$.file
45583 mkdir conf$$.dir 2>/dev/null
45585 if (echo >conf$$.file) 2>/dev/null; then
45586 if ln -s conf$$.file conf$$ 2>/dev/null; then
45588 # ... but there are two gotchas:
45589 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45590 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45591 # In both cases, we have to default to `cp -pR'.
45592 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45594 elif ln conf$$.file conf$$ 2>/dev/null; then
45602 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45603 rmdir conf$$.dir 2>/dev/null
45608 # Create "$as_dir" as a directory, including parents if necessary.
45613 -*) as_dir=./$as_dir;;
45615 test -d "$as_dir" || eval $as_mkdir_p || {
45619 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45620 *) as_qdir=$as_dir;;
45622 as_dirs="'$as_qdir' $as_dirs"
45623 as_dir=`$as_dirname -- "$as_dir" ||
45624 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45625 X"$as_dir" : 'X\(//\)[^/]' \| \
45626 X"$as_dir" : 'X\(//\)$' \| \
45627 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45628 $as_echo X"$as_dir" |
45629 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45633 /^X\(\/\/\)[^/].*/{
45646 test -d "$as_dir" && break
45648 test -z "$as_dirs" || eval "mkdir $as_dirs"
45649 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45653 if mkdir -p . 2>/dev/null; then
45654 as_mkdir_p='mkdir -p "$as_dir"'
45656 test -d ./-p && rmdir ./-p
45661 # as_fn_executable_p FILE
45662 # -----------------------
45663 # Test if FILE is an executable regular file.
45664 as_fn_executable_p ()
45666 test -f "$1" && test -x "$1"
45667 } # as_fn_executable_p
45668 as_test_x='test -x'
45669 as_executable_p=as_fn_executable_p
45671 # Sed expression to map a string onto a valid CPP name.
45672 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45674 # Sed expression to map a string onto a valid variable name.
45675 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45679 ## ----------------------------------- ##
45680 ## Main body of $CONFIG_STATUS script. ##
45681 ## ----------------------------------- ##
45683 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45685 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45686 # Save the log message, to keep $0 and so on meaningful, and to
45687 # report actual input values of CONFIG_FILES etc. instead of their
45688 # values after options handling.
45690 This file was extended by curl $as_me -, which was
45691 generated by GNU Autoconf 2.69. Invocation command line was
45693 CONFIG_FILES = $CONFIG_FILES
45694 CONFIG_HEADERS = $CONFIG_HEADERS
45695 CONFIG_LINKS = $CONFIG_LINKS
45696 CONFIG_COMMANDS = $CONFIG_COMMANDS
45699 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45704 case $ac_config_files in *"
45705 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45708 case $ac_config_headers in *"
45709 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45713 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45714 # Files that config.status was made for.
45715 config_files="$ac_config_files"
45716 config_headers="$ac_config_headers"
45717 config_commands="$ac_config_commands"
45721 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45723 \`$as_me' instantiates files and other configuration actions
45724 from templates according to the current configuration. Unless the files
45725 and actions are specified as TAGs, all are instantiated by default.
45727 Usage: $0 [OPTION]... [TAG]...
45729 -h, --help print this help, then exit
45730 -V, --version print version number and configuration settings, then exit
45731 --config print configuration, then exit
45732 -q, --quiet, --silent
45733 do not print progress messages
45734 -d, --debug don't remove temporary files
45735 --recheck update $as_me by reconfiguring in the same conditions
45736 --file=FILE[:TEMPLATE]
45737 instantiate the configuration file FILE
45738 --header=FILE[:TEMPLATE]
45739 instantiate the configuration header FILE
45741 Configuration files:
45744 Configuration headers:
45747 Configuration commands:
45750 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
45753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45754 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
45756 curl config.status -
45757 configured by $0, generated by GNU Autoconf 2.69,
45758 with options \\"\$ac_cs_config\\"
45760 Copyright (C) 2012 Free Software Foundation, Inc.
45761 This config.status script is free software; the Free Software Foundation
45762 gives unlimited permission to copy, distribute and modify it."
45769 test -n "\$AWK" || AWK=awk
45772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45773 # The default lists apply if the user does not specify any file.
45779 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45780 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
45784 ac_option=`expr "X$1" : 'X\([^=]*\)='`
45796 # Handling of the options.
45797 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
45799 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
45800 $as_echo "$ac_cs_version"; exit ;;
45801 --config | --confi | --conf | --con | --co | --c )
45802 $as_echo "$ac_cs_config"; exit ;;
45803 --debug | --debu | --deb | --de | --d | -d )
45805 --file | --fil | --fi | --f )
45808 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45809 '') as_fn_error $? "missing file argument" ;;
45811 as_fn_append CONFIG_FILES " '$ac_optarg'"
45812 ac_need_defaults=false;;
45813 --header | --heade | --head | --hea )
45816 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
45818 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
45819 ac_need_defaults=false;;
45821 # Conflict between --help and --header
45822 as_fn_error $? "ambiguous option: \`$1'
45823 Try \`$0 --help' for more information.";;
45824 --help | --hel | -h )
45825 $as_echo "$ac_cs_usage"; exit ;;
45826 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
45827 | -silent | --silent | --silen | --sile | --sil | --si | --s)
45830 # This is an error.
45831 -*) as_fn_error $? "unrecognized option: \`$1'
45832 Try \`$0 --help' for more information." ;;
45834 *) as_fn_append ac_config_targets " $1"
45835 ac_need_defaults=false ;;
45841 ac_configure_extra_args=
45843 if $ac_cs_silent; then
45845 ac_configure_extra_args="$ac_configure_extra_args --silent"
45849 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45850 if \$ac_cs_recheck; then
45851 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
45853 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
45854 CONFIG_SHELL='$SHELL'
45855 export CONFIG_SHELL
45860 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45864 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
45865 ## Running $as_me. ##
45871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45875 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
45878 # The HP-UX ksh and POSIX shell print the target directory to stdout
45879 # if CDPATH is set.
45880 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
45882 sed_quote_subst='$sed_quote_subst'
45883 double_quote_subst='$double_quote_subst'
45884 delay_variable_subst='$delay_variable_subst'
45885 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
45886 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
45887 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
45888 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
45889 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
45890 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
45891 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
45892 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
45893 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
45894 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
45895 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
45896 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
45897 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
45898 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
45899 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
45900 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
45901 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
45902 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
45903 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
45904 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
45905 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
45906 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
45907 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
45908 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
45909 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
45910 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
45911 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
45912 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
45913 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
45914 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
45915 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
45916 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
45917 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
45918 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
45919 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
45920 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
45921 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
45922 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
45923 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
45924 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
45925 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
45926 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
45927 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
45928 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
45929 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
45930 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
45931 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
45932 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
45933 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
45934 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
45935 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
45936 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
45937 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
45938 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
45939 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
45940 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
45941 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
45942 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
45943 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
45944 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"`'
45945 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
45946 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
45947 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
45948 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
45949 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
45950 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
45951 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
45952 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
45953 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
45954 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
45955 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
45956 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
45957 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
45958 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
45959 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
45960 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
45961 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
45962 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
45963 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
45964 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
45965 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45966 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
45967 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
45968 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
45969 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
45970 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
45971 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
45972 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
45973 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
45974 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45975 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
45976 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
45977 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
45978 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
45979 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
45980 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
45981 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
45982 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
45983 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
45984 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
45985 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
45986 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
45987 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
45988 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
45989 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
45990 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
45991 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
45992 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
45993 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
45994 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
45995 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
45996 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
45997 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
45998 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
45999 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46000 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46001 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46002 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46003 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46004 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46005 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46006 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46007 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46008 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46009 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46010 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46011 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46012 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46013 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46014 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46015 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46016 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46017 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46018 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46019 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46020 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46023 LTCFLAGS='$LTCFLAGS'
46024 compiler='$compiler_DEFAULT'
46026 # A function that is used when there is no print builtin or printf.
46027 func_fallback_echo ()
46029 eval 'cat <<_LTECHO_EOF
46034 # Quote evaled strings.
46051 deplibs_check_method \
46055 sharedlib_from_linklib_cmd \
46058 archiver_list_spec \
46064 lt_cv_sys_global_symbol_pipe \
46065 lt_cv_sys_global_symbol_to_cdecl \
46066 lt_cv_sys_global_symbol_to_import \
46067 lt_cv_sys_global_symbol_to_c_name_address \
46068 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46069 lt_cv_nm_interface \
46070 nm_file_list_spec \
46071 lt_cv_truncate_bin \
46072 lt_prog_compiler_no_builtin_flag \
46073 lt_prog_compiler_pic \
46074 lt_prog_compiler_wl \
46075 lt_prog_compiler_static \
46076 lt_cv_prog_compiler_c_o \
46085 export_dynamic_flag_spec \
46086 whole_archive_flag_spec \
46087 compiler_needs_object \
46089 allow_undefined_flag \
46090 no_undefined_flag \
46091 hardcode_libdir_flag_spec \
46092 hardcode_libdir_separator \
46096 variables_saved_for_relink \
46098 library_names_spec \
46100 install_override_mode \
46104 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46105 *[\\\\\\\`\\"\\\$]*)
46106 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46109 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46114 # Double-quote double-evaled strings.
46115 for var in reload_cmds \
46116 old_postinstall_cmds \
46117 old_postuninstall_cmds \
46119 extract_expsyms_cmds \
46120 old_archive_from_new_cmds \
46121 old_archive_from_expsyms_cmds \
46123 archive_expsym_cmds \
46125 module_expsym_cmds \
46126 export_symbols_cmds \
46130 postuninstall_cmds \
46132 sys_lib_search_path_spec \
46133 configure_time_dlsearch_path \
46134 configure_time_lt_sys_library_path; do
46135 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46136 *[\\\\\\\`\\"\\\$]*)
46137 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46140 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46145 ac_aux_dir='$ac_aux_dir'
46147 # See if we are running on zsh, and set the options that allow our
46148 # commands through without removal of \ escapes INIT.
46149 if test -n "\${ZSH_VERSION+set}"; then
46150 setopt NO_GLOB_SUBST
46164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46166 # Handling of arguments.
46167 for ac_config_target in $ac_config_targets
46169 case $ac_config_target in
46170 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46171 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46172 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46173 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46174 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46175 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46176 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46177 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46178 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46179 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46180 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46181 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46182 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46183 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46184 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46185 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46186 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46187 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46188 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46189 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46190 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46191 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46192 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46193 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46194 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46195 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46197 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46202 # If the user did not use the arguments to specify the items to instantiate,
46203 # then the envvar interface is used. Set only those that are not.
46204 # We use the long form for the default assignment because of an extremely
46205 # bizarre bug on SunOS 4.1.3.
46206 if $ac_need_defaults; then
46207 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
46208 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
46209 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
46212 # Have a temporary directory for convenience. Make it in the build tree
46213 # simply because there is no reason against having it here, and in addition,
46214 # creating and moving files from /tmp can sometimes cause problems.
46215 # Hook for its removal unless debugging.
46216 # Note that there is a small window in which the directory will not be cleaned:
46217 # after its creation but before its name has been assigned to `$tmp'.
46221 trap 'exit_status=$?
46222 : "${ac_tmp:=$tmp}"
46223 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46225 trap 'as_fn_exit 1' 1 2 13 15
46227 # Create a (secure) tmp directory for tmp files.
46230 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46234 tmp=./conf$$-$RANDOM
46235 (umask 077 && mkdir "$tmp")
46236 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46239 # Set up the scripts for CONFIG_FILES section.
46240 # No need to generate them if there are no CONFIG_FILES.
46241 # This happens for instance with `./config.status config.h'.
46242 if test -n "$CONFIG_FILES"; then
46245 ac_cr=`echo X | tr X '\015'`
46246 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46247 # But we know of no other shell where ac_cr would be empty at this
46248 # point, so we can use a bashism as a fallback.
46249 if test "x$ac_cr" = x; then
46250 eval ac_cr=\$\'\\r\'
46252 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46253 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46256 ac_cs_awk_cr=$ac_cr
46259 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46264 echo "cat >conf$$subs.awk <<_ACEOF" &&
46265 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46267 } >conf$$subs.sh ||
46268 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46269 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46271 for ac_last_try in false false false false false :; do
46272 . ./conf$$subs.sh ||
46273 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46275 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46276 if test $ac_delim_n = $ac_delim_num; then
46278 elif $ac_last_try; then
46279 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46281 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46284 rm -f conf$$subs.sh
46286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46287 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46291 s/^/S["/; s/!.*/"]=/
46301 s/\(.\{148\}\)..*/\1/
46303 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46308 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46315 s/\(.\{148\}\)..*/\1/
46317 s/["\\]/\\&/g; s/^/"/; s/$/"/
46321 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46326 ' <conf$$subs.awk | sed '
46331 ' >>$CONFIG_STATUS || ac_write_fail=1
46332 rm -f conf$$subs.awk
46333 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46335 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46336 for (key in S) S_is_set[key] = 1
46342 nfields = split(line, field, "@")
46344 len = length(field[1])
46345 for (i = 2; i < nfields; i++) {
46347 keylen = length(key)
46348 if (S_is_set[key]) {
46350 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46351 len += length(value) + length(field[++i])
46362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46363 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46364 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46367 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46368 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46371 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46372 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46373 # trailing colons and then remove the whole line if VPATH becomes empty
46374 # (actually we leave an empty line to preserve line numbers).
46375 if test "x$srcdir" = x.; then
46376 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
46394 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46395 fi # test -n "$CONFIG_FILES"
46397 # Set up the scripts for CONFIG_HEADERS section.
46398 # No need to generate them if there are no CONFIG_HEADERS.
46399 # This happens for instance with `./config.status Makefile'.
46400 if test -n "$CONFIG_HEADERS"; then
46401 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46405 # Transform confdefs.h into an awk script `defines.awk', embedded as
46406 # here-document in config.status, that substitutes the proper values into
46407 # config.h.in to produce config.h.
46409 # Create a delimiter string that does not exist in confdefs.h, to ease
46410 # handling of long lines.
46412 for ac_last_try in false false :; do
46413 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46414 if test -z "$ac_tt"; then
46416 elif $ac_last_try; then
46417 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46419 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46423 # For the awk script, D is an array of macro values keyed by name,
46424 # likewise P contains macro parameters if any. Preserve backslash
46425 # newline sequences.
46427 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46429 s/.\{148\}/&'"$ac_delim"'/g
46432 s/^[ ]*#[ ]*define[ ][ ]*/ /
46439 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46441 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
46445 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46446 D["\1"]=" \3\\\\\\n"\\/p
46448 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46453 s/.\{148\}/&'"$ac_delim"'/g
46458 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46461 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46463 ' <confdefs.h | sed '
46464 s/'"$ac_delim"'/"\\\
46465 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46467 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46468 for (key in D) D_is_set[key] = 1
46471 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46473 split(line, arg, " ")
46474 if (arg[1] == "#") {
46478 defundef = substr(arg[1], 2)
46481 split(mac1, mac2, "(") #)
46483 prefix = substr(line, 1, index(line, defundef) - 1)
46484 if (D_is_set[macro]) {
46485 # Preserve the white space surrounding the "#".
46486 print prefix "define", macro P[macro] D[macro]
46489 # Replace #undef with comments. This is necessary, for example,
46490 # in the case of _POSIX_SOURCE, which is predefined and required
46491 # on some systems where configure will not decide to define it.
46492 if (defundef == "undef") {
46493 print "/*", prefix defundef, macro, "*/"
46501 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46502 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46503 fi # test -n "$CONFIG_HEADERS"
46506 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
46511 :[FHLC]) ac_mode=$ac_tag; continue;;
46513 case $ac_mode$ac_tag in
46515 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46516 :[FH]-) ac_tag=-:-;;
46517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46534 -) ac_f="$ac_tmp/stdin";;
46535 *) # Look for the file first in the build tree, then in the source tree
46536 # (if the path is not absolute). The absolute path cannot be DOS-style,
46537 # because $ac_f cannot contain `:'.
46541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46546 as_fn_append ac_file_inputs " '$ac_f'"
46549 # Let's still pretend it is `configure' which instantiates (i.e., don't
46550 # use $as_me), people would be surprised to read:
46551 # /* config.h. Generated by config.status. */
46552 configure_input='Generated from '`
46553 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46555 if test x"$ac_file" != x-; then
46556 configure_input="$ac_file. $configure_input"
46557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46558 $as_echo "$as_me: creating $ac_file" >&6;}
46560 # Neutralize special characters interpreted by sed in replacement strings.
46561 case $configure_input in #(
46562 *\&* | *\|* | *\\* )
46563 ac_sed_conf_input=`$as_echo "$configure_input" |
46564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
46565 *) ac_sed_conf_input=$configure_input;;
46569 *:-:* | *:-) cat >"$ac_tmp/stdin" \
46570 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46575 ac_dir=`$as_dirname -- "$ac_file" ||
46576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46577 X"$ac_file" : 'X\(//\)[^/]' \| \
46578 X"$ac_file" : 'X\(//\)$' \| \
46579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46580 $as_echo X"$ac_file" |
46581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46585 /^X\(\/\/\)[^/].*/{
46598 as_dir="$ac_dir"; as_fn_mkdir_p
46602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
46605 # A ".." for each directory in $ac_dir_suffix.
46606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46607 case $ac_top_builddir_sub in
46608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46612 ac_abs_top_builddir=$ac_pwd
46613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46614 # for backward compatibility:
46615 ac_top_builddir=$ac_top_build_prefix
46618 .) # We are building in place.
46620 ac_top_srcdir=$ac_top_builddir_sub
46621 ac_abs_top_srcdir=$ac_pwd ;;
46622 [\\/]* | ?:[\\/]* ) # Absolute name.
46623 ac_srcdir=$srcdir$ac_dir_suffix;
46624 ac_top_srcdir=$srcdir
46625 ac_abs_top_srcdir=$srcdir ;;
46626 *) # Relative name.
46627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46628 ac_top_srcdir=$ac_top_build_prefix$srcdir
46629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
46644 ac_MKDIR_P=$MKDIR_P
46646 [\\/$]* | ?:[\\/]* ) ;;
46647 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
46651 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46652 # If the template does not know about datarootdir, expand it.
46653 # FIXME: This hack should be removed a few years after 2.60.
46654 ac_datarootdir_hack=; ac_datarootdir_seen=
46665 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
46666 *datarootdir*) ac_datarootdir_seen=yes;;
46667 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
46668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
46669 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
46671 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46672 ac_datarootdir_hack='
46673 s&@datadir@&$datadir&g
46674 s&@docdir@&$docdir&g
46675 s&@infodir@&$infodir&g
46676 s&@localedir@&$localedir&g
46677 s&@mandir@&$mandir&g
46678 s&\\\${datarootdir}&$datarootdir&g' ;;
46682 # Neutralize VPATH when `$srcdir' = `.'.
46683 # Shell code in configure.ac might set extrasub.
46684 # FIXME: do we really want to maintain this feature?
46685 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46686 ac_sed_extra="$ac_vpsub
46689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46691 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
46692 s|@configure_input@|$ac_sed_conf_input|;t t
46693 s&@top_builddir@&$ac_top_builddir_sub&;t t
46694 s&@top_build_prefix@&$ac_top_build_prefix&;t t
46695 s&@srcdir@&$ac_srcdir&;t t
46696 s&@abs_srcdir@&$ac_abs_srcdir&;t t
46697 s&@top_srcdir@&$ac_top_srcdir&;t t
46698 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
46699 s&@builddir@&$ac_builddir&;t t
46700 s&@abs_builddir@&$ac_abs_builddir&;t t
46701 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
46702 s&@INSTALL@&$ac_INSTALL&;t t
46703 s&@MKDIR_P@&$ac_MKDIR_P&;t t
46704 $ac_datarootdir_hack
46706 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
46707 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46709 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
46710 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
46711 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
46712 "$ac_tmp/out"`; test -z "$ac_out"; } &&
46713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46714 which seems to be undefined. Please make sure it is defined" >&5
46715 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
46716 which seems to be undefined. Please make sure it is defined" >&2;}
46718 rm -f "$ac_tmp/stdin"
46720 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
46721 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
46723 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46729 if test x"$ac_file" != x-; then
46731 $as_echo "/* $configure_input */" \
46732 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
46733 } >"$ac_tmp/config.h" \
46734 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46735 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
46736 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
46737 $as_echo "$as_me: $ac_file is unchanged" >&6;}
46740 mv "$ac_tmp/config.h" "$ac_file" \
46741 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
46744 $as_echo "/* $configure_input */" \
46745 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
46746 || as_fn_error $? "could not create -" "$LINENO" 5
46748 # Compute "$ac_file"'s index in $config_headers.
46751 for _am_header in $config_headers :; do
46752 case $_am_header in
46753 $_am_arg | $_am_arg:* )
46756 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
46759 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
46760 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46761 X"$_am_arg" : 'X\(//\)[^/]' \| \
46762 X"$_am_arg" : 'X\(//\)$' \| \
46763 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
46764 $as_echo X"$_am_arg" |
46765 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46769 /^X\(\/\/\)[^/].*/{
46781 s/.*/./; q'`/stamp-h$_am_stamp_count
46784 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
46785 $as_echo "$as_me: executing $ac_file commands" >&6;}
46790 case $ac_file$ac_mode in
46791 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
46792 # Older Autoconf quotes --file arguments for eval, but not when files
46793 # are listed without --file. Let's play safe and only enable the eval
46794 # if we detect the quoting.
46795 # TODO: see whether this extra hack can be removed once we start
46796 # requiring Autoconf 2.70 or later.
46797 case $CONFIG_FILES in #(
46799 eval set x "$CONFIG_FILES" ;; #(
46801 set x $CONFIG_FILES ;; #(
46806 # Used to flag and report bootstrapping failures.
46810 # Strip MF so we end up with the name of the file.
46811 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
46812 # Check whether this is an Automake generated Makefile which includes
46813 # dependency-tracking related rules and includes.
46814 # Grep'ing the whole file directly is not great: AIX grep has a line
46815 # limit of 2048, but all sed's we know have understand at least 4000.
46816 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
46818 am_dirpart=`$as_dirname -- "$am_mf" ||
46819 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46820 X"$am_mf" : 'X\(//\)[^/]' \| \
46821 X"$am_mf" : 'X\(//\)$' \| \
46822 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
46823 $as_echo X"$am_mf" |
46824 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46828 /^X\(\/\/\)[^/].*/{
46841 am_filepart=`$as_basename -- "$am_mf" ||
46842 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
46843 X"$am_mf" : 'X\(//\)$' \| \
46844 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
46845 $as_echo X/"$am_mf" |
46846 sed '/^.*\/\([^/][^/]*\)\/*$/{
46859 { echo "$as_me:$LINENO: cd "$am_dirpart" \
46860 && sed -e '/# am--include-marker/d' "$am_filepart" \
46861 | $MAKE -f - am--depfiles" >&5
46862 (cd "$am_dirpart" \
46863 && sed -e '/# am--include-marker/d' "$am_filepart" \
46864 | $MAKE -f - am--depfiles) >&5 2>&5
46866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
46867 (exit $ac_status); } || am_rc=$?
46869 if test $am_rc -ne 0; then
46870 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
46871 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
46872 as_fn_error $? "Something went wrong bootstrapping makefile fragments
46873 for automatic dependency tracking. If GNU make was not used, consider
46874 re-running the configure script with MAKE=\"gmake\" (or whatever is
46875 necessary). You can also try re-running configure with the
46876 '--disable-dependency-tracking' option to at least be able to build
46877 the package (albeit without support for automatic dependency tracking).
46878 See \`config.log' for more details" "$LINENO" 5; }
46880 { am_dirpart=; unset am_dirpart;}
46881 { am_filepart=; unset am_filepart;}
46882 { am_mf=; unset am_mf;}
46883 { am_rc=; unset am_rc;}
46884 rm -f conftest-deps.mk
46889 # See if we are running on zsh, and set the options that allow our
46890 # commands through without removal of \ escapes.
46891 if test -n "${ZSH_VERSION+set}"; then
46892 setopt NO_GLOB_SUBST
46896 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
46899 cat <<_LT_EOF >> "$cfgfile"
46901 # Generated automatically by $as_me ($PACKAGE) $VERSION
46902 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
46904 # Provide generalized library-building support services.
46905 # Written by Gordon Matzigkeit, 1996
46907 # Copyright (C) 2014 Free Software Foundation, Inc.
46908 # This is free software; see the source for copying conditions. There is NO
46909 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
46911 # GNU Libtool is free software; you can redistribute it and/or modify
46912 # it under the terms of the GNU General Public License as published by
46913 # the Free Software Foundation; either version 2 of of the License, or
46914 # (at your option) any later version.
46916 # As a special exception to the GNU General Public License, if you
46917 # distribute this file as part of a program or library that is built
46918 # using GNU Libtool, you may include this file under the same
46919 # distribution terms that you use for the rest of that program.
46921 # GNU Libtool is distributed in the hope that it will be useful, but
46922 # WITHOUT ANY WARRANTY; without even the implied warranty of
46923 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
46924 # GNU General Public License for more details.
46926 # You should have received a copy of the GNU General Public License
46927 # along with this program. If not, see <http://www.gnu.org/licenses/>.
46930 # The names of the tagged configurations supported by this script.
46933 # Configured defaults for sys_lib_dlsearch_path munging.
46934 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
46936 # ### BEGIN LIBTOOL CONFIG
46938 # Which release of libtool.m4 was used?
46939 macro_version=$macro_version
46940 macro_revision=$macro_revision
46942 # Assembler program.
46945 # DLL creation program.
46946 DLLTOOL=$lt_DLLTOOL
46948 # Object dumper program.
46949 OBJDUMP=$lt_OBJDUMP
46951 # Whether or not to build shared libraries.
46952 build_libtool_libs=$enable_shared
46954 # Whether or not to build static libraries.
46955 build_old_libs=$enable_static
46957 # What type of objects to build.
46960 # Whether or not to optimize for fast installation.
46961 fast_install=$enable_fast_install
46963 # Shared archive member basename,for filename based shared library versioning on AIX.
46964 shared_archive_member_spec=$shared_archive_member_spec
46966 # Shell to use when invoking shell scripts.
46969 # An echo program that protects backslashes.
46972 # The PATH separator for the build system.
46973 PATH_SEPARATOR=$lt_PATH_SEPARATOR
46976 host_alias=$host_alias
46980 # The build system.
46981 build_alias=$build_alias
46985 # A sed program that does not truncate output.
46988 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
46989 Xsed="\$SED -e 1s/^X//"
46991 # A grep program that handles long lines.
46997 # A literal string matcher.
47000 # A BSD- or MS-compatible name lister.
47003 # Whether we need soft or hard links.
47006 # What is the maximum length of a command?
47007 max_cmd_len=$max_cmd_len
47009 # Object file suffix (normally "o").
47012 # Executable file suffix (normally "").
47015 # whether the shell understands "unset".
47018 # turn spaces into newlines.
47021 # turn newlines into spaces.
47024 # convert \$build file names to \$host format.
47025 to_host_file_cmd=$lt_cv_to_host_file_cmd
47027 # convert \$build files to toolchain format.
47028 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47030 # Method to check whether dependent libraries are shared objects.
47031 deplibs_check_method=$lt_deplibs_check_method
47033 # Command to use when deplibs_check_method = "file_magic".
47034 file_magic_cmd=$lt_file_magic_cmd
47036 # How to find potential files when deplibs_check_method = "file_magic".
47037 file_magic_glob=$lt_file_magic_glob
47039 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47040 want_nocaseglob=$lt_want_nocaseglob
47042 # Command to associate shared and link libraries.
47043 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47048 # Flags to create an archive.
47049 AR_FLAGS=$lt_AR_FLAGS
47051 # How to feed a file listing to the archiver.
47052 archiver_list_spec=$lt_archiver_list_spec
47054 # A symbol stripping program.
47057 # Commands used to install an old-style archive.
47059 old_postinstall_cmds=$lt_old_postinstall_cmds
47060 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47062 # Whether to use a lock for old archive extraction.
47063 lock_old_archive_extraction=$lock_old_archive_extraction
47068 # LTCC compiler flags.
47069 LTCFLAGS=$lt_CFLAGS
47071 # Take the output of nm and produce a listing of raw symbols and C names.
47072 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47074 # Transform the output of nm in a proper C declaration.
47075 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47077 # Transform the output of nm into a list of symbols to manually relocate.
47078 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47080 # Transform the output of nm in a C name address pair.
47081 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47083 # Transform the output of nm in a C name address pair when lib prefix is needed.
47084 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47086 # The name lister interface.
47087 nm_interface=$lt_lt_cv_nm_interface
47089 # Specify filename containing input files for \$NM.
47090 nm_file_list_spec=$lt_nm_file_list_spec
47092 # The root where to search for dependent libraries,and where our libraries should be installed.
47093 lt_sysroot=$lt_sysroot
47095 # Command to truncate a binary pipe.
47096 lt_truncate_bin=$lt_lt_cv_truncate_bin
47098 # The name of the directory that contains temporary libtool files.
47101 # Used to examine libraries when file_magic_cmd begins with "file".
47102 MAGIC_CMD=$MAGIC_CMD
47104 # Must we lock files when doing compilation?
47105 need_locks=$lt_need_locks
47108 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47110 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47111 DSYMUTIL=$lt_DSYMUTIL
47113 # Tool to change global to local symbols on Mac OS X.
47116 # Tool to manipulate fat objects and archives on Mac OS X.
47119 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47122 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47123 OTOOL64=$lt_OTOOL64
47125 # Old archive suffix (normally "a").
47128 # Shared library suffix (normally ".so").
47129 shrext_cmds=$lt_shrext_cmds
47131 # The commands to extract the exported symbol list from a shared archive.
47132 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47134 # Variables whose values should be saved in libtool wrapper scripts and
47135 # restored at link time.
47136 variables_saved_for_relink=$lt_variables_saved_for_relink
47138 # Do we need the "lib" prefix for modules?
47139 need_lib_prefix=$need_lib_prefix
47141 # Do we need a version for libraries?
47142 need_version=$need_version
47144 # Library versioning type.
47145 version_type=$version_type
47147 # Shared library runtime path variable.
47148 runpath_var=$runpath_var
47150 # Shared library path variable.
47151 shlibpath_var=$shlibpath_var
47153 # Is shlibpath searched before the hard-coded library search path?
47154 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47156 # Format of library name prefix.
47157 libname_spec=$lt_libname_spec
47159 # List of archive names. First name is the real one, the rest are links.
47160 # The last name is the one that the linker finds with -lNAME
47161 library_names_spec=$lt_library_names_spec
47163 # The coded name of the library, if different from the real name.
47164 soname_spec=$lt_soname_spec
47166 # Permission mode override for installation of shared libraries.
47167 install_override_mode=$lt_install_override_mode
47169 # Command to use after installation of a shared archive.
47170 postinstall_cmds=$lt_postinstall_cmds
47172 # Command to use after uninstallation of a shared archive.
47173 postuninstall_cmds=$lt_postuninstall_cmds
47175 # Commands used to finish a libtool library installation in a directory.
47176 finish_cmds=$lt_finish_cmds
47178 # As "finish_cmds", except a single script fragment to be evaled but
47180 finish_eval=$lt_finish_eval
47182 # Whether we should hardcode library paths into libraries.
47183 hardcode_into_libs=$hardcode_into_libs
47185 # Compile-time system search path for libraries.
47186 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47188 # Detected run-time system search path for libraries.
47189 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47191 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47192 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47194 # Whether dlopen is supported.
47195 dlopen_support=$enable_dlopen
47197 # Whether dlopen of programs is supported.
47198 dlopen_self=$enable_dlopen_self
47200 # Whether dlopen of statically linked programs is supported.
47201 dlopen_self_static=$enable_dlopen_self_static
47203 # Commands to strip libraries.
47204 old_striplib=$lt_old_striplib
47205 striplib=$lt_striplib
47208 # The linker used to build libraries.
47211 # How to create reloadable object files.
47212 reload_flag=$lt_reload_flag
47213 reload_cmds=$lt_reload_cmds
47215 # Commands used to build an old-style archive.
47216 old_archive_cmds=$lt_old_archive_cmds
47218 # A language specific compiler.
47221 # Is the compiler the GNU compiler?
47224 # Compiler flag to turn off builtin functions.
47225 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47227 # Additional compiler flags for building library objects.
47228 pic_flag=$lt_lt_prog_compiler_pic
47230 # How to pass a linker flag through the compiler.
47231 wl=$lt_lt_prog_compiler_wl
47233 # Compiler flag to prevent dynamic linking.
47234 link_static_flag=$lt_lt_prog_compiler_static
47236 # Does compiler simultaneously support -c and -o options?
47237 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47239 # Whether or not to add -lc for building shared libraries.
47240 build_libtool_need_lc=$archive_cmds_need_lc
47242 # Whether or not to disallow shared libs when runtime libs are static.
47243 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47245 # Compiler flag to allow reflexive dlopens.
47246 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47248 # Compiler flag to generate shared objects directly from archives.
47249 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47251 # Whether the compiler copes with passing no objects directly.
47252 compiler_needs_object=$lt_compiler_needs_object
47254 # Create an old-style archive from a shared archive.
47255 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47257 # Create a temporary old-style archive to link instead of a shared archive.
47258 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47260 # Commands used to build a shared archive.
47261 archive_cmds=$lt_archive_cmds
47262 archive_expsym_cmds=$lt_archive_expsym_cmds
47264 # Commands used to build a loadable module if different from building
47265 # a shared archive.
47266 module_cmds=$lt_module_cmds
47267 module_expsym_cmds=$lt_module_expsym_cmds
47269 # Whether we are building with GNU ld or not.
47270 with_gnu_ld=$lt_with_gnu_ld
47272 # Flag that allows shared libraries with undefined symbols to be built.
47273 allow_undefined_flag=$lt_allow_undefined_flag
47275 # Flag that enforces no undefined symbols.
47276 no_undefined_flag=$lt_no_undefined_flag
47278 # Flag to hardcode \$libdir into a binary during linking.
47279 # This must work even if \$libdir does not exist
47280 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47282 # Whether we need a single "-rpath" flag with a separated argument.
47283 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47285 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47286 # DIR into the resulting binary.
47287 hardcode_direct=$hardcode_direct
47289 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47290 # DIR into the resulting binary and the resulting library dependency is
47291 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
47292 # library is relocated.
47293 hardcode_direct_absolute=$hardcode_direct_absolute
47295 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47296 # into the resulting binary.
47297 hardcode_minus_L=$hardcode_minus_L
47299 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47300 # into the resulting binary.
47301 hardcode_shlibpath_var=$hardcode_shlibpath_var
47303 # Set to "yes" if building a shared library automatically hardcodes DIR
47304 # into the library and all subsequent libraries and executables linked
47306 hardcode_automatic=$hardcode_automatic
47308 # Set to yes if linker adds runtime paths of dependent libraries
47309 # to runtime path list.
47310 inherit_rpath=$inherit_rpath
47312 # Whether libtool must link a program against all its dependency libraries.
47313 link_all_deplibs=$link_all_deplibs
47315 # Set to "yes" if exported symbols are required.
47316 always_export_symbols=$always_export_symbols
47318 # The commands to list exported symbols.
47319 export_symbols_cmds=$lt_export_symbols_cmds
47321 # Symbols that should not be listed in the preloaded symbols.
47322 exclude_expsyms=$lt_exclude_expsyms
47324 # Symbols that must always be exported.
47325 include_expsyms=$lt_include_expsyms
47327 # Commands necessary for linking programs (against libraries) with templates.
47328 prelink_cmds=$lt_prelink_cmds
47330 # Commands necessary for finishing linking programs.
47331 postlink_cmds=$lt_postlink_cmds
47333 # Specify filename containing input files.
47334 file_list_spec=$lt_file_list_spec
47336 # How to hardcode a shared library path into an executable.
47337 hardcode_action=$hardcode_action
47339 # ### END LIBTOOL CONFIG
47343 cat <<'_LT_EOF' >> "$cfgfile"
47345 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
47347 # func_munge_path_list VARIABLE PATH
47348 # -----------------------------------
47349 # VARIABLE is name of variable containing _space_ separated list of
47350 # directories to be munged by the contents of PATH, which is string
47353 # string "DIR[ DIR]" will be prepended to VARIABLE
47355 # string "DIR[ DIR]" will be appended to VARIABLE
47356 # "DIRP[:DIRP]::[DIRA:]DIRA"
47357 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
47358 # "DIRA[ DIRA]" will be appended to VARIABLE
47360 # VARIABLE will be replaced by "DIR[ DIR]"
47361 func_munge_path_list ()
47367 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
47370 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
47373 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
47374 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
47377 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
47383 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
47384 func_cc_basename ()
47386 for cc_temp in $*""; do
47388 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47389 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47394 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
47398 # ### END FUNCTIONS SHARED WITH CONFIGURE
47404 cat <<\_LT_EOF >> "$cfgfile"
47405 # AIX sometimes has problems with the GCC collect2 program. For some
47406 # reason, if we set the COLLECT_NAMES environment variable, the problems
47407 # vanish in a puff of smoke.
47408 if test set != "${COLLECT_NAMES+set}"; then
47410 export COLLECT_NAMES
47417 ltmain=$ac_aux_dir/ltmain.sh
47420 # We use sed instead of cat because bash on DJGPP gets confused if
47421 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47422 # text mode, it properly converts lines to CR/LF. This bash problem
47423 # is reportedly fixed, but why not run on old versions too?
47424 sed '$q' "$ltmain" >> "$cfgfile" \
47425 || (rm -f "$cfgfile"; exit 1)
47427 mv -f "$cfgfile" "$ofile" ||
47428 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47439 ac_clean_files=$ac_clean_files_save
47441 test $ac_write_fail = 0 ||
47442 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47445 # configure is writing to config.log, and then calls config.status.
47446 # config.status does its own redirection, appending to config.log.
47447 # Unfortunately, on DOS this fails, as config.log is still kept open
47448 # by configure, so config.status won't be able to write to it; its
47449 # output is simply discarded. So we exec the FD to /dev/null,
47450 # effectively closing config.log, so it can be properly (re)opened and
47451 # appended to by config.status. When coming back to configure, we
47452 # need to make the FD available again.
47453 if test "$no_create" != yes; then
47455 ac_config_status_args=
47456 test "$silent" = yes &&
47457 ac_config_status_args="$ac_config_status_args --quiet"
47459 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47461 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47462 # would make configure fail if this is the last instruction.
47463 $ac_cs_success || as_fn_exit 1
47467 # CONFIG_SUBDIRS section.
47469 if test "$no_recursion" != yes; then
47471 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
47472 # so they do not pile up.
47473 ac_sub_configure_args=
47475 eval "set x $ac_configure_args"
47479 if test -n "$ac_prev"; then
47484 -cache-file | --cache-file | --cache-fil | --cache-fi \
47485 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
47486 ac_prev=cache_file ;;
47487 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
47488 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
47491 --config-cache | -C)
47493 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
47495 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
47497 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
47499 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
47501 --disable-option-checking)
47505 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47507 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
47511 # Always prepend --prefix to ensure using the same prefix
47512 # in subdir configurations.
47513 ac_arg="--prefix=$prefix"
47515 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
47517 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
47520 if test "$silent" = yes; then
47521 ac_sub_configure_args="--silent $ac_sub_configure_args"
47524 # Always prepend --disable-option-checking to silence warnings, since
47525 # different subdirs can have different --enable and --with options.
47526 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
47529 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
47531 # Do not complain, so a configure script can configure whichever
47532 # parts of a large source tree are present.
47533 test -d "$srcdir/$ac_dir" || continue
47535 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
47536 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
47537 $as_echo "$ac_msg" >&6
47538 as_dir="$ac_dir"; as_fn_mkdir_p
47542 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
47544 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
47545 # A ".." for each directory in $ac_dir_suffix.
47546 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
47547 case $ac_top_builddir_sub in
47548 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
47549 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
47552 ac_abs_top_builddir=$ac_pwd
47553 ac_abs_builddir=$ac_pwd$ac_dir_suffix
47554 # for backward compatibility:
47555 ac_top_builddir=$ac_top_build_prefix
47558 .) # We are building in place.
47560 ac_top_srcdir=$ac_top_builddir_sub
47561 ac_abs_top_srcdir=$ac_pwd ;;
47562 [\\/]* | ?:[\\/]* ) # Absolute name.
47563 ac_srcdir=$srcdir$ac_dir_suffix;
47564 ac_top_srcdir=$srcdir
47565 ac_abs_top_srcdir=$srcdir ;;
47566 *) # Relative name.
47567 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
47568 ac_top_srcdir=$ac_top_build_prefix$srcdir
47569 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
47571 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
47576 # Check for guested configure; otherwise get Cygnus style configure.
47577 if test -f "$ac_srcdir/configure.gnu"; then
47578 ac_sub_configure=$ac_srcdir/configure.gnu
47579 elif test -f "$ac_srcdir/configure"; then
47580 ac_sub_configure=$ac_srcdir/configure
47581 elif test -f "$ac_srcdir/configure.in"; then
47582 # This should be Cygnus configure.
47583 ac_sub_configure=$ac_aux_dir/configure
47585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
47586 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
47590 # The recursion is here.
47591 if test -n "$ac_sub_configure"; then
47592 # Make the cache file name correct relative to the subdirectory.
47593 case $cache_file in
47594 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
47595 *) # Relative name.
47596 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
47599 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
47600 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
47601 # The eval makes quoting arguments work.
47602 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
47603 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
47604 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
47610 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47612 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47617 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
47618 if test -z "$tmp_cpp"; then
47621 cat >./tests/configurehelp.pm <<_EOF
47622 # This is a generated file. Do not edit.
47624 package configurehelp;
47636 @ISA = qw(Exporter);
47642 \$Cpreprocessor = '$tmp_cpp';
47649 ## ---------------------------------- ##
47650 ## Start of distclean amending code ##
47651 ## ---------------------------------- ##
47653 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
47656 if test ! -f "$xc_subdir/Makefile"; then
47657 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
47661 # Fetch dependency tracking file list from Makefile include lines.
47663 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
47664 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
47666 # --disable-dependency-tracking might have been used, consequently
47667 # there is nothing to amend without a dependency tracking file list.
47669 if test $xc_cnt_words -gt 0; then
47671 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
47672 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
47674 # Build Makefile specific patch hunk.
47676 xc_p="$xc_subdir/xc_patch.tmp"
47678 xc_rm_depfiles=`echo "$xc_inc_lines" \
47679 | $SED 's%include% -rm -f%' 2>/dev/null`
47681 xc_dep_subdirs=`echo "$xc_inc_lines" \
47682 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
47683 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
47686 echo "$xc_rm_depfiles" >$xc_p
47688 for xc_dep_dir in $xc_dep_subdirs; do
47689 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
47690 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
47691 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
47692 echo "${xc_tab}fi" >>$xc_p
47695 # Build Makefile patching sed scripts.
47697 xc_s1="$xc_subdir/xc_script_1.tmp"
47698 xc_s2="$xc_subdir/xc_script_2.tmp"
47699 xc_s3="$xc_subdir/xc_script_3.tmp"
47701 cat >$xc_s1 <<\_EOT
47702 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
47703 s/^.*(DEPDIR)/___xc_depdir_line___/
47705 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
47706 s/^.*(DEPDIR)/___xc_depdir_line___/
47710 cat >$xc_s2 <<\_EOT
47711 /___xc_depdir_line___$/{
47713 /___xc_depdir_line___$/D
47718 /^___xc_depdir_line___/{
47724 # Apply patch to Makefile and cleanup.
47726 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
47727 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
47728 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
47730 if test -f "$xc_subdir/Makefile.tmp3"; then
47731 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
47734 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
47735 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
47736 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
47738 test -f "$xc_p" && rm -f "$xc_p"
47739 test -f "$xc_s1" && rm -f "$xc_s1"
47740 test -f "$xc_s2" && rm -f "$xc_s2"
47741 test -f "$xc_s3" && rm -f "$xc_s3"
47747 ## -------------------------------- ##
47748 ## End of distclean amending code ##
47749 ## -------------------------------- ##
47753 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
47755 Host setup: ${host}
47756 Install prefix: ${prefix}
47759 CPPFLAGS: ${CPPFLAGS}
47760 LDFLAGS: ${LDFLAGS}
47763 curl version: ${CURLVERSION}
47764 SSL: ${curl_ssl_msg}
47765 SSH: ${curl_ssh_msg}
47766 zlib: ${curl_zlib_msg}
47767 brotli: ${curl_brotli_msg}
47768 zstd: ${curl_zstd_msg}
47769 GSS-API: ${curl_gss_msg}
47770 TLS-SRP: ${curl_tls_srp_msg}
47771 resolver: ${curl_res_msg}
47772 IPv6: ${curl_ipv6_msg}
47773 Unix sockets: ${curl_unix_sockets_msg}
47774 IDN: ${curl_idn_msg}
47775 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
47776 Built-in manual: ${curl_manual_msg}
47777 --libcurl option: ${curl_libcurl_msg}
47778 Verbose errors: ${curl_verbose_msg}
47779 Code coverage: ${curl_coverage_msg}
47780 SSPI: ${curl_sspi_msg}
47781 ca cert bundle: ${ca}${ca_warning}
47782 ca cert path: ${capath}${capath_warning}
47783 ca fallback: ${with_ca_fallback}
47784 LDAP: ${curl_ldap_msg}
47785 LDAPS: ${curl_ldaps_msg}
47786 RTSP: ${curl_rtsp_msg}
47787 RTMP: ${curl_rtmp_msg}
47788 Metalink: ${curl_mtlnk_msg}
47789 PSL: ${curl_psl_msg}
47790 Alt-svc: ${curl_altsvc_msg}
47791 HTTP2: ${curl_h2_msg}
47792 HTTP3: ${curl_h3_msg}
47793 ECH: ${curl_ech_msg}
47794 Protocols: ${SUPPORT_PROTOCOLS}
47795 Features: ${SUPPORT_FEATURES}
47797 $as_echo "$as_me: Configured to build curl/libcurl:
47799 Host setup: ${host}
47800 Install prefix: ${prefix}
47803 CPPFLAGS: ${CPPFLAGS}
47804 LDFLAGS: ${LDFLAGS}
47807 curl version: ${CURLVERSION}
47808 SSL: ${curl_ssl_msg}
47809 SSH: ${curl_ssh_msg}
47810 zlib: ${curl_zlib_msg}
47811 brotli: ${curl_brotli_msg}
47812 zstd: ${curl_zstd_msg}
47813 GSS-API: ${curl_gss_msg}
47814 TLS-SRP: ${curl_tls_srp_msg}
47815 resolver: ${curl_res_msg}
47816 IPv6: ${curl_ipv6_msg}
47817 Unix sockets: ${curl_unix_sockets_msg}
47818 IDN: ${curl_idn_msg}
47819 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
47820 Built-in manual: ${curl_manual_msg}
47821 --libcurl option: ${curl_libcurl_msg}
47822 Verbose errors: ${curl_verbose_msg}
47823 Code coverage: ${curl_coverage_msg}
47824 SSPI: ${curl_sspi_msg}
47825 ca cert bundle: ${ca}${ca_warning}
47826 ca cert path: ${capath}${capath_warning}
47827 ca fallback: ${with_ca_fallback}
47828 LDAP: ${curl_ldap_msg}
47829 LDAPS: ${curl_ldaps_msg}
47830 RTSP: ${curl_rtsp_msg}
47831 RTMP: ${curl_rtmp_msg}
47832 Metalink: ${curl_mtlnk_msg}
47833 PSL: ${curl_psl_msg}
47834 Alt-svc: ${curl_altsvc_msg}
47835 HTTP2: ${curl_h2_msg}
47836 HTTP3: ${curl_h3_msg}
47837 ECH: ${curl_ech_msg}
47838 Protocols: ${SUPPORT_PROTOCOLS}
47839 Features: ${SUPPORT_FEATURES}
47841 if test -n "$experimental"; then
47843 WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!