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 - 2019 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
887 CURL_NETWORK_AND_TIME_LIBS
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
909 USE_NGTCP2_CRYPTO_OPENSSL
913 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
914 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
915 CURL_LT_SHLIB_VERSIONED_FLAVOUR
953 HAVE_PROTO_BSDSOCKET_H
970 DOING_NATIVE_WINDOWS_FALSE
971 DOING_NATIVE_WINDOWS_TRUE
972 BUILD_UNITTESTS_FALSE
976 USE_EXPLICIT_LIB_DEPS_FALSE
977 USE_EXPLICIT_LIB_DEPS_TRUE
979 CPPFLAG_CURL_STATICLIB
980 USE_CPPFLAG_CURL_STATICLIB_FALSE
981 USE_CPPFLAG_CURL_STATICLIB_TRUE
982 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
983 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
984 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
985 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
986 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
987 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1038 INSTALL_STRIP_PROGRAM
1071 AM_DEFAULT_VERBOSITY
1075 MAINTAINER_MODE_FALSE
1076 MAINTAINER_MODE_TRUE
1105 program_transform_name
1119 enable_option_checking
1120 enable_maintainer_mode
1127 enable_symbol_hiding
1128 enable_hidden_symbols
1132 enable_code_coverage
1133 enable_dependency_tracking
1159 enable_libcurl_option
1166 with_gssapi_includes
1169 with_default_ssl_backend
1173 with_secure_transport
1178 enable_openssl_auto_load_config
1193 enable_versioned_symbols
1200 with_zsh_functions_dir
1201 with_fish_functions_dir
1202 enable_threaded_resolver
1216 enable_progress_meter
1220 ac_precious_vars='build_alias
1229 LT_SYS_LIBRARY_PATH'
1230 ac_subdirs_all='ares'
1232 # Initialize some variables set by options.
1234 ac_init_version=false
1235 ac_unrecognized_opts=
1236 ac_unrecognized_sep=
1237 # The variables have the same names as the options, with
1238 # dashes changed to underlines.
1239 cache_file=/dev/null
1246 program_transform_name=s,x,x,
1254 # Installation directory options.
1255 # These are left unexpanded so users can "make install exec_prefix=/foo"
1256 # and all the variables that are supposed to be based on exec_prefix
1257 # by default will actually change.
1258 # Use braces instead of parens because sh, perl, etc. also accept them.
1259 # (The list follows the same order as the GNU Coding Standards.)
1260 bindir='${exec_prefix}/bin'
1261 sbindir='${exec_prefix}/sbin'
1262 libexecdir='${exec_prefix}/libexec'
1263 datarootdir='${prefix}/share'
1264 datadir='${datarootdir}'
1265 sysconfdir='${prefix}/etc'
1266 sharedstatedir='${prefix}/com'
1267 localstatedir='${prefix}/var'
1268 runstatedir='${localstatedir}/run'
1269 includedir='${prefix}/include'
1270 oldincludedir='/usr/include'
1271 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1272 infodir='${datarootdir}/info'
1277 libdir='${exec_prefix}/lib'
1278 localedir='${datarootdir}/locale'
1279 mandir='${datarootdir}/man'
1285 # If the previous option needs an argument, assign it.
1286 if test -n "$ac_prev"; then
1287 eval $ac_prev=\$ac_option
1293 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1298 # Accept the important Cygnus configure options, so we can diagnose typos.
1300 case $ac_dashdash$ac_option in
1304 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1306 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1307 bindir=$ac_optarg ;;
1309 -build | --build | --buil | --bui | --bu)
1310 ac_prev=build_alias ;;
1311 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1312 build_alias=$ac_optarg ;;
1314 -cache-file | --cache-file | --cache-fil | --cache-fi \
1315 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1316 ac_prev=cache_file ;;
1317 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1318 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1319 cache_file=$ac_optarg ;;
1321 --config-cache | -C)
1322 cache_file=config.cache ;;
1324 -datadir | --datadir | --datadi | --datad)
1326 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1327 datadir=$ac_optarg ;;
1329 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1330 | --dataroo | --dataro | --datar)
1331 ac_prev=datarootdir ;;
1332 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1333 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1334 datarootdir=$ac_optarg ;;
1336 -disable-* | --disable-*)
1337 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1338 # Reject names that are not valid shell variable names.
1339 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1340 as_fn_error $? "invalid feature name: $ac_useropt"
1341 ac_useropt_orig=$ac_useropt
1342 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1343 case $ac_user_opts in
1345 "enable_$ac_useropt"
1347 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1348 ac_unrecognized_sep=', ';;
1350 eval enable_$ac_useropt=no ;;
1352 -docdir | --docdir | --docdi | --doc | --do)
1354 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1355 docdir=$ac_optarg ;;
1357 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1359 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1360 dvidir=$ac_optarg ;;
1362 -enable-* | --enable-*)
1363 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1364 # Reject names that are not valid shell variable names.
1365 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1366 as_fn_error $? "invalid feature name: $ac_useropt"
1367 ac_useropt_orig=$ac_useropt
1368 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1369 case $ac_user_opts in
1371 "enable_$ac_useropt"
1373 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1374 ac_unrecognized_sep=', ';;
1376 eval enable_$ac_useropt=\$ac_optarg ;;
1378 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1379 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1380 | --exec | --exe | --ex)
1381 ac_prev=exec_prefix ;;
1382 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1383 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1384 | --exec=* | --exe=* | --ex=*)
1385 exec_prefix=$ac_optarg ;;
1387 -gas | --gas | --ga | --g)
1388 # Obsolete; use --with-gas.
1391 -help | --help | --hel | --he | -h)
1392 ac_init_help=long ;;
1393 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1394 ac_init_help=recursive ;;
1395 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1396 ac_init_help=short ;;
1398 -host | --host | --hos | --ho)
1399 ac_prev=host_alias ;;
1400 -host=* | --host=* | --hos=* | --ho=*)
1401 host_alias=$ac_optarg ;;
1403 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1405 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1407 htmldir=$ac_optarg ;;
1409 -includedir | --includedir | --includedi | --included | --include \
1410 | --includ | --inclu | --incl | --inc)
1411 ac_prev=includedir ;;
1412 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1413 | --includ=* | --inclu=* | --incl=* | --inc=*)
1414 includedir=$ac_optarg ;;
1416 -infodir | --infodir | --infodi | --infod | --info | --inf)
1418 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1419 infodir=$ac_optarg ;;
1421 -libdir | --libdir | --libdi | --libd)
1423 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1424 libdir=$ac_optarg ;;
1426 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1427 | --libexe | --libex | --libe)
1428 ac_prev=libexecdir ;;
1429 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1430 | --libexe=* | --libex=* | --libe=*)
1431 libexecdir=$ac_optarg ;;
1433 -localedir | --localedir | --localedi | --localed | --locale)
1434 ac_prev=localedir ;;
1435 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1436 localedir=$ac_optarg ;;
1438 -localstatedir | --localstatedir | --localstatedi | --localstated \
1439 | --localstate | --localstat | --localsta | --localst | --locals)
1440 ac_prev=localstatedir ;;
1441 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1442 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1443 localstatedir=$ac_optarg ;;
1445 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1447 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1448 mandir=$ac_optarg ;;
1450 -nfp | --nfp | --nf)
1451 # Obsolete; use --without-fp.
1454 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1455 | --no-cr | --no-c | -n)
1458 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1459 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1462 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1463 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1464 | --oldin | --oldi | --old | --ol | --o)
1465 ac_prev=oldincludedir ;;
1466 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1467 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1468 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1469 oldincludedir=$ac_optarg ;;
1471 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1473 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1474 prefix=$ac_optarg ;;
1476 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1477 | --program-pre | --program-pr | --program-p)
1478 ac_prev=program_prefix ;;
1479 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1480 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1481 program_prefix=$ac_optarg ;;
1483 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1484 | --program-suf | --program-su | --program-s)
1485 ac_prev=program_suffix ;;
1486 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1487 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1488 program_suffix=$ac_optarg ;;
1490 -program-transform-name | --program-transform-name \
1491 | --program-transform-nam | --program-transform-na \
1492 | --program-transform-n | --program-transform- \
1493 | --program-transform | --program-transfor \
1494 | --program-transfo | --program-transf \
1495 | --program-trans | --program-tran \
1496 | --progr-tra | --program-tr | --program-t)
1497 ac_prev=program_transform_name ;;
1498 -program-transform-name=* | --program-transform-name=* \
1499 | --program-transform-nam=* | --program-transform-na=* \
1500 | --program-transform-n=* | --program-transform-=* \
1501 | --program-transform=* | --program-transfor=* \
1502 | --program-transfo=* | --program-transf=* \
1503 | --program-trans=* | --program-tran=* \
1504 | --progr-tra=* | --program-tr=* | --program-t=*)
1505 program_transform_name=$ac_optarg ;;
1507 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1509 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1510 pdfdir=$ac_optarg ;;
1512 -psdir | --psdir | --psdi | --psd | --ps)
1514 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1521 -runstatedir | --runstatedir | --runstatedi | --runstated \
1522 | --runstate | --runstat | --runsta | --runst | --runs \
1523 | --run | --ru | --r)
1524 ac_prev=runstatedir ;;
1525 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1526 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1527 | --run=* | --ru=* | --r=*)
1528 runstatedir=$ac_optarg ;;
1530 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1532 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1534 sbindir=$ac_optarg ;;
1536 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1537 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1538 | --sharedst | --shareds | --shared | --share | --shar \
1540 ac_prev=sharedstatedir ;;
1541 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1542 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1543 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1545 sharedstatedir=$ac_optarg ;;
1547 -site | --site | --sit)
1549 -site=* | --site=* | --sit=*)
1552 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1554 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1555 srcdir=$ac_optarg ;;
1557 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1558 | --syscon | --sysco | --sysc | --sys | --sy)
1559 ac_prev=sysconfdir ;;
1560 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1561 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1562 sysconfdir=$ac_optarg ;;
1564 -target | --target | --targe | --targ | --tar | --ta | --t)
1565 ac_prev=target_alias ;;
1566 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1567 target_alias=$ac_optarg ;;
1569 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1572 -version | --version | --versio | --versi | --vers | -V)
1573 ac_init_version=: ;;
1576 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1579 as_fn_error $? "invalid package name: $ac_useropt"
1580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1589 eval with_$ac_useropt=\$ac_optarg ;;
1591 -without-* | --without-*)
1592 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1593 # Reject names that are not valid shell variable names.
1594 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1595 as_fn_error $? "invalid package name: $ac_useropt"
1596 ac_useropt_orig=$ac_useropt
1597 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1598 case $ac_user_opts in
1602 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1603 ac_unrecognized_sep=', ';;
1605 eval with_$ac_useropt=no ;;
1608 # Obsolete; use --with-x.
1611 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1612 | --x-incl | --x-inc | --x-in | --x-i)
1613 ac_prev=x_includes ;;
1614 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1615 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1616 x_includes=$ac_optarg ;;
1618 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1619 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1620 ac_prev=x_libraries ;;
1621 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1622 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1623 x_libraries=$ac_optarg ;;
1625 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1626 Try \`$0 --help' for more information"
1630 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1631 # Reject names that are not valid shell variable names.
1632 case $ac_envvar in #(
1633 '' | [0-9]* | *[!_$as_cr_alnum]* )
1634 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1636 eval $ac_envvar=\$ac_optarg
1637 export $ac_envvar ;;
1640 # FIXME: should be removed in autoconf 3.0.
1641 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1642 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1643 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1644 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1650 if test -n "$ac_prev"; then
1651 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1652 as_fn_error $? "missing argument to $ac_option"
1655 if test -n "$ac_unrecognized_opts"; then
1656 case $enable_option_checking in
1658 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1659 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1663 # Check all directory arguments for consistency.
1664 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1665 datadir sysconfdir sharedstatedir localstatedir includedir \
1666 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1667 libdir localedir mandir runstatedir
1669 eval ac_val=\$$ac_var
1670 # Remove trailing slashes.
1673 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1674 eval $ac_var=\$ac_val;;
1676 # Be sure to have absolute directory names.
1678 [\\/$]* | ?:[\\/]* ) continue;;
1679 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1681 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1684 # There might be people who depend on the old broken behavior: `$host'
1685 # used to hold the argument of --host etc.
1686 # FIXME: To remove some day.
1689 target=$target_alias
1691 # FIXME: To remove some day.
1692 if test "x$host_alias" != x; then
1693 if test "x$build_alias" = x; then
1694 cross_compiling=maybe
1695 elif test "x$build_alias" != "x$host_alias"; then
1701 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1703 test "$silent" = yes && exec 6>/dev/null
1706 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1707 ac_ls_di=`ls -di .` &&
1708 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1709 as_fn_error $? "working directory cannot be determined"
1710 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1711 as_fn_error $? "pwd does not report name of working directory"
1714 # Find the source files, if location was not specified.
1715 if test -z "$srcdir"; then
1716 ac_srcdir_defaulted=yes
1717 # Try the directory containing this script, then the parent directory.
1718 ac_confdir=`$as_dirname -- "$as_myself" ||
1719 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1720 X"$as_myself" : 'X\(//\)[^/]' \| \
1721 X"$as_myself" : 'X\(//\)$' \| \
1722 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1723 $as_echo X"$as_myself" |
1724 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1742 if test ! -r "$srcdir/$ac_unique_file"; then
1746 ac_srcdir_defaulted=no
1748 if test ! -r "$srcdir/$ac_unique_file"; then
1749 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1750 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1752 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1754 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1756 # When building in place, set srcdir=.
1757 if test "$ac_abs_confdir" = "$ac_pwd"; then
1760 # Remove unnecessary trailing slashes from srcdir.
1761 # Double slashes in file names in object file debugging info
1762 # mess up M-x gdb in Emacs.
1764 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1766 for ac_var in $ac_precious_vars; do
1767 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1768 eval ac_env_${ac_var}_value=\$${ac_var}
1769 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1770 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1774 # Report the --help message.
1776 if test "$ac_init_help" = "long"; then
1777 # Omit some internal or obsolete options to make the list less imposing.
1778 # This message is too long to be a string in the A/UX 3.1 sh.
1780 \`configure' configures curl - to adapt to many kinds of systems.
1782 Usage: $0 [OPTION]... [VAR=VALUE]...
1784 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1785 VAR=VALUE. See below for descriptions of some of the useful variables.
1787 Defaults for the options are specified in brackets.
1790 -h, --help display this help and exit
1791 --help=short display options specific to this package
1792 --help=recursive display the short help of all the included packages
1793 -V, --version display version information and exit
1794 -q, --quiet, --silent do not print \`checking ...' messages
1795 --cache-file=FILE cache test results in FILE [disabled]
1796 -C, --config-cache alias for \`--cache-file=config.cache'
1797 -n, --no-create do not create output files
1798 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1800 Installation directories:
1801 --prefix=PREFIX install architecture-independent files in PREFIX
1802 [$ac_default_prefix]
1803 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1806 By default, \`make install' will install all the files in
1807 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1808 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1809 for instance \`--prefix=\$HOME'.
1811 For better control, use the options below.
1813 Fine tuning of the installation directories:
1814 --bindir=DIR user executables [EPREFIX/bin]
1815 --sbindir=DIR system admin executables [EPREFIX/sbin]
1816 --libexecdir=DIR program executables [EPREFIX/libexec]
1817 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1818 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1819 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1820 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1821 --libdir=DIR object code libraries [EPREFIX/lib]
1822 --includedir=DIR C header files [PREFIX/include]
1823 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1824 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1825 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1826 --infodir=DIR info documentation [DATAROOTDIR/info]
1827 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1828 --mandir=DIR man documentation [DATAROOTDIR/man]
1829 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1830 --htmldir=DIR html documentation [DOCDIR]
1831 --dvidir=DIR dvi documentation [DOCDIR]
1832 --pdfdir=DIR pdf documentation [DOCDIR]
1833 --psdir=DIR ps documentation [DOCDIR]
1839 --program-prefix=PREFIX prepend PREFIX to installed program names
1840 --program-suffix=SUFFIX append SUFFIX to installed program names
1841 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1844 --build=BUILD configure for building on BUILD [guessed]
1845 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1849 if test -n "$ac_init_help"; then
1850 case $ac_init_help in
1851 short | recursive ) echo "Configuration of curl -:";;
1856 --disable-option-checking ignore unrecognized --enable/--with options
1857 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1858 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1859 --enable-maintainer-mode
1860 enable make rules and dependencies not useful (and
1861 sometimes confusing) to the casual installer
1862 --enable-silent-rules less verbose build output (undo: "make V=1")
1863 --disable-silent-rules verbose build output (undo: "make V=0")
1864 --enable-debug Enable debug build options
1865 --disable-debug Disable debug build options
1866 --enable-optimize Enable compiler optimizations
1867 --disable-optimize Disable compiler optimizations
1868 --enable-warnings Enable strict compiler warnings
1869 --disable-warnings Disable strict compiler warnings
1870 --enable-werror Enable compiler warnings as errors
1871 --disable-werror Disable compiler warnings as errors
1872 --enable-curldebug Enable curl debug memory tracking
1873 --disable-curldebug Disable curl debug memory tracking
1874 --enable-symbol-hiding Enable hiding of library internal symbols
1875 --disable-symbol-hiding Disable hiding of library internal symbols
1876 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1877 --disable-hidden-symbols
1878 To be deprecated, use --disable-symbol-hiding
1879 --enable-ares[=PATH] Enable c-ares for DNS lookups
1880 --disable-ares Disable c-ares for DNS lookups
1881 --disable-rt disable dependency on -lrt
1882 --enable-esni Enable ESNI support
1883 --disable-esni Disable ESNI support
1884 --enable-code-coverage Provide code coverage
1885 --enable-dependency-tracking
1886 do not reject slow dependency extractors
1887 --disable-dependency-tracking
1888 speeds up one-time build
1889 --disable-largefile omit support for large files
1890 --enable-shared[=PKGS] build shared libraries [default=yes]
1891 --enable-static[=PKGS] build static libraries [default=yes]
1892 --enable-fast-install[=PKGS]
1893 optimize for fast installation [default=yes]
1894 --disable-libtool-lock avoid locking (might break parallel builds)
1895 --enable-http Enable HTTP support
1896 --disable-http Disable HTTP support
1897 --enable-ftp Enable FTP support
1898 --disable-ftp Disable FTP support
1899 --enable-file Enable FILE support
1900 --disable-file Disable FILE support
1901 --enable-ldap Enable LDAP support
1902 --disable-ldap Disable LDAP support
1903 --enable-ldaps Enable LDAPS support
1904 --disable-ldaps Disable LDAPS support
1905 --enable-rtsp Enable RTSP support
1906 --disable-rtsp Disable RTSP support
1907 --enable-proxy Enable proxy support
1908 --disable-proxy Disable proxy support
1909 --enable-dict Enable DICT support
1910 --disable-dict Disable DICT support
1911 --enable-telnet Enable TELNET support
1912 --disable-telnet Disable TELNET support
1913 --enable-tftp Enable TFTP support
1914 --disable-tftp Disable TFTP support
1915 --enable-pop3 Enable POP3 support
1916 --disable-pop3 Disable POP3 support
1917 --enable-imap Enable IMAP support
1918 --disable-imap Disable IMAP support
1919 --enable-smb Enable SMB/CIFS support
1920 --disable-smb Disable SMB/CIFS support
1921 --enable-smtp Enable SMTP support
1922 --disable-smtp Disable SMTP support
1923 --enable-gopher Enable Gopher support
1924 --disable-gopher Disable Gopher support
1925 --enable-manual Enable built-in manual
1926 --disable-manual Disable built-in manual
1927 --enable-libcurl-option Enable --libcurl C code generation support
1928 --disable-libcurl-option
1929 Disable --libcurl C code generation support
1930 --enable-libgcc use libgcc when linking
1931 --enable-ipv6 Enable IPv6 (with IPv4) support
1932 --disable-ipv6 Disable IPv6 support
1933 --enable-openssl-auto-load-config
1934 Enable automatic loading of OpenSSL configuration
1935 --disable-openssl-auto-load-config
1936 Disable automatic loading of OpenSSL configuration
1937 --enable-versioned-symbols
1938 Enable versioned symbols in shared library
1939 --disable-versioned-symbols
1940 Disable versioned symbols in shared library
1941 --enable-threaded-resolver
1942 Enable threaded resolver
1943 --disable-threaded-resolver
1944 Disable threaded resolver
1945 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1946 --disable-pthreads Disable POSIX threads
1947 --enable-verbose Enable verbose strings
1948 --disable-verbose Disable verbose strings
1949 --enable-sspi Enable SSPI
1950 --disable-sspi Disable SSPI
1951 --enable-crypto-auth Enable cryptographic authentication
1952 --disable-crypto-auth Disable cryptographic authentication
1953 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1954 helper, where FILE is ntlm_auth's absolute filename
1955 (default: /usr/bin/ntlm_auth)
1956 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1958 --enable-tls-srp Enable TLS-SRP authentication
1959 --disable-tls-srp Disable TLS-SRP authentication
1960 --enable-unix-sockets Enable Unix domain sockets
1961 --disable-unix-sockets Disable Unix domain sockets
1962 --enable-cookies Enable cookies support
1963 --disable-cookies Disable cookies support
1964 --enable-http-auth Enable HTTP authentication support
1965 --disable-http-auth Disable HTTP authentication support
1966 --enable-doh Enable DoH support
1967 --disable-doh Disable DoH support
1968 --enable-mime Enable mime API support
1969 --disable-mime Disable mime API support
1970 --enable-dateparse Enable date parsing
1971 --disable-dateparse Disable date parsing
1972 --enable-netrc Enable netrc parsing
1973 --disable-netrc Disable netrc parsing
1974 --enable-progress-meter Enable progress-meter
1975 --disable-progress-meter
1976 Disable progress-meter
1977 --enable-dnsshuffle Enable DNS shuffling
1978 --disable-dnsshuffle Disable DNS shuffling
1979 --enable-alt-svc Enable alt-svc support
1980 --disable-alt-svc Disable alt-svc support
1983 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1984 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1985 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1987 --with-aix-soname=aix|svr4|both
1988 shared library versioning (aka "SONAME") variant to
1989 provide on AIX, [default=aix].
1990 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1991 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1992 compiler's sysroot if not specified).
1993 --with-zlib=PATH search for zlib in PATH
1994 --without-zlib disable use of zlib
1995 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1996 installation; when possible, set the PKG_CONFIG_PATH
1997 environment variable instead of using this option
1998 --without-brotli disable BROTLI
1999 --with-ldap-lib=libname Specify name of ldap lib file
2000 --with-lber-lib=libname Specify name of lber lib file
2001 --with-gssapi-includes=DIR
2002 Specify location of GSS-API headers
2003 --with-gssapi-libs=DIR Specify location of GSS-API libs
2004 --with-gssapi=DIR Where to look for GSS-API
2005 --with-default-ssl-backend=NAME
2006 Use NAME as default SSL backend
2007 --without-default-ssl-backend
2008 Use implicit default SSL backend
2009 --with-winssl enable Windows native SSL/TLS
2010 --without-winssl disable Windows native SSL/TLS
2011 --with-schannel enable Windows native SSL/TLS
2012 --without-schannel disable Windows native SSL/TLS
2013 --with-darwinssl enable Apple OS native SSL/TLS
2014 --without-darwinssl disable Apple OS native SSL/TLS
2015 --with-secure-transport enable Apple OS native SSL/TLS
2016 --without-secure-transport
2017 disable Apple OS native SSL/TLS
2018 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
2019 --without-amissl disable Amiga native SSL/TLS (AmiSSL)
2020 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
2021 installation (default: /usr/local/ssl); when
2022 possible, set the PKG_CONFIG_PATH environment
2023 variable instead of using this option
2024 --without-ssl disable OpenSSL
2025 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
2026 --with-random=FILE read randomness from FILE (default=/dev/urandom)
2027 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
2029 --without-gnutls disable GnuTLS detection
2030 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2032 --without-mbedtls disable mbedTLS detection
2033 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2034 installation root (default: system lib default)
2035 --without-wolfssl disable WolfSSL detection
2036 --with-mesalink=PATH where to look for MesaLink, PATH points to the
2038 --without-mesalink disable MesaLink detection
2039 --with-bearssl=PATH where to look for BearSSL, PATH points to the
2041 --without-bearssl disable BearSSL detection
2042 --with-nss=PATH where to look for NSS, PATH points to the
2044 --without-nss disable NSS detection
2045 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2047 --without-ca-bundle Don't use a default CA bundle
2048 --with-ca-path=DIRECTORY
2049 Path to a directory containing CA certificates
2050 stored individually, with their filenames in a hash
2051 format. This option can be used with OpenSSL, GnuTLS
2052 and PolarSSL backends. Refer to OpenSSL c_rehash for
2053 details. (example: /etc/certificates)
2054 --without-ca-path Don't use a default CA path
2055 --with-ca-fallback Use the built in CA store of the SSL library
2056 --without-ca-fallback Don't use the built in CA store of the SSL library
2057 --without-libpsl disable support for libpsl cookie checking
2058 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2060 --without-libmetalink disable libmetalink detection
2061 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2062 LIBSSH2 installation; when possible, set the
2063 PKG_CONFIG_PATH environment variable instead of
2065 --with-libssh2 enable LIBSSH2
2066 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2067 installation; when possible, set the PKG_CONFIG_PATH
2068 environment variable instead of using this option
2069 --with-libssh enable LIBSSH
2070 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2071 LIBRTMP installation; when possible, set the
2072 PKG_CONFIG_PATH environment variable instead of
2074 --without-librtmp disable LIBRTMP
2075 --with-winidn=PATH enable Windows native IDN
2076 --without-winidn disable Windows native IDN
2077 --with-libidn2=PATH Enable libidn2 usage
2078 --without-libidn2 Disable libidn2 usage
2079 --with-nghttp2=PATH Enable nghttp2 usage
2080 --without-nghttp2 Disable nghttp2 usage
2081 --with-ngtcp2=PATH Enable ngtcp2 usage
2082 --without-ngtcp2 Disable ngtcp2 usage
2083 --with-nghttp3=PATH Enable nghttp3 usage
2084 --without-nghttp3 Disable nghttp3 usage
2085 --with-quiche=PATH Enable quiche usage
2086 --without-quiche Disable quiche usage
2087 --with-zsh-functions-dir=PATH
2088 Install zsh completions to PATH
2089 --without-zsh-functions-dir
2090 Do not install zsh completions
2091 --with-fish-functions-dir=PATH
2092 Install fish completions to PATH
2093 --without-fish-functions-dir
2094 Do not install fish completions
2096 Some influential environment variables:
2097 CC C compiler command
2098 CFLAGS C compiler flags
2099 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2100 nonstandard directory <lib dir>
2101 LIBS libraries to pass to the linker, e.g. -l<library>
2102 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2103 you have headers in a nonstandard directory <include dir>
2106 User-defined run-time library search path.
2108 Use these variables to override the choices made by `configure' or to help
2109 it to find libraries and programs with nonstandard names/locations.
2111 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2116 if test "$ac_init_help" = "recursive"; then
2117 # If there are subdirs, report their specific --help.
2118 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2119 test -d "$ac_dir" ||
2120 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2125 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2127 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2128 # A ".." for each directory in $ac_dir_suffix.
2129 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2130 case $ac_top_builddir_sub in
2131 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2132 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2135 ac_abs_top_builddir=$ac_pwd
2136 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2137 # for backward compatibility:
2138 ac_top_builddir=$ac_top_build_prefix
2141 .) # We are building in place.
2143 ac_top_srcdir=$ac_top_builddir_sub
2144 ac_abs_top_srcdir=$ac_pwd ;;
2145 [\\/]* | ?:[\\/]* ) # Absolute name.
2146 ac_srcdir=$srcdir$ac_dir_suffix;
2147 ac_top_srcdir=$srcdir
2148 ac_abs_top_srcdir=$srcdir ;;
2150 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2151 ac_top_srcdir=$ac_top_build_prefix$srcdir
2152 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2154 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2156 cd "$ac_dir" || { ac_status=$?; continue; }
2157 # Check for guested configure.
2158 if test -f "$ac_srcdir/configure.gnu"; then
2160 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2161 elif test -f "$ac_srcdir/configure"; then
2163 $SHELL "$ac_srcdir/configure" --help=recursive
2165 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2167 cd "$ac_pwd" || { ac_status=$?; break; }
2171 test -n "$ac_init_help" && exit $ac_status
2172 if $ac_init_version; then
2175 generated by GNU Autoconf 2.69
2177 Copyright (C) 2012 Free Software Foundation, Inc.
2178 This configure script is free software; the Free Software Foundation
2179 gives unlimited permission to copy, distribute and modify it.
2181 Copyright (c) 1998 - 2019 Daniel Stenberg, <daniel@haxx.se>
2182 This configure script may be copied, distributed and modified under the
2183 terms of the curl license; see COPYING for more details
2188 ## ------------------------ ##
2189 ## Autoconf initialization. ##
2190 ## ------------------------ ##
2192 # ac_fn_c_try_compile LINENO
2193 # --------------------------
2194 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2195 ac_fn_c_try_compile ()
2197 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2198 rm -f conftest.$ac_objext
2199 if { { ac_try="$ac_compile"
2201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2202 *) ac_try_echo=$ac_try;;
2204 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2205 $as_echo "$ac_try_echo"; } >&5
2206 (eval "$ac_compile") 2>conftest.err
2208 if test -s conftest.err; then
2209 grep -v '^ *+' conftest.err >conftest.er1
2210 cat conftest.er1 >&5
2211 mv -f conftest.er1 conftest.err
2213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2214 test $ac_status = 0; } && {
2215 test -z "$ac_c_werror_flag" ||
2216 test ! -s conftest.err
2217 } && test -s conftest.$ac_objext; then :
2220 $as_echo "$as_me: failed program was:" >&5
2221 sed 's/^/| /' conftest.$ac_ext >&5
2225 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2226 as_fn_set_status $ac_retval
2228 } # ac_fn_c_try_compile
2230 # ac_fn_c_try_cpp LINENO
2231 # ----------------------
2232 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2235 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2236 if { { ac_try="$ac_cpp conftest.$ac_ext"
2238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2239 *) ac_try_echo=$ac_try;;
2241 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2242 $as_echo "$ac_try_echo"; } >&5
2243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2245 if test -s conftest.err; then
2246 grep -v '^ *+' conftest.err >conftest.er1
2247 cat conftest.er1 >&5
2248 mv -f conftest.er1 conftest.err
2250 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2251 test $ac_status = 0; } > conftest.i && {
2252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2253 test ! -s conftest.err
2257 $as_echo "$as_me: failed program was:" >&5
2258 sed 's/^/| /' conftest.$ac_ext >&5
2262 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2263 as_fn_set_status $ac_retval
2267 # ac_fn_c_try_link LINENO
2268 # -----------------------
2269 # Try to link conftest.$ac_ext, and return whether this succeeded.
2272 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2273 rm -f conftest.$ac_objext conftest$ac_exeext
2274 if { { ac_try="$ac_link"
2276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2277 *) ac_try_echo=$ac_try;;
2279 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2280 $as_echo "$ac_try_echo"; } >&5
2281 (eval "$ac_link") 2>conftest.err
2283 if test -s conftest.err; then
2284 grep -v '^ *+' conftest.err >conftest.er1
2285 cat conftest.er1 >&5
2286 mv -f conftest.er1 conftest.err
2288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2289 test $ac_status = 0; } && {
2290 test -z "$ac_c_werror_flag" ||
2291 test ! -s conftest.err
2292 } && test -s conftest$ac_exeext && {
2293 test "$cross_compiling" = yes ||
2294 test -x conftest$ac_exeext
2298 $as_echo "$as_me: failed program was:" >&5
2299 sed 's/^/| /' conftest.$ac_ext >&5
2303 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2304 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2305 # interfere with the next link command; also delete a directory that is
2306 # left behind by Apple's compiler. We do this before executing the actions.
2307 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2308 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2309 as_fn_set_status $ac_retval
2311 } # ac_fn_c_try_link
2313 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2314 # -------------------------------------------------------
2315 # Tests whether HEADER exists and can be compiled using the include files in
2316 # INCLUDES, setting the cache variable VAR accordingly.
2317 ac_fn_c_check_header_compile ()
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2321 $as_echo_n "checking for $2... " >&6; }
2322 if eval \${$3+:} false; then :
2323 $as_echo_n "(cached) " >&6
2325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2326 /* end confdefs.h. */
2330 if ac_fn_c_try_compile "$LINENO"; then :
2335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2339 $as_echo "$ac_res" >&6; }
2340 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2342 } # ac_fn_c_check_header_compile
2344 # ac_fn_c_try_run LINENO
2345 # ----------------------
2346 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2347 # that executables *can* be run.
2350 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2351 if { { ac_try="$ac_link"
2353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2354 *) ac_try_echo=$ac_try;;
2356 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2357 $as_echo "$ac_try_echo"; } >&5
2358 (eval "$ac_link") 2>&5
2360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2361 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2362 { { case "(($ac_try" in
2363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2364 *) ac_try_echo=$ac_try;;
2366 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2367 $as_echo "$ac_try_echo"; } >&5
2368 (eval "$ac_try") 2>&5
2370 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2371 test $ac_status = 0; }; }; then :
2374 $as_echo "$as_me: program exited with status $ac_status" >&5
2375 $as_echo "$as_me: failed program was:" >&5
2376 sed 's/^/| /' conftest.$ac_ext >&5
2378 ac_retval=$ac_status
2380 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2381 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2382 as_fn_set_status $ac_retval
2386 # ac_fn_c_check_func LINENO FUNC VAR
2387 # ----------------------------------
2388 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2389 ac_fn_c_check_func ()
2391 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2393 $as_echo_n "checking for $2... " >&6; }
2394 if eval \${$3+:} false; then :
2395 $as_echo_n "(cached) " >&6
2397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2398 /* end confdefs.h. */
2400 #define $2 innocuous_$2
2402 # include <limits.h>
2404 # include <assert.h>
2411 #if defined __stub_$2 || defined __stub___$2
2422 if ac_fn_c_try_link "$LINENO"; then :
2427 rm -f core conftest.err conftest.$ac_objext \
2428 conftest$ac_exeext conftest.$ac_ext
2431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2432 $as_echo "$ac_res" >&6; }
2433 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2435 } # ac_fn_c_check_func
2437 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2438 # -------------------------------------------------------
2439 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2440 # the include files in INCLUDES and setting the cache variable VAR
2442 ac_fn_c_check_header_mongrel ()
2444 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2445 if eval \${$3+:} false; then :
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2447 $as_echo_n "checking for $2... " >&6; }
2448 if eval \${$3+:} false; then :
2449 $as_echo_n "(cached) " >&6
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2453 $as_echo "$ac_res" >&6; }
2455 # Is the header compilable?
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2457 $as_echo_n "checking $2 usability... " >&6; }
2458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2459 /* end confdefs.h. */
2463 if ac_fn_c_try_compile "$LINENO"; then :
2464 ac_header_compiler=yes
2466 ac_header_compiler=no
2468 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2470 $as_echo "$ac_header_compiler" >&6; }
2472 # Is the header present?
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2474 $as_echo_n "checking $2 presence... " >&6; }
2475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2476 /* end confdefs.h. */
2479 if ac_fn_c_try_cpp "$LINENO"; then :
2480 ac_header_preproc=yes
2482 ac_header_preproc=no
2484 rm -f conftest.err conftest.i conftest.$ac_ext
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2486 $as_echo "$ac_header_preproc" >&6; }
2488 # So? What about this header?
2489 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2492 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2494 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2498 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2500 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2502 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2504 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2506 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2507 ( $as_echo "## ----------------------------------------------------------------------- ##
2508 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2509 ## ----------------------------------------------------------------------- ##"
2510 ) | sed "s/^/$as_me: WARNING: /" >&2
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2514 $as_echo_n "checking for $2... " >&6; }
2515 if eval \${$3+:} false; then :
2516 $as_echo_n "(cached) " >&6
2518 eval "$3=\$ac_header_compiler"
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2522 $as_echo "$ac_res" >&6; }
2524 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2526 } # ac_fn_c_check_header_mongrel
2528 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2529 # -------------------------------------------
2530 # Tests whether TYPE exists after having included INCLUDES, setting cache
2531 # variable VAR accordingly.
2532 ac_fn_c_check_type ()
2534 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2536 $as_echo_n "checking for $2... " >&6; }
2537 if eval \${$3+:} false; then :
2538 $as_echo_n "(cached) " >&6
2541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2542 /* end confdefs.h. */
2552 if ac_fn_c_try_compile "$LINENO"; then :
2553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2554 /* end confdefs.h. */
2564 if ac_fn_c_try_compile "$LINENO"; then :
2569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2575 $as_echo "$ac_res" >&6; }
2576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2578 } # ac_fn_c_check_type
2580 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2581 # ---------------------------------------------
2582 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2584 ac_fn_c_check_decl ()
2586 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2587 as_decl_name=`echo $2|sed 's/ *(.*//'`
2588 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2590 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2591 if eval \${$3+:} false; then :
2592 $as_echo_n "(cached) " >&6
2594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2595 /* end confdefs.h. */
2599 #ifndef $as_decl_name
2601 (void) $as_decl_use;
2603 (void) $as_decl_name;
2611 if ac_fn_c_try_compile "$LINENO"; then :
2616 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2620 $as_echo "$ac_res" >&6; }
2621 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2623 } # ac_fn_c_check_decl
2625 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2626 # ----------------------------------------------------
2627 # Tries to find if the field MEMBER exists in type AGGR, after including
2628 # INCLUDES, setting cache variable VAR accordingly.
2629 ac_fn_c_check_member ()
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2633 $as_echo_n "checking for $2.$3... " >&6; }
2634 if eval \${$4+:} false; then :
2635 $as_echo_n "(cached) " >&6
2637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2638 /* end confdefs.h. */
2649 if ac_fn_c_try_compile "$LINENO"; then :
2652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2653 /* end confdefs.h. */
2658 if (sizeof ac_aggr.$3)
2664 if ac_fn_c_try_compile "$LINENO"; then :
2669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675 $as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2678 } # ac_fn_c_check_member
2679 cat >config.log <<_ACEOF
2680 This file contains any messages produced by compilers while
2681 running configure, to aid debugging if configure makes a mistake.
2683 It was created by curl $as_me -, which was
2684 generated by GNU Autoconf 2.69. Invocation command line was
2696 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2697 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2698 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2699 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2700 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2702 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2703 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2705 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2706 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2707 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2708 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2709 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2710 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2711 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2719 test -z "$as_dir" && as_dir=.
2720 $as_echo "PATH: $as_dir"
2736 # Keep a trace of the command line.
2737 # Strip out --no-create and --no-recursion so they do not pile up.
2738 # Strip out --silent because we don't want to record it for future runs.
2739 # Also quote any args containing shell meta-characters.
2740 # Make two passes to allow for proper duplicate-argument suppression.
2744 ac_must_keep_next=false
2750 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2751 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2752 | -silent | --silent | --silen | --sile | --sil)
2755 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2758 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2760 as_fn_append ac_configure_args1 " '$ac_arg'"
2761 if test $ac_must_keep_next = true; then
2762 ac_must_keep_next=false # Got value, back to normal.
2765 *=* | --config-cache | -C | -disable-* | --disable-* \
2766 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2767 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2768 | -with-* | --with-* | -without-* | --without-* | --x)
2769 case "$ac_configure_args0 " in
2770 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2773 -* ) ac_must_keep_next=true ;;
2776 as_fn_append ac_configure_args " '$ac_arg'"
2781 { ac_configure_args0=; unset ac_configure_args0;}
2782 { ac_configure_args1=; unset ac_configure_args1;}
2784 # When interrupted or exit'd, cleanup temporary files, and complete
2785 # config.log. We remove comments because anyway the quotes in there
2786 # would cause problems or look ugly.
2787 # WARNING: Use '\'' to represent an apostrophe within the trap.
2788 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2789 trap 'exit_status=$?
2790 # Save into config.log some information that might help in debugging.
2794 $as_echo "## ---------------- ##
2795 ## Cache variables. ##
2796 ## ---------------- ##"
2798 # The following way of writing the cache mishandles newlines in values,
2800 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2801 eval ac_val=\$$ac_var
2805 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2806 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2809 _ | IFS | as_nl) ;; #(
2810 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2811 *) { eval $ac_var=; unset $ac_var;} ;;
2816 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2817 *${as_nl}ac_space=\ *)
2819 "s/'\''/'\''\\\\'\'''\''/g;
2820 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2823 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2830 $as_echo "## ----------------- ##
2831 ## Output variables. ##
2832 ## ----------------- ##"
2834 for ac_var in $ac_subst_vars
2836 eval ac_val=\$$ac_var
2838 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2840 $as_echo "$ac_var='\''$ac_val'\''"
2844 if test -n "$ac_subst_files"; then
2845 $as_echo "## ------------------- ##
2846 ## File substitutions. ##
2847 ## ------------------- ##"
2849 for ac_var in $ac_subst_files
2851 eval ac_val=\$$ac_var
2853 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2855 $as_echo "$ac_var='\''$ac_val'\''"
2860 if test -s confdefs.h; then
2861 $as_echo "## ----------- ##
2868 test "$ac_signal" != 0 &&
2869 $as_echo "$as_me: caught signal $ac_signal"
2870 $as_echo "$as_me: exit $exit_status"
2872 rm -f core *.core core.conftest.* &&
2873 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2876 for ac_signal in 1 2 13 15; do
2877 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2881 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2882 rm -f -r conftest* confdefs.h
2884 $as_echo "/* confdefs.h */" > confdefs.h
2886 # Predefined preprocessor variables.
2888 cat >>confdefs.h <<_ACEOF
2889 #define PACKAGE_NAME "$PACKAGE_NAME"
2892 cat >>confdefs.h <<_ACEOF
2893 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2896 cat >>confdefs.h <<_ACEOF
2897 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2900 cat >>confdefs.h <<_ACEOF
2901 #define PACKAGE_STRING "$PACKAGE_STRING"
2904 cat >>confdefs.h <<_ACEOF
2905 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2908 cat >>confdefs.h <<_ACEOF
2909 #define PACKAGE_URL "$PACKAGE_URL"
2913 # Let the site file select an alternate cache file if it wants to.
2914 # Prefer an explicitly selected file to automatically selected ones.
2917 if test -n "$CONFIG_SITE"; then
2918 # We do not want a PATH search for config.site.
2919 case $CONFIG_SITE in #((
2920 -*) ac_site_file1=./$CONFIG_SITE;;
2921 */*) ac_site_file1=$CONFIG_SITE;;
2922 *) ac_site_file1=./$CONFIG_SITE;;
2924 elif test "x$prefix" != xNONE; then
2925 ac_site_file1=$prefix/share/config.site
2926 ac_site_file2=$prefix/etc/config.site
2928 ac_site_file1=$ac_default_prefix/share/config.site
2929 ac_site_file2=$ac_default_prefix/etc/config.site
2931 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2933 test "x$ac_site_file" = xNONE && continue
2934 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2935 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2936 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2937 sed 's/^/| /' "$ac_site_file" >&5
2939 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2940 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2941 as_fn_error $? "failed to load site script $ac_site_file
2942 See \`config.log' for more details" "$LINENO" 5; }
2946 if test -r "$cache_file"; then
2947 # Some versions of bash will fail to source /dev/null (special files
2948 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2949 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2951 $as_echo "$as_me: loading cache $cache_file" >&6;}
2953 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2954 *) . "./$cache_file";;
2958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2959 $as_echo "$as_me: creating cache $cache_file" >&6;}
2963 # Check that the precious variables saved in the cache have kept the same
2965 ac_cache_corrupted=false
2966 for ac_var in $ac_precious_vars; do
2967 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2968 eval ac_new_set=\$ac_env_${ac_var}_set
2969 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2970 eval ac_new_val=\$ac_env_${ac_var}_value
2971 case $ac_old_set,$ac_new_set in
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2974 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2975 ac_cache_corrupted=: ;;
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2978 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2979 ac_cache_corrupted=: ;;
2982 if test "x$ac_old_val" != "x$ac_new_val"; then
2983 # differences in whitespace do not lead to failure.
2984 ac_old_val_w=`echo x $ac_old_val`
2985 ac_new_val_w=`echo x $ac_new_val`
2986 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2988 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2989 ac_cache_corrupted=:
2991 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2992 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2993 eval $ac_var=\$ac_old_val
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2996 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2998 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3001 # Pass precious variables to config.status.
3002 if test "$ac_new_set" = set; then
3004 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3005 *) ac_arg=$ac_var=$ac_new_val ;;
3007 case " $ac_configure_args " in
3008 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3009 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3013 if $ac_cache_corrupted; then
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3015 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3017 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3018 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3020 ## -------------------- ##
3021 ## Main body of script. ##
3022 ## -------------------- ##
3025 ac_cpp='$CPP $CPPFLAGS'
3026 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3027 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3028 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3036 # using curl-override.m4
3042 ac_config_headers="$ac_config_headers lib/curl_config.h"
3046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3047 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3048 # Check whether --enable-maintainer-mode was given.
3049 if test "${enable_maintainer_mode+set}" = set; then :
3050 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3052 USE_MAINTAINER_MODE=no
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3056 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3057 if test $USE_MAINTAINER_MODE = yes; then
3058 MAINTAINER_MODE_TRUE=
3059 MAINTAINER_MODE_FALSE='#'
3061 MAINTAINER_MODE_TRUE='#'
3062 MAINTAINER_MODE_FALSE=
3065 MAINT=$MAINTAINER_MODE_TRUE
3068 # Check whether --enable-silent-rules was given.
3069 if test "${enable_silent_rules+set}" = set; then :
3070 enableval=$enable_silent_rules;
3073 case $enable_silent_rules in # (((
3074 yes) AM_DEFAULT_VERBOSITY=0;;
3075 no) AM_DEFAULT_VERBOSITY=1;;
3076 *) AM_DEFAULT_VERBOSITY=0;;
3078 am_make=${MAKE-make}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3080 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3081 if ${am_cv_make_support_nested_variables+:} false; then :
3082 $as_echo_n "(cached) " >&6
3084 if $as_echo 'TRUE=$(BAR$(V))
3090 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3091 am_cv_make_support_nested_variables=yes
3093 am_cv_make_support_nested_variables=no
3096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3097 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3098 if test $am_cv_make_support_nested_variables = yes; then
3100 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3102 AM_V=$AM_DEFAULT_VERBOSITY
3103 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3110 $as_echo_n "checking whether to enable debug build options... " >&6; }
3111 OPT_DEBUG_BUILD="default"
3112 # Check whether --enable-debug was given.
3113 if test "${enable_debug+set}" = set; then :
3114 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3117 case "$OPT_DEBUG_BUILD" in
3127 $as_echo "#define DEBUGBUILD 1" >>confdefs.h
3131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3132 $as_echo "$want_debug" >&6; }
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3136 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3137 OPT_COMPILER_OPTIMIZE="default"
3138 # Check whether --enable-optimize was given.
3139 if test "${enable_optimize+set}" = set; then :
3140 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3143 case "$OPT_COMPILER_OPTIMIZE" in
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3147 $as_echo "no" >&6; }
3150 if test "$want_debug" = "yes"; then
3151 want_optimize="assume_no"
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3153 $as_echo "(assumed) no" >&6; }
3155 want_optimize="assume_yes"
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3157 $as_echo "(assumed) yes" >&6; }
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3163 $as_echo "yes" >&6; }
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3169 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3170 OPT_COMPILER_WARNINGS="default"
3171 # Check whether --enable-warnings was given.
3172 if test "${enable_warnings+set}" = set; then :
3173 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3176 case "$OPT_COMPILER_WARNINGS" in
3181 want_warnings="$want_debug"
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3188 $as_echo "$want_warnings" >&6; }
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3192 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3193 OPT_COMPILER_WERROR="default"
3194 # Check whether --enable-werror was given.
3195 if test "${enable_werror+set}" = set; then :
3196 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3199 case "$OPT_COMPILER_WERROR" in
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3211 $as_echo "$want_werror" >&6; }
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3215 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3216 OPT_CURLDEBUG_BUILD="default"
3217 # Check whether --enable-curldebug was given.
3218 if test "${enable_curldebug+set}" = set; then :
3219 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3222 case "$OPT_CURLDEBUG_BUILD" in
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226 $as_echo "no" >&6; }
3229 if test "$want_debug" = "yes"; then
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3231 $as_echo "(assumed) yes" >&6; }
3233 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3237 $as_echo "no" >&6; }
3239 want_curldebug_assumed="yes"
3240 want_curldebug="$want_debug"
3243 want_curldebug="yes"
3245 $as_echo "#define CURLDEBUG 1" >>confdefs.h
3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3248 $as_echo "yes" >&6; }
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3254 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3255 OPT_SYMBOL_HIDING="default"
3256 # Check whether --enable-symbol-hiding was given.
3257 if test "${enable_symbol_hiding+set}" = set; then :
3258 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3261 # Check whether --enable-hidden-symbols was given.
3262 if test "${enable_hidden_symbols+set}" = set; then :
3263 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3266 case "$OPT_SYMBOL_HIDING" in
3268 want_symbol_hiding="no"
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3270 $as_echo "no" >&6; }
3273 want_symbol_hiding="yes"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3278 want_symbol_hiding="yes"
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3286 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3288 # Check whether --enable-ares was given.
3289 if test "${enable_ares+set}" = set; then :
3290 enableval=$enable_ares; OPT_ARES=$enableval
3302 if test -n "$enableval" && test "$enableval" != "yes"; then
3303 want_ares_path="$enableval"
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3308 $as_echo "$want_ares" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3312 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3314 # Check whether --enable-rt was given.
3315 if test "${enable_rt+set}" = set; then :
3316 enableval=$enable_rt; OPT_RT=$enableval
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3328 $as_echo "(assumed no)" >&6; }
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable ESNI support" >&5
3339 $as_echo_n "checking whether to enable ESNI support... " >&6; }
3341 # Check whether --enable-esni was given.
3342 if test "${enable_esni+set}" = set; then :
3343 enableval=$enable_esni; OPT_ESNI=$enableval
3349 curl_esni_msg="no (--enable-esni)"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351 $as_echo "no" >&6; }
3355 curl_esni_msg="no (--enable-esni)"
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3361 curl_esni_msg="enabled (--disable-esni)"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3370 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3373 if test -z "$xc_configure_preamble_result"; then
3374 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3378 # Check that 'PATH_SEPARATOR' has already been set.
3381 if test -z "$xc_PATH_SEPARATOR"; then
3382 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3384 if test -z "$PATH_SEPARATOR"; then
3385 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3388 $as_echo_n "checking for path separator... " >&6; }
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3390 $as_echo "$PATH_SEPARATOR" >&6; }
3391 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3393 $as_echo_n "checking for initial path separator... " >&6; }
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3395 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3396 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3401 # save the configure arguments
3403 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3406 CURL_CFLAG_EXTRAS=""
3407 if test X"$want_werror" = Xyes; then
3408 CURL_CFLAG_EXTRAS="-Werror"
3409 if test "$compiler_id" = "GNU_C"; then
3410 if test "$compiler_num" -ge "500"; then
3411 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
3417 if test -z "$SED"; then
3418 # Extract the first word of "sed", so it can be a program name with args.
3419 set dummy sed; ac_word=$2
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3421 $as_echo_n "checking for $ac_word... " >&6; }
3422 if ${ac_cv_path_SED+:} false; then :
3423 $as_echo_n "(cached) " >&6
3427 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3431 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3432 for as_dir in $as_dummy
3435 test -z "$as_dir" && as_dir=.
3436 for ac_exec_ext in '' $ac_executable_extensions; do
3437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3438 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3446 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3451 if test -n "$SED"; then
3452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3453 $as_echo "$SED" >&6; }
3455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3456 $as_echo "no" >&6; }
3460 if test -z "$SED" || test "$SED" = "not_found"; then
3461 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3466 if test -z "$GREP"; then
3467 # Extract the first word of "grep", so it can be a program name with args.
3468 set dummy grep; ac_word=$2
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3470 $as_echo_n "checking for $ac_word... " >&6; }
3471 if ${ac_cv_path_GREP+:} false; then :
3472 $as_echo_n "(cached) " >&6
3476 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3481 for as_dir in $as_dummy
3484 test -z "$as_dir" && as_dir=.
3485 for ac_exec_ext in '' $ac_executable_extensions; do
3486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3487 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3495 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3499 GREP=$ac_cv_path_GREP
3500 if test -n "$GREP"; then
3501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3502 $as_echo "$GREP" >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3505 $as_echo "no" >&6; }
3509 if test -z "$GREP" || test "$GREP" = "not_found"; then
3510 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3515 if test -z "$EGREP"; then
3516 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3518 $as_echo_n "checking for egrep... " >&6; }
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3521 $as_echo "$EGREP" >&6; }
3523 # Extract the first word of "egrep", so it can be a program name with args.
3524 set dummy egrep; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if ${ac_cv_path_EGREP+:} false; then :
3528 $as_echo_n "(cached) " >&6
3532 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3536 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3537 for as_dir in $as_dummy
3540 test -z "$as_dir" && as_dir=.
3541 for ac_exec_ext in '' $ac_executable_extensions; do
3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3543 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3555 EGREP=$ac_cv_path_EGREP
3556 if test -n "$EGREP"; then
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3558 $as_echo "$EGREP" >&6; }
3560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3561 $as_echo "no" >&6; }
3567 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3568 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3572 if test -z "$AR"; then
3573 if test -n "$ac_tool_prefix"; then
3574 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3575 set dummy ${ac_tool_prefix}ar; ac_word=$2
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3577 $as_echo_n "checking for $ac_word... " >&6; }
3578 if ${ac_cv_path_AR+:} false; then :
3579 $as_echo_n "(cached) " >&6
3583 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3588 for as_dir in $as_dummy
3591 test -z "$as_dir" && as_dir=.
3592 for ac_exec_ext in '' $ac_executable_extensions; do
3593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3594 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3606 if test -n "$AR"; then
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3608 $as_echo "$AR" >&6; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3611 $as_echo "no" >&6; }
3616 if test -z "$ac_cv_path_AR"; then
3618 # Extract the first word of "ar", so it can be a program name with args.
3619 set dummy ar; ac_word=$2
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3621 $as_echo_n "checking for $ac_word... " >&6; }
3622 if ${ac_cv_path_ac_pt_AR+:} false; then :
3623 $as_echo_n "(cached) " >&6
3627 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3631 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3632 for as_dir in $as_dummy
3635 test -z "$as_dir" && as_dir=.
3636 for ac_exec_ext in '' $ac_executable_extensions; do
3637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3638 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3639 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649 ac_pt_AR=$ac_cv_path_ac_pt_AR
3650 if test -n "$ac_pt_AR"; then
3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3652 $as_echo "$ac_pt_AR" >&6; }
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3655 $as_echo "no" >&6; }
3658 if test "x$ac_pt_AR" = x; then
3661 case $cross_compiling:$ac_tool_warned in
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3665 ac_tool_warned=yes ;;
3673 if test -z "$AR" || test "$AR" = "not_found"; then
3674 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3681 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3683 xc_prog_cc_prev_IFS=$IFS
3684 xc_prog_cc_prev_LIBS=$LIBS
3685 xc_prog_cc_prev_CFLAGS=$CFLAGS
3686 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3687 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3692 for xc_word in $LIBS; do
3702 if test $xc_bad_var_libs = yes; then
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3704 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3705 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3706 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3710 xc_bad_var_ldflags=no
3711 for xc_word in $LDFLAGS; do
3714 xc_bad_var_ldflags=yes
3717 xc_bad_var_ldflags=yes
3720 xc_bad_var_ldflags=yes
3723 xc_bad_var_ldflags=yes
3727 if test $xc_bad_var_ldflags = yes; then
3728 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3729 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3730 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3731 for xc_word in $LDFLAGS; do
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3735 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3738 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3739 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3743 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3747 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3754 xc_bad_var_cppflags=no
3755 for xc_word in $CPPFLAGS; do
3758 xc_bad_var_cppflags=yes
3760 -L* | --library-path=*)
3761 xc_bad_var_cppflags=yes
3764 xc_bad_var_cppflags=yes
3768 if test $xc_bad_var_cppflags = yes; then
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3770 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3771 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3772 for xc_word in $CPPFLAGS; do
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3776 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3778 -L* | --library-path=*)
3779 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3780 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3783 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3784 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3791 xc_bad_var_cflags=no
3792 for xc_word in $CFLAGS; do
3795 xc_bad_var_cflags=yes
3798 xc_bad_var_cflags=yes
3801 xc_bad_var_cflags=yes
3804 xc_bad_var_cflags=yes
3806 -L* | --library-path=*)
3807 xc_bad_var_cflags=yes
3810 xc_bad_var_cflags=yes
3814 if test $xc_bad_var_cflags = yes; then
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3816 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3817 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3818 for xc_word in $CFLAGS; do
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3822 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3826 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3830 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3833 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3834 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3836 -L* | --library-path=*)
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3838 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3842 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3848 if test $xc_bad_var_libs = yes ||
3849 test $xc_bad_var_cflags = yes ||
3850 test $xc_bad_var_ldflags = yes ||
3851 test $xc_bad_var_cppflags = yes; then
3852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3853 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3857 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3858 if test -f "$ac_dir/install-sh"; then
3860 ac_install_sh="$ac_aux_dir/install-sh -c"
3862 elif test -f "$ac_dir/install.sh"; then
3864 ac_install_sh="$ac_aux_dir/install.sh -c"
3866 elif test -f "$ac_dir/shtool"; then
3868 ac_install_sh="$ac_aux_dir/shtool install -c"
3872 if test -z "$ac_aux_dir"; then
3873 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3876 # These three variables are undocumented and unsupported,
3877 # and are intended to be withdrawn in a future Autoconf release.
3878 # They can cause serious problems if a builder's source tree is in a directory
3879 # whose full name contains unusual characters.
3880 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3881 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3882 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3885 # Find a good install program. We prefer a C program (faster),
3886 # so one script is as good as another. But avoid the broken or
3887 # incompatible versions:
3888 # SysV /etc/install, /usr/sbin/install
3889 # SunOS /usr/etc/install
3890 # IRIX /sbin/install
3892 # AmigaOS /C/install, which installs bootblocks on floppy discs
3893 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3894 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3895 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3896 # OS/2's system install, which has a completely different semantic
3897 # ./install, which can be erroneously created by make from ./install.sh.
3898 # Reject install programs that cannot install multiple files.
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3900 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3901 if test -z "$INSTALL"; then
3902 if ${ac_cv_path_install+:} false; then :
3903 $as_echo_n "(cached) " >&6
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3909 test -z "$as_dir" && as_dir=.
3910 # Account for people who put trailing slashes in PATH elements.
3911 case $as_dir/ in #((
3912 ./ | .// | /[cC]/* | \
3913 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3914 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3917 # OSF1 and SCO ODT 3.0 have their own names for install.
3918 # Don't use installbsd from OSF since it installs stuff as root
3920 for ac_prog in ginstall scoinst install; do
3921 for ac_exec_ext in '' $ac_executable_extensions; do
3922 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3923 if test $ac_prog = install &&
3924 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3925 # AIX install. It has an incompatible calling convention.
3927 elif test $ac_prog = install &&
3928 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3929 # program-specific install script used by HP pwplus--don't use.
3932 rm -rf conftest.one conftest.two conftest.dir
3933 echo one > conftest.one
3934 echo two > conftest.two
3936 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3937 test -s conftest.one && test -s conftest.two &&
3938 test -s conftest.dir/conftest.one &&
3939 test -s conftest.dir/conftest.two
3941 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3954 rm -rf conftest.one conftest.two conftest.dir
3957 if test "${ac_cv_path_install+set}" = set; then
3958 INSTALL=$ac_cv_path_install
3960 # As a last resort, use the slow shell script. Don't cache a
3961 # value for INSTALL within a source directory, because that will
3962 # break other packages using the cache if that directory is
3963 # removed, or if the value is a relative name.
3964 INSTALL=$ac_install_sh
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3968 $as_echo "$INSTALL" >&6; }
3970 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3971 # It thinks the first close brace ends the variable substitution.
3972 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3974 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3976 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3978 # Expand $ac_aux_dir to an absolute path.
3979 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3982 ac_cpp='$CPP $CPPFLAGS'
3983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3986 if test -n "$ac_tool_prefix"; then
3987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3990 $as_echo_n "checking for $ac_word... " >&6; }
3991 if ${ac_cv_prog_CC+:} false; then :
3992 $as_echo_n "(cached) " >&6
3994 if test -n "$CC"; then
3995 ac_cv_prog_CC="$CC" # Let the user override the test.
3997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 test -z "$as_dir" && as_dir=.
4002 for ac_exec_ext in '' $ac_executable_extensions; do
4003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 if test -n "$CC"; then
4016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4017 $as_echo "$CC" >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4025 if test -z "$ac_cv_prog_CC"; then
4027 # Extract the first word of "gcc", so it can be a program name with args.
4028 set dummy gcc; ac_word=$2
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4030 $as_echo_n "checking for $ac_word... " >&6; }
4031 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4032 $as_echo_n "(cached) " >&6
4034 if test -n "$ac_ct_CC"; then
4035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 test -z "$as_dir" && as_dir=.
4042 for ac_exec_ext in '' $ac_executable_extensions; do
4043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4044 ac_cv_prog_ac_ct_CC="gcc"
4045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4055 if test -n "$ac_ct_CC"; then
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4057 $as_echo "$ac_ct_CC" >&6; }
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060 $as_echo "no" >&6; }
4063 if test "x$ac_ct_CC" = x; then
4066 case $cross_compiling:$ac_tool_warned in
4068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4070 ac_tool_warned=yes ;;
4078 if test -z "$CC"; then
4079 if test -n "$ac_tool_prefix"; then
4080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4081 set dummy ${ac_tool_prefix}cc; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CC+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -n "$CC"; then
4088 ac_cv_prog_CC="$CC" # Let the user override the test.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CC="${ac_tool_prefix}cc"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$CC"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4110 $as_echo "$CC" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4119 if test -z "$CC"; then
4120 # Extract the first word of "cc", so it can be a program name with args.
4121 set dummy cc; ac_word=$2
4122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4123 $as_echo_n "checking for $ac_word... " >&6; }
4124 if ${ac_cv_prog_CC+:} false; then :
4125 $as_echo_n "(cached) " >&6
4127 if test -n "$CC"; then
4128 ac_cv_prog_CC="$CC" # Let the user override the test.
4131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 test -z "$as_dir" && as_dir=.
4136 for ac_exec_ext in '' $ac_executable_extensions; do
4137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4139 ac_prog_rejected=yes
4143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4150 if test $ac_prog_rejected = yes; then
4151 # We found a bogon in the path, so make sure we never use it.
4152 set dummy $ac_cv_prog_CC
4154 if test $# != 0; then
4155 # We chose a different compiler from the bogus one.
4156 # However, it has the same basename, so the bogon will be chosen
4157 # first if we set CC to just the basename; use the full file name.
4159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4165 if test -n "$CC"; then
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4167 $as_echo "$CC" >&6; }
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4170 $as_echo "no" >&6; }
4175 if test -z "$CC"; then
4176 if test -n "$ac_tool_prefix"; then
4177 for ac_prog in cl.exe
4179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4182 $as_echo_n "checking for $ac_word... " >&6; }
4183 if ${ac_cv_prog_CC+:} false; then :
4184 $as_echo_n "(cached) " >&6
4186 if test -n "$CC"; then
4187 ac_cv_prog_CC="$CC" # Let the user override the test.
4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 test -z "$as_dir" && as_dir=.
4194 for ac_exec_ext in '' $ac_executable_extensions; do
4195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207 if test -n "$CC"; then
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4209 $as_echo "$CC" >&6; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4212 $as_echo "no" >&6; }
4216 test -n "$CC" && break
4219 if test -z "$CC"; then
4221 for ac_prog in cl.exe
4223 # Extract the first word of "$ac_prog", so it can be a program name with args.
4224 set dummy $ac_prog; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4228 $as_echo_n "(cached) " >&6
4230 if test -n "$ac_ct_CC"; then
4231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_ac_ct_CC="$ac_prog"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4251 if test -n "$ac_ct_CC"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4253 $as_echo "$ac_ct_CC" >&6; }
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4260 test -n "$ac_ct_CC" && break
4263 if test "x$ac_ct_CC" = x; then
4266 case $cross_compiling:$ac_tool_warned in
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4270 ac_tool_warned=yes ;;
4279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4281 as_fn_error $? "no acceptable C compiler found in \$PATH
4282 See \`config.log' for more details" "$LINENO" 5; }
4284 # Provide some information about the compiler.
4285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4288 for ac_option in --version -v -V -qversion; do
4289 { { ac_try="$ac_compiler $ac_option >&5"
4291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4292 *) ac_try_echo=$ac_try;;
4294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4295 $as_echo "$ac_try_echo"; } >&5
4296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4298 if test -s conftest.err; then
4300 ... rest of stderr output deleted ...
4301 10q' conftest.err >conftest.er1
4302 cat conftest.er1 >&5
4304 rm -f conftest.er1 conftest.err
4305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4306 test $ac_status = 0; }
4309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4310 /* end confdefs.h. */
4319 ac_clean_files_save=$ac_clean_files
4320 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4321 # Try to create an executable without -o first, disregard a.out.
4322 # It will help us diagnose broken compilers, and finding out an intuition
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4325 $as_echo_n "checking whether the C compiler works... " >&6; }
4326 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4328 # The possible output files:
4329 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4332 for ac_file in $ac_files
4335 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4336 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4341 if { { ac_try="$ac_link_default"
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_link_default") 2>&5
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; }; then :
4352 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4353 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4354 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4355 # so that the user can short-circuit this test for compilers unknown to
4357 for ac_file in $ac_files ''
4359 test -f "$ac_file" || continue
4361 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4364 # We found the default executable, but exeext='' is most
4368 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4370 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4372 # We set ac_cv_exeext here because the later test for it is not
4373 # safe: cross compilers may not add the suffix if given an `-o'
4374 # argument, so we may need to know it at that point already.
4375 # Even if this section looks crufty: it has the advantage of
4382 test "$ac_cv_exeext" = no && ac_cv_exeext=
4387 if test -z "$ac_file"; then :
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4389 $as_echo "no" >&6; }
4390 $as_echo "$as_me: failed program was:" >&5
4391 sed 's/^/| /' conftest.$ac_ext >&5
4393 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4394 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4395 as_fn_error 77 "C compiler cannot create executables
4396 See \`config.log' for more details" "$LINENO" 5; }
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4399 $as_echo "yes" >&6; }
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4402 $as_echo_n "checking for C compiler default output file name... " >&6; }
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4404 $as_echo "$ac_file" >&6; }
4405 ac_exeext=$ac_cv_exeext
4407 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4408 ac_clean_files=$ac_clean_files_save
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4410 $as_echo_n "checking for suffix of executables... " >&6; }
4411 if { { ac_try="$ac_link"
4413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4414 *) ac_try_echo=$ac_try;;
4416 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4417 $as_echo "$ac_try_echo"; } >&5
4418 (eval "$ac_link") 2>&5
4420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4421 test $ac_status = 0; }; then :
4422 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4423 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4424 # work properly (i.e., refer to `conftest.exe'), while it won't with
4426 for ac_file in conftest.exe conftest conftest.*; do
4427 test -f "$ac_file" || continue
4429 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4430 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4436 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4437 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4438 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4439 See \`config.log' for more details" "$LINENO" 5; }
4441 rm -f conftest conftest$ac_cv_exeext
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4443 $as_echo "$ac_cv_exeext" >&6; }
4445 rm -f conftest.$ac_ext
4446 EXEEXT=$ac_cv_exeext
4448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4449 /* end confdefs.h. */
4453 FILE *f = fopen ("conftest.out", "w");
4454 return ferror (f) || fclose (f) != 0;
4460 ac_clean_files="$ac_clean_files conftest.out"
4461 # Check that the compiler produces executables we can run. If not, either
4462 # the compiler is broken, or we cross compile.
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4464 $as_echo_n "checking whether we are cross compiling... " >&6; }
4465 if test "$cross_compiling" != yes; then
4466 { { ac_try="$ac_link"
4468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4469 *) ac_try_echo=$ac_try;;
4471 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4472 $as_echo "$ac_try_echo"; } >&5
4473 (eval "$ac_link") 2>&5
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }
4477 if { ac_try='./conftest$ac_cv_exeext'
4478 { { case "(($ac_try" in
4479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480 *) ac_try_echo=$ac_try;;
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484 (eval "$ac_try") 2>&5
4486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487 test $ac_status = 0; }; }; then
4490 if test "$cross_compiling" = maybe; then
4493 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $? "cannot run C compiled programs.
4496 If you meant to cross compile, use \`--host'.
4497 See \`config.log' for more details" "$LINENO" 5; }
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4502 $as_echo "$cross_compiling" >&6; }
4504 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4505 ac_clean_files=$ac_clean_files_save
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4507 $as_echo_n "checking for suffix of object files... " >&6; }
4508 if ${ac_cv_objext+:} false; then :
4509 $as_echo_n "(cached) " >&6
4511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4521 rm -f conftest.o conftest.obj
4522 if { { ac_try="$ac_compile"
4524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4525 *) ac_try_echo=$ac_try;;
4527 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_compile") 2>&5
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
4533 for ac_file in conftest.o conftest.obj conftest.*; do
4534 test -f "$ac_file" || continue;
4536 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4537 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4542 $as_echo "$as_me: failed program was:" >&5
4543 sed 's/^/| /' conftest.$ac_ext >&5
4545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4547 as_fn_error $? "cannot compute suffix of object files: cannot compile
4548 See \`config.log' for more details" "$LINENO" 5; }
4550 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4553 $as_echo "$ac_cv_objext" >&6; }
4554 OBJEXT=$ac_cv_objext
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4557 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4558 if ${ac_cv_c_compiler_gnu+:} false; then :
4559 $as_echo_n "(cached) " >&6
4561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4562 /* end confdefs.h. */
4574 if ac_fn_c_try_compile "$LINENO"; then :
4579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4580 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4584 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4585 if test $ac_compiler_gnu = yes; then
4590 ac_test_CFLAGS=${CFLAGS+set}
4591 ac_save_CFLAGS=$CFLAGS
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4593 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4594 if ${ac_cv_prog_cc_g+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 ac_save_c_werror_flag=$ac_c_werror_flag
4598 ac_c_werror_flag=yes
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4611 if ac_fn_c_try_compile "$LINENO"; then :
4615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4616 /* end confdefs.h. */
4625 if ac_fn_c_try_compile "$LINENO"; then :
4628 ac_c_werror_flag=$ac_save_c_werror_flag
4630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4631 /* end confdefs.h. */
4640 if ac_fn_c_try_compile "$LINENO"; then :
4643 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4648 ac_c_werror_flag=$ac_save_c_werror_flag
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4651 $as_echo "$ac_cv_prog_cc_g" >&6; }
4652 if test "$ac_test_CFLAGS" = set; then
4653 CFLAGS=$ac_save_CFLAGS
4654 elif test $ac_cv_prog_cc_g = yes; then
4655 if test "$GCC" = yes; then
4661 if test "$GCC" = yes; then
4667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4668 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4669 if ${ac_cv_prog_cc_c89+:} false; then :
4670 $as_echo_n "(cached) " >&6
4672 ac_cv_prog_cc_c89=no
4674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4675 /* end confdefs.h. */
4679 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4680 struct buf { int x; };
4681 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4682 static char *e (p, i)
4688 static char *f (char * (*g) (char **, int), char **p, ...)
4693 s = g (p, va_arg (v,int));
4698 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4699 function prototypes and stuff, but not '\xHH' hex character constants.
4700 These don't provoke an error unfortunately, instead are silently treated
4701 as 'x'. The following induces an error, until -std is added to get
4702 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4703 array size at least. It's necessary to write '\x00'==0 to get something
4704 that's true only with -std. */
4705 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4707 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4708 inside strings and character constants. */
4710 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4712 int test (int i, double x);
4713 struct s1 {int (*f) (int a);};
4714 struct s2 {int (*f) (double a);};
4715 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4720 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4725 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4726 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4728 CC="$ac_save_CC $ac_arg"
4729 if ac_fn_c_try_compile "$LINENO"; then :
4730 ac_cv_prog_cc_c89=$ac_arg
4732 rm -f core conftest.err conftest.$ac_objext
4733 test "x$ac_cv_prog_cc_c89" != "xno" && break
4735 rm -f conftest.$ac_ext
4740 case "x$ac_cv_prog_cc_c89" in
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4743 $as_echo "none needed" >&6; } ;;
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4746 $as_echo "unsupported" >&6; } ;;
4748 CC="$CC $ac_cv_prog_cc_c89"
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4750 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4752 if test "x$ac_cv_prog_cc_c89" != xno; then :
4757 ac_cpp='$CPP $CPPFLAGS'
4758 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4759 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4760 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4768 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4769 if ${am_cv_prog_cc_c_o+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4782 # Make sure it works both with $CC and with simple cc.
4783 # Following AC_PROG_CC_C_O, we do the test twice because some
4784 # compilers refuse to overwrite an existing .o file with -o,
4785 # though they will create one.
4786 am_cv_prog_cc_c_o=yes
4788 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4789 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4792 (exit $ac_status); } \
4793 && test -f conftest2.$ac_objext; then
4796 am_cv_prog_cc_c_o=no
4800 rm -f core conftest*
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4804 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4805 if test "$am_cv_prog_cc_c_o" != yes; then
4806 # Losing compiler, so override with the script.
4807 # FIXME: It is wrong to rewrite CC.
4808 # But if we don't then we get into trouble of one sort or another.
4809 # A longer-term fix would be to have automake use am__CC in this case,
4810 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4811 CC="$am_aux_dir/compile $CC"
4814 ac_cpp='$CPP $CPPFLAGS'
4815 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4816 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4817 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4822 ac_cpp='$CPP $CPPFLAGS'
4823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4827 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4828 # On Suns, sometimes $CPP names a directory.
4829 if test -n "$CPP" && test -d "$CPP"; then
4832 if test -z "$CPP"; then
4833 if ${ac_cv_prog_CPP+:} false; then :
4834 $as_echo_n "(cached) " >&6
4836 # Double quotes because CPP needs to be expanded
4837 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4840 for ac_c_preproc_warn_flag in '' yes
4842 # Use a header file that comes with gcc, so configuring glibc
4843 # with a fresh cross-compiler works.
4844 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4845 # <limits.h> exists even on freestanding compilers.
4846 # On the NeXT, cc -E runs the code through the compiler's parser,
4847 # not just through cpp. "Syntax error" is here to catch this case.
4848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4849 /* end confdefs.h. */
4851 # include <limits.h>
4853 # include <assert.h>
4857 if ac_fn_c_try_cpp "$LINENO"; then :
4860 # Broken: fails on valid input.
4863 rm -f conftest.err conftest.i conftest.$ac_ext
4865 # OK, works on sane cases. Now check whether nonexistent headers
4866 # can be detected and how.
4867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4868 /* end confdefs.h. */
4869 #include <ac_nonexistent.h>
4871 if ac_fn_c_try_cpp "$LINENO"; then :
4872 # Broken: success on invalid input.
4875 # Passes both tests.
4879 rm -f conftest.err conftest.i conftest.$ac_ext
4882 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4883 rm -f conftest.i conftest.err conftest.$ac_ext
4884 if $ac_preproc_ok; then :
4896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4897 $as_echo "$CPP" >&6; }
4899 for ac_c_preproc_warn_flag in '' yes
4901 # Use a header file that comes with gcc, so configuring glibc
4902 # with a fresh cross-compiler works.
4903 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4904 # <limits.h> exists even on freestanding compilers.
4905 # On the NeXT, cc -E runs the code through the compiler's parser,
4906 # not just through cpp. "Syntax error" is here to catch this case.
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h. */
4910 # include <limits.h>
4912 # include <assert.h>
4916 if ac_fn_c_try_cpp "$LINENO"; then :
4919 # Broken: fails on valid input.
4922 rm -f conftest.err conftest.i conftest.$ac_ext
4924 # OK, works on sane cases. Now check whether nonexistent headers
4925 # can be detected and how.
4926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4927 /* end confdefs.h. */
4928 #include <ac_nonexistent.h>
4930 if ac_fn_c_try_cpp "$LINENO"; then :
4931 # Broken: success on invalid input.
4934 # Passes both tests.
4938 rm -f conftest.err conftest.i conftest.$ac_ext
4941 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4942 rm -f conftest.i conftest.err conftest.$ac_ext
4943 if $ac_preproc_ok; then :
4946 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4947 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4948 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4949 See \`config.log' for more details" "$LINENO" 5; }
4953 ac_cpp='$CPP $CPPFLAGS'
4954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4959 IFS=$xc_prog_cc_prev_IFS
4960 LIBS=$xc_prog_cc_prev_LIBS
4961 CFLAGS=$xc_prog_cc_prev_CFLAGS
4962 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4963 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4971 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4972 if ${ac_cv_path_SED+:} false; then :
4973 $as_echo_n "(cached) " >&6
4975 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4976 for ac_i in 1 2 3 4 5 6 7; do
4977 ac_script="$ac_script$as_nl$ac_script"
4979 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4980 { ac_script=; unset ac_script;}
4981 if test -z "$SED"; then
4982 ac_path_SED_found=false
4983 # Loop through the user's path and test for each of PROGNAME-LIST
4984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4988 test -z "$as_dir" && as_dir=.
4989 for ac_prog in sed gsed; do
4990 for ac_exec_ext in '' $ac_executable_extensions; do
4991 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4992 as_fn_executable_p "$ac_path_SED" || continue
4993 # Check for GNU ac_path_SED and select it if it is found.
4994 # Check for GNU $ac_path_SED
4995 case `"$ac_path_SED" --version 2>&1` in
4997 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5000 $as_echo_n 0123456789 >"conftest.in"
5003 cat "conftest.in" "conftest.in" >"conftest.tmp"
5004 mv "conftest.tmp" "conftest.in"
5005 cp "conftest.in" "conftest.nl"
5006 $as_echo '' >> "conftest.nl"
5007 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5008 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5009 as_fn_arith $ac_count + 1 && ac_count=$as_val
5010 if test $ac_count -gt ${ac_path_SED_max-0}; then
5011 # Best one so far, save it but keep looking for a better one
5012 ac_cv_path_SED="$ac_path_SED"
5013 ac_path_SED_max=$ac_count
5015 # 10*(2^10) chars as input seems more than enough
5016 test $ac_count -gt 10 && break
5018 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5021 $ac_path_SED_found && break 3
5026 if test -z "$ac_cv_path_SED"; then
5027 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5035 $as_echo "$ac_cv_path_SED" >&6; }
5036 SED="$ac_cv_path_SED"
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5043 $as_echo_n "checking for code coverage support... " >&6; }
5045 curl_coverage_msg="disabled"
5047 # Check whether --enable-code-coverage was given.
5048 if test "${enable_code_coverage+set}" = set; then :
5049 enableval=$enable_code_coverage; coverage="$enableval"
5053 if test "$GCC" != "yes" ; then :
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5057 $as_echo "$coverage" >&6; }
5059 if test "x$coverage" = "xyes"; then
5060 curl_coverage_msg="enabled"
5062 if test -n "$ac_tool_prefix"; then
5063 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5064 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5066 $as_echo_n "checking for $ac_word... " >&6; }
5067 if ${ac_cv_prog_GCOV+:} false; then :
5068 $as_echo_n "(cached) " >&6
5070 if test -n "$GCOV"; then
5071 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5080 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 GCOV=$ac_cv_prog_GCOV
5091 if test -n "$GCOV"; then
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5093 $as_echo "$GCOV" >&6; }
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5096 $as_echo "no" >&6; }
5101 if test -z "$ac_cv_prog_GCOV"; then
5103 # Extract the first word of "gcov", so it can be a program name with args.
5104 set dummy gcov; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$ac_ct_GCOV"; then
5111 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_ac_ct_GCOV="gcov"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5131 if test -n "$ac_ct_GCOV"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5133 $as_echo "$ac_ct_GCOV" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5139 if test "x$ac_ct_GCOV" = x; then
5142 case $cross_compiling:$ac_tool_warned in
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5146 ac_tool_warned=yes ;;
5151 GCOV="$ac_cv_prog_GCOV"
5154 if test -z "$GCOV"; then
5155 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5157 # Extract the first word of "lcov", so it can be a program name with args.
5158 set dummy lcov; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_LCOV+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 if test -n "$LCOV"; then
5165 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_LCOV="lcov"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 LCOV=$ac_cv_prog_LCOV
5185 if test -n "$LCOV"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5187 $as_echo "$LCOV" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 if test -z "$LCOV"; then
5195 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5198 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5199 CFLAGS="$CLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5204 am__api_version='1.16'
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5207 $as_echo_n "checking whether build environment is sane... " >&6; }
5208 # Reject unsafe characters in $srcdir or the absolute working directory
5209 # name. Accept space and tab only in the latter.
5213 *[\\\"\#\$\&\'\`$am_lf]*)
5214 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5217 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5218 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5221 # Do 'set' in a subshell so we don't clobber the current shell's
5222 # arguments. Must try -L first in case configure is actually a
5223 # symlink; some systems play weird games with the mod time of symlinks
5224 # (eg FreeBSD returns the mod time of the symlink's containing
5228 for am_try in 1 2; do
5229 echo "timestamp, slept: $am_has_slept" > conftest.file
5230 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5231 if test "$*" = "X"; then
5233 set X `ls -t "$srcdir/configure" conftest.file`
5235 if test "$*" != "X $srcdir/configure conftest.file" \
5236 && test "$*" != "X conftest.file $srcdir/configure"; then
5238 # If neither matched, then we have a broken ls. This can happen
5239 # if, for instance, CONFIG_SHELL is bash and it inherits a
5240 # broken ls alias from the environment. This has actually
5241 # happened. Such a system could not be considered "sane".
5242 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5243 alias in your environment" "$LINENO" 5
5245 if test "$2" = conftest.file || test $am_try -eq 2; then
5252 test "$2" = conftest.file
5258 as_fn_error $? "newly created file is older than distributed files!
5259 Check your system clock" "$LINENO" 5
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5262 $as_echo "yes" >&6; }
5263 # If we didn't sleep, we still need to ensure time stamps of config.status and
5264 # generated files are strictly newer.
5266 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5273 test "$program_prefix" != NONE &&
5274 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5275 # Use a double $ so make ignores it.
5276 test "$program_suffix" != NONE &&
5277 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5278 # Double any \ or $.
5279 # By default was `s,x,x', remove it if useless.
5280 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5281 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5283 if test x"${MISSING+set}" != xset; then
5286 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5288 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5291 # Use eval to expand $SHELL
5292 if eval "$MISSING --is-lightweight"; then
5293 am_missing_run="$MISSING "
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5297 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5300 if test x"${install_sh+set}" != xset; then
5303 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5305 install_sh="\${SHELL} $am_aux_dir/install-sh"
5309 # Installed binaries are usually stripped using 'strip' when the user
5310 # run "make install-strip". However 'strip' might not be the right
5311 # tool to use in cross-compilation environments, therefore Automake
5312 # will honor the 'STRIP' environment variable to overrule this program.
5313 if test "$cross_compiling" != no; then
5314 if test -n "$ac_tool_prefix"; then
5315 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5316 set dummy ${ac_tool_prefix}strip; ac_word=$2
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5318 $as_echo_n "checking for $ac_word... " >&6; }
5319 if ${ac_cv_prog_STRIP+:} false; then :
5320 $as_echo_n "(cached) " >&6
5322 if test -n "$STRIP"; then
5323 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5329 test -z "$as_dir" && as_dir=.
5330 for ac_exec_ext in '' $ac_executable_extensions; do
5331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5332 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5342 STRIP=$ac_cv_prog_STRIP
5343 if test -n "$STRIP"; then
5344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5345 $as_echo "$STRIP" >&6; }
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5348 $as_echo "no" >&6; }
5353 if test -z "$ac_cv_prog_STRIP"; then
5355 # Extract the first word of "strip", so it can be a program name with args.
5356 set dummy strip; ac_word=$2
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5358 $as_echo_n "checking for $ac_word... " >&6; }
5359 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5360 $as_echo_n "(cached) " >&6
5362 if test -n "$ac_ct_STRIP"; then
5363 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5369 test -z "$as_dir" && as_dir=.
5370 for ac_exec_ext in '' $ac_executable_extensions; do
5371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5372 ac_cv_prog_ac_ct_STRIP="strip"
5373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5382 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5383 if test -n "$ac_ct_STRIP"; then
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5385 $as_echo "$ac_ct_STRIP" >&6; }
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5388 $as_echo "no" >&6; }
5391 if test "x$ac_ct_STRIP" = x; then
5394 case $cross_compiling:$ac_tool_warned in
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5397 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5398 ac_tool_warned=yes ;;
5403 STRIP="$ac_cv_prog_STRIP"
5407 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5410 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5411 if test -z "$MKDIR_P"; then
5412 if ${ac_cv_path_mkdir+:} false; then :
5413 $as_echo_n "(cached) " >&6
5415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5416 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5419 test -z "$as_dir" && as_dir=.
5420 for ac_prog in mkdir gmkdir; do
5421 for ac_exec_ext in '' $ac_executable_extensions; do
5422 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5423 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5424 'mkdir (GNU coreutils) '* | \
5425 'mkdir (coreutils) '* | \
5426 'mkdir (fileutils) '4.1*)
5427 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5437 test -d ./--version && rmdir ./--version
5438 if test "${ac_cv_path_mkdir+set}" = set; then
5439 MKDIR_P="$ac_cv_path_mkdir -p"
5441 # As a last resort, use the slow shell script. Don't cache a
5442 # value for MKDIR_P within a source directory, because that will
5443 # break other packages using the cache if that directory is
5444 # removed, or if the value is a relative name.
5445 MKDIR_P="$ac_install_sh -d"
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5449 $as_echo "$MKDIR_P" >&6; }
5451 for ac_prog in gawk mawk nawk awk
5453 # Extract the first word of "$ac_prog", so it can be a program name with args.
5454 set dummy $ac_prog; ac_word=$2
5455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5456 $as_echo_n "checking for $ac_word... " >&6; }
5457 if ${ac_cv_prog_AWK+:} false; then :
5458 $as_echo_n "(cached) " >&6
5460 if test -n "$AWK"; then
5461 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5467 test -z "$as_dir" && as_dir=.
5468 for ac_exec_ext in '' $ac_executable_extensions; do
5469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5470 ac_cv_prog_AWK="$ac_prog"
5471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 if test -n "$AWK"; then
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5483 $as_echo "$AWK" >&6; }
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5490 test -n "$AWK" && break
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5494 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5496 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5497 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5498 $as_echo_n "(cached) " >&6
5500 cat >conftest.make <<\_ACEOF
5503 @echo '@@@%%%=$(MAKE)=@@@%%%'
5505 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5506 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5508 eval ac_cv_prog_make_${ac_make}_set=yes;;
5510 eval ac_cv_prog_make_${ac_make}_set=no;;
5514 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5516 $as_echo "yes" >&6; }
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5520 $as_echo "no" >&6; }
5521 SET_MAKE="MAKE=${MAKE-make}"
5524 rm -rf .tst 2>/dev/null
5525 mkdir .tst 2>/dev/null
5526 if test -d .tst; then
5531 rmdir .tst 2>/dev/null
5533 DEPDIR="${am__leading_dot}deps"
5535 ac_config_commands="$ac_config_commands depfiles"
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
5538 $as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
5539 cat > confinc.mk << 'END'
5541 @echo this is the am__doit target >confinc.out
5546 # BSD make does it like this.
5547 echo '.include "confinc.mk" # ignored' > confmf.BSD
5548 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
5549 echo 'include confinc.mk # ignored' > confmf.GNU
5551 for s in GNU BSD; do
5552 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
5553 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5556 (exit $ac_status); }
5557 case $?:`cat confinc.out 2>/dev/null` in #(
5558 '0:this is the am__doit target') :
5561 am__include='.include' am__quote='"' ;; #(
5563 am__include='include' am__quote='' ;;
5568 if test "$am__include" != "#"; then
5569 _am_result="yes ($s style)"
5573 rm -f confinc.* confmf.*
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
5575 $as_echo "${_am_result}" >&6; }
5577 # Check whether --enable-dependency-tracking was given.
5578 if test "${enable_dependency_tracking+set}" = set; then :
5579 enableval=$enable_dependency_tracking;
5582 if test "x$enable_dependency_tracking" != xno; then
5583 am_depcomp="$ac_aux_dir/depcomp"
5587 if test "x$enable_dependency_tracking" != xno; then
5596 ## --------------------------------------- ##
5597 ## Start of automake initialization code ##
5598 ## --------------------------------------- ##
5600 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5601 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5602 # is not polluted with repeated "-I."
5603 am__isrc=' -I$(srcdir)'
5604 # test to see if srcdir already configured
5605 if test -f $srcdir/config.status; then
5606 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5610 # test whether we have cygpath
5611 if test -z "$CYGPATH_W"; then
5612 if (cygpath --version) >/dev/null 2>/dev/null; then
5613 CYGPATH_W='cygpath -w'
5620 # Define the identity of the package.
5625 cat >>confdefs.h <<_ACEOF
5626 #define PACKAGE "$PACKAGE"
5630 cat >>confdefs.h <<_ACEOF
5631 #define VERSION "$VERSION"
5634 # Some tools Automake needs.
5636 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5639 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5642 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5645 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5648 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5650 # For better backward compatibility. To be removed once Automake 1.9.x
5651 # dies out for good. For more background, see:
5652 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5653 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5654 mkdir_p='$(MKDIR_P)'
5656 # We need awk for the "check" target (and possibly the TAP driver). The
5657 # system "awk" is bad on some platforms.
5658 # Always define AMTAR for backward compatibility. Yes, it's still used
5659 # in the wild :-( We should find a proper way to deprecate it ...
5663 # We'll loop over all known methods to create a tar archive until one works.
5664 _am_tools='gnutar pax cpio none'
5666 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5672 depcc="$CC" am_compiler_list=
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5675 $as_echo_n "checking dependency style of $depcc... " >&6; }
5676 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5677 $as_echo_n "(cached) " >&6
5679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5680 # We make a subdir and do the tests there. Otherwise we can end up
5681 # making bogus files that we don't know about and never remove. For
5682 # instance it was reported that on HP-UX the gcc test will end up
5683 # making a dummy file named 'D' -- because '-MD' means "put the output
5687 # Copy depcomp to subdir because otherwise we won't find it if we're
5688 # using a relative directory.
5689 cp "$am_depcomp" conftest.dir
5691 # We will build objects and dependencies in a subdirectory because
5692 # it helps to detect inapplicable dependency modes. For instance
5693 # both Tru64's cc and ICC support -MD to output dependencies as a
5694 # side effect of compilation, but ICC will put the dependencies in
5695 # the current directory while Tru64 will put them in the object
5699 am_cv_CC_dependencies_compiler_type=none
5700 if test "$am_compiler_list" = ""; then
5701 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5704 case " $depcc " in #(
5705 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5708 for depmode in $am_compiler_list; do
5709 # Setup a source with many dependencies, because some compilers
5710 # like to wrap large dependency lists on column 80 (with \), and
5711 # we should not choose a depcomp mode which is confused by this.
5713 # We need to recreate these files for each test, as the compiler may
5714 # overwrite some of them when testing with obscure command lines.
5715 # This happens at least with the AIX C compiler.
5717 for i in 1 2 3 4 5 6; do
5718 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5719 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5720 # Solaris 10 /bin/sh.
5721 echo '/* dummy */' > sub/conftst$i.h
5723 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5725 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5726 # mode. It turns out that the SunPro C++ compiler does not properly
5727 # handle '-M -o', and we need to detect this. Also, some Intel
5728 # versions had trouble with output in subdirs.
5729 am__obj=sub/conftest.${OBJEXT-o}
5730 am__minus_obj="-o $am__obj"
5733 # This depmode causes a compiler race in universal mode.
5734 test "$am__universal" = false || continue
5737 # After this tag, mechanisms are not by side-effect, so they'll
5738 # only be used when explicitly requested.
5739 if test "x$enable_dependency_tracking" = xyes; then
5745 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5746 # This compiler won't grok '-c -o', but also, the minuso test has
5747 # not run yet. These depmodes are late enough in the game, and
5748 # so weak that their functioning should not be impacted.
5749 am__obj=conftest.${OBJEXT-o}
5754 if depmode=$depmode \
5755 source=sub/conftest.c object=$am__obj \
5756 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5757 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5758 >/dev/null 2>conftest.err &&
5759 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5760 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5761 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5762 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5763 # icc doesn't choke on unknown options, it will just issue warnings
5764 # or remarks (even with -Werror). So we grep stderr for any message
5765 # that says an option was ignored or not supported.
5766 # When given -MP, icc 7.0 and 7.1 complain thusly:
5767 # icc: Command line warning: ignoring option '-M'; no argument required
5768 # The diagnosis changed in icc 8.0:
5769 # icc: Command line remark: option '-MP' not supported
5770 if (grep 'ignoring option' conftest.err ||
5771 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5772 am_cv_CC_dependencies_compiler_type=$depmode
5781 am_cv_CC_dependencies_compiler_type=none
5785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5786 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5787 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5790 test "x$enable_dependency_tracking" != xno \
5791 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5793 am__fastdepCC_FALSE='#'
5795 am__fastdepCC_TRUE='#'
5796 am__fastdepCC_FALSE=
5801 # POSIX will say in a future version that running "rm -f" with no argument
5802 # is OK; and we want to be able to make that assumption in our Makefile
5803 # recipes. So use an aggressive probe to check that the usage we want is
5804 # actually supported "in the wild" to an acceptable degree.
5805 # See automake bug#10828.
5806 # To make any issue more visible, cause the running configure to be aborted
5807 # by default if the 'rm' program in use doesn't match our expectations; the
5808 # user can still override this though.
5809 if rm -f && rm -fr && rm -rf; then : OK; else
5813 Your 'rm' program seems unable to run without file operands specified
5814 on the command line, even when the '-f' option is present. This is contrary
5815 to the behaviour of most rm programs out there, and not conforming with
5816 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5818 Please tell bug-automake@gnu.org about your system, including the value
5819 of your $PATH and any error possibly output before this message. This
5820 can help us improve future automake versions.
5823 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5824 echo 'Configuration will proceed anyway, since you have set the' >&2
5825 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5829 Aborting the configuration process, to ensure you take notice of the issue.
5831 You can download and install GNU coreutils to get an 'rm' implementation
5832 that behaves properly: <https://www.gnu.org/software/coreutils/>.
5834 If you want to complete the configuration process using your problematic
5835 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5836 to "yes", and re-run configure.
5839 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5843 ## ------------------------------------- ##
5844 ## End of automake initialization code ##
5845 ## ------------------------------------- ##
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5849 $as_echo_n "checking curl version... " >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5851 $as_echo "$CURLVERSION" >&6; }
5855 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
5858 PKGADD_PKG="HAXXcurl"
5859 PKGADD_NAME="curl - a client that groks URLs"
5860 PKGADD_VENDOR="curl.haxx.se"
5865 curl_ssl_msg="no (--with-{ssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,mesalink,amissl,bearssl} )"
5866 curl_ssh_msg="no (--with-{libssh,libssh2})"
5867 curl_zlib_msg="no (--with-zlib)"
5868 curl_brotli_msg="no (--with-brotli)"
5869 curl_gss_msg="no (--with-gssapi)"
5870 curl_tls_srp_msg="no (--enable-tls-srp)"
5871 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5872 curl_ipv6_msg="no (--enable-ipv6)"
5873 curl_unix_sockets_msg="no (--enable-unix-sockets)"
5874 curl_idn_msg="no (--with-{libidn2,winidn})"
5875 curl_manual_msg="no (--enable-manual)"
5876 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5877 curl_verbose_msg="enabled (--disable-verbose)"
5878 curl_sspi_msg="no (--enable-sspi)"
5879 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5880 curl_ldaps_msg="no (--enable-ldaps)"
5881 curl_rtsp_msg="no (--enable-rtsp)"
5882 curl_rtmp_msg="no (--with-librtmp)"
5883 curl_mtlnk_msg="no (--with-libmetalink)"
5884 curl_psl_msg="no (--with-libpsl)"
5888 INITIAL_LDFLAGS=$LDFLAGS
5892 # Make sure we can run config.sub.
5893 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5894 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5897 $as_echo_n "checking build system type... " >&6; }
5898 if ${ac_cv_build+:} false; then :
5899 $as_echo_n "(cached) " >&6
5901 ac_build_alias=$build_alias
5902 test "x$ac_build_alias" = x &&
5903 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5904 test "x$ac_build_alias" = x &&
5905 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5906 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5907 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5911 $as_echo "$ac_cv_build" >&6; }
5912 case $ac_cv_build in
5914 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5917 ac_save_IFS=$IFS; IFS='-'
5923 # Remember, the first character of IFS is used to create $*,
5924 # except with old shells:
5927 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5931 $as_echo_n "checking host system type... " >&6; }
5932 if ${ac_cv_host+:} false; then :
5933 $as_echo_n "(cached) " >&6
5935 if test "x$host_alias" = x; then
5936 ac_cv_host=$ac_cv_build
5938 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5939 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5944 $as_echo "$ac_cv_host" >&6; }
5947 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5950 ac_save_IFS=$IFS; IFS='-'
5956 # Remember, the first character of IFS is used to create $*,
5957 # except with old shells:
5960 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5964 cat >>confdefs.h <<_ACEOF
5965 #define OS "${host}"
5969 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5976 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5977 if ${ac_cv_path_GREP+:} false; then :
5978 $as_echo_n "(cached) " >&6
5980 if test -z "$GREP"; then
5981 ac_path_GREP_found=false
5982 # Loop through the user's path and test for each of PROGNAME-LIST
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5987 test -z "$as_dir" && as_dir=.
5988 for ac_prog in grep ggrep; do
5989 for ac_exec_ext in '' $ac_executable_extensions; do
5990 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5991 as_fn_executable_p "$ac_path_GREP" || continue
5992 # Check for GNU ac_path_GREP and select it if it is found.
5993 # Check for GNU $ac_path_GREP
5994 case `"$ac_path_GREP" --version 2>&1` in
5996 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5999 $as_echo_n 0123456789 >"conftest.in"
6002 cat "conftest.in" "conftest.in" >"conftest.tmp"
6003 mv "conftest.tmp" "conftest.in"
6004 cp "conftest.in" "conftest.nl"
6005 $as_echo 'GREP' >> "conftest.nl"
6006 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6007 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6008 as_fn_arith $ac_count + 1 && ac_count=$as_val
6009 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6010 # Best one so far, save it but keep looking for a better one
6011 ac_cv_path_GREP="$ac_path_GREP"
6012 ac_path_GREP_max=$ac_count
6014 # 10*(2^10) chars as input seems more than enough
6015 test $ac_count -gt 10 && break
6017 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6020 $ac_path_GREP_found && break 3
6025 if test -z "$ac_cv_path_GREP"; then
6026 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6029 ac_cv_path_GREP=$GREP
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6034 $as_echo "$ac_cv_path_GREP" >&6; }
6035 GREP="$ac_cv_path_GREP"
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6039 $as_echo_n "checking for egrep... " >&6; }
6040 if ${ac_cv_path_EGREP+:} false; then :
6041 $as_echo_n "(cached) " >&6
6043 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6044 then ac_cv_path_EGREP="$GREP -E"
6046 if test -z "$EGREP"; then
6047 ac_path_EGREP_found=false
6048 # Loop through the user's path and test for each of PROGNAME-LIST
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6053 test -z "$as_dir" && as_dir=.
6054 for ac_prog in egrep; do
6055 for ac_exec_ext in '' $ac_executable_extensions; do
6056 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6057 as_fn_executable_p "$ac_path_EGREP" || continue
6058 # Check for GNU ac_path_EGREP and select it if it is found.
6059 # Check for GNU $ac_path_EGREP
6060 case `"$ac_path_EGREP" --version 2>&1` in
6062 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6065 $as_echo_n 0123456789 >"conftest.in"
6068 cat "conftest.in" "conftest.in" >"conftest.tmp"
6069 mv "conftest.tmp" "conftest.in"
6070 cp "conftest.in" "conftest.nl"
6071 $as_echo 'EGREP' >> "conftest.nl"
6072 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6074 as_fn_arith $ac_count + 1 && ac_count=$as_val
6075 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6076 # Best one so far, save it but keep looking for a better one
6077 ac_cv_path_EGREP="$ac_path_EGREP"
6078 ac_path_EGREP_max=$ac_count
6080 # 10*(2^10) chars as input seems more than enough
6081 test $ac_count -gt 10 && break
6083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6086 $ac_path_EGREP_found && break 3
6091 if test -z "$ac_cv_path_EGREP"; then
6092 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6095 ac_cv_path_EGREP=$EGREP
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6101 $as_echo "$ac_cv_path_EGREP" >&6; }
6102 EGREP="$ac_cv_path_EGREP"
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6108 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6110 /* end confdefs.h. */
6117 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6118 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6121 $as_echo "yes" >&6; }
6122 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 $as_echo "no" >&6; }
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6138 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6140 /* end confdefs.h. */
6150 force compilation error
6158 if ac_fn_c_try_compile "$LINENO"; then :
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6161 $as_echo "yes" >&6; }
6162 tmp_thread_safe_initially_defined="yes"
6166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6167 $as_echo "no" >&6; }
6168 tmp_thread_safe_initially_defined="no"
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6173 if test "$tmp_thread_safe_initially_defined" = "no"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6175 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6178 aix[123].* | aix4.[012].*)
6179 tmp_need_thread_safe="no"
6182 tmp_need_thread_safe="yes"
6185 tmp_need_thread_safe="no"
6189 if test "$tmp_need_thread_safe" = "yes"; then
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6191 $as_echo "yes" >&6; }
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6194 $as_echo "no" >&6; }
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6199 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6200 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6201 test "$tmp_need_thread_safe" = "yes"; then
6204 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6206 cat >>confdefs.h <<_EOF
6207 #ifndef _THREAD_SAFE
6208 # define _THREAD_SAFE
6212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6213 $as_echo "yes" >&6; }
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6216 $as_echo "no" >&6; }
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6223 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6225 /* end confdefs.h. */
6235 force compilation error
6243 if ac_fn_c_try_compile "$LINENO"; then :
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6246 $as_echo "yes" >&6; }
6247 tmp_reentrant_initially_defined="yes"
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6252 $as_echo "no" >&6; }
6253 tmp_reentrant_initially_defined="no"
6256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6258 if test "$tmp_reentrant_initially_defined" = "no"; then
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6260 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6264 tmp_need_reentrant="yes"
6267 tmp_need_reentrant="no"
6271 if test "$tmp_need_reentrant" = "no"; then
6273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6274 /* end confdefs.h. */
6290 if ac_fn_c_try_compile "$LINENO"; then :
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 if test "$tmp_errno" = "yes"; then
6301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6302 /* end confdefs.h. */
6313 force compilation error
6321 if ac_fn_c_try_compile "$LINENO"; then :
6323 tmp_errno="errno_macro_defined"
6327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6328 /* end confdefs.h. */
6340 force compilation error
6348 if ac_fn_c_try_compile "$LINENO"; then :
6350 tmp_errno="errno_macro_needs_reentrant"
6351 tmp_need_reentrant="yes"
6354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6361 if test "$tmp_need_reentrant" = "no"; then
6363 if test "$tmp_need_reentrant" = "no"; then
6365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6366 /* end confdefs.h. */
6369 #define gmtime_r innocuous_gmtime_r
6371 # include <limits.h>
6373 # include <assert.h>
6380 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6392 if ac_fn_c_try_link "$LINENO"; then :
6401 rm -f core conftest.err conftest.$ac_objext \
6402 conftest$ac_exeext conftest.$ac_ext
6403 if test "$tmp_gmtime_r" = "yes"; then
6404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6405 /* end confdefs.h. */
6407 #include <sys/types.h>
6411 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6412 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6414 tmp_gmtime_r="proto_declared"
6418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6419 /* end confdefs.h. */
6422 #include <sys/types.h>
6426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6427 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6429 tmp_gmtime_r="proto_needs_reentrant"
6430 tmp_need_reentrant="yes"
6442 if test "$tmp_need_reentrant" = "no"; then
6444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6445 /* end confdefs.h. */
6448 #define localtime_r innocuous_localtime_r
6450 # include <limits.h>
6452 # include <assert.h>
6458 char localtime_r ();
6459 #if defined __stub_localtime_r || defined __stub___localtime_r
6465 return localtime_r ();
6471 if ac_fn_c_try_link "$LINENO"; then :
6473 tmp_localtime_r="yes"
6477 tmp_localtime_r="no"
6480 rm -f core conftest.err conftest.$ac_objext \
6481 conftest$ac_exeext conftest.$ac_ext
6482 if test "$tmp_localtime_r" = "yes"; then
6483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6484 /* end confdefs.h. */
6486 #include <sys/types.h>
6490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6491 $EGREP "localtime_r" >/dev/null 2>&1; then :
6493 tmp_localtime_r="proto_declared"
6497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6498 /* end confdefs.h. */
6501 #include <sys/types.h>
6505 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6506 $EGREP "localtime_r" >/dev/null 2>&1; then :
6508 tmp_localtime_r="proto_needs_reentrant"
6509 tmp_need_reentrant="yes"
6521 if test "$tmp_need_reentrant" = "no"; then
6523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6524 /* end confdefs.h. */
6527 #define strerror_r innocuous_strerror_r
6529 # include <limits.h>
6531 # include <assert.h>
6538 #if defined __stub_strerror_r || defined __stub___strerror_r
6544 return strerror_r ();
6550 if ac_fn_c_try_link "$LINENO"; then :
6552 tmp_strerror_r="yes"
6559 rm -f core conftest.err conftest.$ac_objext \
6560 conftest$ac_exeext conftest.$ac_ext
6561 if test "$tmp_strerror_r" = "yes"; then
6562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6563 /* end confdefs.h. */
6565 #include <sys/types.h>
6569 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6570 $EGREP "strerror_r" >/dev/null 2>&1; then :
6572 tmp_strerror_r="proto_declared"
6576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6577 /* end confdefs.h. */
6580 #include <sys/types.h>
6584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6585 $EGREP "strerror_r" >/dev/null 2>&1; then :
6587 tmp_strerror_r="proto_needs_reentrant"
6588 tmp_need_reentrant="yes"
6600 if test "$tmp_need_reentrant" = "no"; then
6602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6603 /* end confdefs.h. */
6606 #define strtok_r innocuous_strtok_r
6608 # include <limits.h>
6610 # include <assert.h>
6617 #if defined __stub_strtok_r || defined __stub___strtok_r
6629 if ac_fn_c_try_link "$LINENO"; then :
6638 rm -f core conftest.err conftest.$ac_objext \
6639 conftest$ac_exeext conftest.$ac_ext
6640 if test "$tmp_strtok_r" = "yes"; then
6641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6642 /* end confdefs.h. */
6644 #include <sys/types.h>
6648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6649 $EGREP "strtok_r" >/dev/null 2>&1; then :
6651 tmp_strtok_r="proto_declared"
6655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6656 /* end confdefs.h. */
6659 #include <sys/types.h>
6663 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6664 $EGREP "strtok_r" >/dev/null 2>&1; then :
6666 tmp_strtok_r="proto_needs_reentrant"
6667 tmp_need_reentrant="yes"
6679 if test "$tmp_need_reentrant" = "no"; then
6681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6682 /* end confdefs.h. */
6685 #define inet_ntoa_r innocuous_inet_ntoa_r
6687 # include <limits.h>
6689 # include <assert.h>
6695 char inet_ntoa_r ();
6696 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6702 return inet_ntoa_r ();
6708 if ac_fn_c_try_link "$LINENO"; then :
6710 tmp_inet_ntoa_r="yes"
6714 tmp_inet_ntoa_r="no"
6717 rm -f core conftest.err conftest.$ac_objext \
6718 conftest$ac_exeext conftest.$ac_ext
6719 if test "$tmp_inet_ntoa_r" = "yes"; then
6720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6721 /* end confdefs.h. */
6723 #include <sys/types.h>
6724 #include <sys/socket.h>
6725 #include <netinet/in.h>
6726 #include <arpa/inet.h>
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6732 tmp_inet_ntoa_r="proto_declared"
6736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6737 /* end confdefs.h. */
6740 #include <sys/types.h>
6741 #include <sys/socket.h>
6742 #include <netinet/in.h>
6743 #include <arpa/inet.h>
6746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6747 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6749 tmp_inet_ntoa_r="proto_needs_reentrant"
6750 tmp_need_reentrant="yes"
6762 if test "$tmp_need_reentrant" = "no"; then
6764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6765 /* end confdefs.h. */
6768 #define gethostbyaddr_r innocuous_gethostbyaddr_r
6770 # include <limits.h>
6772 # include <assert.h>
6774 #undef gethostbyaddr_r
6778 char gethostbyaddr_r ();
6779 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
6785 return gethostbyaddr_r ();
6791 if ac_fn_c_try_link "$LINENO"; then :
6793 tmp_gethostbyaddr_r="yes"
6797 tmp_gethostbyaddr_r="no"
6800 rm -f core conftest.err conftest.$ac_objext \
6801 conftest$ac_exeext conftest.$ac_ext
6802 if test "$tmp_gethostbyaddr_r" = "yes"; then
6803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6804 /* end confdefs.h. */
6806 #include <sys/types.h>
6810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6811 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6813 tmp_gethostbyaddr_r="proto_declared"
6817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6818 /* end confdefs.h. */
6821 #include <sys/types.h>
6825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6826 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
6828 tmp_gethostbyaddr_r="proto_needs_reentrant"
6829 tmp_need_reentrant="yes"
6841 if test "$tmp_need_reentrant" = "no"; then
6843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6844 /* end confdefs.h. */
6847 #define gethostbyname_r innocuous_gethostbyname_r
6849 # include <limits.h>
6851 # include <assert.h>
6853 #undef gethostbyname_r
6857 char gethostbyname_r ();
6858 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
6864 return gethostbyname_r ();
6870 if ac_fn_c_try_link "$LINENO"; then :
6872 tmp_gethostbyname_r="yes"
6876 tmp_gethostbyname_r="no"
6879 rm -f core conftest.err conftest.$ac_objext \
6880 conftest$ac_exeext conftest.$ac_ext
6881 if test "$tmp_gethostbyname_r" = "yes"; then
6882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6883 /* end confdefs.h. */
6885 #include <sys/types.h>
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6892 tmp_gethostbyname_r="proto_declared"
6896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6897 /* end confdefs.h. */
6900 #include <sys/types.h>
6904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6905 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
6907 tmp_gethostbyname_r="proto_needs_reentrant"
6908 tmp_need_reentrant="yes"
6920 if test "$tmp_need_reentrant" = "no"; then
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6926 #define getprotobyname_r innocuous_getprotobyname_r
6928 # include <limits.h>
6930 # include <assert.h>
6932 #undef getprotobyname_r
6936 char getprotobyname_r ();
6937 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
6943 return getprotobyname_r ();
6949 if ac_fn_c_try_link "$LINENO"; then :
6951 tmp_getprotobyname_r="yes"
6955 tmp_getprotobyname_r="no"
6958 rm -f core conftest.err conftest.$ac_objext \
6959 conftest$ac_exeext conftest.$ac_ext
6960 if test "$tmp_getprotobyname_r" = "yes"; then
6961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6962 /* end confdefs.h. */
6964 #include <sys/types.h>
6968 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6969 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6971 tmp_getprotobyname_r="proto_declared"
6975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6976 /* end confdefs.h. */
6979 #include <sys/types.h>
6983 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6984 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
6986 tmp_getprotobyname_r="proto_needs_reentrant"
6987 tmp_need_reentrant="yes"
6999 if test "$tmp_need_reentrant" = "no"; then
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7005 #define getservbyport_r innocuous_getservbyport_r
7007 # include <limits.h>
7009 # include <assert.h>
7011 #undef getservbyport_r
7015 char getservbyport_r ();
7016 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7022 return getservbyport_r ();
7028 if ac_fn_c_try_link "$LINENO"; then :
7030 tmp_getservbyport_r="yes"
7034 tmp_getservbyport_r="no"
7037 rm -f core conftest.err conftest.$ac_objext \
7038 conftest$ac_exeext conftest.$ac_ext
7039 if test "$tmp_getservbyport_r" = "yes"; then
7040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7041 /* end confdefs.h. */
7043 #include <sys/types.h>
7047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7048 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7050 tmp_getservbyport_r="proto_declared"
7054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7055 /* end confdefs.h. */
7058 #include <sys/types.h>
7062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7063 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7065 tmp_getservbyport_r="proto_needs_reentrant"
7066 tmp_need_reentrant="yes"
7080 if test "$tmp_need_reentrant" = "yes"; then
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7082 $as_echo "yes" >&6; }
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7085 $as_echo "no" >&6; }
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7090 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7091 if test "$tmp_reentrant_initially_defined" = "yes" ||
7092 test "$tmp_need_reentrant" = "yes"; then
7095 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7097 cat >>confdefs.h <<_EOF
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7104 $as_echo "yes" >&6; }
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7107 $as_echo "no" >&6; }
7112 # Check whether --enable-largefile was given.
7113 if test "${enable_largefile+set}" = set; then :
7114 enableval=$enable_largefile;
7117 if test "$enable_largefile" != no; then
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7120 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7121 if ${ac_cv_sys_largefile_CC+:} false; then :
7122 $as_echo_n "(cached) " >&6
7124 ac_cv_sys_largefile_CC=no
7125 if test "$GCC" != yes; then
7128 # IRIX 6.2 and later do not support large files by default,
7129 # so use the C compiler's -n32 option if that helps.
7130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7131 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 /* Check that off_t can represent 2**63 - 1 correctly.
7134 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7135 since some C++ compilers masquerading as C compilers
7136 incorrectly reject 9223372036854775807. */
7137 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7138 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7139 && LARGE_OFF_T % 2147483647 == 1)
7148 if ac_fn_c_try_compile "$LINENO"; then :
7151 rm -f core conftest.err conftest.$ac_objext
7153 if ac_fn_c_try_compile "$LINENO"; then :
7154 ac_cv_sys_largefile_CC=' -n32'; break
7156 rm -f core conftest.err conftest.$ac_objext
7160 rm -f conftest.$ac_ext
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7164 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7165 if test "$ac_cv_sys_largefile_CC" != no; then
7166 CC=$CC$ac_cv_sys_largefile_CC
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7170 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7171 if ${ac_cv_sys_file_offset_bits+:} false; then :
7172 $as_echo_n "(cached) " >&6
7175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7176 /* end confdefs.h. */
7177 #include <sys/types.h>
7178 /* Check that off_t can represent 2**63 - 1 correctly.
7179 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7180 since some C++ compilers masquerading as C compilers
7181 incorrectly reject 9223372036854775807. */
7182 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7184 && LARGE_OFF_T % 2147483647 == 1)
7193 if ac_fn_c_try_compile "$LINENO"; then :
7194 ac_cv_sys_file_offset_bits=no; break
7196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7198 /* end confdefs.h. */
7199 #define _FILE_OFFSET_BITS 64
7200 #include <sys/types.h>
7201 /* Check that off_t can represent 2**63 - 1 correctly.
7202 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7203 since some C++ compilers masquerading as C compilers
7204 incorrectly reject 9223372036854775807. */
7205 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7206 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7207 && LARGE_OFF_T % 2147483647 == 1)
7216 if ac_fn_c_try_compile "$LINENO"; then :
7217 ac_cv_sys_file_offset_bits=64; break
7219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7220 ac_cv_sys_file_offset_bits=unknown
7224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7225 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7226 case $ac_cv_sys_file_offset_bits in #(
7229 cat >>confdefs.h <<_ACEOF
7230 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7235 if test $ac_cv_sys_file_offset_bits = unknown; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7237 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7238 if ${ac_cv_sys_large_files+:} false; then :
7239 $as_echo_n "(cached) " >&6
7242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7243 /* end confdefs.h. */
7244 #include <sys/types.h>
7245 /* Check that off_t can represent 2**63 - 1 correctly.
7246 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7247 since some C++ compilers masquerading as C compilers
7248 incorrectly reject 9223372036854775807. */
7249 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7250 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7251 && LARGE_OFF_T % 2147483647 == 1)
7260 if ac_fn_c_try_compile "$LINENO"; then :
7261 ac_cv_sys_large_files=no; break
7263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7265 /* end confdefs.h. */
7266 #define _LARGE_FILES 1
7267 #include <sys/types.h>
7268 /* Check that off_t can represent 2**63 - 1 correctly.
7269 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7270 since some C++ compilers masquerading as C compilers
7271 incorrectly reject 9223372036854775807. */
7272 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7273 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7274 && LARGE_OFF_T % 2147483647 == 1)
7283 if ac_fn_c_try_compile "$LINENO"; then :
7284 ac_cv_sys_large_files=1; break
7286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7287 ac_cv_sys_large_files=unknown
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7292 $as_echo "$ac_cv_sys_large_files" >&6; }
7293 case $ac_cv_sys_large_files in #(
7296 cat >>confdefs.h <<_ACEOF
7297 #define _LARGE_FILES $ac_cv_sys_large_files
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7311 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7316 macro_version='2.4.6'
7317 macro_revision='2.4.6'
7331 ltmain=$ac_aux_dir/ltmain.sh
7333 # Backslashify metacharacters that are still active within
7334 # double-quoted strings.
7335 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7337 # Same as above, but do not quote variable references.
7338 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7340 # Sed substitution to delay expansion of an escaped shell variable in a
7341 # double_quote_subst'ed string.
7342 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7344 # Sed substitution to delay expansion of an escaped single quote.
7345 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7347 # Sed substitution to avoid accidental globbing in evaled expressions
7348 no_glob_subst='s/\*/\\\*/g'
7350 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7351 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7352 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7355 $as_echo_n "checking how to print strings... " >&6; }
7356 # Test print first, because it will be a builtin if present.
7357 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7358 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7360 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7363 # Use this function as a fallback that always works.
7364 func_fallback_echo ()
7366 eval 'cat <<_LTECHO_EOF
7370 ECHO='func_fallback_echo'
7373 # func_echo_all arg...
7374 # Invoke $ECHO with all args, space-separated.
7381 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7382 $as_echo "printf" >&6; } ;;
7383 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7384 $as_echo "print -r" >&6; } ;;
7385 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7386 $as_echo "cat" >&6; } ;;
7402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7403 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7404 if ${ac_cv_path_SED+:} false; then :
7405 $as_echo_n "(cached) " >&6
7407 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7408 for ac_i in 1 2 3 4 5 6 7; do
7409 ac_script="$ac_script$as_nl$ac_script"
7411 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7412 { ac_script=; unset ac_script;}
7413 if test -z "$SED"; then
7414 ac_path_SED_found=false
7415 # Loop through the user's path and test for each of PROGNAME-LIST
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7420 test -z "$as_dir" && as_dir=.
7421 for ac_prog in sed gsed; do
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7424 as_fn_executable_p "$ac_path_SED" || continue
7425 # Check for GNU ac_path_SED and select it if it is found.
7426 # Check for GNU $ac_path_SED
7427 case `"$ac_path_SED" --version 2>&1` in
7429 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7432 $as_echo_n 0123456789 >"conftest.in"
7435 cat "conftest.in" "conftest.in" >"conftest.tmp"
7436 mv "conftest.tmp" "conftest.in"
7437 cp "conftest.in" "conftest.nl"
7438 $as_echo '' >> "conftest.nl"
7439 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7440 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7441 as_fn_arith $ac_count + 1 && ac_count=$as_val
7442 if test $ac_count -gt ${ac_path_SED_max-0}; then
7443 # Best one so far, save it but keep looking for a better one
7444 ac_cv_path_SED="$ac_path_SED"
7445 ac_path_SED_max=$ac_count
7447 # 10*(2^10) chars as input seems more than enough
7448 test $ac_count -gt 10 && break
7450 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7453 $ac_path_SED_found && break 3
7458 if test -z "$ac_cv_path_SED"; then
7459 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7467 $as_echo "$ac_cv_path_SED" >&6; }
7468 SED="$ac_cv_path_SED"
7471 test -z "$SED" && SED=sed
7472 Xsed="$SED -e 1s/^X//"
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7485 $as_echo_n "checking for fgrep... " >&6; }
7486 if ${ac_cv_path_FGREP+:} false; then :
7487 $as_echo_n "(cached) " >&6
7489 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7490 then ac_cv_path_FGREP="$GREP -F"
7492 if test -z "$FGREP"; then
7493 ac_path_FGREP_found=false
7494 # Loop through the user's path and test for each of PROGNAME-LIST
7495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7496 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7499 test -z "$as_dir" && as_dir=.
7500 for ac_prog in fgrep; do
7501 for ac_exec_ext in '' $ac_executable_extensions; do
7502 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7503 as_fn_executable_p "$ac_path_FGREP" || continue
7504 # Check for GNU ac_path_FGREP and select it if it is found.
7505 # Check for GNU $ac_path_FGREP
7506 case `"$ac_path_FGREP" --version 2>&1` in
7508 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7511 $as_echo_n 0123456789 >"conftest.in"
7514 cat "conftest.in" "conftest.in" >"conftest.tmp"
7515 mv "conftest.tmp" "conftest.in"
7516 cp "conftest.in" "conftest.nl"
7517 $as_echo 'FGREP' >> "conftest.nl"
7518 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7520 as_fn_arith $ac_count + 1 && ac_count=$as_val
7521 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7522 # Best one so far, save it but keep looking for a better one
7523 ac_cv_path_FGREP="$ac_path_FGREP"
7524 ac_path_FGREP_max=$ac_count
7526 # 10*(2^10) chars as input seems more than enough
7527 test $ac_count -gt 10 && break
7529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7532 $ac_path_FGREP_found && break 3
7537 if test -z "$ac_cv_path_FGREP"; then
7538 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7541 ac_cv_path_FGREP=$FGREP
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7547 $as_echo "$ac_cv_path_FGREP" >&6; }
7548 FGREP="$ac_cv_path_FGREP"
7551 test -z "$GREP" && GREP=grep
7571 # Check whether --with-gnu-ld was given.
7572 if test "${with_gnu_ld+set}" = set; then :
7573 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7579 if test yes = "$GCC"; then
7580 # Check if gcc -print-prog-name=ld gives a path.
7581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7582 $as_echo_n "checking for ld used by $CC... " >&6; }
7585 # gcc leaves a trailing carriage return, which upsets mingw
7586 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7588 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7591 # Accept absolute paths.
7593 re_direlt='/[^/][^/]*/\.\./'
7594 # Canonicalize the pathname of ld
7595 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7596 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7597 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7599 test -z "$LD" && LD=$ac_prog
7602 # If it fails, then pretend we aren't using GCC.
7606 # If it is relative, then search for the first ld in PATH.
7610 elif test yes = "$with_gnu_ld"; then
7611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7612 $as_echo_n "checking for GNU ld... " >&6; }
7614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7615 $as_echo_n "checking for non-GNU ld... " >&6; }
7617 if ${lt_cv_path_LD+:} false; then :
7618 $as_echo_n "(cached) " >&6
7620 if test -z "$LD"; then
7621 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7622 for ac_dir in $PATH; do
7624 test -z "$ac_dir" && ac_dir=.
7625 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7626 lt_cv_path_LD=$ac_dir/$ac_prog
7627 # Check to see if the program is GNU ld. I'd rather use --version,
7628 # but apparently some variants of GNU ld only accept -v.
7629 # Break only if it was the GNU/non-GNU ld that we prefer.
7630 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7631 *GNU* | *'with BFD'*)
7632 test no != "$with_gnu_ld" && break
7635 test yes != "$with_gnu_ld" && break
7642 lt_cv_path_LD=$LD # Let the user override the test with a path.
7647 if test -n "$LD"; then
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7649 $as_echo "$LD" >&6; }
7651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7652 $as_echo "no" >&6; }
7654 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7656 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7657 if ${lt_cv_prog_gnu_ld+:} false; then :
7658 $as_echo_n "(cached) " >&6
7660 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7661 case `$LD -v 2>&1 </dev/null` in
7662 *GNU* | *'with BFD'*)
7663 lt_cv_prog_gnu_ld=yes
7666 lt_cv_prog_gnu_ld=no
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7671 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7672 with_gnu_ld=$lt_cv_prog_gnu_ld
7682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7683 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7684 if ${lt_cv_path_NM+:} false; then :
7685 $as_echo_n "(cached) " >&6
7687 if test -n "$NM"; then
7688 # Let the user override the test.
7691 lt_nm_to_check=${ac_tool_prefix}nm
7692 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7693 lt_nm_to_check="$lt_nm_to_check nm"
7695 for lt_tmp_nm in $lt_nm_to_check; do
7696 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7697 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7699 test -z "$ac_dir" && ac_dir=.
7700 tmp_nm=$ac_dir/$lt_tmp_nm
7701 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7702 # Check to see if the nm accepts a BSD-compat flag.
7703 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7704 # nm: unknown option "B" ignored
7705 # Tru64's nm complains that /dev/null is an invalid object file
7706 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7708 mingw*) lt_bad_file=conftest.nm/nofile ;;
7709 *) lt_bad_file=/dev/null ;;
7711 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7712 *$lt_bad_file* | *'Invalid file or object type'*)
7713 lt_cv_path_NM="$tmp_nm -B"
7717 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7719 lt_cv_path_NM="$tmp_nm -p"
7723 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7724 continue # so that we can try to find one that supports BSD flags
7733 : ${lt_cv_path_NM=no}
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7737 $as_echo "$lt_cv_path_NM" >&6; }
7738 if test no != "$lt_cv_path_NM"; then
7741 # Didn't find any BSD compatible name lister, look for dumpbin.
7742 if test -n "$DUMPBIN"; then :
7743 # Let the user override the test.
7745 if test -n "$ac_tool_prefix"; then
7746 for ac_prog in dumpbin "link -dump"
7748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7751 $as_echo_n "checking for $ac_word... " >&6; }
7752 if ${ac_cv_prog_DUMPBIN+:} false; then :
7753 $as_echo_n "(cached) " >&6
7755 if test -n "$DUMPBIN"; then
7756 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7762 test -z "$as_dir" && as_dir=.
7763 for ac_exec_ext in '' $ac_executable_extensions; do
7764 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7765 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7775 DUMPBIN=$ac_cv_prog_DUMPBIN
7776 if test -n "$DUMPBIN"; then
7777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7778 $as_echo "$DUMPBIN" >&6; }
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7781 $as_echo "no" >&6; }
7785 test -n "$DUMPBIN" && break
7788 if test -z "$DUMPBIN"; then
7789 ac_ct_DUMPBIN=$DUMPBIN
7790 for ac_prog in dumpbin "link -dump"
7792 # Extract the first word of "$ac_prog", so it can be a program name with args.
7793 set dummy $ac_prog; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$ac_ct_DUMPBIN"; then
7800 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7809 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7820 if test -n "$ac_ct_DUMPBIN"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7822 $as_echo "$ac_ct_DUMPBIN" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7829 test -n "$ac_ct_DUMPBIN" && break
7832 if test "x$ac_ct_DUMPBIN" = x; then
7835 case $cross_compiling:$ac_tool_warned in
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7839 ac_tool_warned=yes ;;
7841 DUMPBIN=$ac_ct_DUMPBIN
7845 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
7847 DUMPBIN="$DUMPBIN -symbols -headers"
7855 if test : != "$DUMPBIN"; then
7859 test -z "$NM" && NM=nm
7866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7867 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7868 if ${lt_cv_nm_interface+:} false; then :
7869 $as_echo_n "(cached) " >&6
7871 lt_cv_nm_interface="BSD nm"
7872 echo "int some_variable = 0;" > conftest.$ac_ext
7873 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7874 (eval "$ac_compile" 2>conftest.err)
7875 cat conftest.err >&5
7876 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7877 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7878 cat conftest.err >&5
7879 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7880 cat conftest.out >&5
7881 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7882 lt_cv_nm_interface="MS dumpbin"
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7887 $as_echo "$lt_cv_nm_interface" >&6; }
7889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7890 $as_echo_n "checking whether ln -s works... " >&6; }
7892 if test "$LN_S" = "ln -s"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7894 $as_echo "yes" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7897 $as_echo "no, using $LN_S" >&6; }
7900 # find the maximum length of command line arguments
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7902 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7903 if ${lt_cv_sys_max_cmd_len+:} false; then :
7904 $as_echo_n "(cached) " >&6
7911 # On DJGPP, this test can blow up pretty badly due to problems in libc
7912 # (any single argument exceeding 2000 bytes causes a buffer overrun
7913 # during glob expansion). Even if it were fixed, the result of this
7914 # check would be larger than it should be.
7915 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7919 # Under GNU Hurd, this test is not required because there is
7920 # no limit to the length of command line arguments.
7921 # Libtool will interpret -1 as no limit whatsoever
7922 lt_cv_sys_max_cmd_len=-1;
7925 cygwin* | mingw* | cegcc*)
7926 # On Win9x/ME, this test blows up -- it succeeds, but takes
7927 # about 5 minutes as the teststring grows exponentially.
7928 # Worse, since 9x/ME are not pre-emptively multitasking,
7929 # you end up with a "frozen" computer, even though with patience
7930 # the test eventually succeeds (with a max line length of 256k).
7931 # Instead, let's just punt: use the minimum linelength reported by
7932 # all of the supported platforms: 8192 (on NT/2K/XP).
7933 lt_cv_sys_max_cmd_len=8192;
7937 # On MiNT this can take a long time and run out of memory.
7938 lt_cv_sys_max_cmd_len=8192;
7942 # On AmigaOS with pdksh, this test takes hours, literally.
7943 # So we just punt and use a minimum line length of 8192.
7944 lt_cv_sys_max_cmd_len=8192;
7947 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
7948 # This has been around since 386BSD, at least. Likely further.
7949 if test -x /sbin/sysctl; then
7950 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7951 elif test -x /usr/sbin/sysctl; then
7952 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7954 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7956 # And add a safety zone
7957 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7962 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7963 lt_cv_sys_max_cmd_len=196608
7967 # The test takes a long time on OS/2.
7968 lt_cv_sys_max_cmd_len=8192
7972 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7973 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7974 # nice to cause kernel panics so lets avoid the loop below.
7975 # First set a reasonable default.
7976 lt_cv_sys_max_cmd_len=16384
7978 if test -x /sbin/sysconfig; then
7979 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7980 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7985 lt_cv_sys_max_cmd_len=102400
7987 sysv5* | sco5v6* | sysv4.2uw2*)
7988 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7989 if test -n "$kargmax"; then
7990 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7992 lt_cv_sys_max_cmd_len=32768
7996 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7997 if test -n "$lt_cv_sys_max_cmd_len" && \
7998 test undefined != "$lt_cv_sys_max_cmd_len"; then
7999 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8002 # Make teststring a little bigger before we do anything with it.
8003 # a 1K string should be a reasonable start.
8004 for i in 1 2 3 4 5 6 7 8; do
8005 teststring=$teststring$teststring
8007 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8008 # If test is not a shell built-in, we'll probably end up computing a
8009 # maximum length that is only half of the actual maximum length, but
8011 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8012 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8013 test 17 != "$i" # 1/2 MB should be enough
8016 teststring=$teststring$teststring
8018 # Only check the string length outside the loop.
8019 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8021 # Add a significant safety factor because C++ compilers can tack on
8022 # massive amounts of additional arguments before passing them to the
8023 # linker. It appears as though 1/2 is a usable value.
8024 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8031 if test -n "$lt_cv_sys_max_cmd_len"; then
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8033 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8036 $as_echo "none" >&6; }
8038 max_cmd_len=$lt_cv_sys_max_cmd_len
8049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8059 # test EBCDIC or ASCII
8060 case `echo X|tr X '\101'` in
8061 A) # ASCII based system
8062 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8063 lt_SP2NL='tr \040 \012'
8064 lt_NL2SP='tr \015\012 \040\040'
8066 *) # EBCDIC based system
8067 lt_SP2NL='tr \100 \n'
8068 lt_NL2SP='tr \r\n \100\100'
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8081 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8082 if ${lt_cv_to_host_file_cmd+:} false; then :
8083 $as_echo_n "(cached) " >&6
8088 *-*-mingw* ) # actually msys
8089 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8092 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8094 * ) # otherwise, assume *nix
8095 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8101 *-*-mingw* ) # actually msys
8102 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8105 lt_cv_to_host_file_cmd=func_convert_file_noop
8107 * ) # otherwise, assume *nix
8108 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8112 * ) # unhandled hosts (and "normal" native builds)
8113 lt_cv_to_host_file_cmd=func_convert_file_noop
8119 to_host_file_cmd=$lt_cv_to_host_file_cmd
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8121 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8128 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8129 if ${lt_cv_to_tool_file_cmd+:} false; then :
8130 $as_echo_n "(cached) " >&6
8132 #assume ordinary cross tools, or native build.
8133 lt_cv_to_tool_file_cmd=func_convert_file_noop
8137 *-*-mingw* ) # actually msys
8138 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8146 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8148 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8155 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8156 if ${lt_cv_ld_reload_flag+:} false; then :
8157 $as_echo_n "(cached) " >&6
8159 lt_cv_ld_reload_flag='-r'
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8162 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8163 reload_flag=$lt_cv_ld_reload_flag
8164 case $reload_flag in
8166 *) reload_flag=" $reload_flag" ;;
8168 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8170 cygwin* | mingw* | pw32* | cegcc*)
8171 if test yes != "$GCC"; then
8176 if test yes = "$GCC"; then
8177 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8179 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8192 if test -n "$ac_tool_prefix"; then
8193 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8194 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8196 $as_echo_n "checking for $ac_word... " >&6; }
8197 if ${ac_cv_prog_OBJDUMP+:} false; then :
8198 $as_echo_n "(cached) " >&6
8200 if test -n "$OBJDUMP"; then
8201 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8207 test -z "$as_dir" && as_dir=.
8208 for ac_exec_ext in '' $ac_executable_extensions; do
8209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8210 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8220 OBJDUMP=$ac_cv_prog_OBJDUMP
8221 if test -n "$OBJDUMP"; then
8222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8223 $as_echo "$OBJDUMP" >&6; }
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8226 $as_echo "no" >&6; }
8231 if test -z "$ac_cv_prog_OBJDUMP"; then
8232 ac_ct_OBJDUMP=$OBJDUMP
8233 # Extract the first word of "objdump", so it can be a program name with args.
8234 set dummy objdump; ac_word=$2
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8236 $as_echo_n "checking for $ac_word... " >&6; }
8237 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8238 $as_echo_n "(cached) " >&6
8240 if test -n "$ac_ct_OBJDUMP"; then
8241 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8247 test -z "$as_dir" && as_dir=.
8248 for ac_exec_ext in '' $ac_executable_extensions; do
8249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8250 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8260 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8261 if test -n "$ac_ct_OBJDUMP"; then
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8263 $as_echo "$ac_ct_OBJDUMP" >&6; }
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8266 $as_echo "no" >&6; }
8269 if test "x$ac_ct_OBJDUMP" = x; then
8272 case $cross_compiling:$ac_tool_warned in
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8276 ac_tool_warned=yes ;;
8278 OBJDUMP=$ac_ct_OBJDUMP
8281 OBJDUMP="$ac_cv_prog_OBJDUMP"
8284 test -z "$OBJDUMP" && OBJDUMP=objdump
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8292 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8293 if ${lt_cv_deplibs_check_method+:} false; then :
8294 $as_echo_n "(cached) " >&6
8296 lt_cv_file_magic_cmd='$MAGIC_CMD'
8297 lt_cv_file_magic_test_file=
8298 lt_cv_deplibs_check_method='unknown'
8299 # Need to set the preceding variable on all platforms that support
8300 # interlibrary dependencies.
8301 # 'none' -- dependencies not supported.
8302 # 'unknown' -- same as none, but documents that we really don't know.
8303 # 'pass_all' -- all dependencies passed with no checks.
8304 # 'test_compile' -- check by making test program.
8305 # 'file_magic [[regex]]' -- check by looking for files in library path
8306 # that responds to the $file_magic_cmd with a given extended regex.
8307 # If you have 'file' or equivalent on your system and you're not sure
8308 # whether 'pass_all' will *always* work, you probably want this one.
8312 lt_cv_deplibs_check_method=pass_all
8316 lt_cv_deplibs_check_method=pass_all
8320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8321 lt_cv_file_magic_cmd='/usr/bin/file -L'
8322 lt_cv_file_magic_test_file=/shlib/libc.so
8326 # func_win32_libid is a shell function defined in ltmain.sh
8327 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8328 lt_cv_file_magic_cmd='func_win32_libid'
8332 # Base MSYS/MinGW do not provide the 'file' command needed by
8333 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8334 # unless we find 'file', for example because we are cross-compiling.
8335 if ( file / ) >/dev/null 2>&1; then
8336 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8337 lt_cv_file_magic_cmd='func_win32_libid'
8339 # Keep this pattern in sync with the one in func_win32_libid.
8340 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8341 lt_cv_file_magic_cmd='$OBJDUMP -f'
8346 # use the weaker test based on 'objdump'. See mingw*.
8347 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8348 lt_cv_file_magic_cmd='$OBJDUMP -f'
8351 darwin* | rhapsody*)
8352 lt_cv_deplibs_check_method=pass_all
8355 freebsd* | dragonfly*)
8356 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8359 # Not sure whether the presence of OpenBSD here was a mistake.
8360 # Let's accept both of them until this is cleared up.
8361 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8362 lt_cv_file_magic_cmd=/usr/bin/file
8363 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8367 lt_cv_deplibs_check_method=pass_all
8372 lt_cv_deplibs_check_method=pass_all
8375 hpux10.20* | hpux11*)
8376 lt_cv_file_magic_cmd=/usr/bin/file
8379 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8380 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8383 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]'
8384 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8387 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8388 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8394 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8395 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8398 irix5* | irix6* | nonstopux*)
8400 *-32|*"-32 ") libmagic=32-bit;;
8401 *-n32|*"-n32 ") libmagic=N32;;
8402 *-64|*"-64 ") libmagic=64-bit;;
8403 *) libmagic=never-match;;
8405 lt_cv_deplibs_check_method=pass_all
8408 # This must be glibc/ELF.
8409 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8410 lt_cv_deplibs_check_method=pass_all
8413 netbsd* | netbsdelf*-gnu)
8414 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8415 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8417 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8423 lt_cv_file_magic_cmd=/usr/bin/file
8424 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8428 lt_cv_deplibs_check_method=pass_all
8432 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8433 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8435 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8439 osf3* | osf4* | osf5*)
8440 lt_cv_deplibs_check_method=pass_all
8444 lt_cv_deplibs_check_method=pass_all
8448 lt_cv_deplibs_check_method=pass_all
8451 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8452 lt_cv_deplibs_check_method=pass_all
8456 case $host_vendor in
8458 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]'
8459 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8462 lt_cv_deplibs_check_method=pass_all
8465 lt_cv_file_magic_cmd='/bin/file'
8466 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8469 lt_cv_file_magic_cmd='/bin/file'
8470 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8471 lt_cv_file_magic_test_file=/lib/libc.so
8474 lt_cv_deplibs_check_method=pass_all
8477 lt_cv_deplibs_check_method=pass_all
8483 lt_cv_deplibs_check_method=pass_all
8486 lt_cv_deplibs_check_method=pass_all
8491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8492 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8496 if test "$build" = "$host"; then
8499 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8502 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8508 file_magic_cmd=$lt_cv_file_magic_cmd
8509 deplibs_check_method=$lt_cv_deplibs_check_method
8510 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8533 if test -n "$ac_tool_prefix"; then
8534 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8535 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8537 $as_echo_n "checking for $ac_word... " >&6; }
8538 if ${ac_cv_prog_DLLTOOL+:} false; then :
8539 $as_echo_n "(cached) " >&6
8541 if test -n "$DLLTOOL"; then
8542 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 test -z "$as_dir" && as_dir=.
8549 for ac_exec_ext in '' $ac_executable_extensions; do
8550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8551 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8561 DLLTOOL=$ac_cv_prog_DLLTOOL
8562 if test -n "$DLLTOOL"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8564 $as_echo "$DLLTOOL" >&6; }
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8572 if test -z "$ac_cv_prog_DLLTOOL"; then
8573 ac_ct_DLLTOOL=$DLLTOOL
8574 # Extract the first word of "dlltool", so it can be a program name with args.
8575 set dummy dlltool; ac_word=$2
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8577 $as_echo_n "checking for $ac_word... " >&6; }
8578 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8579 $as_echo_n "(cached) " >&6
8581 if test -n "$ac_ct_DLLTOOL"; then
8582 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588 test -z "$as_dir" && as_dir=.
8589 for ac_exec_ext in '' $ac_executable_extensions; do
8590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8591 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8601 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8602 if test -n "$ac_ct_DLLTOOL"; then
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8604 $as_echo "$ac_ct_DLLTOOL" >&6; }
8606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8607 $as_echo "no" >&6; }
8610 if test "x$ac_ct_DLLTOOL" = x; then
8613 case $cross_compiling:$ac_tool_warned in
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8616 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8617 ac_tool_warned=yes ;;
8619 DLLTOOL=$ac_ct_DLLTOOL
8622 DLLTOOL="$ac_cv_prog_DLLTOOL"
8625 test -z "$DLLTOOL" && DLLTOOL=dlltool
8633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8634 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8635 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8636 $as_echo_n "(cached) " >&6
8638 lt_cv_sharedlib_from_linklib_cmd='unknown'
8641 cygwin* | mingw* | pw32* | cegcc*)
8642 # two different shell functions defined in ltmain.sh;
8643 # decide which one to use based on capabilities of $DLLTOOL
8644 case `$DLLTOOL --help 2>&1` in
8645 *--identify-strict*)
8646 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8649 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8654 # fallback: assume linklib IS sharedlib
8655 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8661 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8662 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8663 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8671 if test -n "$ac_tool_prefix"; then
8674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8677 $as_echo_n "checking for $ac_word... " >&6; }
8678 if ${ac_cv_prog_AR+:} false; then :
8679 $as_echo_n "(cached) " >&6
8681 if test -n "$AR"; then
8682 ac_cv_prog_AR="$AR" # Let the user override the test.
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8702 if test -n "$AR"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8704 $as_echo "$AR" >&6; }
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8711 test -n "$AR" && break
8714 if test -z "$AR"; then
8718 # Extract the first word of "$ac_prog", so it can be a program name with args.
8719 set dummy $ac_prog; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8723 $as_echo_n "(cached) " >&6
8725 if test -n "$ac_ct_AR"; then
8726 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_prog_ac_ct_AR="$ac_prog"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8746 if test -n "$ac_ct_AR"; then
8747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8748 $as_echo "$ac_ct_AR" >&6; }
8750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8751 $as_echo "no" >&6; }
8755 test -n "$ac_ct_AR" && break
8758 if test "x$ac_ct_AR" = x; then
8761 case $cross_compiling:$ac_tool_warned in
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8764 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8765 ac_tool_warned=yes ;;
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
8785 $as_echo_n "checking for archiver @FILE support... " >&6; }
8786 if ${lt_cv_ar_at_file+:} false; then :
8787 $as_echo_n "(cached) " >&6
8790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8791 /* end confdefs.h. */
8800 if ac_fn_c_try_compile "$LINENO"; then :
8801 echo conftest.$ac_objext > conftest.lst
8802 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
8803 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8804 (eval $lt_ar_try) 2>&5
8806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8807 test $ac_status = 0; }
8808 if test 0 -eq "$ac_status"; then
8809 # Ensure the archiver fails upon bogus file names.
8810 rm -f conftest.$ac_objext libconftest.a
8811 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
8812 (eval $lt_ar_try) 2>&5
8814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8815 test $ac_status = 0; }
8816 if test 0 -ne "$ac_status"; then
8820 rm -f conftest.* libconftest.a
8823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
8827 $as_echo "$lt_cv_ar_at_file" >&6; }
8829 if test no = "$lt_cv_ar_at_file"; then
8832 archiver_list_spec=$lt_cv_ar_at_file
8841 if test -n "$ac_tool_prefix"; then
8842 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
8843 set dummy ${ac_tool_prefix}strip; ac_word=$2
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8845 $as_echo_n "checking for $ac_word... " >&6; }
8846 if ${ac_cv_prog_STRIP+:} false; then :
8847 $as_echo_n "(cached) " >&6
8849 if test -n "$STRIP"; then
8850 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
8852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8856 test -z "$as_dir" && as_dir=.
8857 for ac_exec_ext in '' $ac_executable_extensions; do
8858 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8859 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
8860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8869 STRIP=$ac_cv_prog_STRIP
8870 if test -n "$STRIP"; then
8871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
8872 $as_echo "$STRIP" >&6; }
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8875 $as_echo "no" >&6; }
8880 if test -z "$ac_cv_prog_STRIP"; then
8882 # Extract the first word of "strip", so it can be a program name with args.
8883 set dummy strip; ac_word=$2
8884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8885 $as_echo_n "checking for $ac_word... " >&6; }
8886 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
8887 $as_echo_n "(cached) " >&6
8889 if test -n "$ac_ct_STRIP"; then
8890 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
8892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8896 test -z "$as_dir" && as_dir=.
8897 for ac_exec_ext in '' $ac_executable_extensions; do
8898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8899 ac_cv_prog_ac_ct_STRIP="strip"
8900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8909 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
8910 if test -n "$ac_ct_STRIP"; then
8911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
8912 $as_echo "$ac_ct_STRIP" >&6; }
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8915 $as_echo "no" >&6; }
8918 if test "x$ac_ct_STRIP" = x; then
8921 case $cross_compiling:$ac_tool_warned in
8923 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8924 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8925 ac_tool_warned=yes ;;
8930 STRIP="$ac_cv_prog_STRIP"
8933 test -z "$STRIP" && STRIP=:
8940 if test -n "$ac_tool_prefix"; then
8941 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8942 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8944 $as_echo_n "checking for $ac_word... " >&6; }
8945 if ${ac_cv_prog_RANLIB+:} false; then :
8946 $as_echo_n "(cached) " >&6
8948 if test -n "$RANLIB"; then
8949 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8955 test -z "$as_dir" && as_dir=.
8956 for ac_exec_ext in '' $ac_executable_extensions; do
8957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8958 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8968 RANLIB=$ac_cv_prog_RANLIB
8969 if test -n "$RANLIB"; then
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8971 $as_echo "$RANLIB" >&6; }
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8974 $as_echo "no" >&6; }
8979 if test -z "$ac_cv_prog_RANLIB"; then
8980 ac_ct_RANLIB=$RANLIB
8981 # Extract the first word of "ranlib", so it can be a program name with args.
8982 set dummy ranlib; ac_word=$2
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8984 $as_echo_n "checking for $ac_word... " >&6; }
8985 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8986 $as_echo_n "(cached) " >&6
8988 if test -n "$ac_ct_RANLIB"; then
8989 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8995 test -z "$as_dir" && as_dir=.
8996 for ac_exec_ext in '' $ac_executable_extensions; do
8997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8998 ac_cv_prog_ac_ct_RANLIB="ranlib"
8999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9008 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9009 if test -n "$ac_ct_RANLIB"; then
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9011 $as_echo "$ac_ct_RANLIB" >&6; }
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9014 $as_echo "no" >&6; }
9017 if test "x$ac_ct_RANLIB" = x; then
9020 case $cross_compiling:$ac_tool_warned in
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9024 ac_tool_warned=yes ;;
9026 RANLIB=$ac_ct_RANLIB
9029 RANLIB="$ac_cv_prog_RANLIB"
9032 test -z "$RANLIB" && RANLIB=:
9039 # Determine commands to create old-style static archives.
9040 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9041 old_postinstall_cmds='chmod 644 $oldlib'
9042 old_postuninstall_cmds=
9044 if test -n "$RANLIB"; then
9047 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9050 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9053 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9058 lock_old_archive_extraction=yes ;;
9060 lock_old_archive_extraction=no ;;
9101 # If no C compiler was specified, use CC.
9104 # If no C compiler flags were specified, use CFLAGS.
9105 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9107 # Allow CC to be a program name with arguments.
9111 # Check for command to grab the raw symbol name followed by C symbol from nm.
9112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9113 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9114 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9115 $as_echo_n "(cached) " >&6
9118 # These are sane defaults that work on at least a few old systems.
9119 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9121 # Character class describing NM global symbol codes.
9122 symcode='[BCDEGRST]'
9124 # Regexp to match symbols that can be accessed directly from C.
9125 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9127 # Define system-specific variables.
9132 cygwin* | mingw* | pw32* | cegcc*)
9133 symcode='[ABCDGISTW]'
9136 if test ia64 = "$host_cpu"; then
9137 symcode='[ABCDEGRST]'
9141 symcode='[BCDEGRST]'
9144 symcode='[BCDEGQRST]'
9155 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9163 # If we're using GNU nm, then use its standard symbol codes.
9164 case `$NM -V 2>&1` in
9165 *GNU* | *'with BFD'*)
9166 symcode='[ABCDGIRSTW]' ;;
9169 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9170 # Gets list of data symbols to import.
9171 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9172 # Adjust the below global symbol transforms to fixup imported variables.
9173 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9174 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9175 lt_c_name_lib_hook="\
9176 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9177 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9179 # Disable hooks by default.
9180 lt_cv_sys_global_symbol_to_import=
9186 # Transform an extracted symbol line into a proper C declaration.
9187 # Some systems (esp. on ia64) link data and code symbols differently,
9188 # so use this general approach.
9189 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9191 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9192 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9194 # Transform an extracted symbol line into symbol name and symbol address
9195 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9197 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9198 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9200 # Transform an extracted symbol line into symbol name with lib prefix and
9202 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9203 $lt_c_name_lib_hook\
9204 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9205 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9206 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9208 # Handle CRLF in mingw tool chain
9212 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9216 # Try without a prefix underscore, then with it.
9217 for ac_symprfx in "" "_"; do
9219 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9220 symxfrm="\\1 $ac_symprfx\\2 \\2"
9222 # Write the raw and C identifiers.
9223 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9224 # Fake it for dumpbin and say T for any non-static function,
9225 # D for any global variable and I for any imported variable.
9226 # Also find C++ and __fastcall symbols from MSVC++,
9227 # which start with @ or ?.
9228 lt_cv_sys_global_symbol_pipe="$AWK '"\
9229 " {last_section=section; section=\$ 3};"\
9230 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9231 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9232 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9233 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9234 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9235 " \$ 0!~/External *\|/{next};"\
9236 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9237 " {if(hide[section]) next};"\
9238 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9239 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9240 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9241 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9242 " ' prfx=^$ac_symprfx"
9244 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9246 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9248 # Check to see that the pipe works correctly.
9252 cat > conftest.$ac_ext <<_LT_EOF
9257 void nm_test_func(void);
9258 void nm_test_func(void){}
9262 int main(){nm_test_var='a';nm_test_func();return(0);}
9265 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9266 (eval $ac_compile) 2>&5
9268 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9269 test $ac_status = 0; }; then
9270 # Now try to grab the symbols.
9272 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9273 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9274 # Try sorting and uniquifying the output.
9275 if sort "$nlist" | uniq > "$nlist"T; then
9276 mv -f "$nlist"T "$nlist"
9281 # Make sure that we snagged all the symbols we need.
9282 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9283 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9284 cat <<_LT_EOF > conftest.$ac_ext
9285 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9286 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9287 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9288 relocations are performed -- see ld's documentation on pseudo-relocs. */
9289 # define LT_DLSYM_CONST
9290 #elif defined __osf__
9291 /* This system does not cope well with relocations in const data. */
9292 # define LT_DLSYM_CONST
9294 # define LT_DLSYM_CONST const
9302 # Now generate the symbol file.
9303 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9305 cat <<_LT_EOF >> conftest.$ac_ext
9307 /* The mapping between symbol names and symbols. */
9308 LT_DLSYM_CONST struct {
9312 lt__PROGRAM__LTX_preloaded_symbols[] =
9314 { "@PROGRAM@", (void *) 0 },
9316 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9317 cat <<\_LT_EOF >> conftest.$ac_ext
9321 /* This works around a problem in FreeBSD linker */
9322 #ifdef FREEBSD_WORKAROUND
9323 static const void *lt_preloaded_setup() {
9324 return lt__PROGRAM__LTX_preloaded_symbols;
9332 # Now try linking the two files.
9333 mv -f conftest.$ac_objext conftstm.$ac_objext
9334 lt_globsym_save_LIBS=$LIBS
9335 lt_globsym_save_CFLAGS=$CFLAGS
9336 LIBS=conftstm.$ac_objext
9337 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9338 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9339 (eval $ac_link) 2>&5
9341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9342 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9345 LIBS=$lt_globsym_save_LIBS
9346 CFLAGS=$lt_globsym_save_CFLAGS
9348 echo "cannot find nm_test_func in $nlist" >&5
9351 echo "cannot find nm_test_var in $nlist" >&5
9354 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9357 echo "$progname: failed program was:" >&5
9358 cat conftest.$ac_ext >&5
9360 rm -rf conftest* conftst*
9362 # Do not use the global_symbol_pipe unless it works.
9363 if test yes = "$pipe_works"; then
9366 lt_cv_sys_global_symbol_pipe=
9372 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9373 lt_cv_sys_global_symbol_to_cdecl=
9375 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9377 $as_echo "failed" >&6; }
9379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9380 $as_echo "ok" >&6; }
9383 # Response file support.
9384 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9385 nm_file_list_spec='@'
9386 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9387 nm_file_list_spec='@'
9426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9427 $as_echo_n "checking for sysroot... " >&6; }
9429 # Check whether --with-sysroot was given.
9430 if test "${with_sysroot+set}" = set; then :
9431 withval=$with_sysroot;
9438 case $with_sysroot in #(
9440 if test yes = "$GCC"; then
9441 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9445 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9451 $as_echo "$with_sysroot" >&6; }
9452 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9457 $as_echo "${lt_sysroot:-no}" >&6; }
9463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9464 $as_echo_n "checking for a working dd... " >&6; }
9465 if ${ac_cv_path_lt_DD+:} false; then :
9466 $as_echo_n "(cached) " >&6
9468 printf 0123456789abcdef0123456789abcdef >conftest.i
9469 cat conftest.i conftest.i >conftest2.i
9471 if test -z "$lt_DD"; then
9472 ac_path_lt_DD_found=false
9473 # Loop through the user's path and test for each of PROGNAME-LIST
9474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9478 test -z "$as_dir" && as_dir=.
9479 for ac_prog in dd; do
9480 for ac_exec_ext in '' $ac_executable_extensions; do
9481 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9482 as_fn_executable_p "$ac_path_lt_DD" || continue
9483 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9484 cmp -s conftest.i conftest.out \
9485 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9487 $ac_path_lt_DD_found && break 3
9492 if test -z "$ac_cv_path_lt_DD"; then
9496 ac_cv_path_lt_DD=$lt_DD
9499 rm -f conftest.i conftest2.i conftest.out
9501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9502 $as_echo "$ac_cv_path_lt_DD" >&6; }
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9506 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9507 if ${lt_cv_truncate_bin+:} false; then :
9508 $as_echo_n "(cached) " >&6
9510 printf 0123456789abcdef0123456789abcdef >conftest.i
9511 cat conftest.i conftest.i >conftest2.i
9513 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9514 cmp -s conftest.i conftest.out \
9515 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9517 rm -f conftest.i conftest2.i conftest.out
9518 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9521 $as_echo "$lt_cv_truncate_bin" >&6; }
9529 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9532 for cc_temp in $*""; do
9534 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9535 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9540 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9543 # Check whether --enable-libtool-lock was given.
9544 if test "${enable_libtool_lock+set}" = set; then :
9545 enableval=$enable_libtool_lock;
9548 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9550 # Some flags need to be propagated to the compiler or linker for good
9554 # Find out what ABI is being produced by ac_compile, and set mode
9555 # options accordingly.
9556 echo 'int i;' > conftest.$ac_ext
9557 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9558 (eval $ac_compile) 2>&5
9560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9561 test $ac_status = 0; }; then
9562 case `/usr/bin/file conftest.$ac_objext` in
9574 # Find out what ABI is being produced by ac_compile, and set linker
9575 # options accordingly.
9576 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9577 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9578 (eval $ac_compile) 2>&5
9580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9581 test $ac_status = 0; }; then
9582 if test yes = "$lt_cv_prog_gnu_ld"; then
9583 case `/usr/bin/file conftest.$ac_objext` in
9585 LD="${LD-ld} -melf32bsmip"
9588 LD="${LD-ld} -melf32bmipn32"
9591 LD="${LD-ld} -melf64bmip"
9595 case `/usr/bin/file conftest.$ac_objext` in
9612 # Find out what ABI is being produced by ac_compile, and set linker
9613 # options accordingly.
9614 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9616 (eval $ac_compile) 2>&5
9618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9619 test $ac_status = 0; }; then
9621 case `/usr/bin/file conftest.$ac_objext` in
9629 case `/usr/bin/file conftest.$ac_objext` in
9631 emul="${emul}btsmip"
9634 emul="${emul}ltsmip"
9637 case `/usr/bin/file conftest.$ac_objext` in
9642 LD="${LD-ld} -m $emul"
9647 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9648 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9649 # Find out what ABI is being produced by ac_compile, and set linker
9650 # options accordingly. Note that the listed cases only cover the
9651 # situations where additional linker options are needed (such as when
9652 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9653 # vice versa); the common cases where no linker options are needed do
9654 # not appear in the list.
9655 echo 'int i;' > conftest.$ac_ext
9656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9657 (eval $ac_compile) 2>&5
9659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9660 test $ac_status = 0; }; then
9661 case `/usr/bin/file conftest.o` in
9664 x86_64-*kfreebsd*-gnu)
9665 LD="${LD-ld} -m elf_i386_fbsd"
9668 case `/usr/bin/file conftest.o` in
9670 LD="${LD-ld} -m elf32_x86_64"
9673 LD="${LD-ld} -m elf_i386"
9677 powerpc64le-*linux*)
9678 LD="${LD-ld} -m elf32lppclinux"
9681 LD="${LD-ld} -m elf32ppclinux"
9684 LD="${LD-ld} -m elf_s390"
9687 LD="${LD-ld} -m elf32_sparc"
9693 x86_64-*kfreebsd*-gnu)
9694 LD="${LD-ld} -m elf_x86_64_fbsd"
9697 LD="${LD-ld} -m elf_x86_64"
9700 LD="${LD-ld} -m elf64lppc"
9703 LD="${LD-ld} -m elf64ppc"
9705 s390*-*linux*|s390*-*tpf*)
9706 LD="${LD-ld} -m elf64_s390"
9709 LD="${LD-ld} -m elf64_sparc"
9719 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9721 CFLAGS="$CFLAGS -belf"
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9723 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9724 if ${lt_cv_cc_needs_belf+:} false; then :
9725 $as_echo_n "(cached) " >&6
9728 ac_cpp='$CPP $CPPFLAGS'
9729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9743 if ac_fn_c_try_link "$LINENO"; then :
9744 lt_cv_cc_needs_belf=yes
9746 lt_cv_cc_needs_belf=no
9748 rm -f core conftest.err conftest.$ac_objext \
9749 conftest$ac_exeext conftest.$ac_ext
9751 ac_cpp='$CPP $CPPFLAGS'
9752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9758 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9759 if test yes != "$lt_cv_cc_needs_belf"; then
9760 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9765 # Find out what ABI is being produced by ac_compile, and set linker
9766 # options accordingly.
9767 echo 'int i;' > conftest.$ac_ext
9768 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9769 (eval $ac_compile) 2>&5
9771 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9772 test $ac_status = 0; }; then
9773 case `/usr/bin/file conftest.o` in
9775 case $lt_cv_prog_gnu_ld in
9778 i?86-*-solaris*|x86_64-*-solaris*)
9779 LD="${LD-ld} -m elf_x86_64"
9782 LD="${LD-ld} -m elf64_sparc"
9785 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
9786 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
9791 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9803 need_locks=$enable_libtool_lock
9805 if test -n "$ac_tool_prefix"; then
9806 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
9807 set dummy ${ac_tool_prefix}mt; ac_word=$2
9808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9809 $as_echo_n "checking for $ac_word... " >&6; }
9810 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
9811 $as_echo_n "(cached) " >&6
9813 if test -n "$MANIFEST_TOOL"; then
9814 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
9816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9820 test -z "$as_dir" && as_dir=.
9821 for ac_exec_ext in '' $ac_executable_extensions; do
9822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9823 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
9824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9833 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
9834 if test -n "$MANIFEST_TOOL"; then
9835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
9836 $as_echo "$MANIFEST_TOOL" >&6; }
9838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9839 $as_echo "no" >&6; }
9844 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
9845 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
9846 # Extract the first word of "mt", so it can be a program name with args.
9847 set dummy mt; ac_word=$2
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9849 $as_echo_n "checking for $ac_word... " >&6; }
9850 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
9851 $as_echo_n "(cached) " >&6
9853 if test -n "$ac_ct_MANIFEST_TOOL"; then
9854 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 test -z "$as_dir" && as_dir=.
9861 for ac_exec_ext in '' $ac_executable_extensions; do
9862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9863 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
9864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9873 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
9874 if test -n "$ac_ct_MANIFEST_TOOL"; then
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
9876 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9879 $as_echo "no" >&6; }
9882 if test "x$ac_ct_MANIFEST_TOOL" = x; then
9885 case $cross_compiling:$ac_tool_warned in
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9888 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9889 ac_tool_warned=yes ;;
9891 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
9894 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
9897 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
9899 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
9900 if ${lt_cv_path_mainfest_tool+:} false; then :
9901 $as_echo_n "(cached) " >&6
9903 lt_cv_path_mainfest_tool=no
9904 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
9905 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
9906 cat conftest.err >&5
9907 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
9908 lt_cv_path_mainfest_tool=yes
9912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
9913 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
9914 if test yes != "$lt_cv_path_mainfest_tool"; then
9924 rhapsody* | darwin*)
9925 if test -n "$ac_tool_prefix"; then
9926 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9927 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9929 $as_echo_n "checking for $ac_word... " >&6; }
9930 if ${ac_cv_prog_DSYMUTIL+:} false; then :
9931 $as_echo_n "(cached) " >&6
9933 if test -n "$DSYMUTIL"; then
9934 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9940 test -z "$as_dir" && as_dir=.
9941 for ac_exec_ext in '' $ac_executable_extensions; do
9942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9943 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9953 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9954 if test -n "$DSYMUTIL"; then
9955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9956 $as_echo "$DSYMUTIL" >&6; }
9958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9959 $as_echo "no" >&6; }
9964 if test -z "$ac_cv_prog_DSYMUTIL"; then
9965 ac_ct_DSYMUTIL=$DSYMUTIL
9966 # Extract the first word of "dsymutil", so it can be a program name with args.
9967 set dummy dsymutil; ac_word=$2
9968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9969 $as_echo_n "checking for $ac_word... " >&6; }
9970 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
9971 $as_echo_n "(cached) " >&6
9973 if test -n "$ac_ct_DSYMUTIL"; then
9974 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9980 test -z "$as_dir" && as_dir=.
9981 for ac_exec_ext in '' $ac_executable_extensions; do
9982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9983 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9993 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9994 if test -n "$ac_ct_DSYMUTIL"; then
9995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9996 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9999 $as_echo "no" >&6; }
10002 if test "x$ac_ct_DSYMUTIL" = x; then
10005 case $cross_compiling:$ac_tool_warned in
10007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10009 ac_tool_warned=yes ;;
10011 DSYMUTIL=$ac_ct_DSYMUTIL
10014 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10017 if test -n "$ac_tool_prefix"; then
10018 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10019 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10021 $as_echo_n "checking for $ac_word... " >&6; }
10022 if ${ac_cv_prog_NMEDIT+:} false; then :
10023 $as_echo_n "(cached) " >&6
10025 if test -n "$NMEDIT"; then
10026 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10029 for as_dir in $PATH
10032 test -z "$as_dir" && as_dir=.
10033 for ac_exec_ext in '' $ac_executable_extensions; do
10034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10035 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10045 NMEDIT=$ac_cv_prog_NMEDIT
10046 if test -n "$NMEDIT"; then
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10048 $as_echo "$NMEDIT" >&6; }
10050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10051 $as_echo "no" >&6; }
10056 if test -z "$ac_cv_prog_NMEDIT"; then
10057 ac_ct_NMEDIT=$NMEDIT
10058 # Extract the first word of "nmedit", so it can be a program name with args.
10059 set dummy nmedit; ac_word=$2
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061 $as_echo_n "checking for $ac_word... " >&6; }
10062 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10063 $as_echo_n "(cached) " >&6
10065 if test -n "$ac_ct_NMEDIT"; then
10066 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10069 for as_dir in $PATH
10072 test -z "$as_dir" && as_dir=.
10073 for ac_exec_ext in '' $ac_executable_extensions; do
10074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10075 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10085 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10086 if test -n "$ac_ct_NMEDIT"; then
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10088 $as_echo "$ac_ct_NMEDIT" >&6; }
10090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10091 $as_echo "no" >&6; }
10094 if test "x$ac_ct_NMEDIT" = x; then
10097 case $cross_compiling:$ac_tool_warned in
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10101 ac_tool_warned=yes ;;
10103 NMEDIT=$ac_ct_NMEDIT
10106 NMEDIT="$ac_cv_prog_NMEDIT"
10109 if test -n "$ac_tool_prefix"; then
10110 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10111 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10113 $as_echo_n "checking for $ac_word... " >&6; }
10114 if ${ac_cv_prog_LIPO+:} false; then :
10115 $as_echo_n "(cached) " >&6
10117 if test -n "$LIPO"; then
10118 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10121 for as_dir in $PATH
10124 test -z "$as_dir" && as_dir=.
10125 for ac_exec_ext in '' $ac_executable_extensions; do
10126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10127 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10137 LIPO=$ac_cv_prog_LIPO
10138 if test -n "$LIPO"; then
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10140 $as_echo "$LIPO" >&6; }
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10143 $as_echo "no" >&6; }
10148 if test -z "$ac_cv_prog_LIPO"; then
10150 # Extract the first word of "lipo", so it can be a program name with args.
10151 set dummy lipo; ac_word=$2
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10153 $as_echo_n "checking for $ac_word... " >&6; }
10154 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10155 $as_echo_n "(cached) " >&6
10157 if test -n "$ac_ct_LIPO"; then
10158 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10161 for as_dir in $PATH
10164 test -z "$as_dir" && as_dir=.
10165 for ac_exec_ext in '' $ac_executable_extensions; do
10166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10167 ac_cv_prog_ac_ct_LIPO="lipo"
10168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10177 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10178 if test -n "$ac_ct_LIPO"; then
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10180 $as_echo "$ac_ct_LIPO" >&6; }
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10183 $as_echo "no" >&6; }
10186 if test "x$ac_ct_LIPO" = x; then
10189 case $cross_compiling:$ac_tool_warned in
10191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10192 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10193 ac_tool_warned=yes ;;
10198 LIPO="$ac_cv_prog_LIPO"
10201 if test -n "$ac_tool_prefix"; then
10202 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10203 set dummy ${ac_tool_prefix}otool; ac_word=$2
10204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10205 $as_echo_n "checking for $ac_word... " >&6; }
10206 if ${ac_cv_prog_OTOOL+:} false; then :
10207 $as_echo_n "(cached) " >&6
10209 if test -n "$OTOOL"; then
10210 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10213 for as_dir in $PATH
10216 test -z "$as_dir" && as_dir=.
10217 for ac_exec_ext in '' $ac_executable_extensions; do
10218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10219 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10229 OTOOL=$ac_cv_prog_OTOOL
10230 if test -n "$OTOOL"; then
10231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10232 $as_echo "$OTOOL" >&6; }
10234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10235 $as_echo "no" >&6; }
10240 if test -z "$ac_cv_prog_OTOOL"; then
10242 # Extract the first word of "otool", so it can be a program name with args.
10243 set dummy otool; ac_word=$2
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10245 $as_echo_n "checking for $ac_word... " >&6; }
10246 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10247 $as_echo_n "(cached) " >&6
10249 if test -n "$ac_ct_OTOOL"; then
10250 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10253 for as_dir in $PATH
10256 test -z "$as_dir" && as_dir=.
10257 for ac_exec_ext in '' $ac_executable_extensions; do
10258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10259 ac_cv_prog_ac_ct_OTOOL="otool"
10260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10269 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10270 if test -n "$ac_ct_OTOOL"; then
10271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10272 $as_echo "$ac_ct_OTOOL" >&6; }
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10275 $as_echo "no" >&6; }
10278 if test "x$ac_ct_OTOOL" = x; then
10281 case $cross_compiling:$ac_tool_warned in
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10285 ac_tool_warned=yes ;;
10290 OTOOL="$ac_cv_prog_OTOOL"
10293 if test -n "$ac_tool_prefix"; then
10294 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10295 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10297 $as_echo_n "checking for $ac_word... " >&6; }
10298 if ${ac_cv_prog_OTOOL64+:} false; then :
10299 $as_echo_n "(cached) " >&6
10301 if test -n "$OTOOL64"; then
10302 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10305 for as_dir in $PATH
10308 test -z "$as_dir" && as_dir=.
10309 for ac_exec_ext in '' $ac_executable_extensions; do
10310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10311 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10321 OTOOL64=$ac_cv_prog_OTOOL64
10322 if test -n "$OTOOL64"; then
10323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10324 $as_echo "$OTOOL64" >&6; }
10326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10327 $as_echo "no" >&6; }
10332 if test -z "$ac_cv_prog_OTOOL64"; then
10333 ac_ct_OTOOL64=$OTOOL64
10334 # Extract the first word of "otool64", so it can be a program name with args.
10335 set dummy otool64; ac_word=$2
10336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10337 $as_echo_n "checking for $ac_word... " >&6; }
10338 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10339 $as_echo_n "(cached) " >&6
10341 if test -n "$ac_ct_OTOOL64"; then
10342 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10345 for as_dir in $PATH
10348 test -z "$as_dir" && as_dir=.
10349 for ac_exec_ext in '' $ac_executable_extensions; do
10350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10351 ac_cv_prog_ac_ct_OTOOL64="otool64"
10352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10361 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10362 if test -n "$ac_ct_OTOOL64"; then
10363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10364 $as_echo "$ac_ct_OTOOL64" >&6; }
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10367 $as_echo "no" >&6; }
10370 if test "x$ac_ct_OTOOL64" = x; then
10373 case $cross_compiling:$ac_tool_warned in
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10377 ac_tool_warned=yes ;;
10379 OTOOL64=$ac_ct_OTOOL64
10382 OTOOL64="$ac_cv_prog_OTOOL64"
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10412 $as_echo_n "checking for -single_module linker flag... " >&6; }
10413 if ${lt_cv_apple_cc_single_mod+:} false; then :
10414 $as_echo_n "(cached) " >&6
10416 lt_cv_apple_cc_single_mod=no
10417 if test -z "$LT_MULTI_MODULE"; then
10418 # By default we will add the -single_module flag. You can override
10419 # by either setting the environment variable LT_MULTI_MODULE
10420 # non-empty at configure time, or by adding -multi_module to the
10422 rm -rf libconftest.dylib*
10423 echo "int foo(void){return 1;}" > conftest.c
10424 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10425 -dynamiclib -Wl,-single_module conftest.c" >&5
10426 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10427 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10429 # If there is a non-empty error log, and "single_module"
10430 # appears in it, assume the flag caused a linker warning
10431 if test -s conftest.err && $GREP single_module conftest.err; then
10432 cat conftest.err >&5
10433 # Otherwise, if the output was created with a 0 exit code from
10434 # the compiler, it worked.
10435 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10436 lt_cv_apple_cc_single_mod=yes
10438 cat conftest.err >&5
10440 rm -rf libconftest.dylib*
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10445 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10448 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10449 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10450 $as_echo_n "(cached) " >&6
10452 lt_cv_ld_exported_symbols_list=no
10453 save_LDFLAGS=$LDFLAGS
10454 echo "_main" > conftest.sym
10455 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10466 if ac_fn_c_try_link "$LINENO"; then :
10467 lt_cv_ld_exported_symbols_list=yes
10469 lt_cv_ld_exported_symbols_list=no
10471 rm -f core conftest.err conftest.$ac_objext \
10472 conftest$ac_exeext conftest.$ac_ext
10473 LDFLAGS=$save_LDFLAGS
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10477 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10480 $as_echo_n "checking for -force_load linker flag... " >&6; }
10481 if ${lt_cv_ld_force_load+:} false; then :
10482 $as_echo_n "(cached) " >&6
10484 lt_cv_ld_force_load=no
10485 cat > conftest.c << _LT_EOF
10486 int forced_loaded() { return 2;}
10488 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10489 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10490 echo "$AR cru libconftest.a conftest.o" >&5
10491 $AR cru libconftest.a conftest.o 2>&5
10492 echo "$RANLIB libconftest.a" >&5
10493 $RANLIB libconftest.a 2>&5
10494 cat > conftest.c << _LT_EOF
10495 int main() { return 0;}
10497 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10498 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10500 if test -s conftest.err && $GREP force_load conftest.err; then
10501 cat conftest.err >&5
10502 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10503 lt_cv_ld_force_load=yes
10505 cat conftest.err >&5
10507 rm -f conftest.err libconftest.a conftest conftest.c
10508 rm -rf conftest.dSYM
10511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10512 $as_echo "$lt_cv_ld_force_load" >&6; }
10514 rhapsody* | darwin1.[012])
10515 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10517 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10518 darwin*) # darwin 5.x on
10519 # if running on 10.5 or later, the deployment target defaults
10520 # to the OS version, if on x86, and 10.4, the deployment
10521 # target defaults to 10.4. Don't you love it?
10522 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10523 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10524 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10526 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10528 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10532 if test yes = "$lt_cv_apple_cc_single_mod"; then
10533 _lt_dar_single_mod='$single_module'
10535 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10536 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10538 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10540 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10541 _lt_dsymutil='~$DSYMUTIL $lib || :'
10548 # func_munge_path_list VARIABLE PATH
10549 # -----------------------------------
10550 # VARIABLE is name of variable containing _space_ separated list of
10551 # directories to be munged by the contents of PATH, which is string
10554 # string "DIR[ DIR]" will be prepended to VARIABLE
10556 # string "DIR[ DIR]" will be appended to VARIABLE
10557 # "DIRP[:DIRP]::[DIRA:]DIRA"
10558 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10559 # "DIRA[ DIRA]" will be appended to VARIABLE
10561 # VARIABLE will be replaced by "DIR[ DIR]"
10562 func_munge_path_list ()
10568 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10571 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10574 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10575 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10578 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10584 $as_echo_n "checking for ANSI C header files... " >&6; }
10585 if ${ac_cv_header_stdc+:} false; then :
10586 $as_echo_n "(cached) " >&6
10588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10589 /* end confdefs.h. */
10590 #include <stdlib.h>
10591 #include <stdarg.h>
10592 #include <string.h>
10602 if ac_fn_c_try_compile "$LINENO"; then :
10603 ac_cv_header_stdc=yes
10605 ac_cv_header_stdc=no
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 if test $ac_cv_header_stdc = yes; then
10610 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10612 /* end confdefs.h. */
10613 #include <string.h>
10616 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10617 $EGREP "memchr" >/dev/null 2>&1; then :
10620 ac_cv_header_stdc=no
10626 if test $ac_cv_header_stdc = yes; then
10627 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10629 /* end confdefs.h. */
10630 #include <stdlib.h>
10633 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10634 $EGREP "free" >/dev/null 2>&1; then :
10637 ac_cv_header_stdc=no
10643 if test $ac_cv_header_stdc = yes; then
10644 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10645 if test "$cross_compiling" = yes; then :
10648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10649 /* end confdefs.h. */
10651 #include <stdlib.h>
10652 #if ((' ' & 0x0FF) == 0x020)
10653 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10654 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10656 # define ISLOWER(c) \
10657 (('a' <= (c) && (c) <= 'i') \
10658 || ('j' <= (c) && (c) <= 'r') \
10659 || ('s' <= (c) && (c) <= 'z'))
10660 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10663 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10668 for (i = 0; i < 256; i++)
10669 if (XOR (islower (i), ISLOWER (i))
10670 || toupper (i) != TOUPPER (i))
10675 if ac_fn_c_try_run "$LINENO"; then :
10678 ac_cv_header_stdc=no
10680 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10681 conftest.$ac_objext conftest.beam conftest.$ac_ext
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10687 $as_echo "$ac_cv_header_stdc" >&6; }
10688 if test $ac_cv_header_stdc = yes; then
10690 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10694 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10695 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10696 inttypes.h stdint.h unistd.h
10698 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10699 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10701 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10702 cat >>confdefs.h <<_ACEOF
10703 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10711 for ac_header in dlfcn.h
10713 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10715 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10716 cat >>confdefs.h <<_ACEOF
10717 #define HAVE_DLFCN_H 1
10724 # ------------------------------------ #
10725 # Determine libtool default behavior #
10726 # ------------------------------------ #
10729 # Default behavior is to enable shared and static libraries on systems
10730 # where libtool knows how to build both library versions, and does not
10731 # require separate configuration and build runs for each flavor.
10734 xc_lt_want_enable_shared='yes'
10735 xc_lt_want_enable_static='yes'
10738 # User may have disabled shared or static libraries.
10740 case "x$enable_shared" in # (
10742 xc_lt_want_enable_shared='no'
10745 case "x$enable_static" in # (
10747 xc_lt_want_enable_static='no'
10750 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10751 test "x$xc_lt_want_enable_static" = 'xno'; then
10752 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10756 # Default behavior on systems that require independent configuration
10757 # and build runs for shared and static is to enable shared libraries
10758 # and disable static ones. On these systems option '--disable-shared'
10759 # must be used in order to build a proper static library.
10762 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10763 test "x$xc_lt_want_enable_static" = 'xyes'; then
10764 case $host_os in # (
10765 pw32* | cegcc* | os2* | aix*)
10766 xc_lt_want_enable_static='no'
10772 # Make libtool aware of current shared and static library preferences
10773 # taking in account that, depending on host characteristics, libtool
10774 # may modify these option preferences later in this configure script.
10777 enable_shared=$xc_lt_want_enable_shared
10778 enable_static=$xc_lt_want_enable_static
10781 # Default behavior is to build PIC objects for shared libraries and
10782 # non-PIC objects for static libraries.
10785 xc_lt_want_with_pic='default'
10788 # User may have specified PIC preference.
10791 case "x$with_pic" in # ((
10793 xc_lt_want_with_pic='no'
10796 xc_lt_want_with_pic='yes'
10801 # Default behavior on some systems where building a shared library out
10802 # of non-PIC compiled objects will fail with following linker error
10803 # "relocation R_X86_64_32 can not be used when making a shared object"
10804 # is to build PIC objects even for static libraries. This behavior may
10805 # be overridden using 'configure --disable-shared --without-pic'.
10808 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
10809 case $host_cpu in # (
10810 x86_64 | amd64 | ia64)
10811 case $host_os in # (
10813 xc_lt_want_with_pic='yes'
10821 # Make libtool aware of current PIC preference taking in account that,
10822 # depending on host characteristics, libtool may modify PIC default
10823 # behavior to fit host system idiosyncrasies later in this script.
10826 with_pic=$xc_lt_want_with_pic
10828 ## ----------------------- ##
10829 ## Start of libtool code ##
10830 ## ----------------------- ##
10836 enable_win32_dll=yes
10839 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
10840 if test -n "$ac_tool_prefix"; then
10841 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10842 set dummy ${ac_tool_prefix}as; ac_word=$2
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 $as_echo_n "checking for $ac_word... " >&6; }
10845 if ${ac_cv_prog_AS+:} false; then :
10846 $as_echo_n "(cached) " >&6
10848 if test -n "$AS"; then
10849 ac_cv_prog_AS="$AS" # Let the user override the test.
10851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10852 for as_dir in $PATH
10855 test -z "$as_dir" && as_dir=.
10856 for ac_exec_ext in '' $ac_executable_extensions; do
10857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10858 ac_cv_prog_AS="${ac_tool_prefix}as"
10859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10869 if test -n "$AS"; then
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10871 $as_echo "$AS" >&6; }
10873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10874 $as_echo "no" >&6; }
10879 if test -z "$ac_cv_prog_AS"; then
10881 # Extract the first word of "as", so it can be a program name with args.
10882 set dummy as; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10884 $as_echo_n "checking for $ac_word... " >&6; }
10885 if ${ac_cv_prog_ac_ct_AS+:} false; then :
10886 $as_echo_n "(cached) " >&6
10888 if test -n "$ac_ct_AS"; then
10889 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_prog_ac_ct_AS="as"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10908 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10909 if test -n "$ac_ct_AS"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
10911 $as_echo "$ac_ct_AS" >&6; }
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10914 $as_echo "no" >&6; }
10917 if test "x$ac_ct_AS" = x; then
10920 case $cross_compiling:$ac_tool_warned in
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10923 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10924 ac_tool_warned=yes ;;
10929 AS="$ac_cv_prog_AS"
10932 if test -n "$ac_tool_prefix"; then
10933 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10934 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10936 $as_echo_n "checking for $ac_word... " >&6; }
10937 if ${ac_cv_prog_DLLTOOL+:} false; then :
10938 $as_echo_n "(cached) " >&6
10940 if test -n "$DLLTOOL"; then
10941 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10960 DLLTOOL=$ac_cv_prog_DLLTOOL
10961 if test -n "$DLLTOOL"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10963 $as_echo "$DLLTOOL" >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10966 $as_echo "no" >&6; }
10971 if test -z "$ac_cv_prog_DLLTOOL"; then
10972 ac_ct_DLLTOOL=$DLLTOOL
10973 # Extract the first word of "dlltool", so it can be a program name with args.
10974 set dummy dlltool; ac_word=$2
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10976 $as_echo_n "checking for $ac_word... " >&6; }
10977 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
10978 $as_echo_n "(cached) " >&6
10980 if test -n "$ac_ct_DLLTOOL"; then
10981 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10987 test -z "$as_dir" && as_dir=.
10988 for ac_exec_ext in '' $ac_executable_extensions; do
10989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10990 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11000 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11001 if test -n "$ac_ct_DLLTOOL"; then
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11003 $as_echo "$ac_ct_DLLTOOL" >&6; }
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11006 $as_echo "no" >&6; }
11009 if test "x$ac_ct_DLLTOOL" = x; then
11012 case $cross_compiling:$ac_tool_warned in
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11016 ac_tool_warned=yes ;;
11018 DLLTOOL=$ac_ct_DLLTOOL
11021 DLLTOOL="$ac_cv_prog_DLLTOOL"
11024 if test -n "$ac_tool_prefix"; then
11025 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11026 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11028 $as_echo_n "checking for $ac_word... " >&6; }
11029 if ${ac_cv_prog_OBJDUMP+:} false; then :
11030 $as_echo_n "(cached) " >&6
11032 if test -n "$OBJDUMP"; then
11033 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11036 for as_dir in $PATH
11039 test -z "$as_dir" && as_dir=.
11040 for ac_exec_ext in '' $ac_executable_extensions; do
11041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11042 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11052 OBJDUMP=$ac_cv_prog_OBJDUMP
11053 if test -n "$OBJDUMP"; then
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11055 $as_echo "$OBJDUMP" >&6; }
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11058 $as_echo "no" >&6; }
11063 if test -z "$ac_cv_prog_OBJDUMP"; then
11064 ac_ct_OBJDUMP=$OBJDUMP
11065 # Extract the first word of "objdump", so it can be a program name with args.
11066 set dummy objdump; ac_word=$2
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11068 $as_echo_n "checking for $ac_word... " >&6; }
11069 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11070 $as_echo_n "(cached) " >&6
11072 if test -n "$ac_ct_OBJDUMP"; then
11073 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11076 for as_dir in $PATH
11079 test -z "$as_dir" && as_dir=.
11080 for ac_exec_ext in '' $ac_executable_extensions; do
11081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11082 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11092 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11093 if test -n "$ac_ct_OBJDUMP"; then
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11095 $as_echo "$ac_ct_OBJDUMP" >&6; }
11097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11098 $as_echo "no" >&6; }
11101 if test "x$ac_ct_OBJDUMP" = x; then
11104 case $cross_compiling:$ac_tool_warned in
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11108 ac_tool_warned=yes ;;
11110 OBJDUMP=$ac_ct_OBJDUMP
11113 OBJDUMP="$ac_cv_prog_OBJDUMP"
11119 test -z "$AS" && AS=as
11125 test -z "$DLLTOOL" && DLLTOOL=dlltool
11131 test -z "$OBJDUMP" && OBJDUMP=objdump
11143 # Check whether --enable-shared was given.
11144 if test "${enable_shared+set}" = set; then :
11145 enableval=$enable_shared; p=${PACKAGE-default}
11147 yes) enable_shared=yes ;;
11148 no) enable_shared=no ;;
11151 # Look at the argument we got. We use all the common list separators.
11152 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11153 for pkg in $enableval; do
11155 if test "X$pkg" = "X$p"; then
11174 # Check whether --enable-static was given.
11175 if test "${enable_static+set}" = set; then :
11176 enableval=$enable_static; p=${PACKAGE-default}
11178 yes) enable_static=yes ;;
11179 no) enable_static=no ;;
11182 # Look at the argument we got. We use all the common list separators.
11183 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11184 for pkg in $enableval; do
11186 if test "X$pkg" = "X$p"; then
11206 # Check whether --with-pic was given.
11207 if test "${with_pic+set}" = set; then :
11208 withval=$with_pic; lt_p=${PACKAGE-default}
11210 yes|no) pic_mode=$withval ;;
11213 # Look at the argument we got. We use all the common list separators.
11214 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11215 for lt_pkg in $withval; do
11217 if test "X$lt_pkg" = "X$lt_p"; then
11235 # Check whether --enable-fast-install was given.
11236 if test "${enable_fast_install+set}" = set; then :
11237 enableval=$enable_fast_install; p=${PACKAGE-default}
11239 yes) enable_fast_install=yes ;;
11240 no) enable_fast_install=no ;;
11242 enable_fast_install=no
11243 # Look at the argument we got. We use all the common list separators.
11244 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11245 for pkg in $enableval; do
11247 if test "X$pkg" = "X$p"; then
11248 enable_fast_install=yes
11255 enable_fast_install=yes
11265 shared_archive_member_spec=
11266 case $host,$enable_shared in
11267 power*-*-aix[5-9]*,yes)
11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11269 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11271 # Check whether --with-aix-soname was given.
11272 if test "${with_aix_soname+set}" = set; then :
11273 withval=$with_aix_soname; case $withval in
11277 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11280 lt_cv_with_aix_soname=$with_aix_soname
11282 if ${lt_cv_with_aix_soname+:} false; then :
11283 $as_echo_n "(cached) " >&6
11285 lt_cv_with_aix_soname=aix
11288 with_aix_soname=$lt_cv_with_aix_soname
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11292 $as_echo "$with_aix_soname" >&6; }
11293 if test aix != "$with_aix_soname"; then
11294 # For the AIX way of multilib, we name the shared archive member
11295 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11296 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11297 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11298 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11299 if test 64 = "${OBJECT_MODE-32}"; then
11300 shared_archive_member_spec=shr_64
11302 shared_archive_member_spec=shr
11307 with_aix_soname=aix
11320 # This can be used to rebuild libtool when needed
11321 LIBTOOL_DEPS=$ltmain
11323 # Always use our own libtool.
11324 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11355 test -z "$LN_S" && LN_S="ln -s"
11370 if test -n "${ZSH_VERSION+set}"; then
11371 setopt NO_GLOB_SUBST
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11375 $as_echo_n "checking for objdir... " >&6; }
11376 if ${lt_cv_objdir+:} false; then :
11377 $as_echo_n "(cached) " >&6
11379 rm -f .libs 2>/dev/null
11380 mkdir .libs 2>/dev/null
11381 if test -d .libs; then
11384 # MS-DOS does not allow filenames that begin with a dot.
11387 rmdir .libs 2>/dev/null
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11390 $as_echo "$lt_cv_objdir" >&6; }
11391 objdir=$lt_cv_objdir
11397 cat >>confdefs.h <<_ACEOF
11398 #define LT_OBJDIR "$lt_cv_objdir/"
11406 # AIX sometimes has problems with the GCC collect2 program. For some
11407 # reason, if we set the COLLECT_NAMES environment variable, the problems
11408 # vanish in a puff of smoke.
11409 if test set != "${COLLECT_NAMES+set}"; then
11411 export COLLECT_NAMES
11416 # Global variables:
11418 can_build_shared=yes
11420 # All known linkers require a '.a' archive for static linking (except MSVC,
11421 # which needs '.lib').
11424 with_gnu_ld=$lt_cv_prog_gnu_ld
11429 # Set sane defaults for various variables
11430 test -z "$CC" && CC=cc
11431 test -z "$LTCC" && LTCC=$CC
11432 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11433 test -z "$LD" && LD=ld
11434 test -z "$ac_objext" && ac_objext=o
11436 func_cc_basename $compiler
11437 cc_basename=$func_cc_basename_result
11440 # Only perform the check for file, if the check method requires it
11441 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11442 case $deplibs_check_method in
11444 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11446 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11447 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11448 $as_echo_n "(cached) " >&6
11452 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11455 lt_save_MAGIC_CMD=$MAGIC_CMD
11456 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11457 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11458 for ac_dir in $ac_dummy; do
11460 test -z "$ac_dir" && ac_dir=.
11461 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11462 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11463 if test -n "$file_magic_test_file"; then
11464 case $deplibs_check_method in
11466 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11467 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11468 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11469 $EGREP "$file_magic_regex" > /dev/null; then
11474 *** Warning: the command libtool uses to detect shared libraries,
11475 *** $file_magic_cmd, produces output that libtool cannot recognize.
11476 *** The result is that libtool may fail to recognize shared libraries
11477 *** as such. This will affect the creation of libtool libraries that
11478 *** depend on shared libraries, but programs linked with such libtool
11479 *** libraries will work regardless of this problem. Nevertheless, you
11480 *** may want to report the problem to your system manager and/or to
11481 *** bug-libtool@gnu.org
11491 MAGIC_CMD=$lt_save_MAGIC_CMD
11496 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11497 if test -n "$MAGIC_CMD"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11499 $as_echo "$MAGIC_CMD" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11509 if test -z "$lt_cv_path_MAGIC_CMD"; then
11510 if test -n "$ac_tool_prefix"; then
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11512 $as_echo_n "checking for file... " >&6; }
11513 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11514 $as_echo_n "(cached) " >&6
11518 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11521 lt_save_MAGIC_CMD=$MAGIC_CMD
11522 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11524 for ac_dir in $ac_dummy; do
11526 test -z "$ac_dir" && ac_dir=.
11527 if test -f "$ac_dir/file"; then
11528 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11529 if test -n "$file_magic_test_file"; then
11530 case $deplibs_check_method in
11532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11533 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11535 $EGREP "$file_magic_regex" > /dev/null; then
11540 *** Warning: the command libtool uses to detect shared libraries,
11541 *** $file_magic_cmd, produces output that libtool cannot recognize.
11542 *** The result is that libtool may fail to recognize shared libraries
11543 *** as such. This will affect the creation of libtool libraries that
11544 *** depend on shared libraries, but programs linked with such libtool
11545 *** libraries will work regardless of this problem. Nevertheless, you
11546 *** may want to report the problem to your system manager and/or to
11547 *** bug-libtool@gnu.org
11557 MAGIC_CMD=$lt_save_MAGIC_CMD
11562 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11563 if test -n "$MAGIC_CMD"; then
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11565 $as_echo "$MAGIC_CMD" >&6; }
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11568 $as_echo "no" >&6; }
11581 # Use C for the default configuration in the libtool script
11585 ac_cpp='$CPP $CPPFLAGS'
11586 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11587 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11588 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11591 # Source file extension for C test sources.
11594 # Object file extension for compiled C test sources.
11598 # Code to be used in simple compile tests
11599 lt_simple_compile_test_code="int some_variable = 0;"
11601 # Code to be used in simple link tests
11602 lt_simple_link_test_code='int main(){return(0);}'
11610 # If no C compiler was specified, use CC.
11613 # If no C compiler flags were specified, use CFLAGS.
11614 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11616 # Allow CC to be a program name with arguments.
11619 # Save the default compiler, since it gets overwritten when the other
11620 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11621 compiler_DEFAULT=$CC
11623 # save warnings/boilerplate of simple test code
11624 ac_outfile=conftest.$ac_objext
11625 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11626 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11627 _lt_compiler_boilerplate=`cat conftest.err`
11630 ac_outfile=conftest.$ac_objext
11631 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11632 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11633 _lt_linker_boilerplate=`cat conftest.err`
11638 ## There is no encapsulation within the following macros, do not change
11639 ## the running order or otherwise move them around unless you know exactly
11640 ## what you are doing...
11641 if test -n "$compiler"; then
11643 lt_prog_compiler_no_builtin_flag=
11645 if test yes = "$GCC"; then
11646 case $cc_basename in
11648 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11650 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11654 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11655 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11656 $as_echo_n "(cached) " >&6
11658 lt_cv_prog_compiler_rtti_exceptions=no
11659 ac_outfile=conftest.$ac_objext
11660 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11661 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11662 # Insert the option either (1) after the last *FLAGS variable, or
11663 # (2) before a word containing "conftest.", or (3) at the end.
11664 # Note that $ac_compile itself does not contain backslashes and begins
11665 # with a dollar sign (not a hyphen), so the echo should work correctly.
11666 # The option is referenced via a variable to avoid confusing sed.
11667 lt_compile=`echo "$ac_compile" | $SED \
11668 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11669 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11670 -e 's:$: $lt_compiler_flag:'`
11671 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11672 (eval "$lt_compile" 2>conftest.err)
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 if (exit $ac_status) && test -s "$ac_outfile"; then
11677 # The compiler can only warn and ignore the option if not recognized
11678 # So say no if there are warnings other than the usual output.
11679 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11680 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11681 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11682 lt_cv_prog_compiler_rtti_exceptions=yes
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11689 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11691 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11692 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11704 lt_prog_compiler_wl=
11705 lt_prog_compiler_pic=
11706 lt_prog_compiler_static=
11709 if test yes = "$GCC"; then
11710 lt_prog_compiler_wl='-Wl,'
11711 lt_prog_compiler_static='-static'
11715 # All AIX code is PIC.
11716 if test ia64 = "$host_cpu"; then
11717 # AIX 5 now supports IA64 processor
11718 lt_prog_compiler_static='-Bstatic'
11720 lt_prog_compiler_pic='-fPIC'
11726 # see comment about AmigaOS4 .so support
11727 lt_prog_compiler_pic='-fPIC'
11730 # FIXME: we need at least 68020 code to build shared libraries, but
11731 # adding the '-m68020' flag to GCC prevents building anything better,
11733 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11738 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11739 # PIC is the default for these OSes.
11742 mingw* | cygwin* | pw32* | os2* | cegcc*)
11743 # This hack is so that the source file can tell whether it is being
11744 # built for inclusion in a dll (and should export symbols for example).
11745 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11746 # (--disable-auto-import) libraries
11747 lt_prog_compiler_pic='-DDLL_EXPORT'
11750 lt_prog_compiler_static='$wl-static'
11755 darwin* | rhapsody*)
11756 # PIC is the default on this platform
11757 # Common symbols not allowed in MH_DYLIB files
11758 lt_prog_compiler_pic='-fno-common'
11762 # PIC is the default for Haiku.
11763 # The "-static" flag exists, but is broken.
11764 lt_prog_compiler_static=
11768 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11769 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11770 # sets the default TLS model and affects inlining.
11776 lt_prog_compiler_pic='-fPIC'
11782 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11783 # Instead, we relocate shared libraries at runtime.
11787 # Just because we use GCC doesn't mean we suddenly get shared libraries
11788 # on systems that don't support them.
11789 lt_prog_compiler_can_build_shared=no
11794 # QNX uses GNU C++, but need to define -shared option too, otherwise
11795 # it will coredump.
11796 lt_prog_compiler_pic='-fPIC -shared'
11800 if test -d /usr/nec; then
11801 lt_prog_compiler_pic=-Kconform_pic
11806 lt_prog_compiler_pic='-fPIC'
11810 case $cc_basename in
11811 nvcc*) # Cuda Compiler Driver 2.2
11812 lt_prog_compiler_wl='-Xlinker '
11813 if test -n "$lt_prog_compiler_pic"; then
11814 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11819 # PORTME Check for flag to pass linker flags through the system compiler.
11822 lt_prog_compiler_wl='-Wl,'
11823 if test ia64 = "$host_cpu"; then
11824 # AIX 5 now supports IA64 processor
11825 lt_prog_compiler_static='-Bstatic'
11827 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11831 darwin* | rhapsody*)
11832 # PIC is the default on this platform
11833 # Common symbols not allowed in MH_DYLIB files
11834 lt_prog_compiler_pic='-fno-common'
11835 case $cc_basename in
11837 # NAG Fortran compiler
11838 lt_prog_compiler_wl='-Wl,-Wl,,'
11839 lt_prog_compiler_pic='-PIC'
11840 lt_prog_compiler_static='-Bstatic'
11845 mingw* | cygwin* | pw32* | os2* | cegcc*)
11846 # This hack is so that the source file can tell whether it is being
11847 # built for inclusion in a dll (and should export symbols for example).
11848 lt_prog_compiler_pic='-DDLL_EXPORT'
11851 lt_prog_compiler_static='$wl-static'
11856 hpux9* | hpux10* | hpux11*)
11857 lt_prog_compiler_wl='-Wl,'
11858 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11859 # not for PA HP-UX.
11865 lt_prog_compiler_pic='+Z'
11868 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11869 lt_prog_compiler_static='$wl-a ${wl}archive'
11872 irix5* | irix6* | nonstopux*)
11873 lt_prog_compiler_wl='-Wl,'
11874 # PIC (with -KPIC) is the default.
11875 lt_prog_compiler_static='-non_shared'
11878 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11879 case $cc_basename in
11880 # old Intel for x86_64, which still supported -KPIC.
11882 lt_prog_compiler_wl='-Wl,'
11883 lt_prog_compiler_pic='-KPIC'
11884 lt_prog_compiler_static='-static'
11886 # flang / f18. f95 an alias for gfortran or flang on Debian
11887 flang* | f18* | f95*)
11888 lt_prog_compiler_wl='-Wl,'
11889 lt_prog_compiler_pic='-fPIC'
11890 lt_prog_compiler_static='-static'
11892 # icc used to be incompatible with GCC.
11893 # ICC 10 doesn't accept -KPIC any more.
11895 lt_prog_compiler_wl='-Wl,'
11896 lt_prog_compiler_pic='-fPIC'
11897 lt_prog_compiler_static='-static'
11899 # Lahey Fortran 8.1.
11901 lt_prog_compiler_wl='-Wl,'
11902 lt_prog_compiler_pic='--shared'
11903 lt_prog_compiler_static='--static'
11906 # NAG Fortran compiler
11907 lt_prog_compiler_wl='-Wl,-Wl,,'
11908 lt_prog_compiler_pic='-PIC'
11909 lt_prog_compiler_static='-Bstatic'
11912 # Fabrice Bellard et al's Tiny C Compiler
11913 lt_prog_compiler_wl='-Wl,'
11914 lt_prog_compiler_pic='-fPIC'
11915 lt_prog_compiler_static='-static'
11917 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11918 # Portland Group compilers (*not* the Pentium gcc compiler,
11919 # which looks to be a dead project)
11920 lt_prog_compiler_wl='-Wl,'
11921 lt_prog_compiler_pic='-fpic'
11922 lt_prog_compiler_static='-Bstatic'
11925 lt_prog_compiler_wl='-Wl,'
11926 # All Alpha code is PIC.
11927 lt_prog_compiler_static='-non_shared'
11929 xl* | bgxl* | bgf* | mpixl*)
11930 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11931 lt_prog_compiler_wl='-Wl,'
11932 lt_prog_compiler_pic='-qpic'
11933 lt_prog_compiler_static='-qstaticlink'
11936 case `$CC -V 2>&1 | sed 5q` in
11937 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11938 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11939 lt_prog_compiler_pic='-KPIC'
11940 lt_prog_compiler_static='-Bstatic'
11941 lt_prog_compiler_wl=''
11943 *Sun\ F* | *Sun*Fortran*)
11944 lt_prog_compiler_pic='-KPIC'
11945 lt_prog_compiler_static='-Bstatic'
11946 lt_prog_compiler_wl='-Qoption ld '
11950 lt_prog_compiler_pic='-KPIC'
11951 lt_prog_compiler_static='-Bstatic'
11952 lt_prog_compiler_wl='-Wl,'
11954 *Intel*\ [CF]*Compiler*)
11955 lt_prog_compiler_wl='-Wl,'
11956 lt_prog_compiler_pic='-fPIC'
11957 lt_prog_compiler_static='-static'
11960 lt_prog_compiler_wl='-Wl,'
11961 lt_prog_compiler_pic='-fpic'
11962 lt_prog_compiler_static='-Bstatic'
11970 lt_prog_compiler_pic='-KPIC'
11971 lt_prog_compiler_static='-Bstatic'
11975 # QNX uses GNU C++, but need to define -shared option too, otherwise
11976 # it will coredump.
11977 lt_prog_compiler_pic='-fPIC -shared'
11980 osf3* | osf4* | osf5*)
11981 lt_prog_compiler_wl='-Wl,'
11982 # All OSF/1 code is PIC.
11983 lt_prog_compiler_static='-non_shared'
11987 lt_prog_compiler_static='-non_shared'
11991 lt_prog_compiler_pic='-KPIC'
11992 lt_prog_compiler_static='-Bstatic'
11993 case $cc_basename in
11994 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11995 lt_prog_compiler_wl='-Qoption ld ';;
11997 lt_prog_compiler_wl='-Wl,';;
12002 lt_prog_compiler_wl='-Qoption ld '
12003 lt_prog_compiler_pic='-PIC'
12004 lt_prog_compiler_static='-Bstatic'
12007 sysv4 | sysv4.2uw2* | sysv4.3*)
12008 lt_prog_compiler_wl='-Wl,'
12009 lt_prog_compiler_pic='-KPIC'
12010 lt_prog_compiler_static='-Bstatic'
12014 if test -d /usr/nec; then
12015 lt_prog_compiler_pic='-Kconform_pic'
12016 lt_prog_compiler_static='-Bstatic'
12020 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12021 lt_prog_compiler_wl='-Wl,'
12022 lt_prog_compiler_pic='-KPIC'
12023 lt_prog_compiler_static='-Bstatic'
12027 lt_prog_compiler_wl='-Wl,'
12028 lt_prog_compiler_can_build_shared=no
12032 lt_prog_compiler_pic='-pic'
12033 lt_prog_compiler_static='-Bstatic'
12037 lt_prog_compiler_can_build_shared=no
12043 # For platforms that do not support PIC, -DPIC is meaningless:
12045 lt_prog_compiler_pic=
12048 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12053 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12054 if ${lt_cv_prog_compiler_pic+:} false; then :
12055 $as_echo_n "(cached) " >&6
12057 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12060 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12061 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12064 # Check to make sure the PIC flag actually works.
12066 if test -n "$lt_prog_compiler_pic"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12068 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12069 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12070 $as_echo_n "(cached) " >&6
12072 lt_cv_prog_compiler_pic_works=no
12073 ac_outfile=conftest.$ac_objext
12074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12075 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12076 # Insert the option either (1) after the last *FLAGS variable, or
12077 # (2) before a word containing "conftest.", or (3) at the end.
12078 # Note that $ac_compile itself does not contain backslashes and begins
12079 # with a dollar sign (not a hyphen), so the echo should work correctly.
12080 # The option is referenced via a variable to avoid confusing sed.
12081 lt_compile=`echo "$ac_compile" | $SED \
12082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12084 -e 's:$: $lt_compiler_flag:'`
12085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12086 (eval "$lt_compile" 2>conftest.err)
12088 cat conftest.err >&5
12089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12090 if (exit $ac_status) && test -s "$ac_outfile"; then
12091 # The compiler can only warn and ignore the option if not recognized
12092 # So say no if there are warnings other than the usual output.
12093 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12094 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12095 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12096 lt_cv_prog_compiler_pic_works=yes
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12103 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12105 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12106 case $lt_prog_compiler_pic in
12108 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12111 lt_prog_compiler_pic=
12112 lt_prog_compiler_can_build_shared=no
12128 # Check to make sure the static flag actually works.
12130 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12132 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12133 if ${lt_cv_prog_compiler_static_works+:} false; then :
12134 $as_echo_n "(cached) " >&6
12136 lt_cv_prog_compiler_static_works=no
12137 save_LDFLAGS=$LDFLAGS
12138 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12139 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12140 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12141 # The linker can only warn and ignore the option if not recognized
12142 # So say no if there are warnings
12143 if test -s conftest.err; then
12144 # Append any errors to the config.log.
12145 cat conftest.err 1>&5
12146 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12147 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12148 if diff conftest.exp conftest.er2 >/dev/null; then
12149 lt_cv_prog_compiler_static_works=yes
12152 lt_cv_prog_compiler_static_works=yes
12156 LDFLAGS=$save_LDFLAGS
12159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12160 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12162 if test yes = "$lt_cv_prog_compiler_static_works"; then
12165 lt_prog_compiler_static=
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12175 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12176 if ${lt_cv_prog_compiler_c_o+:} false; then :
12177 $as_echo_n "(cached) " >&6
12179 lt_cv_prog_compiler_c_o=no
12180 $RM -r conftest 2>/dev/null
12184 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12186 lt_compiler_flag="-o out/conftest2.$ac_objext"
12187 # Insert the option either (1) after the last *FLAGS variable, or
12188 # (2) before a word containing "conftest.", or (3) at the end.
12189 # Note that $ac_compile itself does not contain backslashes and begins
12190 # with a dollar sign (not a hyphen), so the echo should work correctly.
12191 lt_compile=`echo "$ac_compile" | $SED \
12192 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12193 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12194 -e 's:$: $lt_compiler_flag:'`
12195 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12196 (eval "$lt_compile" 2>out/conftest.err)
12198 cat out/conftest.err >&5
12199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12200 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12202 # The compiler can only warn and ignore the option if not recognized
12203 # So say no if there are warnings
12204 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12205 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12206 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12207 lt_cv_prog_compiler_c_o=yes
12212 # SGI C++ compiler will create directory out/ii_files/ for
12213 # template instantiation
12214 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12215 $RM out/* && rmdir out
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12222 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12230 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12231 if ${lt_cv_prog_compiler_c_o+:} false; then :
12232 $as_echo_n "(cached) " >&6
12234 lt_cv_prog_compiler_c_o=no
12235 $RM -r conftest 2>/dev/null
12239 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12241 lt_compiler_flag="-o out/conftest2.$ac_objext"
12242 # Insert the option either (1) after the last *FLAGS variable, or
12243 # (2) before a word containing "conftest.", or (3) at the end.
12244 # Note that $ac_compile itself does not contain backslashes and begins
12245 # with a dollar sign (not a hyphen), so the echo should work correctly.
12246 lt_compile=`echo "$ac_compile" | $SED \
12247 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12248 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12249 -e 's:$: $lt_compiler_flag:'`
12250 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12251 (eval "$lt_compile" 2>out/conftest.err)
12253 cat out/conftest.err >&5
12254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12255 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12257 # The compiler can only warn and ignore the option if not recognized
12258 # So say no if there are warnings
12259 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12260 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12261 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12262 lt_cv_prog_compiler_c_o=yes
12267 # SGI C++ compiler will create directory out/ii_files/ for
12268 # template instantiation
12269 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12270 $RM out/* && rmdir out
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12277 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12282 hard_links=nottested
12283 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12284 # do not overwrite the value of need_locks provided by the user
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12286 $as_echo_n "checking if we can lock with hard links... " >&6; }
12289 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12291 ln conftest.a conftest.b 2>&5 || hard_links=no
12292 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12294 $as_echo "$hard_links" >&6; }
12295 if test no = "$hard_links"; then
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12297 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12310 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12313 allow_undefined_flag=
12314 always_export_symbols=no
12316 archive_expsym_cmds=
12317 compiler_needs_object=no
12318 enable_shared_with_static_runtimes=no
12319 export_dynamic_flag_spec=
12320 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12321 hardcode_automatic=no
12323 hardcode_direct_absolute=no
12324 hardcode_libdir_flag_spec=
12325 hardcode_libdir_separator=
12326 hardcode_minus_L=no
12327 hardcode_shlibpath_var=unsupported
12329 link_all_deplibs=unknown
12331 module_expsym_cmds=
12332 old_archive_from_new_cmds=
12333 old_archive_from_expsyms_cmds=
12334 thread_safe_flag_spec=
12335 whole_archive_flag_spec=
12336 # include_expsyms should be a list of space-separated symbols to be *always*
12337 # included in the symbol list
12339 # exclude_expsyms can be an extended regexp of symbols to exclude
12340 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12341 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12342 # as well as any symbol that contains 'd'.
12343 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12344 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12345 # platforms (ab)use it in PIC code, but their linkers get confused if
12346 # the symbol is explicitly referenced. Since portable code cannot
12347 # rely on this symbol name, it's probably fine to never include it in
12348 # preloaded symbol tables.
12349 # Exclude shared library initialization/finalization symbols.
12350 extract_expsyms_cmds=
12353 cygwin* | mingw* | pw32* | cegcc*)
12354 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12355 # When not using gcc, we currently assume that we are using
12356 # Microsoft Visual C++.
12357 if test yes != "$GCC"; then
12362 # we just hope/assume this is gcc and not c89 (= MSVC++)
12365 openbsd* | bitrig*)
12368 linux* | k*bsd*-gnu | gnu*)
12369 link_all_deplibs=no
12375 # On some targets, GNU ld is compatible enough with the native linker
12376 # that we're better off using the native interface for both.
12377 lt_use_gnu_ld_interface=no
12378 if test yes = "$with_gnu_ld"; then
12381 # The AIX port of GNU ld has always aspired to compatibility
12382 # with the native linker. However, as the warning in the GNU ld
12383 # block says, versions before 2.19.5* couldn't really create working
12384 # shared libraries, regardless of the interface used.
12385 case `$LD -v 2>&1` in
12386 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12387 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12388 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12390 lt_use_gnu_ld_interface=yes
12395 lt_use_gnu_ld_interface=yes
12400 if test yes = "$lt_use_gnu_ld_interface"; then
12401 # If archive_cmds runs LD, not CC, wlarc should be empty
12404 # Set some defaults for GNU ld with shared library support. These
12405 # are reset later if shared libraries are not supported. Putting them
12406 # here allows them to be overridden if necessary.
12407 runpath_var=LD_RUN_PATH
12408 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12409 export_dynamic_flag_spec='$wl--export-dynamic'
12410 # ancient GNU ld didn't support --whole-archive et. al.
12411 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12412 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12414 whole_archive_flag_spec=
12416 supports_anon_versioning=no
12417 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12418 *GNU\ gold*) supports_anon_versioning=yes ;;
12419 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12420 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12421 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12422 *\ 2.11.*) ;; # other 2.11 versions
12423 *) supports_anon_versioning=yes ;;
12426 # See if GNU ld supports shared libraries.
12429 # On AIX/PPC, the GNU linker is very broken
12430 if test ia64 != "$host_cpu"; then
12434 *** Warning: the GNU linker, at least up to release 2.19, is reported
12435 *** to be unable to reliably create shared libraries on AIX.
12436 *** Therefore, libtool is disabling shared libraries support. If you
12437 *** really care for shared libraries, you may want to install binutils
12438 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12439 *** You will then need to restart the configuration process.
12448 # see comment about AmigaOS4 .so support
12449 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12450 archive_expsym_cmds=''
12453 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)'
12454 hardcode_libdir_flag_spec='-L$libdir'
12455 hardcode_minus_L=yes
12461 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12462 allow_undefined_flag=unsupported
12463 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12464 # support --undefined. This deserves some investigation. FIXME
12465 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12471 cygwin* | mingw* | pw32* | cegcc*)
12472 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12473 # as there is no search path for DLLs.
12474 hardcode_libdir_flag_spec='-L$libdir'
12475 export_dynamic_flag_spec='$wl--export-all-symbols'
12476 allow_undefined_flag=unsupported
12477 always_export_symbols=no
12478 enable_shared_with_static_runtimes=yes
12479 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'
12480 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12482 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12484 # If the export-symbols file already is a .def file, use it as
12485 # is; otherwise, prepend EXPORTS...
12486 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12487 cp $export_symbols $output_objdir/$soname.def;
12489 echo EXPORTS > $output_objdir/$soname.def;
12490 cat $export_symbols >> $output_objdir/$soname.def;
12492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12499 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12500 link_all_deplibs=yes
12504 hardcode_libdir_flag_spec='-L$libdir'
12505 hardcode_minus_L=yes
12506 allow_undefined_flag=unsupported
12508 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12509 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12510 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12511 $ECHO EXPORTS >> $output_objdir/$libname.def~
12512 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12513 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12514 emximp -o $lib $output_objdir/$libname.def'
12515 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12516 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12517 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12518 $ECHO EXPORTS >> $output_objdir/$libname.def~
12519 prefix_cmds="$SED"~
12520 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12521 prefix_cmds="$prefix_cmds -e 1d";
12523 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12524 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12525 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12526 emximp -o $lib $output_objdir/$libname.def'
12527 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12528 enable_shared_with_static_runtimes=yes
12533 hardcode_shlibpath_var=no
12534 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12535 export_dynamic_flag_spec='$wl-E'
12536 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12537 # Instead, shared libraries are loaded at an image base (0x10000000 by
12538 # default) and relocated if they conflict, which is a slow very memory
12539 # consuming and fragmenting process. To avoid this, we pick a random,
12540 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12541 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12542 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12543 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'
12546 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12548 if test linux-dietlibc = "$host_os"; then
12549 case $cc_basename in
12550 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12553 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12554 && test no = "$tmp_diet"
12556 tmp_addflag=' $pic_flag'
12557 tmp_sharedflag='-shared'
12558 case $cc_basename,$host_cpu in
12559 pgcc*) # Portland Group C compiler
12560 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'
12561 tmp_addflag=' $pic_flag'
12563 pgf77* | pgf90* | pgf95* | pgfortran*)
12564 # Portland Group f77 and f90 compilers
12565 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'
12566 tmp_addflag=' $pic_flag -Mnomain' ;;
12567 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12568 tmp_addflag=' -i_dynamic' ;;
12569 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12570 tmp_addflag=' -i_dynamic -nofor_main' ;;
12571 ifc* | ifort*) # Intel Fortran compiler
12572 tmp_addflag=' -nofor_main' ;;
12573 lf95*) # Lahey Fortran 8.1
12574 whole_archive_flag_spec=
12575 tmp_sharedflag='--shared' ;;
12576 nagfor*) # NAGFOR 5.3
12577 tmp_sharedflag='-Wl,-shared' ;;
12578 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12579 tmp_sharedflag='-qmkshrobj'
12581 nvcc*) # Cuda Compiler Driver 2.2
12582 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'
12583 compiler_needs_object=yes
12586 case `$CC -V 2>&1 | sed 5q` in
12587 *Sun\ C*) # Sun C 5.9
12588 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'
12589 compiler_needs_object=yes
12590 tmp_sharedflag='-G' ;;
12591 *Sun\ F*) # Sun Fortran 8.3
12592 tmp_sharedflag='-G' ;;
12594 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12596 if test yes = "$supports_anon_versioning"; then
12597 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12598 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12599 echo "local: *; };" >> $output_objdir/$libname.ver~
12600 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12603 case $cc_basename in
12605 export_dynamic_flag_spec='-rdynamic'
12607 xlf* | bgf* | bgxlf* | mpixlf*)
12608 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12609 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12610 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12611 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12612 if test yes = "$supports_anon_versioning"; then
12613 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12614 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12615 echo "local: *; };" >> $output_objdir/$libname.ver~
12616 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12625 netbsd* | netbsdelf*-gnu)
12626 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12627 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12630 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12631 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12636 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12640 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12641 *** create shared libraries on Solaris systems. Therefore, libtool
12642 *** is disabling shared libraries support. We urge you to upgrade GNU
12643 *** binutils to release 2.9.1 or newer. Another option is to modify
12644 *** your PATH or compiler configuration so that the native linker is
12645 *** used, and then restart.
12648 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12649 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12650 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12656 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12657 case `$LD -v 2>&1` in
12658 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12662 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12663 *** reliably create shared libraries on SCO systems. Therefore, libtool
12664 *** is disabling shared libraries support. We urge you to upgrade GNU
12665 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12666 *** your PATH or compiler configuration so that the native linker is
12667 *** used, and then restart.
12672 # For security reasons, it is highly recommended that you always
12673 # use absolute paths for naming shared libraries, and exclude the
12674 # DT_RUNPATH tag from executables and libraries. But doing so
12675 # requires that you compile everything twice, which is a pain.
12676 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12677 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12678 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12679 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12688 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12690 hardcode_direct=yes
12691 hardcode_shlibpath_var=no
12695 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12696 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12697 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12704 if test no = "$ld_shlibs"; then
12706 hardcode_libdir_flag_spec=
12707 export_dynamic_flag_spec=
12708 whole_archive_flag_spec=
12711 # PORTME fill in a description of your system's linker (not GNU ld)
12714 allow_undefined_flag=unsupported
12715 always_export_symbols=yes
12716 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'
12717 # Note: this linker hardcodes the directories in LIBPATH if there
12718 # are no directories specified by -L.
12719 hardcode_minus_L=yes
12720 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12721 # Neither direct hardcoding nor static linking is supported with a
12723 hardcode_direct=unsupported
12728 if test ia64 = "$host_cpu"; then
12729 # On IA64, the linker does run time linking by default, so we don't
12730 # have to do anything special.
12731 aix_use_runtimelinking=no
12732 exp_sym_flag='-Bexport'
12735 # If we're using GNU nm, then we don't want the "-C" option.
12736 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12737 # Without the "-l" option, or with the "-B" option, AIX nm treats
12738 # weak defined symbols like other global defined symbols, whereas
12739 # GNU nm marks them as "W".
12740 # While the 'weak' keyword is ignored in the Export File, we need
12741 # it in the Import File for the 'aix-soname' feature, so we have
12742 # to replace the "-B" option with "-P" for AIX nm.
12743 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12744 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'
12746 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'
12748 aix_use_runtimelinking=no
12750 # Test if we are trying to use run time linking or normal
12751 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12752 # have runtime linking enabled, and use it for executables.
12753 # For shared libraries, we enable/disable runtime linking
12754 # depending on the kind of the shared library created -
12755 # when "with_aix_soname,aix_use_runtimelinking" is:
12756 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12757 # "aix,yes" lib.so shared, rtl:yes, for executables
12758 # lib.a static archive
12759 # "both,no" lib.so.V(shr.o) shared, rtl:yes
12760 # lib.a(lib.so.V) shared, rtl:no, for executables
12761 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12762 # lib.a(lib.so.V) shared, rtl:no
12763 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
12764 # lib.a static archive
12765 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12766 for ld_flag in $LDFLAGS; do
12767 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12768 aix_use_runtimelinking=yes
12772 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12773 # With aix-soname=svr4, we create the lib.so.V shared archives only,
12774 # so we don't have lib.a shared libs to link our executables.
12775 # We have to force runtime linking in this case.
12776 aix_use_runtimelinking=yes
12777 LDFLAGS="$LDFLAGS -Wl,-brtl"
12782 exp_sym_flag='-bexport'
12783 no_entry_flag='-bnoentry'
12786 # When large executables or shared objects are built, AIX ld can
12787 # have problems creating the table of contents. If linking a library
12788 # or program results in "error TOC overflow" add -mminimal-toc to
12789 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12790 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12793 hardcode_direct=yes
12794 hardcode_direct_absolute=yes
12795 hardcode_libdir_separator=':'
12796 link_all_deplibs=yes
12797 file_list_spec='$wl-f,'
12798 case $with_aix_soname,$aix_use_runtimelinking in
12799 aix,*) ;; # traditional, no import file
12800 svr4,* | *,yes) # use import file
12801 # The Import File defines what to hardcode.
12803 hardcode_direct_absolute=no
12807 if test yes = "$GCC"; then
12808 case $host_os in aix4.[012]|aix4.[012].*)
12809 # We only want to do this on AIX 4.2 and lower, the check
12810 # below for broken collect2 doesn't work under 4.3+
12811 collect2name=`$CC -print-prog-name=collect2`
12812 if test -f "$collect2name" &&
12813 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12815 # We have reworked collect2
12818 # We have old collect2
12819 hardcode_direct=unsupported
12820 # It fails to find uninstalled libraries when the uninstalled
12821 # path is not listed in the libpath. Setting hardcode_minus_L
12822 # to unsupported forces relinking
12823 hardcode_minus_L=yes
12824 hardcode_libdir_flag_spec='-L$libdir'
12825 hardcode_libdir_separator=
12829 shared_flag='-shared'
12830 if test yes = "$aix_use_runtimelinking"; then
12831 shared_flag="$shared_flag "'$wl-G'
12833 # Need to ensure runtime linking is disabled for the traditional
12834 # shared library, or the linker may eventually find shared libraries
12835 # /with/ Import File - we do not want to mix them.
12836 shared_flag_aix='-shared'
12837 shared_flag_svr4='-shared $wl-G'
12840 if test ia64 = "$host_cpu"; then
12841 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12842 # chokes on -Wl,-G. The following line is correct:
12845 if test yes = "$aix_use_runtimelinking"; then
12846 shared_flag='$wl-G'
12848 shared_flag='$wl-bM:SRE'
12850 shared_flag_aix='$wl-bM:SRE'
12851 shared_flag_svr4='$wl-G'
12855 export_dynamic_flag_spec='$wl-bexpall'
12856 # It seems that -bexpall does not export symbols beginning with
12857 # underscore (_), so it is better to generate a list of symbols to export.
12858 always_export_symbols=yes
12859 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12860 # Warning - without using the other runtime loading flags (-brtl),
12861 # -berok will link without error, but may produce a broken library.
12862 allow_undefined_flag='-berok'
12863 # Determine the default libpath from the value encoded in an
12864 # empty executable.
12865 if test set = "${lt_cv_aix_libpath+set}"; then
12866 aix_libpath=$lt_cv_aix_libpath
12868 if ${lt_cv_aix_libpath_+:} false; then :
12869 $as_echo_n "(cached) " >&6
12871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12872 /* end confdefs.h. */
12881 if ac_fn_c_try_link "$LINENO"; then :
12883 lt_aix_libpath_sed='
12884 /Import File Strings/,/^$/ {
12886 s/^0 *\([^ ]*\) *$/\1/
12890 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12891 # Check for a 64-bit object if we didn't find anything.
12892 if test -z "$lt_cv_aix_libpath_"; then
12893 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12896 rm -f core conftest.err conftest.$ac_objext \
12897 conftest$ac_exeext conftest.$ac_ext
12898 if test -z "$lt_cv_aix_libpath_"; then
12899 lt_cv_aix_libpath_=/usr/lib:/lib
12904 aix_libpath=$lt_cv_aix_libpath_
12907 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12908 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
12910 if test ia64 = "$host_cpu"; then
12911 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12912 allow_undefined_flag="-z nodefs"
12913 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"
12915 # Determine the default libpath from the value encoded in an
12916 # empty executable.
12917 if test set = "${lt_cv_aix_libpath+set}"; then
12918 aix_libpath=$lt_cv_aix_libpath
12920 if ${lt_cv_aix_libpath_+:} false; then :
12921 $as_echo_n "(cached) " >&6
12923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12924 /* end confdefs.h. */
12933 if ac_fn_c_try_link "$LINENO"; then :
12935 lt_aix_libpath_sed='
12936 /Import File Strings/,/^$/ {
12938 s/^0 *\([^ ]*\) *$/\1/
12942 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12943 # Check for a 64-bit object if we didn't find anything.
12944 if test -z "$lt_cv_aix_libpath_"; then
12945 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12948 rm -f core conftest.err conftest.$ac_objext \
12949 conftest$ac_exeext conftest.$ac_ext
12950 if test -z "$lt_cv_aix_libpath_"; then
12951 lt_cv_aix_libpath_=/usr/lib:/lib
12956 aix_libpath=$lt_cv_aix_libpath_
12959 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12960 # Warning - without using the other run time loading flags,
12961 # -berok will link without error, but may produce a broken library.
12962 no_undefined_flag=' $wl-bernotok'
12963 allow_undefined_flag=' $wl-berok'
12964 if test yes = "$with_gnu_ld"; then
12965 # We only use this code for GNU lds that support --whole-archive.
12966 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12968 # Exported symbols can be pulled into shared objects from archives
12969 whole_archive_flag_spec='$convenience'
12971 archive_cmds_need_lc=yes
12972 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12973 # -brtl affects multiple linker settings, -berok does not and is overridden later
12974 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12975 if test svr4 != "$with_aix_soname"; then
12976 # This is similar to how AIX traditionally builds its shared libraries.
12977 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'
12979 if test aix != "$with_aix_soname"; then
12980 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'
12982 # used by -dlpreopen to get the symbols
12983 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
12985 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12993 # see comment about AmigaOS4 .so support
12994 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12995 archive_expsym_cmds=''
12998 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)'
12999 hardcode_libdir_flag_spec='-L$libdir'
13000 hardcode_minus_L=yes
13006 export_dynamic_flag_spec=-rdynamic
13009 cygwin* | mingw* | pw32* | cegcc*)
13010 # When not using gcc, we currently assume that we are using
13011 # Microsoft Visual C++.
13012 # hardcode_libdir_flag_spec is actually meaningless, as there is
13013 # no search path for DLLs.
13014 case $cc_basename in
13017 hardcode_libdir_flag_spec=' '
13018 allow_undefined_flag=unsupported
13019 always_export_symbols=yes
13021 # Tell ltmain to make .lib files, not .a files.
13023 # Tell ltmain to make .dll files, not .so files.
13025 # FIXME: Setting linknames here is a bad hack.
13026 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13027 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13028 cp "$export_symbols" "$output_objdir/$soname.def";
13029 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13031 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13033 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13035 # The linker will not automatically build a static lib if we build a DLL.
13036 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13037 enable_shared_with_static_runtimes=yes
13038 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13039 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13041 old_postinstall_cmds='chmod 644 $oldlib'
13042 postlink_cmds='lt_outputfile="@OUTPUT@"~
13043 lt_tool_outputfile="@TOOL_OUTPUT@"~
13044 case $lt_outputfile in
13047 lt_outputfile=$lt_outputfile.exe
13048 lt_tool_outputfile=$lt_tool_outputfile.exe
13051 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13052 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13053 $RM "$lt_outputfile.manifest";
13057 # Assume MSVC wrapper
13058 hardcode_libdir_flag_spec=' '
13059 allow_undefined_flag=unsupported
13060 # Tell ltmain to make .lib files, not .a files.
13062 # Tell ltmain to make .dll files, not .so files.
13064 # FIXME: Setting linknames here is a bad hack.
13065 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13066 # The linker will automatically build a .lib file if we build a DLL.
13067 old_archive_from_new_cmds='true'
13068 # FIXME: Should let the user specify the lib program.
13069 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13070 enable_shared_with_static_runtimes=yes
13075 darwin* | rhapsody*)
13078 archive_cmds_need_lc=no
13080 hardcode_automatic=yes
13081 hardcode_shlibpath_var=unsupported
13082 if test yes = "$lt_cv_ld_force_load"; then
13083 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\"`'
13086 whole_archive_flag_spec=''
13088 link_all_deplibs=yes
13089 allow_undefined_flag=$_lt_dar_allow_undefined
13090 case $cc_basename in
13091 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13092 *) _lt_dar_can_shared=$GCC ;;
13094 if test yes = "$_lt_dar_can_shared"; then
13095 output_verbose_link_cmd=func_echo_all
13096 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13097 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13098 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"
13099 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"
13108 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13109 hardcode_libdir_flag_spec='-L$libdir'
13110 hardcode_shlibpath_var=no
13113 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13114 # support. Future versions do this automatically, but an explicit c++rt0.o
13115 # does not break anything, and helps significantly (at the cost of a little
13118 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13119 hardcode_libdir_flag_spec='-R$libdir'
13120 hardcode_direct=yes
13121 hardcode_shlibpath_var=no
13124 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13126 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13127 hardcode_direct=yes
13128 hardcode_minus_L=yes
13129 hardcode_shlibpath_var=no
13132 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13133 freebsd* | dragonfly*)
13134 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13135 hardcode_libdir_flag_spec='-R$libdir'
13136 hardcode_direct=yes
13137 hardcode_shlibpath_var=no
13141 if test yes = "$GCC"; then
13142 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 -f $output_objdir/$soname $lib'
13144 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 -f $output_objdir/$soname $lib'
13146 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13147 hardcode_libdir_separator=:
13148 hardcode_direct=yes
13150 # hardcode_minus_L: Not really in the search PATH,
13151 # but as the default location of the library.
13152 hardcode_minus_L=yes
13153 export_dynamic_flag_spec='$wl-E'
13157 if test yes,no = "$GCC,$with_gnu_ld"; then
13158 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13160 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13162 if test no = "$with_gnu_ld"; then
13163 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13164 hardcode_libdir_separator=:
13165 hardcode_direct=yes
13166 hardcode_direct_absolute=yes
13167 export_dynamic_flag_spec='$wl-E'
13168 # hardcode_minus_L: Not really in the search PATH,
13169 # but as the default location of the library.
13170 hardcode_minus_L=yes
13175 if test yes,no = "$GCC,$with_gnu_ld"; then
13178 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13181 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13184 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13190 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13193 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13197 # Older versions of the 11.00 compiler do not understand -b yet
13198 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13200 $as_echo_n "checking if $CC understands -b... " >&6; }
13201 if ${lt_cv_prog_compiler__b+:} false; then :
13202 $as_echo_n "(cached) " >&6
13204 lt_cv_prog_compiler__b=no
13205 save_LDFLAGS=$LDFLAGS
13206 LDFLAGS="$LDFLAGS -b"
13207 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13208 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13209 # The linker can only warn and ignore the option if not recognized
13210 # So say no if there are warnings
13211 if test -s conftest.err; then
13212 # Append any errors to the config.log.
13213 cat conftest.err 1>&5
13214 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13215 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13216 if diff conftest.exp conftest.er2 >/dev/null; then
13217 lt_cv_prog_compiler__b=yes
13220 lt_cv_prog_compiler__b=yes
13224 LDFLAGS=$save_LDFLAGS
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13228 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13230 if test yes = "$lt_cv_prog_compiler__b"; then
13231 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13233 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13239 if test no = "$with_gnu_ld"; then
13240 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13241 hardcode_libdir_separator=:
13246 hardcode_shlibpath_var=no
13249 hardcode_direct=yes
13250 hardcode_direct_absolute=yes
13251 export_dynamic_flag_spec='$wl-E'
13253 # hardcode_minus_L: Not really in the search PATH,
13254 # but as the default location of the library.
13255 hardcode_minus_L=yes
13261 irix5* | irix6* | nonstopux*)
13262 if test yes = "$GCC"; then
13263 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'
13264 # Try to use the -exported_symbol ld option, if it does not
13265 # work, assume that -exports_file does not work either and
13266 # implicitly export all symbols.
13267 # This should be the same for all languages, so no per-tag cache variable.
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13269 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13270 if ${lt_cv_irix_exported_symbol+:} false; then :
13271 $as_echo_n "(cached) " >&6
13273 save_LDFLAGS=$LDFLAGS
13274 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 int foo (void) { return 0; }
13279 if ac_fn_c_try_link "$LINENO"; then :
13280 lt_cv_irix_exported_symbol=yes
13282 lt_cv_irix_exported_symbol=no
13284 rm -f core conftest.err conftest.$ac_objext \
13285 conftest$ac_exeext conftest.$ac_ext
13286 LDFLAGS=$save_LDFLAGS
13288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13289 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13290 if test yes = "$lt_cv_irix_exported_symbol"; then
13291 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'
13293 link_all_deplibs=no
13295 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'
13296 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'
13298 archive_cmds_need_lc='no'
13299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13300 hardcode_libdir_separator=:
13302 link_all_deplibs=yes
13306 case $cc_basename in
13308 # Fabrice Bellard et al's Tiny C Compiler
13310 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13315 netbsd* | netbsdelf*-gnu)
13316 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13317 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13319 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13321 hardcode_libdir_flag_spec='-R$libdir'
13322 hardcode_direct=yes
13323 hardcode_shlibpath_var=no
13327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13328 hardcode_direct=yes
13329 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13330 hardcode_libdir_separator=:
13331 hardcode_shlibpath_var=no
13337 openbsd* | bitrig*)
13338 if test -f /usr/libexec/ld.so; then
13339 hardcode_direct=yes
13340 hardcode_shlibpath_var=no
13341 hardcode_direct_absolute=yes
13342 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13343 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13344 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13345 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13346 export_dynamic_flag_spec='$wl-E'
13348 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13349 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13357 hardcode_libdir_flag_spec='-L$libdir'
13358 hardcode_minus_L=yes
13359 allow_undefined_flag=unsupported
13361 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13362 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13363 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13364 $ECHO EXPORTS >> $output_objdir/$libname.def~
13365 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13366 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13367 emximp -o $lib $output_objdir/$libname.def'
13368 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13369 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13370 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13371 $ECHO EXPORTS >> $output_objdir/$libname.def~
13372 prefix_cmds="$SED"~
13373 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13374 prefix_cmds="$prefix_cmds -e 1d";
13376 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13377 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13378 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13379 emximp -o $lib $output_objdir/$libname.def'
13380 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13381 enable_shared_with_static_runtimes=yes
13385 if test yes = "$GCC"; then
13386 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13387 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'
13389 allow_undefined_flag=' -expect_unresolved \*'
13390 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'
13392 archive_cmds_need_lc='no'
13393 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13394 hardcode_libdir_separator=:
13397 osf4* | osf5*) # as osf3* with the addition of -msym flag
13398 if test yes = "$GCC"; then
13399 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13400 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'
13401 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13403 allow_undefined_flag=' -expect_unresolved \*'
13404 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'
13405 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~
13406 $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'
13408 # Both c and cxx compiler support -rpath directly
13409 hardcode_libdir_flag_spec='-rpath $libdir'
13411 archive_cmds_need_lc='no'
13412 hardcode_libdir_separator=:
13416 no_undefined_flag=' -z defs'
13417 if test yes = "$GCC"; then
13419 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13420 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13421 $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'
13423 case `$CC -V 2>&1` in
13426 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13427 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13428 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13432 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13433 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13434 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13438 hardcode_libdir_flag_spec='-R$libdir'
13439 hardcode_shlibpath_var=no
13441 solaris2.[0-5] | solaris2.[0-5].*) ;;
13443 # The compiler driver will combine and reorder linker options,
13444 # but understands '-z linker_flag'. GCC discards it without '$wl',
13445 # but is careful enough not to reorder.
13446 # Supported since Solaris 2.6 (maybe 2.5.1?)
13447 if test yes = "$GCC"; then
13448 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13450 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13454 link_all_deplibs=yes
13458 if test sequent = "$host_vendor"; then
13459 # Use $CC to link under sequent, because it throws in some extra .o
13460 # files that make .init and .fini sections work.
13461 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13463 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13465 hardcode_libdir_flag_spec='-L$libdir'
13466 hardcode_direct=yes
13467 hardcode_minus_L=yes
13468 hardcode_shlibpath_var=no
13472 case $host_vendor in
13474 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13475 hardcode_direct=yes # is this really true???
13478 ## LD is ld it makes a PLAMLIB
13479 ## CC just makes a GrossModule.
13480 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13481 reload_cmds='$CC -r -o $output$reload_objs'
13485 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13486 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13489 runpath_var='LD_RUN_PATH'
13490 hardcode_shlibpath_var=no
13494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13495 hardcode_shlibpath_var=no
13496 export_dynamic_flag_spec='-Bexport'
13500 if test -d /usr/nec; then
13501 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13502 hardcode_shlibpath_var=no
13503 runpath_var=LD_RUN_PATH
13504 hardcode_runpath_var=yes
13509 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13510 no_undefined_flag='$wl-z,text'
13511 archive_cmds_need_lc=no
13512 hardcode_shlibpath_var=no
13513 runpath_var='LD_RUN_PATH'
13515 if test yes = "$GCC"; then
13516 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13517 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13519 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13520 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13524 sysv5* | sco3.2v5* | sco5v6*)
13525 # Note: We CANNOT use -z defs as we might desire, because we do not
13526 # link with -lc, and that would cause any symbols used from libc to
13527 # always be unresolved, which means just about no library would
13528 # ever link correctly. If we're not using GNU ld we use -z text
13529 # though, which does catch some bad symbols but isn't as heavy-handed
13531 no_undefined_flag='$wl-z,text'
13532 allow_undefined_flag='$wl-z,nodefs'
13533 archive_cmds_need_lc=no
13534 hardcode_shlibpath_var=no
13535 hardcode_libdir_flag_spec='$wl-R,$libdir'
13536 hardcode_libdir_separator=':'
13537 link_all_deplibs=yes
13538 export_dynamic_flag_spec='$wl-Bexport'
13539 runpath_var='LD_RUN_PATH'
13541 if test yes = "$GCC"; then
13542 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13543 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13545 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13546 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13552 hardcode_libdir_flag_spec='-L$libdir'
13553 hardcode_shlibpath_var=no
13561 if test sni = "$host_vendor"; then
13563 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13564 export_dynamic_flag_spec='$wl-Blargedynsym'
13570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13571 $as_echo "$ld_shlibs" >&6; }
13572 test no = "$ld_shlibs" && can_build_shared=no
13574 with_gnu_ld=$with_gnu_ld
13591 # Do we need to explicitly link libc?
13593 case "x$archive_cmds_need_lc" in
13595 # Assume -lc should be added
13596 archive_cmds_need_lc=yes
13598 if test yes,yes = "$GCC,$enable_shared"; then
13599 case $archive_cmds in
13601 # FIXME: we may have to deal with multi-command sequences.
13604 # Test whether the compiler implicitly links with -lc since on some
13605 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13606 # to ld, don't add -lc before -lgcc.
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13608 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13609 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13610 $as_echo_n "(cached) " >&6
13613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13615 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13616 (eval $ac_compile) 2>&5
13618 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13619 test $ac_status = 0; } 2>conftest.err; then
13622 libobjs=conftest.$ac_objext
13624 wl=$lt_prog_compiler_wl
13625 pic_flag=$lt_prog_compiler_pic
13631 lt_save_allow_undefined_flag=$allow_undefined_flag
13632 allow_undefined_flag=
13633 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13634 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13637 test $ac_status = 0; }
13639 lt_cv_archive_cmds_need_lc=no
13641 lt_cv_archive_cmds_need_lc=yes
13643 allow_undefined_flag=$lt_save_allow_undefined_flag
13645 cat conftest.err 1>&5
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13651 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13652 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13811 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13813 if test yes = "$GCC"; then
13815 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13816 *) lt_awk_arg='/^libraries:/' ;;
13819 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13820 *) lt_sed_strip_eq='s|=/|/|g' ;;
13822 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13823 case $lt_search_path_spec in
13825 # if the path contains ";" then we assume it to be the separator
13826 # otherwise default to the standard path separator (i.e. ":") - it is
13827 # assumed that no part of a normal pathname contains ";" but that should
13828 # okay in the real world where ";" in dirpaths is itself problematic.
13829 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13832 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13835 # Ok, now we have the path, separated by spaces, we can step through it
13836 # and add multilib dir if necessary...
13837 lt_tmp_lt_search_path_spec=
13838 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13839 # ...but if some path component already ends with the multilib dir we assume
13840 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13841 case "$lt_multi_os_dir; $lt_search_path_spec " in
13842 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13846 for lt_sys_path in $lt_search_path_spec; do
13847 if test -d "$lt_sys_path$lt_multi_os_dir"; then
13848 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13849 elif test -n "$lt_multi_os_dir"; then
13850 test -d "$lt_sys_path" && \
13851 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13854 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13855 BEGIN {RS = " "; FS = "/|\n";} {
13858 for (lt_i = NF; lt_i > 0; lt_i--) {
13859 if ($lt_i != "" && $lt_i != ".") {
13860 if ($lt_i == "..") {
13863 if (lt_count == 0) {
13864 lt_foo = "/" $lt_i lt_foo;
13871 if (lt_foo != "") { lt_freq[lt_foo]++; }
13872 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13874 # AWK program above erroneously prepends '/' to C:/dos/paths
13877 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13878 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13880 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13882 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13884 library_names_spec=
13885 libname_spec='lib$name'
13889 postuninstall_cmds=
13893 shlibpath_overrides_runpath=unknown
13895 dynamic_linker="$host_os ld.so"
13896 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13897 need_lib_prefix=unknown
13898 hardcode_into_libs=no
13900 # when you set need_version to no, make sure it does not cause -set_version
13901 # flags to be left without arguments
13902 need_version=unknown
13908 version_type=linux # correct to gnu/linux during the next big refactor
13909 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13910 shlibpath_var=LIBPATH
13912 # AIX 3 has no versioning support, so we append a major version to the name.
13913 soname_spec='$libname$release$shared_ext$major'
13917 version_type=linux # correct to gnu/linux during the next big refactor
13920 hardcode_into_libs=yes
13921 if test ia64 = "$host_cpu"; then
13922 # AIX 5 supports IA64
13923 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13924 shlibpath_var=LD_LIBRARY_PATH
13926 # With GCC up to 2.95.x, collect2 would create an import file
13927 # for dependence libraries. The import file would start with
13928 # the line '#! .'. This would cause the generated library to
13929 # depend on '.', always an invalid library. This was fixed in
13930 # development snapshots of GCC prior to 3.0.
13932 aix4 | aix4.[01] | aix4.[01].*)
13933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13935 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13938 can_build_shared=no
13942 # Using Import Files as archive members, it is possible to support
13943 # filename-based versioning of shared library archives on AIX. While
13944 # this would work for both with and without runtime linking, it will
13945 # prevent static linking of such archives. So we do filename-based
13946 # shared library versioning with .so extension only, which is used
13947 # when both runtime linking and shared linking is enabled.
13948 # Unfortunately, runtime linking may impact performance, so we do
13949 # not want this to be the default eventually. Also, we use the
13950 # versioned .so libs for executables only if there is the -brtl
13951 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13952 # To allow for filename-based versioning support, we need to create
13953 # libNAME.so.V as an archive file, containing:
13954 # *) an Import File, referring to the versioned filename of the
13955 # archive as well as the shared archive member, telling the
13956 # bitwidth (32 or 64) of that shared object, and providing the
13957 # list of exported symbols of that shared object, eventually
13958 # decorated with the 'weak' keyword
13959 # *) the shared object with the F_LOADONLY flag set, to really avoid
13960 # it being seen by the linker.
13961 # At run time we better use the real file rather than another symlink,
13962 # but for link time we create the symlink libNAME.so -> libNAME.so.V
13964 case $with_aix_soname,$aix_use_runtimelinking in
13965 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13966 # soname into executable. Probably we can add versioning support to
13967 # collect2, so additional links can be useful in future.
13968 aix,yes) # traditional libtool
13969 dynamic_linker='AIX unversionable lib.so'
13970 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13971 # instead of lib<name>.a to let people know that these are not
13972 # typical AIX shared libraries.
13973 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13975 aix,no) # traditional AIX only
13976 dynamic_linker='AIX lib.a(lib.so.V)'
13977 # We preserve .a as extension for shared libraries through AIX4.2
13978 # and later when we are not doing run time linking.
13979 library_names_spec='$libname$release.a $libname.a'
13980 soname_spec='$libname$release$shared_ext$major'
13982 svr4,*) # full svr4 only
13983 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13984 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13985 # We do not specify a path in Import Files, so LIBPATH fires.
13986 shlibpath_overrides_runpath=yes
13988 *,yes) # both, prefer svr4
13989 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13990 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13991 # unpreferred sharedlib libNAME.a needs extra handling
13992 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"'
13993 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"'
13994 # We do not specify a path in Import Files, so LIBPATH fires.
13995 shlibpath_overrides_runpath=yes
13997 *,no) # both, prefer aix
13998 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13999 library_names_spec='$libname$release.a $libname.a'
14000 soname_spec='$libname$release$shared_ext$major'
14001 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14002 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)'
14003 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"'
14006 shlibpath_var=LIBPATH
14013 # Since July 2007 AmigaOS4 officially supports .so libraries.
14014 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14015 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14018 library_names_spec='$libname.ixlibrary $libname.a'
14019 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14020 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'
14026 library_names_spec='$libname$shared_ext'
14027 dynamic_linker="$host_os ld.so"
14028 shlibpath_var=LIBRARY_PATH
14032 version_type=linux # correct to gnu/linux during the next big refactor
14034 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14035 soname_spec='$libname$release$shared_ext$major'
14036 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14037 shlibpath_var=LD_LIBRARY_PATH
14038 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14039 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14040 # the default ld.so.conf also contains /usr/contrib/lib and
14041 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14042 # libtool to hard-code these into programs
14045 cygwin* | mingw* | pw32* | cegcc*)
14046 version_type=windows
14051 case $GCC,$cc_basename in
14054 library_names_spec='$libname.dll.a'
14055 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14056 postinstall_cmds='base_file=`basename \$file`~
14057 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14058 dldir=$destdir/`dirname \$dlpath`~
14059 test -d \$dldir || mkdir -p \$dldir~
14060 $install_prog $dir/$dlname \$dldir/$dlname~
14061 chmod a+x \$dldir/$dlname~
14062 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14063 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14065 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14066 dlpath=$dir/\$dldll~
14068 shlibpath_overrides_runpath=yes
14072 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14073 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14075 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14078 # MinGW DLLs use traditional 'lib' prefix
14079 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14082 # pw32 DLLs use 'pw' prefix rather than 'lib'
14083 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14086 dynamic_linker='Win32 ld.exe'
14091 libname_spec='$name'
14092 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14093 library_names_spec='$libname.dll.lib'
14097 sys_lib_search_path_spec=
14100 for lt_path in $LIB
14103 # Let DOS variable expansion print the short 8.3 style file name.
14104 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14105 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14108 # Convert to MSYS style.
14109 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14112 # Convert to unix form, then to dos form, then back to unix form
14113 # but this time dos style (no spaces!) so that the unix form looks
14114 # like /cygdrive/c/PROGRA~1:/cygdr...
14115 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14116 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14117 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14120 sys_lib_search_path_spec=$LIB
14121 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14122 # It is most probably a Windows format PATH.
14123 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14125 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14127 # FIXME: find the short name or the path components, as spaces are
14128 # common. (e.g. "Program Files" -> "PROGRA~1")
14132 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14133 postinstall_cmds='base_file=`basename \$file`~
14134 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14135 dldir=$destdir/`dirname \$dlpath`~
14136 test -d \$dldir || mkdir -p \$dldir~
14137 $install_prog $dir/$dlname \$dldir/$dlname'
14138 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14139 dlpath=$dir/\$dldll~
14141 shlibpath_overrides_runpath=yes
14142 dynamic_linker='Win32 link.exe'
14146 # Assume MSVC wrapper
14147 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14148 dynamic_linker='Win32 ld.exe'
14151 # FIXME: first we should search . and the directory the executable is in
14155 darwin* | rhapsody*)
14156 dynamic_linker="$host_os dyld"
14157 version_type=darwin
14160 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14161 soname_spec='$libname$release$major$shared_ext'
14162 shlibpath_overrides_runpath=yes
14163 shlibpath_var=DYLD_LIBRARY_PATH
14164 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14166 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14167 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14171 version_type=linux # correct to gnu/linux during the next big refactor
14174 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14175 soname_spec='$libname$release$shared_ext$major'
14176 shlibpath_var=LD_LIBRARY_PATH
14179 freebsd* | dragonfly*)
14180 # DragonFly does not have aout. When/if they implement a new
14181 # versioning mechanism, adjust this.
14182 if test -x /usr/bin/objformat; then
14183 objformat=`/usr/bin/objformat`
14186 freebsd[23].*) objformat=aout ;;
14187 *) objformat=elf ;;
14190 version_type=freebsd-$objformat
14191 case $version_type in
14193 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14194 soname_spec='$libname$release$shared_ext$major'
14199 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14203 shlibpath_var=LD_LIBRARY_PATH
14206 shlibpath_overrides_runpath=yes
14208 freebsd3.[01]* | freebsdelf3.[01]*)
14209 shlibpath_overrides_runpath=yes
14210 hardcode_into_libs=yes
14212 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14213 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14214 shlibpath_overrides_runpath=no
14215 hardcode_into_libs=yes
14217 *) # from 4.6 on, and DragonFly
14218 shlibpath_overrides_runpath=yes
14219 hardcode_into_libs=yes
14225 version_type=linux # correct to gnu/linux during the next big refactor
14228 dynamic_linker="$host_os runtime_loader"
14229 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14230 soname_spec='$libname$release$shared_ext$major'
14231 shlibpath_var=LIBRARY_PATH
14232 shlibpath_overrides_runpath=no
14233 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14234 hardcode_into_libs=yes
14237 hpux9* | hpux10* | hpux11*)
14238 # Give a soname corresponding to the major version so that dld.sl refuses to
14239 # link against other versions.
14246 hardcode_into_libs=yes
14247 dynamic_linker="$host_os dld.so"
14248 shlibpath_var=LD_LIBRARY_PATH
14249 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14250 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14251 soname_spec='$libname$release$shared_ext$major'
14252 if test 32 = "$HPUX_IA64_MODE"; then
14253 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14254 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14256 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14257 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14262 hardcode_into_libs=yes
14263 dynamic_linker="$host_os dld.sl"
14264 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14265 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14266 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14267 soname_spec='$libname$release$shared_ext$major'
14268 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14269 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14273 dynamic_linker="$host_os dld.sl"
14274 shlibpath_var=SHLIB_PATH
14275 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14276 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14277 soname_spec='$libname$release$shared_ext$major'
14280 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14281 postinstall_cmds='chmod 555 $lib'
14282 # or fails outright, so override atomically:
14283 install_override_mode=555
14287 version_type=linux # correct to gnu/linux during the next big refactor
14290 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14291 soname_spec='$libname$release$shared_ext$major'
14292 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14293 shlibpath_var=LD_LIBRARY_PATH
14294 shlibpath_overrides_runpath=no
14295 hardcode_into_libs=yes
14298 irix5* | irix6* | nonstopux*)
14300 nonstopux*) version_type=nonstopux ;;
14302 if test yes = "$lt_cv_prog_gnu_ld"; then
14303 version_type=linux # correct to gnu/linux during the next big refactor
14310 soname_spec='$libname$release$shared_ext$major'
14311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14313 irix5* | nonstopux*)
14314 libsuff= shlibsuff=
14317 case $LD in # libtool.m4 will add one of these switches to LD
14318 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14319 libsuff= shlibsuff= libmagic=32-bit;;
14320 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14321 libsuff=32 shlibsuff=N32 libmagic=N32;;
14322 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14323 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14324 *) libsuff= shlibsuff= libmagic=never-match;;
14328 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14329 shlibpath_overrides_runpath=no
14330 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14331 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14332 hardcode_into_libs=yes
14335 # No shared lib support for Linux oldld, aout, or coff.
14336 linux*oldld* | linux*aout* | linux*coff*)
14341 version_type=none # Android doesn't support versioned libraries.
14344 library_names_spec='$libname$release$shared_ext'
14345 soname_spec='$libname$release$shared_ext'
14347 shlibpath_var=LD_LIBRARY_PATH
14348 shlibpath_overrides_runpath=yes
14350 # This implies no fast_install, which is unacceptable.
14351 # Some rework will be needed to allow for fast_install
14352 # before this can be enabled.
14353 hardcode_into_libs=yes
14355 dynamic_linker='Android linker'
14356 # Don't embed -rpath directories since the linker doesn't support them.
14357 hardcode_libdir_flag_spec='-L$libdir'
14360 # This must be glibc/ELF.
14361 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14362 version_type=linux # correct to gnu/linux during the next big refactor
14365 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14366 soname_spec='$libname$release$shared_ext$major'
14367 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14368 shlibpath_var=LD_LIBRARY_PATH
14369 shlibpath_overrides_runpath=no
14371 # Some binutils ld are patched to set DT_RUNPATH
14372 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14373 $as_echo_n "(cached) " >&6
14375 lt_cv_shlibpath_overrides_runpath=no
14376 save_LDFLAGS=$LDFLAGS
14377 save_libdir=$libdir
14378 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14379 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14390 if ac_fn_c_try_link "$LINENO"; then :
14391 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14392 lt_cv_shlibpath_overrides_runpath=yes
14395 rm -f core conftest.err conftest.$ac_objext \
14396 conftest$ac_exeext conftest.$ac_ext
14397 LDFLAGS=$save_LDFLAGS
14398 libdir=$save_libdir
14402 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14404 # This implies no fast_install, which is unacceptable.
14405 # Some rework will be needed to allow for fast_install
14406 # before this can be enabled.
14407 hardcode_into_libs=yes
14409 # Ideally, we could use ldconfig to report *all* directores which are
14410 # searched for libraries, however this is still not possible. Aside from not
14411 # being certain /sbin/ldconfig is available, command
14412 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14413 # even though it is searched at run-time. Try to do the best guess by
14414 # appending ld.so.conf contents (and includes) to the search path.
14415 if test -f /etc/ld.so.conf; then
14416 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' ' '`
14417 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14420 # We used to test for /lib/ld.so.1 and disable shared libraries on
14421 # powerpc, because MkLinux only supported shared libraries with the
14422 # GNU dynamic linker. Since this was broken with cross compilers,
14423 # most powerpc-linux boxes support dynamic linking these days and
14424 # people can always --disable-shared, the test was removed, and we
14425 # assume the GNU/Linux dynamic linker is in use.
14426 dynamic_linker='GNU/Linux ld.so'
14433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14434 soname_spec='${libname}${release}${shared_ext}$major'
14435 shlibpath_var=LD_LIBRARY_PATH
14436 shlibpath_overrides_runpath=no
14437 hardcode_into_libs=yes
14438 dynamic_linker='NetBSD ld.elf_so'
14445 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14446 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14448 dynamic_linker='NetBSD (a.out) ld.so'
14450 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14451 soname_spec='$libname$release$shared_ext$major'
14452 dynamic_linker='NetBSD ld.elf_so'
14454 shlibpath_var=LD_LIBRARY_PATH
14455 shlibpath_overrides_runpath=yes
14456 hardcode_into_libs=yes
14460 version_type=linux # correct to gnu/linux during the next big refactor
14461 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14462 shlibpath_var=LD_LIBRARY_PATH
14463 shlibpath_overrides_runpath=yes
14470 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14471 soname_spec='$libname$release$shared_ext$major'
14472 shlibpath_var=LD_LIBRARY_PATH
14473 shlibpath_overrides_runpath=no
14474 hardcode_into_libs=yes
14475 dynamic_linker='ldqnx.so'
14478 openbsd* | bitrig*)
14480 sys_lib_dlsearch_path_spec=/usr/lib
14482 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14487 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14488 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14489 shlibpath_var=LD_LIBRARY_PATH
14490 shlibpath_overrides_runpath=yes
14494 libname_spec='$name'
14495 version_type=windows
14499 # OS/2 can only load a DLL with a base name of 8 characters or less.
14500 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14501 v=$($ECHO $release$versuffix | tr -d .-);
14502 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14503 $ECHO $n$v`$shared_ext'
14504 library_names_spec='${libname}_dll.$libext'
14505 dynamic_linker='OS/2 ld.exe'
14506 shlibpath_var=BEGINLIBPATH
14507 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14508 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14509 postinstall_cmds='base_file=`basename \$file`~
14510 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14511 dldir=$destdir/`dirname \$dlpath`~
14512 test -d \$dldir || mkdir -p \$dldir~
14513 $install_prog $dir/$dlname \$dldir/$dlname~
14514 chmod a+x \$dldir/$dlname~
14515 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14516 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14518 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14519 dlpath=$dir/\$dldll~
14523 osf3* | osf4* | osf5*)
14527 soname_spec='$libname$release$shared_ext$major'
14528 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14529 shlibpath_var=LD_LIBRARY_PATH
14530 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14531 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14539 version_type=linux # correct to gnu/linux during the next big refactor
14542 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14543 soname_spec='$libname$release$shared_ext$major'
14544 shlibpath_var=LD_LIBRARY_PATH
14545 shlibpath_overrides_runpath=yes
14546 hardcode_into_libs=yes
14547 # ldd complains unless libraries are executable
14548 postinstall_cmds='chmod +x $lib'
14553 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 shlibpath_overrides_runpath=yes
14557 if test yes = "$with_gnu_ld"; then
14564 version_type=linux # correct to gnu/linux during the next big refactor
14565 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14566 soname_spec='$libname$release$shared_ext$major'
14567 shlibpath_var=LD_LIBRARY_PATH
14568 case $host_vendor in
14570 shlibpath_overrides_runpath=no
14572 runpath_var=LD_RUN_PATH
14580 shlibpath_overrides_runpath=no
14581 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14587 if test -d /usr/nec; then
14588 version_type=linux # correct to gnu/linux during the next big refactor
14589 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14590 soname_spec='$libname$shared_ext.$major'
14591 shlibpath_var=LD_LIBRARY_PATH
14595 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14600 soname_spec='$libname$release$shared_ext$major'
14601 shlibpath_var=LD_LIBRARY_PATH
14602 shlibpath_overrides_runpath=yes
14603 hardcode_into_libs=yes
14604 if test yes = "$with_gnu_ld"; then
14605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14607 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14610 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14614 sys_lib_dlsearch_path_spec='/usr/lib'
14618 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14619 version_type=linux # correct to gnu/linux during the next big refactor
14622 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14623 shlibpath_var=LD_LIBRARY_PATH
14624 shlibpath_overrides_runpath=no
14625 hardcode_into_libs=yes
14629 version_type=linux # correct to gnu/linux during the next big refactor
14630 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14631 soname_spec='$libname$release$shared_ext$major'
14632 shlibpath_var=LD_LIBRARY_PATH
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14640 $as_echo "$dynamic_linker" >&6; }
14641 test no = "$dynamic_linker" && can_build_shared=no
14643 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14644 if test yes = "$GCC"; then
14645 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14648 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14649 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14652 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14653 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14656 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14657 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14659 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14660 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14662 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14663 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14762 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14764 if test -n "$hardcode_libdir_flag_spec" ||
14765 test -n "$runpath_var" ||
14766 test yes = "$hardcode_automatic"; then
14768 # We can hardcode non-existent directories.
14769 if test no != "$hardcode_direct" &&
14770 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14771 # have to relink, otherwise we might link with an installed library
14772 # when we should be linking with a yet-to-be-installed one
14773 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14774 test no != "$hardcode_minus_L"; then
14775 # Linking always hardcodes the temporary library directory.
14776 hardcode_action=relink
14778 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14779 hardcode_action=immediate
14782 # We cannot hardcode anything, or else we can only hardcode existing
14784 hardcode_action=unsupported
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14787 $as_echo "$hardcode_action" >&6; }
14789 if test relink = "$hardcode_action" ||
14790 test yes = "$inherit_rpath"; then
14791 # Fast installation is not supported
14792 enable_fast_install=no
14793 elif test yes = "$shlibpath_overrides_runpath" ||
14794 test no = "$enable_shared"; then
14795 # Fast installation is not necessary
14796 enable_fast_install=needless
14804 if test yes != "$enable_dlopen"; then
14805 enable_dlopen=unknown
14806 enable_dlopen_self=unknown
14807 enable_dlopen_self_static=unknown
14814 lt_cv_dlopen=load_add_on
14816 lt_cv_dlopen_self=yes
14819 mingw* | pw32* | cegcc*)
14820 lt_cv_dlopen=LoadLibrary
14825 lt_cv_dlopen=dlopen
14830 # if libdl is installed we need to link against it
14831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14832 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14833 if ${ac_cv_lib_dl_dlopen+:} false; then :
14834 $as_echo_n "(cached) " >&6
14836 ac_check_lib_save_LIBS=$LIBS
14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14839 /* end confdefs.h. */
14853 if ac_fn_c_try_link "$LINENO"; then :
14854 ac_cv_lib_dl_dlopen=yes
14856 ac_cv_lib_dl_dlopen=no
14858 rm -f core conftest.err conftest.$ac_objext \
14859 conftest$ac_exeext conftest.$ac_ext
14860 LIBS=$ac_check_lib_save_LIBS
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14863 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14864 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14865 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14870 lt_cv_dlopen_self=yes
14877 # Don't try to run any link tests for TPF. We know it's impossible
14878 # because TPF is a cross-compiler, and we know how we open DSOs.
14879 lt_cv_dlopen=dlopen
14881 lt_cv_dlopen_self=no
14885 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14886 if test "x$ac_cv_func_shl_load" = xyes; then :
14887 lt_cv_dlopen=shl_load
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14890 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14891 if ${ac_cv_lib_dld_shl_load+:} false; then :
14892 $as_echo_n "(cached) " >&6
14894 ac_check_lib_save_LIBS=$LIBS
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14906 return shl_load ();
14911 if ac_fn_c_try_link "$LINENO"; then :
14912 ac_cv_lib_dld_shl_load=yes
14914 ac_cv_lib_dld_shl_load=no
14916 rm -f core conftest.err conftest.$ac_objext \
14917 conftest$ac_exeext conftest.$ac_ext
14918 LIBS=$ac_check_lib_save_LIBS
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14921 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14922 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14923 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14925 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14926 if test "x$ac_cv_func_dlopen" = xyes; then :
14927 lt_cv_dlopen=dlopen
14929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14930 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14931 if ${ac_cv_lib_dl_dlopen+:} false; then :
14932 $as_echo_n "(cached) " >&6
14934 ac_check_lib_save_LIBS=$LIBS
14936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14937 /* end confdefs.h. */
14951 if ac_fn_c_try_link "$LINENO"; then :
14952 ac_cv_lib_dl_dlopen=yes
14954 ac_cv_lib_dl_dlopen=no
14956 rm -f core conftest.err conftest.$ac_objext \
14957 conftest$ac_exeext conftest.$ac_ext
14958 LIBS=$ac_check_lib_save_LIBS
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14961 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14962 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14963 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14966 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14967 if ${ac_cv_lib_svld_dlopen+:} false; then :
14968 $as_echo_n "(cached) " >&6
14970 ac_check_lib_save_LIBS=$LIBS
14971 LIBS="-lsvld $LIBS"
14972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14973 /* end confdefs.h. */
14987 if ac_fn_c_try_link "$LINENO"; then :
14988 ac_cv_lib_svld_dlopen=yes
14990 ac_cv_lib_svld_dlopen=no
14992 rm -f core conftest.err conftest.$ac_objext \
14993 conftest$ac_exeext conftest.$ac_ext
14994 LIBS=$ac_check_lib_save_LIBS
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14997 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14998 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14999 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15002 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15003 if ${ac_cv_lib_dld_dld_link+:} false; then :
15004 $as_echo_n "(cached) " >&6
15006 ac_check_lib_save_LIBS=$LIBS
15008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15009 /* end confdefs.h. */
15018 return dld_link ();
15023 if ac_fn_c_try_link "$LINENO"; then :
15024 ac_cv_lib_dld_dld_link=yes
15026 ac_cv_lib_dld_dld_link=no
15028 rm -f core conftest.err conftest.$ac_objext \
15029 conftest$ac_exeext conftest.$ac_ext
15030 LIBS=$ac_check_lib_save_LIBS
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15033 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15034 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15035 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15056 if test no = "$lt_cv_dlopen"; then
15062 case $lt_cv_dlopen in
15064 save_CPPFLAGS=$CPPFLAGS
15065 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15067 save_LDFLAGS=$LDFLAGS
15068 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15071 LIBS="$lt_cv_dlopen_libs $LIBS"
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15074 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15075 if ${lt_cv_dlopen_self+:} false; then :
15076 $as_echo_n "(cached) " >&6
15078 if test yes = "$cross_compiling"; then :
15079 lt_cv_dlopen_self=cross
15081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15082 lt_status=$lt_dlunknown
15083 cat > conftest.$ac_ext <<_LT_EOF
15084 #line $LINENO "configure"
15085 #include "confdefs.h"
15094 # define LT_DLGLOBAL RTLD_GLOBAL
15097 # define LT_DLGLOBAL DL_GLOBAL
15099 # define LT_DLGLOBAL 0
15103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15104 find out it does not work in some platform. */
15105 #ifndef LT_DLLAZY_OR_NOW
15107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15110 # define LT_DLLAZY_OR_NOW DL_LAZY
15113 # define LT_DLLAZY_OR_NOW RTLD_NOW
15116 # define LT_DLLAZY_OR_NOW DL_NOW
15118 # define LT_DLLAZY_OR_NOW 0
15125 /* When -fvisibility=hidden is used, assume the code has been annotated
15126 correspondingly for the symbols needed. */
15127 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15128 int fnord () __attribute__((visibility("default")));
15131 int fnord () { return 42; }
15134 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15135 int status = $lt_dlunknown;
15139 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15142 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15143 else puts (dlerror ());
15145 /* dlclose (self); */
15153 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15154 (eval $ac_link) 2>&5
15156 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15157 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15158 (./conftest; exit; ) >&5 2>/dev/null
15160 case x$lt_status in
15161 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15162 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15163 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15166 # compilation failed
15167 lt_cv_dlopen_self=no
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15175 $as_echo "$lt_cv_dlopen_self" >&6; }
15177 if test yes = "$lt_cv_dlopen_self"; then
15178 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15180 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15181 if ${lt_cv_dlopen_self_static+:} false; then :
15182 $as_echo_n "(cached) " >&6
15184 if test yes = "$cross_compiling"; then :
15185 lt_cv_dlopen_self_static=cross
15187 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15188 lt_status=$lt_dlunknown
15189 cat > conftest.$ac_ext <<_LT_EOF
15190 #line $LINENO "configure"
15191 #include "confdefs.h"
15200 # define LT_DLGLOBAL RTLD_GLOBAL
15203 # define LT_DLGLOBAL DL_GLOBAL
15205 # define LT_DLGLOBAL 0
15209 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15210 find out it does not work in some platform. */
15211 #ifndef LT_DLLAZY_OR_NOW
15213 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15216 # define LT_DLLAZY_OR_NOW DL_LAZY
15219 # define LT_DLLAZY_OR_NOW RTLD_NOW
15222 # define LT_DLLAZY_OR_NOW DL_NOW
15224 # define LT_DLLAZY_OR_NOW 0
15231 /* When -fvisibility=hidden is used, assume the code has been annotated
15232 correspondingly for the symbols needed. */
15233 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15234 int fnord () __attribute__((visibility("default")));
15237 int fnord () { return 42; }
15240 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15241 int status = $lt_dlunknown;
15245 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15248 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15249 else puts (dlerror ());
15251 /* dlclose (self); */
15259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15260 (eval $ac_link) 2>&5
15262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15263 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15264 (./conftest; exit; ) >&5 2>/dev/null
15266 case x$lt_status in
15267 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15268 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15269 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15272 # compilation failed
15273 lt_cv_dlopen_self_static=no
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15281 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15284 CPPFLAGS=$save_CPPFLAGS
15285 LDFLAGS=$save_LDFLAGS
15290 case $lt_cv_dlopen_self in
15291 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15292 *) enable_dlopen_self=unknown ;;
15295 case $lt_cv_dlopen_self_static in
15296 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15297 *) enable_dlopen_self_static=unknown ;;
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15320 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15321 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15322 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15323 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15325 $as_echo "yes" >&6; }
15327 # FIXME - insert some real tests, host_os isn't really good enough
15330 if test -n "$STRIP"; then
15331 striplib="$STRIP -x"
15332 old_striplib="$STRIP -S"
15333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15334 $as_echo "yes" >&6; }
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 $as_echo "no" >&6; }
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15342 $as_echo "no" >&6; }
15358 # Report what library types will actually be built
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15360 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15362 $as_echo "$can_build_shared" >&6; }
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15365 $as_echo_n "checking whether to build shared libraries... " >&6; }
15366 test no = "$can_build_shared" && enable_shared=no
15368 # On AIX, shared libraries and static libraries use the same namespace, and
15369 # are all built from PIC.
15372 test yes = "$enable_shared" && enable_static=no
15373 if test -n "$RANLIB"; then
15374 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15375 postinstall_cmds='$RANLIB $lib'
15380 if test ia64 != "$host_cpu"; then
15381 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15382 yes,aix,yes) ;; # shared object as lib.so file only
15383 yes,svr4,*) ;; # shared object as lib.so archive member only
15384 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15390 $as_echo "$enable_shared" >&6; }
15392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15393 $as_echo_n "checking whether to build static libraries... " >&6; }
15394 # Make sure either enable_shared or enable_static is yes.
15395 test yes = "$enable_shared" || enable_static=yes
15396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15397 $as_echo "$enable_static" >&6; }
15404 ac_cpp='$CPP $CPPFLAGS'
15405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15425 ac_config_commands="$ac_config_commands libtool"
15430 # Only expand once:
15433 ## --------------------- ##
15434 ## End of libtool code ##
15435 ## --------------------- ##
15438 # Verify if finally libtool shared libraries will be built
15441 case "x$enable_shared" in # ((
15443 xc_lt_build_shared=$enable_shared
15446 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15451 # Verify if finally libtool static libraries will be built
15454 case "x$enable_static" in # ((
15456 xc_lt_build_static=$enable_static
15459 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15464 # Verify if libtool shared libraries should be linked using flag -version-info
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15468 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15469 xc_lt_shlib_use_version_info='yes'
15470 if test "x$version_type" = 'xnone'; then
15471 xc_lt_shlib_use_version_info='no'
15473 case $host_os in # (
15475 xc_lt_shlib_use_version_info='yes'
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15479 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15482 # Verify if libtool shared libraries should be linked using flag -no-undefined
15485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15486 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15487 xc_lt_shlib_use_no_undefined='no'
15488 if test "x$allow_undefined" = 'xno'; then
15489 xc_lt_shlib_use_no_undefined='yes'
15490 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15491 xc_lt_shlib_use_no_undefined='yes'
15493 case $host_os in # (
15494 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15495 xc_lt_shlib_use_no_undefined='yes'
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15499 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15502 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15506 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15507 xc_lt_shlib_use_mimpure_text='no'
15508 case $host_os in # (
15510 if test "x$GCC" = 'xyes'; then
15511 xc_lt_shlib_use_mimpure_text='yes'
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15516 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15519 # Find out whether libtool libraries would be built wit PIC
15522 case "x$pic_mode" in # ((((
15524 xc_lt_build_shared_with_pic='yes'
15525 xc_lt_build_static_with_pic='no'
15528 xc_lt_build_shared_with_pic='yes'
15529 xc_lt_build_static_with_pic='yes'
15532 xc_lt_build_shared_with_pic='no'
15533 xc_lt_build_static_with_pic='no'
15536 xc_lt_build_shared_with_pic='unknown'
15537 xc_lt_build_static_with_pic='unknown'
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15539 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15543 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15545 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15547 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15549 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15552 # Verify if libtool shared libraries will be built while static not built
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15556 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15557 if test "$xc_lt_build_shared" = 'yes' &&
15558 test "$xc_lt_build_static" = 'no'; then
15559 xc_lt_build_shared_only='yes'
15561 xc_lt_build_shared_only='no'
15563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15564 $as_echo "$xc_lt_build_shared_only" >&6; }
15567 # Verify if libtool static libraries will be built while shared not built
15570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15571 $as_echo_n "checking whether to build static libraries only... " >&6; }
15572 if test "$xc_lt_build_static" = 'yes' &&
15573 test "$xc_lt_build_shared" = 'no'; then
15574 xc_lt_build_static_only='yes'
15576 xc_lt_build_static_only='no'
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15579 $as_echo "$xc_lt_build_static_only" >&6; }
15585 # Automake conditionals based on libtool related checks
15588 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15589 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15590 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15592 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15593 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15596 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15597 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15598 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15600 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15601 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15604 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15605 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15606 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15608 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15609 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15614 # Due to libtool and automake machinery limitations of not allowing
15615 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15616 # inclusion of these in shared or static libraries, we are forced to
15617 # build using separate configure runs for shared and static libraries
15618 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15619 # to compile objects for each kind of library. Notice that relying on
15620 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15621 # user might for example choose to build static libraries with PIC.
15625 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15626 # targeting a static library and not building its shared counterpart.
15629 if test "x$xc_lt_build_static_only" = 'xyes'; then
15630 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15631 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15633 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15634 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15639 # Make staticlib CPPFLAG variable and its definition visible in output
15640 # files unconditionally, providing an empty definition unless strictly
15641 # targeting a static library and not building its shared counterpart.
15644 CPPFLAG_CURL_STATICLIB=
15645 if test "x$xc_lt_build_static_only" = 'xyes'; then
15646 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15651 # Determine whether all dependent libraries must be specified when linking
15652 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15654 REQUIRE_LIB_DEPS=no
15656 REQUIRE_LIB_DEPS=yes
15659 if test x$REQUIRE_LIB_DEPS = xyes; then
15660 USE_EXPLICIT_LIB_DEPS_TRUE=
15661 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15663 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15664 USE_EXPLICIT_LIB_DEPS_FALSE=
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15669 $as_echo_n "checking for inline... " >&6; }
15670 if ${ac_cv_c_inline+:} false; then :
15671 $as_echo_n "(cached) " >&6
15674 for ac_kw in inline __inline__ __inline; do
15675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15676 /* end confdefs.h. */
15677 #ifndef __cplusplus
15679 static $ac_kw foo_t static_foo () {return 0; }
15680 $ac_kw foo_t foo () {return 0; }
15684 if ac_fn_c_try_compile "$LINENO"; then :
15685 ac_cv_c_inline=$ac_kw
15687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15688 test "$ac_cv_c_inline" != no && break
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15693 $as_echo "$ac_cv_c_inline" >&6; }
15695 case $ac_cv_c_inline in
15698 case $ac_cv_c_inline in
15700 *) ac_val=$ac_cv_c_inline;;
15702 cat >>confdefs.h <<_ACEOF
15703 #ifndef __cplusplus
15704 #define inline $ac_val
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15714 $as_echo_n "checking if cpp -P is needed... " >&6; }
15715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15716 /* end confdefs.h. */
15722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15723 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15731 $as_echo "$cpp" >&6; }
15733 if test "x$cpp" = "xyes"; then
15734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15735 $as_echo_n "checking if cpp -P works... " >&6; }
15736 OLDCPPFLAGS=$CPPFLAGS
15737 CPPFLAGS="$CPPFLAGS -P"
15738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15739 /* end confdefs.h. */
15745 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15746 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15754 $as_echo "$cpp_p" >&6; }
15756 if test "x$cpp_p" = "xno"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
15758 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
15765 CPPFLAGS=$OLDCPPFLAGS
15773 compiler_id="unknown"
15776 flags_dbg_all="unknown"
15777 flags_dbg_yes="unknown"
15778 flags_dbg_off="unknown"
15779 flags_opt_all="unknown"
15780 flags_opt_yes="unknown"
15781 flags_opt_off="unknown"
15783 flags_prefer_cppflags="no"
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15787 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15789 OLDCPPFLAGS=$CPPFLAGS
15790 # CPPPFLAG comes from CURL_CPP_P
15791 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15792 if test -z "$SED"; then
15793 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15795 if test -z "$GREP"; then
15796 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15801 /* end confdefs.h. */
15805 CURL_DEF_TOKEN __DECC
15810 if ac_fn_c_try_cpp "$LINENO"; then :
15812 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15813 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15814 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15815 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15816 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15821 rm -f conftest.err conftest.i conftest.$ac_ext
15822 if test -z "$tmp_exp"; then
15823 curl_cv_have_def___DECC=no
15826 curl_cv_have_def___DECC=yes
15827 curl_cv_def___DECC=$tmp_exp
15830 CPPFLAGS=$OLDCPPFLAGS
15833 OLDCPPFLAGS=$CPPFLAGS
15834 # CPPPFLAG comes from CURL_CPP_P
15835 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15836 if test -z "$SED"; then
15837 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15839 if test -z "$GREP"; then
15840 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15845 /* end confdefs.h. */
15849 CURL_DEF_TOKEN __DECC_VER
15854 if ac_fn_c_try_cpp "$LINENO"; then :
15856 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15857 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15858 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15859 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15860 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15865 rm -f conftest.err conftest.i conftest.$ac_ext
15866 if test -z "$tmp_exp"; then
15867 curl_cv_have_def___DECC_VER=no
15870 curl_cv_have_def___DECC_VER=yes
15871 curl_cv_def___DECC_VER=$tmp_exp
15874 CPPFLAGS=$OLDCPPFLAGS
15876 if test "$curl_cv_have_def___DECC" = "yes" &&
15877 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15880 compiler_id="DEC_C"
15881 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15882 flags_dbg_yes="-g2"
15884 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15885 flags_opt_yes="-O1"
15886 flags_opt_off="-O0"
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15889 $as_echo "no" >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15894 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15896 OLDCPPFLAGS=$CPPFLAGS
15897 # CPPPFLAG comes from CURL_CPP_P
15898 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15899 if test -z "$SED"; then
15900 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15902 if test -z "$GREP"; then
15903 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15908 /* end confdefs.h. */
15912 CURL_DEF_TOKEN __HP_cc
15917 if ac_fn_c_try_cpp "$LINENO"; then :
15919 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15920 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15921 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15922 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15923 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15928 rm -f conftest.err conftest.i conftest.$ac_ext
15929 if test -z "$tmp_exp"; then
15930 curl_cv_have_def___HP_cc=no
15933 curl_cv_have_def___HP_cc=yes
15934 curl_cv_def___HP_cc=$tmp_exp
15937 CPPFLAGS=$OLDCPPFLAGS
15939 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15941 $as_echo "yes" >&6; }
15942 compiler_id="HP_UX_C"
15943 flags_dbg_all="-g -s"
15946 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15947 flags_opt_yes="+O2"
15948 flags_opt_off="+O0"
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15951 $as_echo "no" >&6; }
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15956 $as_echo_n "checking if compiler is IBM C... " >&6; }
15958 OLDCPPFLAGS=$CPPFLAGS
15959 # CPPPFLAG comes from CURL_CPP_P
15960 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
15961 if test -z "$SED"; then
15962 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15964 if test -z "$GREP"; then
15965 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15970 /* end confdefs.h. */
15974 CURL_DEF_TOKEN __IBMC__
15979 if ac_fn_c_try_cpp "$LINENO"; then :
15981 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15982 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15983 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15984 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15985 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15990 rm -f conftest.err conftest.i conftest.$ac_ext
15991 if test -z "$tmp_exp"; then
15992 curl_cv_have_def___IBMC__=no
15995 curl_cv_have_def___IBMC__=yes
15996 curl_cv_def___IBMC__=$tmp_exp
15999 CPPFLAGS=$OLDCPPFLAGS
16001 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16003 $as_echo "yes" >&6; }
16004 compiler_id="IBM_C"
16005 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16008 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16009 flags_opt_all="$flags_opt_all -qnooptimize"
16010 flags_opt_all="$flags_opt_all -qoptimize=0"
16011 flags_opt_all="$flags_opt_all -qoptimize=1"
16012 flags_opt_all="$flags_opt_all -qoptimize=2"
16013 flags_opt_all="$flags_opt_all -qoptimize=3"
16014 flags_opt_all="$flags_opt_all -qoptimize=4"
16015 flags_opt_all="$flags_opt_all -qoptimize=5"
16016 flags_opt_yes="-O2"
16017 flags_opt_off="-qnooptimize"
16018 flags_prefer_cppflags="yes"
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16021 $as_echo "no" >&6; }
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16026 $as_echo_n "checking if compiler is Intel C... " >&6; }
16028 OLDCPPFLAGS=$CPPFLAGS
16029 # CPPPFLAG comes from CURL_CPP_P
16030 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16031 if test -z "$SED"; then
16032 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16034 if test -z "$GREP"; then
16035 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16040 /* end confdefs.h. */
16043 #ifdef __INTEL_COMPILER
16044 CURL_DEF_TOKEN __INTEL_COMPILER
16049 if ac_fn_c_try_cpp "$LINENO"; then :
16051 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16052 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16053 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16054 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16055 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16060 rm -f conftest.err conftest.i conftest.$ac_ext
16061 if test -z "$tmp_exp"; then
16062 curl_cv_have_def___INTEL_COMPILER=no
16065 curl_cv_have_def___INTEL_COMPILER=yes
16066 curl_cv_def___INTEL_COMPILER=$tmp_exp
16069 CPPFLAGS=$OLDCPPFLAGS
16071 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16073 $as_echo "yes" >&6; }
16074 compiler_num="$curl_cv_def___INTEL_COMPILER"
16076 OLDCPPFLAGS=$CPPFLAGS
16077 # CPPPFLAG comes from CURL_CPP_P
16078 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16079 if test -z "$SED"; then
16080 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16082 if test -z "$GREP"; then
16083 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16088 /* end confdefs.h. */
16092 CURL_DEF_TOKEN __unix__
16097 if ac_fn_c_try_cpp "$LINENO"; then :
16099 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16100 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16101 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16102 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16103 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16108 rm -f conftest.err conftest.i conftest.$ac_ext
16109 if test -z "$tmp_exp"; then
16110 curl_cv_have_def___unix__=no
16113 curl_cv_have_def___unix__=yes
16114 curl_cv_def___unix__=$tmp_exp
16117 CPPFLAGS=$OLDCPPFLAGS
16119 if test "$curl_cv_have_def___unix__" = "yes"; then
16120 compiler_id="INTEL_UNIX_C"
16121 flags_dbg_all="-g -g0"
16124 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16125 flags_opt_yes="-O2"
16126 flags_opt_off="-O0"
16128 compiler_id="INTEL_WINDOWS_C"
16129 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16130 flags_dbg_all="$flags_dbg_all /debug"
16131 flags_dbg_all="$flags_dbg_all /debug:none"
16132 flags_dbg_all="$flags_dbg_all /debug:minimal"
16133 flags_dbg_all="$flags_dbg_all /debug:partial"
16134 flags_dbg_all="$flags_dbg_all /debug:full"
16135 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16136 flags_dbg_all="$flags_dbg_all /debug:extended"
16137 flags_dbg_yes="/Zi /Oy-"
16138 flags_dbg_off="/debug:none /Oy-"
16139 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16140 flags_opt_yes="/O2"
16141 flags_opt_off="/Od"
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16145 $as_echo "no" >&6; }
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16150 $as_echo_n "checking if compiler is clang... " >&6; }
16152 OLDCPPFLAGS=$CPPFLAGS
16153 # CPPPFLAG comes from CURL_CPP_P
16154 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16155 if test -z "$SED"; then
16156 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16158 if test -z "$GREP"; then
16159 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16164 /* end confdefs.h. */
16168 CURL_DEF_TOKEN __clang__
16173 if ac_fn_c_try_cpp "$LINENO"; then :
16175 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16176 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16177 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16178 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16179 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16184 rm -f conftest.err conftest.i conftest.$ac_ext
16185 if test -z "$tmp_exp"; then
16186 curl_cv_have_def___clang__=no
16189 curl_cv_have_def___clang__=yes
16190 curl_cv_def___clang__=$tmp_exp
16193 CPPFLAGS=$OLDCPPFLAGS
16195 if test "$curl_cv_have_def___clang__" = "yes"; then
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16197 $as_echo "yes" >&6; }
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
16199 $as_echo_n "checking if compiler is xlclang... " >&6; }
16201 OLDCPPFLAGS=$CPPFLAGS
16202 # CPPPFLAG comes from CURL_CPP_P
16203 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16204 if test -z "$SED"; then
16205 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16207 if test -z "$GREP"; then
16208 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16213 /* end confdefs.h. */
16217 CURL_DEF_TOKEN __ibmxl__
16222 if ac_fn_c_try_cpp "$LINENO"; then :
16224 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16225 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16226 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16227 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16228 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
16233 rm -f conftest.err conftest.i conftest.$ac_ext
16234 if test -z "$tmp_exp"; then
16235 curl_cv_have_def___ibmxl__=no
16238 curl_cv_have_def___ibmxl__=yes
16239 curl_cv_def___ibmxl__=$tmp_exp
16242 CPPFLAGS=$OLDCPPFLAGS
16244 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16246 $as_echo "yes" >&6; }
16247 compiler_id="XLCLANG"
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16250 $as_echo "no" >&6; }
16251 compiler_id="CLANG"
16253 fullclangver=`$CC -v 2>&1 | grep version`
16254 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16255 if test -z "$clangver"; then
16256 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16259 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16262 clangvhi=`echo $clangver | cut -d . -f1`
16263 clangvlo=`echo $clangver | cut -d . -f2`
16264 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16265 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16266 flags_dbg_all="$flags_dbg_all -ggdb"
16267 flags_dbg_all="$flags_dbg_all -gstabs"
16268 flags_dbg_all="$flags_dbg_all -gstabs+"
16269 flags_dbg_all="$flags_dbg_all -gcoff"
16270 flags_dbg_all="$flags_dbg_all -gxcoff"
16271 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16272 flags_dbg_all="$flags_dbg_all -gvms"
16275 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16276 flags_opt_yes="-Os"
16277 flags_opt_off="-O0"
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16280 $as_echo "no" >&6; }
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16285 $as_echo_n "checking if compiler is GNU C... " >&6; }
16287 OLDCPPFLAGS=$CPPFLAGS
16288 # CPPPFLAG comes from CURL_CPP_P
16289 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16290 if test -z "$SED"; then
16291 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16293 if test -z "$GREP"; then
16294 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16299 /* end confdefs.h. */
16303 CURL_DEF_TOKEN __GNUC__
16308 if ac_fn_c_try_cpp "$LINENO"; then :
16310 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16311 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16312 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16313 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16314 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16319 rm -f conftest.err conftest.i conftest.$ac_ext
16320 if test -z "$tmp_exp"; then
16321 curl_cv_have_def___GNUC__=no
16324 curl_cv_have_def___GNUC__=yes
16325 curl_cv_def___GNUC__=$tmp_exp
16328 CPPFLAGS=$OLDCPPFLAGS
16330 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16331 test "$compiler_id" = "unknown"; then
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16333 $as_echo "yes" >&6; }
16334 compiler_id="GNU_C"
16335 gccver=`$CC -dumpversion`
16336 gccvhi=`echo $gccver | cut -d . -f1`
16337 gccvlo=`echo $gccver | cut -d . -f2`
16338 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16339 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16340 flags_dbg_all="$flags_dbg_all -ggdb"
16341 flags_dbg_all="$flags_dbg_all -gstabs"
16342 flags_dbg_all="$flags_dbg_all -gstabs+"
16343 flags_dbg_all="$flags_dbg_all -gcoff"
16344 flags_dbg_all="$flags_dbg_all -gxcoff"
16345 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16346 flags_dbg_all="$flags_dbg_all -gvms"
16349 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16350 flags_opt_yes="-O2"
16351 flags_opt_off="-O0"
16353 OLDCPPFLAGS=$CPPFLAGS
16354 # CPPPFLAG comes from CURL_CPP_P
16355 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16356 if test -z "$SED"; then
16357 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16359 if test -z "$GREP"; then
16360 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16365 /* end confdefs.h. */
16369 CURL_DEF_TOKEN _WIN32
16374 if ac_fn_c_try_cpp "$LINENO"; then :
16376 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16377 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16378 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16379 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16380 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16385 rm -f conftest.err conftest.i conftest.$ac_ext
16386 if test -z "$tmp_exp"; then
16387 curl_cv_have_def__WIN32=no
16390 curl_cv_have_def__WIN32=yes
16391 curl_cv_def__WIN32=$tmp_exp
16394 CPPFLAGS=$OLDCPPFLAGS
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16398 $as_echo "no" >&6; }
16402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16403 $as_echo_n "checking if compiler is LCC... " >&6; }
16405 OLDCPPFLAGS=$CPPFLAGS
16406 # CPPPFLAG comes from CURL_CPP_P
16407 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16408 if test -z "$SED"; then
16409 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16411 if test -z "$GREP"; then
16412 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16417 /* end confdefs.h. */
16421 CURL_DEF_TOKEN __LCC__
16426 if ac_fn_c_try_cpp "$LINENO"; then :
16428 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16429 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16430 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16431 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16432 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16437 rm -f conftest.err conftest.i conftest.$ac_ext
16438 if test -z "$tmp_exp"; then
16439 curl_cv_have_def___LCC__=no
16442 curl_cv_have_def___LCC__=yes
16443 curl_cv_def___LCC__=$tmp_exp
16446 CPPFLAGS=$OLDCPPFLAGS
16448 if test "$curl_cv_have_def___LCC__" = "yes"; then
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16450 $as_echo "yes" >&6; }
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16460 $as_echo "no" >&6; }
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16465 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16467 OLDCPPFLAGS=$CPPFLAGS
16468 # CPPPFLAG comes from CURL_CPP_P
16469 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16470 if test -z "$SED"; then
16471 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16473 if test -z "$GREP"; then
16474 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16479 /* end confdefs.h. */
16483 CURL_DEF_TOKEN __GNUC__
16488 if ac_fn_c_try_cpp "$LINENO"; then :
16490 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16491 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16492 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16493 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16494 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16499 rm -f conftest.err conftest.i conftest.$ac_ext
16500 if test -z "$tmp_exp"; then
16501 curl_cv_have_def___GNUC__=no
16504 curl_cv_have_def___GNUC__=yes
16505 curl_cv_def___GNUC__=$tmp_exp
16508 CPPFLAGS=$OLDCPPFLAGS
16511 OLDCPPFLAGS=$CPPFLAGS
16512 # CPPPFLAG comes from CURL_CPP_P
16513 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16514 if test -z "$SED"; then
16515 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16517 if test -z "$GREP"; then
16518 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16523 /* end confdefs.h. */
16526 #ifdef _COMPILER_VERSION
16527 CURL_DEF_TOKEN _COMPILER_VERSION
16532 if ac_fn_c_try_cpp "$LINENO"; then :
16534 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16535 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16536 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16537 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16538 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16543 rm -f conftest.err conftest.i conftest.$ac_ext
16544 if test -z "$tmp_exp"; then
16545 curl_cv_have_def__COMPILER_VERSION=no
16548 curl_cv_have_def__COMPILER_VERSION=yes
16549 curl_cv_def__COMPILER_VERSION=$tmp_exp
16552 CPPFLAGS=$OLDCPPFLAGS
16555 OLDCPPFLAGS=$CPPFLAGS
16556 # CPPPFLAG comes from CURL_CPP_P
16557 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16558 if test -z "$SED"; then
16559 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16561 if test -z "$GREP"; then
16562 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16567 /* end confdefs.h. */
16570 #ifdef _SGI_COMPILER_VERSION
16571 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16576 if ac_fn_c_try_cpp "$LINENO"; then :
16578 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16579 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16580 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16581 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16582 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16587 rm -f conftest.err conftest.i conftest.$ac_ext
16588 if test -z "$tmp_exp"; then
16589 curl_cv_have_def__SGI_COMPILER_VERSION=no
16592 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16593 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16596 CPPFLAGS=$OLDCPPFLAGS
16598 if test "$curl_cv_have_def___GNUC__" = "no" &&
16599 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16600 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16602 $as_echo "yes" >&6; }
16603 compiler_id="SGI_MIPSPRO_C"
16604 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16607 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16608 flags_opt_yes="-O2"
16609 flags_opt_off="-O0"
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16612 $as_echo "no" >&6; }
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16617 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16619 OLDCPPFLAGS=$CPPFLAGS
16620 # CPPPFLAG comes from CURL_CPP_P
16621 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16622 if test -z "$SED"; then
16623 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16625 if test -z "$GREP"; then
16626 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16635 CURL_DEF_TOKEN __GNUC__
16640 if ac_fn_c_try_cpp "$LINENO"; then :
16642 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16643 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16644 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16645 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16646 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16651 rm -f conftest.err conftest.i conftest.$ac_ext
16652 if test -z "$tmp_exp"; then
16653 curl_cv_have_def___GNUC__=no
16656 curl_cv_have_def___GNUC__=yes
16657 curl_cv_def___GNUC__=$tmp_exp
16660 CPPFLAGS=$OLDCPPFLAGS
16663 OLDCPPFLAGS=$CPPFLAGS
16664 # CPPPFLAG comes from CURL_CPP_P
16665 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16666 if test -z "$SED"; then
16667 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16669 if test -z "$GREP"; then
16670 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16679 CURL_DEF_TOKEN __sgi
16684 if ac_fn_c_try_cpp "$LINENO"; then :
16686 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16687 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16688 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16689 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16690 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16695 rm -f conftest.err conftest.i conftest.$ac_ext
16696 if test -z "$tmp_exp"; then
16697 curl_cv_have_def___sgi=no
16700 curl_cv_have_def___sgi=yes
16701 curl_cv_def___sgi=$tmp_exp
16704 CPPFLAGS=$OLDCPPFLAGS
16706 if test "$curl_cv_have_def___GNUC__" = "no" &&
16707 test "$curl_cv_have_def___sgi" = "yes" &&
16708 test "$compiler_id" = "unknown"; then
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16710 $as_echo "yes" >&6; }
16711 compiler_id="SGI_MIPS_C"
16712 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16715 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16716 flags_opt_yes="-O2"
16717 flags_opt_off="-O0"
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16720 $as_echo "no" >&6; }
16724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16725 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16727 OLDCPPFLAGS=$CPPFLAGS
16728 # CPPPFLAG comes from CURL_CPP_P
16729 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16730 if test -z "$SED"; then
16731 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16733 if test -z "$GREP"; then
16734 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16743 CURL_DEF_TOKEN __SUNPRO_C
16748 if ac_fn_c_try_cpp "$LINENO"; then :
16750 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16751 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16752 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16753 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16754 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16759 rm -f conftest.err conftest.i conftest.$ac_ext
16760 if test -z "$tmp_exp"; then
16761 curl_cv_have_def___SUNPRO_C=no
16764 curl_cv_have_def___SUNPRO_C=yes
16765 curl_cv_def___SUNPRO_C=$tmp_exp
16768 CPPFLAGS=$OLDCPPFLAGS
16770 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16772 $as_echo "yes" >&6; }
16773 compiler_id="SUNPRO_C"
16774 flags_dbg_all="-g -s"
16777 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16778 flags_opt_yes="-xO2"
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16782 $as_echo "no" >&6; }
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16787 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16789 OLDCPPFLAGS=$CPPFLAGS
16790 # CPPPFLAG comes from CURL_CPP_P
16791 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16792 if test -z "$SED"; then
16793 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16795 if test -z "$GREP"; then
16796 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16801 /* end confdefs.h. */
16805 CURL_DEF_TOKEN __TINYC__
16810 if ac_fn_c_try_cpp "$LINENO"; then :
16812 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16813 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16814 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16815 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16816 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16821 rm -f conftest.err conftest.i conftest.$ac_ext
16822 if test -z "$tmp_exp"; then
16823 curl_cv_have_def___TINYC__=no
16826 curl_cv_have_def___TINYC__=yes
16827 curl_cv_def___TINYC__=$tmp_exp
16830 CPPFLAGS=$OLDCPPFLAGS
16832 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16834 $as_echo "yes" >&6; }
16835 compiler_id="TINY_C"
16836 flags_dbg_all="-g -b"
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16844 $as_echo "no" >&6; }
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16849 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16851 OLDCPPFLAGS=$CPPFLAGS
16852 # CPPPFLAG comes from CURL_CPP_P
16853 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16854 if test -z "$SED"; then
16855 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16857 if test -z "$GREP"; then
16858 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16867 CURL_DEF_TOKEN __WATCOMC__
16872 if ac_fn_c_try_cpp "$LINENO"; then :
16874 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16875 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16876 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16877 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16878 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16883 rm -f conftest.err conftest.i conftest.$ac_ext
16884 if test -z "$tmp_exp"; then
16885 curl_cv_have_def___WATCOMC__=no
16888 curl_cv_have_def___WATCOMC__=yes
16889 curl_cv_def___WATCOMC__=$tmp_exp
16892 CPPFLAGS=$OLDCPPFLAGS
16894 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16896 $as_echo "yes" >&6; }
16898 OLDCPPFLAGS=$CPPFLAGS
16899 # CPPPFLAG comes from CURL_CPP_P
16900 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16901 if test -z "$SED"; then
16902 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16904 if test -z "$GREP"; then
16905 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16910 /* end confdefs.h. */
16914 CURL_DEF_TOKEN __UNIX__
16919 if ac_fn_c_try_cpp "$LINENO"; then :
16921 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16922 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16923 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16924 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16925 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16930 rm -f conftest.err conftest.i conftest.$ac_ext
16931 if test -z "$tmp_exp"; then
16932 curl_cv_have_def___UNIX__=no
16935 curl_cv_have_def___UNIX__=yes
16936 curl_cv_def___UNIX__=$tmp_exp
16939 CPPFLAGS=$OLDCPPFLAGS
16941 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16942 compiler_id="WATCOM_UNIX_C"
16943 flags_dbg_all="-g1 -g1+ -g2 -g3"
16944 flags_dbg_yes="-g2"
16946 flags_opt_all="-O0 -O1 -O2 -O3"
16947 flags_opt_yes="-O2"
16948 flags_opt_off="-O0"
16950 compiler_id="WATCOM_WINDOWS_C"
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16960 $as_echo "no" >&6; }
16964 if test "$compiler_id" = "unknown"; then
16967 *** Warning: This configure script does not have information about the
16968 *** compiler you are using, relative to the flags required to enable or
16969 *** disable generation of debug info, optimization options or warnings.
16971 *** Whatever settings are present in CFLAGS will be used for this run.
16973 *** If you wish to help the curl project to better support your compiler
16974 *** you can report this and the required info on the libcurl development
16975 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
16983 eval _sqz_input=\$$1
16984 for _sqz_token in $_sqz_input; do
16985 if test -z "$_sqz_result"; then
16986 _sqz_result="$_sqz_token"
16988 _sqz_result="$_sqz_result $_sqz_token"
16991 eval $1=\$_sqz_result
16997 if test "$compiler_id" != "unknown"; then
16999 if test "$compiler_id" = "GNU_C" ||
17000 test "$compiler_id" = "CLANG"; then
17002 if test "$compiler_id" = "GNU_C" ||
17003 test "$compiler_id" = "CLANG"; then
17004 tmp_has_include="no"
17005 tmp_chg_FLAGS="$CFLAGS"
17006 for word1 in $tmp_chg_FLAGS; do
17009 tmp_has_include="yes"
17013 if test "$tmp_has_include" = "yes"; then
17014 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17015 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17016 CFLAGS="$tmp_chg_FLAGS"
17019 tmp_has_include="no"
17020 tmp_chg_FLAGS="$CPPFLAGS"
17021 for word1 in $tmp_chg_FLAGS; do
17024 tmp_has_include="yes"
17028 if test "$tmp_has_include" = "yes"; then
17029 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17030 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17031 CPPFLAGS="$tmp_chg_FLAGS"
17038 tmp_save_CPPFLAGS="$CPPFLAGS"
17039 tmp_save_CFLAGS="$CFLAGS"
17043 case "$compiler_id" in
17047 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17052 tmp_CFLAGS="$tmp_CFLAGS -std1"
17053 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17054 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17055 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17060 if test "$compiler_num" -ge "295"; then
17061 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17067 tmp_CFLAGS="$tmp_CFLAGS -z"
17068 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17073 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17074 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17075 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17080 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17081 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17082 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17087 tmp_CFLAGS="$tmp_CFLAGS"
17092 tmp_CFLAGS="$tmp_CFLAGS -n"
17097 tmp_CFLAGS="$tmp_CFLAGS"
17102 tmp_CFLAGS="$tmp_CFLAGS"
17107 tmp_CFLAGS="$tmp_CFLAGS"
17112 tmp_CFLAGS="$tmp_CFLAGS"
17117 tmp_CFLAGS="$tmp_CFLAGS"
17122 tmp_CFLAGS="$tmp_CFLAGS"
17127 squeeze tmp_CPPFLAGS
17130 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17132 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17133 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17134 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17138 tmp_compiler_works="unknown"
17139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17140 /* end confdefs.h. */
17155 if ac_fn_c_try_compile "$LINENO"; then :
17157 tmp_compiler_works="yes"
17161 tmp_compiler_works="no"
17163 sed 's/^/cc-fail: /' conftest.err >&6
17167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17168 if test "$tmp_compiler_works" = "yes"; then
17169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17170 /* end confdefs.h. */
17185 if ac_fn_c_try_link "$LINENO"; then :
17187 tmp_compiler_works="yes"
17191 tmp_compiler_works="no"
17193 sed 's/^/link-fail: /' conftest.err >&6
17197 rm -f core conftest.err conftest.$ac_objext \
17198 conftest$ac_exeext conftest.$ac_ext
17200 if test "x$cross_compiling" != "xyes" &&
17201 test "$tmp_compiler_works" = "yes"; then
17204 old=$LD_LIBRARY_PATH
17205 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17206 export LD_LIBRARY_PATH
17207 if test "$cross_compiling" = yes; then :
17208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17210 as_fn_error $? "cannot run test program while cross compiling
17211 See \`config.log' for more details" "$LINENO" 5; }
17213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17214 /* end confdefs.h. */
17218 # include <stdlib.h>
17232 if ac_fn_c_try_run "$LINENO"; then :
17233 tmp_compiler_works="yes"
17236 tmp_compiler_works="no"
17238 echo "run-fail: test program exited with status $ac_status" >&6
17242 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17243 conftest.$ac_objext conftest.beam conftest.$ac_ext
17246 LD_LIBRARY_PATH=$old # restore
17249 if test "$tmp_compiler_works" = "yes"; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17252 $as_echo "yes" >&6; }
17253 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17254 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17259 $as_echo "no" >&6; }
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17261 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17262 CPPFLAGS="$tmp_save_CPPFLAGS"
17263 CFLAGS="$tmp_save_CFLAGS"
17273 if test "$compiler_id" != "unknown"; then
17275 tmp_save_CFLAGS="$CFLAGS"
17276 tmp_save_CPPFLAGS="$CPPFLAGS"
17279 tmp_CFLAGS="$CFLAGS"
17280 tmp_CPPFLAGS="$CPPFLAGS"
17283 for word1 in $tmp_CFLAGS; do
17284 ac_var_strip_word="no"
17285 for word2 in $flags_dbg_all; do
17286 if test "$word1" = "$word2"; then
17287 ac_var_strip_word="yes"
17290 if test "$ac_var_strip_word" = "no"; then
17291 ac_var_stripped="$ac_var_stripped $word1"
17294 tmp_CFLAGS="$ac_var_stripped"
17299 for word1 in $tmp_CPPFLAGS; do
17300 ac_var_strip_word="no"
17301 for word2 in $flags_dbg_all; do
17302 if test "$word1" = "$word2"; then
17303 ac_var_strip_word="yes"
17306 if test "$ac_var_strip_word" = "no"; then
17307 ac_var_stripped="$ac_var_stripped $word1"
17310 tmp_CPPFLAGS="$ac_var_stripped"
17311 squeeze tmp_CPPFLAGS
17314 if test "$want_debug" = "yes"; then
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17316 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17317 tmp_options="$flags_dbg_yes"
17319 if test "$want_debug" = "no"; then
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17321 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17322 tmp_options="$flags_dbg_off"
17325 if test "$flags_prefer_cppflags" = "yes"; then
17326 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17327 CFLAGS="$tmp_CFLAGS"
17329 CPPFLAGS="$tmp_CPPFLAGS"
17330 CFLAGS="$tmp_CFLAGS $tmp_options"
17335 tmp_compiler_works="unknown"
17336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17337 /* end confdefs.h. */
17352 if ac_fn_c_try_compile "$LINENO"; then :
17354 tmp_compiler_works="yes"
17358 tmp_compiler_works="no"
17360 sed 's/^/cc-fail: /' conftest.err >&6
17364 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17365 if test "$tmp_compiler_works" = "yes"; then
17366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17367 /* end confdefs.h. */
17382 if ac_fn_c_try_link "$LINENO"; then :
17384 tmp_compiler_works="yes"
17388 tmp_compiler_works="no"
17390 sed 's/^/link-fail: /' conftest.err >&6
17394 rm -f core conftest.err conftest.$ac_objext \
17395 conftest$ac_exeext conftest.$ac_ext
17397 if test "x$cross_compiling" != "xyes" &&
17398 test "$tmp_compiler_works" = "yes"; then
17401 old=$LD_LIBRARY_PATH
17402 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17403 export LD_LIBRARY_PATH
17404 if test "$cross_compiling" = yes; then :
17405 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17406 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17407 as_fn_error $? "cannot run test program while cross compiling
17408 See \`config.log' for more details" "$LINENO" 5; }
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17415 # include <stdlib.h>
17429 if ac_fn_c_try_run "$LINENO"; then :
17430 tmp_compiler_works="yes"
17433 tmp_compiler_works="no"
17435 echo "run-fail: test program exited with status $ac_status" >&6
17439 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17440 conftest.$ac_objext conftest.beam conftest.$ac_ext
17443 LD_LIBRARY_PATH=$old # restore
17446 if test "$tmp_compiler_works" = "yes"; then
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17449 $as_echo "yes" >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17451 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17456 $as_echo "no" >&6; }
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17458 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17459 CPPFLAGS="$tmp_save_CPPFLAGS"
17460 CFLAGS="$tmp_save_CFLAGS"
17469 if test "$compiler_id" != "unknown"; then
17471 tmp_save_CFLAGS="$CFLAGS"
17472 tmp_save_CPPFLAGS="$CPPFLAGS"
17475 tmp_CFLAGS="$CFLAGS"
17476 tmp_CPPFLAGS="$CPPFLAGS"
17477 honor_optimize_option="yes"
17480 if test "$want_optimize" = "assume_no" ||
17481 test "$want_optimize" = "assume_yes"; then
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17483 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17486 ac_var_match_word="no"
17487 for word1 in $tmp_CFLAGS; do
17488 for word2 in $flags_opt_all; do
17489 if test "$word1" = "$word2"; then
17490 ac_var_match_word="yes"
17495 if test "$ac_var_match_word" = "yes"; then
17497 honor_optimize_option="no"
17504 ac_var_match_word="no"
17505 for word1 in $tmp_CPPFLAGS; do
17506 for word2 in $flags_opt_all; do
17507 if test "$word1" = "$word2"; then
17508 ac_var_match_word="yes"
17513 if test "$ac_var_match_word" = "yes"; then
17515 honor_optimize_option="no"
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17521 $as_echo "$honor_optimize_option" >&6; }
17522 if test "$honor_optimize_option" = "yes"; then
17523 if test "$want_optimize" = "assume_yes"; then
17524 want_optimize="yes"
17526 if test "$want_optimize" = "assume_no"; then
17532 if test "$honor_optimize_option" = "yes"; then
17535 for word1 in $tmp_CFLAGS; do
17536 ac_var_strip_word="no"
17537 for word2 in $flags_opt_all; do
17538 if test "$word1" = "$word2"; then
17539 ac_var_strip_word="yes"
17542 if test "$ac_var_strip_word" = "no"; then
17543 ac_var_stripped="$ac_var_stripped $word1"
17546 tmp_CFLAGS="$ac_var_stripped"
17551 for word1 in $tmp_CPPFLAGS; do
17552 ac_var_strip_word="no"
17553 for word2 in $flags_opt_all; do
17554 if test "$word1" = "$word2"; then
17555 ac_var_strip_word="yes"
17558 if test "$ac_var_strip_word" = "no"; then
17559 ac_var_stripped="$ac_var_stripped $word1"
17562 tmp_CPPFLAGS="$ac_var_stripped"
17563 squeeze tmp_CPPFLAGS
17565 if test "$want_optimize" = "yes"; then
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17567 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17568 tmp_options="$flags_opt_yes"
17570 if test "$want_optimize" = "no"; then
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17572 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17573 tmp_options="$flags_opt_off"
17575 if test "$flags_prefer_cppflags" = "yes"; then
17576 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17577 CFLAGS="$tmp_CFLAGS"
17579 CPPFLAGS="$tmp_CPPFLAGS"
17580 CFLAGS="$tmp_CFLAGS $tmp_options"
17585 tmp_compiler_works="unknown"
17586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17587 /* end confdefs.h. */
17602 if ac_fn_c_try_compile "$LINENO"; then :
17604 tmp_compiler_works="yes"
17608 tmp_compiler_works="no"
17610 sed 's/^/cc-fail: /' conftest.err >&6
17614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17615 if test "$tmp_compiler_works" = "yes"; then
17616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17617 /* end confdefs.h. */
17632 if ac_fn_c_try_link "$LINENO"; then :
17634 tmp_compiler_works="yes"
17638 tmp_compiler_works="no"
17640 sed 's/^/link-fail: /' conftest.err >&6
17644 rm -f core conftest.err conftest.$ac_objext \
17645 conftest$ac_exeext conftest.$ac_ext
17647 if test "x$cross_compiling" != "xyes" &&
17648 test "$tmp_compiler_works" = "yes"; then
17651 old=$LD_LIBRARY_PATH
17652 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
17653 export LD_LIBRARY_PATH
17654 if test "$cross_compiling" = yes; then :
17655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17657 as_fn_error $? "cannot run test program while cross compiling
17658 See \`config.log' for more details" "$LINENO" 5; }
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17665 # include <stdlib.h>
17679 if ac_fn_c_try_run "$LINENO"; then :
17680 tmp_compiler_works="yes"
17683 tmp_compiler_works="no"
17685 echo "run-fail: test program exited with status $ac_status" >&6
17689 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17690 conftest.$ac_objext conftest.beam conftest.$ac_ext
17693 LD_LIBRARY_PATH=$old # restore
17696 if test "$tmp_compiler_works" = "yes"; then
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17699 $as_echo "yes" >&6; }
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17701 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17706 $as_echo "no" >&6; }
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17708 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17709 CPPFLAGS="$tmp_save_CPPFLAGS"
17710 CFLAGS="$tmp_save_CFLAGS"
17720 if test "$compiler_id" != "unknown"; then
17722 tmp_save_CPPFLAGS="$CPPFLAGS"
17723 tmp_save_CFLAGS="$CFLAGS"
17727 case "$compiler_id" in
17731 if test "$want_warnings" = "yes"; then
17732 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17733 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17734 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17735 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17736 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17737 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17738 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17739 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17740 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17741 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17742 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17743 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17744 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17745 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17746 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17747 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17748 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17750 if test "$compiler_num" -ge "101"; then
17751 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17754 if test "$compiler_num" -ge "208"; then
17755 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17758 if test "$compiler_num" -ge "209"; then
17759 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17762 if test "$compiler_num" -ge "302"; then
17767 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17772 if test "$compiler_num" -ge "306"; then
17773 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17776 if test "$compiler_num" -ge "309"; then
17777 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17778 # avoid the varargs warning, fixed in 4.0
17779 # https://bugs.llvm.org/show_bug.cgi?id=29140
17780 if test "$compiler_num" -lt "400"; then
17781 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17789 if test "$want_warnings" = "yes"; then
17790 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17796 if test "$want_warnings" = "yes"; then
17798 if test "x$cross_compiling" != "xyes" ||
17799 test "$compiler_num" -ge "300"; then
17800 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17803 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17805 if test "$compiler_num" -ge "104"; then
17806 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17807 if test "x$cross_compiling" != "xyes" ||
17808 test "$compiler_num" -ge "300"; then
17809 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17813 if test "$compiler_num" -ge "207"; then
17814 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17815 if test "x$cross_compiling" != "xyes" ||
17816 test "$compiler_num" -ge "300"; then
17817 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17818 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17822 if test "$compiler_num" -ge "295"; then
17823 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17824 tmp_CFLAGS="$tmp_CFLAGS -Wbad-function-cast"
17827 if test "$compiler_num" -ge "296"; then
17828 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17829 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17830 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17833 if test "$compiler_num" -ge "297"; then
17834 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17837 if test "$compiler_num" -ge "300"; then
17838 tmp_CFLAGS="$tmp_CFLAGS"
17841 if test "$compiler_num" -ge "303"; then
17842 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17845 if test "$compiler_num" -ge "304"; then
17846 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17847 tmp_CFLAGS="$tmp_CFLAGS -Wold-style-definition"
17850 if test "$compiler_num" -ge "400"; then
17851 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17854 if test "$compiler_num" -ge "402"; then
17855 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17858 if test "$compiler_num" -ge "403"; then
17859 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17860 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17861 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17862 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17863 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
17866 if test "$compiler_num" -ge "405"; then
17867 if test "$curl_cv_have_def__WIN32" = "yes"; then
17868 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17872 if test "$compiler_num" -ge "406"; then
17873 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17876 if test "$compiler_num" -ge "408"; then
17877 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
17880 if test "$compiler_num" -ge "500"; then
17881 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
17884 if test "$compiler_num" -ge "600"; then
17885 tmp_CFLAGS="$tmp_CFLAGS -Wshift-negative-value"
17886 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
17887 tmp_CFLAGS="$tmp_CFLAGS -Wnull-dereference -fdelete-null-pointer-checks"
17888 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-cond"
17889 tmp_CFLAGS="$tmp_CFLAGS -Wunused-const-variable"
17892 if test "$compiler_num" -ge "700"; then
17893 tmp_CFLAGS="$tmp_CFLAGS -Wduplicated-branches"
17894 tmp_CFLAGS="$tmp_CFLAGS -Wrestrict"
17895 tmp_CFLAGS="$tmp_CFLAGS -Walloc-zero"
17896 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
17897 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
17898 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
17903 if test "$compiler_num" -ge "300"; then
17904 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17906 if test "x$cross_compiling" = "xyes"; then
17907 if test "$compiler_num" -ge "104"; then
17908 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17910 if test "$compiler_num" -ge "207"; then
17911 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17912 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17920 if test "$want_warnings" = "yes"; then
17921 tmp_CFLAGS="$tmp_CFLAGS +w1"
17927 tmp_CFLAGS="$tmp_CFLAGS"
17932 if test "$want_warnings" = "yes"; then
17933 if test "$compiler_num" -gt "600"; then
17934 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17935 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17936 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17937 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17938 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17939 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17940 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17941 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17942 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17943 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17944 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17947 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17948 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17949 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17950 if test "$compiler_num" -ge "1000"; then
17951 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17957 tmp_CFLAGS="$tmp_CFLAGS"
17962 if test "$want_warnings" = "yes"; then
17963 tmp_CFLAGS="$tmp_CFLAGS"
17969 if test "$want_warnings" = "yes"; then
17970 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17976 if test "$want_warnings" = "yes"; then
17977 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17978 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17984 if test "$want_warnings" = "yes"; then
17985 tmp_CFLAGS="$tmp_CFLAGS -v"
17991 if test "$want_warnings" = "yes"; then
17992 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17993 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17994 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18000 if test "$want_warnings" = "yes"; then
18001 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18007 tmp_CFLAGS="$tmp_CFLAGS"
18012 squeeze tmp_CPPFLAGS
18015 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18017 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18018 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18019 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18023 tmp_compiler_works="unknown"
18024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18025 /* end confdefs.h. */
18040 if ac_fn_c_try_compile "$LINENO"; then :
18042 tmp_compiler_works="yes"
18046 tmp_compiler_works="no"
18048 sed 's/^/cc-fail: /' conftest.err >&6
18052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18053 if test "$tmp_compiler_works" = "yes"; then
18054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055 /* end confdefs.h. */
18070 if ac_fn_c_try_link "$LINENO"; then :
18072 tmp_compiler_works="yes"
18076 tmp_compiler_works="no"
18078 sed 's/^/link-fail: /' conftest.err >&6
18082 rm -f core conftest.err conftest.$ac_objext \
18083 conftest$ac_exeext conftest.$ac_ext
18085 if test "x$cross_compiling" != "xyes" &&
18086 test "$tmp_compiler_works" = "yes"; then
18089 old=$LD_LIBRARY_PATH
18090 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18091 export LD_LIBRARY_PATH
18092 if test "$cross_compiling" = yes; then :
18093 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18094 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18095 as_fn_error $? "cannot run test program while cross compiling
18096 See \`config.log' for more details" "$LINENO" 5; }
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18103 # include <stdlib.h>
18117 if ac_fn_c_try_run "$LINENO"; then :
18118 tmp_compiler_works="yes"
18121 tmp_compiler_works="no"
18123 echo "run-fail: test program exited with status $ac_status" >&6
18127 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18128 conftest.$ac_objext conftest.beam conftest.$ac_ext
18131 LD_LIBRARY_PATH=$old # restore
18134 if test "$tmp_compiler_works" = "yes"; then
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18137 $as_echo "yes" >&6; }
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18139 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18144 $as_echo "no" >&6; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18146 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18147 CPPFLAGS="$tmp_save_CPPFLAGS"
18148 CFLAGS="$tmp_save_CFLAGS"
18157 if test "$compiler_id" = "INTEL_UNIX_C"; then
18159 if test "$compiler_num" -ge "1000"; then
18160 CFLAGS="$CFLAGS -shared-intel"
18161 elif test "$compiler_num" -ge "900"; then
18162 CFLAGS="$CFLAGS -i-dynamic"
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18169 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18171 /* end confdefs.h. */
18178 force compilation error
18185 if ac_fn_c_try_compile "$LINENO"; then :
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18188 $as_echo "no" >&6; }
18189 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18194 $as_echo "yes" >&6; }
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18201 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18203 /* end confdefs.h. */
18206 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18218 if ac_fn_c_try_compile "$LINENO"; then :
18220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18221 $as_echo "no" >&6; }
18222 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18227 $as_echo "yes" >&6; }
18230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18234 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18236 /* end confdefs.h. */
18239 # include <stdlib.h>
18253 int j = rand(i[0]);
18262 if ac_fn_c_try_compile "$LINENO"; then :
18264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18265 $as_echo "no" >&6; }
18266 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18271 $as_echo "yes" >&6; }
18274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18278 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18279 supports_symbol_hiding="no"
18280 symbol_hiding_CFLAGS=""
18281 symbol_hiding_EXTERN=""
18284 case "$compiler_id" in
18286 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18287 tmp_CFLAGS="-fvisibility=hidden"
18288 supports_symbol_hiding="yes"
18291 if test "$compiler_num" -ge "304"; then
18292 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18293 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18294 tmp_CFLAGS="-fvisibility=hidden"
18295 supports_symbol_hiding="yes"
18300 if test "$compiler_num" -ge "900"; then
18301 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18302 tmp_save_CFLAGS="$CFLAGS"
18303 CFLAGS="$CFLAGS -fvisibility=hidden"
18304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18305 /* end confdefs.h. */
18308 # include <stdio.h>
18313 printf("icc fvisibility bug test");
18320 if ac_fn_c_try_link "$LINENO"; then :
18322 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18323 tmp_CFLAGS="-fvisibility=hidden"
18324 supports_symbol_hiding="yes"
18327 rm -f core conftest.err conftest.$ac_objext \
18328 conftest$ac_exeext conftest.$ac_ext
18329 CFLAGS="$tmp_save_CFLAGS"
18334 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18335 tmp_EXTERN="__global"
18336 tmp_CFLAGS="-xldscope=hidden"
18337 supports_symbol_hiding="yes"
18341 if test "$supports_symbol_hiding" = "yes"; then
18342 tmp_save_CFLAGS="$CFLAGS"
18343 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18346 /* end confdefs.h. */
18349 $tmp_EXTERN char *dummy(char *buff);
18350 char *dummy(char *buff)
18362 char *r = dummy(&b[0]);
18371 if ac_fn_c_try_compile "$LINENO"; then :
18373 supports_symbol_hiding="yes"
18374 if test -f conftest.err; then
18375 grep 'visibility' conftest.err >/dev/null
18376 if test "$?" -eq "0"; then
18377 supports_symbol_hiding="no"
18383 supports_symbol_hiding="no"
18385 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18386 sed 's/^/cc-err: /' conftest.err >&6
18390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18391 CFLAGS="$tmp_save_CFLAGS"
18393 if test "$supports_symbol_hiding" = "yes"; then
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18395 $as_echo "yes" >&6; }
18396 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18397 symbol_hiding_EXTERN="$tmp_EXTERN"
18399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18400 $as_echo "no" >&6; }
18405 supports_curldebug="unknown"
18406 if test "$want_curldebug" = "yes"; then
18407 if test "x$enable_shared" != "xno" &&
18408 test "x$enable_shared" != "xyes"; then
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18410 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18411 supports_curldebug="no"
18413 if test "x$enable_static" != "xno" &&
18414 test "x$enable_static" != "xyes"; then
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18416 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18417 supports_curldebug="no"
18419 if test "$supports_curldebug" != "no"; then
18420 if test "$enable_shared" = "yes" &&
18421 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18422 supports_curldebug="no"
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18424 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18429 if test "$want_curldebug" = "yes"; then
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18431 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18432 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18434 $as_echo "$supports_curldebug" >&6; }
18435 if test "$supports_curldebug" = "no"; then
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18437 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18438 want_curldebug="no"
18442 if test x$want_curldebug = xyes; then
18444 CURLDEBUG_FALSE='#'
18451 supports_unittests=yes
18452 # cross-compilation of unit tests static library/programs fails when
18453 # libcurl shared library is built. This might be due to a libtool or
18454 # automake issue. In this case we disable unit tests.
18455 if test "x$cross_compiling" != "xno" &&
18456 test "x$enable_shared" != "xno"; then
18457 supports_unittests=no
18460 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18461 # a problem related with OpenSSL headers and library versions not matching.
18462 # Disable unit tests while time to further investigate this is found.
18465 if test "$compiler_id" = "GNU_C"; then
18466 supports_unittests=no
18471 # All AIX autobuilds fails unit tests linking against unittests library
18472 # due to unittests library being built with no symbols or members. Libtool ?
18473 # Disable unit tests while time to further investigate this is found.
18476 supports_unittests=no
18480 if test "x$want_debug" = "xyes" &&
18481 test "x$supports_unittests" = "xyes"; then
18486 if test x$want_unittests = xyes; then
18487 BUILD_UNITTESTS_TRUE=
18488 BUILD_UNITTESTS_FALSE='#'
18490 BUILD_UNITTESTS_TRUE='#'
18491 BUILD_UNITTESTS_FALSE=
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18499 $as_echo_n "checking for windows.h... " >&6; }
18500 if ${curl_cv_header_windows_h+:} false; then :
18501 $as_echo_n "(cached) " >&6
18504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18505 /* end confdefs.h. */
18509 #ifndef WIN32_LEAN_AND_MEAN
18510 #define WIN32_LEAN_AND_MEAN
18512 #include <windows.h>
18517 #if defined(__CYGWIN__) || defined(__CEGCC__)
18518 HAVE_WINDOWS_H shall not be defined.
18520 int dummy=2*WINVER;
18528 if ac_fn_c_try_compile "$LINENO"; then :
18530 curl_cv_header_windows_h="yes"
18534 curl_cv_header_windows_h="no"
18537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18541 $as_echo "$curl_cv_header_windows_h" >&6; }
18542 case "$curl_cv_header_windows_h" in
18545 cat >>confdefs.h <<_ACEOF
18546 #define HAVE_WINDOWS_H 1
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18554 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18555 if ${curl_cv_native_windows+:} false; then :
18556 $as_echo_n "(cached) " >&6
18559 if test "$curl_cv_header_windows_h" = "no"; then
18560 curl_cv_native_windows="no"
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18570 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18571 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18574 Not a native Windows build target.
18582 if ac_fn_c_try_compile "$LINENO"; then :
18584 curl_cv_native_windows="yes"
18588 curl_cv_native_windows="no"
18591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18596 $as_echo "$curl_cv_native_windows" >&6; }
18597 if test "x$curl_cv_native_windows" = xyes; then
18598 DOING_NATIVE_WINDOWS_TRUE=
18599 DOING_NATIVE_WINDOWS_FALSE='#'
18601 DOING_NATIVE_WINDOWS_TRUE='#'
18602 DOING_NATIVE_WINDOWS_FALSE=
18606 case X-"$curl_cv_native_windows" in
18609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18610 $as_echo_n "checking for winsock.h... " >&6; }
18611 if ${curl_cv_header_winsock_h+:} false; then :
18612 $as_echo_n "(cached) " >&6
18615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18616 /* end confdefs.h. */
18620 #ifndef WIN32_LEAN_AND_MEAN
18621 #define WIN32_LEAN_AND_MEAN
18623 #include <windows.h>
18624 #include <winsock.h>
18629 #if defined(__CYGWIN__) || defined(__CEGCC__)
18630 HAVE_WINSOCK_H shall not be defined.
18632 int dummy=WSACleanup();
18640 if ac_fn_c_try_compile "$LINENO"; then :
18642 curl_cv_header_winsock_h="yes"
18646 curl_cv_header_winsock_h="no"
18649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18653 $as_echo "$curl_cv_header_winsock_h" >&6; }
18654 case "$curl_cv_header_winsock_h" in
18657 cat >>confdefs.h <<_ACEOF
18658 #define HAVE_WINSOCK_H 1
18665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18666 $as_echo_n "checking for winsock2.h... " >&6; }
18667 if ${curl_cv_header_winsock2_h+:} false; then :
18668 $as_echo_n "(cached) " >&6
18671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18672 /* end confdefs.h. */
18676 #ifndef WIN32_LEAN_AND_MEAN
18677 #define WIN32_LEAN_AND_MEAN
18679 #include <windows.h>
18680 #include <winsock2.h>
18685 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18686 HAVE_WINSOCK2_H shall not be defined.
18688 int dummy=2*IPPROTO_ESP;
18696 if ac_fn_c_try_compile "$LINENO"; then :
18698 curl_cv_header_winsock2_h="yes"
18702 curl_cv_header_winsock2_h="no"
18705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18709 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18710 case "$curl_cv_header_winsock2_h" in
18713 cat >>confdefs.h <<_ACEOF
18714 #define HAVE_WINSOCK2_H 1
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18722 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18723 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18724 $as_echo_n "(cached) " >&6
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18732 #ifndef WIN32_LEAN_AND_MEAN
18733 #define WIN32_LEAN_AND_MEAN
18735 #include <windows.h>
18736 #include <winsock2.h>
18737 #include <ws2tcpip.h>
18742 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18743 HAVE_WS2TCPIP_H shall not be defined.
18745 int dummy=2*IP_PKTINFO;
18753 if ac_fn_c_try_compile "$LINENO"; then :
18755 curl_cv_header_ws2tcpip_h="yes"
18759 curl_cv_header_ws2tcpip_h="no"
18762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18766 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18767 case "$curl_cv_header_ws2tcpip_h" in
18770 cat >>confdefs.h <<_ACEOF
18771 #define HAVE_WS2TCPIP_H 1
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18779 $as_echo_n "checking for winldap.h... " >&6; }
18780 if ${curl_cv_header_winldap_h+:} false; then :
18781 $as_echo_n "(cached) " >&6
18784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18785 /* end confdefs.h. */
18789 #ifdef HAVE_WINDOWS_H
18790 #ifndef WIN32_LEAN_AND_MEAN
18791 #define WIN32_LEAN_AND_MEAN
18793 #include <windows.h>
18795 #include <winldap.h>
18800 #if defined(__CYGWIN__) || defined(__CEGCC__)
18801 HAVE_WINLDAP_H shall not be defined.
18803 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18804 ULONG res = ldap_unbind(ldp);
18812 if ac_fn_c_try_compile "$LINENO"; then :
18814 curl_cv_header_winldap_h="yes"
18818 curl_cv_header_winldap_h="no"
18821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18825 $as_echo "$curl_cv_header_winldap_h" >&6; }
18826 case "$curl_cv_header_winldap_h" in
18829 cat >>confdefs.h <<_ACEOF
18830 #define HAVE_WINLDAP_H 1
18837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18838 $as_echo_n "checking for winber.h... " >&6; }
18839 if ${curl_cv_header_winber_h+:} false; then :
18840 $as_echo_n "(cached) " >&6
18843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18844 /* end confdefs.h. */
18848 #ifdef HAVE_WINDOWS_H
18849 #ifndef WIN32_LEAN_AND_MEAN
18850 #define WIN32_LEAN_AND_MEAN
18852 #include <windows.h>
18854 #include <winldap.h>
18855 #include <winber.h>
18860 #if defined(__CYGWIN__) || defined(__CEGCC__)
18861 HAVE_WINBER_H shall not be defined.
18863 BERVAL *bvp = NULL;
18864 BerElement *bep = ber_init(bvp);
18873 if ac_fn_c_try_compile "$LINENO"; then :
18875 curl_cv_header_winber_h="yes"
18879 curl_cv_header_winber_h="no"
18882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
18886 $as_echo "$curl_cv_header_winber_h" >&6; }
18887 case "$curl_cv_header_winber_h" in
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_WINBER_H 1
18899 curl_cv_header_winsock_h="no"
18900 curl_cv_header_winsock2_h="no"
18901 curl_cv_header_ws2tcpip_h="no"
18902 curl_cv_header_winldap_h="no"
18903 curl_cv_header_winber_h="no"
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18908 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18909 curl_win32_file_api="no"
18910 if test "$curl_cv_header_windows_h" = "yes"; then
18911 if test x"$enable_largefile" != "xno"; then
18912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18913 /* end confdefs.h. */
18920 #if !defined(_WIN32_WCE) && \
18921 (defined(__MINGW32__) || \
18922 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18925 WIN32 large file API not supported.
18933 if ac_fn_c_try_compile "$LINENO"; then :
18935 curl_win32_file_api="win32_large_files"
18938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18940 if test "$curl_win32_file_api" = "no"; then
18941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18942 /* end confdefs.h. */
18949 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18952 WIN32 small file API not supported.
18960 if ac_fn_c_try_compile "$LINENO"; then :
18962 curl_win32_file_api="win32_small_files"
18965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18968 case "$curl_win32_file_api" in
18970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18971 $as_echo "yes (large file enabled)" >&6; }
18973 cat >>confdefs.h <<_ACEOF
18974 #define USE_WIN32_LARGE_FILES 1
18979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18980 $as_echo "yes (large file disabled)" >&6; }
18982 cat >>confdefs.h <<_ACEOF
18983 #define USE_WIN32_SMALL_FILES 1
18988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18989 $as_echo "no" >&6; }
19003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19004 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19006 $as_echo "$tst_cflags" >&6; };
19008 if test "$tst_cflags" = "yes"; then
19009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19010 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19012 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19013 min="-mmacosx-version-min=10.8"
19014 CFLAGS="$CFLAGS $min"
19016 if test -z "$min"; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19018 $as_echo "set by user" >&6; }
19020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19021 $as_echo "$min set" >&6; }
19025 CFLAGS="$CFLAGS -Werror=partial-availability"
19026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19027 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19038 if ac_fn_c_try_compile "$LINENO"; then :
19039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19040 $as_echo "yes" >&6; }
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19043 $as_echo "no" >&6; }
19046 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19052 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19054 /* end confdefs.h. */
19057 #include <stdlib.h>
19062 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19069 if ac_fn_c_try_compile "$LINENO"; then :
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19072 $as_echo "yes" >&6; }
19074 cat >>confdefs.h <<_ACEOF
19075 #define HAVE_BUILTIN_AVAILABLE 1
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19082 $as_echo "no" >&6; }
19085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19090 $as_echo_n "checking whether to support http... " >&6; }
19091 # Check whether --enable-http was given.
19092 if test "${enable_http+set}" = set; then :
19093 enableval=$enable_http; case "$enableval" in
19095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19096 $as_echo "no" >&6; }
19098 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19102 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19103 CURL_DISABLE_HTTP=1
19106 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19108 CURL_DISABLE_RTSP=1
19111 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19112 $as_echo "yes" >&6; }
19116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19117 $as_echo "yes" >&6; }
19121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19122 $as_echo_n "checking whether to support ftp... " >&6; }
19123 # Check whether --enable-ftp was given.
19124 if test "${enable_ftp+set}" = set; then :
19125 enableval=$enable_ftp; case "$enableval" in
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19128 $as_echo "no" >&6; }
19130 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19135 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19136 $as_echo "yes" >&6; }
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19141 $as_echo "yes" >&6; }
19145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19146 $as_echo_n "checking whether to support file... " >&6; }
19147 # Check whether --enable-file was given.
19148 if test "${enable_file+set}" = set; then :
19149 enableval=$enable_file; case "$enableval" in
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19152 $as_echo "no" >&6; }
19154 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19156 CURL_DISABLE_FILE=1
19159 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19160 $as_echo "yes" >&6; }
19164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19165 $as_echo "yes" >&6; }
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19170 $as_echo_n "checking whether to support ldap... " >&6; }
19171 # Check whether --enable-ldap was given.
19172 if test "${enable_ldap+set}" = set; then :
19173 enableval=$enable_ldap; case "$enableval" in
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19176 $as_echo "no" >&6; }
19178 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19180 CURL_DISABLE_LDAP=1
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19185 $as_echo "yes" >&6; }
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19191 $as_echo "yes" >&6; }
19195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19196 $as_echo_n "checking whether to support ldaps... " >&6; }
19197 # Check whether --enable-ldaps was given.
19198 if test "${enable_ldaps+set}" = set; then :
19199 enableval=$enable_ldaps; case "$enableval" in
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19202 $as_echo "no" >&6; }
19204 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19206 CURL_DISABLE_LDAPS=1
19209 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19211 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19213 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19215 CURL_DISABLE_LDAPS=1
19218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19219 $as_echo "yes" >&6; }
19221 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19230 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19232 $as_echo "no" >&6; }
19234 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19236 CURL_DISABLE_LDAPS=1
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19240 $as_echo "yes" >&6; }
19242 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19252 $as_echo_n "checking whether to support rtsp... " >&6; }
19253 # Check whether --enable-rtsp was given.
19254 if test "${enable_rtsp+set}" = set; then :
19255 enableval=$enable_rtsp; case "$enableval" in
19257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19258 $as_echo "no" >&6; }
19260 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19262 CURL_DISABLE_RTSP=1
19265 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19266 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19269 $as_echo "yes" >&6; }
19270 curl_rtsp_msg="enabled"
19275 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19277 $as_echo "yes" >&6; }
19278 curl_rtsp_msg="enabled"
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19281 $as_echo "no" >&6; }
19287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19288 $as_echo_n "checking whether to support proxies... " >&6; }
19289 # Check whether --enable-proxy was given.
19290 if test "${enable_proxy+set}" = set; then :
19291 enableval=$enable_proxy; case "$enableval" in
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19294 $as_echo "no" >&6; }
19296 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19298 CURL_DISABLE_PROXY=1
19301 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19302 $as_echo "yes" >&6; }
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19307 $as_echo "yes" >&6; }
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19313 $as_echo_n "checking whether to support dict... " >&6; }
19314 # Check whether --enable-dict was given.
19315 if test "${enable_dict+set}" = set; then :
19316 enableval=$enable_dict; case "$enableval" in
19318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19319 $as_echo "no" >&6; }
19321 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19323 CURL_DISABLE_DICT=1
19326 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19327 $as_echo "yes" >&6; }
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19332 $as_echo "yes" >&6; }
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19337 $as_echo_n "checking whether to support telnet... " >&6; }
19338 # Check whether --enable-telnet was given.
19339 if test "${enable_telnet+set}" = set; then :
19340 enableval=$enable_telnet; case "$enableval" in
19342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19343 $as_echo "no" >&6; }
19345 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19347 CURL_DISABLE_TELNET=1
19350 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19351 $as_echo "yes" >&6; }
19355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19356 $as_echo "yes" >&6; }
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19361 $as_echo_n "checking whether to support tftp... " >&6; }
19362 # Check whether --enable-tftp was given.
19363 if test "${enable_tftp+set}" = set; then :
19364 enableval=$enable_tftp; case "$enableval" in
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19369 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19371 CURL_DISABLE_TFTP=1
19374 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19375 $as_echo "yes" >&6; }
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19380 $as_echo "yes" >&6; }
19385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19386 $as_echo_n "checking whether to support pop3... " >&6; }
19387 # Check whether --enable-pop3 was given.
19388 if test "${enable_pop3+set}" = set; then :
19389 enableval=$enable_pop3; case "$enableval" in
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19392 $as_echo "no" >&6; }
19394 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19396 CURL_DISABLE_POP3=1
19399 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19400 $as_echo "yes" >&6; }
19404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19405 $as_echo "yes" >&6; }
19411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19412 $as_echo_n "checking whether to support imap... " >&6; }
19413 # Check whether --enable-imap was given.
19414 if test "${enable_imap+set}" = set; then :
19415 enableval=$enable_imap; case "$enableval" in
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19418 $as_echo "no" >&6; }
19420 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19422 CURL_DISABLE_IMAP=1
19425 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19426 $as_echo "yes" >&6; }
19430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19431 $as_echo "yes" >&6; }
19437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19438 $as_echo_n "checking whether to support smb... " >&6; }
19439 # Check whether --enable-smb was given.
19440 if test "${enable_smb+set}" = set; then :
19441 enableval=$enable_smb; case "$enableval" in
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19444 $as_echo "no" >&6; }
19446 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19451 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19452 $as_echo "yes" >&6; }
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19457 $as_echo "yes" >&6; }
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19463 $as_echo_n "checking whether to support smtp... " >&6; }
19464 # Check whether --enable-smtp was given.
19465 if test "${enable_smtp+set}" = set; then :
19466 enableval=$enable_smtp; case "$enableval" in
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19469 $as_echo "no" >&6; }
19471 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19473 CURL_DISABLE_SMTP=1
19476 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19477 $as_echo "yes" >&6; }
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19482 $as_echo "yes" >&6; }
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19488 $as_echo_n "checking whether to support gopher... " >&6; }
19489 # Check whether --enable-gopher was given.
19490 if test "${enable_gopher+set}" = set; then :
19491 enableval=$enable_gopher; case "$enableval" in
19493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19494 $as_echo "no" >&6; }
19496 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19498 CURL_DISABLE_GOPHER=1
19501 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19502 $as_echo "yes" >&6; }
19506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19507 $as_echo "yes" >&6; }
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19515 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19516 # Check whether --enable-manual was given.
19517 if test "${enable_manual+set}" = set; then :
19518 enableval=$enable_manual; case "$enableval" in
19520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19521 $as_echo "no" >&6; }
19523 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19524 $as_echo "yes" >&6; }
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19530 $as_echo "yes" >&6; }
19536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19537 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19538 # Check whether --enable-libcurl_option was given.
19539 if test "${enable_libcurl_option+set}" = set; then :
19540 enableval=$enable_libcurl_option; case "$enableval" in
19542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19543 $as_echo "no" >&6; }
19545 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19547 curl_libcurl_msg="no"
19549 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19550 $as_echo "yes" >&6; }
19554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19555 $as_echo "yes" >&6; }
19561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19562 $as_echo_n "checking whether to use libgcc... " >&6; }
19563 # Check whether --enable-libgcc was given.
19564 if test "${enable_libgcc+set}" = set; then :
19565 enableval=$enable_libgcc; case "$enableval" in
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19569 $as_echo "yes" >&6; }
19571 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19572 $as_echo "no" >&6; }
19576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19577 $as_echo "no" >&6; }
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19584 $as_echo_n "checking if X/Open network library is required... " >&6; }
19585 tst_lib_xnet_required="no"
19586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19587 /* end confdefs.h. */
19592 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19594 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19597 force compilation error
19603 if ac_fn_c_try_compile "$LINENO"; then :
19605 tst_lib_xnet_required="yes"
19606 LIBS="-lxnet $LIBS"
19609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19611 $as_echo "$tst_lib_xnet_required" >&6; }
19614 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19615 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19616 HAVE_GETHOSTBYNAME="1"
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19620 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19621 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19622 $as_echo_n "(cached) " >&6
19624 ac_check_lib_save_LIBS=$LIBS
19626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19627 /* end confdefs.h. */
19633 char gethostbyname ();
19636 return gethostbyname ();
19641 if ac_fn_c_try_link "$LINENO"; then :
19642 ac_cv_lib_nsl_gethostbyname=yes
19644 ac_cv_lib_nsl_gethostbyname=no
19646 rm -f core conftest.err conftest.$ac_objext \
19647 conftest$ac_exeext conftest.$ac_ext
19648 LIBS=$ac_check_lib_save_LIBS
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19651 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19652 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19653 HAVE_GETHOSTBYNAME="1"
19662 if test "$HAVE_GETHOSTBYNAME" != "1"
19664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19665 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19666 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19667 $as_echo_n "(cached) " >&6
19669 ac_check_lib_save_LIBS=$LIBS
19670 LIBS="-lsocket $LIBS"
19671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19672 /* end confdefs.h. */
19678 char gethostbyname ();
19681 return gethostbyname ();
19686 if ac_fn_c_try_link "$LINENO"; then :
19687 ac_cv_lib_socket_gethostbyname=yes
19689 ac_cv_lib_socket_gethostbyname=no
19691 rm -f core conftest.err conftest.$ac_objext \
19692 conftest$ac_exeext conftest.$ac_ext
19693 LIBS=$ac_check_lib_save_LIBS
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19696 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19697 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19698 HAVE_GETHOSTBYNAME="1"
19699 LIBS="-lsocket $LIBS"
19705 if test "$HAVE_GETHOSTBYNAME" != "1"
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19708 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19709 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19710 $as_echo_n "(cached) " >&6
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lwatt $LIBS"
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19721 char gethostbyname ();
19724 return gethostbyname ();
19729 if ac_fn_c_try_link "$LINENO"; then :
19730 ac_cv_lib_watt_gethostbyname=yes
19732 ac_cv_lib_watt_gethostbyname=no
19734 rm -f core conftest.err conftest.$ac_objext \
19735 conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19739 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19740 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19741 HAVE_GETHOSTBYNAME="1"
19742 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19743 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19744 LIBS="-lwatt $LIBS"
19750 if test "$HAVE_GETHOSTBYNAME" != "1"
19752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19753 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19754 my_ac_save_LIBS=$LIBS
19755 LIBS="-lnsl -lsocket $LIBS"
19756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19757 /* end confdefs.h. */
19771 if ac_fn_c_try_link "$LINENO"; then :
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19774 $as_echo "yes" >&6; }
19775 HAVE_GETHOSTBYNAME="1"
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19780 $as_echo "no" >&6; }
19781 LIBS=$my_ac_save_LIBS
19784 rm -f core conftest.err conftest.$ac_objext \
19785 conftest$ac_exeext conftest.$ac_ext
19788 if test "$HAVE_GETHOSTBYNAME" != "1"
19790 if test "$curl_cv_header_windows_h" = "yes"; then
19791 if test "$curl_cv_header_winsock_h" = "yes"; then
19794 winsock_LIB="-lwinsock"
19797 winsock_LIB="-lwsock32"
19801 if test "$curl_cv_header_winsock2_h" = "yes"; then
19802 winsock_LIB="-lws2_32"
19804 if test ! -z "$winsock_LIB"; then
19805 my_ac_save_LIBS=$LIBS
19806 LIBS="$winsock_LIB $LIBS"
19807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19808 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19810 /* end confdefs.h. */
19813 #ifdef HAVE_WINDOWS_H
19814 #ifndef WIN32_LEAN_AND_MEAN
19815 #define WIN32_LEAN_AND_MEAN
19817 #include <windows.h>
19818 #ifdef HAVE_WINSOCK2_H
19819 #include <winsock2.h>
19821 #ifdef HAVE_WINSOCK_H
19822 #include <winsock.h>
19830 gethostbyname("www.dummysite.com");
19837 if ac_fn_c_try_link "$LINENO"; then :
19839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19840 $as_echo "yes" >&6; }
19841 HAVE_GETHOSTBYNAME="1"
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19846 $as_echo "no" >&6; }
19848 LIBS=$my_ac_save_LIBS
19851 rm -f core conftest.err conftest.$ac_objext \
19852 conftest$ac_exeext conftest.$ac_ext
19857 if test "$HAVE_GETHOSTBYNAME" != "1"
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19860 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19862 /* end confdefs.h. */
19865 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19871 gethostbyname("www.dummysite.com");
19878 if ac_fn_c_try_link "$LINENO"; then :
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19881 $as_echo "yes" >&6; }
19882 HAVE_GETHOSTBYNAME="1"
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 $as_echo "no" >&6; }
19890 rm -f core conftest.err conftest.$ac_objext \
19891 conftest$ac_exeext conftest.$ac_ext
19894 if test "$HAVE_GETHOSTBYNAME" != "1"
19896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19897 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19899 /* end confdefs.h. */
19908 gethostbyname("www.dummysite.com");
19915 if ac_fn_c_try_link "$LINENO"; then :
19917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19918 $as_echo "yes" >&6; }
19919 HAVE_GETHOSTBYNAME="1"
19923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19924 $as_echo "no" >&6; }
19927 rm -f core conftest.err conftest.$ac_objext \
19928 conftest$ac_exeext conftest.$ac_ext
19931 if test "$HAVE_GETHOSTBYNAME" != "1"
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
19934 $as_echo_n "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
19935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19936 /* end confdefs.h. */
19939 #include <proto/bsdsocket.h>
19940 struct Library *SocketBase = NULL;
19945 gethostbyname("www.dummysite.com");
19952 if ac_fn_c_try_link "$LINENO"; then :
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19955 $as_echo "yes" >&6; }
19956 HAVE_GETHOSTBYNAME="1"
19957 HAVE_PROTO_BSDSOCKET_H="1"
19959 $as_echo "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
19961 HAVE_PROTO_BSDSOCKET_H=1
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19967 $as_echo "no" >&6; }
19970 rm -f core conftest.err conftest.$ac_objext \
19971 conftest$ac_exeext conftest.$ac_ext
19974 if test "$HAVE_GETHOSTBYNAME" != "1"
19976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19977 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19978 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19979 $as_echo_n "(cached) " >&6
19981 ac_check_lib_save_LIBS=$LIBS
19982 LIBS="-lnetwork $LIBS"
19983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19984 /* end confdefs.h. */
19990 char gethostbyname ();
19993 return gethostbyname ();
19998 if ac_fn_c_try_link "$LINENO"; then :
19999 ac_cv_lib_network_gethostbyname=yes
20001 ac_cv_lib_network_gethostbyname=no
20003 rm -f core conftest.err conftest.$ac_objext \
20004 conftest$ac_exeext conftest.$ac_ext
20005 LIBS=$ac_check_lib_save_LIBS
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20008 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20009 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20010 HAVE_GETHOSTBYNAME="1"
20011 LIBS="-lnetwork $LIBS"
20017 if test "$HAVE_GETHOSTBYNAME" != "1"
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20020 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20021 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20022 $as_echo_n "(cached) " >&6
20024 ac_check_lib_save_LIBS=$LIBS
20026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20027 /* end confdefs.h. */
20033 char gethostbyname ();
20036 return gethostbyname ();
20041 if ac_fn_c_try_link "$LINENO"; then :
20042 ac_cv_lib_net_gethostbyname=yes
20044 ac_cv_lib_net_gethostbyname=no
20046 rm -f core conftest.err conftest.$ac_objext \
20047 conftest$ac_exeext conftest.$ac_ext
20048 LIBS=$ac_check_lib_save_LIBS
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20051 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20052 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20053 HAVE_GETHOSTBYNAME="1"
20061 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20062 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20066 curl_includes_winsock2="\
20067 /* includes start */
20068 #ifdef HAVE_WINDOWS_H
20069 # ifndef WIN32_LEAN_AND_MEAN
20070 # define WIN32_LEAN_AND_MEAN
20072 # include <windows.h>
20073 # ifdef HAVE_WINSOCK2_H
20074 # include <winsock2.h>
20076 # ifdef HAVE_WINSOCK_H
20077 # include <winsock.h>
20081 /* includes end */"
20083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20084 $as_echo_n "checking for windows.h... " >&6; }
20085 if ${curl_cv_header_windows_h+:} false; then :
20086 $as_echo_n "(cached) " >&6
20089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20090 /* end confdefs.h. */
20094 #ifndef WIN32_LEAN_AND_MEAN
20095 #define WIN32_LEAN_AND_MEAN
20097 #include <windows.h>
20102 #if defined(__CYGWIN__) || defined(__CEGCC__)
20103 HAVE_WINDOWS_H shall not be defined.
20105 int dummy=2*WINVER;
20113 if ac_fn_c_try_compile "$LINENO"; then :
20115 curl_cv_header_windows_h="yes"
20119 curl_cv_header_windows_h="no"
20122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20126 $as_echo "$curl_cv_header_windows_h" >&6; }
20127 case "$curl_cv_header_windows_h" in
20130 cat >>confdefs.h <<_ACEOF
20131 #define HAVE_WINDOWS_H 1
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20139 $as_echo_n "checking for winsock.h... " >&6; }
20140 if ${curl_cv_header_winsock_h+:} false; then :
20141 $as_echo_n "(cached) " >&6
20144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20145 /* end confdefs.h. */
20149 #ifndef WIN32_LEAN_AND_MEAN
20150 #define WIN32_LEAN_AND_MEAN
20152 #include <windows.h>
20153 #include <winsock.h>
20158 #if defined(__CYGWIN__) || defined(__CEGCC__)
20159 HAVE_WINSOCK_H shall not be defined.
20161 int dummy=WSACleanup();
20169 if ac_fn_c_try_compile "$LINENO"; then :
20171 curl_cv_header_winsock_h="yes"
20175 curl_cv_header_winsock_h="no"
20178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20182 $as_echo "$curl_cv_header_winsock_h" >&6; }
20183 case "$curl_cv_header_winsock_h" in
20186 cat >>confdefs.h <<_ACEOF
20187 #define HAVE_WINSOCK_H 1
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20195 $as_echo_n "checking for winsock2.h... " >&6; }
20196 if ${curl_cv_header_winsock2_h+:} false; then :
20197 $as_echo_n "(cached) " >&6
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20205 #ifndef WIN32_LEAN_AND_MEAN
20206 #define WIN32_LEAN_AND_MEAN
20208 #include <windows.h>
20209 #include <winsock2.h>
20214 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20215 HAVE_WINSOCK2_H shall not be defined.
20217 int dummy=2*IPPROTO_ESP;
20225 if ac_fn_c_try_compile "$LINENO"; then :
20227 curl_cv_header_winsock2_h="yes"
20231 curl_cv_header_winsock2_h="no"
20234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20238 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20239 case "$curl_cv_header_winsock2_h" in
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_WINSOCK2_H 1
20251 curl_includes_bsdsocket="\
20252 /* includes start */
20253 #ifdef HAVE_PROTO_BSDSOCKET_H
20254 # include <proto/bsdsocket.h>
20255 struct Library *SocketBase = NULL;
20257 /* includes end */"
20258 for ac_header in proto/bsdsocket.h
20260 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" " $curl_includes_bsdsocket
20262 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes; then :
20263 cat >>confdefs.h <<_ACEOF
20264 #define HAVE_PROTO_BSDSOCKET_H 1
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20274 $as_echo_n "checking for connect in libraries... " >&6; }
20275 tst_connect_save_LIBS="$LIBS"
20276 tst_connect_need_LIBS="unknown"
20277 for tst_lib in '' '-lsocket' ; do
20278 if test "$tst_connect_need_LIBS" = "unknown"; then
20279 LIBS="$tst_lib $tst_connect_save_LIBS"
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20284 $curl_includes_winsock2
20285 $curl_includes_bsdsocket
20286 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
20287 int connect(int, void*, int);
20293 if(0 != connect(0, 0, 0))
20301 if ac_fn_c_try_link "$LINENO"; then :
20303 tst_connect_need_LIBS="$tst_lib"
20306 rm -f core conftest.err conftest.$ac_objext \
20307 conftest$ac_exeext conftest.$ac_ext
20310 LIBS="$tst_connect_save_LIBS"
20312 case X-"$tst_connect_need_LIBS" in
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20315 $as_echo "cannot find connect" >&6; }
20316 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20320 $as_echo "yes" >&6; }
20323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20324 $as_echo "$tst_connect_need_LIBS" >&6; }
20325 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20330 CURL_NETWORK_LIBS=$LIBS
20332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20333 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20334 if ${ac_cv_header_time+:} false; then :
20335 $as_echo_n "(cached) " >&6
20337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338 /* end confdefs.h. */
20339 #include <sys/types.h>
20340 #include <sys/time.h>
20345 if ((struct tm *) 0)
20351 if ac_fn_c_try_compile "$LINENO"; then :
20352 ac_cv_header_time=yes
20354 ac_cv_header_time=no
20356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20359 $as_echo "$ac_cv_header_time" >&6; }
20360 if test $ac_cv_header_time = yes; then
20362 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20367 for ac_header in sys/types.h sys/time.h time.h
20369 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20370 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20371 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20372 cat >>confdefs.h <<_ACEOF
20373 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20381 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20383 if test "x$dontwant_rt" = "xno" ; then
20384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h. */
20388 #ifdef HAVE_SYS_TYPES_H
20389 #include <sys/types.h>
20391 #ifdef HAVE_SYS_TIME_H
20392 #include <sys/time.h>
20393 #ifdef TIME_WITH_SYS_TIME
20405 struct timespec ts;
20406 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20413 if ac_fn_c_try_compile "$LINENO"; then :
20415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20416 $as_echo "yes" >&6; }
20417 curl_func_clock_gettime="yes"
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20422 $as_echo "no" >&6; }
20423 curl_func_clock_gettime="no"
20426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20431 if test "$curl_func_clock_gettime" = "yes"; then
20433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20434 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20436 curl_cv_save_LIBS="$LIBS"
20437 curl_cv_gclk_LIBS="unknown"
20439 for x_xlibs in '' '-lrt' '-lposix4' ; do
20440 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20441 if test -z "$x_xlibs"; then
20442 LIBS="$curl_cv_save_LIBS"
20444 LIBS="$x_xlibs $curl_cv_save_LIBS"
20446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20447 /* end confdefs.h. */
20450 #ifdef HAVE_SYS_TYPES_H
20451 #include <sys/types.h>
20453 #ifdef HAVE_SYS_TIME_H
20454 #include <sys/time.h>
20455 #ifdef TIME_WITH_SYS_TIME
20467 struct timespec ts;
20468 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20475 if ac_fn_c_try_link "$LINENO"; then :
20477 curl_cv_gclk_LIBS="$x_xlibs"
20480 rm -f core conftest.err conftest.$ac_objext \
20481 conftest$ac_exeext conftest.$ac_ext
20485 LIBS="$curl_cv_save_LIBS"
20487 case X-"$curl_cv_gclk_LIBS" in
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20490 $as_echo "cannot find clock_gettime" >&6; }
20491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20492 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20493 curl_func_clock_gettime="no"
20496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20497 $as_echo "no additional lib required" >&6; }
20498 curl_func_clock_gettime="yes"
20501 if test -z "$curl_cv_save_LIBS"; then
20502 LIBS="$curl_cv_gclk_LIBS"
20504 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20507 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20508 curl_func_clock_gettime="yes"
20512 if test "x$cross_compiling" != "xyes" &&
20513 test "$curl_func_clock_gettime" = "yes"; then
20514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20515 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20518 old=$LD_LIBRARY_PATH
20519 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20520 export LD_LIBRARY_PATH
20521 if test "$cross_compiling" = yes; then :
20522 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20523 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20524 as_fn_error $? "cannot run test program while cross compiling
20525 See \`config.log' for more details" "$LINENO" 5; }
20527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20528 /* end confdefs.h. */
20531 #ifdef HAVE_STDLIB_H
20532 #include <stdlib.h>
20534 #ifdef HAVE_SYS_TYPES_H
20535 #include <sys/types.h>
20537 #ifdef HAVE_SYS_TIME_H
20538 #include <sys/time.h>
20539 #ifdef TIME_WITH_SYS_TIME
20551 struct timespec ts;
20552 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20562 if ac_fn_c_try_run "$LINENO"; then :
20563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20564 $as_echo "yes" >&6; }
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20568 $as_echo "no" >&6; }
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20570 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20571 curl_func_clock_gettime="no"
20572 LIBS="$curl_cv_save_LIBS"
20575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20576 conftest.$ac_objext conftest.beam conftest.$ac_ext
20579 LD_LIBRARY_PATH=$old # restore
20583 case "$curl_func_clock_gettime" in
20586 cat >>confdefs.h <<_ACEOF
20587 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20597 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20601 clean_CPPFLAGS=$CPPFLAGS
20602 clean_LDFLAGS=$LDFLAGS
20606 # Check whether --with-zlib was given.
20607 if test "${with_zlib+set}" = set; then :
20608 withval=$with_zlib; OPT_ZLIB="$withval"
20612 if test "$OPT_ZLIB" = "no" ; then
20613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20614 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20616 if test "$OPT_ZLIB" = "yes" ; then
20620 if test -z "$OPT_ZLIB" ; then
20622 if test -n "$PKG_CONFIG"; then
20623 PKGCONFIG="$PKG_CONFIG"
20625 if test -n "$ac_tool_prefix"; then
20626 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20627 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20629 $as_echo_n "checking for $ac_word... " >&6; }
20630 if ${ac_cv_path_PKGCONFIG+:} false; then :
20631 $as_echo_n "(cached) " >&6
20635 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20639 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20640 for as_dir in $as_dummy
20643 test -z "$as_dir" && as_dir=.
20644 for ac_exec_ext in '' $ac_executable_extensions; do
20645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20646 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20657 PKGCONFIG=$ac_cv_path_PKGCONFIG
20658 if test -n "$PKGCONFIG"; then
20659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20660 $as_echo "$PKGCONFIG" >&6; }
20662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20663 $as_echo "no" >&6; }
20668 if test -z "$ac_cv_path_PKGCONFIG"; then
20669 ac_pt_PKGCONFIG=$PKGCONFIG
20670 # Extract the first word of "pkg-config", so it can be a program name with args.
20671 set dummy pkg-config; ac_word=$2
20672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20673 $as_echo_n "checking for $ac_word... " >&6; }
20674 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20675 $as_echo_n "(cached) " >&6
20677 case $ac_pt_PKGCONFIG in
20679 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20683 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20684 for as_dir in $as_dummy
20687 test -z "$as_dir" && as_dir=.
20688 for ac_exec_ext in '' $ac_executable_extensions; do
20689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20690 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20701 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20702 if test -n "$ac_pt_PKGCONFIG"; then
20703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20704 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20707 $as_echo "no" >&6; }
20710 if test "x$ac_pt_PKGCONFIG" = x; then
20713 case $cross_compiling:$ac_tool_warned in
20715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20716 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20717 ac_tool_warned=yes ;;
20719 PKGCONFIG=$ac_pt_PKGCONFIG
20722 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20727 if test "x$PKGCONFIG" != "xno"; then
20728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20729 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20731 if test -n ""; then
20732 PKG_CONFIG_LIBDIR=""
20733 export PKG_CONFIG_LIBDIR
20735 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20737 if test -z "$itexists"; then
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20743 $as_echo "found" >&6; }
20748 if test "$PKGCONFIG" != "no" ; then
20749 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20750 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20751 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20756 if test -z "$HAVE_LIBZ"; then
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20760 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20761 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20762 $as_echo_n "(cached) " >&6
20764 ac_check_lib_save_LIBS=$LIBS
20766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20767 /* end confdefs.h. */
20773 char inflateEnd ();
20776 return inflateEnd ();
20781 if ac_fn_c_try_link "$LINENO"; then :
20782 ac_cv_lib_z_inflateEnd=yes
20784 ac_cv_lib_z_inflateEnd=no
20786 rm -f core conftest.err conftest.$ac_objext \
20787 conftest$ac_exeext conftest.$ac_ext
20788 LIBS=$ac_check_lib_save_LIBS
20790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20791 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20792 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20796 OPT_ZLIB="/usr/local"
20802 if test -n "$OPT_ZLIB"; then
20803 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20804 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20807 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20808 if test "x$ac_cv_header_zlib_h" = xyes; then :
20811 if test "$HAVE_LIBZ" != "1"; then
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20813 $as_echo_n "checking for gzread in -lz... " >&6; }
20814 if ${ac_cv_lib_z_gzread+:} false; then :
20815 $as_echo_n "(cached) " >&6
20817 ac_check_lib_save_LIBS=$LIBS
20819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20820 /* end confdefs.h. */
20834 if ac_fn_c_try_link "$LINENO"; then :
20835 ac_cv_lib_z_gzread=yes
20837 ac_cv_lib_z_gzread=no
20839 rm -f core conftest.err conftest.$ac_objext \
20840 conftest$ac_exeext conftest.$ac_ext
20841 LIBS=$ac_check_lib_save_LIBS
20843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20844 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20845 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20851 CPPFLAGS=$clean_CPPFLAGS
20852 LDFLAGS=$clean_LDFLAGS
20859 CPPFLAGS=$clean_CPPFLAGS
20860 LDFLAGS=$clean_LDFLAGS
20866 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20869 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20871 CPPFLAGS=$clean_CPPFLAGS
20872 LDFLAGS=$clean_LDFLAGS
20874 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20877 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20878 CPPFLAGS=$clean_CPPFLAGS
20879 LDFLAGS=$clean_LDFLAGS
20881 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20885 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20888 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20892 LIBS="-lz $clean_LIBS"
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20896 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20897 curl_zlib_msg="enabled"
20901 if test x"$AMFIXLIB" = x1; then
20903 HAVE_LIBZ_FALSE='#'
20915 # Check whether --with-brotli was given.
20916 if test "${with_brotli+set}" = set; then :
20917 withval=$with_brotli; OPT_BROTLI=$withval
20921 if test X"$OPT_BROTLI" != Xno; then
20922 CLEANLDFLAGS="$LDFLAGS"
20923 CLEANCPPFLAGS="$CPPFLAGS"
20926 case "$OPT_BROTLI" in
20929 if test -n "$PKG_CONFIG"; then
20930 PKGCONFIG="$PKG_CONFIG"
20932 if test -n "$ac_tool_prefix"; then
20933 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20934 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20936 $as_echo_n "checking for $ac_word... " >&6; }
20937 if ${ac_cv_path_PKGCONFIG+:} false; then :
20938 $as_echo_n "(cached) " >&6
20942 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20946 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20947 for as_dir in $as_dummy
20950 test -z "$as_dir" && as_dir=.
20951 for ac_exec_ext in '' $ac_executable_extensions; do
20952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20953 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20964 PKGCONFIG=$ac_cv_path_PKGCONFIG
20965 if test -n "$PKGCONFIG"; then
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20967 $as_echo "$PKGCONFIG" >&6; }
20969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20970 $as_echo "no" >&6; }
20975 if test -z "$ac_cv_path_PKGCONFIG"; then
20976 ac_pt_PKGCONFIG=$PKGCONFIG
20977 # Extract the first word of "pkg-config", so it can be a program name with args.
20978 set dummy pkg-config; ac_word=$2
20979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20980 $as_echo_n "checking for $ac_word... " >&6; }
20981 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20982 $as_echo_n "(cached) " >&6
20984 case $ac_pt_PKGCONFIG in
20986 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20990 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20991 for as_dir in $as_dummy
20994 test -z "$as_dir" && as_dir=.
20995 for ac_exec_ext in '' $ac_executable_extensions; do
20996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20997 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21008 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21009 if test -n "$ac_pt_PKGCONFIG"; then
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21011 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21014 $as_echo "no" >&6; }
21017 if test "x$ac_pt_PKGCONFIG" = x; then
21020 case $cross_compiling:$ac_tool_warned in
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21023 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21024 ac_tool_warned=yes ;;
21026 PKGCONFIG=$ac_pt_PKGCONFIG
21029 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21034 if test "x$PKGCONFIG" != "xno"; then
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21036 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21038 if test -n ""; then
21039 PKG_CONFIG_LIBDIR=""
21040 export PKG_CONFIG_LIBDIR
21042 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21044 if test -z "$itexists"; then
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047 $as_echo "no" >&6; }
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21050 $as_echo "found" >&6; }
21055 if test "$PKGCONFIG" != "no" ; then
21056 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21057 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21058 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21059 version=`$PKGCONFIG --modversion libbrotlidec`
21060 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21067 PREFIX_BROTLI=$OPT_BROTLI
21071 if test -n "$PREFIX_BROTLI"; then
21072 LIB_BROTLI="-lbrotlidec"
21073 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21074 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21075 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21078 LDFLAGS="$LDFLAGS $LD_BROTLI"
21079 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21080 LIBS="$LIB_BROTLI $LIBS"
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21083 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21084 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21085 $as_echo_n "(cached) " >&6
21087 ac_check_lib_save_LIBS=$LIBS
21088 LIBS="-lbrotlidec $LIBS"
21089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21090 /* end confdefs.h. */
21096 char BrotliDecoderDecompress ();
21099 return BrotliDecoderDecompress ();
21104 if ac_fn_c_try_link "$LINENO"; then :
21105 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21107 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21109 rm -f core conftest.err conftest.$ac_objext \
21110 conftest$ac_exeext conftest.$ac_ext
21111 LIBS=$ac_check_lib_save_LIBS
21113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21114 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21115 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21116 cat >>confdefs.h <<_ACEOF
21117 #define HAVE_LIBBROTLIDEC 1
21120 LIBS="-lbrotlidec $LIBS"
21125 for ac_header in brotli/decode.h
21127 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21128 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21129 cat >>confdefs.h <<_ACEOF
21130 #define HAVE_BROTLI_DECODE_H 1
21132 curl_brotli_msg="enabled (libbrotlidec)"
21135 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21145 if test X"$OPT_BROTLI" != Xoff &&
21146 test "$HAVE_BROTLI" != "1"; then
21147 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21150 if test "$HAVE_BROTLI" = "1"; then
21151 if test -n "$DIR_BROTLI"; then
21153 if test "x$cross_compiling" != "xyes"; then
21154 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
21155 export CURL_LIBRARY_PATH
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
21157 $as_echo "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
21161 LDFLAGS=$CLEANLDFLAGS
21162 CPPFLAGS=$CLEANCPPFLAGS
21170 # Check whether --with-ldap-lib was given.
21171 if test "${with_ldap_lib+set}" = set; then :
21172 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21178 # Check whether --with-lber-lib was given.
21179 if test "${with_lber_lib+set}" = set; then :
21180 withval=$with_lber_lib; LBERLIBNAME="$withval"
21184 if test x$CURL_DISABLE_LDAP != x1 ; then
21187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21188 $as_echo_n "checking for lber.h... " >&6; }
21189 if ${curl_cv_header_lber_h+:} false; then :
21190 $as_echo_n "(cached) " >&6
21193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21194 /* end confdefs.h. */
21198 #ifdef HAVE_WINDOWS_H
21199 #ifndef WIN32_LEAN_AND_MEAN
21200 #define WIN32_LEAN_AND_MEAN
21202 #include <windows.h>
21204 #ifdef HAVE_SYS_TYPES_H
21205 #include <sys/types.h>
21209 #define NULL (void *)0
21216 BerValue *bvp = NULL;
21217 BerElement *bep = ber_init(bvp);
21225 if ac_fn_c_try_compile "$LINENO"; then :
21227 curl_cv_header_lber_h="yes"
21231 curl_cv_header_lber_h="no"
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21238 $as_echo "$curl_cv_header_lber_h" >&6; }
21239 if test "$curl_cv_header_lber_h" = "yes"; then
21241 cat >>confdefs.h <<_ACEOF
21242 #define HAVE_LBER_H 1
21246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21247 /* end confdefs.h. */
21251 #ifdef HAVE_WINDOWS_H
21252 #ifndef WIN32_LEAN_AND_MEAN
21253 #define WIN32_LEAN_AND_MEAN
21255 #include <windows.h>
21257 #ifdef HAVE_SYS_TYPES_H
21258 #include <sys/types.h>
21262 #define NULL (void *)0
21264 #ifndef LDAP_DEPRECATED
21265 #define LDAP_DEPRECATED 1
21272 BerValue *bvp = NULL;
21273 BerElement *bep = ber_init(bvp);
21281 if ac_fn_c_try_compile "$LINENO"; then :
21283 curl_cv_need_header_lber_h="no"
21287 curl_cv_need_header_lber_h="yes"
21290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21292 case "$curl_cv_need_header_lber_h" in
21295 cat >>confdefs.h <<_ACEOF
21296 #define NEED_LBER_H 1
21304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21305 $as_echo_n "checking for ldap.h... " >&6; }
21306 if ${curl_cv_header_ldap_h+:} false; then :
21307 $as_echo_n "(cached) " >&6
21310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21311 /* end confdefs.h. */
21315 #ifdef HAVE_WINDOWS_H
21316 #ifndef WIN32_LEAN_AND_MEAN
21317 #define WIN32_LEAN_AND_MEAN
21319 #include <windows.h>
21321 #ifdef HAVE_SYS_TYPES_H
21322 #include <sys/types.h>
21325 #ifndef LDAP_DEPRECATED
21326 #define LDAP_DEPRECATED 1
21336 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21337 int res = ldap_unbind(ldp);
21344 if ac_fn_c_try_compile "$LINENO"; then :
21346 curl_cv_header_ldap_h="yes"
21350 curl_cv_header_ldap_h="no"
21353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21357 $as_echo "$curl_cv_header_ldap_h" >&6; }
21358 case "$curl_cv_header_ldap_h" in
21361 cat >>confdefs.h <<_ACEOF
21362 #define HAVE_LDAP_H 1
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21370 $as_echo_n "checking for ldapssl.h... " >&6; }
21371 if ${curl_cv_header_ldapssl_h+:} false; then :
21372 $as_echo_n "(cached) " >&6
21375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21376 /* end confdefs.h. */
21380 #ifdef HAVE_WINDOWS_H
21381 #ifndef WIN32_LEAN_AND_MEAN
21382 #define WIN32_LEAN_AND_MEAN
21384 #include <windows.h>
21386 #ifdef HAVE_SYS_TYPES_H
21387 #include <sys/types.h>
21391 #define NULL (void *)0
21393 #ifndef LDAP_DEPRECATED
21394 #define LDAP_DEPRECATED 1
21402 #include <ldapssl.h>
21407 char *cert_label = NULL;
21408 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21415 if ac_fn_c_try_compile "$LINENO"; then :
21417 curl_cv_header_ldapssl_h="yes"
21421 curl_cv_header_ldapssl_h="no"
21424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21428 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21429 case "$curl_cv_header_ldapssl_h" in
21432 cat >>confdefs.h <<_ACEOF
21433 #define HAVE_LDAPSSL_H 1
21440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21441 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21442 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21443 $as_echo_n "(cached) " >&6
21446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21447 /* end confdefs.h. */
21451 #ifdef HAVE_WINDOWS_H
21452 #ifndef WIN32_LEAN_AND_MEAN
21453 #define WIN32_LEAN_AND_MEAN
21455 #include <windows.h>
21457 #ifdef HAVE_SYS_TYPES_H
21458 #include <sys/types.h>
21461 #ifndef LDAP_DEPRECATED
21462 #define LDAP_DEPRECATED 1
21470 #include <ldap_ssl.h>
21475 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21482 if ac_fn_c_try_compile "$LINENO"; then :
21484 curl_cv_header_ldap_ssl_h="yes"
21488 curl_cv_header_ldap_ssl_h="no"
21491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21495 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21496 case "$curl_cv_header_ldap_ssl_h" in
21499 cat >>confdefs.h <<_ACEOF
21500 #define HAVE_LDAP_SSL_H 1
21507 if test -z "$LDAPLIBNAME" ; then
21508 if test "$curl_cv_native_windows" = "yes"; then
21509 LDAPLIBNAME="wldap32"
21514 if test "$LDAPLIBNAME" ; then
21515 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21517 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21518 if eval \${$as_ac_Lib+:} false; then :
21519 $as_echo_n "(cached) " >&6
21521 ac_check_lib_save_LIBS=$LIBS
21522 LIBS="-l"$LDAPLIBNAME" $LIBS"
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21533 return ldap_init ();
21538 if ac_fn_c_try_link "$LINENO"; then :
21539 eval "$as_ac_Lib=yes"
21541 eval "$as_ac_Lib=no"
21543 rm -f core conftest.err conftest.$ac_objext \
21544 conftest$ac_exeext conftest.$ac_ext
21545 LIBS=$ac_check_lib_save_LIBS
21547 eval ac_res=\$$as_ac_Lib
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21549 $as_echo "$ac_res" >&6; }
21550 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21551 cat >>confdefs.h <<_ACEOF
21552 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21555 LIBS="-l"$LDAPLIBNAME" $LIBS"
21559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21560 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21562 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21564 CURL_DISABLE_LDAP=1
21567 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21569 CURL_DISABLE_LDAPS=1
21576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21577 $as_echo_n "checking for LDAP libraries... " >&6; }
21583 curl_cv_save_LIBS="$LIBS"
21584 curl_cv_ldap_LIBS="unknown"
21586 for x_nlibs in '' "$u_libs" \
21590 '-lldapssl -lldapx -lldapsdk' \
21591 '-lldapsdk -lldapx -lldapssl' \
21592 '-lldap -llber -lssl -lcrypto' ; do
21594 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21595 if test -z "$x_nlibs"; then
21596 LIBS="$curl_cv_save_LIBS"
21598 LIBS="$x_nlibs $curl_cv_save_LIBS"
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21605 #ifdef HAVE_WINDOWS_H
21606 #ifndef WIN32_LEAN_AND_MEAN
21607 #define WIN32_LEAN_AND_MEAN
21609 #include <windows.h>
21611 #ifdef HAVE_SYS_TYPES_H
21612 #include <sys/types.h>
21616 #define NULL (void *)0
21618 #ifndef LDAP_DEPRECATED
21619 #define LDAP_DEPRECATED 1
21631 BerValue *bvp = NULL;
21632 BerElement *bep = ber_init(bvp);
21633 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21634 int res = ldap_unbind(ldp);
21642 if ac_fn_c_try_link "$LINENO"; then :
21644 curl_cv_ldap_LIBS="$x_nlibs"
21647 rm -f core conftest.err conftest.$ac_objext \
21648 conftest$ac_exeext conftest.$ac_ext
21652 LIBS="$curl_cv_save_LIBS"
21654 case X-"$curl_cv_ldap_LIBS" in
21656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21657 $as_echo "cannot find LDAP libraries" >&6; }
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21661 $as_echo "no additional lib required" >&6; }
21664 if test -z "$curl_cv_save_LIBS"; then
21665 LIBS="$curl_cv_ldap_LIBS"
21667 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21670 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21675 case X-"$curl_cv_ldap_LIBS" in
21677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21678 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21680 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21682 CURL_DISABLE_LDAP=1
21685 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21687 CURL_DISABLE_LDAPS=1
21694 if test x$CURL_DISABLE_LDAP != x1 ; then
21696 if test "$LBERLIBNAME" ; then
21697 if test "$LBERLIBNAME" != "no" ; then
21698 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21700 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21701 if eval \${$as_ac_Lib+:} false; then :
21702 $as_echo_n "(cached) " >&6
21704 ac_check_lib_save_LIBS=$LIBS
21705 LIBS="-l"$LBERLIBNAME" $LIBS"
21706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21707 /* end confdefs.h. */
21716 return ber_free ();
21721 if ac_fn_c_try_link "$LINENO"; then :
21722 eval "$as_ac_Lib=yes"
21724 eval "$as_ac_Lib=no"
21726 rm -f core conftest.err conftest.$ac_objext \
21727 conftest$ac_exeext conftest.$ac_ext
21728 LIBS=$ac_check_lib_save_LIBS
21730 eval ac_res=\$$as_ac_Lib
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21732 $as_echo "$ac_res" >&6; }
21733 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21734 cat >>confdefs.h <<_ACEOF
21735 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21738 LIBS="-l"$LBERLIBNAME" $LIBS"
21742 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21743 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21745 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21747 CURL_DISABLE_LDAP=1
21750 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21752 CURL_DISABLE_LDAPS=1
21760 if test x$CURL_DISABLE_LDAP != x1 ; then
21761 for ac_func in ldap_url_parse ldap_init_fd
21763 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21764 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21765 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21766 cat >>confdefs.h <<_ACEOF
21767 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21774 if test "$LDAPLIBNAME" = "wldap32"; then
21775 curl_ldap_msg="enabled (winldap)"
21777 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21780 curl_ldap_msg="enabled (OpenLDAP)"
21781 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21783 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21791 if test x$CURL_DISABLE_LDAPS != x1 ; then
21792 curl_ldaps_msg="enabled"
21796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21797 $as_echo_n "checking whether to enable IPv6... " >&6; }
21798 # Check whether --enable-ipv6 was given.
21799 if test "${enable_ipv6+set}" = set; then :
21800 enableval=$enable_ipv6; case "$enableval" in
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21803 $as_echo "no" >&6; }
21806 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21807 $as_echo "yes" >&6; }
21812 if test "$cross_compiling" = yes; then :
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21814 $as_echo "yes" >&6; }
21818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21819 /* end confdefs.h. */
21820 /* are AF_INET6 and sockaddr_in6 available? */
21821 #include <sys/types.h>
21822 #ifdef HAVE_WINSOCK2_H
21823 #include <winsock2.h>
21824 #include <ws2tcpip.h>
21826 #include <sys/socket.h>
21827 #include <netinet/in.h>
21828 #if defined (__TANDEM)
21829 # include <netinet/in6.h>
21832 #include <stdlib.h> /* for exit() */
21835 struct sockaddr_in6 s;
21837 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21844 if ac_fn_c_try_run "$LINENO"; then :
21845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21846 $as_echo "yes" >&6; }
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21850 $as_echo "no" >&6; }
21853 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21854 conftest.$ac_objext conftest.beam conftest.$ac_ext
21860 if test "$ipv6" = yes; then
21861 curl_ipv6_msg="enabled"
21863 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
21868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21869 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21871 /* end confdefs.h. */
21873 #include <sys/types.h>
21874 #ifdef HAVE_WINSOCK2_H
21875 #include <winsock2.h>
21876 #include <ws2tcpip.h>
21878 #include <netinet/in.h>
21879 #if defined (__TANDEM)
21880 # include <netinet/in6.h>
21885 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21890 if ac_fn_c_try_compile "$LINENO"; then :
21891 have_sin6_scope_id=yes
21893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21894 if test "$have_sin6_scope_id" = yes; then
21895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21896 $as_echo "yes" >&6; }
21898 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 $as_echo "no" >&6; }
21907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21908 $as_echo_n "checking if argv can be written to... " >&6; }
21911 old=$LD_LIBRARY_PATH
21912 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
21913 export LD_LIBRARY_PATH
21914 if test "$cross_compiling" = yes; then :
21915 curl_cv_writable_argv=cross
21918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21919 /* end confdefs.h. */
21921 int main(int argc, char ** argv) {
21923 return (argv00 == ' ')?0:1;
21927 if ac_fn_c_try_run "$LINENO"; then :
21928 curl_cv_writable_argv=yes
21931 curl_cv_writable_argv=no
21934 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21935 conftest.$ac_objext conftest.beam conftest.$ac_ext
21938 LD_LIBRARY_PATH=$old # restore
21940 case $curl_cv_writable_argv in
21943 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21946 $as_echo "yes" >&6; }
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21950 $as_echo "no" >&6; }
21953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 $as_echo "no" >&6; }
21955 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21956 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21964 # Check whether --with-gssapi-includes was given.
21965 if test "${with_gssapi_includes+set}" = set; then :
21966 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21973 # Check whether --with-gssapi-libs was given.
21974 if test "${with_gssapi_libs+set}" = set; then :
21975 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21982 # Check whether --with-gssapi was given.
21983 if test "${with_gssapi+set}" = set; then :
21984 withval=$with_gssapi;
21985 GSSAPI_ROOT="$withval"
21986 if test x"$GSSAPI_ROOT" != xno; then
21988 if test x"$GSSAPI_ROOT" = xyes; then
21996 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
21998 save_CPPFLAGS="$CPPFLAGS"
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22000 $as_echo_n "checking if GSS-API support is requested... " >&6; }
22001 if test x"$want_gss" = xyes; then
22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22003 $as_echo "yes" >&6; }
22005 if test -z "$GSSAPI_INCS"; then
22006 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22007 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22008 elif test -f "$KRB5CONFIG"; then
22009 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22010 elif test "$GSSAPI_ROOT" != "yes"; then
22011 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22015 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22017 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22018 if test "x$ac_cv_header_gss_h" = xyes; then :
22021 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22027 for ac_header in gssapi/gssapi.h
22029 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22030 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22031 cat >>confdefs.h <<_ACEOF
22032 #define HAVE_GSSAPI_GSSAPI_H 1
22041 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22043 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22044 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22045 $ac_includes_default
22046 #ifdef HAVE_GSSAPI_GSSAPI_H
22047 #include <gssapi/gssapi.h>
22051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22052 cat >>confdefs.h <<_ACEOF
22053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22062 if test "x$not_mit" = "x1"; then
22063 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22064 if test "x$ac_cv_header_gssapi_h" = xyes; then :
22067 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22073 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22074 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22082 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22085 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22087 /* end confdefs.h. */
22090 #include <gssapi/gssapi.h>
22091 #include <gssapi/gssapi_generic.h>
22092 #include <gssapi/gssapi_krb5.h>
22100 GSS_C_NT_HOSTBASED_SERVICE,
22108 if ac_fn_c_try_compile "$LINENO"; then :
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22111 $as_echo "yes" >&6; }
22115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22116 $as_echo "no" >&6; }
22118 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22131 $as_echo "no" >&6; }
22133 if test x"$want_gss" = xyes; then
22135 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22138 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22140 if test -n "$gnu_gss"; then
22141 curl_gss_msg="enabled (GNU GSS)"
22142 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22144 elif test -z "$GSSAPI_LIB_DIR"; then
22147 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22150 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22151 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22152 LIBS="$gss_libs $LIBS"
22153 elif test -f "$KRB5CONFIG"; then
22154 gss_libs=`$KRB5CONFIG --libs gssapi`
22155 LIBS="$gss_libs $LIBS"
22162 gss_libname="gssapi"
22166 if test "$GSSAPI_ROOT" != "yes"; then
22167 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22168 LIBS="-l$gss_libname $LIBS"
22170 LIBS="-l$gss_libname $LIBS"
22176 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22182 LIBS="-lgssapi $LIBS"
22187 CPPFLAGS="$save_CPPFLAGS"
22190 build_libstubgss=no
22191 if test x"$want_gss" = "xyes"; then
22192 build_libstubgss=yes
22195 if test "x$build_libstubgss" = "xyes"; then
22196 BUILD_STUB_GSS_TRUE=
22197 BUILD_STUB_GSS_FALSE='#'
22199 BUILD_STUB_GSS_TRUE='#'
22200 BUILD_STUB_GSS_FALSE=
22205 DEFAULT_SSL_BACKEND=no
22206 VALID_DEFAULT_SSL_BACKEND=
22208 # Check whether --with-default-ssl-backend was given.
22209 if test "${with_default_ssl_backend+set}" = set; then :
22210 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22213 case "$DEFAULT_SSL_BACKEND" in
22217 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22221 VALID_DEFAULT_SSL_BACKEND=no
22229 # Check whether --with-winssl was given.
22230 if test "${with_winssl+set}" = set; then :
22231 withval=$with_winssl; OPT_WINSSL=$withval
22236 # Check whether --with-schannel was given.
22237 if test "${with_schannel+set}" = set; then :
22238 withval=$with_schannel; OPT_WINSSL=$withval
22242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22243 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22244 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22246 if test "x$OPT_WINSSL" != "xno" &&
22247 test "x$curl_cv_native_windows" = "xyes"; then
22248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22249 $as_echo "yes" >&6; }
22251 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22255 ssl_msg="Windows-native"
22256 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22258 # --with-winssl implies --enable-sspi
22260 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22264 curl_sspi_msg="enabled"
22265 LIBS="-lcrypt32 $LIBS"
22267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22268 $as_echo "no" >&6; }
22270 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22273 $as_echo "no" >&6; }
22276 OPT_SECURETRANSPORT=no
22278 # Check whether --with-darwinssl was given.
22279 if test "${with_darwinssl+set}" = set; then :
22280 withval=$with_darwinssl; OPT_SECURETRANSPORT=$withval
22285 # Check whether --with-secure-transport was given.
22286 if test "${with_secure_transport+set}" = set; then :
22287 withval=$with_secure_transport; OPT_SECURETRANSPORT=$withval
22291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
22292 $as_echo_n "checking whether to enable Secure Transport... " >&6; }
22293 if test -z "$ssl_backends" -o "x$OPT_SECURETRANSPORT" != xno; then
22294 if test "x$OPT_SECURETRANSPORT" != "xno" &&
22295 test -d "/System/Library/Frameworks/Security.framework"; then
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22297 $as_echo "yes" >&6; }
22299 $as_echo "#define USE_SECTRANSP 1" >>confdefs.h
22303 ssl_msg="Secure Transport"
22304 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22305 SECURETRANSPORT_ENABLED=1
22306 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22309 $as_echo "no" >&6; }
22311 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22314 $as_echo "no" >&6; }
22319 # Check whether --with-amissl was given.
22320 if test "${with_amissl+set}" = set; then :
22321 withval=$with_amissl; OPT_AMISSL=$withval
22325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL)" >&5
22326 $as_echo_n "checking whether to enable Amiga native SSL/TLS (AmiSSL)... " >&6; }
22327 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
22328 if test -z "$ssl_backends" -o "x$OPT_AMISSL" != xno; then
22330 if test "x$OPT_AMISSL" != "xno"; then
22331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22332 $as_echo "yes" >&6; }
22334 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22336 LIBS="-lamisslauto $LIBS"
22338 $as_echo "#define USE_AMISSL 1" >>confdefs.h
22341 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22345 $as_echo "no" >&6; }
22347 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22350 $as_echo "no" >&6; }
22353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22354 $as_echo "no" >&6; }
22361 # Check whether --with-ssl was given.
22362 if test "${with_ssl+set}" = set; then :
22363 withval=$with_ssl; OPT_SSL=$withval
22367 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22368 test X"$OPT_SSL" != Xno; then
22371 CLEANLDFLAGS="$LDFLAGS"
22372 CLEANCPPFLAGS="$CPPFLAGS"
22376 *-*-msys* | *-*-mingw*)
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22378 $as_echo_n "checking for gdi32... " >&6; }
22379 my_ac_save_LIBS=$LIBS
22380 LIBS="-lgdi32 $LIBS"
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382 /* end confdefs.h. */
22383 #include <windef.h>
22384 #include <wingdi.h>
22392 if ac_fn_c_try_link "$LINENO"; then :
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22394 $as_echo "yes" >&6; }
22396 LIBS=$my_ac_save_LIBS
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22398 $as_echo "no" >&6; }
22401 rm -f core conftest.err conftest.$ac_objext \
22402 conftest$ac_exeext conftest.$ac_ext
22408 if test x$cross_compiling != xyes; then
22411 PREFIX_OPENSSL=/usr/local/ssl
22412 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22415 if test x$cross_compiling != xyes; then
22422 PREFIX_OPENSSL=$OPT_SSL
22424 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22425 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22427 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22429 elif test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
22430 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-ssl prefix!" "$LINENO" 5
22433 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22434 if test "$PREFIX_OPENSSL" != "/usr" ; then
22435 SSL_LDFLAGS="-L$LIB_OPENSSL"
22436 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22438 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22442 if test "$PKGTEST" = "yes"; then
22445 if test -n "$PKG_CONFIG"; then
22446 PKGCONFIG="$PKG_CONFIG"
22448 if test -n "$ac_tool_prefix"; then
22449 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22450 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22452 $as_echo_n "checking for $ac_word... " >&6; }
22453 if ${ac_cv_path_PKGCONFIG+:} false; then :
22454 $as_echo_n "(cached) " >&6
22458 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22462 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22463 for as_dir in $as_dummy
22466 test -z "$as_dir" && as_dir=.
22467 for ac_exec_ext in '' $ac_executable_extensions; do
22468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22469 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22480 PKGCONFIG=$ac_cv_path_PKGCONFIG
22481 if test -n "$PKGCONFIG"; then
22482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22483 $as_echo "$PKGCONFIG" >&6; }
22485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22486 $as_echo "no" >&6; }
22491 if test -z "$ac_cv_path_PKGCONFIG"; then
22492 ac_pt_PKGCONFIG=$PKGCONFIG
22493 # Extract the first word of "pkg-config", so it can be a program name with args.
22494 set dummy pkg-config; ac_word=$2
22495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22496 $as_echo_n "checking for $ac_word... " >&6; }
22497 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22498 $as_echo_n "(cached) " >&6
22500 case $ac_pt_PKGCONFIG in
22502 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22506 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22507 for as_dir in $as_dummy
22510 test -z "$as_dir" && as_dir=.
22511 for ac_exec_ext in '' $ac_executable_extensions; do
22512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22513 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22524 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22525 if test -n "$ac_pt_PKGCONFIG"; then
22526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22527 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22530 $as_echo "no" >&6; }
22533 if test "x$ac_pt_PKGCONFIG" = x; then
22536 case $cross_compiling:$ac_tool_warned in
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22539 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22540 ac_tool_warned=yes ;;
22542 PKGCONFIG=$ac_pt_PKGCONFIG
22545 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22550 if test "x$PKGCONFIG" != "xno"; then
22551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22552 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22554 if test -n "$OPENSSL_PCDIR"; then
22555 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22556 export PKG_CONFIG_LIBDIR
22558 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22560 if test -z "$itexists"; then
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22563 $as_echo "no" >&6; }
22565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22566 $as_echo "found" >&6; }
22571 if test "$PKGCONFIG" != "no" ; then
22573 if test -n "$OPENSSL_PCDIR"; then
22574 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22575 export PKG_CONFIG_LIBDIR
22577 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
22580 if test -n "$OPENSSL_PCDIR"; then
22581 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22582 export PKG_CONFIG_LIBDIR
22584 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22587 if test -n "$OPENSSL_PCDIR"; then
22588 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22589 export PKG_CONFIG_LIBDIR
22591 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22595 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22597 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22598 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22599 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22601 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22603 LIBS="$SSL_LIBS $LIBS"
22607 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22608 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22611 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22612 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22613 $as_echo_n "(cached) " >&6
22615 ac_check_lib_save_LIBS=$LIBS
22616 LIBS="-lcrypto $LIBS"
22617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22618 /* end confdefs.h. */
22624 char HMAC_Update ();
22627 return HMAC_Update ();
22632 if ac_fn_c_try_link "$LINENO"; then :
22633 ac_cv_lib_crypto_HMAC_Update=yes
22635 ac_cv_lib_crypto_HMAC_Update=no
22637 rm -f core conftest.err conftest.$ac_objext \
22638 conftest$ac_exeext conftest.$ac_ext
22639 LIBS=$ac_check_lib_save_LIBS
22641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22642 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22643 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22646 LIBS="-lcrypto $LIBS"
22650 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22651 if test "$PKGCONFIG" = "no" ; then
22652 # only set this if pkg-config wasn't used
22653 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22656 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22657 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22658 $as_echo_n "(cached) " >&6
22660 ac_check_lib_save_LIBS=$LIBS
22661 LIBS="-lcrypto $LIBS"
22662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22663 /* end confdefs.h. */
22669 char HMAC_Init_ex ();
22672 return HMAC_Init_ex ();
22677 if ac_fn_c_try_link "$LINENO"; then :
22678 ac_cv_lib_crypto_HMAC_Init_ex=yes
22680 ac_cv_lib_crypto_HMAC_Init_ex=no
22682 rm -f core conftest.err conftest.$ac_objext \
22683 conftest$ac_exeext conftest.$ac_ext
22684 LIBS=$ac_check_lib_save_LIBS
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22687 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22688 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22691 LIBS="-lcrypto $LIBS"
22695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22696 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22697 LIBS="$CLEANLIBS -lcrypto -ldl"
22698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22699 /* end confdefs.h. */
22701 #include <openssl/err.h>
22712 if ac_fn_c_try_link "$LINENO"; then :
22714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22715 $as_echo "yes" >&6; }
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22721 $as_echo "no" >&6; }
22723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22724 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22725 LIBS="$CLEANLIBS -lcrypto -ldl -lpthread"
22726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22727 /* end confdefs.h. */
22729 #include <openssl/err.h>
22740 if ac_fn_c_try_link "$LINENO"; then :
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22743 $as_echo "yes" >&6; }
22748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22749 $as_echo "no" >&6; }
22750 LDFLAGS="$CLEANLDFLAGS"
22751 CPPFLAGS="$CLEANCPPFLAGS"
22756 rm -f core conftest.err conftest.$ac_objext \
22757 conftest$ac_exeext conftest.$ac_ext
22761 rm -f core conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22771 if test X"$HAVECRYPTO" = X"yes"; then
22773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22774 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22775 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22776 $as_echo_n "(cached) " >&6
22778 ac_check_lib_save_LIBS=$LIBS
22780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22781 /* end confdefs.h. */
22787 char SSL_connect ();
22790 return SSL_connect ();
22795 if ac_fn_c_try_link "$LINENO"; then :
22796 ac_cv_lib_ssl_SSL_connect=yes
22798 ac_cv_lib_ssl_SSL_connect=no
22800 rm -f core conftest.err conftest.$ac_objext \
22801 conftest$ac_exeext conftest.$ac_ext
22802 LIBS=$ac_check_lib_save_LIBS
22804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22805 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22806 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22807 cat >>confdefs.h <<_ACEOF
22808 #define HAVE_LIBSSL 1
22816 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22818 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22820 LIBS="-lRSAglue -lrsaref $LIBS"
22821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22822 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22823 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22824 $as_echo_n "(cached) " >&6
22826 ac_check_lib_save_LIBS=$LIBS
22828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22829 /* end confdefs.h. */
22835 char SSL_connect ();
22838 return SSL_connect ();
22843 if ac_fn_c_try_link "$LINENO"; then :
22844 ac_cv_lib_ssl_SSL_connect=yes
22846 ac_cv_lib_ssl_SSL_connect=no
22848 rm -f core conftest.err conftest.$ac_objext \
22849 conftest$ac_exeext conftest.$ac_ext
22850 LIBS=$ac_check_lib_save_LIBS
22852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22853 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22854 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22855 cat >>confdefs.h <<_ACEOF
22856 #define HAVE_LIBSSL 1
22863 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22865 $as_echo "no" >&6; }
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22869 $as_echo "yes" >&6; }
22874 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22875 openssl/pem.h openssl/ssl.h openssl/err.h
22877 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22878 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22879 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22880 cat >>confdefs.h <<_ACEOF
22881 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22884 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22887 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22894 if test $ac_cv_header_openssl_x509_h = no; then
22895 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22897 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22898 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22899 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22900 cat >>confdefs.h <<_ACEOF
22901 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22909 if test $ac_cv_header_x509_h = yes &&
22910 test $ac_cv_header_crypto_h = yes &&
22911 test $ac_cv_header_ssl_h = yes; then
22918 if test X"$OPENSSL_ENABLED" != X"1"; then
22922 if test X"$OPT_SSL" != Xoff &&
22923 test "$OPENSSL_ENABLED" != "1"; then
22924 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22928 if test X"$OPENSSL_ENABLED" = X"1"; then
22930 for ac_func in RAND_egd \
22931 SSLv2_client_method \
22934 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22935 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22936 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22937 cat >>confdefs.h <<_ACEOF
22938 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22946 $as_echo_n "checking for BoringSSL... " >&6; }
22947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22948 /* end confdefs.h. */
22951 #include <openssl/base.h>
22956 #ifndef OPENSSL_IS_BORINGSSL
22957 #error not boringssl
22965 if ac_fn_c_try_compile "$LINENO"; then :
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22968 $as_echo "yes" >&6; }
22970 cat >>confdefs.h <<_ACEOF
22971 #define HAVE_BORINGSSL 1
22974 ssl_msg="BoringSSL"
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22979 $as_echo "no" >&6; }
22982 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
22985 $as_echo_n "checking for libressl... " >&6; }
22986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22987 /* end confdefs.h. */
22990 #include <openssl/opensslv.h>
22995 int dummy = LIBRESSL_VERSION_NUMBER;
23002 if ac_fn_c_try_compile "$LINENO"; then :
23004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23005 $as_echo "yes" >&6; }
23007 cat >>confdefs.h <<_ACEOF
23008 #define HAVE_LIBRESSL 1
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23016 $as_echo "no" >&6; }
23019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23022 if test "$OPENSSL_ENABLED" = "1"; then
23023 if test -n "$LIB_OPENSSL"; then
23024 if test "x$cross_compiling" != "xyes"; then
23025 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
23026 export CURL_LIBRARY_PATH
23027 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
23028 $as_echo "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
23037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23038 $as_echo_n "checking for OpenSSL headers version... " >&6; }
23040 OLDCPPFLAGS=$CPPFLAGS
23041 # CPPPFLAG comes from CURL_CPP_P
23042 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23043 if test -z "$SED"; then
23044 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23046 if test -z "$GREP"; then
23047 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23052 /* end confdefs.h. */
23055 # ifdef USE_OPENSSL
23056 # include <openssl/crypto.h>
23058 # include <crypto.h>
23061 #ifdef OPENSSL_VERSION_NUMBER
23062 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23067 if ac_fn_c_try_cpp "$LINENO"; then :
23069 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23070 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23071 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23072 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23073 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23078 rm -f conftest.err conftest.i conftest.$ac_ext
23079 if test -z "$tmp_exp"; then
23080 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23083 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23084 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23087 CPPFLAGS=$OLDCPPFLAGS
23089 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23090 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23091 case "x$tst_verlen" in
23093 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23094 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23095 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23096 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23099 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23100 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23101 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23102 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23109 0x111) tst_show="1.1.1" ;;
23110 0x110) tst_show="1.1.0" ;;
23111 0x102) tst_show="1.0.2" ;;
23112 0x101) tst_show="1.0.1" ;;
23113 0x100) tst_show="1.0.0" ;;
23114 0x099) tst_show="0.9.9" ;;
23115 0x098) tst_show="0.9.8" ;;
23116 0x097) tst_show="0.9.7" ;;
23117 0x096) tst_show="0.9.6" ;;
23118 0x095) tst_show="0.9.5" ;;
23119 0x094) tst_show="0.9.4" ;;
23120 0x093) tst_show="0.9.3" ;;
23121 0x092) tst_show="0.9.2" ;;
23122 0x091) tst_show="0.9.1" ;;
23123 *) tst_show="unknown" ;;
23125 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23130 $as_echo "$tst_show" >&6; }
23132 curl_openssl_api_headers=$tst_api
23138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23139 $as_echo_n "checking for OpenSSL library version... " >&6; }
23140 if test "$tst_api" = "unknown"; then
23141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23142 /* end confdefs.h. */
23145 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23147 # include <limits.h>
23149 # include <assert.h>
23151 #undef ERR_clear_last_mark
23155 char ERR_clear_last_mark ();
23156 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23162 return ERR_clear_last_mark ();
23168 if ac_fn_c_try_link "$LINENO"; then :
23173 rm -f core conftest.err conftest.$ac_objext \
23174 conftest$ac_exeext conftest.$ac_ext
23176 if test "$tst_api" = "unknown"; then
23179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23180 /* end confdefs.h. */
23183 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23185 # include <limits.h>
23187 # include <assert.h>
23189 #undef SSL_CTX_set_not_resumbl_sess_cb
23193 char SSL_CTX_set_not_resumbl_sess_cb ();
23194 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23200 return SSL_CTX_set_not_resumbl_sess_cb ();
23206 if ac_fn_c_try_link "$LINENO"; then :
23211 rm -f core conftest.err conftest.$ac_objext \
23212 conftest$ac_exeext conftest.$ac_ext
23215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23216 /* end confdefs.h. */
23219 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23221 # include <limits.h>
23223 # include <assert.h>
23225 #undef SSL_CTX_set_not_resumable_session_callback
23229 char SSL_CTX_set_not_resumable_session_callback ();
23230 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23236 return SSL_CTX_set_not_resumable_session_callback ();
23242 if ac_fn_c_try_link "$LINENO"; then :
23247 rm -f core conftest.err conftest.$ac_objext \
23248 conftest$ac_exeext conftest.$ac_ext
23252 if test "$tst_api" = "unknown"; then
23253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23254 /* end confdefs.h. */
23257 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23259 # include <limits.h>
23261 # include <assert.h>
23263 #undef SSL_CONF_CTX_new
23267 char SSL_CONF_CTX_new ();
23268 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23274 return SSL_CONF_CTX_new ();
23280 if ac_fn_c_try_link "$LINENO"; then :
23285 rm -f core conftest.err conftest.$ac_objext \
23286 conftest$ac_exeext conftest.$ac_ext
23288 if test "$tst_api" = "unknown"; then
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290 /* end confdefs.h. */
23293 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23295 # include <limits.h>
23297 # include <assert.h>
23299 #undef SSL_renegotiate_abbreviated
23303 char SSL_renegotiate_abbreviated ();
23304 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23310 return SSL_renegotiate_abbreviated ();
23316 if ac_fn_c_try_link "$LINENO"; then :
23321 rm -f core conftest.err conftest.$ac_objext \
23322 conftest$ac_exeext conftest.$ac_ext
23324 if test "$tst_api" = "unknown"; then
23325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23326 /* end confdefs.h. */
23329 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23331 # include <limits.h>
23333 # include <assert.h>
23335 #undef OBJ_add_sigid
23339 char OBJ_add_sigid ();
23340 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23346 return OBJ_add_sigid ();
23352 if ac_fn_c_try_link "$LINENO"; then :
23357 rm -f core conftest.err conftest.$ac_objext \
23358 conftest$ac_exeext conftest.$ac_ext
23360 if test "$tst_api" = "unknown"; then
23361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23362 /* end confdefs.h. */
23365 #define ERR_set_mark innocuous_ERR_set_mark
23367 # include <limits.h>
23369 # include <assert.h>
23371 #undef ERR_set_mark
23375 char ERR_set_mark ();
23376 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23382 return ERR_set_mark ();
23388 if ac_fn_c_try_link "$LINENO"; then :
23393 rm -f core conftest.err conftest.$ac_objext \
23394 conftest$ac_exeext conftest.$ac_ext
23396 if test "$tst_api" = "unknown"; then
23397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23398 /* end confdefs.h. */
23401 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23403 # include <limits.h>
23405 # include <assert.h>
23407 #undef ERR_peek_last_error
23411 char ERR_peek_last_error ();
23412 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23418 return ERR_peek_last_error ();
23424 if ac_fn_c_try_link "$LINENO"; then :
23429 rm -f core conftest.err conftest.$ac_objext \
23430 conftest$ac_exeext conftest.$ac_ext
23432 if test "$tst_api" = "unknown"; then
23433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23434 /* end confdefs.h. */
23437 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23439 # include <limits.h>
23441 # include <assert.h>
23443 #undef c2i_ASN1_OBJECT
23447 char c2i_ASN1_OBJECT ();
23448 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23454 return c2i_ASN1_OBJECT ();
23460 if ac_fn_c_try_link "$LINENO"; then :
23465 rm -f core conftest.err conftest.$ac_objext \
23466 conftest$ac_exeext conftest.$ac_ext
23468 if test "$tst_api" = "unknown"; then
23469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23470 /* end confdefs.h. */
23473 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23475 # include <limits.h>
23477 # include <assert.h>
23479 #undef SSL_CTX_set_purpose
23483 char SSL_CTX_set_purpose ();
23484 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23490 return SSL_CTX_set_purpose ();
23496 if ac_fn_c_try_link "$LINENO"; then :
23501 rm -f core conftest.err conftest.$ac_objext \
23502 conftest$ac_exeext conftest.$ac_ext
23504 if test "$tst_api" = "unknown"; then
23505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23506 /* end confdefs.h. */
23509 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23511 # include <limits.h>
23513 # include <assert.h>
23519 char OBJ_obj2txt ();
23520 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23526 return OBJ_obj2txt ();
23532 if ac_fn_c_try_link "$LINENO"; then :
23537 rm -f core conftest.err conftest.$ac_objext \
23538 conftest$ac_exeext conftest.$ac_ext
23540 if test "$tst_api" = "unknown"; then
23541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23542 /* end confdefs.h. */
23545 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23547 # include <limits.h>
23549 # include <assert.h>
23551 #undef SSL_get_verify_depth
23555 char SSL_get_verify_depth ();
23556 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23562 return SSL_get_verify_depth ();
23568 if ac_fn_c_try_link "$LINENO"; then :
23573 rm -f core conftest.err conftest.$ac_objext \
23574 conftest$ac_exeext conftest.$ac_ext
23576 if test "$tst_api" = "unknown"; then
23577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23578 /* end confdefs.h. */
23581 #define SSL_library_init innocuous_SSL_library_init
23583 # include <limits.h>
23585 # include <assert.h>
23587 #undef SSL_library_init
23591 char SSL_library_init ();
23592 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23598 return SSL_library_init ();
23604 if ac_fn_c_try_link "$LINENO"; then :
23609 rm -f core conftest.err conftest.$ac_objext \
23610 conftest$ac_exeext conftest.$ac_ext
23612 if test "$tst_api" = "unknown"; then
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614 /* end confdefs.h. */
23617 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23619 # include <limits.h>
23621 # include <assert.h>
23623 #undef SSL_CTX_set_cipher_list
23627 char SSL_CTX_set_cipher_list ();
23628 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23634 return SSL_CTX_set_cipher_list ();
23640 if ac_fn_c_try_link "$LINENO"; then :
23645 rm -f core conftest.err conftest.$ac_objext \
23646 conftest$ac_exeext conftest.$ac_ext
23649 0x111) tst_show="1.1.1" ;;
23650 0x110) tst_show="1.1.0" ;;
23651 0x102) tst_show="1.0.2" ;;
23652 0x101) tst_show="1.0.1" ;;
23653 0x100) tst_show="1.0.0" ;;
23654 0x099) tst_show="0.9.9" ;;
23655 0x098) tst_show="0.9.8" ;;
23656 0x097) tst_show="0.9.7" ;;
23657 0x096) tst_show="0.9.6" ;;
23658 0x095) tst_show="0.9.5" ;;
23659 0x094) tst_show="0.9.4" ;;
23660 0x093) tst_show="0.9.3" ;;
23661 0x092) tst_show="0.9.2" ;;
23662 0x091) tst_show="0.9.1" ;;
23663 *) tst_show="unknown" ;;
23665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23666 $as_echo "$tst_show" >&6; }
23668 curl_openssl_api_library=$tst_api
23673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23674 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23675 if test "$curl_openssl_api_headers" = "unknown" ||
23676 test "$curl_openssl_api_library" = "unknown"; then
23678 tst_warns="Can not compare OpenSSL headers and library versions."
23679 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23681 tst_warns="OpenSSL headers and library versions do not match."
23683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23684 $as_echo "$tst_match" >&6; }
23685 if test "$tst_match" != "yes"; then
23686 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23687 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23690 check_for_ca_bundle=1
23693 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23696 if test X"$OPT_SSL" != Xoff &&
23697 test X"$OPT_SSL" != Xno &&
23698 test "$OPENSSL_ENABLED" != "1"; then
23699 { $as_echo "$as_me:${as_lineno-$LINENO}: OPT_SSL: $OPT_SSL" >&5
23700 $as_echo "$as_me: OPT_SSL: $OPT_SSL" >&6;}
23701 { $as_echo "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
23702 $as_echo "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
23703 as_fn_error $? "--with-ssl was given but OpenSSL could not be detected" "$LINENO" 5
23707 if test X"$OPENSSL_ENABLED" = X"1"; then
23709 # Check whether --with-egd-socket was given.
23710 if test "${with_egd_socket+set}" = set; then :
23711 withval=$with_egd_socket; EGD_SOCKET="$withval"
23715 if test -n "$EGD_SOCKET" ; then
23717 cat >>confdefs.h <<_ACEOF
23718 #define EGD_SOCKET "$EGD_SOCKET"
23724 # Check whether --with-random was given.
23725 if test "${with_random+set}" = set; then :
23726 withval=$with_random; RANDOM_FILE="$withval"
23729 if test x$cross_compiling != xyes; then
23730 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23732 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23733 if eval \${$as_ac_File+:} false; then :
23734 $as_echo_n "(cached) " >&6
23736 test "$cross_compiling" = yes &&
23737 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23738 if test -r ""/dev/urandom""; then
23739 eval "$as_ac_File=yes"
23741 eval "$as_ac_File=no"
23744 eval ac_res=\$$as_ac_File
23745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23746 $as_echo "$ac_res" >&6; }
23747 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23748 RANDOM_FILE="/dev/urandom"
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23753 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23759 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23762 cat >>confdefs.h <<_ACEOF
23763 #define RANDOM_FILE "$RANDOM_FILE"
23769 if test "$OPENSSL_ENABLED" = "1"; then
23770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23771 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23772 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23773 $as_echo_n "(cached) " >&6
23775 ac_check_lib_save_LIBS=$LIBS
23776 LIBS="-lcrypto $LIBS"
23777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23778 /* end confdefs.h. */
23784 char SRP_Calc_client_key ();
23787 return SRP_Calc_client_key ();
23792 if ac_fn_c_try_link "$LINENO"; then :
23793 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23795 ac_cv_lib_crypto_SRP_Calc_client_key=no
23797 rm -f core conftest.err conftest.$ac_objext \
23798 conftest$ac_exeext conftest.$ac_ext
23799 LIBS=$ac_check_lib_save_LIBS
23801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23802 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23803 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23806 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23815 if test X"$OPENSSL_ENABLED" = X"1"; then
23816 # Check whether --enable-openssl-auto-load-config was given.
23817 if test "${enable_openssl_auto_load_config+set}" = set; then :
23818 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
23820 $as_echo "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
23822 $as_echo "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
23834 # Check whether --with-gnutls was given.
23835 if test "${with_gnutls+set}" = set; then :
23836 withval=$with_gnutls; OPT_GNUTLS=$withval
23840 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23843 if test X"$OPT_GNUTLS" != Xno; then
23851 if test "x$OPT_GNUTLS" = "xyes"; then
23853 if test -n "$PKG_CONFIG"; then
23854 PKGCONFIG="$PKG_CONFIG"
23856 if test -n "$ac_tool_prefix"; then
23857 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23858 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23860 $as_echo_n "checking for $ac_word... " >&6; }
23861 if ${ac_cv_path_PKGCONFIG+:} false; then :
23862 $as_echo_n "(cached) " >&6
23866 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23870 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23871 for as_dir in $as_dummy
23874 test -z "$as_dir" && as_dir=.
23875 for ac_exec_ext in '' $ac_executable_extensions; do
23876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23877 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23878 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23888 PKGCONFIG=$ac_cv_path_PKGCONFIG
23889 if test -n "$PKGCONFIG"; then
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23891 $as_echo "$PKGCONFIG" >&6; }
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23894 $as_echo "no" >&6; }
23899 if test -z "$ac_cv_path_PKGCONFIG"; then
23900 ac_pt_PKGCONFIG=$PKGCONFIG
23901 # Extract the first word of "pkg-config", so it can be a program name with args.
23902 set dummy pkg-config; ac_word=$2
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23904 $as_echo_n "checking for $ac_word... " >&6; }
23905 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23906 $as_echo_n "(cached) " >&6
23908 case $ac_pt_PKGCONFIG in
23910 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23914 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23915 for as_dir in $as_dummy
23918 test -z "$as_dir" && as_dir=.
23919 for ac_exec_ext in '' $ac_executable_extensions; do
23920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23921 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23932 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23933 if test -n "$ac_pt_PKGCONFIG"; then
23934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23935 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23938 $as_echo "no" >&6; }
23941 if test "x$ac_pt_PKGCONFIG" = x; then
23944 case $cross_compiling:$ac_tool_warned in
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23947 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23948 ac_tool_warned=yes ;;
23950 PKGCONFIG=$ac_pt_PKGCONFIG
23953 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23958 if test "x$PKGCONFIG" != "xno"; then
23959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23960 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23962 if test -n ""; then
23963 PKG_CONFIG_LIBDIR=""
23964 export PKG_CONFIG_LIBDIR
23966 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23968 if test -z "$itexists"; then
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23971 $as_echo "no" >&6; }
23973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23974 $as_echo "found" >&6; }
23979 if test "$PKGCONFIG" != "no" ; then
23980 addlib=`$PKGCONFIG --libs-only-l gnutls`
23981 addld=`$PKGCONFIG --libs-only-L gnutls`
23982 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23983 version=`$PKGCONFIG --modversion gnutls`
23984 gtlslib=`echo $addld | $SED -e 's/-L//'`
23986 check=`libgnutls-config --version 2>/dev/null`
23987 if test -n "$check"; then
23988 addlib=`libgnutls-config --libs`
23989 addcflags=`libgnutls-config --cflags`
23990 version=`libgnutls-config --version`
23991 gtlslib=`libgnutls-config --prefix`/lib$libsuff
23995 cfg=$OPT_GNUTLS/bin/libgnutls-config
23996 check=`$cfg --version 2>/dev/null`
23997 if test -n "$check"; then
23998 addlib=`$cfg --libs`
23999 addcflags=`$cfg --cflags`
24000 version=`$cfg --version`
24001 gtlslib=`$cfg --prefix`/lib$libsuff
24004 addld=-L$OPT_GNUTLS/lib$libsuff
24005 addcflags=-I$OPT_GNUTLS/include
24006 version="" # we just don't know
24007 gtlslib=$OPT_GNUTLS/lib$libsuff
24011 if test -z "$version"; then
24015 if test -n "$addlib"; then
24018 CLEANCPPFLAGS="$CPPFLAGS"
24019 CLEANLDFLAGS="$LDFLAGS"
24021 LIBS="$addlib $LIBS"
24022 LDFLAGS="$LDFLAGS $addld"
24023 if test "$addcflags" != "-I/usr/include"; then
24024 CPPFLAGS="$CPPFLAGS $addcflags"
24027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24028 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24029 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24030 $as_echo_n "(cached) " >&6
24032 ac_check_lib_save_LIBS=$LIBS
24033 LIBS="-lgnutls $LIBS"
24034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24035 /* end confdefs.h. */
24041 char gnutls_check_version ();
24044 return gnutls_check_version ();
24049 if ac_fn_c_try_link "$LINENO"; then :
24050 ac_cv_lib_gnutls_gnutls_check_version=yes
24052 ac_cv_lib_gnutls_gnutls_check_version=no
24054 rm -f core conftest.err conftest.$ac_objext \
24055 conftest$ac_exeext conftest.$ac_ext
24056 LIBS=$ac_check_lib_save_LIBS
24058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24059 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24060 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24063 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
24070 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24075 CPPFLAGS="$CLEANCPPFLAGS"
24080 if test "x$USE_GNUTLS" = "xyes"; then
24081 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24082 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
24083 check_for_ca_bundle=1
24084 if test -n "$gtlslib"; then
24085 if test "x$cross_compiling" != "xyes"; then
24086 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
24087 export CURL_LIBRARY_PATH
24088 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
24089 $as_echo "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
24092 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24094 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24095 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24096 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24097 cat >>confdefs.h <<_ACEOF
24098 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24109 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24113 if test "$GNUTLS_ENABLED" = "1"; then
24115 # First check if we can detect either crypto library via transitive linking
24116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24117 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24118 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24119 $as_echo_n "(cached) " >&6
24121 ac_check_lib_save_LIBS=$LIBS
24122 LIBS="-lgnutls $LIBS"
24123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24124 /* end confdefs.h. */
24130 char nettle_MD5Init ();
24133 return nettle_MD5Init ();
24138 if ac_fn_c_try_link "$LINENO"; then :
24139 ac_cv_lib_gnutls_nettle_MD5Init=yes
24141 ac_cv_lib_gnutls_nettle_MD5Init=no
24143 rm -f core conftest.err conftest.$ac_objext \
24144 conftest$ac_exeext conftest.$ac_ext
24145 LIBS=$ac_check_lib_save_LIBS
24147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24148 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24149 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24150 USE_GNUTLS_NETTLE=1
24153 if test "$USE_GNUTLS_NETTLE" = ""; then
24154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24155 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24156 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24157 $as_echo_n "(cached) " >&6
24159 ac_check_lib_save_LIBS=$LIBS
24160 LIBS="-lgnutls $LIBS"
24161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24162 /* end confdefs.h. */
24168 char gcry_control ();
24171 return gcry_control ();
24176 if ac_fn_c_try_link "$LINENO"; then :
24177 ac_cv_lib_gnutls_gcry_control=yes
24179 ac_cv_lib_gnutls_gcry_control=no
24181 rm -f core conftest.err conftest.$ac_objext \
24182 conftest$ac_exeext conftest.$ac_ext
24183 LIBS=$ac_check_lib_save_LIBS
24185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24186 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24187 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24188 USE_GNUTLS_NETTLE=0
24192 # If not, try linking directly to both of them to see if they are available
24193 if test "$USE_GNUTLS_NETTLE" = ""; then
24194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24195 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24196 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24197 $as_echo_n "(cached) " >&6
24199 ac_check_lib_save_LIBS=$LIBS
24200 LIBS="-lnettle $LIBS"
24201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24202 /* end confdefs.h. */
24208 char nettle_MD5Init ();
24211 return nettle_MD5Init ();
24216 if ac_fn_c_try_link "$LINENO"; then :
24217 ac_cv_lib_nettle_nettle_MD5Init=yes
24219 ac_cv_lib_nettle_nettle_MD5Init=no
24221 rm -f core conftest.err conftest.$ac_objext \
24222 conftest$ac_exeext conftest.$ac_ext
24223 LIBS=$ac_check_lib_save_LIBS
24225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24226 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24227 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24228 USE_GNUTLS_NETTLE=1
24232 if test "$USE_GNUTLS_NETTLE" = ""; then
24233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24234 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24235 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24236 $as_echo_n "(cached) " >&6
24238 ac_check_lib_save_LIBS=$LIBS
24239 LIBS="-lgcrypt $LIBS"
24240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24241 /* end confdefs.h. */
24247 char gcry_control ();
24250 return gcry_control ();
24255 if ac_fn_c_try_link "$LINENO"; then :
24256 ac_cv_lib_gcrypt_gcry_control=yes
24258 ac_cv_lib_gcrypt_gcry_control=no
24260 rm -f core conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24262 LIBS=$ac_check_lib_save_LIBS
24264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24265 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24266 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24267 USE_GNUTLS_NETTLE=0
24271 if test "$USE_GNUTLS_NETTLE" = ""; then
24272 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24274 if test "$USE_GNUTLS_NETTLE" = "1"; then
24276 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24278 USE_GNUTLS_NETTLE=1
24280 LIBS="-lnettle $LIBS"
24282 LIBS="-lgcrypt $LIBS"
24286 if test "$GNUTLS_ENABLED" = "1"; then
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24288 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24289 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24290 $as_echo_n "(cached) " >&6
24292 ac_check_lib_save_LIBS=$LIBS
24293 LIBS="-lgnutls $LIBS"
24294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24295 /* end confdefs.h. */
24301 char gnutls_srp_verifier ();
24304 return gnutls_srp_verifier ();
24309 if ac_fn_c_try_link "$LINENO"; then :
24310 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24312 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24314 rm -f core conftest.err conftest.$ac_objext \
24315 conftest$ac_exeext conftest.$ac_ext
24316 LIBS=$ac_check_lib_save_LIBS
24318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24319 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24320 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24323 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24335 _cppflags=$CPPFLAGS
24338 # Check whether --with-mbedtls was given.
24339 if test "${with_mbedtls+set}" = set; then :
24340 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24344 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24347 if test X"$OPT_MBEDTLS" != Xno; then
24349 if test "$OPT_MBEDTLS" = "yes"; then
24353 if test -z "$OPT_MBEDTLS" ; then
24355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24356 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24357 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24358 $as_echo_n "(cached) " >&6
24360 ac_check_lib_save_LIBS=$LIBS
24361 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24363 /* end confdefs.h. */
24369 char mbedtls_havege_init ();
24372 return mbedtls_havege_init ();
24377 if ac_fn_c_try_link "$LINENO"; then :
24378 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24380 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24382 rm -f core conftest.err conftest.$ac_objext \
24383 conftest$ac_exeext conftest.$ac_ext
24384 LIBS=$ac_check_lib_save_LIBS
24386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24387 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24388 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24391 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24398 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24409 if test "x$USE_MBEDTLS" != "xyes"; then
24410 addld=-L$OPT_MBEDTLS/lib$libsuff
24411 addcflags=-I$OPT_MBEDTLS/include
24412 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24414 LDFLAGS="$LDFLAGS $addld"
24415 if test "$addcflags" != "-I/usr/include"; then
24416 CPPFLAGS="$CPPFLAGS $addcflags"
24419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24420 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24421 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24422 $as_echo_n "(cached) " >&6
24424 ac_check_lib_save_LIBS=$LIBS
24425 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24427 /* end confdefs.h. */
24433 char mbedtls_ssl_init ();
24436 return mbedtls_ssl_init ();
24441 if ac_fn_c_try_link "$LINENO"; then :
24442 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24444 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24446 rm -f core conftest.err conftest.$ac_objext \
24447 conftest$ac_exeext conftest.$ac_ext
24448 LIBS=$ac_check_lib_save_LIBS
24450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24451 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24452 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24455 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24462 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24466 CPPFLAGS=$_cppflags
24473 if test "x$USE_MBEDTLS" = "xyes"; then
24474 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24475 $as_echo "$as_me: detected mbedTLS" >&6;}
24476 check_for_ca_bundle=1
24478 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24480 if test -n "$mbedtlslib"; then
24481 if test "x$cross_compiling" != "xyes"; then
24482 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
24483 export CURL_LIBRARY_PATH
24484 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
24485 $as_echo "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
24491 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24497 _cppflags=$CPPFLAGS
24501 # Check whether --with-wolfssl was given.
24502 if test "${with_wolfssl+set}" = set; then :
24503 withval=$with_wolfssl; OPT_WOLFSSL=$withval
24507 if test -z "$ssl_backends" -o "x$OPT_WOLFSSL" != xno; then
24510 if test X"$OPT_WOLFSSL" != Xno; then
24512 if test "$OPT_WOLFSSL" = "yes"; then
24520 if test "x$USE_WOLFSSL" != "xyes"; then
24521 addld=-L$OPT_WOLFSSL/lib$libsuff
24522 addcflags=-I$OPT_WOLFSSL/include
24523 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
24525 LDFLAGS="$LDFLAGS $addld"
24526 if test "$addcflags" != "-I/usr/include"; then
24527 CPPFLAGS="$CPPFLAGS $addcflags"
24530 my_ac_save_LIBS="$LIBS"
24531 LIBS="-lwolfssl -lm $LIBS"
24533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
24534 $as_echo_n "checking for wolfSSL_Init in -lwolfssl... " >&6; }
24535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h. */
24539 /* These aren't needed for detection and confuse WolfSSL.
24540 They are set up properly later if it is detected. */
24542 #undef SIZEOF_LONG_LONG
24543 #include <wolfssl/ssl.h>
24548 return wolfSSL_Init();
24555 if ac_fn_c_try_link "$LINENO"; then :
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24558 $as_echo "yes" >&6; }
24560 $as_echo "#define USE_WOLFSSL 1" >>confdefs.h
24567 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24572 $as_echo "no" >&6; }
24573 CPPFLAGS=$_cppflags
24578 rm -f core conftest.err conftest.$ac_objext \
24579 conftest$ac_exeext conftest.$ac_ext
24580 LIBS="$my_ac_save_LIBS"
24583 if test "x$USE_WOLFSSL" = "xyes"; then
24584 { $as_echo "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
24585 $as_echo "$as_me: detected wolfSSL" >&6;}
24586 check_for_ca_bundle=1
24588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24589 $as_echo_n "checking size of long long... " >&6; }
24590 if ${ac_cv_sizeof_long_long+:} false; then :
24591 $as_echo_n "(cached) " >&6
24593 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
24594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24595 /* end confdefs.h. */
24597 #include <sys/types.h>
24602 switch (0) case 0: case (sizeof (long long) == $ac_size):;
24607 if ac_fn_c_try_compile "$LINENO"; then :
24608 ac_cv_sizeof_long_long=$ac_size
24610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24611 if test x$ac_cv_sizeof_long_long != x ; then break; fi
24616 if test x$ac_cv_sizeof_long_long = x ; then
24617 as_fn_error $? "cannot determine a size for long long" "$LINENO" 5
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24620 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24622 cat >>confdefs.h <<_ACEOF
24623 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24628 LIBS="-lwolfssl -lm $LIBS"
24630 for ac_func in wolfSSLv3_client_method \
24631 wolfSSL_get_peer_certificate \
24634 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24635 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24636 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24637 cat >>confdefs.h <<_ACEOF
24638 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24645 if test -n "$wolfssllibpath"; then
24646 if test "x$cross_compiling" != "xyes"; then
24647 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
24648 export CURL_LIBRARY_PATH
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
24650 $as_echo "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
24657 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24663 _cppflags=$CPPFLAGS
24666 # Check whether --with-mesalink was given.
24667 if test "${with_mesalink+set}" = set; then :
24668 withval=$with_mesalink; OPT_MESALINK=$withval
24672 if test -z "$ssl_backends" -o "x$OPT_MESALINK" != xno; then
24675 if test X"$OPT_MESALINK" != Xno; then
24677 if test "$OPT_MESALINK" = "yes"; then
24681 if test -z "$OPT_MESALINK" ; then
24683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24684 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24685 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24686 $as_echo_n "(cached) " >&6
24688 ac_check_lib_save_LIBS=$LIBS
24689 LIBS="-lmesalink $LIBS"
24690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24691 /* end confdefs.h. */
24697 char mesalink_library_init ();
24700 return mesalink_library_init ();
24705 if ac_fn_c_try_link "$LINENO"; then :
24706 ac_cv_lib_mesalink_mesalink_library_init=yes
24708 ac_cv_lib_mesalink_mesalink_library_init=no
24710 rm -f core conftest.err conftest.$ac_objext \
24711 conftest$ac_exeext conftest.$ac_ext
24712 LIBS=$ac_check_lib_save_LIBS
24714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24715 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24716 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24719 $as_echo "#define USE_MESALINK 1" >>confdefs.h
24726 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24737 if test "x$USE_MESALINK" != "xyes"; then
24738 addld=-L$OPT_MESALINK/lib$libsuff
24739 addcflags=-I$OPT_MESALINK/include
24740 mesalinklib=$OPT_MESALINK/lib$libsuff
24742 LDFLAGS="$LDFLAGS $addld"
24743 if test "$addcflags" != "-I/usr/include"; then
24744 CPPFLAGS="$CPPFLAGS $addcflags"
24747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mesalink_library_init in -lmesalink" >&5
24748 $as_echo_n "checking for mesalink_library_init in -lmesalink... " >&6; }
24749 if ${ac_cv_lib_mesalink_mesalink_library_init+:} false; then :
24750 $as_echo_n "(cached) " >&6
24752 ac_check_lib_save_LIBS=$LIBS
24753 LIBS="-lmesalink $LIBS"
24754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24755 /* end confdefs.h. */
24761 char mesalink_library_init ();
24764 return mesalink_library_init ();
24769 if ac_fn_c_try_link "$LINENO"; then :
24770 ac_cv_lib_mesalink_mesalink_library_init=yes
24772 ac_cv_lib_mesalink_mesalink_library_init=no
24774 rm -f core conftest.err conftest.$ac_objext \
24775 conftest$ac_exeext conftest.$ac_ext
24776 LIBS=$ac_check_lib_save_LIBS
24778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mesalink_mesalink_library_init" >&5
24779 $as_echo "$ac_cv_lib_mesalink_mesalink_library_init" >&6; }
24780 if test "x$ac_cv_lib_mesalink_mesalink_library_init" = xyes; then :
24783 $as_echo "#define USE_MESALINK 1" >>confdefs.h
24790 test mesalink != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24794 CPPFLAGS=$_cppflags
24801 if test "x$USE_MESALINK" = "xyes"; then
24802 { $as_echo "$as_me:${as_lineno-$LINENO}: detected MesaLink" >&5
24803 $as_echo "$as_me: detected MesaLink" >&6;}
24805 LIBS="-lmesalink $LIBS"
24807 if test -n "$mesalinklib"; then
24808 if test "x$cross_compiling" != "xyes"; then
24809 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mesalinklib"
24810 export LD_LIBRARY_PATH
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mesalinklib to LD_LIBRARY_PATH" >&5
24812 $as_echo "$as_me: Added $mesalinklib to LD_LIBRARY_PATH" >&6;}
24818 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24824 _cppflags=$CPPFLAGS
24827 # Check whether --with-bearssl was given.
24828 if test "${with_bearssl+set}" = set; then :
24829 withval=$with_bearssl; OPT_BEARSSL=$withval
24833 if test -z "$ssl_backends" -o "x$OPT_BEARSSL" != xno; then
24836 if test X"$OPT_BEARSSL" != Xno; then
24838 if test "$OPT_BEARSSL" = "yes"; then
24842 if test -z "$OPT_BEARSSL" ; then
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
24845 $as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
24846 if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
24847 $as_echo_n "(cached) " >&6
24849 ac_check_lib_save_LIBS=$LIBS
24850 LIBS="-lbearssl -lbearssl $LIBS"
24851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24852 /* end confdefs.h. */
24858 char br_ssl_client_init_full ();
24861 return br_ssl_client_init_full ();
24866 if ac_fn_c_try_link "$LINENO"; then :
24867 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
24869 ac_cv_lib_bearssl_br_ssl_client_init_full=no
24871 rm -f core conftest.err conftest.$ac_objext \
24872 conftest$ac_exeext conftest.$ac_ext
24873 LIBS=$ac_check_lib_save_LIBS
24875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
24876 $as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
24877 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
24880 $as_echo "#define USE_BEARSSL 1" >>confdefs.h
24887 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24898 if test "x$USE_BEARSSL" != "xyes"; then
24899 addld=-L$OPT_BEARSSL/lib$libsuff
24900 addcflags=-I$OPT_BEARSSL/include
24901 bearssllib=$OPT_BEARSSL/lib$libsuff
24903 LDFLAGS="$LDFLAGS $addld"
24904 if test "$addcflags" != "-I/usr/include"; then
24905 CPPFLAGS="$CPPFLAGS $addcflags"
24908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
24909 $as_echo_n "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
24910 if ${ac_cv_lib_bearssl_br_ssl_client_init_full+:} false; then :
24911 $as_echo_n "(cached) " >&6
24913 ac_check_lib_save_LIBS=$LIBS
24914 LIBS="-lbearssl -lbearssl $LIBS"
24915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24916 /* end confdefs.h. */
24922 char br_ssl_client_init_full ();
24925 return br_ssl_client_init_full ();
24930 if ac_fn_c_try_link "$LINENO"; then :
24931 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
24933 ac_cv_lib_bearssl_br_ssl_client_init_full=no
24935 rm -f core conftest.err conftest.$ac_objext \
24936 conftest$ac_exeext conftest.$ac_ext
24937 LIBS=$ac_check_lib_save_LIBS
24939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
24940 $as_echo "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
24941 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes; then :
24944 $as_echo "#define USE_BEARSSL 1" >>confdefs.h
24951 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24955 CPPFLAGS=$_cppflags
24962 if test "x$USE_BEARSSL" = "xyes"; then
24963 { $as_echo "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
24964 $as_echo "$as_me: detected BearSSL" >&6;}
24965 check_for_ca_bundle=1
24967 LIBS="-lbearssl $LIBS"
24969 if test -n "$bearssllib"; then
24970 if test "x$cross_compiling" != "xyes"; then
24971 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
24972 export CURL_LIBRARY_PATH
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
24974 $as_echo "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
24980 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24987 # Check whether --with-nss was given.
24988 if test "${with_nss+set}" = set; then :
24989 withval=$with_nss; OPT_NSS=$withval
24993 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
24996 if test X"$OPT_NSS" != Xno; then
25004 if test "x$OPT_NSS" = "xyes"; then
25007 if test -n "$PKG_CONFIG"; then
25008 PKGCONFIG="$PKG_CONFIG"
25010 if test -n "$ac_tool_prefix"; then
25011 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25012 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25014 $as_echo_n "checking for $ac_word... " >&6; }
25015 if ${ac_cv_path_PKGCONFIG+:} false; then :
25016 $as_echo_n "(cached) " >&6
25020 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25024 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25025 for as_dir in $as_dummy
25028 test -z "$as_dir" && as_dir=.
25029 for ac_exec_ext in '' $ac_executable_extensions; do
25030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25031 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25032 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25042 PKGCONFIG=$ac_cv_path_PKGCONFIG
25043 if test -n "$PKGCONFIG"; then
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25045 $as_echo "$PKGCONFIG" >&6; }
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25048 $as_echo "no" >&6; }
25053 if test -z "$ac_cv_path_PKGCONFIG"; then
25054 ac_pt_PKGCONFIG=$PKGCONFIG
25055 # Extract the first word of "pkg-config", so it can be a program name with args.
25056 set dummy pkg-config; ac_word=$2
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25058 $as_echo_n "checking for $ac_word... " >&6; }
25059 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25060 $as_echo_n "(cached) " >&6
25062 case $ac_pt_PKGCONFIG in
25064 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25068 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25069 for as_dir in $as_dummy
25072 test -z "$as_dir" && as_dir=.
25073 for ac_exec_ext in '' $ac_executable_extensions; do
25074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25075 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25086 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25087 if test -n "$ac_pt_PKGCONFIG"; then
25088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25089 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25092 $as_echo "no" >&6; }
25095 if test "x$ac_pt_PKGCONFIG" = x; then
25098 case $cross_compiling:$ac_tool_warned in
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25101 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25102 ac_tool_warned=yes ;;
25104 PKGCONFIG=$ac_pt_PKGCONFIG
25107 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25112 if test "x$PKGCONFIG" != "xno"; then
25113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25114 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25116 if test -n ""; then
25117 PKG_CONFIG_LIBDIR=""
25118 export PKG_CONFIG_LIBDIR
25120 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25122 if test -z "$itexists"; then
25124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25125 $as_echo "no" >&6; }
25127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25128 $as_echo "found" >&6; }
25133 if test "$PKGCONFIG" != "no" ; then
25134 addlib=`$PKGCONFIG --libs nss`
25135 addcflags=`$PKGCONFIG --cflags nss`
25136 version=`$PKGCONFIG --modversion nss`
25137 nssprefix=`$PKGCONFIG --variable=prefix nss`
25140 check=`nss-config --version 2>/dev/null`
25141 if test -n "$check"; then
25142 addlib=`nss-config --libs`
25143 addcflags=`nss-config --cflags`
25144 version=`nss-config --version`
25145 nssprefix=`nss-config --prefix`
25153 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25154 if test -f "$NSS_PCDIR/nss.pc"; then
25156 if test -n "$PKG_CONFIG"; then
25157 PKGCONFIG="$PKG_CONFIG"
25159 if test -n "$ac_tool_prefix"; then
25160 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25161 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25163 $as_echo_n "checking for $ac_word... " >&6; }
25164 if ${ac_cv_path_PKGCONFIG+:} false; then :
25165 $as_echo_n "(cached) " >&6
25169 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25173 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25174 for as_dir in $as_dummy
25177 test -z "$as_dir" && as_dir=.
25178 for ac_exec_ext in '' $ac_executable_extensions; do
25179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25180 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25191 PKGCONFIG=$ac_cv_path_PKGCONFIG
25192 if test -n "$PKGCONFIG"; then
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25194 $as_echo "$PKGCONFIG" >&6; }
25196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25197 $as_echo "no" >&6; }
25202 if test -z "$ac_cv_path_PKGCONFIG"; then
25203 ac_pt_PKGCONFIG=$PKGCONFIG
25204 # Extract the first word of "pkg-config", so it can be a program name with args.
25205 set dummy pkg-config; ac_word=$2
25206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25207 $as_echo_n "checking for $ac_word... " >&6; }
25208 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25209 $as_echo_n "(cached) " >&6
25211 case $ac_pt_PKGCONFIG in
25213 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25217 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25218 for as_dir in $as_dummy
25221 test -z "$as_dir" && as_dir=.
25222 for ac_exec_ext in '' $ac_executable_extensions; do
25223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25224 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25235 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25236 if test -n "$ac_pt_PKGCONFIG"; then
25237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25238 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25241 $as_echo "no" >&6; }
25244 if test "x$ac_pt_PKGCONFIG" = x; then
25247 case $cross_compiling:$ac_tool_warned in
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25251 ac_tool_warned=yes ;;
25253 PKGCONFIG=$ac_pt_PKGCONFIG
25256 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25261 if test "x$PKGCONFIG" != "xno"; then
25262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25263 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25265 if test -n "$NSS_PCDIR"; then
25266 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25267 export PKG_CONFIG_LIBDIR
25269 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25271 if test -z "$itexists"; then
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25274 $as_echo "no" >&6; }
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25277 $as_echo "found" >&6; }
25281 if test "$PKGCONFIG" != "no" ; then
25283 if test -n "$NSS_PCDIR"; then
25284 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25285 export PKG_CONFIG_LIBDIR
25287 $PKGCONFIG --libs-only-L nss`
25289 if test -n "$NSS_PCDIR"; then
25290 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25291 export PKG_CONFIG_LIBDIR
25293 $PKGCONFIG --libs-only-l nss`
25295 if test -n "$NSS_PCDIR"; then
25296 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25297 export PKG_CONFIG_LIBDIR
25299 $PKGCONFIG --cflags nss`
25301 if test -n "$NSS_PCDIR"; then
25302 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25303 export PKG_CONFIG_LIBDIR
25305 $PKGCONFIG --modversion nss`
25307 if test -n "$NSS_PCDIR"; then
25308 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25309 export PKG_CONFIG_LIBDIR
25311 $PKGCONFIG --variable=prefix nss`
25316 if test -z "$addlib"; then
25317 # Without pkg-config, we'll kludge in some defaults
25318 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25319 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25320 addld="-L$OPT_NSS/lib"
25321 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25322 addcflags="-I$OPT_NSS/include"
25327 CLEANLDFLAGS="$LDFLAGS"
25329 CLEANCPPFLAGS="$CPPFLAGS"
25331 LDFLAGS="$addld $LDFLAGS"
25332 LIBS="$addlib $LIBS"
25333 if test "$addcflags" != "-I/usr/include"; then
25334 CPPFLAGS="$CPPFLAGS $addcflags"
25337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25338 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25339 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25340 $as_echo_n "(cached) " >&6
25342 ac_check_lib_save_LIBS=$LIBS
25343 LIBS="-lnss3 $LIBS"
25344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25345 /* end confdefs.h. */
25351 char SSL_VersionRangeSet ();
25354 return SSL_VersionRangeSet ();
25359 if ac_fn_c_try_link "$LINENO"; then :
25360 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25362 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25364 rm -f core conftest.err conftest.$ac_objext \
25365 conftest$ac_exeext conftest.$ac_ext
25366 LIBS=$ac_check_lib_save_LIBS
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25369 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25370 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25373 $as_echo "#define USE_NSS 1" >>confdefs.h
25380 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25384 LDFLAGS="$CLEANLDFLAGS"
25386 CPPFLAGS="$CLEANCPPFLAGS"
25391 if test "x$USE_NSS" = "xyes"; then
25392 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25393 $as_echo "$as_me: detected NSS version $version" >&6;}
25395 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25396 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25399 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25408 if test "x$cross_compiling" != "xyes"; then
25409 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
25410 export CURL_LIBRARY_PATH
25411 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
25412 $as_echo "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
25417 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25420 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$WINSSL_ENABLED$SECURETRANSPORT_ENABLED$MESALINK_ENABLED$BEARSSL_ENABLED$AMISSL_ENABLED" in
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25423 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25424 { $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
25425 $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;}
25428 # one SSL backend is enabled
25431 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25432 $as_echo "$as_me: built with one SSL backend" >&6;}
25435 # more than one SSL backend is enabled
25439 CURL_WITH_MULTI_SSL="1"
25441 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25443 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25444 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25448 if test -n "$ssl_backends"; then
25449 curl_ssl_msg="enabled ($ssl_backends)"
25452 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25454 if test -n "$SSL_ENABLED"
25456 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25458 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25460 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25463 cat >>confdefs.h <<_ACEOF
25464 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25470 if test -n "$check_for_ca_bundle"; then
25473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25474 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25477 # Check whether --with-ca-bundle was given.
25478 if test "${with_ca_bundle+set}" = set; then :
25479 withval=$with_ca_bundle;
25481 if test "x$want_ca" = "xyes"; then
25482 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25490 # Check whether --with-ca-path was given.
25491 if test "${with_ca_path+set}" = set; then :
25492 withval=$with_ca_path;
25493 want_capath="$withval"
25494 if test "x$want_capath" = "xyes"; then
25495 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25499 want_capath="unset"
25503 ca_warning=" (warning: certs not found)"
25504 capath_warning=" (warning: certs not found)"
25507 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25508 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25510 capath="$want_capath"
25511 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25514 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25515 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25516 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25518 capath="$want_capath"
25523 if test "x$cross_compiling" != "xyes"; then
25524 if test "x$want_ca" = "xunset"; then
25525 if test "x$prefix" != xNONE; then
25526 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25528 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25531 for a in /etc/ssl/certs/ca-certificates.crt \
25532 /etc/pki/tls/certs/ca-bundle.crt \
25533 /usr/share/ssl/certs/ca-bundle.crt \
25534 /usr/local/share/certs/ca-root-nss.crt \
25535 /etc/ssl/cert.pem \
25537 if test -f "$a"; then
25543 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25544 "x$OPENSSL_ENABLED" = "x1"; then
25545 check_capath="/etc/ssl/certs/"
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25549 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25553 if test "x$ca" = "xno" || test -f "$ca"; then
25557 if test "x$capath" != "xno"; then
25558 check_capath="$capath"
25561 if test ! -z "$check_capath"; then
25562 for a in "$check_capath"; do
25563 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
25564 if test "x$capath" = "xno"; then
25573 if test "x$capath" = "xno"; then
25577 if test "x$ca" != "xno"; then
25578 CURL_CA_BUNDLE='"'$ca'"'
25580 cat >>confdefs.h <<_ACEOF
25581 #define CURL_CA_BUNDLE "$ca"
25585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25586 $as_echo "$ca" >&6; }
25588 if test "x$capath" != "xno"; then
25589 CURL_CA_PATH="\"$capath\""
25591 cat >>confdefs.h <<_ACEOF
25592 #define CURL_CA_PATH "$capath"
25595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25596 $as_echo "$capath (capath)" >&6; }
25598 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25600 $as_echo "no" >&6; }
25603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25604 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25606 # Check whether --with-ca-fallback was given.
25607 if test "${with_ca_fallback+set}" = set; then :
25608 withval=$with_ca_fallback;
25609 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25610 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25614 with_ca_fallback="no"
25617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25618 $as_echo "$with_ca_fallback" >&6; }
25619 if test "x$with_ca_fallback" = "xyes"; then
25620 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25621 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25624 cat >>confdefs.h <<_ACEOF
25625 #define CURL_CA_FALLBACK 1
25634 # Check whether --with-libpsl was given.
25635 if test "${with_libpsl+set}" = set; then :
25636 withval=$with_libpsl; with_libpsl=$withval
25641 if test $with_libpsl != "no"; then
25642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25643 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25644 if ${ac_cv_search_psl_builtin+:} false; then :
25645 $as_echo_n "(cached) " >&6
25647 ac_func_search_save_LIBS=$LIBS
25648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25649 /* end confdefs.h. */
25655 char psl_builtin ();
25658 return psl_builtin ();
25663 for ac_lib in '' psl; do
25664 if test -z "$ac_lib"; then
25665 ac_res="none required"
25668 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25670 if ac_fn_c_try_link "$LINENO"; then :
25671 ac_cv_search_psl_builtin=$ac_res
25673 rm -f core conftest.err conftest.$ac_objext \
25675 if ${ac_cv_search_psl_builtin+:} false; then :
25679 if ${ac_cv_search_psl_builtin+:} false; then :
25682 ac_cv_search_psl_builtin=no
25684 rm conftest.$ac_ext
25685 LIBS=$ac_func_search_save_LIBS
25687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25688 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25689 ac_res=$ac_cv_search_psl_builtin
25690 if test "$ac_res" != no; then :
25691 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25692 curl_psl_msg="enabled";
25694 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25698 curl_psl_msg="no (libpsl not found)";
25699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25700 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25706 if test "$curl_psl_msg" = "enabled"; then
25708 USE_LIBPSL_FALSE='#'
25710 USE_LIBPSL_TRUE='#'
25719 # Check whether --with-libmetalink was given.
25720 if test "${with_libmetalink+set}" = set; then :
25721 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25725 if test X"$OPT_LIBMETALINK" != Xno; then
25734 if test "x$OPT_LIBMETALINK" = "xyes"; then
25737 if test -n "$PKG_CONFIG"; then
25738 PKGCONFIG="$PKG_CONFIG"
25740 if test -n "$ac_tool_prefix"; then
25741 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25742 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25744 $as_echo_n "checking for $ac_word... " >&6; }
25745 if ${ac_cv_path_PKGCONFIG+:} false; then :
25746 $as_echo_n "(cached) " >&6
25750 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25754 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25755 for as_dir in $as_dummy
25758 test -z "$as_dir" && as_dir=.
25759 for ac_exec_ext in '' $ac_executable_extensions; do
25760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25761 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25772 PKGCONFIG=$ac_cv_path_PKGCONFIG
25773 if test -n "$PKGCONFIG"; then
25774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25775 $as_echo "$PKGCONFIG" >&6; }
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25778 $as_echo "no" >&6; }
25783 if test -z "$ac_cv_path_PKGCONFIG"; then
25784 ac_pt_PKGCONFIG=$PKGCONFIG
25785 # Extract the first word of "pkg-config", so it can be a program name with args.
25786 set dummy pkg-config; ac_word=$2
25787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25788 $as_echo_n "checking for $ac_word... " >&6; }
25789 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25790 $as_echo_n "(cached) " >&6
25792 case $ac_pt_PKGCONFIG in
25794 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25798 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25799 for as_dir in $as_dummy
25802 test -z "$as_dir" && as_dir=.
25803 for ac_exec_ext in '' $ac_executable_extensions; do
25804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25805 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25816 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25817 if test -n "$ac_pt_PKGCONFIG"; then
25818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25819 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25822 $as_echo "no" >&6; }
25825 if test "x$ac_pt_PKGCONFIG" = x; then
25828 case $cross_compiling:$ac_tool_warned in
25830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25832 ac_tool_warned=yes ;;
25834 PKGCONFIG=$ac_pt_PKGCONFIG
25837 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25842 if test "x$PKGCONFIG" != "xno"; then
25843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25844 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25846 if test -n ""; then
25847 PKG_CONFIG_LIBDIR=""
25848 export PKG_CONFIG_LIBDIR
25850 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25852 if test -z "$itexists"; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25855 $as_echo "no" >&6; }
25857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25858 $as_echo "found" >&6; }
25863 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25864 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25865 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25866 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25869 if test "$PKGTEST" = "yes"; then
25871 if test -n "$PKG_CONFIG"; then
25872 PKGCONFIG="$PKG_CONFIG"
25874 if test -n "$ac_tool_prefix"; then
25875 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25876 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25878 $as_echo_n "checking for $ac_word... " >&6; }
25879 if ${ac_cv_path_PKGCONFIG+:} false; then :
25880 $as_echo_n "(cached) " >&6
25884 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25888 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25889 for as_dir in $as_dummy
25892 test -z "$as_dir" && as_dir=.
25893 for ac_exec_ext in '' $ac_executable_extensions; do
25894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25895 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25906 PKGCONFIG=$ac_cv_path_PKGCONFIG
25907 if test -n "$PKGCONFIG"; then
25908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25909 $as_echo "$PKGCONFIG" >&6; }
25911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25912 $as_echo "no" >&6; }
25917 if test -z "$ac_cv_path_PKGCONFIG"; then
25918 ac_pt_PKGCONFIG=$PKGCONFIG
25919 # Extract the first word of "pkg-config", so it can be a program name with args.
25920 set dummy pkg-config; ac_word=$2
25921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25922 $as_echo_n "checking for $ac_word... " >&6; }
25923 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25924 $as_echo_n "(cached) " >&6
25926 case $ac_pt_PKGCONFIG in
25928 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25932 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25933 for as_dir in $as_dummy
25936 test -z "$as_dir" && as_dir=.
25937 for ac_exec_ext in '' $ac_executable_extensions; do
25938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25939 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25950 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25951 if test -n "$ac_pt_PKGCONFIG"; then
25952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25953 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25956 $as_echo "no" >&6; }
25959 if test "x$ac_pt_PKGCONFIG" = x; then
25962 case $cross_compiling:$ac_tool_warned in
25964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25965 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25966 ac_tool_warned=yes ;;
25968 PKGCONFIG=$ac_pt_PKGCONFIG
25971 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25976 if test "x$PKGCONFIG" != "xno"; then
25977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25978 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25980 if test -n "$LIBMETALINK_PCDIR"; then
25981 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
25982 export PKG_CONFIG_LIBDIR
25984 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25986 if test -z "$itexists"; then
25988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25989 $as_echo "no" >&6; }
25991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25992 $as_echo "found" >&6; }
25998 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26000 if test -n "$LIBMETALINK_PCDIR"; then
26001 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26002 export PKG_CONFIG_LIBDIR
26004 $PKGCONFIG --libs-only-l libmetalink`
26006 if test -n "$LIBMETALINK_PCDIR"; then
26007 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26008 export PKG_CONFIG_LIBDIR
26010 $PKGCONFIG --libs-only-L libmetalink`
26012 if test -n "$LIBMETALINK_PCDIR"; then
26013 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26014 export PKG_CONFIG_LIBDIR
26016 $PKGCONFIG --cflags-only-I libmetalink`
26018 if test -n "$LIBMETALINK_PCDIR"; then
26019 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26020 export PKG_CONFIG_LIBDIR
26022 $PKGCONFIG --modversion libmetalink`
26023 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26025 if test -n "$addlib"; then
26027 clean_CPPFLAGS="$CPPFLAGS"
26028 clean_LDFLAGS="$LDFLAGS"
26030 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26031 LDFLAGS="$clean_LDFLAGS $addld"
26032 LIBS="$addlib $clean_LIBS"
26033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26034 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
26035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26036 /* end confdefs.h. */
26039 # include <metalink/metalink.h>
26044 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26052 if ac_fn_c_try_link "$LINENO"; then :
26054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26055 $as_echo "yes ($version)" >&6; }
26056 want_metalink="yes"
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26061 $as_echo "no ($version)" >&6; }
26062 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26063 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
26067 rm -f core conftest.err conftest.$ac_objext \
26068 conftest$ac_exeext conftest.$ac_ext
26069 CPPFLAGS="$clean_CPPFLAGS"
26070 LDFLAGS="$clean_LDFLAGS"
26072 if test "$want_metalink" = "yes"; then
26074 $as_echo "#define USE_METALINK 1" >>confdefs.h
26076 LIBMETALINK_LIBS=$addlib
26077 LIBMETALINK_LDFLAGS=$addld
26078 LIBMETALINK_CPPFLAGS=$addcflags
26082 curl_mtlnk_msg="enabled"
26091 # Check whether --with-libssh2 was given.
26092 if test "${with_libssh2+set}" = set; then :
26093 withval=$with_libssh2; OPT_LIBSSH2=$withval
26102 # Check whether --with-libssh was given.
26103 if test "${with_libssh+set}" = set; then :
26104 withval=$with_libssh; OPT_LIBSSH=$withval
26110 if test X"$OPT_LIBSSH2" != Xno; then
26111 CLEANLDFLAGS="$LDFLAGS"
26112 CLEANCPPFLAGS="$CPPFLAGS"
26115 case "$OPT_LIBSSH2" in
26118 if test -n "$PKG_CONFIG"; then
26119 PKGCONFIG="$PKG_CONFIG"
26121 if test -n "$ac_tool_prefix"; then
26122 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26123 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26125 $as_echo_n "checking for $ac_word... " >&6; }
26126 if ${ac_cv_path_PKGCONFIG+:} false; then :
26127 $as_echo_n "(cached) " >&6
26131 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26135 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26136 for as_dir in $as_dummy
26139 test -z "$as_dir" && as_dir=.
26140 for ac_exec_ext in '' $ac_executable_extensions; do
26141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26142 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26153 PKGCONFIG=$ac_cv_path_PKGCONFIG
26154 if test -n "$PKGCONFIG"; then
26155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26156 $as_echo "$PKGCONFIG" >&6; }
26158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26159 $as_echo "no" >&6; }
26164 if test -z "$ac_cv_path_PKGCONFIG"; then
26165 ac_pt_PKGCONFIG=$PKGCONFIG
26166 # Extract the first word of "pkg-config", so it can be a program name with args.
26167 set dummy pkg-config; ac_word=$2
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26169 $as_echo_n "checking for $ac_word... " >&6; }
26170 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26171 $as_echo_n "(cached) " >&6
26173 case $ac_pt_PKGCONFIG in
26175 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26179 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26180 for as_dir in $as_dummy
26183 test -z "$as_dir" && as_dir=.
26184 for ac_exec_ext in '' $ac_executable_extensions; do
26185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26186 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26197 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26198 if test -n "$ac_pt_PKGCONFIG"; then
26199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26200 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26203 $as_echo "no" >&6; }
26206 if test "x$ac_pt_PKGCONFIG" = x; then
26209 case $cross_compiling:$ac_tool_warned in
26211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26213 ac_tool_warned=yes ;;
26215 PKGCONFIG=$ac_pt_PKGCONFIG
26218 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26223 if test "x$PKGCONFIG" != "xno"; then
26224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26225 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26227 if test -n ""; then
26228 PKG_CONFIG_LIBDIR=""
26229 export PKG_CONFIG_LIBDIR
26231 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26233 if test -z "$itexists"; then
26235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26236 $as_echo "no" >&6; }
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26239 $as_echo "found" >&6; }
26244 if test "$PKGCONFIG" != "no" ; then
26245 LIB_SSH2=`$PKGCONFIG --libs libssh2`
26246 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26247 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26248 version=`$PKGCONFIG --modversion libssh2`
26249 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26256 PREFIX_SSH2=$OPT_LIBSSH2
26260 if test -n "$PREFIX_SSH2"; then
26262 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26263 CPP_SSH2=-I${PREFIX_SSH2}/include
26264 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26267 LDFLAGS="$LDFLAGS $LD_SSH2"
26268 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26269 LIBS="$LIB_SSH2 $LIBS"
26271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26272 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26273 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26274 $as_echo_n "(cached) " >&6
26276 ac_check_lib_save_LIBS=$LIBS
26277 LIBS="-lssh2 $LIBS"
26278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26279 /* end confdefs.h. */
26285 char libssh2_channel_open_ex ();
26288 return libssh2_channel_open_ex ();
26293 if ac_fn_c_try_link "$LINENO"; then :
26294 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26296 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26298 rm -f core conftest.err conftest.$ac_objext \
26299 conftest$ac_exeext conftest.$ac_ext
26300 LIBS=$ac_check_lib_save_LIBS
26302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26303 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26304 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26305 cat >>confdefs.h <<_ACEOF
26306 #define HAVE_LIBSSH2 1
26309 LIBS="-lssh2 $LIBS"
26314 for ac_header in libssh2.h
26316 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26317 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26318 cat >>confdefs.h <<_ACEOF
26319 #define HAVE_LIBSSH2_H 1
26321 curl_ssh_msg="enabled (libSSH2)"
26324 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26334 if test X"$OPT_LIBSSH2" != Xoff &&
26335 test "$LIBSSH2_ENABLED" != "1"; then
26336 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26339 if test "$LIBSSH2_ENABLED" = "1"; then
26340 if test -n "$DIR_SSH2"; then
26342 if test "x$cross_compiling" != "xyes"; then
26343 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
26344 export CURL_LIBRARY_PATH
26345 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
26346 $as_echo "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
26350 LDFLAGS=$CLEANLDFLAGS
26351 CPPFLAGS=$CLEANCPPFLAGS
26354 elif test X"$OPT_LIBSSH" != Xno; then
26355 CLEANLDFLAGS="$LDFLAGS"
26356 CLEANCPPFLAGS="$CPPFLAGS"
26359 case "$OPT_LIBSSH" in
26362 if test -n "$PKG_CONFIG"; then
26363 PKGCONFIG="$PKG_CONFIG"
26365 if test -n "$ac_tool_prefix"; then
26366 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26367 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26369 $as_echo_n "checking for $ac_word... " >&6; }
26370 if ${ac_cv_path_PKGCONFIG+:} false; then :
26371 $as_echo_n "(cached) " >&6
26375 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26379 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26380 for as_dir in $as_dummy
26383 test -z "$as_dir" && as_dir=.
26384 for ac_exec_ext in '' $ac_executable_extensions; do
26385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26386 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26397 PKGCONFIG=$ac_cv_path_PKGCONFIG
26398 if test -n "$PKGCONFIG"; then
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26400 $as_echo "$PKGCONFIG" >&6; }
26402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26403 $as_echo "no" >&6; }
26408 if test -z "$ac_cv_path_PKGCONFIG"; then
26409 ac_pt_PKGCONFIG=$PKGCONFIG
26410 # Extract the first word of "pkg-config", so it can be a program name with args.
26411 set dummy pkg-config; ac_word=$2
26412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26413 $as_echo_n "checking for $ac_word... " >&6; }
26414 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26415 $as_echo_n "(cached) " >&6
26417 case $ac_pt_PKGCONFIG in
26419 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26423 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26424 for as_dir in $as_dummy
26427 test -z "$as_dir" && as_dir=.
26428 for ac_exec_ext in '' $ac_executable_extensions; do
26429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26430 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26441 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26442 if test -n "$ac_pt_PKGCONFIG"; then
26443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26444 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26447 $as_echo "no" >&6; }
26450 if test "x$ac_pt_PKGCONFIG" = x; then
26453 case $cross_compiling:$ac_tool_warned in
26455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26457 ac_tool_warned=yes ;;
26459 PKGCONFIG=$ac_pt_PKGCONFIG
26462 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26467 if test "x$PKGCONFIG" != "xno"; then
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26469 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
26471 if test -n ""; then
26472 PKG_CONFIG_LIBDIR=""
26473 export PKG_CONFIG_LIBDIR
26475 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26477 if test -z "$itexists"; then
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26480 $as_echo "no" >&6; }
26482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26483 $as_echo "found" >&6; }
26488 if test "$PKGCONFIG" != "no" ; then
26489 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26490 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26491 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26492 version=`$PKGCONFIG --modversion libssh`
26493 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26500 PREFIX_SSH=$OPT_LIBSSH
26504 if test -n "$PREFIX_SSH"; then
26506 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26507 CPP_SSH=-I${PREFIX_SSH}/include
26508 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26511 LDFLAGS="$LDFLAGS $LD_SSH"
26512 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26513 LIBS="$LIB_SSH $LIBS"
26515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26516 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
26517 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26518 $as_echo_n "(cached) " >&6
26520 ac_check_lib_save_LIBS=$LIBS
26522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26523 /* end confdefs.h. */
26537 if ac_fn_c_try_link "$LINENO"; then :
26538 ac_cv_lib_ssh_ssh_new=yes
26540 ac_cv_lib_ssh_ssh_new=no
26542 rm -f core conftest.err conftest.$ac_objext \
26543 conftest$ac_exeext conftest.$ac_ext
26544 LIBS=$ac_check_lib_save_LIBS
26546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26547 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26548 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26549 cat >>confdefs.h <<_ACEOF
26550 #define HAVE_LIBSSH 1
26558 for ac_header in libssh/libssh.h
26560 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26561 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26562 cat >>confdefs.h <<_ACEOF
26563 #define HAVE_LIBSSH_LIBSSH_H 1
26565 curl_ssh_msg="enabled (libSSH)"
26568 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
26578 if test X"$OPT_LIBSSH" != Xoff &&
26579 test "$LIBSSH_ENABLED" != "1"; then
26580 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26583 if test "$LIBSSH_ENABLED" = "1"; then
26584 if test -n "$DIR_SSH"; then
26586 if test "x$cross_compiling" != "xyes"; then
26587 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
26588 export CURL_LIBRARY_PATH
26589 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
26590 $as_echo "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
26594 LDFLAGS=$CLEANLDFLAGS
26595 CPPFLAGS=$CLEANCPPFLAGS
26603 # Check whether --with-librtmp was given.
26604 if test "${with_librtmp+set}" = set; then :
26605 withval=$with_librtmp; OPT_LIBRTMP=$withval
26609 if test X"$OPT_LIBRTMP" != Xno; then
26610 CLEANLDFLAGS="$LDFLAGS"
26611 CLEANCPPFLAGS="$CPPFLAGS"
26614 case "$OPT_LIBRTMP" in
26617 if test -n "$PKG_CONFIG"; then
26618 PKGCONFIG="$PKG_CONFIG"
26620 if test -n "$ac_tool_prefix"; then
26621 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26622 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26624 $as_echo_n "checking for $ac_word... " >&6; }
26625 if ${ac_cv_path_PKGCONFIG+:} false; then :
26626 $as_echo_n "(cached) " >&6
26630 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26634 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26635 for as_dir in $as_dummy
26638 test -z "$as_dir" && as_dir=.
26639 for ac_exec_ext in '' $ac_executable_extensions; do
26640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26641 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26652 PKGCONFIG=$ac_cv_path_PKGCONFIG
26653 if test -n "$PKGCONFIG"; then
26654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26655 $as_echo "$PKGCONFIG" >&6; }
26657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26658 $as_echo "no" >&6; }
26663 if test -z "$ac_cv_path_PKGCONFIG"; then
26664 ac_pt_PKGCONFIG=$PKGCONFIG
26665 # Extract the first word of "pkg-config", so it can be a program name with args.
26666 set dummy pkg-config; ac_word=$2
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26668 $as_echo_n "checking for $ac_word... " >&6; }
26669 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26670 $as_echo_n "(cached) " >&6
26672 case $ac_pt_PKGCONFIG in
26674 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26678 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26679 for as_dir in $as_dummy
26682 test -z "$as_dir" && as_dir=.
26683 for ac_exec_ext in '' $ac_executable_extensions; do
26684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26685 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26696 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26697 if test -n "$ac_pt_PKGCONFIG"; then
26698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26699 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26702 $as_echo "no" >&6; }
26705 if test "x$ac_pt_PKGCONFIG" = x; then
26708 case $cross_compiling:$ac_tool_warned in
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26711 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26712 ac_tool_warned=yes ;;
26714 PKGCONFIG=$ac_pt_PKGCONFIG
26717 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26722 if test "x$PKGCONFIG" != "xno"; then
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26724 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26726 if test -n ""; then
26727 PKG_CONFIG_LIBDIR=""
26728 export PKG_CONFIG_LIBDIR
26730 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26732 if test -z "$itexists"; then
26734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26735 $as_echo "no" >&6; }
26737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26738 $as_echo "found" >&6; }
26743 if test "$PKGCONFIG" != "no" ; then
26744 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26745 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26746 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26747 version=`$PKGCONFIG --modversion librtmp`
26748 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26750 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26759 PREFIX_RTMP=$OPT_LIBRTMP
26763 if test -n "$PREFIX_RTMP"; then
26764 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26765 CPP_RTMP=-I${PREFIX_RTMP}/include
26766 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26769 LDFLAGS="$LDFLAGS $LD_RTMP"
26770 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26771 LIBS="$LIB_RTMP $LIBS"
26773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26774 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26775 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26776 $as_echo_n "(cached) " >&6
26778 ac_check_lib_save_LIBS=$LIBS
26779 LIBS="-lrtmp $LIBS"
26780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26781 /* end confdefs.h. */
26790 return RTMP_Init ();
26795 if ac_fn_c_try_link "$LINENO"; then :
26796 ac_cv_lib_rtmp_RTMP_Init=yes
26798 ac_cv_lib_rtmp_RTMP_Init=no
26800 rm -f core conftest.err conftest.$ac_objext \
26801 conftest$ac_exeext conftest.$ac_ext
26802 LIBS=$ac_check_lib_save_LIBS
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26805 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26806 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26808 for ac_header in librtmp/rtmp.h
26810 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26811 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26812 cat >>confdefs.h <<_ACEOF
26813 #define HAVE_LIBRTMP_RTMP_H 1
26815 curl_rtmp_msg="enabled (librtmp)"
26818 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26829 LDFLAGS=$CLEANLDFLAGS
26830 CPPFLAGS=$CLEANCPPFLAGS
26836 if test X"$OPT_LIBRTMP" != Xoff &&
26837 test "$LIBRTMP_ENABLED" != "1"; then
26838 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26844 versioned_symbols_flavour=
26845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26846 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26847 # Check whether --enable-versioned-symbols was given.
26848 if test "${enable_versioned_symbols+set}" = set; then :
26849 enableval=$enable_versioned_symbols; case "$enableval" in
26850 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26851 $as_echo "yes" >&6; }
26852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26853 $as_echo_n "checking if libraries can be versioned... " >&6; }
26854 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26855 if test -z "$GLD"; then
26856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26857 $as_echo "no" >&6; }
26858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26859 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26862 $as_echo "yes" >&6; }
26863 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26864 versioned_symbols_flavour="MULTISSL_"
26865 elif test "x$OPENSSL_ENABLED" = "x1"; then
26866 versioned_symbols_flavour="OPENSSL_"
26867 elif test "x$GNUTLS_ENABLED" = "x1"; then
26868 versioned_symbols_flavour="GNUTLS_"
26869 elif test "x$NSS_ENABLED" = "x1"; then
26870 versioned_symbols_flavour="NSS_"
26871 elif test "x$WOLFSSL_ENABLED" = "x1"; then
26872 versioned_symbols_flavour="WOLFSSL_"
26873 elif test "x$WINSSL_ENABLED" = "x1"; then
26874 versioned_symbols_flavour="SCHANNEL_"
26875 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
26876 versioned_symbols_flavour="SECURE_TRANSPORT_"
26878 versioned_symbols_flavour=""
26880 versioned_symbols="yes"
26884 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26885 $as_echo "no" >&6; }
26891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26892 $as_echo "no" >&6; }
26898 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
26900 if test "x$versioned_symbols" = 'xyes'; then
26901 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
26902 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
26904 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
26905 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
26910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
26911 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
26912 OPT_WINIDN="default"
26914 # Check whether --with-winidn was given.
26915 if test "${with_winidn+set}" = set; then :
26916 withval=$with_winidn; OPT_WINIDN=$withval
26919 case "$OPT_WINIDN" in
26922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26923 $as_echo "no" >&6; }
26927 want_winidn_path="default"
26928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26929 $as_echo "yes" >&6; }
26933 want_winidn_path="$withval"
26934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
26935 $as_echo "yes ($withval)" >&6; }
26939 if test "$want_winidn" = "yes"; then
26940 clean_CPPFLAGS="$CPPFLAGS"
26941 clean_LDFLAGS="$LDFLAGS"
26943 WINIDN_LIBS="-lnormaliz"
26944 WINIDN_CPPFLAGS="-DWINVER=0x0600"
26946 if test "$want_winidn_path" != "default"; then
26947 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
26948 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
26949 WINIDN_DIR="$want_winidn_path/lib$libsuff"
26952 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
26953 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
26954 LIBS="$WINIDN_LIBS $LIBS"
26956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
26957 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
26958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26959 /* end confdefs.h. */
26962 #include <windows.h>
26967 IdnToUnicode(0, NULL, 0, NULL, 0);
26974 if ac_fn_c_try_link "$LINENO"; then :
26976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26977 $as_echo "yes" >&6; }
26978 tst_links_winidn="yes"
26982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26983 $as_echo "no" >&6; }
26984 tst_links_winidn="no"
26987 rm -f core conftest.err conftest.$ac_objext \
26988 conftest$ac_exeext conftest.$ac_ext
26990 if test "$tst_links_winidn" = "yes"; then
26992 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
26995 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
26999 curl_idn_msg="enabled (Windows-native)"
27001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27002 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27003 CPPFLAGS="$clean_CPPFLAGS"
27004 LDFLAGS="$clean_LDFLAGS"
27010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27011 $as_echo_n "checking whether to build with libidn2... " >&6; }
27014 # Check whether --with-libidn2 was given.
27015 if test "${with_libidn2+set}" = set; then :
27016 withval=$with_libidn2; OPT_IDN=$withval
27022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27023 $as_echo "no" >&6; }
27027 want_idn_path="default"
27028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27029 $as_echo "(assumed) yes" >&6; }
27033 want_idn_path="default"
27034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27035 $as_echo "yes" >&6; }
27039 want_idn_path="$withval"
27040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27041 $as_echo "yes ($withval)" >&6; }
27045 if test "$want_idn" = "yes"; then
27046 clean_CPPFLAGS="$CPPFLAGS"
27047 clean_LDFLAGS="$LDFLAGS"
27051 if test "$want_idn_path" != "default"; then
27052 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27054 if test -n "$PKG_CONFIG"; then
27055 PKGCONFIG="$PKG_CONFIG"
27057 if test -n "$ac_tool_prefix"; then
27058 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27059 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27061 $as_echo_n "checking for $ac_word... " >&6; }
27062 if ${ac_cv_path_PKGCONFIG+:} false; then :
27063 $as_echo_n "(cached) " >&6
27067 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27071 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27072 for as_dir in $as_dummy
27075 test -z "$as_dir" && as_dir=.
27076 for ac_exec_ext in '' $ac_executable_extensions; do
27077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27078 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27089 PKGCONFIG=$ac_cv_path_PKGCONFIG
27090 if test -n "$PKGCONFIG"; then
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27092 $as_echo "$PKGCONFIG" >&6; }
27094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27095 $as_echo "no" >&6; }
27100 if test -z "$ac_cv_path_PKGCONFIG"; then
27101 ac_pt_PKGCONFIG=$PKGCONFIG
27102 # Extract the first word of "pkg-config", so it can be a program name with args.
27103 set dummy pkg-config; ac_word=$2
27104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27105 $as_echo_n "checking for $ac_word... " >&6; }
27106 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27107 $as_echo_n "(cached) " >&6
27109 case $ac_pt_PKGCONFIG in
27111 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27115 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27116 for as_dir in $as_dummy
27119 test -z "$as_dir" && as_dir=.
27120 for ac_exec_ext in '' $ac_executable_extensions; do
27121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27122 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27133 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27134 if test -n "$ac_pt_PKGCONFIG"; then
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27136 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27139 $as_echo "no" >&6; }
27142 if test "x$ac_pt_PKGCONFIG" = x; then
27145 case $cross_compiling:$ac_tool_warned in
27147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27149 ac_tool_warned=yes ;;
27151 PKGCONFIG=$ac_pt_PKGCONFIG
27154 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27159 if test "x$PKGCONFIG" != "xno"; then
27160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27161 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27163 if test -n "$IDN_PCDIR"; then
27164 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27165 export PKG_CONFIG_LIBDIR
27167 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27169 if test -z "$itexists"; then
27171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27172 $as_echo "no" >&6; }
27174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27175 $as_echo "found" >&6; }
27179 if test "$PKGCONFIG" != "no"; then
27181 if test -n "$IDN_PCDIR"; then
27182 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27183 export PKG_CONFIG_LIBDIR
27185 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27187 if test -n "$IDN_PCDIR"; then
27188 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27189 export PKG_CONFIG_LIBDIR
27191 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27193 if test -n "$IDN_PCDIR"; then
27194 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27195 export PKG_CONFIG_LIBDIR
27197 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27198 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27201 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27202 IDN_CPPFLAGS="-I$want_idn_path/include"
27203 IDN_DIR="$want_idn_path/lib$libsuff"
27207 if test -n "$PKG_CONFIG"; then
27208 PKGCONFIG="$PKG_CONFIG"
27210 if test -n "$ac_tool_prefix"; then
27211 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27212 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27214 $as_echo_n "checking for $ac_word... " >&6; }
27215 if ${ac_cv_path_PKGCONFIG+:} false; then :
27216 $as_echo_n "(cached) " >&6
27220 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27224 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27225 for as_dir in $as_dummy
27228 test -z "$as_dir" && as_dir=.
27229 for ac_exec_ext in '' $ac_executable_extensions; do
27230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27231 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27242 PKGCONFIG=$ac_cv_path_PKGCONFIG
27243 if test -n "$PKGCONFIG"; then
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27245 $as_echo "$PKGCONFIG" >&6; }
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27248 $as_echo "no" >&6; }
27253 if test -z "$ac_cv_path_PKGCONFIG"; then
27254 ac_pt_PKGCONFIG=$PKGCONFIG
27255 # Extract the first word of "pkg-config", so it can be a program name with args.
27256 set dummy pkg-config; ac_word=$2
27257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27258 $as_echo_n "checking for $ac_word... " >&6; }
27259 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27260 $as_echo_n "(cached) " >&6
27262 case $ac_pt_PKGCONFIG in
27264 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27268 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27269 for as_dir in $as_dummy
27272 test -z "$as_dir" && as_dir=.
27273 for ac_exec_ext in '' $ac_executable_extensions; do
27274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27275 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27286 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27287 if test -n "$ac_pt_PKGCONFIG"; then
27288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27289 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27292 $as_echo "no" >&6; }
27295 if test "x$ac_pt_PKGCONFIG" = x; then
27298 case $cross_compiling:$ac_tool_warned in
27300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27302 ac_tool_warned=yes ;;
27304 PKGCONFIG=$ac_pt_PKGCONFIG
27307 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27312 if test "x$PKGCONFIG" != "xno"; then
27313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27314 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27316 if test -n ""; then
27317 PKG_CONFIG_LIBDIR=""
27318 export PKG_CONFIG_LIBDIR
27320 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27322 if test -z "$itexists"; then
27324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27325 $as_echo "no" >&6; }
27327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27328 $as_echo "found" >&6; }
27332 if test "$PKGCONFIG" != "no"; then
27333 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27334 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27335 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27336 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27342 if test "$PKGCONFIG" != "no"; then
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27344 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27345 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27346 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27347 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27348 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27349 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27350 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27352 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27353 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27355 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27357 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27358 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27359 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27362 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27363 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27364 LIBS="$IDN_LIBS $LIBS"
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27367 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27369 /* end confdefs.h. */
27372 #define idn2_lookup_ul innocuous_idn2_lookup_ul
27374 # include <limits.h>
27376 # include <assert.h>
27378 #undef idn2_lookup_ul
27382 char idn2_lookup_ul ();
27383 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27389 return idn2_lookup_ul ();
27395 if ac_fn_c_try_link "$LINENO"; then :
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27398 $as_echo "yes" >&6; }
27399 tst_links_libidn="yes"
27403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27404 $as_echo "no" >&6; }
27405 tst_links_libidn="no"
27408 rm -f core conftest.err conftest.$ac_objext \
27409 conftest$ac_exeext conftest.$ac_ext
27411 for ac_header in idn2.h
27413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27414 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27415 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27416 cat >>confdefs.h <<_ACEOF
27417 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27425 if test "$tst_links_libidn" = "yes"; then
27427 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27432 curl_idn_msg="enabled (libidn2)"
27433 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27434 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
27435 export CURL_LIBRARY_PATH
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
27437 $as_echo "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
27440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27441 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27442 CPPFLAGS="$clean_CPPFLAGS"
27443 LDFLAGS="$clean_LDFLAGS"
27454 if test "x$disable_http" = "xyes"; then
27455 # without HTTP, nghttp2 is no use
27460 # Check whether --with-nghttp2 was given.
27461 if test "${with_nghttp2+set}" = set; then :
27462 withval=$with_nghttp2; OPT_H2=$withval
27475 want_h2_path="$withval/lib/pkgconfig"
27479 curl_h2_msg="disabled (--with-nghttp2)"
27480 if test X"$want_h2" != Xno; then
27481 CLEANLDFLAGS="$LDFLAGS"
27482 CLEANCPPFLAGS="$CPPFLAGS"
27486 if test -n "$PKG_CONFIG"; then
27487 PKGCONFIG="$PKG_CONFIG"
27489 if test -n "$ac_tool_prefix"; then
27490 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27491 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27493 $as_echo_n "checking for $ac_word... " >&6; }
27494 if ${ac_cv_path_PKGCONFIG+:} false; then :
27495 $as_echo_n "(cached) " >&6
27499 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27503 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27504 for as_dir in $as_dummy
27507 test -z "$as_dir" && as_dir=.
27508 for ac_exec_ext in '' $ac_executable_extensions; do
27509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27510 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27521 PKGCONFIG=$ac_cv_path_PKGCONFIG
27522 if test -n "$PKGCONFIG"; then
27523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27524 $as_echo "$PKGCONFIG" >&6; }
27526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27527 $as_echo "no" >&6; }
27532 if test -z "$ac_cv_path_PKGCONFIG"; then
27533 ac_pt_PKGCONFIG=$PKGCONFIG
27534 # Extract the first word of "pkg-config", so it can be a program name with args.
27535 set dummy pkg-config; ac_word=$2
27536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27537 $as_echo_n "checking for $ac_word... " >&6; }
27538 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27539 $as_echo_n "(cached) " >&6
27541 case $ac_pt_PKGCONFIG in
27543 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27547 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27548 for as_dir in $as_dummy
27551 test -z "$as_dir" && as_dir=.
27552 for ac_exec_ext in '' $ac_executable_extensions; do
27553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27554 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27565 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27566 if test -n "$ac_pt_PKGCONFIG"; then
27567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27568 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27571 $as_echo "no" >&6; }
27574 if test "x$ac_pt_PKGCONFIG" = x; then
27577 case $cross_compiling:$ac_tool_warned in
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27581 ac_tool_warned=yes ;;
27583 PKGCONFIG=$ac_pt_PKGCONFIG
27586 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27591 if test "x$PKGCONFIG" != "xno"; then
27592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27593 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27595 if test -n "$want_h2_path"; then
27596 PKG_CONFIG_LIBDIR="$want_h2_path"
27597 export PKG_CONFIG_LIBDIR
27599 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27601 if test -z "$itexists"; then
27603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27604 $as_echo "no" >&6; }
27606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27607 $as_echo "found" >&6; }
27612 if test "$PKGCONFIG" != "no" ; then
27614 if test -n "$want_h2_path"; then
27615 PKG_CONFIG_LIBDIR="$want_h2_path"
27616 export PKG_CONFIG_LIBDIR
27619 $PKGCONFIG --libs-only-l libnghttp2`
27620 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27621 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27624 if test -n "$want_h2_path"; then
27625 PKG_CONFIG_LIBDIR="$want_h2_path"
27626 export PKG_CONFIG_LIBDIR
27628 $PKGCONFIG --cflags-only-I libnghttp2`
27629 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27630 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27633 if test -n "$want_h2_path"; then
27634 PKG_CONFIG_LIBDIR="$want_h2_path"
27635 export PKG_CONFIG_LIBDIR
27638 $PKGCONFIG --libs-only-L libnghttp2`
27639 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27640 $as_echo "$as_me: -L is $LD_H2" >&6;}
27642 LDFLAGS="$LDFLAGS $LD_H2"
27643 CPPFLAGS="$CPPFLAGS $CPP_H2"
27644 LIBS="$LIB_H2 $LIBS"
27646 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27649 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27650 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27651 $as_echo_n "(cached) " >&6
27653 ac_check_lib_save_LIBS=$LIBS
27654 LIBS="-lnghttp2 $LIBS"
27655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27656 /* end confdefs.h. */
27662 char nghttp2_option_set_no_recv_client_magic ();
27665 return nghttp2_option_set_no_recv_client_magic ();
27670 if ac_fn_c_try_link "$LINENO"; then :
27671 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27673 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27675 rm -f core conftest.err conftest.$ac_objext \
27676 conftest$ac_exeext conftest.$ac_ext
27677 LIBS=$ac_check_lib_save_LIBS
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27680 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27681 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27683 for ac_header in nghttp2/nghttp2.h
27685 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27686 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27687 cat >>confdefs.h <<_ACEOF
27688 #define HAVE_NGHTTP2_NGHTTP2_H 1
27690 curl_h2_msg="enabled (nghttp2)"
27693 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27704 LDFLAGS=$CLEANLDFLAGS
27705 CPPFLAGS=$CLEANCPPFLAGS
27712 if test X"$want_h2" != Xdefault; then
27713 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27721 curl_h3_msg="disabled (--with-ngtcp2, --with-quiche)"
27723 if test "x$disable_http" = "xyes"; then
27724 # without HTTP, ngtcp2 is no use
27729 # Check whether --with-ngtcp2 was given.
27730 if test "${with_ngtcp2+set}" = set; then :
27731 withval=$with_ngtcp2; OPT_TCP2=$withval
27734 case "$OPT_TCP2" in
27739 want_tcp2="default"
27744 want_tcp2_path="$withval/lib/pkgconfig"
27748 curl_tcp2_msg="disabled (--with-ngtcp2)"
27749 if test X"$want_tcp2" != Xno; then
27750 CLEANLDFLAGS="$LDFLAGS"
27751 CLEANCPPFLAGS="$CPPFLAGS"
27755 if test -n "$PKG_CONFIG"; then
27756 PKGCONFIG="$PKG_CONFIG"
27758 if test -n "$ac_tool_prefix"; then
27759 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27760 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27762 $as_echo_n "checking for $ac_word... " >&6; }
27763 if ${ac_cv_path_PKGCONFIG+:} false; then :
27764 $as_echo_n "(cached) " >&6
27768 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27772 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27773 for as_dir in $as_dummy
27776 test -z "$as_dir" && as_dir=.
27777 for ac_exec_ext in '' $ac_executable_extensions; do
27778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27779 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27790 PKGCONFIG=$ac_cv_path_PKGCONFIG
27791 if test -n "$PKGCONFIG"; then
27792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27793 $as_echo "$PKGCONFIG" >&6; }
27795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27796 $as_echo "no" >&6; }
27801 if test -z "$ac_cv_path_PKGCONFIG"; then
27802 ac_pt_PKGCONFIG=$PKGCONFIG
27803 # Extract the first word of "pkg-config", so it can be a program name with args.
27804 set dummy pkg-config; ac_word=$2
27805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27806 $as_echo_n "checking for $ac_word... " >&6; }
27807 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27808 $as_echo_n "(cached) " >&6
27810 case $ac_pt_PKGCONFIG in
27812 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27816 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27817 for as_dir in $as_dummy
27820 test -z "$as_dir" && as_dir=.
27821 for ac_exec_ext in '' $ac_executable_extensions; do
27822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27823 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27834 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27835 if test -n "$ac_pt_PKGCONFIG"; then
27836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27837 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27840 $as_echo "no" >&6; }
27843 if test "x$ac_pt_PKGCONFIG" = x; then
27846 case $cross_compiling:$ac_tool_warned in
27848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27849 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27850 ac_tool_warned=yes ;;
27852 PKGCONFIG=$ac_pt_PKGCONFIG
27855 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27860 if test "x$PKGCONFIG" != "xno"; then
27861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
27862 $as_echo_n "checking for libngtcp2 options with pkg-config... " >&6; }
27864 if test -n "$want_tcp2_path"; then
27865 PKG_CONFIG_LIBDIR="$want_tcp2_path"
27866 export PKG_CONFIG_LIBDIR
27868 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
27870 if test -z "$itexists"; then
27872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27873 $as_echo "no" >&6; }
27875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27876 $as_echo "found" >&6; }
27881 if test "$PKGCONFIG" != "no" ; then
27883 if test -n "$want_tcp2_path"; then
27884 PKG_CONFIG_LIBDIR="$want_tcp2_path"
27885 export PKG_CONFIG_LIBDIR
27888 $PKGCONFIG --libs-only-l libngtcp2`
27889 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
27890 $as_echo "$as_me: -l is $LIB_TCP2" >&6;}
27893 if test -n "$want_tcp2_path"; then
27894 PKG_CONFIG_LIBDIR="$want_tcp2_path"
27895 export PKG_CONFIG_LIBDIR
27897 $PKGCONFIG --cflags-only-I libngtcp2`
27898 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
27899 $as_echo "$as_me: -I is $CPP_TCP2" >&6;}
27902 if test -n "$want_tcp2_path"; then
27903 PKG_CONFIG_LIBDIR="$want_tcp2_path"
27904 export PKG_CONFIG_LIBDIR
27907 $PKGCONFIG --libs-only-L libngtcp2`
27908 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
27909 $as_echo "$as_me: -L is $LD_TCP2" >&6;}
27911 LDFLAGS="$LDFLAGS $LD_TCP2"
27912 CPPFLAGS="$CPPFLAGS $CPP_TCP2"
27913 LIBS="$LIB_TCP2 $LIBS"
27915 if test "x$cross_compiling" != "xyes"; then
27916 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/-L//'`
27918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new in -lngtcp2" >&5
27919 $as_echo_n "checking for ngtcp2_conn_client_new in -lngtcp2... " >&6; }
27920 if ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new+:} false; then :
27921 $as_echo_n "(cached) " >&6
27923 ac_check_lib_save_LIBS=$LIBS
27924 LIBS="-lngtcp2 $LIBS"
27925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27926 /* end confdefs.h. */
27932 char ngtcp2_conn_client_new ();
27935 return ngtcp2_conn_client_new ();
27940 if ac_fn_c_try_link "$LINENO"; then :
27941 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=yes
27943 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new=no
27945 rm -f core conftest.err conftest.$ac_objext \
27946 conftest$ac_exeext conftest.$ac_ext
27947 LIBS=$ac_check_lib_save_LIBS
27949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&5
27950 $as_echo "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" >&6; }
27951 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new" = xyes; then :
27953 for ac_header in ngtcp2/ngtcp2.h
27955 ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
27956 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes; then :
27957 cat >>confdefs.h <<_ACEOF
27958 #define HAVE_NGTCP2_NGTCP2_H 1
27962 $as_echo "#define USE_NGTCP2 1" >>confdefs.h
27966 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
27967 export CURL_LIBRARY_PATH
27968 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
27969 $as_echo "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
27977 LDFLAGS=$CLEANLDFLAGS
27978 CPPFLAGS=$CLEANCPPFLAGS
27985 if test X"$want_tcp2" != Xdefault; then
27986 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
27992 if test "x$NGTCP2_ENABLED" = "x1"; then
27993 CLEANLDFLAGS="$LDFLAGS"
27994 CLEANCPPFLAGS="$CPPFLAGS"
27998 if test -n "$PKG_CONFIG"; then
27999 PKGCONFIG="$PKG_CONFIG"
28001 if test -n "$ac_tool_prefix"; then
28002 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28003 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28005 $as_echo_n "checking for $ac_word... " >&6; }
28006 if ${ac_cv_path_PKGCONFIG+:} false; then :
28007 $as_echo_n "(cached) " >&6
28011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28016 for as_dir in $as_dummy
28019 test -z "$as_dir" && as_dir=.
28020 for ac_exec_ext in '' $ac_executable_extensions; do
28021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28022 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28033 PKGCONFIG=$ac_cv_path_PKGCONFIG
28034 if test -n "$PKGCONFIG"; then
28035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28036 $as_echo "$PKGCONFIG" >&6; }
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28039 $as_echo "no" >&6; }
28044 if test -z "$ac_cv_path_PKGCONFIG"; then
28045 ac_pt_PKGCONFIG=$PKGCONFIG
28046 # Extract the first word of "pkg-config", so it can be a program name with args.
28047 set dummy pkg-config; ac_word=$2
28048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28049 $as_echo_n "checking for $ac_word... " >&6; }
28050 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28051 $as_echo_n "(cached) " >&6
28053 case $ac_pt_PKGCONFIG in
28055 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28059 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28060 for as_dir in $as_dummy
28063 test -z "$as_dir" && as_dir=.
28064 for ac_exec_ext in '' $ac_executable_extensions; do
28065 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28066 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28067 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28077 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28078 if test -n "$ac_pt_PKGCONFIG"; then
28079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28080 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28083 $as_echo "no" >&6; }
28086 if test "x$ac_pt_PKGCONFIG" = x; then
28089 case $cross_compiling:$ac_tool_warned in
28091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28093 ac_tool_warned=yes ;;
28095 PKGCONFIG=$ac_pt_PKGCONFIG
28098 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28103 if test "x$PKGCONFIG" != "xno"; then
28104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
28105 $as_echo_n "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
28107 if test -n "$want_tcp2_path"; then
28108 PKG_CONFIG_LIBDIR="$want_tcp2_path"
28109 export PKG_CONFIG_LIBDIR
28111 $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
28113 if test -z "$itexists"; then
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28116 $as_echo "no" >&6; }
28118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28119 $as_echo "found" >&6; }
28124 if test "$PKGCONFIG" != "no" ; then
28125 LIB_NGTCP2_CRYPTO_OPENSSL=`
28126 if test -n "$want_tcp2_path"; then
28127 PKG_CONFIG_LIBDIR="$want_tcp2_path"
28128 export PKG_CONFIG_LIBDIR
28131 $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
28133 $as_echo "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
28135 CPP_NGTCP2_CRYPTO_OPENSSL=`
28136 if test -n "$want_tcp2_path"; then
28137 PKG_CONFIG_LIBDIR="$want_tcp2_path"
28138 export PKG_CONFIG_LIBDIR
28140 $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
28141 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
28142 $as_echo "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
28144 LD_NGTCP2_CRYPTO_OPENSSL=`
28145 if test -n "$want_tcp2_path"; then
28146 PKG_CONFIG_LIBDIR="$want_tcp2_path"
28147 export PKG_CONFIG_LIBDIR
28150 $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
28151 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
28152 $as_echo "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
28154 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
28155 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
28156 LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
28158 if test "x$cross_compiling" != "xyes"; then
28159 DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/-L//'`
28161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl" >&5
28162 $as_echo_n "checking for ngtcp2_crypto_ctx_initial in -lngtcp2_crypto_openssl... " >&6; }
28163 if ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial+:} false; then :
28164 $as_echo_n "(cached) " >&6
28166 ac_check_lib_save_LIBS=$LIBS
28167 LIBS="-lngtcp2_crypto_openssl $LIBS"
28168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28169 /* end confdefs.h. */
28175 char ngtcp2_crypto_ctx_initial ();
28178 return ngtcp2_crypto_ctx_initial ();
28183 if ac_fn_c_try_link "$LINENO"; then :
28184 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=yes
28186 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial=no
28188 rm -f core conftest.err conftest.$ac_objext \
28189 conftest$ac_exeext conftest.$ac_ext
28190 LIBS=$ac_check_lib_save_LIBS
28192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&5
28193 $as_echo "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" >&6; }
28194 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_ctx_initial" = xyes; then :
28196 for ac_header in ngtcp2/ngtcp2_crypto.h
28198 ac_fn_c_check_header_mongrel "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
28199 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes; then :
28200 cat >>confdefs.h <<_ACEOF
28201 #define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1
28205 $as_echo "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
28207 USE_NGTCP2_CRYPTO_OPENSSL=1
28209 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
28210 export CURL_LIBRARY_PATH
28211 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
28212 $as_echo "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
28220 LDFLAGS=$CLEANLDFLAGS
28221 CPPFLAGS=$CLEANCPPFLAGS
28228 if test X"$want_tcp2" != Xdefault; then
28229 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
28237 if test "x$NGTCP2_ENABLED" = "x"; then
28238 # without ngtcp2, nghttp3 is of no use for us
28243 # Check whether --with-nghttp3 was given.
28244 if test "${with_nghttp3+set}" = set; then :
28245 withval=$with_nghttp3; OPT_NGHTTP3=$withval
28248 case "$OPT_NGHTTP3" in
28253 want_nghttp3="default"
28254 want_nghttp3_path=""
28258 want_nghttp3_path="$withval/lib/pkgconfig"
28262 curl_http3_msg="disabled (--with-nghttp3)"
28263 if test X"$want_nghttp3" != Xno; then
28264 CLEANLDFLAGS="$LDFLAGS"
28265 CLEANCPPFLAGS="$CPPFLAGS"
28269 if test -n "$PKG_CONFIG"; then
28270 PKGCONFIG="$PKG_CONFIG"
28272 if test -n "$ac_tool_prefix"; then
28273 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28274 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28276 $as_echo_n "checking for $ac_word... " >&6; }
28277 if ${ac_cv_path_PKGCONFIG+:} false; then :
28278 $as_echo_n "(cached) " >&6
28282 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28286 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28287 for as_dir in $as_dummy
28290 test -z "$as_dir" && as_dir=.
28291 for ac_exec_ext in '' $ac_executable_extensions; do
28292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28293 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28294 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28304 PKGCONFIG=$ac_cv_path_PKGCONFIG
28305 if test -n "$PKGCONFIG"; then
28306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28307 $as_echo "$PKGCONFIG" >&6; }
28309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28310 $as_echo "no" >&6; }
28315 if test -z "$ac_cv_path_PKGCONFIG"; then
28316 ac_pt_PKGCONFIG=$PKGCONFIG
28317 # Extract the first word of "pkg-config", so it can be a program name with args.
28318 set dummy pkg-config; ac_word=$2
28319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28320 $as_echo_n "checking for $ac_word... " >&6; }
28321 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28322 $as_echo_n "(cached) " >&6
28324 case $ac_pt_PKGCONFIG in
28326 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28330 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28331 for as_dir in $as_dummy
28334 test -z "$as_dir" && as_dir=.
28335 for ac_exec_ext in '' $ac_executable_extensions; do
28336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28337 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28348 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28349 if test -n "$ac_pt_PKGCONFIG"; then
28350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28351 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28354 $as_echo "no" >&6; }
28357 if test "x$ac_pt_PKGCONFIG" = x; then
28360 case $cross_compiling:$ac_tool_warned in
28362 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28363 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28364 ac_tool_warned=yes ;;
28366 PKGCONFIG=$ac_pt_PKGCONFIG
28369 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28374 if test "x$PKGCONFIG" != "xno"; then
28375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
28376 $as_echo_n "checking for libnghttp3 options with pkg-config... " >&6; }
28378 if test -n "$want_nghttp3_path"; then
28379 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28380 export PKG_CONFIG_LIBDIR
28382 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
28384 if test -z "$itexists"; then
28386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28387 $as_echo "no" >&6; }
28389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28390 $as_echo "found" >&6; }
28395 if test "$PKGCONFIG" != "no" ; then
28397 if test -n "$want_nghttp3_path"; then
28398 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28399 export PKG_CONFIG_LIBDIR
28402 $PKGCONFIG --libs-only-l libnghttp3`
28403 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
28404 $as_echo "$as_me: -l is $LIB_NGHTTP3" >&6;}
28407 if test -n "$want_nghttp3_path"; then
28408 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28409 export PKG_CONFIG_LIBDIR
28411 $PKGCONFIG --cflags-only-I libnghttp3`
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
28413 $as_echo "$as_me: -I is $CPP_NGHTTP3" >&6;}
28416 if test -n "$want_nghttp3_path"; then
28417 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
28418 export PKG_CONFIG_LIBDIR
28421 $PKGCONFIG --libs-only-L libnghttp3`
28422 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
28423 $as_echo "$as_me: -L is $LD_NGHTTP3" >&6;}
28425 LDFLAGS="$LDFLAGS $LD_NGHTTP3"
28426 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
28427 LIBS="$LIB_NGHTTP3 $LIBS"
28429 if test "x$cross_compiling" != "xyes"; then
28430 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/-L//'`
28432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new in -lnghttp3" >&5
28433 $as_echo_n "checking for nghttp3_conn_client_new in -lnghttp3... " >&6; }
28434 if ${ac_cv_lib_nghttp3_nghttp3_conn_client_new+:} false; then :
28435 $as_echo_n "(cached) " >&6
28437 ac_check_lib_save_LIBS=$LIBS
28438 LIBS="-lnghttp3 $LIBS"
28439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28440 /* end confdefs.h. */
28446 char nghttp3_conn_client_new ();
28449 return nghttp3_conn_client_new ();
28454 if ac_fn_c_try_link "$LINENO"; then :
28455 ac_cv_lib_nghttp3_nghttp3_conn_client_new=yes
28457 ac_cv_lib_nghttp3_nghttp3_conn_client_new=no
28459 rm -f core conftest.err conftest.$ac_objext \
28460 conftest$ac_exeext conftest.$ac_ext
28461 LIBS=$ac_check_lib_save_LIBS
28463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&5
28464 $as_echo "$ac_cv_lib_nghttp3_nghttp3_conn_client_new" >&6; }
28465 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new" = xyes; then :
28467 for ac_header in nghttp3/nghttp3.h
28469 ac_fn_c_check_header_mongrel "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
28470 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes; then :
28471 cat >>confdefs.h <<_ACEOF
28472 #define HAVE_NGHTTP3_NGHTTP3_H 1
28474 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
28477 $as_echo "#define USE_NGHTTP3 1" >>confdefs.h
28481 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
28482 export CURL_LIBRARY_PATH
28483 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
28484 $as_echo "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
28485 experimental="$experimental HTTP3"
28493 LDFLAGS=$CLEANLDFLAGS
28494 CPPFLAGS=$CLEANCPPFLAGS
28501 if test X"$want_nghttp3" != Xdefault; then
28502 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
28511 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
28512 # without HTTP or with ngtcp2, quiche is no use
28517 # Check whether --with-quiche was given.
28518 if test "${with_quiche+set}" = set; then :
28519 withval=$with_quiche; OPT_QUICHE=$withval
28522 case "$OPT_QUICHE" in
28527 want_quiche="default"
28528 want_quiche_path=""
28532 want_quiche_path="$withval"
28536 if test X"$want_quiche" != Xno; then
28537 CLEANLDFLAGS="$LDFLAGS"
28538 CLEANCPPFLAGS="$CPPFLAGS"
28542 if test -n "$PKG_CONFIG"; then
28543 PKGCONFIG="$PKG_CONFIG"
28545 if test -n "$ac_tool_prefix"; then
28546 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28547 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28549 $as_echo_n "checking for $ac_word... " >&6; }
28550 if ${ac_cv_path_PKGCONFIG+:} false; then :
28551 $as_echo_n "(cached) " >&6
28555 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28559 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28560 for as_dir in $as_dummy
28563 test -z "$as_dir" && as_dir=.
28564 for ac_exec_ext in '' $ac_executable_extensions; do
28565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28566 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28577 PKGCONFIG=$ac_cv_path_PKGCONFIG
28578 if test -n "$PKGCONFIG"; then
28579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28580 $as_echo "$PKGCONFIG" >&6; }
28582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28583 $as_echo "no" >&6; }
28588 if test -z "$ac_cv_path_PKGCONFIG"; then
28589 ac_pt_PKGCONFIG=$PKGCONFIG
28590 # Extract the first word of "pkg-config", so it can be a program name with args.
28591 set dummy pkg-config; ac_word=$2
28592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28593 $as_echo_n "checking for $ac_word... " >&6; }
28594 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28595 $as_echo_n "(cached) " >&6
28597 case $ac_pt_PKGCONFIG in
28599 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28603 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28604 for as_dir in $as_dummy
28607 test -z "$as_dir" && as_dir=.
28608 for ac_exec_ext in '' $ac_executable_extensions; do
28609 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28610 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28621 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28622 if test -n "$ac_pt_PKGCONFIG"; then
28623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28624 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28627 $as_echo "no" >&6; }
28630 if test "x$ac_pt_PKGCONFIG" = x; then
28633 case $cross_compiling:$ac_tool_warned in
28635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28636 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28637 ac_tool_warned=yes ;;
28639 PKGCONFIG=$ac_pt_PKGCONFIG
28642 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28647 if test "x$PKGCONFIG" != "xno"; then
28648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
28649 $as_echo_n "checking for quiche options with pkg-config... " >&6; }
28651 if test -n "$want_quiche_path"; then
28652 PKG_CONFIG_LIBDIR="$want_quiche_path"
28653 export PKG_CONFIG_LIBDIR
28655 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
28657 if test -z "$itexists"; then
28659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28660 $as_echo "no" >&6; }
28662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28663 $as_echo "found" >&6; }
28668 if test "$PKGCONFIG" != "no" ; then
28670 if test -n "$want_quiche_path"; then
28671 PKG_CONFIG_LIBDIR="$want_quiche_path"
28672 export PKG_CONFIG_LIBDIR
28675 $PKGCONFIG --libs-only-l quiche`
28676 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
28677 $as_echo "$as_me: -l is $LIB_QUICHE" >&6;}
28680 if test -n "$want_quiche_path"; then
28681 PKG_CONFIG_LIBDIR="$want_quiche_path"
28682 export PKG_CONFIG_LIBDIR
28684 $PKGCONFIG --cflags-only-I quiche`
28685 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
28686 $as_echo "$as_me: -I is $CPP_QUICHE" >&6;}
28689 if test -n "$want_quiche_path"; then
28690 PKG_CONFIG_LIBDIR="$want_quiche_path"
28691 export PKG_CONFIG_LIBDIR
28694 $PKGCONFIG --libs-only-L quiche`
28695 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
28696 $as_echo "$as_me: -L is $LD_QUICHE" >&6;}
28698 LDFLAGS="$LDFLAGS $LD_QUICHE"
28699 CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
28700 LIBS="$LIB_QUICHE $LIBS"
28702 if test "x$cross_compiling" != "xyes"; then
28703 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/-L//'`
28705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
28706 $as_echo_n "checking for quiche_connect in -lquiche... " >&6; }
28707 if ${ac_cv_lib_quiche_quiche_connect+:} false; then :
28708 $as_echo_n "(cached) " >&6
28710 ac_check_lib_save_LIBS=$LIBS
28711 LIBS="-lquiche $LIBS"
28712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28713 /* end confdefs.h. */
28719 char quiche_connect ();
28722 return quiche_connect ();
28727 if ac_fn_c_try_link "$LINENO"; then :
28728 ac_cv_lib_quiche_quiche_connect=yes
28730 ac_cv_lib_quiche_quiche_connect=no
28732 rm -f core conftest.err conftest.$ac_objext \
28733 conftest$ac_exeext conftest.$ac_ext
28734 LIBS=$ac_check_lib_save_LIBS
28736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
28737 $as_echo "$ac_cv_lib_quiche_quiche_connect" >&6; }
28738 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes; then :
28740 for ac_header in quiche.h
28742 ac_fn_c_check_header_mongrel "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "$ac_includes_default"
28743 if test "x$ac_cv_header_quiche_h" = xyes; then :
28744 cat >>confdefs.h <<_ACEOF
28745 #define HAVE_QUICHE_H 1
28747 experimental="$experimental HTTP3"
28748 { $as_echo "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
28749 $as_echo "$as_me: HTTP3 support is experimental" >&6;}
28750 curl_h3_msg="enabled (quiche)"
28753 $as_echo "#define USE_QUICHE 1" >>confdefs.h
28757 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
28758 export CURL_LIBRARY_PATH
28759 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
28760 $as_echo "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
28767 LDFLAGS=$CLEANLDFLAGS
28768 CPPFLAGS=$CLEANCPPFLAGS
28774 if test X"$want_quiche" != Xdefault; then
28775 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
28781 OPT_ZSH_FPATH=default
28783 # Check whether --with-zsh-functions-dir was given.
28784 if test "${with_zsh_functions_dir+set}" = set; then :
28785 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
28788 case "$OPT_ZSH_FPATH" in
28792 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
28796 ZSH_FUNCTIONS_DIR="$withval"
28802 OPT_FISH_FPATH=default
28804 # Check whether --with-fish-functions-dir was given.
28805 if test "${with_fish_functions_dir+set}" = set; then :
28806 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
28809 case "$OPT_FISH_FPATH" in
28814 if test -n "$PKG_CONFIG"; then
28815 PKGCONFIG="$PKG_CONFIG"
28817 if test -n "$ac_tool_prefix"; then
28818 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28819 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28821 $as_echo_n "checking for $ac_word... " >&6; }
28822 if ${ac_cv_path_PKGCONFIG+:} false; then :
28823 $as_echo_n "(cached) " >&6
28827 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28831 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28832 for as_dir in $as_dummy
28835 test -z "$as_dir" && as_dir=.
28836 for ac_exec_ext in '' $ac_executable_extensions; do
28837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28838 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28849 PKGCONFIG=$ac_cv_path_PKGCONFIG
28850 if test -n "$PKGCONFIG"; then
28851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28852 $as_echo "$PKGCONFIG" >&6; }
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28855 $as_echo "no" >&6; }
28860 if test -z "$ac_cv_path_PKGCONFIG"; then
28861 ac_pt_PKGCONFIG=$PKGCONFIG
28862 # Extract the first word of "pkg-config", so it can be a program name with args.
28863 set dummy pkg-config; ac_word=$2
28864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28865 $as_echo_n "checking for $ac_word... " >&6; }
28866 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
28867 $as_echo_n "(cached) " >&6
28869 case $ac_pt_PKGCONFIG in
28871 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28875 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28876 for as_dir in $as_dummy
28879 test -z "$as_dir" && as_dir=.
28880 for ac_exec_ext in '' $ac_executable_extensions; do
28881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28882 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
28883 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28893 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28894 if test -n "$ac_pt_PKGCONFIG"; then
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28896 $as_echo "$ac_pt_PKGCONFIG" >&6; }
28898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28899 $as_echo "no" >&6; }
28902 if test "x$ac_pt_PKGCONFIG" = x; then
28905 case $cross_compiling:$ac_tool_warned in
28907 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28908 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28909 ac_tool_warned=yes ;;
28911 PKGCONFIG=$ac_pt_PKGCONFIG
28914 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28919 if test "x$PKGCONFIG" != "xno"; then
28920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
28921 $as_echo_n "checking for fish options with pkg-config... " >&6; }
28923 if test -n ""; then
28924 PKG_CONFIG_LIBDIR=""
28925 export PKG_CONFIG_LIBDIR
28927 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
28929 if test -z "$itexists"; then
28931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28932 $as_echo "no" >&6; }
28934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
28935 $as_echo "found" >&6; }
28939 if test "$PKGCONFIG" != "no" ; then
28940 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
28942 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
28947 FISH_FUNCTIONS_DIR="$withval"
28953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
28954 $as_echo_n "checking for ANSI C header files... " >&6; }
28955 if ${ac_cv_header_stdc+:} false; then :
28956 $as_echo_n "(cached) " >&6
28958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28959 /* end confdefs.h. */
28960 #include <stdlib.h>
28961 #include <stdarg.h>
28962 #include <string.h>
28972 if ac_fn_c_try_compile "$LINENO"; then :
28973 ac_cv_header_stdc=yes
28975 ac_cv_header_stdc=no
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28979 if test $ac_cv_header_stdc = yes; then
28980 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
28981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28982 /* end confdefs.h. */
28983 #include <string.h>
28986 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28987 $EGREP "memchr" >/dev/null 2>&1; then :
28990 ac_cv_header_stdc=no
28996 if test $ac_cv_header_stdc = yes; then
28997 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
28998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28999 /* end confdefs.h. */
29000 #include <stdlib.h>
29003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29004 $EGREP "free" >/dev/null 2>&1; then :
29007 ac_cv_header_stdc=no
29013 if test $ac_cv_header_stdc = yes; then
29014 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
29015 if test "$cross_compiling" = yes; then :
29018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29019 /* end confdefs.h. */
29021 #include <stdlib.h>
29022 #if ((' ' & 0x0FF) == 0x020)
29023 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
29024 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
29026 # define ISLOWER(c) \
29027 (('a' <= (c) && (c) <= 'i') \
29028 || ('j' <= (c) && (c) <= 'r') \
29029 || ('s' <= (c) && (c) <= 'z'))
29030 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
29033 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
29038 for (i = 0; i < 256; i++)
29039 if (XOR (islower (i), ISLOWER (i))
29040 || toupper (i) != TOUPPER (i))
29045 if ac_fn_c_try_run "$LINENO"; then :
29048 ac_cv_header_stdc=no
29050 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29051 conftest.$ac_objext conftest.beam conftest.$ac_ext
29056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
29057 $as_echo "$ac_cv_header_stdc" >&6; }
29058 if test $ac_cv_header_stdc = yes; then
29060 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
29066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
29067 $as_echo_n "checking for malloc.h... " >&6; }
29068 if ${curl_cv_header_malloc_h+:} false; then :
29069 $as_echo_n "(cached) " >&6
29072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29073 /* end confdefs.h. */
29076 #include <malloc.h>
29081 void *p = malloc(10);
29082 void *q = calloc(10,10);
29091 if ac_fn_c_try_compile "$LINENO"; then :
29093 curl_cv_header_malloc_h="yes"
29097 curl_cv_header_malloc_h="no"
29100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
29104 $as_echo "$curl_cv_header_malloc_h" >&6; }
29105 if test "$curl_cv_header_malloc_h" = "yes"; then
29107 cat >>confdefs.h <<_ACEOF
29108 #define HAVE_MALLOC_H 1
29112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29113 /* end confdefs.h. */
29116 #include <stdlib.h>
29121 void *p = malloc(10);
29122 void *q = calloc(10,10);
29131 if ac_fn_c_try_compile "$LINENO"; then :
29133 curl_cv_need_header_malloc_h="no"
29137 curl_cv_need_header_malloc_h="yes"
29140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29142 case "$curl_cv_need_header_malloc_h" in
29145 cat >>confdefs.h <<_ACEOF
29146 #define NEED_MALLOC_H 1
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
29155 $as_echo_n "checking for memory.h... " >&6; }
29156 if ${curl_cv_header_memory_h+:} false; then :
29157 $as_echo_n "(cached) " >&6
29160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29161 /* end confdefs.h. */
29164 #include <memory.h>
29169 void *p = malloc(10);
29170 void *q = calloc(10,10);
29179 if ac_fn_c_try_compile "$LINENO"; then :
29181 curl_cv_header_memory_h="yes"
29185 curl_cv_header_memory_h="no"
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
29192 $as_echo "$curl_cv_header_memory_h" >&6; }
29193 if test "$curl_cv_header_memory_h" = "yes"; then
29195 cat >>confdefs.h <<_ACEOF
29196 #define HAVE_MEMORY_H 1
29200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29201 /* end confdefs.h. */
29204 #include <stdlib.h>
29209 void *p = malloc(10);
29210 void *q = calloc(10,10);
29219 if ac_fn_c_try_compile "$LINENO"; then :
29221 curl_cv_need_header_memory_h="no"
29225 curl_cv_need_header_memory_h="yes"
29228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29230 case "$curl_cv_need_header_memory_h" in
29233 cat >>confdefs.h <<_ACEOF
29234 #define NEED_MEMORY_H 1
29242 for ac_header in sys/types.h \
29285 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29286 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
29287 #ifdef HAVE_SYS_TYPES_H
29288 #include <sys/types.h>
29290 #ifdef HAVE_SYS_TIME_H
29291 #include <sys/time.h>
29293 #ifdef HAVE_SYS_SELECT_H
29294 #include <sys/select.h>
29296 #ifdef HAVE_SYS_SOCKET_H
29297 #include <sys/socket.h>
29299 #ifdef HAVE_NETINET_IN_H
29300 #include <netinet/in.h>
29302 #ifdef HAVE_NETINET_IN6_H
29303 #include <netinet/in6.h>
29305 #ifdef HAVE_SYS_UN_H
29306 #include <sys/un.h>
29311 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29312 cat >>confdefs.h <<_ACEOF
29313 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
29323 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
29324 if ${ac_cv_c_const+:} false; then :
29325 $as_echo_n "(cached) " >&6
29327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29328 /* end confdefs.h. */
29333 #ifndef __cplusplus
29334 /* Ultrix mips cc rejects this sort of thing. */
29335 typedef int charset[2];
29336 const charset cs = { 0, 0 };
29337 /* SunOS 4.1.1 cc rejects this. */
29338 char const *const *pcpcc;
29340 /* NEC SVR4.0.2 mips cc rejects this. */
29341 struct point {int x, y;};
29342 static struct point const zero = {0,0};
29343 /* AIX XL C 1.02.0.0 rejects this.
29344 It does not let you subtract one const X* pointer from another in
29345 an arm of an if-expression whose if-part is not a constant
29347 const char *g = "string";
29348 pcpcc = &g + (g ? g-g : 0);
29349 /* HPUX 7.0 cc rejects these. */
29351 ppc = (char**) pcpcc;
29352 pcpcc = (char const *const *) ppc;
29353 { /* SCO 3.2v4 cc rejects this sort of thing. */
29356 char const *s = 0 ? (char *) 0 : (char const *) 0;
29361 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
29362 int x[] = {25, 17};
29363 const int *foo = &x[0];
29366 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
29367 typedef const int *iptr;
29371 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
29372 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
29373 struct s { int j; const int *ap[3]; } bx;
29374 struct s *b = &bx; b->j = 5;
29376 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
29377 const int foo = 10;
29378 if (!foo) return 0;
29380 return !cs[0] && !zero.x;
29387 if ac_fn_c_try_compile "$LINENO"; then :
29392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
29395 $as_echo "$ac_cv_c_const" >&6; }
29396 if test $ac_cv_c_const = no; then
29398 $as_echo "#define const /**/" >>confdefs.h
29403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
29404 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
29405 if ${curl_cv_variadic_macros_c99+:} false; then :
29406 $as_echo_n "(cached) " >&6
29409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29410 /* end confdefs.h. */
29413 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
29414 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
29415 int fun3(int arg1, int arg2, int arg3);
29416 int fun2(int arg1, int arg2);
29417 int fun3(int arg1, int arg2, int arg3)
29418 { return arg1 + arg2 + arg3; }
29419 int fun2(int arg1, int arg2)
29420 { return arg1 + arg2; }
29425 int res3 = c99_vmacro3(1, 2, 3);
29426 int res2 = c99_vmacro2(1, 2);
29433 if ac_fn_c_try_compile "$LINENO"; then :
29435 curl_cv_variadic_macros_c99="yes"
29439 curl_cv_variadic_macros_c99="no"
29442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
29446 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
29447 case "$curl_cv_variadic_macros_c99" in
29450 cat >>confdefs.h <<_ACEOF
29451 #define HAVE_VARIADIC_MACROS_C99 1
29456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
29457 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
29458 if ${curl_cv_variadic_macros_gcc+:} false; then :
29459 $as_echo_n "(cached) " >&6
29462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29463 /* end confdefs.h. */
29466 #define gcc_vmacro3(first, args...) fun3(first, args)
29467 #define gcc_vmacro2(first, args...) fun2(first, args)
29468 int fun3(int arg1, int arg2, int arg3);
29469 int fun2(int arg1, int arg2);
29470 int fun3(int arg1, int arg2, int arg3)
29471 { return arg1 + arg2 + arg3; }
29472 int fun2(int arg1, int arg2)
29473 { return arg1 + arg2; }
29478 int res3 = gcc_vmacro3(1, 2, 3);
29479 int res2 = gcc_vmacro2(1, 2);
29486 if ac_fn_c_try_compile "$LINENO"; then :
29488 curl_cv_variadic_macros_gcc="yes"
29492 curl_cv_variadic_macros_gcc="no"
29495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
29499 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
29500 case "$curl_cv_variadic_macros_gcc" in
29503 cat >>confdefs.h <<_ACEOF
29504 #define HAVE_VARIADIC_MACROS_GCC 1
29510 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
29511 if test "x$ac_cv_type_size_t" = xyes; then :
29515 cat >>confdefs.h <<_ACEOF
29516 #define size_t unsigned int
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
29522 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
29523 if ${ac_cv_header_time+:} false; then :
29524 $as_echo_n "(cached) " >&6
29526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29527 /* end confdefs.h. */
29528 #include <sys/types.h>
29529 #include <sys/time.h>
29534 if ((struct tm *) 0)
29540 if ac_fn_c_try_compile "$LINENO"; then :
29541 ac_cv_header_time=yes
29543 ac_cv_header_time=no
29545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
29548 $as_echo "$ac_cv_header_time" >&6; }
29549 if test $ac_cv_header_time = yes; then
29551 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
29556 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
29558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29561 cat >>confdefs.h <<_ACEOF
29562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
29570 $as_echo_n "checking for struct timeval... " >&6; }
29571 if ${curl_cv_struct_timeval+:} false; then :
29572 $as_echo_n "(cached) " >&6
29575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29576 /* end confdefs.h. */
29580 #ifdef HAVE_WINDOWS_H
29581 #ifndef WIN32_LEAN_AND_MEAN
29582 #define WIN32_LEAN_AND_MEAN
29584 #include <windows.h>
29585 #ifdef HAVE_WINSOCK2_H
29586 #include <winsock2.h>
29588 #ifdef HAVE_WINSOCK_H
29589 #include <winsock.h>
29593 #ifdef HAVE_SYS_TYPES_H
29594 #include <sys/types.h>
29596 #ifdef HAVE_SYS_TIME_H
29597 #include <sys/time.h>
29598 #ifdef TIME_WITH_SYS_TIME
29606 #ifdef HAVE_SYS_SOCKET_H
29607 #include <sys/socket.h>
29622 if ac_fn_c_try_compile "$LINENO"; then :
29624 curl_cv_struct_timeval="yes"
29628 curl_cv_struct_timeval="no"
29631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
29635 $as_echo "$curl_cv_struct_timeval" >&6; }
29636 case "$curl_cv_struct_timeval" in
29639 cat >>confdefs.h <<_ACEOF
29640 #define HAVE_STRUCT_TIMEVAL 1
29648 if test "x$cross_compiling" != xyes; then
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
29651 $as_echo_n "checking run-time libs availability... " >&6; }
29654 old=$LD_LIBRARY_PATH
29655 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
29656 export LD_LIBRARY_PATH
29657 if test "$cross_compiling" = yes; then :
29658 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
29659 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
29660 as_fn_error $? "cannot run test program while cross compiling
29661 See \`config.log' for more details" "$LINENO" 5; }
29663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29664 /* end confdefs.h. */
29672 if ac_fn_c_try_run "$LINENO"; then :
29673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
29674 $as_echo "fine" >&6; }
29676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
29677 $as_echo "failed" >&6; }
29678 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
29681 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
29682 conftest.$ac_objext conftest.beam conftest.$ac_ext
29685 LD_LIBRARY_PATH=$old # restore
29691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
29692 $as_echo_n "checking size of size_t... " >&6; }
29693 if ${ac_cv_sizeof_size_t+:} false; then :
29694 $as_echo_n "(cached) " >&6
29696 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29698 /* end confdefs.h. */
29700 #include <sys/types.h>
29705 switch (0) case 0: case (sizeof (size_t) == $ac_size):;
29710 if ac_fn_c_try_compile "$LINENO"; then :
29711 ac_cv_sizeof_size_t=$ac_size
29713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29714 if test x$ac_cv_sizeof_size_t != x ; then break; fi
29719 if test x$ac_cv_sizeof_size_t = x ; then
29720 as_fn_error $? "cannot determine a size for size_t" "$LINENO" 5
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
29723 $as_echo "$ac_cv_sizeof_size_t" >&6; }
29725 cat >>confdefs.h <<_ACEOF
29726 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
29730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
29731 $as_echo_n "checking size of long... " >&6; }
29732 if ${ac_cv_sizeof_long+:} false; then :
29733 $as_echo_n "(cached) " >&6
29735 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29737 /* end confdefs.h. */
29739 #include <sys/types.h>
29744 switch (0) case 0: case (sizeof (long) == $ac_size):;
29749 if ac_fn_c_try_compile "$LINENO"; then :
29750 ac_cv_sizeof_long=$ac_size
29752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29753 if test x$ac_cv_sizeof_long != x ; then break; fi
29758 if test x$ac_cv_sizeof_long = x ; then
29759 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
29761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
29762 $as_echo "$ac_cv_sizeof_long" >&6; }
29764 cat >>confdefs.h <<_ACEOF
29765 #define SIZEOF_LONG $ac_cv_sizeof_long
29769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
29770 $as_echo_n "checking size of int... " >&6; }
29771 if ${ac_cv_sizeof_int+:} false; then :
29772 $as_echo_n "(cached) " >&6
29774 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29776 /* end confdefs.h. */
29778 #include <sys/types.h>
29783 switch (0) case 0: case (sizeof (int) == $ac_size):;
29788 if ac_fn_c_try_compile "$LINENO"; then :
29789 ac_cv_sizeof_int=$ac_size
29791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29792 if test x$ac_cv_sizeof_int != x ; then break; fi
29797 if test x$ac_cv_sizeof_int = x ; then
29798 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
29800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
29801 $as_echo "$ac_cv_sizeof_int" >&6; }
29803 cat >>confdefs.h <<_ACEOF
29804 #define SIZEOF_INT $ac_cv_sizeof_int
29808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
29809 $as_echo_n "checking size of short... " >&6; }
29810 if ${ac_cv_sizeof_short+:} false; then :
29811 $as_echo_n "(cached) " >&6
29813 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29815 /* end confdefs.h. */
29817 #include <sys/types.h>
29822 switch (0) case 0: case (sizeof (short) == $ac_size):;
29827 if ac_fn_c_try_compile "$LINENO"; then :
29828 ac_cv_sizeof_short=$ac_size
29830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29831 if test x$ac_cv_sizeof_short != x ; then break; fi
29836 if test x$ac_cv_sizeof_short = x ; then
29837 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
29839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
29840 $as_echo "$ac_cv_sizeof_short" >&6; }
29842 cat >>confdefs.h <<_ACEOF
29843 #define SIZEOF_SHORT $ac_cv_sizeof_short
29847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
29848 $as_echo_n "checking size of time_t... " >&6; }
29849 if ${ac_cv_sizeof_time_t+:} false; then :
29850 $as_echo_n "(cached) " >&6
29852 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29854 /* end confdefs.h. */
29856 #include <sys/types.h>
29861 switch (0) case 0: case (sizeof (time_t) == $ac_size):;
29866 if ac_fn_c_try_compile "$LINENO"; then :
29867 ac_cv_sizeof_time_t=$ac_size
29869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29870 if test x$ac_cv_sizeof_time_t != x ; then break; fi
29875 if test x$ac_cv_sizeof_time_t = x ; then
29876 as_fn_error $? "cannot determine a size for time_t" "$LINENO" 5
29878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
29879 $as_echo "$ac_cv_sizeof_time_t" >&6; }
29881 cat >>confdefs.h <<_ACEOF
29882 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
29886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
29887 $as_echo_n "checking size of off_t... " >&6; }
29888 if ${ac_cv_sizeof_off_t+:} false; then :
29889 $as_echo_n "(cached) " >&6
29891 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29893 /* end confdefs.h. */
29895 #include <sys/types.h>
29900 switch (0) case 0: case (sizeof (off_t) == $ac_size):;
29905 if ac_fn_c_try_compile "$LINENO"; then :
29906 ac_cv_sizeof_off_t=$ac_size
29908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29909 if test x$ac_cv_sizeof_off_t != x ; then break; fi
29914 if test x$ac_cv_sizeof_off_t = x ; then
29915 as_fn_error $? "cannot determine a size for off_t" "$LINENO" 5
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
29918 $as_echo "$ac_cv_sizeof_off_t" >&6; }
29920 cat >>confdefs.h <<_ACEOF
29921 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
29927 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
29928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
29929 $as_echo_n "checking size of curl_off_t... " >&6; }
29930 if ${ac_cv_sizeof_curl_off_t+:} false; then :
29931 $as_echo_n "(cached) " >&6
29933 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
29934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29935 /* end confdefs.h. */
29937 #include <sys/types.h>
29939 #include <curl/system.h>
29944 switch (0) case 0: case (sizeof (curl_off_t) == $ac_size):;
29949 if ac_fn_c_try_compile "$LINENO"; then :
29950 ac_cv_sizeof_curl_off_t=$ac_size
29952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29953 if test x$ac_cv_sizeof_curl_off_t != x ; then break; fi
29958 if test x$ac_cv_sizeof_curl_off_t = x ; then
29959 as_fn_error $? "cannot determine a size for curl_off_t" "$LINENO" 5
29961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
29962 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
29964 cat >>confdefs.h <<_ACEOF
29965 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
29971 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
29972 if test "x$ac_cv_type_long_long" = xyes; then :
29974 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
29981 if test "xyes" = "x$longlong"; then
29982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
29983 $as_echo_n "checking if numberLL works... " >&6; }
29984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29985 /* end confdefs.h. */
29992 long long val = 1000LL;
29999 if ac_fn_c_try_compile "$LINENO"; then :
30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30002 $as_echo "yes" >&6; }
30004 $as_echo "#define HAVE_LL 1" >>confdefs.h
30009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30010 $as_echo "no" >&6; }
30013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30017 # check for ssize_t
30018 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
30019 if test "x$ac_cv_type_ssize_t" = xyes; then :
30023 $as_echo "#define ssize_t int" >>confdefs.h
30028 # check for bool type
30029 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
30030 #ifdef HAVE_SYS_TYPES_H
30031 #include <sys/types.h>
30033 #ifdef HAVE_STDBOOL_H
30034 #include <stdbool.h>
30038 if test "x$ac_cv_type_bool" = xyes; then :
30041 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
30047 # check for sa_family_t
30048 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
30049 #ifdef HAVE_SYS_SOCKET_H
30050 #include <sys/socket.h>
30054 if test "x$ac_cv_type_sa_family_t" = xyes; then :
30056 $as_echo "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
30060 # The windows name?
30061 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
30062 #ifdef HAVE_SYS_SOCKET_H
30063 #include <sys/socket.h>
30067 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes; then :
30069 $as_echo "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
30073 $as_echo "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
30081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
30082 $as_echo_n "checking if time_t is unsigned... " >&6; }
30085 old=$LD_LIBRARY_PATH
30086 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
30087 export LD_LIBRARY_PATH
30088 if test "$cross_compiling" = yes; then :
30089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30090 $as_echo "no" >&6; }
30093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30094 /* end confdefs.h. */
30097 #include <limits.h>
30102 if ac_fn_c_try_run "$LINENO"; then :
30103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30104 $as_echo "yes" >&6; }
30106 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
30110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30111 $as_echo "no" >&6; }
30114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30115 conftest.$ac_objext conftest.beam conftest.$ac_ext
30118 LD_LIBRARY_PATH=$old # restore
30122 curl_includes_poll="\
30123 /* includes start */
30124 #ifdef HAVE_SYS_TYPES_H
30125 # include <sys/types.h>
30130 #ifdef HAVE_SYS_POLL_H
30131 # include <sys/poll.h>
30133 /* includes end */"
30134 for ac_header in sys/types.h poll.h sys/poll.h
30136 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30137 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
30139 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30140 cat >>confdefs.h <<_ACEOF
30141 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30151 tst_poll_events_macro_defined="unknown"
30153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30154 /* end confdefs.h. */
30157 $curl_includes_poll
30162 #if defined(events) || defined(revents)
30165 force compilation error
30173 if ac_fn_c_try_compile "$LINENO"; then :
30175 tst_poll_events_macro_defined="yes"
30179 tst_poll_events_macro_defined="no"
30182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30184 if test "$tst_poll_events_macro_defined" = "yes"; then
30185 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
30187 cat >>confdefs.h <<_EOF
30188 #define CURL_PULL_SYS_POLL_H 1
30197 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
30199 #ifdef HAVE_WINDOWS_H
30200 #ifndef WIN32_LEAN_AND_MEAN
30201 #define WIN32_LEAN_AND_MEAN
30203 #include <windows.h>
30204 #ifdef HAVE_WINSOCK2_H
30205 #include <winsock2.h>
30207 #ifdef HAVE_WINSOCK_H
30208 #include <winsock.h>
30212 #ifdef HAVE_SYS_TYPES_H
30213 #include <sys/types.h>
30215 #ifdef HAVE_SYS_SOCKET_H
30216 #include <sys/socket.h>
30218 #ifdef HAVE_NETINET_IN_H
30219 #include <netinet/in.h>
30221 #ifdef HAVE_ARPA_INET_H
30222 #include <arpa/inet.h>
30227 if test "x$ac_cv_type_in_addr_t" = xyes; then :
30231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
30232 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
30233 if ${curl_cv_in_addr_t_equiv+:} false; then :
30234 $as_echo_n "(cached) " >&6
30237 curl_cv_in_addr_t_equiv="unknown"
30238 for t in "unsigned long" int size_t unsigned long; do
30239 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
30240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30241 /* end confdefs.h. */
30245 #ifdef HAVE_WINDOWS_H
30246 #ifndef WIN32_LEAN_AND_MEAN
30247 #define WIN32_LEAN_AND_MEAN
30249 #include <windows.h>
30250 #ifdef HAVE_WINSOCK2_H
30251 #include <winsock2.h>
30253 #ifdef HAVE_WINSOCK_H
30254 #include <winsock.h>
30258 #ifdef HAVE_SYS_TYPES_H
30259 #include <sys/types.h>
30261 #ifdef HAVE_SYS_SOCKET_H
30262 #include <sys/socket.h>
30264 #ifdef HAVE_NETINET_IN_H
30265 #include <netinet/in.h>
30267 #ifdef HAVE_ARPA_INET_H
30268 #include <arpa/inet.h>
30275 $t data = inet_addr ("1.2.3.4");
30282 if ac_fn_c_try_link "$LINENO"; then :
30284 curl_cv_in_addr_t_equiv="$t"
30287 rm -f core conftest.err conftest.$ac_objext \
30288 conftest$ac_exeext conftest.$ac_ext
30293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
30294 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
30295 case "$curl_cv_in_addr_t_equiv" in
30297 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
30301 cat >>confdefs.h <<_ACEOF
30302 #define in_addr_t $curl_cv_in_addr_t_equiv
30313 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
30315 #ifdef HAVE_WINDOWS_H
30316 #ifndef WIN32_LEAN_AND_MEAN
30317 #define WIN32_LEAN_AND_MEAN
30319 #include <windows.h>
30320 #ifdef HAVE_WINSOCK2_H
30321 #include <winsock2.h>
30324 #ifdef HAVE_SYS_TYPES_H
30325 #include <sys/types.h>
30327 #ifdef HAVE_SYS_SOCKET_H
30328 #include <sys/socket.h>
30330 #ifdef HAVE_NETINET_IN_H
30331 #include <netinet/in.h>
30333 #ifdef HAVE_ARPA_INET_H
30334 #include <arpa/inet.h>
30339 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
30341 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
30348 for ac_header in signal.h
30350 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
30351 if test "x$ac_cv_header_signal_h" = xyes; then :
30352 cat >>confdefs.h <<_ACEOF
30353 #define HAVE_SIGNAL_H 1
30360 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
30361 #ifdef HAVE_SIGNAL_H
30362 #include <signal.h>
30366 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
30369 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
30374 case "$ac_cv_type_sig_atomic_t" in
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
30378 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
30379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30380 /* end confdefs.h. */
30383 #ifdef HAVE_SIGNAL_H
30384 #include <signal.h>
30390 static volatile sig_atomic_t dummy = 0;
30397 if ac_fn_c_try_link "$LINENO"; then :
30399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30400 $as_echo "no" >&6; }
30401 curl_cv_sig_atomic_t_volatile="no"
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30406 $as_echo "yes" >&6; }
30407 curl_cv_sig_atomic_t_volatile="yes"
30410 rm -f core conftest.err conftest.$ac_objext \
30411 conftest$ac_exeext conftest.$ac_ext
30413 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
30415 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
30423 $as_echo_n "checking return type of signal handlers... " >&6; }
30424 if ${ac_cv_type_signal+:} false; then :
30425 $as_echo_n "(cached) " >&6
30427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30428 /* end confdefs.h. */
30429 #include <sys/types.h>
30430 #include <signal.h>
30434 return *(signal (0, 0)) (0) == 1;
30439 if ac_fn_c_try_compile "$LINENO"; then :
30440 ac_cv_type_signal=int
30442 ac_cv_type_signal=void
30444 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
30447 $as_echo "$ac_cv_type_signal" >&6; }
30449 cat >>confdefs.h <<_ACEOF
30450 #define RETSIGTYPE $ac_cv_type_signal
30456 for ac_header in sys/select.h sys/socket.h
30458 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30459 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30460 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30461 cat >>confdefs.h <<_ACEOF
30462 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
30471 $as_echo_n "checking for select... " >&6; }
30472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30473 /* end confdefs.h. */
30477 #ifdef HAVE_WINDOWS_H
30478 #ifndef WIN32_LEAN_AND_MEAN
30479 #define WIN32_LEAN_AND_MEAN
30481 #include <windows.h>
30482 #ifdef HAVE_WINSOCK2_H
30483 #include <winsock2.h>
30485 #ifdef HAVE_WINSOCK_H
30486 #include <winsock.h>
30490 #ifdef HAVE_SYS_TYPES_H
30491 #include <sys/types.h>
30493 #ifdef HAVE_SYS_TIME_H
30494 #include <sys/time.h>
30495 #ifdef TIME_WITH_SYS_TIME
30503 #ifndef HAVE_WINDOWS_H
30504 #ifdef HAVE_PROTO_BSDSOCKET_H
30505 #include <proto/bsdsocket.h>
30506 struct Library *SocketBase = NULL;
30507 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
30509 #ifdef HAVE_SYS_SELECT_H
30510 #include <sys/select.h>
30512 #ifdef HAVE_SYS_SOCKET_H
30513 #include <sys/socket.h>
30520 select(0, 0, 0, 0, 0);
30527 if ac_fn_c_try_link "$LINENO"; then :
30529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30530 $as_echo "yes" >&6; }
30531 curl_cv_select="yes"
30535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30536 $as_echo "no" >&6; }
30537 curl_cv_select="no"
30540 rm -f core conftest.err conftest.$ac_objext \
30541 conftest$ac_exeext conftest.$ac_ext
30543 if test "$curl_cv_select" = "yes"; then
30544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
30545 $as_echo_n "checking types of args and return type for select... " >&6; }
30546 if ${curl_cv_func_select_args+:} false; then :
30547 $as_echo_n "(cached) " >&6
30550 curl_cv_func_select_args="unknown"
30551 for sel_retv in 'int' 'ssize_t'; do
30552 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
30553 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
30554 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
30555 if test "$curl_cv_func_select_args" = "unknown"; then
30556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30557 /* end confdefs.h. */
30561 #ifdef HAVE_WINDOWS_H
30562 #ifndef WIN32_LEAN_AND_MEAN
30563 #define WIN32_LEAN_AND_MEAN
30565 #include <windows.h>
30566 #ifdef HAVE_WINSOCK2_H
30567 #include <winsock2.h>
30569 #ifdef HAVE_WINSOCK_H
30570 #include <winsock.h>
30573 #define SELECTCALLCONV PASCAL
30575 #ifdef HAVE_SYS_TYPES_H
30576 #include <sys/types.h>
30578 #ifdef HAVE_SYS_TIME_H
30579 #include <sys/time.h>
30580 #ifdef TIME_WITH_SYS_TIME
30588 #ifndef HAVE_WINDOWS_H
30589 #ifdef HAVE_PROTO_BSDSOCKET_H
30590 #include <proto/bsdsocket.h>
30591 struct Library *SocketBase = NULL;
30592 #define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
30594 #ifdef HAVE_SYS_SELECT_H
30595 #include <sys/select.h>
30597 #ifdef HAVE_SYS_SOCKET_H
30598 #include <sys/socket.h>
30600 #define SELECTCALLCONV
30602 #ifndef HAVE_STRUCT_TIMEVAL
30608 #ifndef HAVE_PROTO_BSDSOCKET_H
30609 extern $sel_retv SELECTCALLCONV
30621 $sel_arg234 rfds=0;
30622 $sel_arg234 wfds=0;
30623 $sel_arg234 efds=0;
30624 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
30631 if ac_fn_c_try_compile "$LINENO"; then :
30633 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
30636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
30645 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
30646 if test "$curl_cv_func_select_args" = "unknown"; then
30647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
30648 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
30649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
30650 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
30652 select_prev_IFS=$IFS; IFS=','
30653 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
30654 IFS=$select_prev_IFS
30657 sel_qual_type_arg5=$3
30660 cat >>confdefs.h <<_ACEOF
30661 #define SELECT_TYPE_ARG1 $1
30665 cat >>confdefs.h <<_ACEOF
30666 #define SELECT_TYPE_ARG234 $2
30670 cat >>confdefs.h <<_ACEOF
30671 #define SELECT_TYPE_RETV $4
30677 case $prev_sh_opts in
30685 case "$sel_qual_type_arg5" in
30687 sel_qual_arg5=const
30688 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
30692 sel_type_arg5=$sel_qual_type_arg5
30697 cat >>confdefs.h <<_ACEOF
30698 #define SELECT_QUAL_ARG5 $sel_qual_arg5
30702 cat >>confdefs.h <<_ACEOF
30703 #define SELECT_TYPE_ARG5 $sel_type_arg5
30707 case $prev_sh_opts in
30716 cat >>confdefs.h <<_ACEOF
30717 #define HAVE_SELECT 1
30720 curl_cv_func_select="yes"
30726 for ac_header in sys/types.h sys/socket.h
30728 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30729 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30730 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30731 cat >>confdefs.h <<_ACEOF
30732 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
30741 $as_echo_n "checking for recv... " >&6; }
30742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30743 /* end confdefs.h. */
30747 #ifdef HAVE_WINDOWS_H
30748 #ifndef WIN32_LEAN_AND_MEAN
30749 #define WIN32_LEAN_AND_MEAN
30751 #include <windows.h>
30752 #ifdef HAVE_WINSOCK2_H
30753 #include <winsock2.h>
30755 #ifdef HAVE_WINSOCK_H
30756 #include <winsock.h>
30760 #ifdef HAVE_PROTO_BSDSOCKET_H
30761 #include <proto/bsdsocket.h>
30762 struct Library *SocketBase = NULL;
30764 #ifdef HAVE_SYS_TYPES_H
30765 #include <sys/types.h>
30767 #ifdef HAVE_SYS_SOCKET_H
30768 #include <sys/socket.h>
30782 if ac_fn_c_try_link "$LINENO"; then :
30784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30785 $as_echo "yes" >&6; }
30790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30791 $as_echo "no" >&6; }
30795 rm -f core conftest.err conftest.$ac_objext \
30796 conftest$ac_exeext conftest.$ac_ext
30798 if test "$curl_cv_recv" = "yes"; then
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
30800 $as_echo_n "checking types of args and return type for recv... " >&6; }
30801 if ${curl_cv_func_recv_args+:} false; then :
30802 $as_echo_n "(cached) " >&6
30805 curl_cv_func_recv_args="unknown"
30806 for recv_retv in 'int' 'ssize_t'; do
30807 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30808 for recv_arg2 in 'char *' 'void *'; do
30809 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30810 for recv_arg4 in 'int' 'unsigned int'; do
30811 if test "$curl_cv_func_recv_args" = "unknown"; then
30812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30813 /* end confdefs.h. */
30817 #ifdef HAVE_WINDOWS_H
30818 #ifndef WIN32_LEAN_AND_MEAN
30819 #define WIN32_LEAN_AND_MEAN
30821 #include <windows.h>
30822 #ifdef HAVE_WINSOCK2_H
30823 #include <winsock2.h>
30825 #ifdef HAVE_WINSOCK_H
30826 #include <winsock.h>
30829 #define RECVCALLCONV PASCAL
30831 #ifdef HAVE_PROTO_BSDSOCKET_H
30832 #include <proto/bsdsocket.h>
30833 struct Library *SocketBase = NULL;
30835 #ifdef HAVE_SYS_TYPES_H
30836 #include <sys/types.h>
30838 #ifdef HAVE_SYS_SOCKET_H
30839 #include <sys/socket.h>
30841 #define RECVCALLCONV
30843 #ifndef HAVE_PROTO_BSDSOCKET_H
30844 extern $recv_retv RECVCALLCONV
30845 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30854 $recv_arg4 flags=0;
30855 $recv_retv res = recv(s, buf, len, flags);
30862 if ac_fn_c_try_compile "$LINENO"; then :
30864 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30877 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30878 if test "$curl_cv_func_recv_args" = "unknown"; then
30879 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30881 recv_prev_IFS=$IFS; IFS=','
30882 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30887 cat >>confdefs.h <<_ACEOF
30888 #define RECV_TYPE_ARG1 $1
30892 cat >>confdefs.h <<_ACEOF
30893 #define RECV_TYPE_ARG2 $2
30897 cat >>confdefs.h <<_ACEOF
30898 #define RECV_TYPE_ARG3 $3
30902 cat >>confdefs.h <<_ACEOF
30903 #define RECV_TYPE_ARG4 $4
30907 cat >>confdefs.h <<_ACEOF
30908 #define RECV_TYPE_RETV $5
30913 cat >>confdefs.h <<_ACEOF
30914 #define HAVE_RECV 1
30917 curl_cv_func_recv="yes"
30920 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30924 for ac_header in sys/types.h sys/socket.h
30926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30927 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30928 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30929 cat >>confdefs.h <<_ACEOF
30930 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30939 $as_echo_n "checking for send... " >&6; }
30940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30941 /* end confdefs.h. */
30945 #ifdef HAVE_WINDOWS_H
30946 #ifndef WIN32_LEAN_AND_MEAN
30947 #define WIN32_LEAN_AND_MEAN
30949 #include <windows.h>
30950 #ifdef HAVE_WINSOCK2_H
30951 #include <winsock2.h>
30953 #ifdef HAVE_WINSOCK_H
30954 #include <winsock.h>
30958 #ifdef HAVE_PROTO_BSDSOCKET_H
30959 #include <proto/bsdsocket.h>
30960 struct Library *SocketBase = NULL;
30962 #ifdef HAVE_SYS_TYPES_H
30963 #include <sys/types.h>
30965 #ifdef HAVE_SYS_SOCKET_H
30966 #include <sys/socket.h>
30980 if ac_fn_c_try_link "$LINENO"; then :
30982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30983 $as_echo "yes" >&6; }
30988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30989 $as_echo "no" >&6; }
30993 rm -f core conftest.err conftest.$ac_objext \
30994 conftest$ac_exeext conftest.$ac_ext
30996 if test "$curl_cv_send" = "yes"; then
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30998 $as_echo_n "checking types of args and return type for send... " >&6; }
30999 if ${curl_cv_func_send_args+:} false; then :
31000 $as_echo_n "(cached) " >&6
31003 curl_cv_func_send_args="unknown"
31004 for send_retv in 'int' 'ssize_t'; do
31005 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
31006 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
31007 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
31008 for send_arg4 in 'int' 'unsigned int'; do
31009 if test "$curl_cv_func_send_args" = "unknown"; then
31010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31011 /* end confdefs.h. */
31015 #ifdef HAVE_WINDOWS_H
31016 #ifndef WIN32_LEAN_AND_MEAN
31017 #define WIN32_LEAN_AND_MEAN
31019 #include <windows.h>
31020 #ifdef HAVE_WINSOCK2_H
31021 #include <winsock2.h>
31023 #ifdef HAVE_WINSOCK_H
31024 #include <winsock.h>
31027 #define SENDCALLCONV PASCAL
31029 #ifdef HAVE_PROTO_BSDSOCKET_H
31030 #include <proto/bsdsocket.h>
31031 struct Library *SocketBase = NULL;
31033 #ifdef HAVE_SYS_TYPES_H
31034 #include <sys/types.h>
31036 #ifdef HAVE_SYS_SOCKET_H
31037 #include <sys/socket.h>
31039 #define SENDCALLCONV
31041 #ifndef HAVE_PROTO_BSDSOCKET_H
31042 extern $send_retv SENDCALLCONV
31043 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
31051 $send_arg4 flags=0;
31052 $send_retv res = send(s, 0, len, flags);
31059 if ac_fn_c_try_compile "$LINENO"; then :
31061 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
31064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
31074 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
31075 if test "$curl_cv_func_send_args" = "unknown"; then
31076 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
31078 send_prev_IFS=$IFS; IFS=','
31079 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
31083 send_qual_type_arg2=$2
31086 cat >>confdefs.h <<_ACEOF
31087 #define SEND_TYPE_ARG1 $1
31091 cat >>confdefs.h <<_ACEOF
31092 #define SEND_TYPE_ARG3 $3
31096 cat >>confdefs.h <<_ACEOF
31097 #define SEND_TYPE_ARG4 $4
31101 cat >>confdefs.h <<_ACEOF
31102 #define SEND_TYPE_RETV $5
31108 case $prev_sh_opts in
31116 case "$send_qual_type_arg2" in
31118 send_qual_arg2=const
31119 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
31123 send_type_arg2=$send_qual_type_arg2
31128 cat >>confdefs.h <<_ACEOF
31129 #define SEND_QUAL_ARG2 $send_qual_arg2
31133 cat >>confdefs.h <<_ACEOF
31134 #define SEND_TYPE_ARG2 $send_type_arg2
31138 case $prev_sh_opts in
31147 cat >>confdefs.h <<_ACEOF
31148 #define HAVE_SEND 1
31151 curl_cv_func_send="yes"
31154 as_fn_error $? "Unable to link function send" "$LINENO" 5
31158 for ac_header in sys/types.h sys/socket.h
31160 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31161 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
31162 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31163 cat >>confdefs.h <<_ACEOF
31164 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
31172 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
31173 if ${curl_cv_msg_nosignal+:} false; then :
31174 $as_echo_n "(cached) " >&6
31177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31178 /* end confdefs.h. */
31182 #ifdef HAVE_WINDOWS_H
31183 #ifndef WIN32_LEAN_AND_MEAN
31184 #define WIN32_LEAN_AND_MEAN
31186 #include <windows.h>
31187 #ifdef HAVE_WINSOCK2_H
31188 #include <winsock2.h>
31190 #ifdef HAVE_WINSOCK_H
31191 #include <winsock.h>
31195 #ifdef HAVE_PROTO_BSDSOCKET_H
31196 #include <proto/bsdsocket.h>
31197 struct Library *SocketBase = NULL;
31199 #ifdef HAVE_SYS_TYPES_H
31200 #include <sys/types.h>
31202 #ifdef HAVE_SYS_SOCKET_H
31203 #include <sys/socket.h>
31210 int flag=MSG_NOSIGNAL;
31217 if ac_fn_c_try_compile "$LINENO"; then :
31219 curl_cv_msg_nosignal="yes"
31223 curl_cv_msg_nosignal="no"
31226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
31230 $as_echo "$curl_cv_msg_nosignal" >&6; }
31231 case "$curl_cv_msg_nosignal" in
31234 cat >>confdefs.h <<_ACEOF
31235 #define HAVE_MSG_NOSIGNAL 1
31243 curl_includes_unistd="\
31244 /* includes start */
31245 #ifdef HAVE_SYS_TYPES_H
31246 # include <sys/types.h>
31248 #ifdef HAVE_UNISTD_H
31249 # include <unistd.h>
31251 /* includes end */"
31252 for ac_header in sys/types.h unistd.h
31254 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31255 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
31257 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31258 cat >>confdefs.h <<_ACEOF
31259 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31269 tst_links_alarm="unknown"
31270 tst_proto_alarm="unknown"
31271 tst_compi_alarm="unknown"
31272 tst_allow_alarm="unknown"
31274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
31275 $as_echo_n "checking if alarm can be linked... " >&6; }
31276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31277 /* end confdefs.h. */
31280 #define alarm innocuous_alarm
31282 # include <limits.h>
31284 # include <assert.h>
31291 #if defined __stub_alarm || defined __stub___alarm
31303 if ac_fn_c_try_link "$LINENO"; then :
31305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31306 $as_echo "yes" >&6; }
31307 tst_links_alarm="yes"
31311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31312 $as_echo "no" >&6; }
31313 tst_links_alarm="no"
31316 rm -f core conftest.err conftest.$ac_objext \
31317 conftest$ac_exeext conftest.$ac_ext
31319 if test "$tst_links_alarm" = "yes"; then
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
31321 $as_echo_n "checking if alarm is prototyped... " >&6; }
31322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31323 /* end confdefs.h. */
31325 $curl_includes_unistd
31328 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31329 $EGREP "alarm" >/dev/null 2>&1; then :
31331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31332 $as_echo "yes" >&6; }
31333 tst_proto_alarm="yes"
31337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31338 $as_echo "no" >&6; }
31339 tst_proto_alarm="no"
31346 if test "$tst_proto_alarm" = "yes"; then
31347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
31348 $as_echo_n "checking if alarm is compilable... " >&6; }
31349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31350 /* end confdefs.h. */
31353 $curl_includes_unistd
31366 if ac_fn_c_try_compile "$LINENO"; then :
31368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31369 $as_echo "yes" >&6; }
31370 tst_compi_alarm="yes"
31374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31375 $as_echo "no" >&6; }
31376 tst_compi_alarm="no"
31379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31382 if test "$tst_compi_alarm" = "yes"; then
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
31384 $as_echo_n "checking if alarm usage allowed... " >&6; }
31385 if test "x$curl_disallow_alarm" != "xyes"; then
31386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31387 $as_echo "yes" >&6; }
31388 tst_allow_alarm="yes"
31390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31391 $as_echo "no" >&6; }
31392 tst_allow_alarm="no"
31396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
31397 $as_echo_n "checking if alarm might be used... " >&6; }
31398 if test "$tst_links_alarm" = "yes" &&
31399 test "$tst_proto_alarm" = "yes" &&
31400 test "$tst_compi_alarm" = "yes" &&
31401 test "$tst_allow_alarm" = "yes"; then
31402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31403 $as_echo "yes" >&6; }
31405 cat >>confdefs.h <<_ACEOF
31406 #define HAVE_ALARM 1
31409 curl_cv_func_alarm="yes"
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31412 $as_echo "no" >&6; }
31413 curl_cv_func_alarm="no"
31417 curl_includes_string="\
31418 /* includes start */
31419 #ifdef HAVE_SYS_TYPES_H
31420 # include <sys/types.h>
31422 #ifdef HAVE_STRING_H
31423 # include <string.h>
31425 #ifdef HAVE_STRINGS_H
31426 # include <strings.h>
31428 /* includes end */"
31429 for ac_header in sys/types.h string.h strings.h
31431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31432 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
31434 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31435 cat >>confdefs.h <<_ACEOF
31436 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31445 curl_includes_libgen="\
31446 /* includes start */
31447 #ifdef HAVE_SYS_TYPES_H
31448 # include <sys/types.h>
31450 #ifdef HAVE_LIBGEN_H
31451 # include <libgen.h>
31453 /* includes end */"
31454 for ac_header in sys/types.h libgen.h
31456 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31457 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
31459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31460 cat >>confdefs.h <<_ACEOF
31461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31471 tst_links_basename="unknown"
31472 tst_proto_basename="unknown"
31473 tst_compi_basename="unknown"
31474 tst_allow_basename="unknown"
31476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
31477 $as_echo_n "checking if basename can be linked... " >&6; }
31478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31479 /* end confdefs.h. */
31482 #define basename innocuous_basename
31484 # include <limits.h>
31486 # include <assert.h>
31493 #if defined __stub_basename || defined __stub___basename
31499 return basename ();
31505 if ac_fn_c_try_link "$LINENO"; then :
31507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31508 $as_echo "yes" >&6; }
31509 tst_links_basename="yes"
31513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31514 $as_echo "no" >&6; }
31515 tst_links_basename="no"
31518 rm -f core conftest.err conftest.$ac_objext \
31519 conftest$ac_exeext conftest.$ac_ext
31521 if test "$tst_links_basename" = "yes"; then
31522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
31523 $as_echo_n "checking if basename is prototyped... " >&6; }
31524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31525 /* end confdefs.h. */
31527 $curl_includes_string
31528 $curl_includes_libgen
31529 $curl_includes_unistd
31532 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31533 $EGREP "basename" >/dev/null 2>&1; then :
31535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31536 $as_echo "yes" >&6; }
31537 tst_proto_basename="yes"
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31542 $as_echo "no" >&6; }
31543 tst_proto_basename="no"
31550 if test "$tst_proto_basename" = "yes"; then
31551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
31552 $as_echo_n "checking if basename is compilable... " >&6; }
31553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31554 /* end confdefs.h. */
31557 $curl_includes_string
31558 $curl_includes_libgen
31559 $curl_includes_unistd
31564 if(0 != basename(0))
31572 if ac_fn_c_try_compile "$LINENO"; then :
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31575 $as_echo "yes" >&6; }
31576 tst_compi_basename="yes"
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31581 $as_echo "no" >&6; }
31582 tst_compi_basename="no"
31585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31588 if test "$tst_compi_basename" = "yes"; then
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
31590 $as_echo_n "checking if basename usage allowed... " >&6; }
31591 if test "x$curl_disallow_basename" != "xyes"; then
31592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31593 $as_echo "yes" >&6; }
31594 tst_allow_basename="yes"
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31597 $as_echo "no" >&6; }
31598 tst_allow_basename="no"
31602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
31603 $as_echo_n "checking if basename might be used... " >&6; }
31604 if test "$tst_links_basename" = "yes" &&
31605 test "$tst_proto_basename" = "yes" &&
31606 test "$tst_compi_basename" = "yes" &&
31607 test "$tst_allow_basename" = "yes"; then
31608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31609 $as_echo "yes" >&6; }
31611 cat >>confdefs.h <<_ACEOF
31612 #define HAVE_BASENAME 1
31615 curl_cv_func_basename="yes"
31617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31618 $as_echo "no" >&6; }
31619 curl_cv_func_basename="no"
31623 curl_includes_socket="\
31624 /* includes start */
31625 #ifdef HAVE_SYS_TYPES_H
31626 # include <sys/types.h>
31628 #ifdef HAVE_SOCKET_H
31629 # include <socket.h>
31631 /* includes end */"
31632 for ac_header in sys/types.h socket.h
31634 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31635 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
31637 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31638 cat >>confdefs.h <<_ACEOF
31639 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31649 tst_links_closesocket="unknown"
31650 tst_proto_closesocket="unknown"
31651 tst_compi_closesocket="unknown"
31652 tst_allow_closesocket="unknown"
31654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
31655 $as_echo_n "checking if closesocket can be linked... " >&6; }
31656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31657 /* end confdefs.h. */
31660 $curl_includes_winsock2
31661 $curl_includes_bsdsocket
31662 $curl_includes_socket
31667 if(0 != closesocket(0))
31675 if ac_fn_c_try_link "$LINENO"; then :
31677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31678 $as_echo "yes" >&6; }
31679 tst_links_closesocket="yes"
31683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31684 $as_echo "no" >&6; }
31685 tst_links_closesocket="no"
31688 rm -f core conftest.err conftest.$ac_objext \
31689 conftest$ac_exeext conftest.$ac_ext
31691 if test "$tst_links_closesocket" = "yes"; then
31692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
31693 $as_echo_n "checking if closesocket is prototyped... " >&6; }
31694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31695 /* end confdefs.h. */
31697 $curl_includes_winsock2
31698 $curl_includes_bsdsocket
31699 $curl_includes_socket
31702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31703 $EGREP "closesocket" >/dev/null 2>&1; then :
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31706 $as_echo "yes" >&6; }
31707 tst_proto_closesocket="yes"
31711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31712 $as_echo "no" >&6; }
31713 tst_proto_closesocket="no"
31720 if test "$tst_proto_closesocket" = "yes"; then
31721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
31722 $as_echo_n "checking if closesocket is compilable... " >&6; }
31723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31724 /* end confdefs.h. */
31727 $curl_includes_winsock2
31728 $curl_includes_bsdsocket
31729 $curl_includes_socket
31734 if(0 != closesocket(0))
31742 if ac_fn_c_try_compile "$LINENO"; then :
31744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31745 $as_echo "yes" >&6; }
31746 tst_compi_closesocket="yes"
31750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31751 $as_echo "no" >&6; }
31752 tst_compi_closesocket="no"
31755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31758 if test "$tst_compi_closesocket" = "yes"; then
31759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
31760 $as_echo_n "checking if closesocket usage allowed... " >&6; }
31761 if test "x$curl_disallow_closesocket" != "xyes"; then
31762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31763 $as_echo "yes" >&6; }
31764 tst_allow_closesocket="yes"
31766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31767 $as_echo "no" >&6; }
31768 tst_allow_closesocket="no"
31772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
31773 $as_echo_n "checking if closesocket might be used... " >&6; }
31774 if test "$tst_links_closesocket" = "yes" &&
31775 test "$tst_proto_closesocket" = "yes" &&
31776 test "$tst_compi_closesocket" = "yes" &&
31777 test "$tst_allow_closesocket" = "yes"; then
31778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31779 $as_echo "yes" >&6; }
31781 cat >>confdefs.h <<_ACEOF
31782 #define HAVE_CLOSESOCKET 1
31785 curl_cv_func_closesocket="yes"
31787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31788 $as_echo "no" >&6; }
31789 curl_cv_func_closesocket="no"
31793 curl_includes_sys_socket="\
31794 /* includes start */
31795 #ifdef HAVE_SYS_TYPES_H
31796 # include <sys/types.h>
31798 #ifdef HAVE_SYS_SOCKET_H
31799 # include <sys/socket.h>
31801 /* includes end */"
31802 for ac_header in sys/types.h sys/socket.h
31804 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31805 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
31807 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31808 cat >>confdefs.h <<_ACEOF
31809 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31819 tst_links_closesocket_camel="unknown"
31820 tst_proto_closesocket_camel="unknown"
31821 tst_compi_closesocket_camel="unknown"
31822 tst_allow_closesocket_camel="unknown"
31824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
31825 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
31826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31827 /* end confdefs.h. */
31830 $curl_includes_sys_socket
31835 if(0 != CloseSocket(0))
31843 if ac_fn_c_try_link "$LINENO"; then :
31845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31846 $as_echo "yes" >&6; }
31847 tst_links_closesocket_camel="yes"
31851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31852 $as_echo "no" >&6; }
31853 tst_links_closesocket_camel="no"
31856 rm -f core conftest.err conftest.$ac_objext \
31857 conftest$ac_exeext conftest.$ac_ext
31859 if test "$tst_links_closesocket_camel" = "yes"; then
31860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31861 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31863 /* end confdefs.h. */
31865 $curl_includes_sys_socket
31868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31869 $EGREP "CloseSocket" >/dev/null 2>&1; then :
31871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31872 $as_echo "yes" >&6; }
31873 tst_proto_closesocket_camel="yes"
31877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31878 $as_echo "no" >&6; }
31879 tst_proto_closesocket_camel="no"
31886 if test "$tst_proto_closesocket_camel" = "yes"; then
31887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31888 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
31889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31890 /* end confdefs.h. */
31893 $curl_includes_sys_socket
31898 if(0 != CloseSocket(0))
31906 if ac_fn_c_try_compile "$LINENO"; then :
31908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31909 $as_echo "yes" >&6; }
31910 tst_compi_closesocket_camel="yes"
31914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31915 $as_echo "no" >&6; }
31916 tst_compi_closesocket_camel="no"
31919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31922 if test "$tst_compi_closesocket_camel" = "yes"; then
31923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31924 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31925 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31927 $as_echo "yes" >&6; }
31928 tst_allow_closesocket_camel="yes"
31930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31931 $as_echo "no" >&6; }
31932 tst_allow_closesocket_camel="no"
31936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31937 $as_echo_n "checking if CloseSocket might be used... " >&6; }
31938 if test "$tst_links_closesocket_camel" = "yes" &&
31939 test "$tst_proto_closesocket_camel" = "yes" &&
31940 test "$tst_compi_closesocket_camel" = "yes" &&
31941 test "$tst_allow_closesocket_camel" = "yes"; then
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31943 $as_echo "yes" >&6; }
31945 cat >>confdefs.h <<_ACEOF
31946 #define HAVE_CLOSESOCKET_CAMEL 1
31949 curl_cv_func_closesocket_camel="yes"
31951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31952 $as_echo "no" >&6; }
31953 curl_cv_func_closesocket_camel="no"
31958 tst_links_connect="unknown"
31959 tst_proto_connect="unknown"
31960 tst_compi_connect="unknown"
31961 tst_allow_connect="unknown"
31963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31964 $as_echo_n "checking if connect can be linked... " >&6; }
31965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31966 /* end confdefs.h. */
31969 $curl_includes_winsock2
31970 $curl_includes_bsdsocket
31971 $curl_includes_sys_socket
31972 $curl_includes_socket
31977 if(0 != connect(0, 0, 0))
31985 if ac_fn_c_try_link "$LINENO"; then :
31987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31988 $as_echo "yes" >&6; }
31989 tst_links_connect="yes"
31993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31994 $as_echo "no" >&6; }
31995 tst_links_connect="no"
31998 rm -f core conftest.err conftest.$ac_objext \
31999 conftest$ac_exeext conftest.$ac_ext
32001 if test "$tst_links_connect" = "yes"; then
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
32003 $as_echo_n "checking if connect is prototyped... " >&6; }
32004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32005 /* end confdefs.h. */
32007 $curl_includes_winsock2
32008 $curl_includes_bsdsocket
32009 $curl_includes_sys_socket
32010 $curl_includes_socket
32013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32014 $EGREP "connect" >/dev/null 2>&1; then :
32016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32017 $as_echo "yes" >&6; }
32018 tst_proto_connect="yes"
32022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32023 $as_echo "no" >&6; }
32024 tst_proto_connect="no"
32031 if test "$tst_proto_connect" = "yes"; then
32032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
32033 $as_echo_n "checking if connect is compilable... " >&6; }
32034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32035 /* end confdefs.h. */
32038 $curl_includes_winsock2
32039 $curl_includes_bsdsocket
32040 $curl_includes_sys_socket
32041 $curl_includes_socket
32046 if(0 != connect(0, 0, 0))
32054 if ac_fn_c_try_compile "$LINENO"; then :
32056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32057 $as_echo "yes" >&6; }
32058 tst_compi_connect="yes"
32062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32063 $as_echo "no" >&6; }
32064 tst_compi_connect="no"
32067 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32070 if test "$tst_compi_connect" = "yes"; then
32071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
32072 $as_echo_n "checking if connect usage allowed... " >&6; }
32073 if test "x$curl_disallow_connect" != "xyes"; then
32074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32075 $as_echo "yes" >&6; }
32076 tst_allow_connect="yes"
32078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32079 $as_echo "no" >&6; }
32080 tst_allow_connect="no"
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
32085 $as_echo_n "checking if connect might be used... " >&6; }
32086 if test "$tst_links_connect" = "yes" &&
32087 test "$tst_proto_connect" = "yes" &&
32088 test "$tst_compi_connect" = "yes" &&
32089 test "$tst_allow_connect" = "yes"; then
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32091 $as_echo "yes" >&6; }
32093 cat >>confdefs.h <<_ACEOF
32094 #define HAVE_CONNECT 1
32097 curl_cv_func_connect="yes"
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32100 $as_echo "no" >&6; }
32101 curl_cv_func_connect="no"
32105 curl_includes_fcntl="\
32106 /* includes start */
32107 #ifdef HAVE_SYS_TYPES_H
32108 # include <sys/types.h>
32110 #ifdef HAVE_UNISTD_H
32111 # include <unistd.h>
32113 #ifdef HAVE_FCNTL_H
32114 # include <fcntl.h>
32116 /* includes end */"
32117 for ac_header in sys/types.h unistd.h fcntl.h
32119 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32120 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
32122 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32123 cat >>confdefs.h <<_ACEOF
32124 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32134 tst_links_fcntl="unknown"
32135 tst_proto_fcntl="unknown"
32136 tst_compi_fcntl="unknown"
32137 tst_allow_fcntl="unknown"
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
32140 $as_echo_n "checking if fcntl can be linked... " >&6; }
32141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32142 /* end confdefs.h. */
32145 #define fcntl innocuous_fcntl
32147 # include <limits.h>
32149 # include <assert.h>
32156 #if defined __stub_fcntl || defined __stub___fcntl
32168 if ac_fn_c_try_link "$LINENO"; then :
32170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32171 $as_echo "yes" >&6; }
32172 tst_links_fcntl="yes"
32176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32177 $as_echo "no" >&6; }
32178 tst_links_fcntl="no"
32181 rm -f core conftest.err conftest.$ac_objext \
32182 conftest$ac_exeext conftest.$ac_ext
32184 if test "$tst_links_fcntl" = "yes"; then
32185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
32186 $as_echo_n "checking if fcntl is prototyped... " >&6; }
32187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32188 /* end confdefs.h. */
32190 $curl_includes_fcntl
32193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32194 $EGREP "fcntl" >/dev/null 2>&1; then :
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32197 $as_echo "yes" >&6; }
32198 tst_proto_fcntl="yes"
32202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32203 $as_echo "no" >&6; }
32204 tst_proto_fcntl="no"
32211 if test "$tst_proto_fcntl" = "yes"; then
32212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
32213 $as_echo_n "checking if fcntl is compilable... " >&6; }
32214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32215 /* end confdefs.h. */
32218 $curl_includes_fcntl
32223 if(0 != fcntl(0, 0, 0))
32231 if ac_fn_c_try_compile "$LINENO"; then :
32233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32234 $as_echo "yes" >&6; }
32235 tst_compi_fcntl="yes"
32239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32240 $as_echo "no" >&6; }
32241 tst_compi_fcntl="no"
32244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32247 if test "$tst_compi_fcntl" = "yes"; then
32248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
32249 $as_echo_n "checking if fcntl usage allowed... " >&6; }
32250 if test "x$curl_disallow_fcntl" != "xyes"; then
32251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32252 $as_echo "yes" >&6; }
32253 tst_allow_fcntl="yes"
32255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32256 $as_echo "no" >&6; }
32257 tst_allow_fcntl="no"
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
32262 $as_echo_n "checking if fcntl might be used... " >&6; }
32263 if test "$tst_links_fcntl" = "yes" &&
32264 test "$tst_proto_fcntl" = "yes" &&
32265 test "$tst_compi_fcntl" = "yes" &&
32266 test "$tst_allow_fcntl" = "yes"; then
32267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32268 $as_echo "yes" >&6; }
32270 cat >>confdefs.h <<_ACEOF
32271 #define HAVE_FCNTL 1
32274 curl_cv_func_fcntl="yes"
32277 tst_compi_fcntl_o_nonblock="unknown"
32278 tst_allow_fcntl_o_nonblock="unknown"
32281 sunos4* | aix3* | beos*)
32282 curl_disallow_fcntl_o_nonblock="yes"
32286 if test "$curl_cv_func_fcntl" = "yes"; then
32287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
32288 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
32289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32290 /* end confdefs.h. */
32293 $curl_includes_fcntl
32299 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
32307 if ac_fn_c_try_compile "$LINENO"; then :
32309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32310 $as_echo "yes" >&6; }
32311 tst_compi_fcntl_o_nonblock="yes"
32315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32316 $as_echo "no" >&6; }
32317 tst_compi_fcntl_o_nonblock="no"
32320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32323 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
32324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
32325 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
32326 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
32327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32328 $as_echo "yes" >&6; }
32329 tst_allow_fcntl_o_nonblock="yes"
32331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32332 $as_echo "no" >&6; }
32333 tst_allow_fcntl_o_nonblock="no"
32337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
32338 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
32339 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
32340 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
32341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32342 $as_echo "yes" >&6; }
32344 cat >>confdefs.h <<_ACEOF
32345 #define HAVE_FCNTL_O_NONBLOCK 1
32348 curl_cv_func_fcntl_o_nonblock="yes"
32350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32351 $as_echo "no" >&6; }
32352 curl_cv_func_fcntl_o_nonblock="no"
32356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32357 $as_echo "no" >&6; }
32358 curl_cv_func_fcntl="no"
32362 curl_includes_ws2tcpip="\
32363 /* includes start */
32364 #ifdef HAVE_WINDOWS_H
32365 # ifndef WIN32_LEAN_AND_MEAN
32366 # define WIN32_LEAN_AND_MEAN
32368 # include <windows.h>
32369 # ifdef HAVE_WINSOCK2_H
32370 # include <winsock2.h>
32371 # ifdef HAVE_WS2TCPIP_H
32372 # include <ws2tcpip.h>
32376 /* includes end */"
32378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
32379 $as_echo_n "checking for windows.h... " >&6; }
32380 if ${curl_cv_header_windows_h+:} false; then :
32381 $as_echo_n "(cached) " >&6
32384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32385 /* end confdefs.h. */
32389 #ifndef WIN32_LEAN_AND_MEAN
32390 #define WIN32_LEAN_AND_MEAN
32392 #include <windows.h>
32397 #if defined(__CYGWIN__) || defined(__CEGCC__)
32398 HAVE_WINDOWS_H shall not be defined.
32400 int dummy=2*WINVER;
32408 if ac_fn_c_try_compile "$LINENO"; then :
32410 curl_cv_header_windows_h="yes"
32414 curl_cv_header_windows_h="no"
32417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
32421 $as_echo "$curl_cv_header_windows_h" >&6; }
32422 case "$curl_cv_header_windows_h" in
32425 cat >>confdefs.h <<_ACEOF
32426 #define HAVE_WINDOWS_H 1
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
32434 $as_echo_n "checking for winsock2.h... " >&6; }
32435 if ${curl_cv_header_winsock2_h+:} false; then :
32436 $as_echo_n "(cached) " >&6
32439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32440 /* end confdefs.h. */
32444 #ifndef WIN32_LEAN_AND_MEAN
32445 #define WIN32_LEAN_AND_MEAN
32447 #include <windows.h>
32448 #include <winsock2.h>
32453 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
32454 HAVE_WINSOCK2_H shall not be defined.
32456 int dummy=2*IPPROTO_ESP;
32464 if ac_fn_c_try_compile "$LINENO"; then :
32466 curl_cv_header_winsock2_h="yes"
32470 curl_cv_header_winsock2_h="no"
32473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
32477 $as_echo "$curl_cv_header_winsock2_h" >&6; }
32478 case "$curl_cv_header_winsock2_h" in
32481 cat >>confdefs.h <<_ACEOF
32482 #define HAVE_WINSOCK2_H 1
32489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
32490 $as_echo_n "checking for ws2tcpip.h... " >&6; }
32491 if ${curl_cv_header_ws2tcpip_h+:} false; then :
32492 $as_echo_n "(cached) " >&6
32495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32496 /* end confdefs.h. */
32500 #ifndef WIN32_LEAN_AND_MEAN
32501 #define WIN32_LEAN_AND_MEAN
32503 #include <windows.h>
32504 #include <winsock2.h>
32505 #include <ws2tcpip.h>
32510 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
32511 HAVE_WS2TCPIP_H shall not be defined.
32513 int dummy=2*IP_PKTINFO;
32521 if ac_fn_c_try_compile "$LINENO"; then :
32523 curl_cv_header_ws2tcpip_h="yes"
32527 curl_cv_header_ws2tcpip_h="no"
32530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
32534 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
32535 case "$curl_cv_header_ws2tcpip_h" in
32538 cat >>confdefs.h <<_ACEOF
32539 #define HAVE_WS2TCPIP_H 1
32547 curl_includes_netdb="\
32548 /* includes start */
32549 #ifdef HAVE_SYS_TYPES_H
32550 # include <sys/types.h>
32552 #ifdef HAVE_NETDB_H
32553 # include <netdb.h>
32555 /* includes end */"
32556 for ac_header in sys/types.h netdb.h
32558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
32561 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32562 cat >>confdefs.h <<_ACEOF
32563 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32573 tst_links_freeaddrinfo="unknown"
32574 tst_proto_freeaddrinfo="unknown"
32575 tst_compi_freeaddrinfo="unknown"
32576 tst_allow_freeaddrinfo="unknown"
32578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
32579 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
32580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32581 /* end confdefs.h. */
32584 $curl_includes_ws2tcpip
32585 $curl_includes_sys_socket
32586 $curl_includes_netdb
32598 if ac_fn_c_try_link "$LINENO"; then :
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601 $as_echo "yes" >&6; }
32602 tst_links_freeaddrinfo="yes"
32606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32607 $as_echo "no" >&6; }
32608 tst_links_freeaddrinfo="no"
32611 rm -f core conftest.err conftest.$ac_objext \
32612 conftest$ac_exeext conftest.$ac_ext
32614 if test "$tst_links_freeaddrinfo" = "yes"; then
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
32616 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
32617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32618 /* end confdefs.h. */
32620 $curl_includes_ws2tcpip
32621 $curl_includes_sys_socket
32622 $curl_includes_netdb
32625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32626 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
32628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32629 $as_echo "yes" >&6; }
32630 tst_proto_freeaddrinfo="yes"
32634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32635 $as_echo "no" >&6; }
32636 tst_proto_freeaddrinfo="no"
32643 if test "$tst_proto_freeaddrinfo" = "yes"; then
32644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
32645 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
32646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32647 /* end confdefs.h. */
32650 $curl_includes_ws2tcpip
32651 $curl_includes_sys_socket
32652 $curl_includes_netdb
32664 if ac_fn_c_try_compile "$LINENO"; then :
32666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32667 $as_echo "yes" >&6; }
32668 tst_compi_freeaddrinfo="yes"
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32673 $as_echo "no" >&6; }
32674 tst_compi_freeaddrinfo="no"
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32680 if test "$tst_compi_freeaddrinfo" = "yes"; then
32681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
32682 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
32683 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
32684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32685 $as_echo "yes" >&6; }
32686 tst_allow_freeaddrinfo="yes"
32688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32689 $as_echo "no" >&6; }
32690 tst_allow_freeaddrinfo="no"
32694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
32695 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
32696 if test "$tst_links_freeaddrinfo" = "yes" &&
32697 test "$tst_proto_freeaddrinfo" = "yes" &&
32698 test "$tst_compi_freeaddrinfo" = "yes" &&
32699 test "$tst_allow_freeaddrinfo" = "yes"; then
32700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32701 $as_echo "yes" >&6; }
32703 cat >>confdefs.h <<_ACEOF
32704 #define HAVE_FREEADDRINFO 1
32707 curl_cv_func_freeaddrinfo="yes"
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32710 $as_echo "no" >&6; }
32711 curl_cv_func_freeaddrinfo="no"
32715 curl_includes_ifaddrs="\
32716 /* includes start */
32717 #ifdef HAVE_SYS_TYPES_H
32718 # include <sys/types.h>
32720 #ifdef HAVE_SYS_SOCKET_H
32721 # include <sys/socket.h>
32723 #ifdef HAVE_NETINET_IN_H
32724 # include <netinet/in.h>
32726 #ifdef HAVE_IFADDRS_H
32727 # include <ifaddrs.h>
32729 /* includes end */"
32730 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
32732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32733 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
32735 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32736 cat >>confdefs.h <<_ACEOF
32737 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32747 tst_links_freeifaddrs="unknown"
32748 tst_proto_freeifaddrs="unknown"
32749 tst_compi_freeifaddrs="unknown"
32750 tst_allow_freeifaddrs="unknown"
32752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
32753 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
32754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32755 /* end confdefs.h. */
32758 #define freeifaddrs innocuous_freeifaddrs
32760 # include <limits.h>
32762 # include <assert.h>
32768 char freeifaddrs ();
32769 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
32775 return freeifaddrs ();
32781 if ac_fn_c_try_link "$LINENO"; then :
32783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32784 $as_echo "yes" >&6; }
32785 tst_links_freeifaddrs="yes"
32789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32790 $as_echo "no" >&6; }
32791 tst_links_freeifaddrs="no"
32794 rm -f core conftest.err conftest.$ac_objext \
32795 conftest$ac_exeext conftest.$ac_ext
32797 if test "$tst_links_freeifaddrs" = "yes"; then
32798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
32799 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
32800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32801 /* end confdefs.h. */
32803 $curl_includes_ifaddrs
32806 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32807 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
32809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32810 $as_echo "yes" >&6; }
32811 tst_proto_freeifaddrs="yes"
32815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32816 $as_echo "no" >&6; }
32817 tst_proto_freeifaddrs="no"
32824 if test "$tst_proto_freeifaddrs" = "yes"; then
32825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
32826 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
32827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32828 /* end confdefs.h. */
32831 $curl_includes_ifaddrs
32843 if ac_fn_c_try_compile "$LINENO"; then :
32845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32846 $as_echo "yes" >&6; }
32847 tst_compi_freeifaddrs="yes"
32851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32852 $as_echo "no" >&6; }
32853 tst_compi_freeifaddrs="no"
32856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32859 if test "$tst_compi_freeifaddrs" = "yes"; then
32860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32861 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32862 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32864 $as_echo "yes" >&6; }
32865 tst_allow_freeifaddrs="yes"
32867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32868 $as_echo "no" >&6; }
32869 tst_allow_freeifaddrs="no"
32873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32874 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
32875 if test "$tst_links_freeifaddrs" = "yes" &&
32876 test "$tst_proto_freeifaddrs" = "yes" &&
32877 test "$tst_compi_freeifaddrs" = "yes" &&
32878 test "$tst_allow_freeifaddrs" = "yes"; then
32879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32880 $as_echo "yes" >&6; }
32882 cat >>confdefs.h <<_ACEOF
32883 #define HAVE_FREEIFADDRS 1
32886 curl_cv_func_freeifaddrs="yes"
32888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32889 $as_echo "no" >&6; }
32890 curl_cv_func_freeifaddrs="no"
32894 curl_includes_sys_xattr="\
32895 /* includes start */
32896 #ifdef HAVE_SYS_TYPES_H
32897 # include <sys/types.h>
32899 #ifdef HAVE_SYS_XATTR_H
32900 # include <sys/xattr.h>
32902 /* includes end */"
32903 for ac_header in sys/types.h sys/xattr.h
32905 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32906 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32908 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32909 cat >>confdefs.h <<_ACEOF
32910 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32920 tst_links_fsetxattr="unknown"
32921 tst_proto_fsetxattr="unknown"
32922 tst_compi_fsetxattr="unknown"
32923 tst_allow_fsetxattr="unknown"
32924 tst_nargs_fsetxattr="unknown"
32926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32927 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
32928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32929 /* end confdefs.h. */
32932 #define fsetxattr innocuous_fsetxattr
32934 # include <limits.h>
32936 # include <assert.h>
32943 #if defined __stub_fsetxattr || defined __stub___fsetxattr
32949 return fsetxattr ();
32955 if ac_fn_c_try_link "$LINENO"; then :
32957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32958 $as_echo "yes" >&6; }
32959 tst_links_fsetxattr="yes"
32963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32964 $as_echo "no" >&6; }
32965 tst_links_fsetxattr="no"
32968 rm -f core conftest.err conftest.$ac_objext \
32969 conftest$ac_exeext conftest.$ac_ext
32971 if test "$tst_links_fsetxattr" = "yes"; then
32972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32973 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32975 /* end confdefs.h. */
32977 $curl_includes_sys_xattr
32980 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32981 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32984 $as_echo "yes" >&6; }
32985 tst_proto_fsetxattr="yes"
32989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32990 $as_echo "no" >&6; }
32991 tst_proto_fsetxattr="no"
32998 if test "$tst_proto_fsetxattr" = "yes"; then
32999 if test "$tst_nargs_fsetxattr" = "unknown"; then
33000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
33001 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
33002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33003 /* end confdefs.h. */
33006 $curl_includes_sys_xattr
33011 if(0 != fsetxattr(0, 0, 0, 0, 0))
33019 if ac_fn_c_try_compile "$LINENO"; then :
33021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33022 $as_echo "yes" >&6; }
33023 tst_compi_fsetxattr="yes"
33024 tst_nargs_fsetxattr="5"
33028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33029 $as_echo "no" >&6; }
33030 tst_compi_fsetxattr="no"
33033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33035 if test "$tst_nargs_fsetxattr" = "unknown"; then
33036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
33037 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
33038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33039 /* end confdefs.h. */
33042 $curl_includes_sys_xattr
33047 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
33055 if ac_fn_c_try_compile "$LINENO"; then :
33057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33058 $as_echo "yes" >&6; }
33059 tst_compi_fsetxattr="yes"
33060 tst_nargs_fsetxattr="6"
33064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33065 $as_echo "no" >&6; }
33066 tst_compi_fsetxattr="no"
33069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
33072 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
33073 if test "$tst_compi_fsetxattr" = "yes"; then
33074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33075 $as_echo "yes" >&6; }
33077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33078 $as_echo "no" >&6; }
33082 if test "$tst_compi_fsetxattr" = "yes"; then
33083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
33084 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
33085 if test "x$curl_disallow_fsetxattr" != "xyes"; then
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33087 $as_echo "yes" >&6; }
33088 tst_allow_fsetxattr="yes"
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33091 $as_echo "no" >&6; }
33092 tst_allow_fsetxattr="no"
33096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
33097 $as_echo_n "checking if fsetxattr might be used... " >&6; }
33098 if test "$tst_links_fsetxattr" = "yes" &&
33099 test "$tst_proto_fsetxattr" = "yes" &&
33100 test "$tst_compi_fsetxattr" = "yes" &&
33101 test "$tst_allow_fsetxattr" = "yes"; then
33102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33103 $as_echo "yes" >&6; }
33105 cat >>confdefs.h <<_ACEOF
33106 #define HAVE_FSETXATTR 1
33110 if test "$tst_nargs_fsetxattr" -eq "5"; then
33112 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
33114 elif test "$tst_nargs_fsetxattr" -eq "6"; then
33116 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
33120 curl_cv_func_fsetxattr="yes"
33122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33123 $as_echo "no" >&6; }
33124 curl_cv_func_fsetxattr="no"
33129 tst_links_ftruncate="unknown"
33130 tst_proto_ftruncate="unknown"
33131 tst_compi_ftruncate="unknown"
33132 tst_allow_ftruncate="unknown"
33134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
33135 $as_echo_n "checking if ftruncate can be linked... " >&6; }
33136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33137 /* end confdefs.h. */
33140 #define ftruncate innocuous_ftruncate
33142 # include <limits.h>
33144 # include <assert.h>
33151 #if defined __stub_ftruncate || defined __stub___ftruncate
33157 return ftruncate ();
33163 if ac_fn_c_try_link "$LINENO"; then :
33165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33166 $as_echo "yes" >&6; }
33167 tst_links_ftruncate="yes"
33171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33172 $as_echo "no" >&6; }
33173 tst_links_ftruncate="no"
33176 rm -f core conftest.err conftest.$ac_objext \
33177 conftest$ac_exeext conftest.$ac_ext
33179 if test "$tst_links_ftruncate" = "yes"; then
33180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
33181 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
33182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33183 /* end confdefs.h. */
33185 $curl_includes_unistd
33188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33189 $EGREP "ftruncate" >/dev/null 2>&1; then :
33191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33192 $as_echo "yes" >&6; }
33193 tst_proto_ftruncate="yes"
33197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33198 $as_echo "no" >&6; }
33199 tst_proto_ftruncate="no"
33206 if test "$tst_proto_ftruncate" = "yes"; then
33207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
33208 $as_echo_n "checking if ftruncate is compilable... " >&6; }
33209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33210 /* end confdefs.h. */
33213 $curl_includes_unistd
33218 if(0 != ftruncate(0, 0))
33226 if ac_fn_c_try_compile "$LINENO"; then :
33228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33229 $as_echo "yes" >&6; }
33230 tst_compi_ftruncate="yes"
33234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33235 $as_echo "no" >&6; }
33236 tst_compi_ftruncate="no"
33239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33242 if test "$tst_compi_ftruncate" = "yes"; then
33243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
33244 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
33245 if test "x$curl_disallow_ftruncate" != "xyes"; then
33246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33247 $as_echo "yes" >&6; }
33248 tst_allow_ftruncate="yes"
33250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33251 $as_echo "no" >&6; }
33252 tst_allow_ftruncate="no"
33256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
33257 $as_echo_n "checking if ftruncate might be used... " >&6; }
33258 if test "$tst_links_ftruncate" = "yes" &&
33259 test "$tst_proto_ftruncate" = "yes" &&
33260 test "$tst_compi_ftruncate" = "yes" &&
33261 test "$tst_allow_ftruncate" = "yes"; then
33262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33263 $as_echo "yes" >&6; }
33265 cat >>confdefs.h <<_ACEOF
33266 #define HAVE_FTRUNCATE 1
33269 curl_cv_func_ftruncate="yes"
33271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33272 $as_echo "no" >&6; }
33273 curl_cv_func_ftruncate="no"
33277 curl_includes_stdlib="\
33278 /* includes start */
33279 #ifdef HAVE_SYS_TYPES_H
33280 # include <sys/types.h>
33282 #ifdef HAVE_STDLIB_H
33283 # include <stdlib.h>
33285 /* includes end */"
33286 for ac_header in sys/types.h stdlib.h
33288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
33291 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33292 cat >>confdefs.h <<_ACEOF
33293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33303 tst_links_getaddrinfo="unknown"
33304 tst_proto_getaddrinfo="unknown"
33305 tst_compi_getaddrinfo="unknown"
33306 tst_works_getaddrinfo="unknown"
33307 tst_allow_getaddrinfo="unknown"
33308 tst_tsafe_getaddrinfo="unknown"
33310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
33311 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
33312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33313 /* end confdefs.h. */
33316 $curl_includes_ws2tcpip
33317 $curl_includes_sys_socket
33318 $curl_includes_netdb
33323 if(0 != getaddrinfo(0, 0, 0, 0))
33331 if ac_fn_c_try_link "$LINENO"; then :
33333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33334 $as_echo "yes" >&6; }
33335 tst_links_getaddrinfo="yes"
33339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33340 $as_echo "no" >&6; }
33341 tst_links_getaddrinfo="no"
33344 rm -f core conftest.err conftest.$ac_objext \
33345 conftest$ac_exeext conftest.$ac_ext
33347 if test "$tst_links_getaddrinfo" = "yes"; then
33348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
33349 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
33350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33351 /* end confdefs.h. */
33353 $curl_includes_ws2tcpip
33354 $curl_includes_sys_socket
33355 $curl_includes_netdb
33358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33359 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
33361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33362 $as_echo "yes" >&6; }
33363 tst_proto_getaddrinfo="yes"
33367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33368 $as_echo "no" >&6; }
33369 tst_proto_getaddrinfo="no"
33376 if test "$tst_proto_getaddrinfo" = "yes"; then
33377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
33378 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
33379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33380 /* end confdefs.h. */
33383 $curl_includes_ws2tcpip
33384 $curl_includes_sys_socket
33385 $curl_includes_netdb
33390 if(0 != getaddrinfo(0, 0, 0, 0))
33398 if ac_fn_c_try_compile "$LINENO"; then :
33400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33401 $as_echo "yes" >&6; }
33402 tst_compi_getaddrinfo="yes"
33406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33407 $as_echo "no" >&6; }
33408 tst_compi_getaddrinfo="no"
33411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33414 if test "x$cross_compiling" != "xyes" &&
33415 test "$tst_compi_getaddrinfo" = "yes"; then
33416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
33417 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
33420 old=$LD_LIBRARY_PATH
33421 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
33422 export LD_LIBRARY_PATH
33423 if test "$cross_compiling" = yes; then :
33424 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33425 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33426 as_fn_error $? "cannot run test program while cross compiling
33427 See \`config.log' for more details" "$LINENO" 5; }
33429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33430 /* end confdefs.h. */
33433 $curl_includes_ws2tcpip
33434 $curl_includes_stdlib
33435 $curl_includes_string
33436 $curl_includes_sys_socket
33437 $curl_includes_netdb
33442 struct addrinfo hints;
33443 struct addrinfo *ai = 0;
33446 #ifdef HAVE_WINSOCK2_H
33448 if (WSAStartup(MAKEWORD(2,2), &wsa))
33452 memset(&hints, 0, sizeof(hints));
33453 hints.ai_flags = AI_NUMERICHOST;
33454 hints.ai_family = AF_UNSPEC;
33455 hints.ai_socktype = SOCK_STREAM;
33456 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
33458 exit(1); /* fail */
33467 if ac_fn_c_try_run "$LINENO"; then :
33468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33469 $as_echo "yes" >&6; }
33470 tst_works_getaddrinfo="yes"
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33474 $as_echo "no" >&6; }
33475 tst_works_getaddrinfo="no"
33478 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33479 conftest.$ac_objext conftest.beam conftest.$ac_ext
33482 LD_LIBRARY_PATH=$old # restore
33486 if test "$tst_compi_getaddrinfo" = "yes" &&
33487 test "$tst_works_getaddrinfo" != "no"; then
33488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
33489 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
33490 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
33491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33492 $as_echo "yes" >&6; }
33493 tst_allow_getaddrinfo="yes"
33495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33496 $as_echo "no" >&6; }
33497 tst_allow_getaddrinfo="no"
33501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
33502 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
33503 if test "$tst_links_getaddrinfo" = "yes" &&
33504 test "$tst_proto_getaddrinfo" = "yes" &&
33505 test "$tst_compi_getaddrinfo" = "yes" &&
33506 test "$tst_allow_getaddrinfo" = "yes" &&
33507 test "$tst_works_getaddrinfo" != "no"; then
33508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33509 $as_echo "yes" >&6; }
33511 cat >>confdefs.h <<_ACEOF
33512 #define HAVE_GETADDRINFO 1
33515 curl_cv_func_getaddrinfo="yes"
33517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33518 $as_echo "no" >&6; }
33519 curl_cv_func_getaddrinfo="no"
33520 curl_cv_func_getaddrinfo_threadsafe="no"
33523 if test "$curl_cv_func_getaddrinfo" = "yes"; then
33524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
33525 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
33527 aix[1234].* | aix5.[01].*)
33528 tst_tsafe_getaddrinfo="no"
33531 tst_tsafe_getaddrinfo="yes"
33534 tst_tsafe_getaddrinfo="no"
33537 tst_tsafe_getaddrinfo="yes"
33539 freebsd[1234].* | freebsd5.[1234]*)
33540 tst_tsafe_getaddrinfo="no"
33543 tst_tsafe_getaddrinfo="yes"
33545 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
33546 tst_tsafe_getaddrinfo="no"
33549 tst_tsafe_getaddrinfo="yes"
33552 tst_tsafe_getaddrinfo="no"
33555 tst_tsafe_getaddrinfo="yes"
33558 tst_tsafe_getaddrinfo="no"
33561 tst_tsafe_getaddrinfo="yes"
33564 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
33565 test "$curl_cv_native_windows" = "yes"; then
33566 tst_tsafe_getaddrinfo="yes"
33568 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
33571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33572 /* end confdefs.h. */
33575 $curl_includes_sys_socket
33576 $curl_includes_netdb
33583 force compilation error
33589 if ac_fn_c_try_compile "$LINENO"; then :
33591 tst_symbol_defined="yes"
33595 tst_symbol_defined="no"
33598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33599 if test "$tst_symbol_defined" = "yes"; then
33600 curl_cv_have_def_h_errno=yes
33603 curl_cv_have_def_h_errno=no
33607 if test "$curl_cv_have_def_h_errno" = "yes"; then
33608 tst_h_errno_macro="yes"
33610 tst_h_errno_macro="no"
33612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33613 /* end confdefs.h. */
33616 $curl_includes_sys_socket
33617 $curl_includes_netdb
33631 if ac_fn_c_try_compile "$LINENO"; then :
33633 tst_h_errno_modifiable_lvalue="yes"
33637 tst_h_errno_modifiable_lvalue="no"
33640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33642 /* end confdefs.h. */
33649 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
33651 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
33654 force compilation error
33662 if ac_fn_c_try_compile "$LINENO"; then :
33664 tst_h_errno_sbs_issue_7="yes"
33668 tst_h_errno_sbs_issue_7="no"
33671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33672 if test "$tst_h_errno_macro" = "no" &&
33673 test "$tst_h_errno_modifiable_lvalue" = "no" &&
33674 test "$tst_h_errno_sbs_issue_7" = "no"; then
33675 tst_tsafe_getaddrinfo="no"
33677 tst_tsafe_getaddrinfo="yes"
33680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
33681 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
33682 if test "$tst_tsafe_getaddrinfo" = "yes"; then
33684 cat >>confdefs.h <<_ACEOF
33685 #define HAVE_GETADDRINFO_THREADSAFE 1
33688 curl_cv_func_getaddrinfo_threadsafe="yes"
33690 curl_cv_func_getaddrinfo_threadsafe="no"
33696 tst_links_gai_strerror="unknown"
33697 tst_proto_gai_strerror="unknown"
33698 tst_compi_gai_strerror="unknown"
33699 tst_allow_gai_strerror="unknown"
33701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
33702 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
33703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33704 /* end confdefs.h. */
33707 $curl_includes_winsock2
33708 $curl_includes_bsdsocket
33709 $curl_includes_netdb
33714 if(0 != gai_strerror(0))
33722 if ac_fn_c_try_link "$LINENO"; then :
33724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33725 $as_echo "yes" >&6; }
33726 tst_links_gai_strerror="yes"
33730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33731 $as_echo "no" >&6; }
33732 tst_links_gai_strerror="no"
33735 rm -f core conftest.err conftest.$ac_objext \
33736 conftest$ac_exeext conftest.$ac_ext
33738 if test "$tst_links_gai_strerror" = "yes"; then
33739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
33740 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
33741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33742 /* end confdefs.h. */
33744 $curl_includes_winsock2
33745 $curl_includes_bsdsocket
33746 $curl_includes_netdb
33749 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33750 $EGREP "gai_strerror" >/dev/null 2>&1; then :
33752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33753 $as_echo "yes" >&6; }
33754 tst_proto_gai_strerror="yes"
33758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33759 $as_echo "no" >&6; }
33760 tst_proto_gai_strerror="no"
33767 if test "$tst_proto_gai_strerror" = "yes"; then
33768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
33769 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
33770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33771 /* end confdefs.h. */
33774 $curl_includes_winsock2
33775 $curl_includes_bsdsocket
33776 $curl_includes_netdb
33781 if(0 != gai_strerror(0))
33789 if ac_fn_c_try_compile "$LINENO"; then :
33791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33792 $as_echo "yes" >&6; }
33793 tst_compi_gai_strerror="yes"
33797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33798 $as_echo "no" >&6; }
33799 tst_compi_gai_strerror="no"
33802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33805 if test "$tst_compi_gai_strerror" = "yes"; then
33806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
33807 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
33808 if test "x$curl_disallow_gai_strerror" != "xyes"; then
33809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33810 $as_echo "yes" >&6; }
33811 tst_allow_gai_strerror="yes"
33813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33814 $as_echo "no" >&6; }
33815 tst_allow_gai_strerror="no"
33819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
33820 $as_echo_n "checking if gai_strerror might be used... " >&6; }
33821 if test "$tst_links_gai_strerror" = "yes" &&
33822 test "$tst_proto_gai_strerror" = "yes" &&
33823 test "$tst_compi_gai_strerror" = "yes" &&
33824 test "$tst_allow_gai_strerror" = "yes"; then
33825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33826 $as_echo "yes" >&6; }
33828 cat >>confdefs.h <<_ACEOF
33829 #define HAVE_GAI_STRERROR 1
33832 curl_cv_func_gai_strerror="yes"
33834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33835 $as_echo "no" >&6; }
33836 curl_cv_func_gai_strerror="no"
33841 tst_links_gethostbyaddr="unknown"
33842 tst_proto_gethostbyaddr="unknown"
33843 tst_compi_gethostbyaddr="unknown"
33844 tst_allow_gethostbyaddr="unknown"
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
33847 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
33848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33849 /* end confdefs.h. */
33852 $curl_includes_winsock2
33853 $curl_includes_bsdsocket
33854 $curl_includes_netdb
33859 if(0 != gethostbyaddr(0, 0, 0))
33867 if ac_fn_c_try_link "$LINENO"; then :
33869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33870 $as_echo "yes" >&6; }
33871 tst_links_gethostbyaddr="yes"
33875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33876 $as_echo "no" >&6; }
33877 tst_links_gethostbyaddr="no"
33880 rm -f core conftest.err conftest.$ac_objext \
33881 conftest$ac_exeext conftest.$ac_ext
33883 if test "$tst_links_gethostbyaddr" = "yes"; then
33884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33885 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33887 /* end confdefs.h. */
33889 $curl_includes_winsock2
33890 $curl_includes_bsdsocket
33891 $curl_includes_netdb
33894 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33895 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33898 $as_echo "yes" >&6; }
33899 tst_proto_gethostbyaddr="yes"
33903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33904 $as_echo "no" >&6; }
33905 tst_proto_gethostbyaddr="no"
33912 if test "$tst_proto_gethostbyaddr" = "yes"; then
33913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33914 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33916 /* end confdefs.h. */
33919 $curl_includes_winsock2
33920 $curl_includes_bsdsocket
33921 $curl_includes_netdb
33926 if(0 != gethostbyaddr(0, 0, 0))
33934 if ac_fn_c_try_compile "$LINENO"; then :
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33937 $as_echo "yes" >&6; }
33938 tst_compi_gethostbyaddr="yes"
33942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33943 $as_echo "no" >&6; }
33944 tst_compi_gethostbyaddr="no"
33947 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33950 if test "$tst_compi_gethostbyaddr" = "yes"; then
33951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33952 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33953 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33955 $as_echo "yes" >&6; }
33956 tst_allow_gethostbyaddr="yes"
33958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33959 $as_echo "no" >&6; }
33960 tst_allow_gethostbyaddr="no"
33964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33965 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33966 if test "$tst_links_gethostbyaddr" = "yes" &&
33967 test "$tst_proto_gethostbyaddr" = "yes" &&
33968 test "$tst_compi_gethostbyaddr" = "yes" &&
33969 test "$tst_allow_gethostbyaddr" = "yes"; then
33970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33971 $as_echo "yes" >&6; }
33973 cat >>confdefs.h <<_ACEOF
33974 #define HAVE_GETHOSTBYADDR 1
33977 curl_cv_func_gethostbyaddr="yes"
33979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33980 $as_echo "no" >&6; }
33981 curl_cv_func_gethostbyaddr="no"
33986 tst_links_gethostbyaddr_r="unknown"
33987 tst_proto_gethostbyaddr_r="unknown"
33988 tst_compi_gethostbyaddr_r="unknown"
33989 tst_allow_gethostbyaddr_r="unknown"
33990 tst_nargs_gethostbyaddr_r="unknown"
33992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33993 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33995 /* end confdefs.h. */
33998 #define gethostbyaddr_r innocuous_gethostbyaddr_r
34000 # include <limits.h>
34002 # include <assert.h>
34004 #undef gethostbyaddr_r
34008 char gethostbyaddr_r ();
34009 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
34015 return gethostbyaddr_r ();
34021 if ac_fn_c_try_link "$LINENO"; then :
34023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34024 $as_echo "yes" >&6; }
34025 tst_links_gethostbyaddr_r="yes"
34029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34030 $as_echo "no" >&6; }
34031 tst_links_gethostbyaddr_r="no"
34034 rm -f core conftest.err conftest.$ac_objext \
34035 conftest$ac_exeext conftest.$ac_ext
34037 if test "$tst_links_gethostbyaddr_r" = "yes"; then
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
34039 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
34040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34041 /* end confdefs.h. */
34043 $curl_includes_netdb
34046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34047 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34050 $as_echo "yes" >&6; }
34051 tst_proto_gethostbyaddr_r="yes"
34055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34056 $as_echo "no" >&6; }
34057 tst_proto_gethostbyaddr_r="no"
34064 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
34065 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
34067 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
34068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34069 /* end confdefs.h. */
34072 $curl_includes_netdb
34077 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
34085 if ac_fn_c_try_compile "$LINENO"; then :
34087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34088 $as_echo "yes" >&6; }
34089 tst_compi_gethostbyaddr_r="yes"
34090 tst_nargs_gethostbyaddr_r="5"
34094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34095 $as_echo "no" >&6; }
34096 tst_compi_gethostbyaddr_r="no"
34099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34101 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
34102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
34103 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
34104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34105 /* end confdefs.h. */
34108 $curl_includes_netdb
34113 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
34121 if ac_fn_c_try_compile "$LINENO"; then :
34123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34124 $as_echo "yes" >&6; }
34125 tst_compi_gethostbyaddr_r="yes"
34126 tst_nargs_gethostbyaddr_r="7"
34130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34131 $as_echo "no" >&6; }
34132 tst_compi_gethostbyaddr_r="no"
34135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34137 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
34138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
34139 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
34140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34141 /* end confdefs.h. */
34144 $curl_includes_netdb
34149 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
34157 if ac_fn_c_try_compile "$LINENO"; then :
34159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34160 $as_echo "yes" >&6; }
34161 tst_compi_gethostbyaddr_r="yes"
34162 tst_nargs_gethostbyaddr_r="8"
34166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34167 $as_echo "no" >&6; }
34168 tst_compi_gethostbyaddr_r="no"
34171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
34174 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
34175 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
34176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34177 $as_echo "yes" >&6; }
34179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34180 $as_echo "no" >&6; }
34184 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
34186 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
34187 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
34188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34189 $as_echo "yes" >&6; }
34190 tst_allow_gethostbyaddr_r="yes"
34192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34193 $as_echo "no" >&6; }
34194 tst_allow_gethostbyaddr_r="no"
34198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
34199 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
34200 if test "$tst_links_gethostbyaddr_r" = "yes" &&
34201 test "$tst_proto_gethostbyaddr_r" = "yes" &&
34202 test "$tst_compi_gethostbyaddr_r" = "yes" &&
34203 test "$tst_allow_gethostbyaddr_r" = "yes"; then
34204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34205 $as_echo "yes" >&6; }
34207 cat >>confdefs.h <<_ACEOF
34208 #define HAVE_GETHOSTBYADDR_R 1
34212 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
34214 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
34216 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
34218 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
34220 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
34222 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
34226 curl_cv_func_gethostbyaddr_r="yes"
34228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34229 $as_echo "no" >&6; }
34230 curl_cv_func_gethostbyaddr_r="no"
34235 tst_links_gethostbyname="unknown"
34236 tst_proto_gethostbyname="unknown"
34237 tst_compi_gethostbyname="unknown"
34238 tst_allow_gethostbyname="unknown"
34240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
34241 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
34242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34243 /* end confdefs.h. */
34246 $curl_includes_winsock2
34247 $curl_includes_bsdsocket
34248 $curl_includes_netdb
34253 if(0 != gethostbyname(0))
34261 if ac_fn_c_try_link "$LINENO"; then :
34263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34264 $as_echo "yes" >&6; }
34265 tst_links_gethostbyname="yes"
34269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34270 $as_echo "no" >&6; }
34271 tst_links_gethostbyname="no"
34274 rm -f core conftest.err conftest.$ac_objext \
34275 conftest$ac_exeext conftest.$ac_ext
34277 if test "$tst_links_gethostbyname" = "yes"; then
34278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
34279 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
34280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34281 /* end confdefs.h. */
34283 $curl_includes_winsock2
34284 $curl_includes_bsdsocket
34285 $curl_includes_netdb
34288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34289 $EGREP "gethostbyname" >/dev/null 2>&1; then :
34291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34292 $as_echo "yes" >&6; }
34293 tst_proto_gethostbyname="yes"
34297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34298 $as_echo "no" >&6; }
34299 tst_proto_gethostbyname="no"
34306 if test "$tst_proto_gethostbyname" = "yes"; then
34307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
34308 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
34309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34310 /* end confdefs.h. */
34313 $curl_includes_winsock2
34314 $curl_includes_bsdsocket
34315 $curl_includes_netdb
34320 if(0 != gethostbyname(0))
34328 if ac_fn_c_try_compile "$LINENO"; then :
34330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34331 $as_echo "yes" >&6; }
34332 tst_compi_gethostbyname="yes"
34336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34337 $as_echo "no" >&6; }
34338 tst_compi_gethostbyname="no"
34341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34344 if test "$tst_compi_gethostbyname" = "yes"; then
34345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
34346 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
34347 if test "x$curl_disallow_gethostbyname" != "xyes"; then
34348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34349 $as_echo "yes" >&6; }
34350 tst_allow_gethostbyname="yes"
34352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34353 $as_echo "no" >&6; }
34354 tst_allow_gethostbyname="no"
34358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
34359 $as_echo_n "checking if gethostbyname might be used... " >&6; }
34360 if test "$tst_links_gethostbyname" = "yes" &&
34361 test "$tst_proto_gethostbyname" = "yes" &&
34362 test "$tst_compi_gethostbyname" = "yes" &&
34363 test "$tst_allow_gethostbyname" = "yes"; then
34364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34365 $as_echo "yes" >&6; }
34367 cat >>confdefs.h <<_ACEOF
34368 #define HAVE_GETHOSTBYNAME 1
34371 curl_cv_func_gethostbyname="yes"
34373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34374 $as_echo "no" >&6; }
34375 curl_cv_func_gethostbyname="no"
34380 tst_links_gethostbyname_r="unknown"
34381 tst_proto_gethostbyname_r="unknown"
34382 tst_compi_gethostbyname_r="unknown"
34383 tst_allow_gethostbyname_r="unknown"
34384 tst_nargs_gethostbyname_r="unknown"
34386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
34387 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
34388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34389 /* end confdefs.h. */
34392 #define gethostbyname_r innocuous_gethostbyname_r
34394 # include <limits.h>
34396 # include <assert.h>
34398 #undef gethostbyname_r
34402 char gethostbyname_r ();
34403 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
34409 return gethostbyname_r ();
34415 if ac_fn_c_try_link "$LINENO"; then :
34417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34418 $as_echo "yes" >&6; }
34419 tst_links_gethostbyname_r="yes"
34423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34424 $as_echo "no" >&6; }
34425 tst_links_gethostbyname_r="no"
34428 rm -f core conftest.err conftest.$ac_objext \
34429 conftest$ac_exeext conftest.$ac_ext
34431 if test "$tst_links_gethostbyname_r" = "yes"; then
34432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
34433 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
34434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34435 /* end confdefs.h. */
34437 $curl_includes_netdb
34440 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34441 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
34443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34444 $as_echo "yes" >&6; }
34445 tst_proto_gethostbyname_r="yes"
34449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34450 $as_echo "no" >&6; }
34451 tst_proto_gethostbyname_r="no"
34458 if test "$tst_proto_gethostbyname_r" = "yes"; then
34459 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
34460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
34461 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
34462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34463 /* end confdefs.h. */
34466 $curl_includes_netdb
34471 if(0 != gethostbyname_r(0, 0, 0))
34479 if ac_fn_c_try_compile "$LINENO"; then :
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34482 $as_echo "yes" >&6; }
34483 tst_compi_gethostbyname_r="yes"
34484 tst_nargs_gethostbyname_r="3"
34488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34489 $as_echo "no" >&6; }
34490 tst_compi_gethostbyname_r="no"
34493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34495 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
34496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
34497 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
34498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34499 /* end confdefs.h. */
34502 $curl_includes_netdb
34507 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
34515 if ac_fn_c_try_compile "$LINENO"; then :
34517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34518 $as_echo "yes" >&6; }
34519 tst_compi_gethostbyname_r="yes"
34520 tst_nargs_gethostbyname_r="5"
34524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34525 $as_echo "no" >&6; }
34526 tst_compi_gethostbyname_r="no"
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34531 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
34532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
34533 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
34534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34535 /* end confdefs.h. */
34538 $curl_includes_netdb
34543 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
34551 if ac_fn_c_try_compile "$LINENO"; then :
34553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34554 $as_echo "yes" >&6; }
34555 tst_compi_gethostbyname_r="yes"
34556 tst_nargs_gethostbyname_r="6"
34560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34561 $as_echo "no" >&6; }
34562 tst_compi_gethostbyname_r="no"
34565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
34568 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
34569 if test "$tst_compi_gethostbyname_r" = "yes"; then
34570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34571 $as_echo "yes" >&6; }
34573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34574 $as_echo "no" >&6; }
34578 if test "$tst_compi_gethostbyname_r" = "yes"; then
34579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
34580 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
34581 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
34582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34583 $as_echo "yes" >&6; }
34584 tst_allow_gethostbyname_r="yes"
34586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34587 $as_echo "no" >&6; }
34588 tst_allow_gethostbyname_r="no"
34592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
34593 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
34594 if test "$tst_links_gethostbyname_r" = "yes" &&
34595 test "$tst_proto_gethostbyname_r" = "yes" &&
34596 test "$tst_compi_gethostbyname_r" = "yes" &&
34597 test "$tst_allow_gethostbyname_r" = "yes"; then
34598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34599 $as_echo "yes" >&6; }
34601 cat >>confdefs.h <<_ACEOF
34602 #define HAVE_GETHOSTBYNAME_R 1
34606 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
34608 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
34610 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
34612 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
34614 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
34616 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
34620 curl_cv_func_gethostbyname_r="yes"
34622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34623 $as_echo "no" >&6; }
34624 curl_cv_func_gethostbyname_r="no"
34628 curl_preprocess_callconv="\
34629 /* preprocess start */
34630 #ifdef HAVE_WINDOWS_H
34631 # define FUNCALLCONV __stdcall
34633 # define FUNCALLCONV
34635 /* preprocess end */"
34639 tst_links_gethostname="unknown"
34640 tst_proto_gethostname="unknown"
34641 tst_compi_gethostname="unknown"
34642 tst_allow_gethostname="unknown"
34644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
34645 $as_echo_n "checking if gethostname can be linked... " >&6; }
34646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647 /* end confdefs.h. */
34650 $curl_includes_winsock2
34651 $curl_includes_bsdsocket
34652 $curl_includes_unistd
34657 if(0 != gethostname(0, 0))
34665 if ac_fn_c_try_link "$LINENO"; then :
34667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34668 $as_echo "yes" >&6; }
34669 tst_links_gethostname="yes"
34673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34674 $as_echo "no" >&6; }
34675 tst_links_gethostname="no"
34678 rm -f core conftest.err conftest.$ac_objext \
34679 conftest$ac_exeext conftest.$ac_ext
34681 if test "$tst_links_gethostname" = "yes"; then
34682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
34683 $as_echo_n "checking if gethostname is prototyped... " >&6; }
34684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34685 /* end confdefs.h. */
34687 $curl_includes_winsock2
34688 $curl_includes_bsdsocket
34689 $curl_includes_unistd
34692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34693 $EGREP "gethostname" >/dev/null 2>&1; then :
34695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34696 $as_echo "yes" >&6; }
34697 tst_proto_gethostname="yes"
34701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34702 $as_echo "no" >&6; }
34703 tst_proto_gethostname="no"
34710 if test "$tst_proto_gethostname" = "yes"; then
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
34712 $as_echo_n "checking if gethostname is compilable... " >&6; }
34713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34714 /* end confdefs.h. */
34717 $curl_includes_winsock2
34718 $curl_includes_bsdsocket
34719 $curl_includes_unistd
34724 if(0 != gethostname(0, 0))
34732 if ac_fn_c_try_compile "$LINENO"; then :
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34735 $as_echo "yes" >&6; }
34736 tst_compi_gethostname="yes"
34740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34741 $as_echo "no" >&6; }
34742 tst_compi_gethostname="no"
34745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34748 if test "$tst_compi_gethostname" = "yes"; then
34749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
34750 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
34751 tst_gethostname_type_arg2="unknown"
34752 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
34753 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
34754 if test "$tst_gethostname_type_arg2" = "unknown"; then
34755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34756 /* end confdefs.h. */
34759 $curl_includes_winsock2
34760 $curl_includes_bsdsocket
34761 $curl_includes_unistd
34762 $curl_preprocess_callconv
34763 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
34768 if(0 != gethostname(0, 0))
34776 if ac_fn_c_try_compile "$LINENO"; then :
34778 tst_gethostname_type_arg2="$tst_arg2"
34781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
34786 $as_echo "$tst_gethostname_type_arg2" >&6; }
34787 if test "$tst_gethostname_type_arg2" != "unknown"; then
34789 cat >>confdefs.h <<_ACEOF
34790 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
34796 if test "$tst_compi_gethostname" = "yes"; then
34797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
34798 $as_echo_n "checking if gethostname usage allowed... " >&6; }
34799 if test "x$curl_disallow_gethostname" != "xyes"; then
34800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34801 $as_echo "yes" >&6; }
34802 tst_allow_gethostname="yes"
34804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34805 $as_echo "no" >&6; }
34806 tst_allow_gethostname="no"
34810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
34811 $as_echo_n "checking if gethostname might be used... " >&6; }
34812 if test "$tst_links_gethostname" = "yes" &&
34813 test "$tst_proto_gethostname" = "yes" &&
34814 test "$tst_compi_gethostname" = "yes" &&
34815 test "$tst_allow_gethostname" = "yes"; then
34816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34817 $as_echo "yes" >&6; }
34819 cat >>confdefs.h <<_ACEOF
34820 #define HAVE_GETHOSTNAME 1
34823 curl_cv_func_gethostname="yes"
34825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34826 $as_echo "no" >&6; }
34827 curl_cv_func_gethostname="no"
34832 tst_links_getpeername="unknown"
34833 tst_proto_getpeername="unknown"
34834 tst_compi_getpeername="unknown"
34835 tst_allow_getpeername="unknown"
34837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
34838 $as_echo_n "checking if getpeername can be linked... " >&6; }
34839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34840 /* end confdefs.h. */
34843 $curl_includes_winsock2
34844 $curl_includes_bsdsocket
34845 $curl_includes_sys_socket
34850 if(0 != getpeername(0, (void *)0, (void *)0))
34858 if ac_fn_c_try_link "$LINENO"; then :
34860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34861 $as_echo "yes" >&6; }
34862 tst_links_getpeername="yes"
34866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34867 $as_echo "no" >&6; }
34868 tst_links_getpeername="no"
34871 rm -f core conftest.err conftest.$ac_objext \
34872 conftest$ac_exeext conftest.$ac_ext
34874 if test "$tst_links_getpeername" = "yes"; then
34875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
34876 $as_echo_n "checking if getpeername is prototyped... " >&6; }
34877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34878 /* end confdefs.h. */
34880 $curl_includes_winsock2
34881 $curl_includes_bsdsocket
34882 $curl_includes_sys_socket
34885 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34886 $EGREP "getpeername" >/dev/null 2>&1; then :
34888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34889 $as_echo "yes" >&6; }
34890 tst_proto_getpeername="yes"
34894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34895 $as_echo "no" >&6; }
34896 tst_proto_getpeername="no"
34903 if test "$tst_proto_getpeername" = "yes"; then
34904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
34905 $as_echo_n "checking if getpeername is compilable... " >&6; }
34906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34907 /* end confdefs.h. */
34910 $curl_includes_winsock2
34911 $curl_includes_bsdsocket
34912 $curl_includes_sys_socket
34917 if(0 != getpeername(0, (void *)0, (void *)0))
34925 if ac_fn_c_try_compile "$LINENO"; then :
34927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34928 $as_echo "yes" >&6; }
34929 tst_compi_getpeername="yes"
34933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34934 $as_echo "no" >&6; }
34935 tst_compi_getpeername="no"
34938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34941 if test "$tst_compi_getpeername" = "yes"; then
34942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
34943 $as_echo_n "checking if getpeername usage allowed... " >&6; }
34944 if test "x$curl_disallow_getpeername" != "xyes"; then
34945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34946 $as_echo "yes" >&6; }
34947 tst_allow_getpeername="yes"
34949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34950 $as_echo "no" >&6; }
34951 tst_allow_getpeername="no"
34955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
34956 $as_echo_n "checking if getpeername might be used... " >&6; }
34957 if test "$tst_links_getpeername" = "yes" &&
34958 test "$tst_proto_getpeername" = "yes" &&
34959 test "$tst_compi_getpeername" = "yes" &&
34960 test "$tst_allow_getpeername" = "yes"; then
34961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34962 $as_echo "yes" >&6; }
34964 cat >>confdefs.h <<_ACEOF
34965 #define HAVE_GETPEERNAME 1
34968 curl_cv_func_getpeername="yes"
34970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34971 $as_echo "no" >&6; }
34972 curl_cv_func_getpeername="no"
34977 tst_links_getsockname="unknown"
34978 tst_proto_getsockname="unknown"
34979 tst_compi_getsockname="unknown"
34980 tst_allow_getsockname="unknown"
34982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
34983 $as_echo_n "checking if getsockname can be linked... " >&6; }
34984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34985 /* end confdefs.h. */
34988 $curl_includes_winsock2
34989 $curl_includes_bsdsocket
34990 $curl_includes_sys_socket
34995 if(0 != getsockname(0, (void *)0, (void *)0))
35003 if ac_fn_c_try_link "$LINENO"; then :
35005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35006 $as_echo "yes" >&6; }
35007 tst_links_getsockname="yes"
35011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35012 $as_echo "no" >&6; }
35013 tst_links_getsockname="no"
35016 rm -f core conftest.err conftest.$ac_objext \
35017 conftest$ac_exeext conftest.$ac_ext
35019 if test "$tst_links_getsockname" = "yes"; then
35020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
35021 $as_echo_n "checking if getsockname is prototyped... " >&6; }
35022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35023 /* end confdefs.h. */
35025 $curl_includes_winsock2
35026 $curl_includes_bsdsocket
35027 $curl_includes_sys_socket
35030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35031 $EGREP "getsockname" >/dev/null 2>&1; then :
35033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35034 $as_echo "yes" >&6; }
35035 tst_proto_getsockname="yes"
35039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35040 $as_echo "no" >&6; }
35041 tst_proto_getsockname="no"
35048 if test "$tst_proto_getsockname" = "yes"; then
35049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
35050 $as_echo_n "checking if getsockname is compilable... " >&6; }
35051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35052 /* end confdefs.h. */
35055 $curl_includes_winsock2
35056 $curl_includes_bsdsocket
35057 $curl_includes_sys_socket
35062 if(0 != getsockname(0, (void *)0, (void *)0))
35070 if ac_fn_c_try_compile "$LINENO"; then :
35072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35073 $as_echo "yes" >&6; }
35074 tst_compi_getsockname="yes"
35078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35079 $as_echo "no" >&6; }
35080 tst_compi_getsockname="no"
35083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35086 if test "$tst_compi_getsockname" = "yes"; then
35087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
35088 $as_echo_n "checking if getsockname usage allowed... " >&6; }
35089 if test "x$curl_disallow_getsockname" != "xyes"; then
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35091 $as_echo "yes" >&6; }
35092 tst_allow_getsockname="yes"
35094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35095 $as_echo "no" >&6; }
35096 tst_allow_getsockname="no"
35100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
35101 $as_echo_n "checking if getsockname might be used... " >&6; }
35102 if test "$tst_links_getsockname" = "yes" &&
35103 test "$tst_proto_getsockname" = "yes" &&
35104 test "$tst_compi_getsockname" = "yes" &&
35105 test "$tst_allow_getsockname" = "yes"; then
35106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35107 $as_echo "yes" >&6; }
35109 cat >>confdefs.h <<_ACEOF
35110 #define HAVE_GETSOCKNAME 1
35113 curl_cv_func_getsockname="yes"
35115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35116 $as_echo "no" >&6; }
35117 curl_cv_func_getsockname="no"
35121 curl_includes_netif="\
35122 /* includes start */
35123 #ifdef HAVE_NET_IF_H
35124 # include <net/if.h>
35126 /* includes end */"
35127 for ac_header in net/if.h
35129 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
35131 if test "x$ac_cv_header_net_if_h" = xyes; then :
35132 cat >>confdefs.h <<_ACEOF
35133 #define HAVE_NET_IF_H 1
35143 tst_links_if_nametoindex="unknown"
35144 tst_proto_if_nametoindex="unknown"
35145 tst_compi_if_nametoindex="unknown"
35146 tst_allow_if_nametoindex="unknown"
35148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
35149 $as_echo_n "checking if if_nametoindex can be linked... " >&6; }
35150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35151 /* end confdefs.h. */
35154 $curl_includes_winsock2
35155 $curl_includes_bsdsocket
35156 #include <net/if.h>
35161 if(0 != if_nametoindex(""))
35169 if ac_fn_c_try_link "$LINENO"; then :
35171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35172 $as_echo "yes" >&6; }
35173 tst_links_if_nametoindex="yes"
35177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35178 $as_echo "no" >&6; }
35179 tst_links_if_nametoindex="no"
35182 rm -f core conftest.err conftest.$ac_objext \
35183 conftest$ac_exeext conftest.$ac_ext
35185 if test "$tst_links_if_nametoindex" = "yes"; then
35186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
35187 $as_echo_n "checking if if_nametoindex is prototyped... " >&6; }
35188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35189 /* end confdefs.h. */
35191 $curl_includes_winsock2
35192 $curl_includes_netif
35195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35196 $EGREP "if_nametoindex" >/dev/null 2>&1; then :
35198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35199 $as_echo "yes" >&6; }
35200 tst_proto_if_nametoindex="yes"
35204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35205 $as_echo "no" >&6; }
35206 tst_proto_if_nametoindex="no"
35213 if test "$tst_proto_if_nametoindex" = "yes"; then
35214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
35215 $as_echo_n "checking if if_nametoindex is compilable... " >&6; }
35216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35217 /* end confdefs.h. */
35220 $curl_includes_winsock2
35221 $curl_includes_netif
35226 if(0 != if_nametoindex(""))
35234 if ac_fn_c_try_compile "$LINENO"; then :
35236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35237 $as_echo "yes" >&6; }
35238 tst_compi_if_nametoindex="yes"
35242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35243 $as_echo "no" >&6; }
35244 tst_compi_if_nametoindex="no"
35247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35250 if test "$tst_compi_if_nametoindex" = "yes"; then
35251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
35252 $as_echo_n "checking if if_nametoindex usage allowed... " >&6; }
35253 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
35254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35255 $as_echo "yes" >&6; }
35256 tst_allow_if_nametoindex="yes"
35258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35259 $as_echo "no" >&6; }
35260 tst_allow_if_nametoindex="no"
35264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
35265 $as_echo_n "checking if if_nametoindex might be used... " >&6; }
35266 if test "$tst_links_if_nametoindex" = "yes" &&
35267 test "$tst_proto_if_nametoindex" = "yes" &&
35268 test "$tst_compi_if_nametoindex" = "yes" &&
35269 test "$tst_allow_if_nametoindex" = "yes"; then
35270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35271 $as_echo "yes" >&6; }
35273 cat >>confdefs.h <<_ACEOF
35274 #define HAVE_IF_NAMETOINDEX 1
35277 curl_cv_func_if_nametoindex="yes"
35279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35280 $as_echo "no" >&6; }
35281 curl_cv_func_if_nametoindex="no"
35286 tst_links_getifaddrs="unknown"
35287 tst_proto_getifaddrs="unknown"
35288 tst_compi_getifaddrs="unknown"
35289 tst_works_getifaddrs="unknown"
35290 tst_allow_getifaddrs="unknown"
35292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
35293 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
35294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35295 /* end confdefs.h. */
35298 #define getifaddrs innocuous_getifaddrs
35300 # include <limits.h>
35302 # include <assert.h>
35308 char getifaddrs ();
35309 #if defined __stub_getifaddrs || defined __stub___getifaddrs
35315 return getifaddrs ();
35321 if ac_fn_c_try_link "$LINENO"; then :
35323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35324 $as_echo "yes" >&6; }
35325 tst_links_getifaddrs="yes"
35329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35330 $as_echo "no" >&6; }
35331 tst_links_getifaddrs="no"
35334 rm -f core conftest.err conftest.$ac_objext \
35335 conftest$ac_exeext conftest.$ac_ext
35337 if test "$tst_links_getifaddrs" = "yes"; then
35338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
35339 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
35340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35341 /* end confdefs.h. */
35343 $curl_includes_ifaddrs
35346 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35347 $EGREP "getifaddrs" >/dev/null 2>&1; then :
35349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35350 $as_echo "yes" >&6; }
35351 tst_proto_getifaddrs="yes"
35355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35356 $as_echo "no" >&6; }
35357 tst_proto_getifaddrs="no"
35364 if test "$tst_proto_getifaddrs" = "yes"; then
35365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
35366 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
35367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35368 /* end confdefs.h. */
35371 $curl_includes_ifaddrs
35376 if(0 != getifaddrs(0))
35384 if ac_fn_c_try_compile "$LINENO"; then :
35386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35387 $as_echo "yes" >&6; }
35388 tst_compi_getifaddrs="yes"
35392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35393 $as_echo "no" >&6; }
35394 tst_compi_getifaddrs="no"
35397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35400 if test "x$cross_compiling" != "xyes" &&
35401 test "$tst_compi_getifaddrs" = "yes"; then
35402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
35403 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
35406 old=$LD_LIBRARY_PATH
35407 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35408 export LD_LIBRARY_PATH
35409 if test "$cross_compiling" = yes; then :
35410 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35411 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35412 as_fn_error $? "cannot run test program while cross compiling
35413 See \`config.log' for more details" "$LINENO" 5; }
35415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35416 /* end confdefs.h. */
35419 $curl_includes_stdlib
35420 $curl_includes_ifaddrs
35425 struct ifaddrs *ifa = 0;
35428 error = getifaddrs(&ifa);
35430 exit(1); /* fail */
35439 if ac_fn_c_try_run "$LINENO"; then :
35440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35441 $as_echo "yes" >&6; }
35442 tst_works_getifaddrs="yes"
35445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35446 $as_echo "no" >&6; }
35447 tst_works_getifaddrs="no"
35450 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35451 conftest.$ac_objext conftest.beam conftest.$ac_ext
35454 LD_LIBRARY_PATH=$old # restore
35458 if test "$tst_compi_getifaddrs" = "yes" &&
35459 test "$tst_works_getifaddrs" != "no"; then
35460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
35461 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
35462 if test "x$curl_disallow_getifaddrs" != "xyes"; then
35463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35464 $as_echo "yes" >&6; }
35465 tst_allow_getifaddrs="yes"
35467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35468 $as_echo "no" >&6; }
35469 tst_allow_getifaddrs="no"
35473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
35474 $as_echo_n "checking if getifaddrs might be used... " >&6; }
35475 if test "$tst_links_getifaddrs" = "yes" &&
35476 test "$tst_proto_getifaddrs" = "yes" &&
35477 test "$tst_compi_getifaddrs" = "yes" &&
35478 test "$tst_allow_getifaddrs" = "yes" &&
35479 test "$tst_works_getifaddrs" != "no"; then
35480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35481 $as_echo "yes" >&6; }
35483 cat >>confdefs.h <<_ACEOF
35484 #define HAVE_GETIFADDRS 1
35487 curl_cv_func_getifaddrs="yes"
35489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35490 $as_echo "no" >&6; }
35491 curl_cv_func_getifaddrs="no"
35496 tst_links_getservbyport_r="unknown"
35497 tst_proto_getservbyport_r="unknown"
35498 tst_compi_getservbyport_r="unknown"
35499 tst_allow_getservbyport_r="unknown"
35500 tst_nargs_getservbyport_r="unknown"
35502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
35503 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
35504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35505 /* end confdefs.h. */
35508 #define getservbyport_r innocuous_getservbyport_r
35510 # include <limits.h>
35512 # include <assert.h>
35514 #undef getservbyport_r
35518 char getservbyport_r ();
35519 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
35525 return getservbyport_r ();
35531 if ac_fn_c_try_link "$LINENO"; then :
35533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35534 $as_echo "yes" >&6; }
35535 tst_links_getservbyport_r="yes"
35539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35540 $as_echo "no" >&6; }
35541 tst_links_getservbyport_r="no"
35544 rm -f core conftest.err conftest.$ac_objext \
35545 conftest$ac_exeext conftest.$ac_ext
35547 if test "$tst_links_getservbyport_r" = "yes"; then
35548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
35549 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
35550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35551 /* end confdefs.h. */
35553 $curl_includes_netdb
35556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35557 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
35559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35560 $as_echo "yes" >&6; }
35561 tst_proto_getservbyport_r="yes"
35565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35566 $as_echo "no" >&6; }
35567 tst_proto_getservbyport_r="no"
35574 if test "$tst_proto_getservbyport_r" = "yes"; then
35575 if test "$tst_nargs_getservbyport_r" = "unknown"; then
35576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
35577 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
35578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35579 /* end confdefs.h. */
35582 $curl_includes_netdb
35587 if(0 != getservbyport_r(0, 0, 0, 0))
35595 if ac_fn_c_try_compile "$LINENO"; then :
35597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598 $as_echo "yes" >&6; }
35599 tst_compi_getservbyport_r="yes"
35600 tst_nargs_getservbyport_r="4"
35604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35605 $as_echo "no" >&6; }
35606 tst_compi_getservbyport_r="no"
35609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35611 if test "$tst_nargs_getservbyport_r" = "unknown"; then
35612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
35613 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
35614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35615 /* end confdefs.h. */
35618 $curl_includes_netdb
35623 if(0 != getservbyport_r(0, 0, 0, 0, 0))
35631 if ac_fn_c_try_compile "$LINENO"; then :
35633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35634 $as_echo "yes" >&6; }
35635 tst_compi_getservbyport_r="yes"
35636 tst_nargs_getservbyport_r="5"
35640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35641 $as_echo "no" >&6; }
35642 tst_compi_getservbyport_r="no"
35645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35647 if test "$tst_nargs_getservbyport_r" = "unknown"; then
35648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
35649 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
35650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35651 /* end confdefs.h. */
35654 $curl_includes_netdb
35659 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
35667 if ac_fn_c_try_compile "$LINENO"; then :
35669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35670 $as_echo "yes" >&6; }
35671 tst_compi_getservbyport_r="yes"
35672 tst_nargs_getservbyport_r="6"
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35677 $as_echo "no" >&6; }
35678 tst_compi_getservbyport_r="no"
35681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
35684 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
35685 if test "$tst_compi_getservbyport_r" = "yes"; then
35686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35687 $as_echo "yes" >&6; }
35689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35690 $as_echo "no" >&6; }
35694 if test "$tst_compi_getservbyport_r" = "yes"; then
35695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
35696 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
35697 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
35698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699 $as_echo "yes" >&6; }
35700 tst_allow_getservbyport_r="yes"
35702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35703 $as_echo "no" >&6; }
35704 tst_allow_getservbyport_r="no"
35708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
35709 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
35710 if test "$tst_links_getservbyport_r" = "yes" &&
35711 test "$tst_proto_getservbyport_r" = "yes" &&
35712 test "$tst_compi_getservbyport_r" = "yes" &&
35713 test "$tst_allow_getservbyport_r" = "yes"; then
35714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35715 $as_echo "yes" >&6; }
35717 cat >>confdefs.h <<_ACEOF
35718 #define HAVE_GETSERVBYPORT_R 1
35722 cat >>confdefs.h <<_ACEOF
35723 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
35726 if test "$tst_nargs_getservbyport_r" -eq "4"; then
35728 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
35732 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
35735 curl_cv_func_getservbyport_r="yes"
35737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35738 $as_echo "no" >&6; }
35739 curl_cv_func_getservbyport_r="no"
35743 curl_includes_time="\
35744 /* includes start */
35745 #ifdef HAVE_SYS_TYPES_H
35746 # include <sys/types.h>
35748 #ifdef HAVE_SYS_TIME_H
35749 # include <sys/time.h>
35750 # ifdef TIME_WITH_SYS_TIME
35754 # ifdef HAVE_TIME_H
35758 /* includes end */"
35759 for ac_header in sys/types.h sys/time.h time.h
35761 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35762 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
35764 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35765 cat >>confdefs.h <<_ACEOF
35766 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35776 tst_links_gmtime_r="unknown"
35777 tst_proto_gmtime_r="unknown"
35778 tst_compi_gmtime_r="unknown"
35779 tst_works_gmtime_r="unknown"
35780 tst_allow_gmtime_r="unknown"
35782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
35783 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
35784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35785 /* end confdefs.h. */
35788 #define gmtime_r innocuous_gmtime_r
35790 # include <limits.h>
35792 # include <assert.h>
35799 #if defined __stub_gmtime_r || defined __stub___gmtime_r
35805 return gmtime_r ();
35811 if ac_fn_c_try_link "$LINENO"; then :
35813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35814 $as_echo "yes" >&6; }
35815 tst_links_gmtime_r="yes"
35819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35820 $as_echo "no" >&6; }
35821 tst_links_gmtime_r="no"
35824 rm -f core conftest.err conftest.$ac_objext \
35825 conftest$ac_exeext conftest.$ac_ext
35827 if test "$tst_links_gmtime_r" = "yes"; then
35828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
35829 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
35830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35831 /* end confdefs.h. */
35833 $curl_includes_time
35836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35837 $EGREP "gmtime_r" >/dev/null 2>&1; then :
35839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35840 $as_echo "yes" >&6; }
35841 tst_proto_gmtime_r="yes"
35845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35846 $as_echo "no" >&6; }
35847 tst_proto_gmtime_r="no"
35854 if test "$tst_proto_gmtime_r" = "yes"; then
35855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
35856 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
35857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35858 /* end confdefs.h. */
35861 $curl_includes_time
35866 if(0 != gmtime_r(0, 0))
35874 if ac_fn_c_try_compile "$LINENO"; then :
35876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35877 $as_echo "yes" >&6; }
35878 tst_compi_gmtime_r="yes"
35882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35883 $as_echo "no" >&6; }
35884 tst_compi_gmtime_r="no"
35887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35890 if test "x$cross_compiling" != "xyes" &&
35891 test "$tst_compi_gmtime_r" = "yes"; then
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
35893 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
35896 old=$LD_LIBRARY_PATH
35897 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
35898 export LD_LIBRARY_PATH
35899 if test "$cross_compiling" = yes; then :
35900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35901 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35902 as_fn_error $? "cannot run test program while cross compiling
35903 See \`config.log' for more details" "$LINENO" 5; }
35905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35906 /* end confdefs.h. */
35909 $curl_includes_stdlib
35910 $curl_includes_time
35915 time_t local = 1170352587;
35916 struct tm *gmt = 0;
35918 gmt = gmtime_r(&local, &result);
35929 if ac_fn_c_try_run "$LINENO"; then :
35930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35931 $as_echo "yes" >&6; }
35932 tst_works_gmtime_r="yes"
35935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35936 $as_echo "no" >&6; }
35937 tst_works_gmtime_r="no"
35940 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35941 conftest.$ac_objext conftest.beam conftest.$ac_ext
35944 LD_LIBRARY_PATH=$old # restore
35948 if test "$tst_compi_gmtime_r" = "yes" &&
35949 test "$tst_works_gmtime_r" != "no"; then
35950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
35951 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
35952 if test "x$curl_disallow_gmtime_r" != "xyes"; then
35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35954 $as_echo "yes" >&6; }
35955 tst_allow_gmtime_r="yes"
35957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35958 $as_echo "no" >&6; }
35959 tst_allow_gmtime_r="no"
35963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
35964 $as_echo_n "checking if gmtime_r might be used... " >&6; }
35965 if test "$tst_links_gmtime_r" = "yes" &&
35966 test "$tst_proto_gmtime_r" = "yes" &&
35967 test "$tst_compi_gmtime_r" = "yes" &&
35968 test "$tst_allow_gmtime_r" = "yes" &&
35969 test "$tst_works_gmtime_r" != "no"; then
35970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35971 $as_echo "yes" >&6; }
35973 cat >>confdefs.h <<_ACEOF
35974 #define HAVE_GMTIME_R 1
35977 curl_cv_func_gmtime_r="yes"
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35980 $as_echo "no" >&6; }
35981 curl_cv_func_gmtime_r="no"
35985 curl_includes_arpa_inet="\
35986 /* includes start */
35987 #ifdef HAVE_SYS_TYPES_H
35988 # include <sys/types.h>
35990 #ifdef HAVE_SYS_SOCKET_H
35991 # include <sys/socket.h>
35993 #ifdef HAVE_NETINET_IN_H
35994 # include <netinet/in.h>
35996 #ifdef HAVE_ARPA_INET_H
35997 # include <arpa/inet.h>
35999 #ifdef HAVE_WINSOCK2_H
36000 #include <winsock2.h>
36001 #include <ws2tcpip.h>
36003 /* includes end */"
36004 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
36006 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
36009 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36010 cat >>confdefs.h <<_ACEOF
36011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36021 tst_links_inet_ntoa_r="unknown"
36022 tst_proto_inet_ntoa_r="unknown"
36023 tst_compi_inet_ntoa_r="unknown"
36024 tst_allow_inet_ntoa_r="unknown"
36025 tst_nargs_inet_ntoa_r="unknown"
36027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
36028 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
36029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36030 /* end confdefs.h. */
36033 #define inet_ntoa_r innocuous_inet_ntoa_r
36035 # include <limits.h>
36037 # include <assert.h>
36043 char inet_ntoa_r ();
36044 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
36050 return inet_ntoa_r ();
36056 if ac_fn_c_try_link "$LINENO"; then :
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36059 $as_echo "yes" >&6; }
36060 tst_links_inet_ntoa_r="yes"
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36065 $as_echo "no" >&6; }
36066 tst_links_inet_ntoa_r="no"
36069 rm -f core conftest.err conftest.$ac_objext \
36070 conftest$ac_exeext conftest.$ac_ext
36072 if test "$tst_links_inet_ntoa_r" = "yes"; then
36073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
36074 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
36075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36076 /* end confdefs.h. */
36078 $curl_includes_arpa_inet
36081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36082 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
36084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36085 $as_echo "yes" >&6; }
36086 tst_proto_inet_ntoa_r="yes"
36090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36091 $as_echo "no" >&6; }
36092 tst_proto_inet_ntoa_r="no"
36099 if test "$tst_proto_inet_ntoa_r" = "yes"; then
36100 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
36101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
36102 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
36103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36104 /* end confdefs.h. */
36107 $curl_includes_arpa_inet
36112 struct in_addr addr;
36113 if(0 != inet_ntoa_r(addr, 0))
36121 if ac_fn_c_try_compile "$LINENO"; then :
36123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36124 $as_echo "yes" >&6; }
36125 tst_compi_inet_ntoa_r="yes"
36126 tst_nargs_inet_ntoa_r="2"
36130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36131 $as_echo "no" >&6; }
36132 tst_compi_inet_ntoa_r="no"
36135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36137 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
36138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
36139 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
36140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36141 /* end confdefs.h. */
36144 $curl_includes_arpa_inet
36149 struct in_addr addr;
36150 if(0 != inet_ntoa_r(addr, 0, 0))
36158 if ac_fn_c_try_compile "$LINENO"; then :
36160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36161 $as_echo "yes" >&6; }
36162 tst_compi_inet_ntoa_r="yes"
36163 tst_nargs_inet_ntoa_r="3"
36167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36168 $as_echo "no" >&6; }
36169 tst_compi_inet_ntoa_r="no"
36172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
36175 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
36176 if test "$tst_compi_inet_ntoa_r" = "yes"; then
36177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36178 $as_echo "yes" >&6; }
36180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36181 $as_echo "no" >&6; }
36185 if test "$tst_compi_inet_ntoa_r" = "yes"; then
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
36187 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
36188 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
36189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36190 $as_echo "yes" >&6; }
36191 tst_allow_inet_ntoa_r="yes"
36193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36194 $as_echo "no" >&6; }
36195 tst_allow_inet_ntoa_r="no"
36199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
36200 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
36201 if test "$tst_links_inet_ntoa_r" = "yes" &&
36202 test "$tst_proto_inet_ntoa_r" = "yes" &&
36203 test "$tst_compi_inet_ntoa_r" = "yes" &&
36204 test "$tst_allow_inet_ntoa_r" = "yes"; then
36205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36206 $as_echo "yes" >&6; }
36208 cat >>confdefs.h <<_ACEOF
36209 #define HAVE_INET_NTOA_R 1
36213 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
36215 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
36217 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
36219 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
36223 curl_cv_func_inet_ntoa_r="yes"
36225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36226 $as_echo "no" >&6; }
36227 curl_cv_func_inet_ntoa_r="no"
36232 tst_links_inet_ntop="unknown"
36233 tst_proto_inet_ntop="unknown"
36234 tst_compi_inet_ntop="unknown"
36235 tst_works_inet_ntop="unknown"
36236 tst_allow_inet_ntop="unknown"
36238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
36239 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
36240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36241 /* end confdefs.h. */
36244 #define inet_ntop innocuous_inet_ntop
36246 # include <limits.h>
36248 # include <assert.h>
36255 #if defined __stub_inet_ntop || defined __stub___inet_ntop
36261 return inet_ntop ();
36267 if ac_fn_c_try_link "$LINENO"; then :
36269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36270 $as_echo "yes" >&6; }
36271 tst_links_inet_ntop="yes"
36275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36276 $as_echo "no" >&6; }
36277 tst_links_inet_ntop="no"
36280 rm -f core conftest.err conftest.$ac_objext \
36281 conftest$ac_exeext conftest.$ac_ext
36283 if test "$tst_links_inet_ntop" = "yes"; then
36284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
36285 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
36286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36287 /* end confdefs.h. */
36289 $curl_includes_arpa_inet
36292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36293 $EGREP "inet_ntop" >/dev/null 2>&1; then :
36295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36296 $as_echo "yes" >&6; }
36297 tst_proto_inet_ntop="yes"
36301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36302 $as_echo "no" >&6; }
36303 tst_proto_inet_ntop="no"
36310 if test "$tst_proto_inet_ntop" = "yes"; then
36311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
36312 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
36313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36314 /* end confdefs.h. */
36317 $curl_includes_arpa_inet
36322 if(0 != inet_ntop(0, 0, 0, 0))
36330 if ac_fn_c_try_compile "$LINENO"; then :
36332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36333 $as_echo "yes" >&6; }
36334 tst_compi_inet_ntop="yes"
36338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36339 $as_echo "no" >&6; }
36340 tst_compi_inet_ntop="no"
36343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36346 if test "x$cross_compiling" != "xyes" &&
36347 test "$tst_compi_inet_ntop" = "yes"; then
36348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
36349 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
36352 old=$LD_LIBRARY_PATH
36353 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36354 export LD_LIBRARY_PATH
36355 if test "$cross_compiling" = yes; then :
36356 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36357 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36358 as_fn_error $? "cannot run test program while cross compiling
36359 See \`config.log' for more details" "$LINENO" 5; }
36361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36362 /* end confdefs.h. */
36365 $curl_includes_stdlib
36366 $curl_includes_arpa_inet
36367 $curl_includes_string
36372 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
36373 char ipv4res[sizeof "255.255.255.255"];
36374 unsigned char ipv6a[26];
36375 unsigned char ipv4a[5];
36386 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
36388 exit(1); /* fail */
36389 if(ipv4ptr != ipv4res)
36390 exit(1); /* fail */
36392 exit(1); /* fail */
36393 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
36394 exit(1); /* fail */
36397 memset(ipv6a, 0, sizeof(ipv6a));
36410 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
36412 exit(1); /* fail */
36413 if(ipv6ptr != ipv6res)
36414 exit(1); /* fail */
36416 exit(1); /* fail */
36417 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
36418 exit(1); /* fail */
36427 if ac_fn_c_try_run "$LINENO"; then :
36428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36429 $as_echo "yes" >&6; }
36430 tst_works_inet_ntop="yes"
36433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36434 $as_echo "no" >&6; }
36435 tst_works_inet_ntop="no"
36438 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36439 conftest.$ac_objext conftest.beam conftest.$ac_ext
36442 LD_LIBRARY_PATH=$old # restore
36446 if test "$tst_compi_inet_ntop" = "yes" &&
36447 test "$tst_works_inet_ntop" != "no"; then
36448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
36449 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
36450 if test "x$curl_disallow_inet_ntop" != "xyes"; then
36451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36452 $as_echo "yes" >&6; }
36453 tst_allow_inet_ntop="yes"
36455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36456 $as_echo "no" >&6; }
36457 tst_allow_inet_ntop="no"
36461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
36462 $as_echo_n "checking if inet_ntop might be used... " >&6; }
36463 if test "$tst_links_inet_ntop" = "yes" &&
36464 test "$tst_proto_inet_ntop" = "yes" &&
36465 test "$tst_compi_inet_ntop" = "yes" &&
36466 test "$tst_allow_inet_ntop" = "yes" &&
36467 test "$tst_works_inet_ntop" != "no"; then
36468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36469 $as_echo "yes" >&6; }
36471 cat >>confdefs.h <<_ACEOF
36472 #define HAVE_INET_NTOP 1
36475 curl_cv_func_inet_ntop="yes"
36477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36478 $as_echo "no" >&6; }
36479 curl_cv_func_inet_ntop="no"
36484 tst_links_inet_pton="unknown"
36485 tst_proto_inet_pton="unknown"
36486 tst_compi_inet_pton="unknown"
36487 tst_works_inet_pton="unknown"
36488 tst_allow_inet_pton="unknown"
36490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
36491 $as_echo_n "checking if inet_pton can be linked... " >&6; }
36492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36493 /* end confdefs.h. */
36496 #define inet_pton innocuous_inet_pton
36498 # include <limits.h>
36500 # include <assert.h>
36507 #if defined __stub_inet_pton || defined __stub___inet_pton
36513 return inet_pton ();
36519 if ac_fn_c_try_link "$LINENO"; then :
36521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36522 $as_echo "yes" >&6; }
36523 tst_links_inet_pton="yes"
36527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36528 $as_echo "no" >&6; }
36529 tst_links_inet_pton="no"
36532 rm -f core conftest.err conftest.$ac_objext \
36533 conftest$ac_exeext conftest.$ac_ext
36535 if test "$tst_links_inet_pton" = "yes"; then
36536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
36537 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
36538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36539 /* end confdefs.h. */
36541 $curl_includes_arpa_inet
36544 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36545 $EGREP "inet_pton" >/dev/null 2>&1; then :
36547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36548 $as_echo "yes" >&6; }
36549 tst_proto_inet_pton="yes"
36553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36554 $as_echo "no" >&6; }
36555 tst_proto_inet_pton="no"
36562 if test "$tst_proto_inet_pton" = "yes"; then
36563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
36564 $as_echo_n "checking if inet_pton is compilable... " >&6; }
36565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36566 /* end confdefs.h. */
36569 $curl_includes_arpa_inet
36574 if(0 != inet_pton(0, 0, 0))
36582 if ac_fn_c_try_compile "$LINENO"; then :
36584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36585 $as_echo "yes" >&6; }
36586 tst_compi_inet_pton="yes"
36590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36591 $as_echo "no" >&6; }
36592 tst_compi_inet_pton="no"
36595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36598 if test "x$cross_compiling" != "xyes" &&
36599 test "$tst_compi_inet_pton" = "yes"; then
36600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
36601 $as_echo_n "checking if inet_pton seems to work... " >&6; }
36604 old=$LD_LIBRARY_PATH
36605 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
36606 export LD_LIBRARY_PATH
36607 if test "$cross_compiling" = yes; then :
36608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36610 as_fn_error $? "cannot run test program while cross compiling
36611 See \`config.log' for more details" "$LINENO" 5; }
36613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36614 /* end confdefs.h. */
36617 $curl_includes_stdlib
36618 $curl_includes_arpa_inet
36619 $curl_includes_string
36624 unsigned char ipv6a[16+1];
36625 unsigned char ipv4a[4+1];
36626 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
36627 const char *ipv4src = "192.168.100.1";
36629 memset(ipv4a, 1, sizeof(ipv4a));
36630 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
36631 exit(1); /* fail */
36633 if( (ipv4a[0] != 0xc0) ||
36634 (ipv4a[1] != 0xa8) ||
36635 (ipv4a[2] != 0x64) ||
36636 (ipv4a[3] != 0x01) ||
36637 (ipv4a[4] != 0x01) )
36638 exit(1); /* fail */
36640 memset(ipv6a, 1, sizeof(ipv6a));
36641 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
36642 exit(1); /* fail */
36644 if( (ipv6a[0] != 0xfe) ||
36645 (ipv6a[1] != 0x80) ||
36646 (ipv6a[8] != 0x02) ||
36647 (ipv6a[9] != 0x14) ||
36648 (ipv6a[10] != 0x4f) ||
36649 (ipv6a[11] != 0xff) ||
36650 (ipv6a[12] != 0xfe) ||
36651 (ipv6a[13] != 0x0b) ||
36652 (ipv6a[14] != 0x76) ||
36653 (ipv6a[15] != 0xc8) ||
36654 (ipv6a[16] != 0x01) )
36655 exit(1); /* fail */
36657 if( (ipv6a[2] != 0x0) ||
36658 (ipv6a[3] != 0x0) ||
36659 (ipv6a[4] != 0x0) ||
36660 (ipv6a[5] != 0x0) ||
36661 (ipv6a[6] != 0x0) ||
36662 (ipv6a[7] != 0x0) )
36663 exit(1); /* fail */
36672 if ac_fn_c_try_run "$LINENO"; then :
36673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36674 $as_echo "yes" >&6; }
36675 tst_works_inet_pton="yes"
36678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36679 $as_echo "no" >&6; }
36680 tst_works_inet_pton="no"
36683 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36684 conftest.$ac_objext conftest.beam conftest.$ac_ext
36687 LD_LIBRARY_PATH=$old # restore
36691 if test "$tst_compi_inet_pton" = "yes" &&
36692 test "$tst_works_inet_pton" != "no"; then
36693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
36694 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
36695 if test "x$curl_disallow_inet_pton" != "xyes"; then
36696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36697 $as_echo "yes" >&6; }
36698 tst_allow_inet_pton="yes"
36700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36701 $as_echo "no" >&6; }
36702 tst_allow_inet_pton="no"
36706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
36707 $as_echo_n "checking if inet_pton might be used... " >&6; }
36708 if test "$tst_links_inet_pton" = "yes" &&
36709 test "$tst_proto_inet_pton" = "yes" &&
36710 test "$tst_compi_inet_pton" = "yes" &&
36711 test "$tst_allow_inet_pton" = "yes" &&
36712 test "$tst_works_inet_pton" != "no"; then
36713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36714 $as_echo "yes" >&6; }
36716 cat >>confdefs.h <<_ACEOF
36717 #define HAVE_INET_PTON 1
36720 curl_cv_func_inet_pton="yes"
36722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36723 $as_echo "no" >&6; }
36724 curl_cv_func_inet_pton="no"
36728 curl_includes_stropts="\
36729 /* includes start */
36730 #ifdef HAVE_SYS_TYPES_H
36731 # include <sys/types.h>
36733 #ifdef HAVE_UNISTD_H
36734 # include <unistd.h>
36736 #ifdef HAVE_SYS_SOCKET_H
36737 # include <sys/socket.h>
36739 #ifdef HAVE_SYS_IOCTL_H
36740 # include <sys/ioctl.h>
36742 #ifdef HAVE_STROPTS_H
36743 # include <stropts.h>
36745 /* includes end */"
36746 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
36748 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36749 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
36751 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36752 cat >>confdefs.h <<_ACEOF
36753 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36763 tst_links_ioctl="unknown"
36764 tst_proto_ioctl="unknown"
36765 tst_compi_ioctl="unknown"
36766 tst_allow_ioctl="unknown"
36768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
36769 $as_echo_n "checking if ioctl can be linked... " >&6; }
36770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36771 /* end confdefs.h. */
36774 #define ioctl innocuous_ioctl
36776 # include <limits.h>
36778 # include <assert.h>
36785 #if defined __stub_ioctl || defined __stub___ioctl
36797 if ac_fn_c_try_link "$LINENO"; then :
36799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36800 $as_echo "yes" >&6; }
36801 tst_links_ioctl="yes"
36805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36806 $as_echo "no" >&6; }
36807 tst_links_ioctl="no"
36810 rm -f core conftest.err conftest.$ac_objext \
36811 conftest$ac_exeext conftest.$ac_ext
36813 if test "$tst_links_ioctl" = "yes"; then
36814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
36815 $as_echo_n "checking if ioctl is prototyped... " >&6; }
36816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36817 /* end confdefs.h. */
36819 $curl_includes_stropts
36822 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36823 $EGREP "ioctl" >/dev/null 2>&1; then :
36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36826 $as_echo "yes" >&6; }
36827 tst_proto_ioctl="yes"
36831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36832 $as_echo "no" >&6; }
36833 tst_proto_ioctl="no"
36840 if test "$tst_proto_ioctl" = "yes"; then
36841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
36842 $as_echo_n "checking if ioctl is compilable... " >&6; }
36843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36844 /* end confdefs.h. */
36847 $curl_includes_stropts
36852 if(0 != ioctl(0, 0, 0))
36860 if ac_fn_c_try_compile "$LINENO"; then :
36862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36863 $as_echo "yes" >&6; }
36864 tst_compi_ioctl="yes"
36868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36869 $as_echo "no" >&6; }
36870 tst_compi_ioctl="no"
36873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36876 if test "$tst_compi_ioctl" = "yes"; then
36877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
36878 $as_echo_n "checking if ioctl usage allowed... " >&6; }
36879 if test "x$curl_disallow_ioctl" != "xyes"; then
36880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36881 $as_echo "yes" >&6; }
36882 tst_allow_ioctl="yes"
36884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36885 $as_echo "no" >&6; }
36886 tst_allow_ioctl="no"
36890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
36891 $as_echo_n "checking if ioctl might be used... " >&6; }
36892 if test "$tst_links_ioctl" = "yes" &&
36893 test "$tst_proto_ioctl" = "yes" &&
36894 test "$tst_compi_ioctl" = "yes" &&
36895 test "$tst_allow_ioctl" = "yes"; then
36896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36897 $as_echo "yes" >&6; }
36899 cat >>confdefs.h <<_ACEOF
36900 #define HAVE_IOCTL 1
36903 curl_cv_func_ioctl="yes"
36906 tst_compi_ioctl_fionbio="unknown"
36907 tst_allow_ioctl_fionbio="unknown"
36909 if test "$curl_cv_func_ioctl" = "yes"; then
36910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
36911 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
36912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36913 /* end confdefs.h. */
36916 $curl_includes_stropts
36922 if(0 != ioctl(0, FIONBIO, &flags))
36930 if ac_fn_c_try_compile "$LINENO"; then :
36932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36933 $as_echo "yes" >&6; }
36934 tst_compi_ioctl_fionbio="yes"
36938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36939 $as_echo "no" >&6; }
36940 tst_compi_ioctl_fionbio="no"
36943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36946 if test "$tst_compi_ioctl_fionbio" = "yes"; then
36947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
36948 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
36949 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
36950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36951 $as_echo "yes" >&6; }
36952 tst_allow_ioctl_fionbio="yes"
36954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36955 $as_echo "no" >&6; }
36956 tst_allow_ioctl_fionbio="no"
36960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
36961 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
36962 if test "$tst_compi_ioctl_fionbio" = "yes" &&
36963 test "$tst_allow_ioctl_fionbio" = "yes"; then
36964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36965 $as_echo "yes" >&6; }
36967 cat >>confdefs.h <<_ACEOF
36968 #define HAVE_IOCTL_FIONBIO 1
36971 curl_cv_func_ioctl_fionbio="yes"
36973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36974 $as_echo "no" >&6; }
36975 curl_cv_func_ioctl_fionbio="no"
36980 tst_compi_ioctl_siocgifaddr="unknown"
36981 tst_allow_ioctl_siocgifaddr="unknown"
36983 if test "$curl_cv_func_ioctl" = "yes"; then
36984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
36985 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
36986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36987 /* end confdefs.h. */
36990 $curl_includes_stropts
36991 #include <net/if.h>
36997 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
37005 if ac_fn_c_try_compile "$LINENO"; then :
37007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37008 $as_echo "yes" >&6; }
37009 tst_compi_ioctl_siocgifaddr="yes"
37013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37014 $as_echo "no" >&6; }
37015 tst_compi_ioctl_siocgifaddr="no"
37018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37021 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
37022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
37023 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
37024 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
37025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37026 $as_echo "yes" >&6; }
37027 tst_allow_ioctl_siocgifaddr="yes"
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030 $as_echo "no" >&6; }
37031 tst_allow_ioctl_siocgifaddr="no"
37035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
37036 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
37037 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
37038 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
37039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37040 $as_echo "yes" >&6; }
37042 cat >>confdefs.h <<_ACEOF
37043 #define HAVE_IOCTL_SIOCGIFADDR 1
37046 curl_cv_func_ioctl_siocgifaddr="yes"
37048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37049 $as_echo "no" >&6; }
37050 curl_cv_func_ioctl_siocgifaddr="no"
37054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37055 $as_echo "no" >&6; }
37056 curl_cv_func_ioctl="no"
37061 tst_links_ioctlsocket="unknown"
37062 tst_proto_ioctlsocket="unknown"
37063 tst_compi_ioctlsocket="unknown"
37064 tst_allow_ioctlsocket="unknown"
37066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
37067 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
37068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37069 /* end confdefs.h. */
37072 $curl_includes_winsock2
37073 $curl_includes_bsdsocket
37078 if(0 != ioctlsocket(0, 0, 0))
37086 if ac_fn_c_try_link "$LINENO"; then :
37088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37089 $as_echo "yes" >&6; }
37090 tst_links_ioctlsocket="yes"
37094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37095 $as_echo "no" >&6; }
37096 tst_links_ioctlsocket="no"
37099 rm -f core conftest.err conftest.$ac_objext \
37100 conftest$ac_exeext conftest.$ac_ext
37102 if test "$tst_links_ioctlsocket" = "yes"; then
37103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
37104 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
37105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37106 /* end confdefs.h. */
37108 $curl_includes_winsock2
37109 $curl_includes_bsdsocket
37112 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37113 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
37115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37116 $as_echo "yes" >&6; }
37117 tst_proto_ioctlsocket="yes"
37121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37122 $as_echo "no" >&6; }
37123 tst_proto_ioctlsocket="no"
37130 if test "$tst_proto_ioctlsocket" = "yes"; then
37131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
37132 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
37133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37134 /* end confdefs.h. */
37137 $curl_includes_winsock2
37138 $curl_includes_bsdsocket
37143 if(0 != ioctlsocket(0, 0, 0))
37151 if ac_fn_c_try_compile "$LINENO"; then :
37153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37154 $as_echo "yes" >&6; }
37155 tst_compi_ioctlsocket="yes"
37159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37160 $as_echo "no" >&6; }
37161 tst_compi_ioctlsocket="no"
37164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37167 if test "$tst_compi_ioctlsocket" = "yes"; then
37168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
37169 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
37170 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
37171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37172 $as_echo "yes" >&6; }
37173 tst_allow_ioctlsocket="yes"
37175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37176 $as_echo "no" >&6; }
37177 tst_allow_ioctlsocket="no"
37181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
37182 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
37183 if test "$tst_links_ioctlsocket" = "yes" &&
37184 test "$tst_proto_ioctlsocket" = "yes" &&
37185 test "$tst_compi_ioctlsocket" = "yes" &&
37186 test "$tst_allow_ioctlsocket" = "yes"; then
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37188 $as_echo "yes" >&6; }
37190 cat >>confdefs.h <<_ACEOF
37191 #define HAVE_IOCTLSOCKET 1
37194 curl_cv_func_ioctlsocket="yes"
37197 tst_compi_ioctlsocket_fionbio="unknown"
37198 tst_allow_ioctlsocket_fionbio="unknown"
37200 if test "$curl_cv_func_ioctlsocket" = "yes"; then
37201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
37202 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
37203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37204 /* end confdefs.h. */
37207 $curl_includes_winsock2
37208 $curl_includes_bsdsocket
37214 if(0 != ioctlsocket(0, FIONBIO, &flags))
37222 if ac_fn_c_try_compile "$LINENO"; then :
37224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37225 $as_echo "yes" >&6; }
37226 tst_compi_ioctlsocket_fionbio="yes"
37230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37231 $as_echo "no" >&6; }
37232 tst_compi_ioctlsocket_fionbio="no"
37235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37238 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
37239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
37240 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
37241 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
37242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37243 $as_echo "yes" >&6; }
37244 tst_allow_ioctlsocket_fionbio="yes"
37246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37247 $as_echo "no" >&6; }
37248 tst_allow_ioctlsocket_fionbio="no"
37252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
37253 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
37254 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
37255 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
37256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37257 $as_echo "yes" >&6; }
37259 cat >>confdefs.h <<_ACEOF
37260 #define HAVE_IOCTLSOCKET_FIONBIO 1
37263 curl_cv_func_ioctlsocket_fionbio="yes"
37265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37266 $as_echo "no" >&6; }
37267 curl_cv_func_ioctlsocket_fionbio="no"
37271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37272 $as_echo "no" >&6; }
37273 curl_cv_func_ioctlsocket="no"
37278 tst_links_ioctlsocket_camel="unknown"
37279 tst_proto_ioctlsocket_camel="unknown"
37280 tst_compi_ioctlsocket_camel="unknown"
37281 tst_allow_ioctlsocket_camel="unknown"
37283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
37284 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
37285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37286 /* end confdefs.h. */
37289 #define IoctlSocket innocuous_IoctlSocket
37291 # include <limits.h>
37293 # include <assert.h>
37299 char IoctlSocket ();
37300 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
37306 return IoctlSocket ();
37312 if ac_fn_c_try_link "$LINENO"; then :
37314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37315 $as_echo "yes" >&6; }
37316 tst_links_ioctlsocket_camel="yes"
37320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37321 $as_echo "no" >&6; }
37322 tst_links_ioctlsocket_camel="no"
37325 rm -f core conftest.err conftest.$ac_objext \
37326 conftest$ac_exeext conftest.$ac_ext
37328 if test "$tst_links_ioctlsocket_camel" = "yes"; then
37329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
37330 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
37331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37332 /* end confdefs.h. */
37334 $curl_includes_stropts
37337 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37338 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
37340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37341 $as_echo "yes" >&6; }
37342 tst_proto_ioctlsocket_camel="yes"
37346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347 $as_echo "no" >&6; }
37348 tst_proto_ioctlsocket_camel="no"
37355 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
37356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
37357 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
37358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37359 /* end confdefs.h. */
37362 $curl_includes_stropts
37367 if(0 != IoctlSocket(0, 0, 0))
37375 if ac_fn_c_try_compile "$LINENO"; then :
37377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37378 $as_echo "yes" >&6; }
37379 tst_compi_ioctlsocket_camel="yes"
37383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37384 $as_echo "no" >&6; }
37385 tst_compi_ioctlsocket_camel="no"
37388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37391 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
37392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
37393 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
37394 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
37395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37396 $as_echo "yes" >&6; }
37397 tst_allow_ioctlsocket_camel="yes"
37399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37400 $as_echo "no" >&6; }
37401 tst_allow_ioctlsocket_camel="no"
37405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
37406 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
37407 if test "$tst_links_ioctlsocket_camel" = "yes" &&
37408 test "$tst_proto_ioctlsocket_camel" = "yes" &&
37409 test "$tst_compi_ioctlsocket_camel" = "yes" &&
37410 test "$tst_allow_ioctlsocket_camel" = "yes"; then
37411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37412 $as_echo "yes" >&6; }
37414 cat >>confdefs.h <<_ACEOF
37415 #define HAVE_IOCTLSOCKET_CAMEL 1
37418 curl_cv_func_ioctlsocket_camel="yes"
37421 tst_compi_ioctlsocket_camel_fionbio="unknown"
37422 tst_allow_ioctlsocket_camel_fionbio="unknown"
37424 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
37425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
37426 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
37427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37428 /* end confdefs.h. */
37431 $curl_includes_stropts
37437 if(0 != ioctlsocket(0, FIONBIO, &flags))
37445 if ac_fn_c_try_compile "$LINENO"; then :
37447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37448 $as_echo "yes" >&6; }
37449 tst_compi_ioctlsocket_camel_fionbio="yes"
37453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37454 $as_echo "no" >&6; }
37455 tst_compi_ioctlsocket_camel_fionbio="no"
37458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37461 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
37462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
37463 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
37464 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
37465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37466 $as_echo "yes" >&6; }
37467 tst_allow_ioctlsocket_camel_fionbio="yes"
37469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37470 $as_echo "no" >&6; }
37471 tst_allow_ioctlsocket_camel_fionbio="no"
37475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
37476 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
37477 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
37478 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
37479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37480 $as_echo "yes" >&6; }
37482 cat >>confdefs.h <<_ACEOF
37483 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
37486 curl_cv_func_ioctlsocket_camel_fionbio="yes"
37488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37489 $as_echo "no" >&6; }
37490 curl_cv_func_ioctlsocket_camel_fionbio="no"
37494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37495 $as_echo "no" >&6; }
37496 curl_cv_func_ioctlsocket_camel="no"
37501 tst_links_localtime_r="unknown"
37502 tst_proto_localtime_r="unknown"
37503 tst_compi_localtime_r="unknown"
37504 tst_works_localtime_r="unknown"
37505 tst_allow_localtime_r="unknown"
37507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
37508 $as_echo_n "checking if localtime_r can be linked... " >&6; }
37509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37510 /* end confdefs.h. */
37513 #define localtime_r innocuous_localtime_r
37515 # include <limits.h>
37517 # include <assert.h>
37523 char localtime_r ();
37524 #if defined __stub_localtime_r || defined __stub___localtime_r
37530 return localtime_r ();
37536 if ac_fn_c_try_link "$LINENO"; then :
37538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37539 $as_echo "yes" >&6; }
37540 tst_links_localtime_r="yes"
37544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37545 $as_echo "no" >&6; }
37546 tst_links_localtime_r="no"
37549 rm -f core conftest.err conftest.$ac_objext \
37550 conftest$ac_exeext conftest.$ac_ext
37552 if test "$tst_links_localtime_r" = "yes"; then
37553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
37554 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
37555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37556 /* end confdefs.h. */
37558 $curl_includes_time
37561 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37562 $EGREP "localtime_r" >/dev/null 2>&1; then :
37564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37565 $as_echo "yes" >&6; }
37566 tst_proto_localtime_r="yes"
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571 $as_echo "no" >&6; }
37572 tst_proto_localtime_r="no"
37579 if test "$tst_proto_localtime_r" = "yes"; then
37580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
37581 $as_echo_n "checking if localtime_r is compilable... " >&6; }
37582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37583 /* end confdefs.h. */
37586 $curl_includes_time
37591 if(0 != localtime_r(0, 0))
37599 if ac_fn_c_try_compile "$LINENO"; then :
37601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37602 $as_echo "yes" >&6; }
37603 tst_compi_localtime_r="yes"
37607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37608 $as_echo "no" >&6; }
37609 tst_compi_localtime_r="no"
37612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37615 if test "x$cross_compiling" != "xyes" &&
37616 test "$tst_compi_localtime_r" = "yes"; then
37617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
37618 $as_echo_n "checking if localtime_r seems to work... " >&6; }
37621 old=$LD_LIBRARY_PATH
37622 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37623 export LD_LIBRARY_PATH
37624 if test "$cross_compiling" = yes; then :
37625 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37626 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
37627 as_fn_error $? "cannot run test program while cross compiling
37628 See \`config.log' for more details" "$LINENO" 5; }
37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631 /* end confdefs.h. */
37634 $curl_includes_stdlib
37635 $curl_includes_time
37640 time_t clock = 1170352587;
37641 struct tm *tmp = 0;
37643 tmp = localtime_r(&clock, &result);
37654 if ac_fn_c_try_run "$LINENO"; then :
37655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37656 $as_echo "yes" >&6; }
37657 tst_works_localtime_r="yes"
37660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37661 $as_echo "no" >&6; }
37662 tst_works_localtime_r="no"
37665 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37666 conftest.$ac_objext conftest.beam conftest.$ac_ext
37669 LD_LIBRARY_PATH=$old # restore
37673 if test "$tst_compi_localtime_r" = "yes" &&
37674 test "$tst_works_localtime_r" != "no"; then
37675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
37676 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
37677 if test "x$curl_disallow_localtime_r" != "xyes"; then
37678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37679 $as_echo "yes" >&6; }
37680 tst_allow_localtime_r="yes"
37682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37683 $as_echo "no" >&6; }
37684 tst_allow_localtime_r="no"
37688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
37689 $as_echo_n "checking if localtime_r might be used... " >&6; }
37690 if test "$tst_links_localtime_r" = "yes" &&
37691 test "$tst_proto_localtime_r" = "yes" &&
37692 test "$tst_compi_localtime_r" = "yes" &&
37693 test "$tst_allow_localtime_r" = "yes" &&
37694 test "$tst_works_localtime_r" != "no"; then
37695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37696 $as_echo "yes" >&6; }
37698 cat >>confdefs.h <<_ACEOF
37699 #define HAVE_LOCALTIME_R 1
37702 curl_cv_func_localtime_r="yes"
37704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37705 $as_echo "no" >&6; }
37706 curl_cv_func_localtime_r="no"
37711 tst_links_memrchr="unknown"
37712 tst_macro_memrchr="unknown"
37713 tst_proto_memrchr="unknown"
37714 tst_compi_memrchr="unknown"
37715 tst_allow_memrchr="unknown"
37717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
37718 $as_echo_n "checking if memrchr can be linked... " >&6; }
37719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37720 /* end confdefs.h. */
37723 #define memrchr innocuous_memrchr
37725 # include <limits.h>
37727 # include <assert.h>
37734 #if defined __stub_memrchr || defined __stub___memrchr
37746 if ac_fn_c_try_link "$LINENO"; then :
37748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37749 $as_echo "yes" >&6; }
37750 tst_links_memrchr="yes"
37754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37755 $as_echo "no" >&6; }
37756 tst_links_memrchr="no"
37759 rm -f core conftest.err conftest.$ac_objext \
37760 conftest$ac_exeext conftest.$ac_ext
37762 if test "$tst_links_memrchr" = "no"; then
37763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
37764 $as_echo_n "checking if memrchr seems a macro... " >&6; }
37765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37766 /* end confdefs.h. */
37769 $curl_includes_string
37774 if(0 != memrchr(0, 0, 0))
37782 if ac_fn_c_try_link "$LINENO"; then :
37784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37785 $as_echo "yes" >&6; }
37786 tst_macro_memrchr="yes"
37790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37791 $as_echo "no" >&6; }
37792 tst_macro_memrchr="no"
37795 rm -f core conftest.err conftest.$ac_objext \
37796 conftest$ac_exeext conftest.$ac_ext
37799 if test "$tst_links_memrchr" = "yes"; then
37800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
37801 $as_echo_n "checking if memrchr is prototyped... " >&6; }
37802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37803 /* end confdefs.h. */
37805 $curl_includes_string
37808 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37809 $EGREP "memrchr" >/dev/null 2>&1; then :
37811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37812 $as_echo "yes" >&6; }
37813 tst_proto_memrchr="yes"
37817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37818 $as_echo "no" >&6; }
37819 tst_proto_memrchr="no"
37826 if test "$tst_proto_memrchr" = "yes" ||
37827 test "$tst_macro_memrchr" = "yes"; then
37828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
37829 $as_echo_n "checking if memrchr is compilable... " >&6; }
37830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37831 /* end confdefs.h. */
37834 $curl_includes_string
37839 if(0 != memrchr(0, 0, 0))
37847 if ac_fn_c_try_compile "$LINENO"; then :
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37850 $as_echo "yes" >&6; }
37851 tst_compi_memrchr="yes"
37855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37856 $as_echo "no" >&6; }
37857 tst_compi_memrchr="no"
37860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37863 if test "$tst_compi_memrchr" = "yes"; then
37864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
37865 $as_echo_n "checking if memrchr usage allowed... " >&6; }
37866 if test "x$curl_disallow_memrchr" != "xyes"; then
37867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37868 $as_echo "yes" >&6; }
37869 tst_allow_memrchr="yes"
37871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37872 $as_echo "no" >&6; }
37873 tst_allow_memrchr="no"
37877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
37878 $as_echo_n "checking if memrchr might be used... " >&6; }
37879 if (test "$tst_proto_memrchr" = "yes" ||
37880 test "$tst_macro_memrchr" = "yes") &&
37881 test "$tst_compi_memrchr" = "yes" &&
37882 test "$tst_allow_memrchr" = "yes"; then
37883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37884 $as_echo "yes" >&6; }
37886 cat >>confdefs.h <<_ACEOF
37887 #define HAVE_MEMRCHR 1
37890 curl_cv_func_memrchr="yes"
37892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37893 $as_echo "no" >&6; }
37894 curl_cv_func_memrchr="no"
37899 tst_links_poll="unknown"
37900 tst_proto_poll="unknown"
37901 tst_compi_poll="unknown"
37902 tst_works_poll="unknown"
37903 tst_allow_poll="unknown"
37907 curl_disallow_poll="yes"
37908 tst_compi_poll="no"
37912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
37913 $as_echo_n "checking if poll can be linked... " >&6; }
37914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37915 /* end confdefs.h. */
37918 $curl_includes_poll
37923 if(0 != poll(0, 0, 0))
37931 if ac_fn_c_try_link "$LINENO"; then :
37933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37934 $as_echo "yes" >&6; }
37935 tst_links_poll="yes"
37939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37940 $as_echo "no" >&6; }
37941 tst_links_poll="no"
37944 rm -f core conftest.err conftest.$ac_objext \
37945 conftest$ac_exeext conftest.$ac_ext
37947 if test "$tst_links_poll" = "yes"; then
37948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
37949 $as_echo_n "checking if poll is prototyped... " >&6; }
37950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37951 /* end confdefs.h. */
37953 $curl_includes_poll
37956 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37957 $EGREP "poll" >/dev/null 2>&1; then :
37959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37960 $as_echo "yes" >&6; }
37961 tst_proto_poll="yes"
37965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37966 $as_echo "no" >&6; }
37967 tst_proto_poll="no"
37974 if test "$tst_proto_poll" = "yes"; then
37975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
37976 $as_echo_n "checking if poll is compilable... " >&6; }
37977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37978 /* end confdefs.h. */
37981 $curl_includes_poll
37986 if(0 != poll(0, 0, 0))
37994 if ac_fn_c_try_compile "$LINENO"; then :
37996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37997 $as_echo "yes" >&6; }
37998 tst_compi_poll="yes"
38002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38003 $as_echo "no" >&6; }
38004 tst_compi_poll="no"
38007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38010 if test "x$cross_compiling" != "xyes" &&
38011 test "$tst_compi_poll" = "yes"; then
38012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
38013 $as_echo_n "checking if poll seems to work... " >&6; }
38016 old=$LD_LIBRARY_PATH
38017 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38018 export LD_LIBRARY_PATH
38019 if test "$cross_compiling" = yes; then :
38020 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38022 as_fn_error $? "cannot run test program while cross compiling
38023 See \`config.log' for more details" "$LINENO" 5; }
38025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38026 /* end confdefs.h. */
38029 $curl_includes_stdlib
38030 $curl_includes_poll
38031 $curl_includes_time
38036 /* detect the original poll() breakage */
38037 if(0 != poll(0, 0, 10))
38038 exit(1); /* fail */
38040 /* detect the 10.12 poll() breakage */
38041 struct timeval before, after;
38045 gettimeofday(&before, NULL);
38046 rc = poll(NULL, 0, 500);
38047 gettimeofday(&after, NULL);
38049 us = (after.tv_sec - before.tv_sec) * 1000000 +
38050 (after.tv_usec - before.tv_usec);
38061 if ac_fn_c_try_run "$LINENO"; then :
38062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38063 $as_echo "yes" >&6; }
38064 tst_works_poll="yes"
38067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38068 $as_echo "no" >&6; }
38069 tst_works_poll="no"
38072 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38073 conftest.$ac_objext conftest.beam conftest.$ac_ext
38076 LD_LIBRARY_PATH=$old # restore
38080 if test "$tst_compi_poll" = "yes" &&
38081 test "$tst_works_poll" != "no"; then
38082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
38083 $as_echo_n "checking if poll usage allowed... " >&6; }
38084 if test "x$curl_disallow_poll" != "xyes"; then
38085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38086 $as_echo "yes" >&6; }
38087 tst_allow_poll="yes"
38089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38090 $as_echo "no" >&6; }
38091 tst_allow_poll="no"
38095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
38096 $as_echo_n "checking if poll might be used... " >&6; }
38097 if test "$tst_links_poll" = "yes" &&
38098 test "$tst_proto_poll" = "yes" &&
38099 test "$tst_compi_poll" = "yes" &&
38100 test "$tst_allow_poll" = "yes" &&
38101 test "$tst_works_poll" != "no"; then
38102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38103 $as_echo "yes" >&6; }
38105 cat >>confdefs.h <<_ACEOF
38106 #define HAVE_POLL 1
38110 cat >>confdefs.h <<_ACEOF
38111 #define HAVE_POLL_FINE 1
38114 curl_cv_func_poll="yes"
38116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38117 $as_echo "no" >&6; }
38118 curl_cv_func_poll="no"
38123 tst_links_setsockopt="unknown"
38124 tst_proto_setsockopt="unknown"
38125 tst_compi_setsockopt="unknown"
38126 tst_allow_setsockopt="unknown"
38128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
38129 $as_echo_n "checking if setsockopt can be linked... " >&6; }
38130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38131 /* end confdefs.h. */
38134 $curl_includes_winsock2
38135 $curl_includes_bsdsocket
38136 $curl_includes_sys_socket
38141 if(0 != setsockopt(0, 0, 0, 0, 0))
38149 if ac_fn_c_try_link "$LINENO"; then :
38151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38152 $as_echo "yes" >&6; }
38153 tst_links_setsockopt="yes"
38157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38158 $as_echo "no" >&6; }
38159 tst_links_setsockopt="no"
38162 rm -f core conftest.err conftest.$ac_objext \
38163 conftest$ac_exeext conftest.$ac_ext
38165 if test "$tst_links_setsockopt" = "yes"; then
38166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
38167 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
38168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38169 /* end confdefs.h. */
38171 $curl_includes_winsock2
38172 $curl_includes_bsdsocket
38173 $curl_includes_sys_socket
38176 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38177 $EGREP "setsockopt" >/dev/null 2>&1; then :
38179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38180 $as_echo "yes" >&6; }
38181 tst_proto_setsockopt="yes"
38185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38186 $as_echo "no" >&6; }
38187 tst_proto_setsockopt="no"
38194 if test "$tst_proto_setsockopt" = "yes"; then
38195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
38196 $as_echo_n "checking if setsockopt is compilable... " >&6; }
38197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38198 /* end confdefs.h. */
38201 $curl_includes_winsock2
38202 $curl_includes_bsdsocket
38203 $curl_includes_sys_socket
38208 if(0 != setsockopt(0, 0, 0, 0, 0))
38216 if ac_fn_c_try_compile "$LINENO"; then :
38218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38219 $as_echo "yes" >&6; }
38220 tst_compi_setsockopt="yes"
38224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38225 $as_echo "no" >&6; }
38226 tst_compi_setsockopt="no"
38229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38232 if test "$tst_compi_setsockopt" = "yes"; then
38233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
38234 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
38235 if test "x$curl_disallow_setsockopt" != "xyes"; then
38236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38237 $as_echo "yes" >&6; }
38238 tst_allow_setsockopt="yes"
38240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38241 $as_echo "no" >&6; }
38242 tst_allow_setsockopt="no"
38246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
38247 $as_echo_n "checking if setsockopt might be used... " >&6; }
38248 if test "$tst_links_setsockopt" = "yes" &&
38249 test "$tst_proto_setsockopt" = "yes" &&
38250 test "$tst_compi_setsockopt" = "yes" &&
38251 test "$tst_allow_setsockopt" = "yes"; then
38252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38253 $as_echo "yes" >&6; }
38255 cat >>confdefs.h <<_ACEOF
38256 #define HAVE_SETSOCKOPT 1
38259 curl_cv_func_setsockopt="yes"
38262 tst_compi_setsockopt_so_nonblock="unknown"
38263 tst_allow_setsockopt_so_nonblock="unknown"
38265 if test "$curl_cv_func_setsockopt" = "yes"; then
38266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
38267 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
38268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38269 /* end confdefs.h. */
38272 $curl_includes_winsock2
38273 $curl_includes_bsdsocket
38274 $curl_includes_sys_socket
38279 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
38287 if ac_fn_c_try_compile "$LINENO"; then :
38289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38290 $as_echo "yes" >&6; }
38291 tst_compi_setsockopt_so_nonblock="yes"
38295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38296 $as_echo "no" >&6; }
38297 tst_compi_setsockopt_so_nonblock="no"
38300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38303 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
38304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
38305 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
38306 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
38307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38308 $as_echo "yes" >&6; }
38309 tst_allow_setsockopt_so_nonblock="yes"
38311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38312 $as_echo "no" >&6; }
38313 tst_allow_setsockopt_so_nonblock="no"
38317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
38318 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
38319 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
38320 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
38321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38322 $as_echo "yes" >&6; }
38324 cat >>confdefs.h <<_ACEOF
38325 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
38328 curl_cv_func_setsockopt_so_nonblock="yes"
38330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38331 $as_echo "no" >&6; }
38332 curl_cv_func_setsockopt_so_nonblock="no"
38336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38337 $as_echo "no" >&6; }
38338 curl_cv_func_setsockopt="no"
38342 curl_includes_signal="\
38343 /* includes start */
38344 #ifdef HAVE_SYS_TYPES_H
38345 # include <sys/types.h>
38347 #ifdef HAVE_SIGNAL_H
38348 # include <signal.h>
38350 /* includes end */"
38351 for ac_header in sys/types.h signal.h
38353 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38354 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
38356 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38357 cat >>confdefs.h <<_ACEOF
38358 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38368 tst_links_sigaction="unknown"
38369 tst_proto_sigaction="unknown"
38370 tst_compi_sigaction="unknown"
38371 tst_allow_sigaction="unknown"
38373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
38374 $as_echo_n "checking if sigaction can be linked... " >&6; }
38375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38376 /* end confdefs.h. */
38379 #define sigaction innocuous_sigaction
38381 # include <limits.h>
38383 # include <assert.h>
38390 #if defined __stub_sigaction || defined __stub___sigaction
38396 return sigaction ();
38402 if ac_fn_c_try_link "$LINENO"; then :
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38405 $as_echo "yes" >&6; }
38406 tst_links_sigaction="yes"
38410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38411 $as_echo "no" >&6; }
38412 tst_links_sigaction="no"
38415 rm -f core conftest.err conftest.$ac_objext \
38416 conftest$ac_exeext conftest.$ac_ext
38418 if test "$tst_links_sigaction" = "yes"; then
38419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
38420 $as_echo_n "checking if sigaction is prototyped... " >&6; }
38421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38422 /* end confdefs.h. */
38424 $curl_includes_signal
38427 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38428 $EGREP "sigaction" >/dev/null 2>&1; then :
38430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38431 $as_echo "yes" >&6; }
38432 tst_proto_sigaction="yes"
38436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38437 $as_echo "no" >&6; }
38438 tst_proto_sigaction="no"
38445 if test "$tst_proto_sigaction" = "yes"; then
38446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
38447 $as_echo_n "checking if sigaction is compilable... " >&6; }
38448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38449 /* end confdefs.h. */
38452 $curl_includes_signal
38457 if(0 != sigaction(0, 0, 0))
38465 if ac_fn_c_try_compile "$LINENO"; then :
38467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38468 $as_echo "yes" >&6; }
38469 tst_compi_sigaction="yes"
38473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38474 $as_echo "no" >&6; }
38475 tst_compi_sigaction="no"
38478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38481 if test "$tst_compi_sigaction" = "yes"; then
38482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
38483 $as_echo_n "checking if sigaction usage allowed... " >&6; }
38484 if test "x$curl_disallow_sigaction" != "xyes"; then
38485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38486 $as_echo "yes" >&6; }
38487 tst_allow_sigaction="yes"
38489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38490 $as_echo "no" >&6; }
38491 tst_allow_sigaction="no"
38495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
38496 $as_echo_n "checking if sigaction might be used... " >&6; }
38497 if test "$tst_links_sigaction" = "yes" &&
38498 test "$tst_proto_sigaction" = "yes" &&
38499 test "$tst_compi_sigaction" = "yes" &&
38500 test "$tst_allow_sigaction" = "yes"; then
38501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38502 $as_echo "yes" >&6; }
38504 cat >>confdefs.h <<_ACEOF
38505 #define HAVE_SIGACTION 1
38508 curl_cv_func_sigaction="yes"
38510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38511 $as_echo "no" >&6; }
38512 curl_cv_func_sigaction="no"
38517 tst_links_siginterrupt="unknown"
38518 tst_proto_siginterrupt="unknown"
38519 tst_compi_siginterrupt="unknown"
38520 tst_allow_siginterrupt="unknown"
38522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
38523 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
38524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38525 /* end confdefs.h. */
38528 #define siginterrupt innocuous_siginterrupt
38530 # include <limits.h>
38532 # include <assert.h>
38534 #undef siginterrupt
38538 char siginterrupt ();
38539 #if defined __stub_siginterrupt || defined __stub___siginterrupt
38545 return siginterrupt ();
38551 if ac_fn_c_try_link "$LINENO"; then :
38553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38554 $as_echo "yes" >&6; }
38555 tst_links_siginterrupt="yes"
38559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 $as_echo "no" >&6; }
38561 tst_links_siginterrupt="no"
38564 rm -f core conftest.err conftest.$ac_objext \
38565 conftest$ac_exeext conftest.$ac_ext
38567 if test "$tst_links_siginterrupt" = "yes"; then
38568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
38569 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
38570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38571 /* end confdefs.h. */
38573 $curl_includes_signal
38576 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38577 $EGREP "siginterrupt" >/dev/null 2>&1; then :
38579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38580 $as_echo "yes" >&6; }
38581 tst_proto_siginterrupt="yes"
38585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38586 $as_echo "no" >&6; }
38587 tst_proto_siginterrupt="no"
38594 if test "$tst_proto_siginterrupt" = "yes"; then
38595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
38596 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
38597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38598 /* end confdefs.h. */
38601 $curl_includes_signal
38606 if(0 != siginterrupt(0, 0))
38614 if ac_fn_c_try_compile "$LINENO"; then :
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38617 $as_echo "yes" >&6; }
38618 tst_compi_siginterrupt="yes"
38622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38623 $as_echo "no" >&6; }
38624 tst_compi_siginterrupt="no"
38627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38630 if test "$tst_compi_siginterrupt" = "yes"; then
38631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
38632 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
38633 if test "x$curl_disallow_siginterrupt" != "xyes"; then
38634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38635 $as_echo "yes" >&6; }
38636 tst_allow_siginterrupt="yes"
38638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38639 $as_echo "no" >&6; }
38640 tst_allow_siginterrupt="no"
38644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
38645 $as_echo_n "checking if siginterrupt might be used... " >&6; }
38646 if test "$tst_links_siginterrupt" = "yes" &&
38647 test "$tst_proto_siginterrupt" = "yes" &&
38648 test "$tst_compi_siginterrupt" = "yes" &&
38649 test "$tst_allow_siginterrupt" = "yes"; then
38650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38651 $as_echo "yes" >&6; }
38653 cat >>confdefs.h <<_ACEOF
38654 #define HAVE_SIGINTERRUPT 1
38657 curl_cv_func_siginterrupt="yes"
38659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38660 $as_echo "no" >&6; }
38661 curl_cv_func_siginterrupt="no"
38666 tst_links_signal="unknown"
38667 tst_proto_signal="unknown"
38668 tst_compi_signal="unknown"
38669 tst_allow_signal="unknown"
38671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
38672 $as_echo_n "checking if signal can be linked... " >&6; }
38673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38674 /* end confdefs.h. */
38677 #define signal innocuous_signal
38679 # include <limits.h>
38681 # include <assert.h>
38688 #if defined __stub_signal || defined __stub___signal
38700 if ac_fn_c_try_link "$LINENO"; then :
38702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38703 $as_echo "yes" >&6; }
38704 tst_links_signal="yes"
38708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38709 $as_echo "no" >&6; }
38710 tst_links_signal="no"
38713 rm -f core conftest.err conftest.$ac_objext \
38714 conftest$ac_exeext conftest.$ac_ext
38716 if test "$tst_links_signal" = "yes"; then
38717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
38718 $as_echo_n "checking if signal is prototyped... " >&6; }
38719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38720 /* end confdefs.h. */
38722 $curl_includes_signal
38725 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38726 $EGREP "signal" >/dev/null 2>&1; then :
38728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38729 $as_echo "yes" >&6; }
38730 tst_proto_signal="yes"
38734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38735 $as_echo "no" >&6; }
38736 tst_proto_signal="no"
38743 if test "$tst_proto_signal" = "yes"; then
38744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
38745 $as_echo_n "checking if signal is compilable... " >&6; }
38746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38747 /* end confdefs.h. */
38750 $curl_includes_signal
38755 if(0 != signal(0, 0))
38763 if ac_fn_c_try_compile "$LINENO"; then :
38765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38766 $as_echo "yes" >&6; }
38767 tst_compi_signal="yes"
38771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38772 $as_echo "no" >&6; }
38773 tst_compi_signal="no"
38776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38779 if test "$tst_compi_signal" = "yes"; then
38780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
38781 $as_echo_n "checking if signal usage allowed... " >&6; }
38782 if test "x$curl_disallow_signal" != "xyes"; then
38783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38784 $as_echo "yes" >&6; }
38785 tst_allow_signal="yes"
38787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38788 $as_echo "no" >&6; }
38789 tst_allow_signal="no"
38793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
38794 $as_echo_n "checking if signal might be used... " >&6; }
38795 if test "$tst_links_signal" = "yes" &&
38796 test "$tst_proto_signal" = "yes" &&
38797 test "$tst_compi_signal" = "yes" &&
38798 test "$tst_allow_signal" = "yes"; then
38799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38800 $as_echo "yes" >&6; }
38802 cat >>confdefs.h <<_ACEOF
38803 #define HAVE_SIGNAL 1
38806 curl_cv_func_signal="yes"
38808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38809 $as_echo "no" >&6; }
38810 curl_cv_func_signal="no"
38814 curl_includes_setjmp="\
38815 /* includes start */
38816 #ifdef HAVE_SYS_TYPES_H
38817 # include <sys/types.h>
38819 #ifdef HAVE_SETJMP_H
38820 # include <setjmp.h>
38822 /* includes end */"
38823 for ac_header in sys/types.h setjmp.h
38825 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38826 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
38828 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38829 cat >>confdefs.h <<_ACEOF
38830 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38840 tst_links_sigsetjmp="unknown"
38841 tst_macro_sigsetjmp="unknown"
38842 tst_proto_sigsetjmp="unknown"
38843 tst_compi_sigsetjmp="unknown"
38844 tst_allow_sigsetjmp="unknown"
38846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
38847 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
38848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38849 /* end confdefs.h. */
38852 #define sigsetjmp innocuous_sigsetjmp
38854 # include <limits.h>
38856 # include <assert.h>
38863 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
38869 return sigsetjmp ();
38875 if ac_fn_c_try_link "$LINENO"; then :
38877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38878 $as_echo "yes" >&6; }
38879 tst_links_sigsetjmp="yes"
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38884 $as_echo "no" >&6; }
38885 tst_links_sigsetjmp="no"
38888 rm -f core conftest.err conftest.$ac_objext \
38889 conftest$ac_exeext conftest.$ac_ext
38891 if test "$tst_links_sigsetjmp" = "no"; then
38892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
38893 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
38894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38895 /* end confdefs.h. */
38898 $curl_includes_setjmp
38904 if(0 != sigsetjmp(env, 0))
38912 if ac_fn_c_try_link "$LINENO"; then :
38914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38915 $as_echo "yes" >&6; }
38916 tst_macro_sigsetjmp="yes"
38920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38921 $as_echo "no" >&6; }
38922 tst_macro_sigsetjmp="no"
38925 rm -f core conftest.err conftest.$ac_objext \
38926 conftest$ac_exeext conftest.$ac_ext
38929 if test "$tst_links_sigsetjmp" = "yes"; then
38930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
38931 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
38932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38933 /* end confdefs.h. */
38935 $curl_includes_setjmp
38938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38939 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
38941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38942 $as_echo "yes" >&6; }
38943 tst_proto_sigsetjmp="yes"
38947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38948 $as_echo "no" >&6; }
38949 tst_proto_sigsetjmp="no"
38956 if test "$tst_proto_sigsetjmp" = "yes" ||
38957 test "$tst_macro_sigsetjmp" = "yes"; then
38958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
38959 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
38960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38961 /* end confdefs.h. */
38964 $curl_includes_setjmp
38970 if(0 != sigsetjmp(env, 0))
38978 if ac_fn_c_try_compile "$LINENO"; then :
38980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38981 $as_echo "yes" >&6; }
38982 tst_compi_sigsetjmp="yes"
38986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38987 $as_echo "no" >&6; }
38988 tst_compi_sigsetjmp="no"
38991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38994 if test "$tst_compi_sigsetjmp" = "yes"; then
38995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
38996 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
38997 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
38998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38999 $as_echo "yes" >&6; }
39000 tst_allow_sigsetjmp="yes"
39002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39003 $as_echo "no" >&6; }
39004 tst_allow_sigsetjmp="no"
39008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
39009 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
39010 if (test "$tst_proto_sigsetjmp" = "yes" ||
39011 test "$tst_macro_sigsetjmp" = "yes") &&
39012 test "$tst_compi_sigsetjmp" = "yes" &&
39013 test "$tst_allow_sigsetjmp" = "yes"; then
39014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39015 $as_echo "yes" >&6; }
39017 cat >>confdefs.h <<_ACEOF
39018 #define HAVE_SIGSETJMP 1
39021 curl_cv_func_sigsetjmp="yes"
39023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39024 $as_echo "no" >&6; }
39025 curl_cv_func_sigsetjmp="no"
39030 tst_links_socket="unknown"
39031 tst_proto_socket="unknown"
39032 tst_compi_socket="unknown"
39033 tst_allow_socket="unknown"
39035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
39036 $as_echo_n "checking if socket can be linked... " >&6; }
39037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39038 /* end confdefs.h. */
39041 $curl_includes_winsock2
39042 $curl_includes_bsdsocket
39043 $curl_includes_sys_socket
39044 $curl_includes_socket
39049 if(0 != socket(0, 0, 0))
39057 if ac_fn_c_try_link "$LINENO"; then :
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39060 $as_echo "yes" >&6; }
39061 tst_links_socket="yes"
39065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39066 $as_echo "no" >&6; }
39067 tst_links_socket="no"
39070 rm -f core conftest.err conftest.$ac_objext \
39071 conftest$ac_exeext conftest.$ac_ext
39073 if test "$tst_links_socket" = "yes"; then
39074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
39075 $as_echo_n "checking if socket is prototyped... " >&6; }
39076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39077 /* end confdefs.h. */
39079 $curl_includes_winsock2
39080 $curl_includes_bsdsocket
39081 $curl_includes_sys_socket
39082 $curl_includes_socket
39085 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39086 $EGREP "socket" >/dev/null 2>&1; then :
39088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39089 $as_echo "yes" >&6; }
39090 tst_proto_socket="yes"
39094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39095 $as_echo "no" >&6; }
39096 tst_proto_socket="no"
39103 if test "$tst_proto_socket" = "yes"; then
39104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
39105 $as_echo_n "checking if socket is compilable... " >&6; }
39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h. */
39110 $curl_includes_winsock2
39111 $curl_includes_bsdsocket
39112 $curl_includes_sys_socket
39113 $curl_includes_socket
39118 if(0 != socket(0, 0, 0))
39126 if ac_fn_c_try_compile "$LINENO"; then :
39128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39129 $as_echo "yes" >&6; }
39130 tst_compi_socket="yes"
39134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39135 $as_echo "no" >&6; }
39136 tst_compi_socket="no"
39139 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39142 if test "$tst_compi_socket" = "yes"; then
39143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
39144 $as_echo_n "checking if socket usage allowed... " >&6; }
39145 if test "x$curl_disallow_socket" != "xyes"; then
39146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39147 $as_echo "yes" >&6; }
39148 tst_allow_socket="yes"
39150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39151 $as_echo "no" >&6; }
39152 tst_allow_socket="no"
39156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
39157 $as_echo_n "checking if socket might be used... " >&6; }
39158 if test "$tst_links_socket" = "yes" &&
39159 test "$tst_proto_socket" = "yes" &&
39160 test "$tst_compi_socket" = "yes" &&
39161 test "$tst_allow_socket" = "yes"; then
39162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39163 $as_echo "yes" >&6; }
39165 cat >>confdefs.h <<_ACEOF
39166 #define HAVE_SOCKET 1
39169 curl_cv_func_socket="yes"
39171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39172 $as_echo "no" >&6; }
39173 curl_cv_func_socket="no"
39178 tst_links_socketpair="unknown"
39179 tst_proto_socketpair="unknown"
39180 tst_compi_socketpair="unknown"
39181 tst_allow_socketpair="unknown"
39183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
39184 $as_echo_n "checking if socketpair can be linked... " >&6; }
39185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39186 /* end confdefs.h. */
39189 #define socketpair innocuous_socketpair
39191 # include <limits.h>
39193 # include <assert.h>
39199 char socketpair ();
39200 #if defined __stub_socketpair || defined __stub___socketpair
39206 return socketpair ();
39212 if ac_fn_c_try_link "$LINENO"; then :
39214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39215 $as_echo "yes" >&6; }
39216 tst_links_socketpair="yes"
39220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39221 $as_echo "no" >&6; }
39222 tst_links_socketpair="no"
39225 rm -f core conftest.err conftest.$ac_objext \
39226 conftest$ac_exeext conftest.$ac_ext
39228 if test "$tst_links_socketpair" = "yes"; then
39229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
39230 $as_echo_n "checking if socketpair is prototyped... " >&6; }
39231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39232 /* end confdefs.h. */
39234 $curl_includes_sys_socket
39235 $curl_includes_socket
39238 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39239 $EGREP "socketpair" >/dev/null 2>&1; then :
39241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39242 $as_echo "yes" >&6; }
39243 tst_proto_socketpair="yes"
39247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39248 $as_echo "no" >&6; }
39249 tst_proto_socketpair="no"
39256 if test "$tst_proto_socketpair" = "yes"; then
39257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
39258 $as_echo_n "checking if socketpair is compilable... " >&6; }
39259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260 /* end confdefs.h. */
39263 $curl_includes_sys_socket
39264 $curl_includes_socket
39270 if(0 != socketpair(0, 0, 0, sv))
39278 if ac_fn_c_try_compile "$LINENO"; then :
39280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39281 $as_echo "yes" >&6; }
39282 tst_compi_socketpair="yes"
39286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39287 $as_echo "no" >&6; }
39288 tst_compi_socketpair="no"
39291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39294 if test "$tst_compi_socketpair" = "yes"; then
39295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
39296 $as_echo_n "checking if socketpair usage allowed... " >&6; }
39297 if test "x$curl_disallow_socketpair" != "xyes"; then
39298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39299 $as_echo "yes" >&6; }
39300 tst_allow_socketpair="yes"
39302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39303 $as_echo "no" >&6; }
39304 tst_allow_socketpair="no"
39308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
39309 $as_echo_n "checking if socketpair might be used... " >&6; }
39310 if test "$tst_links_socketpair" = "yes" &&
39311 test "$tst_proto_socketpair" = "yes" &&
39312 test "$tst_compi_socketpair" = "yes" &&
39313 test "$tst_allow_socketpair" = "yes"; then
39314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39315 $as_echo "yes" >&6; }
39317 cat >>confdefs.h <<_ACEOF
39318 #define HAVE_SOCKETPAIR 1
39321 curl_cv_func_socketpair="yes"
39323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39324 $as_echo "no" >&6; }
39325 curl_cv_func_socketpair="no"
39330 tst_links_strcasecmp="unknown"
39331 tst_proto_strcasecmp="unknown"
39332 tst_compi_strcasecmp="unknown"
39333 tst_allow_strcasecmp="unknown"
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
39336 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
39337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39338 /* end confdefs.h. */
39341 #define strcasecmp innocuous_strcasecmp
39343 # include <limits.h>
39345 # include <assert.h>
39351 char strcasecmp ();
39352 #if defined __stub_strcasecmp || defined __stub___strcasecmp
39358 return strcasecmp ();
39364 if ac_fn_c_try_link "$LINENO"; then :
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39367 $as_echo "yes" >&6; }
39368 tst_links_strcasecmp="yes"
39372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39373 $as_echo "no" >&6; }
39374 tst_links_strcasecmp="no"
39377 rm -f core conftest.err conftest.$ac_objext \
39378 conftest$ac_exeext conftest.$ac_ext
39380 if test "$tst_links_strcasecmp" = "yes"; then
39381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
39382 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
39383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39384 /* end confdefs.h. */
39386 $curl_includes_string
39389 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39390 $EGREP "strcasecmp" >/dev/null 2>&1; then :
39392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39393 $as_echo "yes" >&6; }
39394 tst_proto_strcasecmp="yes"
39398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39399 $as_echo "no" >&6; }
39400 tst_proto_strcasecmp="no"
39407 if test "$tst_proto_strcasecmp" = "yes"; then
39408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
39409 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
39410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39411 /* end confdefs.h. */
39414 $curl_includes_string
39419 if(0 != strcasecmp(0, 0))
39427 if ac_fn_c_try_compile "$LINENO"; then :
39429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39430 $as_echo "yes" >&6; }
39431 tst_compi_strcasecmp="yes"
39435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39436 $as_echo "no" >&6; }
39437 tst_compi_strcasecmp="no"
39440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39443 if test "$tst_compi_strcasecmp" = "yes"; then
39444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
39445 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
39446 if test "x$curl_disallow_strcasecmp" != "xyes"; then
39447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39448 $as_echo "yes" >&6; }
39449 tst_allow_strcasecmp="yes"
39451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39452 $as_echo "no" >&6; }
39453 tst_allow_strcasecmp="no"
39457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
39458 $as_echo_n "checking if strcasecmp might be used... " >&6; }
39459 if test "$tst_links_strcasecmp" = "yes" &&
39460 test "$tst_proto_strcasecmp" = "yes" &&
39461 test "$tst_compi_strcasecmp" = "yes" &&
39462 test "$tst_allow_strcasecmp" = "yes"; then
39463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39464 $as_echo "yes" >&6; }
39466 cat >>confdefs.h <<_ACEOF
39467 #define HAVE_STRCASECMP 1
39470 curl_cv_func_strcasecmp="yes"
39472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39473 $as_echo "no" >&6; }
39474 curl_cv_func_strcasecmp="no"
39479 tst_links_strcmpi="unknown"
39480 tst_proto_strcmpi="unknown"
39481 tst_compi_strcmpi="unknown"
39482 tst_allow_strcmpi="unknown"
39484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
39485 $as_echo_n "checking if strcmpi can be linked... " >&6; }
39486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39487 /* end confdefs.h. */
39490 #define strcmpi innocuous_strcmpi
39492 # include <limits.h>
39494 # include <assert.h>
39501 #if defined __stub_strcmpi || defined __stub___strcmpi
39513 if ac_fn_c_try_link "$LINENO"; then :
39515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39516 $as_echo "yes" >&6; }
39517 tst_links_strcmpi="yes"
39521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39522 $as_echo "no" >&6; }
39523 tst_links_strcmpi="no"
39526 rm -f core conftest.err conftest.$ac_objext \
39527 conftest$ac_exeext conftest.$ac_ext
39529 if test "$tst_links_strcmpi" = "yes"; then
39530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
39531 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
39532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39533 /* end confdefs.h. */
39535 $curl_includes_string
39538 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39539 $EGREP "strcmpi" >/dev/null 2>&1; then :
39541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39542 $as_echo "yes" >&6; }
39543 tst_proto_strcmpi="yes"
39547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39548 $as_echo "no" >&6; }
39549 tst_proto_strcmpi="no"
39556 if test "$tst_proto_strcmpi" = "yes"; then
39557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
39558 $as_echo_n "checking if strcmpi is compilable... " >&6; }
39559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39560 /* end confdefs.h. */
39563 $curl_includes_string
39568 if(0 != strcmpi(0, 0))
39576 if ac_fn_c_try_compile "$LINENO"; then :
39578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39579 $as_echo "yes" >&6; }
39580 tst_compi_strcmpi="yes"
39584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39585 $as_echo "no" >&6; }
39586 tst_compi_strcmpi="no"
39589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39592 if test "$tst_compi_strcmpi" = "yes"; then
39593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
39594 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
39595 if test "x$curl_disallow_strcmpi" != "xyes"; then
39596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39597 $as_echo "yes" >&6; }
39598 tst_allow_strcmpi="yes"
39600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39601 $as_echo "no" >&6; }
39602 tst_allow_strcmpi="no"
39606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
39607 $as_echo_n "checking if strcmpi might be used... " >&6; }
39608 if test "$tst_links_strcmpi" = "yes" &&
39609 test "$tst_proto_strcmpi" = "yes" &&
39610 test "$tst_compi_strcmpi" = "yes" &&
39611 test "$tst_allow_strcmpi" = "yes"; then
39612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39613 $as_echo "yes" >&6; }
39615 cat >>confdefs.h <<_ACEOF
39616 #define HAVE_STRCMPI 1
39619 curl_cv_func_strcmpi="yes"
39621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39622 $as_echo "no" >&6; }
39623 curl_cv_func_strcmpi="no"
39628 tst_links_strdup="unknown"
39629 tst_proto_strdup="unknown"
39630 tst_compi_strdup="unknown"
39631 tst_allow_strdup="unknown"
39633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
39634 $as_echo_n "checking if strdup can be linked... " >&6; }
39635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39636 /* end confdefs.h. */
39639 #define strdup innocuous_strdup
39641 # include <limits.h>
39643 # include <assert.h>
39650 #if defined __stub_strdup || defined __stub___strdup
39662 if ac_fn_c_try_link "$LINENO"; then :
39664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39665 $as_echo "yes" >&6; }
39666 tst_links_strdup="yes"
39670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39671 $as_echo "no" >&6; }
39672 tst_links_strdup="no"
39675 rm -f core conftest.err conftest.$ac_objext \
39676 conftest$ac_exeext conftest.$ac_ext
39678 if test "$tst_links_strdup" = "yes"; then
39679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
39680 $as_echo_n "checking if strdup is prototyped... " >&6; }
39681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39682 /* end confdefs.h. */
39684 $curl_includes_string
39687 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39688 $EGREP "strdup" >/dev/null 2>&1; then :
39690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691 $as_echo "yes" >&6; }
39692 tst_proto_strdup="yes"
39696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39697 $as_echo "no" >&6; }
39698 tst_proto_strdup="no"
39705 if test "$tst_proto_strdup" = "yes"; then
39706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
39707 $as_echo_n "checking if strdup is compilable... " >&6; }
39708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39709 /* end confdefs.h. */
39712 $curl_includes_string
39725 if ac_fn_c_try_compile "$LINENO"; then :
39727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39728 $as_echo "yes" >&6; }
39729 tst_compi_strdup="yes"
39733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39734 $as_echo "no" >&6; }
39735 tst_compi_strdup="no"
39738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39741 if test "$tst_compi_strdup" = "yes"; then
39742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
39743 $as_echo_n "checking if strdup usage allowed... " >&6; }
39744 if test "x$curl_disallow_strdup" != "xyes"; then
39745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39746 $as_echo "yes" >&6; }
39747 tst_allow_strdup="yes"
39749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39750 $as_echo "no" >&6; }
39751 tst_allow_strdup="no"
39755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
39756 $as_echo_n "checking if strdup might be used... " >&6; }
39757 if test "$tst_links_strdup" = "yes" &&
39758 test "$tst_proto_strdup" = "yes" &&
39759 test "$tst_compi_strdup" = "yes" &&
39760 test "$tst_allow_strdup" = "yes"; then
39761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39762 $as_echo "yes" >&6; }
39764 cat >>confdefs.h <<_ACEOF
39765 #define HAVE_STRDUP 1
39768 curl_cv_func_strdup="yes"
39770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39771 $as_echo "no" >&6; }
39772 curl_cv_func_strdup="no"
39777 tst_links_strerror_r="unknown"
39778 tst_proto_strerror_r="unknown"
39779 tst_compi_strerror_r="unknown"
39780 tst_glibc_strerror_r="unknown"
39781 tst_posix_strerror_r="unknown"
39782 tst_allow_strerror_r="unknown"
39783 tst_works_glibc_strerror_r="unknown"
39784 tst_works_posix_strerror_r="unknown"
39785 tst_glibc_strerror_r_type_arg3="unknown"
39786 tst_posix_strerror_r_type_arg3="unknown"
39788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
39789 $as_echo_n "checking if strerror_r can be linked... " >&6; }
39790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39791 /* end confdefs.h. */
39794 #define strerror_r innocuous_strerror_r
39796 # include <limits.h>
39798 # include <assert.h>
39804 char strerror_r ();
39805 #if defined __stub_strerror_r || defined __stub___strerror_r
39811 return strerror_r ();
39817 if ac_fn_c_try_link "$LINENO"; then :
39819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39820 $as_echo "yes" >&6; }
39821 tst_links_strerror_r="yes"
39825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39826 $as_echo "no" >&6; }
39827 tst_links_strerror_r="no"
39830 rm -f core conftest.err conftest.$ac_objext \
39831 conftest$ac_exeext conftest.$ac_ext
39833 if test "$tst_links_strerror_r" = "yes"; then
39834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
39835 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
39836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39837 /* end confdefs.h. */
39839 $curl_includes_string
39842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39843 $EGREP "strerror_r" >/dev/null 2>&1; then :
39845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39846 $as_echo "yes" >&6; }
39847 tst_proto_strerror_r="yes"
39851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39852 $as_echo "no" >&6; }
39853 tst_proto_strerror_r="no"
39860 if test "$tst_proto_strerror_r" = "yes"; then
39861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
39862 $as_echo_n "checking if strerror_r is compilable... " >&6; }
39863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39864 /* end confdefs.h. */
39867 $curl_includes_string
39872 if(0 != strerror_r(0, 0, 0))
39880 if ac_fn_c_try_compile "$LINENO"; then :
39882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39883 $as_echo "yes" >&6; }
39884 tst_compi_strerror_r="yes"
39888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39889 $as_echo "no" >&6; }
39890 tst_compi_strerror_r="no"
39893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39896 if test "$tst_compi_strerror_r" = "yes"; then
39897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
39898 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
39899 tst_glibc_strerror_r_type_arg3="unknown"
39900 for arg3 in 'size_t' 'int' 'unsigned int'; do
39901 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
39902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39903 /* end confdefs.h. */
39906 $curl_includes_string
39907 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
39912 if(0 != strerror_r(0, 0, 0))
39920 if ac_fn_c_try_compile "$LINENO"; then :
39922 tst_glibc_strerror_r_type_arg3="$arg3"
39925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39928 case "$tst_glibc_strerror_r_type_arg3" in
39930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39931 $as_echo "no" >&6; }
39932 tst_glibc_strerror_r="no"
39935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39936 $as_echo "yes" >&6; }
39937 tst_glibc_strerror_r="yes"
39942 if test "x$cross_compiling" != "xyes" &&
39943 test "$tst_glibc_strerror_r" = "yes"; then
39944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
39945 $as_echo_n "checking if strerror_r seems to work... " >&6; }
39948 old=$LD_LIBRARY_PATH
39949 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39950 export LD_LIBRARY_PATH
39951 if test "$cross_compiling" = yes; then :
39952 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39953 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
39954 as_fn_error $? "cannot run test program while cross compiling
39955 See \`config.log' for more details" "$LINENO" 5; }
39957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39958 /* end confdefs.h. */
39961 $curl_includes_stdlib
39962 $curl_includes_string
39963 # include <errno.h>
39971 string = strerror_r(EACCES, buffer, sizeof(buffer));
39973 exit(1); /* fail */
39975 exit(1); /* fail */
39984 if ac_fn_c_try_run "$LINENO"; then :
39985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39986 $as_echo "yes" >&6; }
39987 tst_works_glibc_strerror_r="yes"
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39991 $as_echo "no" >&6; }
39992 tst_works_glibc_strerror_r="no"
39995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39996 conftest.$ac_objext conftest.beam conftest.$ac_ext
39999 LD_LIBRARY_PATH=$old # restore
40003 if test "$tst_compi_strerror_r" = "yes" &&
40004 test "$tst_works_glibc_strerror_r" != "yes"; then
40005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
40006 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
40007 tst_posix_strerror_r_type_arg3="unknown"
40008 for arg3 in 'size_t' 'int' 'unsigned int'; do
40009 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
40010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40011 /* end confdefs.h. */
40014 $curl_includes_string
40015 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
40020 if(0 != strerror_r(0, 0, 0))
40028 if ac_fn_c_try_compile "$LINENO"; then :
40030 tst_posix_strerror_r_type_arg3="$arg3"
40033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40036 case "$tst_posix_strerror_r_type_arg3" in
40038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40039 $as_echo "no" >&6; }
40040 tst_posix_strerror_r="no"
40043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40044 $as_echo "yes" >&6; }
40045 tst_posix_strerror_r="yes"
40050 if test "x$cross_compiling" != "xyes" &&
40051 test "$tst_posix_strerror_r" = "yes"; then
40052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
40053 $as_echo_n "checking if strerror_r seems to work... " >&6; }
40056 old=$LD_LIBRARY_PATH
40057 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40058 export LD_LIBRARY_PATH
40059 if test "$cross_compiling" = yes; then :
40060 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
40062 as_fn_error $? "cannot run test program while cross compiling
40063 See \`config.log' for more details" "$LINENO" 5; }
40065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40066 /* end confdefs.h. */
40069 $curl_includes_stdlib
40070 $curl_includes_string
40071 # include <errno.h>
40079 error = strerror_r(EACCES, buffer, sizeof(buffer));
40081 exit(1); /* fail */
40082 if(buffer[0] == '\0')
40083 exit(1); /* fail */
40092 if ac_fn_c_try_run "$LINENO"; then :
40093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40094 $as_echo "yes" >&6; }
40095 tst_works_posix_strerror_r="yes"
40098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40099 $as_echo "no" >&6; }
40100 tst_works_posix_strerror_r="no"
40103 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40104 conftest.$ac_objext conftest.beam conftest.$ac_ext
40107 LD_LIBRARY_PATH=$old # restore
40111 if test "$tst_works_glibc_strerror_r" = "yes"; then
40112 tst_posix_strerror_r="no"
40114 if test "$tst_works_posix_strerror_r" = "yes"; then
40115 tst_glibc_strerror_r="no"
40117 if test "$tst_glibc_strerror_r" = "yes" &&
40118 test "$tst_works_glibc_strerror_r" != "no" &&
40119 test "$tst_posix_strerror_r" != "yes"; then
40120 tst_allow_strerror_r="check"
40122 if test "$tst_posix_strerror_r" = "yes" &&
40123 test "$tst_works_posix_strerror_r" != "no" &&
40124 test "$tst_glibc_strerror_r" != "yes"; then
40125 tst_allow_strerror_r="check"
40127 if test "$tst_allow_strerror_r" = "check"; then
40128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
40129 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
40130 if test "x$curl_disallow_strerror_r" != "xyes"; then
40131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40132 $as_echo "yes" >&6; }
40133 tst_allow_strerror_r="yes"
40135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40136 $as_echo "no" >&6; }
40137 tst_allow_strerror_r="no"
40141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
40142 $as_echo_n "checking if strerror_r might be used... " >&6; }
40143 if test "$tst_links_strerror_r" = "yes" &&
40144 test "$tst_proto_strerror_r" = "yes" &&
40145 test "$tst_compi_strerror_r" = "yes" &&
40146 test "$tst_allow_strerror_r" = "yes"; then
40147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40148 $as_echo "yes" >&6; }
40149 if test "$tst_glibc_strerror_r" = "yes"; then
40151 cat >>confdefs.h <<_ACEOF
40152 #define HAVE_STRERROR_R 1
40156 cat >>confdefs.h <<_ACEOF
40157 #define HAVE_GLIBC_STRERROR_R 1
40161 cat >>confdefs.h <<_ACEOF
40162 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
40166 if test "$tst_posix_strerror_r" = "yes"; then
40168 cat >>confdefs.h <<_ACEOF
40169 #define HAVE_STRERROR_R 1
40173 cat >>confdefs.h <<_ACEOF
40174 #define HAVE_POSIX_STRERROR_R 1
40178 cat >>confdefs.h <<_ACEOF
40179 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
40183 curl_cv_func_strerror_r="yes"
40185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40186 $as_echo "no" >&6; }
40187 curl_cv_func_strerror_r="no"
40190 if test "$tst_compi_strerror_r" = "yes" &&
40191 test "$tst_allow_strerror_r" = "unknown"; then
40192 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
40193 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
40199 tst_links_stricmp="unknown"
40200 tst_proto_stricmp="unknown"
40201 tst_compi_stricmp="unknown"
40202 tst_allow_stricmp="unknown"
40204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
40205 $as_echo_n "checking if stricmp can be linked... " >&6; }
40206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40207 /* end confdefs.h. */
40210 #define stricmp innocuous_stricmp
40212 # include <limits.h>
40214 # include <assert.h>
40221 #if defined __stub_stricmp || defined __stub___stricmp
40233 if ac_fn_c_try_link "$LINENO"; then :
40235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40236 $as_echo "yes" >&6; }
40237 tst_links_stricmp="yes"
40241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40242 $as_echo "no" >&6; }
40243 tst_links_stricmp="no"
40246 rm -f core conftest.err conftest.$ac_objext \
40247 conftest$ac_exeext conftest.$ac_ext
40249 if test "$tst_links_stricmp" = "yes"; then
40250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
40251 $as_echo_n "checking if stricmp is prototyped... " >&6; }
40252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40253 /* end confdefs.h. */
40255 $curl_includes_string
40258 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40259 $EGREP "stricmp" >/dev/null 2>&1; then :
40261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40262 $as_echo "yes" >&6; }
40263 tst_proto_stricmp="yes"
40267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40268 $as_echo "no" >&6; }
40269 tst_proto_stricmp="no"
40276 if test "$tst_proto_stricmp" = "yes"; then
40277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
40278 $as_echo_n "checking if stricmp is compilable... " >&6; }
40279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40280 /* end confdefs.h. */
40283 $curl_includes_string
40288 if(0 != stricmp(0, 0))
40296 if ac_fn_c_try_compile "$LINENO"; then :
40298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40299 $as_echo "yes" >&6; }
40300 tst_compi_stricmp="yes"
40304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40305 $as_echo "no" >&6; }
40306 tst_compi_stricmp="no"
40309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40312 if test "$tst_compi_stricmp" = "yes"; then
40313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
40314 $as_echo_n "checking if stricmp usage allowed... " >&6; }
40315 if test "x$curl_disallow_stricmp" != "xyes"; then
40316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40317 $as_echo "yes" >&6; }
40318 tst_allow_stricmp="yes"
40320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40321 $as_echo "no" >&6; }
40322 tst_allow_stricmp="no"
40326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
40327 $as_echo_n "checking if stricmp might be used... " >&6; }
40328 if test "$tst_links_stricmp" = "yes" &&
40329 test "$tst_proto_stricmp" = "yes" &&
40330 test "$tst_compi_stricmp" = "yes" &&
40331 test "$tst_allow_stricmp" = "yes"; then
40332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40333 $as_echo "yes" >&6; }
40335 cat >>confdefs.h <<_ACEOF
40336 #define HAVE_STRICMP 1
40339 curl_cv_func_stricmp="yes"
40341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40342 $as_echo "no" >&6; }
40343 curl_cv_func_stricmp="no"
40348 tst_links_strncasecmp="unknown"
40349 tst_proto_strncasecmp="unknown"
40350 tst_compi_strncasecmp="unknown"
40351 tst_allow_strncasecmp="unknown"
40353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
40354 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
40355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40356 /* end confdefs.h. */
40359 #define strncasecmp innocuous_strncasecmp
40361 # include <limits.h>
40363 # include <assert.h>
40369 char strncasecmp ();
40370 #if defined __stub_strncasecmp || defined __stub___strncasecmp
40376 return strncasecmp ();
40382 if ac_fn_c_try_link "$LINENO"; then :
40384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40385 $as_echo "yes" >&6; }
40386 tst_links_strncasecmp="yes"
40390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40391 $as_echo "no" >&6; }
40392 tst_links_strncasecmp="no"
40395 rm -f core conftest.err conftest.$ac_objext \
40396 conftest$ac_exeext conftest.$ac_ext
40398 if test "$tst_links_strncasecmp" = "yes"; then
40399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
40400 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
40401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40402 /* end confdefs.h. */
40404 $curl_includes_string
40407 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40408 $EGREP "strncasecmp" >/dev/null 2>&1; then :
40410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40411 $as_echo "yes" >&6; }
40412 tst_proto_strncasecmp="yes"
40416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40417 $as_echo "no" >&6; }
40418 tst_proto_strncasecmp="no"
40425 if test "$tst_proto_strncasecmp" = "yes"; then
40426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
40427 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
40428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40429 /* end confdefs.h. */
40432 $curl_includes_string
40437 if(0 != strncasecmp(0, 0, 0))
40445 if ac_fn_c_try_compile "$LINENO"; then :
40447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40448 $as_echo "yes" >&6; }
40449 tst_compi_strncasecmp="yes"
40453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40454 $as_echo "no" >&6; }
40455 tst_compi_strncasecmp="no"
40458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40461 if test "$tst_compi_strncasecmp" = "yes"; then
40462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
40463 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
40464 if test "x$curl_disallow_strncasecmp" != "xyes"; then
40465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40466 $as_echo "yes" >&6; }
40467 tst_allow_strncasecmp="yes"
40469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40470 $as_echo "no" >&6; }
40471 tst_allow_strncasecmp="no"
40475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
40476 $as_echo_n "checking if strncasecmp might be used... " >&6; }
40477 if test "$tst_links_strncasecmp" = "yes" &&
40478 test "$tst_proto_strncasecmp" = "yes" &&
40479 test "$tst_compi_strncasecmp" = "yes" &&
40480 test "$tst_allow_strncasecmp" = "yes"; then
40481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40482 $as_echo "yes" >&6; }
40484 cat >>confdefs.h <<_ACEOF
40485 #define HAVE_STRNCASECMP 1
40488 curl_cv_func_strncasecmp="yes"
40490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40491 $as_echo "no" >&6; }
40492 curl_cv_func_strncasecmp="no"
40497 tst_links_strncmpi="unknown"
40498 tst_proto_strncmpi="unknown"
40499 tst_compi_strncmpi="unknown"
40500 tst_allow_strncmpi="unknown"
40502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
40503 $as_echo_n "checking if strncmpi can be linked... " >&6; }
40504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40505 /* end confdefs.h. */
40508 #define strncmpi innocuous_strncmpi
40510 # include <limits.h>
40512 # include <assert.h>
40519 #if defined __stub_strncmpi || defined __stub___strncmpi
40525 return strncmpi ();
40531 if ac_fn_c_try_link "$LINENO"; then :
40533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40534 $as_echo "yes" >&6; }
40535 tst_links_strncmpi="yes"
40539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40540 $as_echo "no" >&6; }
40541 tst_links_strncmpi="no"
40544 rm -f core conftest.err conftest.$ac_objext \
40545 conftest$ac_exeext conftest.$ac_ext
40547 if test "$tst_links_strncmpi" = "yes"; then
40548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
40549 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
40550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40551 /* end confdefs.h. */
40553 $curl_includes_string
40556 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40557 $EGREP "strncmpi" >/dev/null 2>&1; then :
40559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40560 $as_echo "yes" >&6; }
40561 tst_proto_strncmpi="yes"
40565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40566 $as_echo "no" >&6; }
40567 tst_proto_strncmpi="no"
40574 if test "$tst_proto_strncmpi" = "yes"; then
40575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
40576 $as_echo_n "checking if strncmpi is compilable... " >&6; }
40577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40578 /* end confdefs.h. */
40581 $curl_includes_string
40586 if(0 != strncmpi(0, 0))
40594 if ac_fn_c_try_compile "$LINENO"; then :
40596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40597 $as_echo "yes" >&6; }
40598 tst_compi_strncmpi="yes"
40602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40603 $as_echo "no" >&6; }
40604 tst_compi_strncmpi="no"
40607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40610 if test "$tst_compi_strncmpi" = "yes"; then
40611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
40612 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
40613 if test "x$curl_disallow_strncmpi" != "xyes"; then
40614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40615 $as_echo "yes" >&6; }
40616 tst_allow_strncmpi="yes"
40618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40619 $as_echo "no" >&6; }
40620 tst_allow_strncmpi="no"
40624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
40625 $as_echo_n "checking if strncmpi might be used... " >&6; }
40626 if test "$tst_links_strncmpi" = "yes" &&
40627 test "$tst_proto_strncmpi" = "yes" &&
40628 test "$tst_compi_strncmpi" = "yes" &&
40629 test "$tst_allow_strncmpi" = "yes"; then
40630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40631 $as_echo "yes" >&6; }
40633 cat >>confdefs.h <<_ACEOF
40634 #define HAVE_STRNCMPI 1
40637 curl_cv_func_strncmpi="yes"
40639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40640 $as_echo "no" >&6; }
40641 curl_cv_func_strncmpi="no"
40646 tst_links_strnicmp="unknown"
40647 tst_proto_strnicmp="unknown"
40648 tst_compi_strnicmp="unknown"
40649 tst_allow_strnicmp="unknown"
40651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
40652 $as_echo_n "checking if strnicmp can be linked... " >&6; }
40653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40654 /* end confdefs.h. */
40657 #define strnicmp innocuous_strnicmp
40659 # include <limits.h>
40661 # include <assert.h>
40668 #if defined __stub_strnicmp || defined __stub___strnicmp
40674 return strnicmp ();
40680 if ac_fn_c_try_link "$LINENO"; then :
40682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40683 $as_echo "yes" >&6; }
40684 tst_links_strnicmp="yes"
40688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40689 $as_echo "no" >&6; }
40690 tst_links_strnicmp="no"
40693 rm -f core conftest.err conftest.$ac_objext \
40694 conftest$ac_exeext conftest.$ac_ext
40696 if test "$tst_links_strnicmp" = "yes"; then
40697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
40698 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
40699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40700 /* end confdefs.h. */
40702 $curl_includes_string
40705 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40706 $EGREP "strnicmp" >/dev/null 2>&1; then :
40708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40709 $as_echo "yes" >&6; }
40710 tst_proto_strnicmp="yes"
40714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40715 $as_echo "no" >&6; }
40716 tst_proto_strnicmp="no"
40723 if test "$tst_proto_strnicmp" = "yes"; then
40724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
40725 $as_echo_n "checking if strnicmp is compilable... " >&6; }
40726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40727 /* end confdefs.h. */
40730 $curl_includes_string
40735 if(0 != strnicmp(0, 0))
40743 if ac_fn_c_try_compile "$LINENO"; then :
40745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40746 $as_echo "yes" >&6; }
40747 tst_compi_strnicmp="yes"
40751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40752 $as_echo "no" >&6; }
40753 tst_compi_strnicmp="no"
40756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40759 if test "$tst_compi_strnicmp" = "yes"; then
40760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
40761 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
40762 if test "x$curl_disallow_strnicmp" != "xyes"; then
40763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40764 $as_echo "yes" >&6; }
40765 tst_allow_strnicmp="yes"
40767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40768 $as_echo "no" >&6; }
40769 tst_allow_strnicmp="no"
40773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
40774 $as_echo_n "checking if strnicmp might be used... " >&6; }
40775 if test "$tst_links_strnicmp" = "yes" &&
40776 test "$tst_proto_strnicmp" = "yes" &&
40777 test "$tst_compi_strnicmp" = "yes" &&
40778 test "$tst_allow_strnicmp" = "yes"; then
40779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40780 $as_echo "yes" >&6; }
40782 cat >>confdefs.h <<_ACEOF
40783 #define HAVE_STRNICMP 1
40786 curl_cv_func_strnicmp="yes"
40788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40789 $as_echo "no" >&6; }
40790 curl_cv_func_strnicmp="no"
40795 tst_links_strstr="unknown"
40796 tst_proto_strstr="unknown"
40797 tst_compi_strstr="unknown"
40798 tst_allow_strstr="unknown"
40800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
40801 $as_echo_n "checking if strstr can be linked... " >&6; }
40802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40803 /* end confdefs.h. */
40806 #define strstr innocuous_strstr
40808 # include <limits.h>
40810 # include <assert.h>
40817 #if defined __stub_strstr || defined __stub___strstr
40829 if ac_fn_c_try_link "$LINENO"; then :
40831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40832 $as_echo "yes" >&6; }
40833 tst_links_strstr="yes"
40837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40838 $as_echo "no" >&6; }
40839 tst_links_strstr="no"
40842 rm -f core conftest.err conftest.$ac_objext \
40843 conftest$ac_exeext conftest.$ac_ext
40845 if test "$tst_links_strstr" = "yes"; then
40846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
40847 $as_echo_n "checking if strstr is prototyped... " >&6; }
40848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40849 /* end confdefs.h. */
40851 $curl_includes_string
40854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40855 $EGREP "strstr" >/dev/null 2>&1; then :
40857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40858 $as_echo "yes" >&6; }
40859 tst_proto_strstr="yes"
40863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40864 $as_echo "no" >&6; }
40865 tst_proto_strstr="no"
40872 if test "$tst_proto_strstr" = "yes"; then
40873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
40874 $as_echo_n "checking if strstr is compilable... " >&6; }
40875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40876 /* end confdefs.h. */
40879 $curl_includes_string
40884 if(0 != strstr(0, 0))
40892 if ac_fn_c_try_compile "$LINENO"; then :
40894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40895 $as_echo "yes" >&6; }
40896 tst_compi_strstr="yes"
40900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40901 $as_echo "no" >&6; }
40902 tst_compi_strstr="no"
40905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40908 if test "$tst_compi_strstr" = "yes"; then
40909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
40910 $as_echo_n "checking if strstr usage allowed... " >&6; }
40911 if test "x$curl_disallow_strstr" != "xyes"; then
40912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40913 $as_echo "yes" >&6; }
40914 tst_allow_strstr="yes"
40916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40917 $as_echo "no" >&6; }
40918 tst_allow_strstr="no"
40922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
40923 $as_echo_n "checking if strstr might be used... " >&6; }
40924 if test "$tst_links_strstr" = "yes" &&
40925 test "$tst_proto_strstr" = "yes" &&
40926 test "$tst_compi_strstr" = "yes" &&
40927 test "$tst_allow_strstr" = "yes"; then
40928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40929 $as_echo "yes" >&6; }
40931 cat >>confdefs.h <<_ACEOF
40932 #define HAVE_STRSTR 1
40935 curl_cv_func_strstr="yes"
40937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40938 $as_echo "no" >&6; }
40939 curl_cv_func_strstr="no"
40944 tst_links_strtok_r="unknown"
40945 tst_proto_strtok_r="unknown"
40946 tst_compi_strtok_r="unknown"
40947 tst_allow_strtok_r="unknown"
40949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
40950 $as_echo_n "checking if strtok_r can be linked... " >&6; }
40951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40952 /* end confdefs.h. */
40955 #define strtok_r innocuous_strtok_r
40957 # include <limits.h>
40959 # include <assert.h>
40966 #if defined __stub_strtok_r || defined __stub___strtok_r
40972 return strtok_r ();
40978 if ac_fn_c_try_link "$LINENO"; then :
40980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40981 $as_echo "yes" >&6; }
40982 tst_links_strtok_r="yes"
40986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40987 $as_echo "no" >&6; }
40988 tst_links_strtok_r="no"
40991 rm -f core conftest.err conftest.$ac_objext \
40992 conftest$ac_exeext conftest.$ac_ext
40994 if test "$tst_links_strtok_r" = "yes"; then
40995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
40996 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
40997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40998 /* end confdefs.h. */
41000 $curl_includes_string
41003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41004 $EGREP "strtok_r" >/dev/null 2>&1; then :
41006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41007 $as_echo "yes" >&6; }
41008 tst_proto_strtok_r="yes"
41012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41013 $as_echo "no" >&6; }
41014 tst_proto_strtok_r="no"
41021 if test "$tst_proto_strtok_r" = "yes"; then
41022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
41023 $as_echo_n "checking if strtok_r is compilable... " >&6; }
41024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41025 /* end confdefs.h. */
41028 $curl_includes_string
41033 if(0 != strtok_r(0, 0, 0))
41041 if ac_fn_c_try_compile "$LINENO"; then :
41043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41044 $as_echo "yes" >&6; }
41045 tst_compi_strtok_r="yes"
41049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41050 $as_echo "no" >&6; }
41051 tst_compi_strtok_r="no"
41054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41057 if test "$tst_compi_strtok_r" = "yes"; then
41058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
41059 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
41060 if test "x$curl_disallow_strtok_r" != "xyes"; then
41061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41062 $as_echo "yes" >&6; }
41063 tst_allow_strtok_r="yes"
41065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41066 $as_echo "no" >&6; }
41067 tst_allow_strtok_r="no"
41071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
41072 $as_echo_n "checking if strtok_r might be used... " >&6; }
41073 if test "$tst_links_strtok_r" = "yes" &&
41074 test "$tst_proto_strtok_r" = "yes" &&
41075 test "$tst_compi_strtok_r" = "yes" &&
41076 test "$tst_allow_strtok_r" = "yes"; then
41077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41078 $as_echo "yes" >&6; }
41080 cat >>confdefs.h <<_ACEOF
41081 #define HAVE_STRTOK_R 1
41084 curl_cv_func_strtok_r="yes"
41086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41087 $as_echo "no" >&6; }
41088 curl_cv_func_strtok_r="no"
41093 tst_links_strtoll="unknown"
41094 tst_proto_strtoll="unknown"
41095 tst_compi_strtoll="unknown"
41096 tst_allow_strtoll="unknown"
41098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
41099 $as_echo_n "checking if strtoll can be linked... " >&6; }
41100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41101 /* end confdefs.h. */
41104 #define strtoll innocuous_strtoll
41106 # include <limits.h>
41108 # include <assert.h>
41115 #if defined __stub_strtoll || defined __stub___strtoll
41127 if ac_fn_c_try_link "$LINENO"; then :
41129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41130 $as_echo "yes" >&6; }
41131 tst_links_strtoll="yes"
41135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41136 $as_echo "no" >&6; }
41137 tst_links_strtoll="no"
41140 rm -f core conftest.err conftest.$ac_objext \
41141 conftest$ac_exeext conftest.$ac_ext
41143 if test "$tst_links_strtoll" = "yes"; then
41144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
41145 $as_echo_n "checking if strtoll is prototyped... " >&6; }
41146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41147 /* end confdefs.h. */
41149 $curl_includes_stdlib
41152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41153 $EGREP "strtoll" >/dev/null 2>&1; then :
41155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41156 $as_echo "yes" >&6; }
41157 tst_proto_strtoll="yes"
41161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41162 $as_echo "no" >&6; }
41163 tst_proto_strtoll="no"
41170 if test "$tst_proto_strtoll" = "yes"; then
41171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
41172 $as_echo_n "checking if strtoll is compilable... " >&6; }
41173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41174 /* end confdefs.h. */
41177 $curl_includes_stdlib
41182 if(0 != strtoll(0, 0, 0))
41190 if ac_fn_c_try_compile "$LINENO"; then :
41192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41193 $as_echo "yes" >&6; }
41194 tst_compi_strtoll="yes"
41198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41199 $as_echo "no" >&6; }
41200 tst_compi_strtoll="no"
41203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41206 if test "$tst_compi_strtoll" = "yes"; then
41207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
41208 $as_echo_n "checking if strtoll usage allowed... " >&6; }
41209 if test "x$curl_disallow_strtoll" != "xyes"; then
41210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41211 $as_echo "yes" >&6; }
41212 tst_allow_strtoll="yes"
41214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41215 $as_echo "no" >&6; }
41216 tst_allow_strtoll="no"
41220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
41221 $as_echo_n "checking if strtoll might be used... " >&6; }
41222 if test "$tst_links_strtoll" = "yes" &&
41223 test "$tst_proto_strtoll" = "yes" &&
41224 test "$tst_compi_strtoll" = "yes" &&
41225 test "$tst_allow_strtoll" = "yes"; then
41226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41227 $as_echo "yes" >&6; }
41229 cat >>confdefs.h <<_ACEOF
41230 #define HAVE_STRTOLL 1
41233 curl_cv_func_strtoll="yes"
41235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41236 $as_echo "no" >&6; }
41237 curl_cv_func_strtoll="no"
41241 curl_includes_sys_uio="\
41242 /* includes start */
41243 #ifdef HAVE_SYS_TYPES_H
41244 # include <sys/types.h>
41246 #ifdef HAVE_SYS_UIO_H
41247 # include <sys/uio.h>
41249 /* includes end */"
41250 for ac_header in sys/types.h sys/uio.h
41252 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
41253 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
41255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
41256 cat >>confdefs.h <<_ACEOF
41257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
41267 tst_links_writev="unknown"
41268 tst_proto_writev="unknown"
41269 tst_compi_writev="unknown"
41270 tst_allow_writev="unknown"
41272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
41273 $as_echo_n "checking if writev can be linked... " >&6; }
41274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41275 /* end confdefs.h. */
41278 #define writev innocuous_writev
41280 # include <limits.h>
41282 # include <assert.h>
41289 #if defined __stub_writev || defined __stub___writev
41301 if ac_fn_c_try_link "$LINENO"; then :
41303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41304 $as_echo "yes" >&6; }
41305 tst_links_writev="yes"
41309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41310 $as_echo "no" >&6; }
41311 tst_links_writev="no"
41314 rm -f core conftest.err conftest.$ac_objext \
41315 conftest$ac_exeext conftest.$ac_ext
41317 if test "$tst_links_writev" = "yes"; then
41318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
41319 $as_echo_n "checking if writev is prototyped... " >&6; }
41320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41321 /* end confdefs.h. */
41323 $curl_includes_sys_uio
41326 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41327 $EGREP "writev" >/dev/null 2>&1; then :
41329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41330 $as_echo "yes" >&6; }
41331 tst_proto_writev="yes"
41335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41336 $as_echo "no" >&6; }
41337 tst_proto_writev="no"
41344 if test "$tst_proto_writev" = "yes"; then
41345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
41346 $as_echo_n "checking if writev is compilable... " >&6; }
41347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41348 /* end confdefs.h. */
41351 $curl_includes_sys_uio
41356 if(0 != writev(0, 0, 0))
41364 if ac_fn_c_try_compile "$LINENO"; then :
41366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41367 $as_echo "yes" >&6; }
41368 tst_compi_writev="yes"
41372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41373 $as_echo "no" >&6; }
41374 tst_compi_writev="no"
41377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
41380 if test "$tst_compi_writev" = "yes"; then
41381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
41382 $as_echo_n "checking if writev usage allowed... " >&6; }
41383 if test "x$curl_disallow_writev" != "xyes"; then
41384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41385 $as_echo "yes" >&6; }
41386 tst_allow_writev="yes"
41388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41389 $as_echo "no" >&6; }
41390 tst_allow_writev="no"
41394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
41395 $as_echo_n "checking if writev might be used... " >&6; }
41396 if test "$tst_links_writev" = "yes" &&
41397 test "$tst_proto_writev" = "yes" &&
41398 test "$tst_compi_writev" = "yes" &&
41399 test "$tst_allow_writev" = "yes"; then
41400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41401 $as_echo "yes" >&6; }
41403 cat >>confdefs.h <<_ACEOF
41404 #define HAVE_WRITEV 1
41407 curl_cv_func_writev="yes"
41409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41410 $as_echo "no" >&6; }
41411 curl_cv_func_writev="no"
41419 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
41420 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
41424 ac_fn_c_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
41425 #include <sys/types.h>
41427 if test "x$ac_cv_have_decl_getpwuid_r" = xyes; then :
41433 cat >>confdefs.h <<_ACEOF
41434 #define HAVE_DECL_GETPWUID_R $ac_have_decl
41436 if test $ac_have_decl = 1; then :
41440 $as_echo "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
41446 for ac_func in fnmatch \
41455 mach_absolute_time \
41465 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
41466 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
41467 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
41468 cat >>confdefs.h <<_ACEOF
41469 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
41476 eval skipcheck=\$skipcheck_$func
41477 if test "x$skipcheck" != "xyes"; then
41478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
41479 $as_echo_n "checking deeper for $func... " >&6; }
41480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41481 /* end confdefs.h. */
41495 if ac_fn_c_try_link "$LINENO"; then :
41497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41498 $as_echo "yes" >&6; }
41499 eval "ac_cv_func_$func=yes"
41501 cat >>confdefs.h <<_ACEOF
41502 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
41508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
41509 $as_echo "but still no" >&6; }
41512 rm -f core conftest.err conftest.$ac_objext \
41513 conftest$ac_exeext conftest.$ac_ext
41522 tst_method="unknown"
41524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
41525 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
41526 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
41527 tst_method="fcntl O_NONBLOCK"
41528 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
41529 tst_method="ioctl FIONBIO"
41530 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
41531 tst_method="ioctlsocket FIONBIO"
41532 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
41533 tst_method="IoctlSocket FIONBIO"
41534 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
41535 tst_method="setsockopt SO_NONBLOCK"
41537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
41538 $as_echo "$tst_method" >&6; }
41539 if test "$tst_method" = "unknown"; then
41540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
41541 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
41546 # Extract the first word of "perl", so it can be a program name with args.
41547 set dummy perl; ac_word=$2
41548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41549 $as_echo_n "checking for $ac_word... " >&6; }
41550 if ${ac_cv_path_PERL+:} false; then :
41551 $as_echo_n "(cached) " >&6
41555 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
41558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41559 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
41560 for as_dir in $as_dummy
41563 test -z "$as_dir" && as_dir=.
41564 for ac_exec_ext in '' $ac_executable_extensions; do
41565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41566 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
41567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41577 PERL=$ac_cv_path_PERL
41578 if test -n "$PERL"; then
41579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
41580 $as_echo "$PERL" >&6; }
41582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41583 $as_echo "no" >&6; }
41589 for ac_prog in gnroff nroff
41591 # Extract the first word of "$ac_prog", so it can be a program name with args.
41592 set dummy $ac_prog; ac_word=$2
41593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41594 $as_echo_n "checking for $ac_word... " >&6; }
41595 if ${ac_cv_path_NROFF+:} false; then :
41596 $as_echo_n "(cached) " >&6
41600 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
41603 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41604 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
41605 for as_dir in $as_dummy
41608 test -z "$as_dir" && as_dir=.
41609 for ac_exec_ext in '' $ac_executable_extensions; do
41610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41611 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
41612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41622 NROFF=$ac_cv_path_NROFF
41623 if test -n "$NROFF"; then
41624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
41625 $as_echo "$NROFF" >&6; }
41627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41628 $as_echo "no" >&6; }
41632 test -n "$NROFF" && break
41637 if test -n "$NROFF"; then
41639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
41640 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
41642 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
41643 if test -z "$mancheck"; then
41645 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
41646 if test -z "$mancheck"; then
41648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
41649 $as_echo "failed" >&6; }
41650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
41651 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
41653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
41654 $as_echo "$MANOPT" >&6; }
41657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
41658 $as_echo "$MANOPT" >&6; }
41663 if test -z "$MANOPT"
41665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
41666 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
41671 if test "$USE_MANUAL" = "1"; then
41673 $as_echo "#define USE_MANUAL 1" >>confdefs.h
41675 curl_manual_msg="enabled"
41678 if test x"$USE_MANUAL" = x1; then
41680 USE_MANUAL_FALSE='#'
41682 USE_MANUAL_TRUE='#'
41691 if test "$want_ares" = "yes"; then
41692 clean_CPPFLAGS="$CPPFLAGS"
41693 clean_LDFLAGS="$LDFLAGS"
41695 embedded_ares="unknown"
41696 configure_runpath=`pwd`
41697 embedded_ares_builddir="$configure_runpath/ares"
41698 if test -n "$want_ares_path"; then
41699 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
41701 if test -n "$PKG_CONFIG"; then
41702 PKGCONFIG="$PKG_CONFIG"
41704 if test -n "$ac_tool_prefix"; then
41705 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41706 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41708 $as_echo_n "checking for $ac_word... " >&6; }
41709 if ${ac_cv_path_PKGCONFIG+:} false; then :
41710 $as_echo_n "(cached) " >&6
41714 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
41717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41718 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41719 for as_dir in $as_dummy
41722 test -z "$as_dir" && as_dir=.
41723 for ac_exec_ext in '' $ac_executable_extensions; do
41724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41725 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41736 PKGCONFIG=$ac_cv_path_PKGCONFIG
41737 if test -n "$PKGCONFIG"; then
41738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
41739 $as_echo "$PKGCONFIG" >&6; }
41741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41742 $as_echo "no" >&6; }
41747 if test -z "$ac_cv_path_PKGCONFIG"; then
41748 ac_pt_PKGCONFIG=$PKGCONFIG
41749 # Extract the first word of "pkg-config", so it can be a program name with args.
41750 set dummy pkg-config; ac_word=$2
41751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41752 $as_echo_n "checking for $ac_word... " >&6; }
41753 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
41754 $as_echo_n "(cached) " >&6
41756 case $ac_pt_PKGCONFIG in
41758 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
41761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41762 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41763 for as_dir in $as_dummy
41766 test -z "$as_dir" && as_dir=.
41767 for ac_exec_ext in '' $ac_executable_extensions; do
41768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41769 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41780 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
41781 if test -n "$ac_pt_PKGCONFIG"; then
41782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
41783 $as_echo "$ac_pt_PKGCONFIG" >&6; }
41785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41786 $as_echo "no" >&6; }
41789 if test "x$ac_pt_PKGCONFIG" = x; then
41792 case $cross_compiling:$ac_tool_warned in
41794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
41795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
41796 ac_tool_warned=yes ;;
41798 PKGCONFIG=$ac_pt_PKGCONFIG
41801 PKGCONFIG="$ac_cv_path_PKGCONFIG"
41806 if test "x$PKGCONFIG" != "xno"; then
41807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
41808 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
41810 if test -n "$ARES_PCDIR"; then
41811 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41812 export PKG_CONFIG_LIBDIR
41814 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
41816 if test -z "$itexists"; then
41818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41819 $as_echo "no" >&6; }
41821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
41822 $as_echo "found" >&6; }
41826 if test "$PKGCONFIG" != "no" ; then
41828 if test -n "$ARES_PCDIR"; then
41829 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41830 export PKG_CONFIG_LIBDIR
41833 $PKGCONFIG --libs-only-l libcares`
41835 if test -n "$ARES_PCDIR"; then
41836 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41837 export PKG_CONFIG_LIBDIR
41840 $PKGCONFIG --libs-only-L libcares`
41842 if test -n "$ARES_PCDIR"; then
41843 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
41844 export PKG_CONFIG_LIBDIR
41847 $PKGCONFIG --cflags-only-I libcares`
41848 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
41849 $as_echo "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
41850 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
41851 $as_echo "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
41852 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
41853 $as_echo "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
41855 ares_CPPFLAGS="-I$want_ares_path/include"
41856 ares_LDFLAGS="-L$want_ares_path/lib"
41857 ares_LIBS="-lcares"
41860 if test -d "$srcdir/ares"; then
41861 embedded_ares="yes"
41862 subdirs="$subdirs ares"
41865 ares_LDFLAGS="-L$embedded_ares_builddir"
41866 ares_LIBS="-lcares"
41869 if test -n "$PKG_CONFIG"; then
41870 PKGCONFIG="$PKG_CONFIG"
41872 if test -n "$ac_tool_prefix"; then
41873 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
41874 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
41875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41876 $as_echo_n "checking for $ac_word... " >&6; }
41877 if ${ac_cv_path_PKGCONFIG+:} false; then :
41878 $as_echo_n "(cached) " >&6
41882 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
41885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41886 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41887 for as_dir in $as_dummy
41890 test -z "$as_dir" && as_dir=.
41891 for ac_exec_ext in '' $ac_executable_extensions; do
41892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41893 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41904 PKGCONFIG=$ac_cv_path_PKGCONFIG
41905 if test -n "$PKGCONFIG"; then
41906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
41907 $as_echo "$PKGCONFIG" >&6; }
41909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41910 $as_echo "no" >&6; }
41915 if test -z "$ac_cv_path_PKGCONFIG"; then
41916 ac_pt_PKGCONFIG=$PKGCONFIG
41917 # Extract the first word of "pkg-config", so it can be a program name with args.
41918 set dummy pkg-config; ac_word=$2
41919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
41920 $as_echo_n "checking for $ac_word... " >&6; }
41921 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
41922 $as_echo_n "(cached) " >&6
41924 case $ac_pt_PKGCONFIG in
41926 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
41929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41930 as_dummy="$PATH:/usr/bin:/usr/local/bin"
41931 for as_dir in $as_dummy
41934 test -z "$as_dir" && as_dir=.
41935 for ac_exec_ext in '' $ac_executable_extensions; do
41936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
41937 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
41938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
41948 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
41949 if test -n "$ac_pt_PKGCONFIG"; then
41950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
41951 $as_echo "$ac_pt_PKGCONFIG" >&6; }
41953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41954 $as_echo "no" >&6; }
41957 if test "x$ac_pt_PKGCONFIG" = x; then
41960 case $cross_compiling:$ac_tool_warned in
41962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
41963 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
41964 ac_tool_warned=yes ;;
41966 PKGCONFIG=$ac_pt_PKGCONFIG
41969 PKGCONFIG="$ac_cv_path_PKGCONFIG"
41974 if test "x$PKGCONFIG" != "xno"; then
41975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
41976 $as_echo_n "checking for libcares options with pkg-config... " >&6; }
41978 if test -n ""; then
41979 PKG_CONFIG_LIBDIR=""
41980 export PKG_CONFIG_LIBDIR
41982 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
41984 if test -z "$itexists"; then
41986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41987 $as_echo "no" >&6; }
41989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
41990 $as_echo "found" >&6; }
41994 if test "$PKGCONFIG" != "no" ; then
41995 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
41996 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
41997 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
41998 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
41999 $as_echo "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
42000 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
42001 $as_echo "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
42002 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
42003 $as_echo "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
42007 ares_LIBS="-lcares"
42012 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
42013 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
42014 LIBS="$ares_LIBS $clean_LIBS"
42016 if test "$embedded_ares" != "yes"; then
42017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
42018 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
42019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42020 /* end confdefs.h. */
42024 /* set of dummy functions in case c-ares was built with debug */
42025 void curl_dofree() { }
42026 void curl_sclose() { }
42027 void curl_domalloc() { }
42028 void curl_docalloc() { }
42029 void curl_socket() { }
42034 ares_channel channel;
42035 ares_cancel(channel); /* added in 1.2.0 */
42036 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
42037 ares_dup(&channel, channel); /* added in 1.6.0 */
42044 if ac_fn_c_try_link "$LINENO"; then :
42046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42047 $as_echo "yes" >&6; }
42051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42052 $as_echo "no" >&6; }
42053 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
42054 CPPFLAGS="$clean_CPPFLAGS"
42055 LDFLAGS="$clean_LDFLAGS"
42061 rm -f core conftest.err conftest.$ac_objext \
42062 conftest$ac_exeext conftest.$ac_ext
42064 if test "$want_ares" = "yes"; then
42066 $as_echo "#define USE_ARES 1" >>confdefs.h
42070 curl_res_msg="c-ares"
42074 if test x$embedded_ares = xyes; then
42075 USE_EMBEDDED_ARES_TRUE=
42076 USE_EMBEDDED_ARES_FALSE='#'
42078 USE_EMBEDDED_ARES_TRUE='#'
42079 USE_EMBEDDED_ARES_FALSE=
42083 if test "x$curl_cv_native_windows" != "xyes" &&
42084 test "x$enable_shared" = "xyes"; then
42085 build_libhostname=yes
42087 build_libhostname=no
42089 if test x$build_libhostname = xyes; then
42090 BUILD_LIBHOSTNAME_TRUE=
42091 BUILD_LIBHOSTNAME_FALSE='#'
42093 BUILD_LIBHOSTNAME_TRUE='#'
42094 BUILD_LIBHOSTNAME_FALSE=
42098 if test "x$want_ares" != xyes; then
42100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
42101 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
42102 OPT_THRES="default"
42103 # Check whether --enable-threaded_resolver was given.
42104 if test "${enable_threaded_resolver+set}" = set; then :
42105 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
42108 case "$OPT_THRES" in
42116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
42117 $as_echo "$want_thres" >&6; }
42121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
42122 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
42123 # Check whether --enable-pthreads was given.
42124 if test "${enable_pthreads+set}" = set; then :
42125 enableval=$enable_pthreads; case "$enableval" in
42126 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42127 $as_echo "no" >&6; }
42130 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42131 $as_echo "yes" >&6; }
42137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
42138 $as_echo "auto" >&6; }
42145 if test "$want_pthreads" != "no"; then
42146 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
42147 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
42149 if test "$dontwant_rt" != "no"; then
42150 if test "$want_pthreads" = "yes"; then
42151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
42152 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
42158 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
42162 if test "$want_pthreads" != "no"; then
42163 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
42164 if test "x$ac_cv_header_pthread_h" = xyes; then :
42166 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
42168 save_CFLAGS="$CFLAGS"
42170 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
42171 if test "x$ac_cv_func_pthread_create" = xyes; then :
42172 USE_THREADS_POSIX=1
42178 USE_THREADS_POSIX=""
42184 if test "$USE_THREADS_POSIX" != "1"
42186 CFLAGS="$CFLAGS -pthread"
42187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
42188 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
42189 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
42190 $as_echo_n "(cached) " >&6
42192 ac_check_lib_save_LIBS=$LIBS
42193 LIBS="-lpthread $LIBS"
42194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42195 /* end confdefs.h. */
42201 char pthread_create ();
42204 return pthread_create ();
42209 if ac_fn_c_try_link "$LINENO"; then :
42210 ac_cv_lib_pthread_pthread_create=yes
42212 ac_cv_lib_pthread_pthread_create=no
42214 rm -f core conftest.err conftest.$ac_objext \
42215 conftest$ac_exeext conftest.$ac_ext
42216 LIBS=$ac_check_lib_save_LIBS
42218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
42219 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
42220 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
42221 USE_THREADS_POSIX=1
42223 CFLAGS="$save_CFLAGS"
42228 if test "x$USE_THREADS_POSIX" = "x1"
42231 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
42233 curl_res_msg="POSIX threaded"
42241 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
42242 if test "$want_pthreads" = "yes"; then
42243 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
42245 if test "$curl_cv_native_windows" = "yes"; then
42246 USE_THREADS_WIN32=1
42248 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
42250 curl_res_msg="Win32 threaded"
42252 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
42256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
42257 $as_echo_n "checking whether to enable verbose strings... " >&6; }
42258 # Check whether --enable-verbose was given.
42259 if test "${enable_verbose+set}" = set; then :
42260 enableval=$enable_verbose; case "$enableval" in
42262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42263 $as_echo "no" >&6; }
42265 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
42267 curl_verbose_msg="no"
42269 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42270 $as_echo "yes" >&6; }
42274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42275 $as_echo "yes" >&6; }
42280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
42281 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
42282 # Check whether --enable-sspi was given.
42283 if test "${enable_sspi+set}" = set; then :
42284 enableval=$enable_sspi; case "$enableval" in
42286 if test "$curl_cv_native_windows" = "yes"; then
42287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42288 $as_echo "yes" >&6; }
42290 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
42294 curl_sspi_msg="enabled"
42296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42297 $as_echo "no" >&6; }
42298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
42299 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
42303 if test "x$WINSSL_ENABLED" = "x1"; then
42304 # --with-winssl implies --enable-sspi
42305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42306 $as_echo "yes" >&6; }
42308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42309 $as_echo "no" >&6; }
42314 if test "x$WINSSL_ENABLED" = "x1"; then
42315 # --with-winssl implies --enable-sspi
42316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42317 $as_echo "yes" >&6; }
42319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42320 $as_echo "no" >&6; }
42326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
42327 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
42328 # Check whether --enable-crypto-auth was given.
42329 if test "${enable_crypto_auth+set}" = set; then :
42330 enableval=$enable_crypto_auth; case "$enableval" in
42332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42333 $as_echo "no" >&6; }
42335 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
42337 CURL_DISABLE_CRYPTO_AUTH=1
42339 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42340 $as_echo "yes" >&6; }
42344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42345 $as_echo "yes" >&6; }
42351 OPT_NTLM_WB="default"
42352 # Check whether --enable-ntlm-wb was given.
42353 if test "${enable_ntlm_wb+set}" = set; then :
42354 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
42357 want_ntlm_wb_file="/usr/bin/ntlm_auth"
42358 case "$OPT_NTLM_WB" in
42367 if test -n "$enableval" && test "$enableval" != "yes"; then
42368 want_ntlm_wb_file="$enableval"
42375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
42376 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
42377 if test "$curl_cv_native_windows" = "yes" ||
42378 test "x$SSL_ENABLED" = "x"; then
42379 want_ntlm_wb_file=""
42382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
42383 $as_echo "$want_ntlm_wb" >&6; }
42384 if test "$want_ntlm_wb" = "yes"; then
42386 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
42389 cat >>confdefs.h <<_ACEOF
42390 #define NTLM_WB_FILE "$want_ntlm_wb_file"
42397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
42398 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
42399 # Check whether --enable-tls-srp was given.
42400 if test "${enable_tls_srp+set}" = set; then :
42401 enableval=$enable_tls_srp; case "$enableval" in
42403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42404 $as_echo "no" >&6; }
42407 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42408 $as_echo "yes" >&6; }
42413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42414 $as_echo "yes" >&6; }
42420 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
42422 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
42425 curl_tls_srp_msg="enabled"
42428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
42429 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
42430 # Check whether --enable-unix-sockets was given.
42431 if test "${enable_unix_sockets+set}" = set; then :
42432 enableval=$enable_unix_sockets; case "$enableval" in
42433 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42434 $as_echo "no" >&6; }
42435 want_unix_sockets=no
42437 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42438 $as_echo "yes" >&6; }
42439 want_unix_sockets=yes
42444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
42445 $as_echo "auto" >&6; }
42446 want_unix_sockets=auto
42451 if test "x$want_unix_sockets" != "xno"; then
42452 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
42453 #include <sys/un.h>
42456 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
42459 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
42463 curl_unix_sockets_msg="enabled"
42467 if test "x$want_unix_sockets" = "xyes"; then
42468 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
42475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
42476 $as_echo_n "checking whether to support cookies... " >&6; }
42477 # Check whether --enable-cookies was given.
42478 if test "${enable_cookies+set}" = set; then :
42479 enableval=$enable_cookies; case "$enableval" in
42481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42482 $as_echo "no" >&6; }
42484 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
42487 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42488 $as_echo "yes" >&6; }
42492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42493 $as_echo "yes" >&6; }
42498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
42499 $as_echo_n "checking whether to support HTTP authentication... " >&6; }
42500 # Check whether --enable-http-auth was given.
42501 if test "${enable_http_auth+set}" = set; then :
42502 enableval=$enable_http_auth; case "$enableval" in
42504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42505 $as_echo "no" >&6; }
42507 $as_echo "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
42510 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42511 $as_echo "yes" >&6; }
42515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42516 $as_echo "yes" >&6; }
42521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
42522 $as_echo_n "checking whether to support DoH... " >&6; }
42523 # Check whether --enable-doh was given.
42524 if test "${enable_doh+set}" = set; then :
42525 enableval=$enable_doh; case "$enableval" in
42527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42528 $as_echo "no" >&6; }
42530 $as_echo "#define CURL_DISABLE_DOH 1" >>confdefs.h
42533 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42534 $as_echo "yes" >&6; }
42538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42539 $as_echo "yes" >&6; }
42544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
42545 $as_echo_n "checking whether to support the MIME API... " >&6; }
42546 # Check whether --enable-mime was given.
42547 if test "${enable_mime+set}" = set; then :
42548 enableval=$enable_mime; case "$enableval" in
42550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42551 $as_echo "no" >&6; }
42553 $as_echo "#define CURL_DISABLE_MIME 1" >>confdefs.h
42556 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42557 $as_echo "yes" >&6; }
42561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42562 $as_echo "yes" >&6; }
42567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
42568 $as_echo_n "checking whether to support date parsing... " >&6; }
42569 # Check whether --enable-dateparse was given.
42570 if test "${enable_dateparse+set}" = set; then :
42571 enableval=$enable_dateparse; case "$enableval" in
42573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42574 $as_echo "no" >&6; }
42576 $as_echo "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
42579 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42580 $as_echo "yes" >&6; }
42584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42585 $as_echo "yes" >&6; }
42590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
42591 $as_echo_n "checking whether to support netrc parsing... " >&6; }
42592 # Check whether --enable-netrc was given.
42593 if test "${enable_netrc+set}" = set; then :
42594 enableval=$enable_netrc; case "$enableval" in
42596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42597 $as_echo "no" >&6; }
42599 $as_echo "#define CURL_DISABLE_NETRC 1" >>confdefs.h
42602 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42603 $as_echo "yes" >&6; }
42607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42608 $as_echo "yes" >&6; }
42613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
42614 $as_echo_n "checking whether to support progress-meter... " >&6; }
42615 # Check whether --enable-progress-meter was given.
42616 if test "${enable_progress_meter+set}" = set; then :
42617 enableval=$enable_progress_meter; case "$enableval" in
42619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42620 $as_echo "no" >&6; }
42622 $as_echo "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
42625 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42626 $as_echo "yes" >&6; }
42630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42631 $as_echo "yes" >&6; }
42636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
42637 $as_echo_n "checking whether to support DNS shuffling... " >&6; }
42638 # Check whether --enable-dnsshuffle was given.
42639 if test "${enable_dnsshuffle+set}" = set; then :
42640 enableval=$enable_dnsshuffle; case "$enableval" in
42642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42643 $as_echo "no" >&6; }
42645 $as_echo "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
42648 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42649 $as_echo "yes" >&6; }
42653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42654 $as_echo "yes" >&6; }
42659 curl_altsvc_msg="no (--enable-alt-svc)";
42660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
42661 $as_echo_n "checking whether to support alt-svc... " >&6; }
42662 # Check whether --enable-alt-svc was given.
42663 if test "${enable_alt_svc+set}" = set; then :
42664 enableval=$enable_alt_svc; case "$enableval" in
42666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42667 $as_echo "no" >&6; }
42669 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42670 $as_echo "yes" >&6; }
42671 curl_altsvc_msg="enabled";
42672 enable_altsvc="yes"
42676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42677 $as_echo "no" >&6; }
42682 if test "$enable_altsvc" = "yes"; then
42684 $as_echo "#define USE_ALTSVC 1" >>confdefs.h
42686 experimental="$experimental alt-svc"
42689 if test "x$want_esni" != "xno"; then
42690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ESNI support is available" >&5
42691 $as_echo_n "checking whether ESNI support is available... " >&6; }
42696 if test "x$OPENSSL_ENABLED" = "x1"; then
42697 for ac_func in SSL_get_esni_status
42699 ac_fn_c_check_func "$LINENO" "SSL_get_esni_status" "ac_cv_func_SSL_get_esni_status"
42700 if test "x$ac_cv_func_SSL_get_esni_status" = xyes; then :
42701 cat >>confdefs.h <<_ACEOF
42702 #define HAVE_SSL_GET_ESNI_STATUS 1
42704 ESNI_SUPPORT="ESNI support available (OpenSSL with SSL_get_esni_status)"
42712 if test "x$ESNI_ENABLED" = "x1"; then
42714 $as_echo "#define USE_ESNI 1" >>confdefs.h
42716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ESNI_SUPPORT" >&5
42717 $as_echo "$ESNI_SUPPORT" >&6; }
42718 experimental="$experimental ESNI"
42720 as_fn_error $? "--enable-esni ignored: No ESNI support found" "$LINENO" 5
42725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
42726 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
42727 CFLAG_CURL_SYMBOL_HIDING=""
42728 doing_symbol_hiding="no"
42729 if test x"$curl_cv_native_windows" != "xyes" &&
42730 test "$want_symbol_hiding" = "yes" &&
42731 test "$supports_symbol_hiding" = "yes"; then
42732 doing_symbol_hiding="yes"
42733 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
42735 cat >>confdefs.h <<_ACEOF
42736 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
42739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42740 $as_echo "yes" >&6; }
42742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
42743 $as_echo "no" >&6; }
42745 if test x$doing_symbol_hiding = xyes; then
42746 DOING_CURL_SYMBOL_HIDING_TRUE=
42747 DOING_CURL_SYMBOL_HIDING_FALSE='#'
42749 DOING_CURL_SYMBOL_HIDING_TRUE='#'
42750 DOING_CURL_SYMBOL_HIDING_FALSE=
42765 if test x$cross_compiling = xyes; then
42766 CROSSCOMPILING_TRUE=
42767 CROSSCOMPILING_FALSE='#'
42769 CROSSCOMPILING_TRUE='#'
42770 CROSSCOMPILING_FALSE=
42774 ENABLE_SHARED="$enable_shared"
42777 ENABLE_STATIC="$enable_static"
42782 if test "x$OPENSSL_ENABLED" = "x1"; then
42783 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
42784 elif test -n "$SSL_ENABLED"; then
42785 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
42787 if test "x$IPV6_ENABLED" = "x1"; then
42788 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
42790 if test "x$USE_UNIX_SOCKETS" = "x1"; then
42791 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
42793 if test "x$HAVE_LIBZ" = "x1"; then
42794 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
42796 if test "x$HAVE_BROTLI" = "x1"; then
42797 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
42799 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
42800 -o "x$USE_THREADS_WIN32" = "x1"; then
42801 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
42803 if test "x$IDN_ENABLED" = "x1"; then
42804 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
42806 if test "x$USE_WINDOWS_SSPI" = "x1"; then
42807 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
42810 if test "x$HAVE_GSSAPI" = "x1"; then
42811 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
42814 if test "x$curl_psl_msg" = "xenabled"; then
42815 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
42818 if test "x$enable_altsvc" = "xyes"; then
42819 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
42822 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
42823 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
42824 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
42827 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
42828 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
42829 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
42832 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
42833 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
42834 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
42835 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1"; then
42836 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
42838 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
42839 "x$NTLM_WB_ENABLED" = "x1"; then
42840 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
42845 if test "x$USE_TLS_SRP" = "x1"; then
42846 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
42849 if test "x$USE_NGHTTP2" = "x1"; then
42850 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
42853 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1"; then
42854 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
42857 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
42858 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
42861 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
42862 -o "x$NSS_ENABLED" = "x1"; then
42863 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
42866 if test "x$ESNI_ENABLED" = "x1"; then
42867 SUPPORT_FEATURES="$SUPPORT_FEATURES ESNI"
42872 if test "x$CURL_DISABLE_HTTP" != "x1"; then
42873 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
42874 if test "x$SSL_ENABLED" = "x1"; then
42875 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
42878 if test "x$CURL_DISABLE_FTP" != "x1"; then
42879 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
42880 if test "x$SSL_ENABLED" = "x1"; then
42881 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
42884 if test "x$CURL_DISABLE_FILE" != "x1"; then
42885 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
42887 if test "x$CURL_DISABLE_TELNET" != "x1"; then
42888 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
42890 if test "x$CURL_DISABLE_LDAP" != "x1"; then
42891 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
42892 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
42893 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
42894 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
42895 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
42899 if test "x$CURL_DISABLE_DICT" != "x1"; then
42900 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
42902 if test "x$CURL_DISABLE_TFTP" != "x1"; then
42903 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
42905 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
42906 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
42908 if test "x$CURL_DISABLE_POP3" != "x1"; then
42909 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
42910 if test "x$SSL_ENABLED" = "x1"; then
42911 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
42914 if test "x$CURL_DISABLE_IMAP" != "x1"; then
42915 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
42916 if test "x$SSL_ENABLED" = "x1"; then
42917 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
42920 if test "x$CURL_DISABLE_SMB" != "x1" \
42921 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
42922 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
42923 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
42924 -o "x$NSS_ENABLED" = "x1" -o "x$SECURETRANSPORT_ENABLED" = "x1" \); then
42925 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
42926 if test "x$SSL_ENABLED" = "x1"; then
42927 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
42930 if test "x$CURL_DISABLE_SMTP" != "x1"; then
42931 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
42932 if test "x$SSL_ENABLED" = "x1"; then
42933 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
42936 if test "x$USE_LIBSSH2" = "x1"; then
42937 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
42938 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
42940 if test "x$USE_LIBSSH" = "x1"; then
42941 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
42942 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
42944 if test "x$CURL_DISABLE_RTSP" != "x1"; then
42945 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
42947 if test "x$USE_LIBRTMP" = "x1"; then
42948 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
42951 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
42962 squeeze LIBCURL_LIBS
42963 squeeze CURL_NETWORK_LIBS
42964 squeeze CURL_NETWORK_AND_TIME_LIBS
42966 squeeze SUPPORT_FEATURES
42967 squeeze SUPPORT_PROTOCOLS
42972 for xc_word in $LIBS; do
42978 xc_bad_var_libs=yes
42982 if test $xc_bad_var_libs = yes; then
42983 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
42984 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
42985 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
42986 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
42990 xc_bad_var_ldflags=no
42991 for xc_word in $LDFLAGS; do
42994 xc_bad_var_ldflags=yes
42997 xc_bad_var_ldflags=yes
43000 xc_bad_var_ldflags=yes
43003 xc_bad_var_ldflags=yes
43007 if test $xc_bad_var_ldflags = yes; then
43008 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
43009 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
43010 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
43011 for xc_word in $LDFLAGS; do
43014 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
43015 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
43018 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
43019 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
43022 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
43023 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
43026 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
43027 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
43034 xc_bad_var_cppflags=no
43035 for xc_word in $CPPFLAGS; do
43038 xc_bad_var_cppflags=yes
43040 -L* | --library-path=*)
43041 xc_bad_var_cppflags=yes
43044 xc_bad_var_cppflags=yes
43048 if test $xc_bad_var_cppflags = yes; then
43049 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
43050 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
43051 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
43052 for xc_word in $CPPFLAGS; do
43055 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
43056 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
43058 -L* | --library-path=*)
43059 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
43060 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
43063 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
43064 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
43071 xc_bad_var_cflags=no
43072 for xc_word in $CFLAGS; do
43075 xc_bad_var_cflags=yes
43078 xc_bad_var_cflags=yes
43081 xc_bad_var_cflags=yes
43084 xc_bad_var_cflags=yes
43086 -L* | --library-path=*)
43087 xc_bad_var_cflags=yes
43090 xc_bad_var_cflags=yes
43094 if test $xc_bad_var_cflags = yes; then
43095 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
43096 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
43097 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
43098 for xc_word in $CFLAGS; do
43101 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
43102 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
43105 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
43106 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
43109 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
43110 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
43113 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
43114 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
43116 -L* | --library-path=*)
43117 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
43118 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
43121 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
43122 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
43128 if test $xc_bad_var_libs = yes ||
43129 test $xc_bad_var_cflags = yes ||
43130 test $xc_bad_var_ldflags = yes ||
43131 test $xc_bad_var_cppflags = yes; then
43132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
43133 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
43137 SSL_BACKENDS=${ssl_backends}
43140 if test "x$want_curldebug_assumed" = "xyes" &&
43141 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
43142 ac_configure_args="$ac_configure_args --enable-curldebug"
43145 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"
43147 cat >confcache <<\_ACEOF
43148 # This file is a shell script that caches the results of configure
43149 # tests run on this system so they can be shared between configure
43150 # scripts and configure runs, see configure's option --config-cache.
43151 # It is not useful on other systems. If it contains results you don't
43152 # want to keep, you may remove or edit it.
43154 # config.status only pays attention to the cache file if you give it
43155 # the --recheck option to rerun configure.
43157 # `ac_cv_env_foo' variables (set or unset) will be overridden when
43158 # loading this file, other *unset* `ac_cv_foo' will be assigned the
43159 # following values.
43163 # The following way of writing the cache mishandles newlines in values,
43164 # but we know of no workaround that is simple, portable, and efficient.
43165 # So, we kill variables containing newlines.
43166 # Ultrix sh set writes to stderr and can't be redirected directly,
43167 # and sets the high bit in the cache file unless we assign to the vars.
43169 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
43170 eval ac_val=\$$ac_var
43174 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
43175 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
43178 _ | IFS | as_nl) ;; #(
43179 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
43180 *) { eval $ac_var=; unset $ac_var;} ;;
43186 case $as_nl`(ac_space=' '; set) 2>&1` in #(
43187 *${as_nl}ac_space=\ *)
43188 # `set' does not quote correctly, so add quotes: double-quote
43189 # substitution turns \\\\ into \\, and sed turns \\ into \.
43192 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
43195 # `set' quotes correctly as required by POSIX, so do not add quotes.
43196 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
43205 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
43207 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
43209 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
43210 if test -w "$cache_file"; then
43211 if test "x$cache_file" != "x/dev/null"; then
43212 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
43213 $as_echo "$as_me: updating cache $cache_file" >&6;}
43214 if test ! -f "$cache_file" || test -h "$cache_file"; then
43215 cat confcache >"$cache_file"
43217 case $cache_file in #(
43219 mv -f confcache "$cache_file"$$ &&
43220 mv -f "$cache_file"$$ "$cache_file" ;; #(
43222 mv -f confcache "$cache_file" ;;
43227 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
43228 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
43233 test "x$prefix" = xNONE && prefix=$ac_default_prefix
43234 # Let make expand exec_prefix.
43235 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
43237 DEFS=-DHAVE_CONFIG_H
43242 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
43243 # 1. Remove the extension, and $U if already installed.
43244 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
43245 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
43246 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
43247 # will be set to the directory where LIBOBJS objects are built.
43248 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
43249 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
43251 LIBOBJS=$ac_libobjs
43253 LTLIBOBJS=$ac_ltlibobjs
43256 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
43257 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
43258 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
43261 $as_echo_n "checking that generated files are newer than configure... " >&6; }
43262 if test -n "$am_sleep_pid"; then
43263 # Hide warnings about reused PIDs.
43264 wait $am_sleep_pid 2>/dev/null
43266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
43267 $as_echo "done" >&6; }
43268 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
43269 as_fn_error $? "conditional \"AMDEP\" was never defined.
43270 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43272 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
43273 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
43274 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43276 if test -n "$EXEEXT"; then
43278 am__EXEEXT_FALSE='#'
43280 am__EXEEXT_TRUE='#'
43284 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
43285 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
43286 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43288 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
43289 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
43290 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43292 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
43293 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
43294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43296 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
43297 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
43298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43300 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
43301 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
43302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43304 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
43305 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
43306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43308 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
43309 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
43310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43312 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
43313 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
43314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43316 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
43317 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
43318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43320 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
43321 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
43322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43324 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
43325 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
43326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43328 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
43329 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
43330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43332 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
43333 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
43334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43336 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
43337 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
43338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43340 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
43341 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
43342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43344 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
43345 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
43346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43348 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
43349 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
43350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
43353 : "${CONFIG_STATUS=./config.status}"
43355 ac_clean_files_save=$ac_clean_files
43356 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
43357 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
43358 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
43360 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
43362 # Generated by $as_me.
43363 # Run this file to recreate the current configuration.
43364 # Compiler output produced by configure, useful for debugging
43365 # configure, is in config.log if it exists.
43368 ac_cs_recheck=false
43371 SHELL=\${CONFIG_SHELL-$SHELL}
43374 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
43375 ## -------------------- ##
43376 ## M4sh Initialization. ##
43377 ## -------------------- ##
43379 # Be more Bourne compatible
43380 DUALCASE=1; export DUALCASE # for MKS sh
43381 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
43384 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43385 # is contrary to our usage. Disable this feature.
43386 alias -g '${1+"$@"}'='"$@"'
43387 setopt NO_GLOB_SUBST
43389 case `(set -o) 2>/dev/null` in #(
43401 # Printing a long string crashes Solaris 7 /usr/bin/printf.
43402 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43403 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
43404 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43405 # Prefer a ksh shell builtin over an external printf program on Solaris,
43406 # but without wasting forks for bash or zsh.
43407 if test -z "$BASH_VERSION$ZSH_VERSION" \
43408 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
43409 as_echo='print -r --'
43410 as_echo_n='print -rn --'
43411 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
43412 as_echo='printf %s\n'
43413 as_echo_n='printf %s'
43415 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
43416 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
43417 as_echo_n='/usr/ucb/echo -n'
43419 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
43420 as_echo_n_body='eval
43424 expr "X$arg" : "X\\(.*\\)$as_nl";
43425 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
43427 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
43429 export as_echo_n_body
43430 as_echo_n='sh -c $as_echo_n_body as_echo'
43432 export as_echo_body
43433 as_echo='sh -c $as_echo_body as_echo'
43439 # We need space, tab and new line, in precisely that order. Quoting is
43440 # there to prevent editors from complaining about space-tab.
43441 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
43442 # splitting by setting IFS to empty value.)
43445 # Find who we are. Look in the path if we contain no directory separator.
43448 *[\\/]* ) as_myself=$0 ;;
43449 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43450 for as_dir in $PATH
43453 test -z "$as_dir" && as_dir=.
43454 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
43460 # We did not find ourselves, most probably we were run as `sh COMMAND'
43461 # in which case we are not to be found in the path.
43462 if test "x$as_myself" = x; then
43465 if test ! -f "$as_myself"; then
43466 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
43470 # Unset variables that we do not need and which cause bugs (e.g. in
43471 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
43472 # suppresses any "Segmentation fault" message there. '((' could
43473 # trigger a bug in pdksh 5.2.14.
43474 for as_var in BASH_ENV ENV MAIL MAILPATH
43475 do eval test x\${$as_var+set} = xset \
43476 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
43489 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43492 # as_fn_error STATUS ERROR [LINENO LOG_FD]
43493 # ----------------------------------------
43494 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
43495 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
43496 # script with STATUS, using 1 if that was 0.
43499 as_status=$1; test $as_status -eq 0 && as_status=1
43501 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
43502 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
43504 $as_echo "$as_me: error: $2" >&2
43505 as_fn_exit $as_status
43509 # as_fn_set_status STATUS
43510 # -----------------------
43511 # Set $? to STATUS, without forking.
43512 as_fn_set_status ()
43515 } # as_fn_set_status
43517 # as_fn_exit STATUS
43518 # -----------------
43519 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
43523 as_fn_set_status $1
43529 # Portably unset VAR.
43532 { eval $1=; unset $1;}
43534 as_unset=as_fn_unset
43535 # as_fn_append VAR VALUE
43536 # ----------------------
43537 # Append the text in VALUE to the end of the definition contained in VAR. Take
43538 # advantage of any shell optimizations that allow amortized linear growth over
43539 # repeated appends, instead of the typical quadratic growth present in naive
43541 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
43542 eval 'as_fn_append ()
43553 # as_fn_arith ARG...
43554 # ------------------
43555 # Perform arithmetic evaluation on the ARGs, and store the result in the
43556 # global $as_val. Take advantage of shells that can avoid forks. The arguments
43557 # must be portable across $(()) and expr.
43558 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
43559 eval 'as_fn_arith ()
43566 as_val=`expr "$@" || test $? -eq 1`
43571 if expr a : '\(a\)' >/dev/null 2>&1 &&
43572 test "X`expr 00001 : '.*\(...\)'`" = X001; then
43578 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
43579 as_basename=basename
43584 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
43590 as_me=`$as_basename -- "$0" ||
43591 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
43592 X"$0" : 'X\(//\)$' \| \
43593 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
43595 sed '/^.*\/\([^/][^/]*\)\/*$/{
43609 # Avoid depending upon Character Ranges.
43610 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
43611 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
43612 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
43613 as_cr_digits='0123456789'
43614 as_cr_alnum=$as_cr_Letters$as_cr_digits
43616 ECHO_C= ECHO_N= ECHO_T=
43617 case `echo -n x` in #(((((
43619 case `echo 'xy\c'` in
43620 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
43622 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
43629 rm -f conf$$ conf$$.exe conf$$.file
43630 if test -d conf$$.dir; then
43631 rm -f conf$$.dir/conf$$.file
43634 mkdir conf$$.dir 2>/dev/null
43636 if (echo >conf$$.file) 2>/dev/null; then
43637 if ln -s conf$$.file conf$$ 2>/dev/null; then
43639 # ... but there are two gotchas:
43640 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
43641 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
43642 # In both cases, we have to default to `cp -pR'.
43643 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
43645 elif ln conf$$.file conf$$ 2>/dev/null; then
43653 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
43654 rmdir conf$$.dir 2>/dev/null
43659 # Create "$as_dir" as a directory, including parents if necessary.
43664 -*) as_dir=./$as_dir;;
43666 test -d "$as_dir" || eval $as_mkdir_p || {
43670 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
43671 *) as_qdir=$as_dir;;
43673 as_dirs="'$as_qdir' $as_dirs"
43674 as_dir=`$as_dirname -- "$as_dir" ||
43675 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43676 X"$as_dir" : 'X\(//\)[^/]' \| \
43677 X"$as_dir" : 'X\(//\)$' \| \
43678 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
43679 $as_echo X"$as_dir" |
43680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43684 /^X\(\/\/\)[^/].*/{
43697 test -d "$as_dir" && break
43699 test -z "$as_dirs" || eval "mkdir $as_dirs"
43700 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
43704 if mkdir -p . 2>/dev/null; then
43705 as_mkdir_p='mkdir -p "$as_dir"'
43707 test -d ./-p && rmdir ./-p
43712 # as_fn_executable_p FILE
43713 # -----------------------
43714 # Test if FILE is an executable regular file.
43715 as_fn_executable_p ()
43717 test -f "$1" && test -x "$1"
43718 } # as_fn_executable_p
43719 as_test_x='test -x'
43720 as_executable_p=as_fn_executable_p
43722 # Sed expression to map a string onto a valid CPP name.
43723 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
43725 # Sed expression to map a string onto a valid variable name.
43726 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
43730 ## ----------------------------------- ##
43731 ## Main body of $CONFIG_STATUS script. ##
43732 ## ----------------------------------- ##
43734 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
43736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43737 # Save the log message, to keep $0 and so on meaningful, and to
43738 # report actual input values of CONFIG_FILES etc. instead of their
43739 # values after options handling.
43741 This file was extended by curl $as_me -, which was
43742 generated by GNU Autoconf 2.69. Invocation command line was
43744 CONFIG_FILES = $CONFIG_FILES
43745 CONFIG_HEADERS = $CONFIG_HEADERS
43746 CONFIG_LINKS = $CONFIG_LINKS
43747 CONFIG_COMMANDS = $CONFIG_COMMANDS
43750 on `(hostname || uname -n) 2>/dev/null | sed 1q`
43755 case $ac_config_files in *"
43756 "*) set x $ac_config_files; shift; ac_config_files=$*;;
43759 case $ac_config_headers in *"
43760 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
43764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43765 # Files that config.status was made for.
43766 config_files="$ac_config_files"
43767 config_headers="$ac_config_headers"
43768 config_commands="$ac_config_commands"
43772 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43774 \`$as_me' instantiates files and other configuration actions
43775 from templates according to the current configuration. Unless the files
43776 and actions are specified as TAGs, all are instantiated by default.
43778 Usage: $0 [OPTION]... [TAG]...
43780 -h, --help print this help, then exit
43781 -V, --version print version number and configuration settings, then exit
43782 --config print configuration, then exit
43783 -q, --quiet, --silent
43784 do not print progress messages
43785 -d, --debug don't remove temporary files
43786 --recheck update $as_me by reconfiguring in the same conditions
43787 --file=FILE[:TEMPLATE]
43788 instantiate the configuration file FILE
43789 --header=FILE[:TEMPLATE]
43790 instantiate the configuration header FILE
43792 Configuration files:
43795 Configuration headers:
43798 Configuration commands:
43801 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
43804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43805 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
43807 curl config.status -
43808 configured by $0, generated by GNU Autoconf 2.69,
43809 with options \\"\$ac_cs_config\\"
43811 Copyright (C) 2012 Free Software Foundation, Inc.
43812 This config.status script is free software; the Free Software Foundation
43813 gives unlimited permission to copy, distribute and modify it."
43820 test -n "\$AWK" || AWK=awk
43823 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43824 # The default lists apply if the user does not specify any file.
43830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
43835 ac_option=`expr "X$1" : 'X\([^=]*\)='`
43847 # Handling of the options.
43848 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
43850 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
43851 $as_echo "$ac_cs_version"; exit ;;
43852 --config | --confi | --conf | --con | --co | --c )
43853 $as_echo "$ac_cs_config"; exit ;;
43854 --debug | --debu | --deb | --de | --d | -d )
43856 --file | --fil | --fi | --f )
43859 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
43860 '') as_fn_error $? "missing file argument" ;;
43862 as_fn_append CONFIG_FILES " '$ac_optarg'"
43863 ac_need_defaults=false;;
43864 --header | --heade | --head | --hea )
43867 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
43869 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
43870 ac_need_defaults=false;;
43872 # Conflict between --help and --header
43873 as_fn_error $? "ambiguous option: \`$1'
43874 Try \`$0 --help' for more information.";;
43875 --help | --hel | -h )
43876 $as_echo "$ac_cs_usage"; exit ;;
43877 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
43878 | -silent | --silent | --silen | --sile | --sil | --si | --s)
43881 # This is an error.
43882 -*) as_fn_error $? "unrecognized option: \`$1'
43883 Try \`$0 --help' for more information." ;;
43885 *) as_fn_append ac_config_targets " $1"
43886 ac_need_defaults=false ;;
43892 ac_configure_extra_args=
43894 if $ac_cs_silent; then
43896 ac_configure_extra_args="$ac_configure_extra_args --silent"
43900 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43901 if \$ac_cs_recheck; then
43902 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
43904 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
43905 CONFIG_SHELL='$SHELL'
43906 export CONFIG_SHELL
43911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43915 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
43916 ## Running $as_me. ##
43922 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43926 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
43929 # The HP-UX ksh and POSIX shell print the target directory to stdout
43930 # if CDPATH is set.
43931 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
43933 sed_quote_subst='$sed_quote_subst'
43934 double_quote_subst='$double_quote_subst'
43935 delay_variable_subst='$delay_variable_subst'
43936 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
43937 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
43938 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
43939 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
43940 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
43941 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
43942 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
43943 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
43944 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
43945 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
43946 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
43947 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
43948 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
43949 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
43950 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
43951 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
43952 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
43953 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
43954 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
43955 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
43956 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
43957 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
43958 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
43959 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
43960 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
43961 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
43962 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
43963 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
43964 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
43965 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
43966 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
43967 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
43968 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
43969 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
43970 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
43971 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
43972 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
43973 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
43974 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
43975 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
43976 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
43977 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
43978 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
43979 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
43980 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
43981 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
43982 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
43983 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
43984 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
43985 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
43986 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
43987 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
43988 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
43989 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
43990 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
43991 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
43992 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
43993 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
43994 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
43995 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"`'
43996 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
43997 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
43998 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
43999 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
44000 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
44001 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
44002 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
44003 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
44004 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
44005 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
44006 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
44007 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
44008 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
44009 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
44010 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
44011 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
44012 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
44013 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
44014 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
44015 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
44016 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
44017 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
44018 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
44019 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
44020 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
44021 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
44022 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
44023 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
44024 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
44025 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
44026 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
44027 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
44028 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
44029 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
44030 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
44031 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
44032 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
44033 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
44034 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
44035 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
44036 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
44037 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
44038 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
44039 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
44040 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
44041 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
44042 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
44043 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
44044 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
44045 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
44046 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
44047 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
44048 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
44049 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
44050 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
44051 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
44052 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
44053 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
44054 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
44055 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
44056 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
44057 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
44058 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
44059 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
44060 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
44061 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
44062 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
44063 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
44064 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
44065 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
44066 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
44067 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
44068 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
44069 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
44070 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
44071 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
44074 LTCFLAGS='$LTCFLAGS'
44075 compiler='$compiler_DEFAULT'
44077 # A function that is used when there is no print builtin or printf.
44078 func_fallback_echo ()
44080 eval 'cat <<_LTECHO_EOF
44085 # Quote evaled strings.
44102 deplibs_check_method \
44106 sharedlib_from_linklib_cmd \
44109 archiver_list_spec \
44115 lt_cv_sys_global_symbol_pipe \
44116 lt_cv_sys_global_symbol_to_cdecl \
44117 lt_cv_sys_global_symbol_to_import \
44118 lt_cv_sys_global_symbol_to_c_name_address \
44119 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
44120 lt_cv_nm_interface \
44121 nm_file_list_spec \
44122 lt_cv_truncate_bin \
44123 lt_prog_compiler_no_builtin_flag \
44124 lt_prog_compiler_pic \
44125 lt_prog_compiler_wl \
44126 lt_prog_compiler_static \
44127 lt_cv_prog_compiler_c_o \
44136 export_dynamic_flag_spec \
44137 whole_archive_flag_spec \
44138 compiler_needs_object \
44140 allow_undefined_flag \
44141 no_undefined_flag \
44142 hardcode_libdir_flag_spec \
44143 hardcode_libdir_separator \
44147 variables_saved_for_relink \
44149 library_names_spec \
44151 install_override_mode \
44155 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
44156 *[\\\\\\\`\\"\\\$]*)
44157 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
44160 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44165 # Double-quote double-evaled strings.
44166 for var in reload_cmds \
44167 old_postinstall_cmds \
44168 old_postuninstall_cmds \
44170 extract_expsyms_cmds \
44171 old_archive_from_new_cmds \
44172 old_archive_from_expsyms_cmds \
44174 archive_expsym_cmds \
44176 module_expsym_cmds \
44177 export_symbols_cmds \
44181 postuninstall_cmds \
44183 sys_lib_search_path_spec \
44184 configure_time_dlsearch_path \
44185 configure_time_lt_sys_library_path; do
44186 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
44187 *[\\\\\\\`\\"\\\$]*)
44188 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
44191 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
44196 ac_aux_dir='$ac_aux_dir'
44198 # See if we are running on zsh, and set the options that allow our
44199 # commands through without removal of \ escapes INIT.
44200 if test -n "\${ZSH_VERSION+set}"; then
44201 setopt NO_GLOB_SUBST
44215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44217 # Handling of arguments.
44218 for ac_config_target in $ac_config_targets
44220 case $ac_config_target in
44221 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
44222 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
44223 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
44224 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
44225 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
44226 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
44227 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
44228 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
44229 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
44230 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
44231 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
44232 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
44233 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
44234 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
44235 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
44236 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
44237 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
44238 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
44239 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
44240 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
44241 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
44242 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
44243 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
44244 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
44245 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
44246 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
44248 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
44253 # If the user did not use the arguments to specify the items to instantiate,
44254 # then the envvar interface is used. Set only those that are not.
44255 # We use the long form for the default assignment because of an extremely
44256 # bizarre bug on SunOS 4.1.3.
44257 if $ac_need_defaults; then
44258 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
44259 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
44260 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
44263 # Have a temporary directory for convenience. Make it in the build tree
44264 # simply because there is no reason against having it here, and in addition,
44265 # creating and moving files from /tmp can sometimes cause problems.
44266 # Hook for its removal unless debugging.
44267 # Note that there is a small window in which the directory will not be cleaned:
44268 # after its creation but before its name has been assigned to `$tmp'.
44272 trap 'exit_status=$?
44273 : "${ac_tmp:=$tmp}"
44274 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
44276 trap 'as_fn_exit 1' 1 2 13 15
44278 # Create a (secure) tmp directory for tmp files.
44281 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
44285 tmp=./conf$$-$RANDOM
44286 (umask 077 && mkdir "$tmp")
44287 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
44290 # Set up the scripts for CONFIG_FILES section.
44291 # No need to generate them if there are no CONFIG_FILES.
44292 # This happens for instance with `./config.status config.h'.
44293 if test -n "$CONFIG_FILES"; then
44296 ac_cr=`echo X | tr X '\015'`
44297 # On cygwin, bash can eat \r inside `` if the user requested igncr.
44298 # But we know of no other shell where ac_cr would be empty at this
44299 # point, so we can use a bashism as a fallback.
44300 if test "x$ac_cr" = x; then
44301 eval ac_cr=\$\'\\r\'
44303 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
44304 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
44307 ac_cs_awk_cr=$ac_cr
44310 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
44315 echo "cat >conf$$subs.awk <<_ACEOF" &&
44316 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
44318 } >conf$$subs.sh ||
44319 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
44320 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
44322 for ac_last_try in false false false false false :; do
44323 . ./conf$$subs.sh ||
44324 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
44326 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
44327 if test $ac_delim_n = $ac_delim_num; then
44329 elif $ac_last_try; then
44330 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
44332 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44335 rm -f conf$$subs.sh
44337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44338 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
44342 s/^/S["/; s/!.*/"]=/
44352 s/\(.\{148\}\)..*/\1/
44354 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
44359 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
44366 s/\(.\{148\}\)..*/\1/
44368 s/["\\]/\\&/g; s/^/"/; s/$/"/
44372 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
44377 ' <conf$$subs.awk | sed '
44382 ' >>$CONFIG_STATUS || ac_write_fail=1
44383 rm -f conf$$subs.awk
44384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44386 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
44387 for (key in S) S_is_set[key] = 1
44393 nfields = split(line, field, "@")
44395 len = length(field[1])
44396 for (i = 2; i < nfields; i++) {
44398 keylen = length(key)
44399 if (S_is_set[key]) {
44401 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
44402 len += length(value) + length(field[++i])
44413 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44414 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
44415 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
44418 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
44419 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
44422 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
44423 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
44424 # trailing colons and then remove the whole line if VPATH becomes empty
44425 # (actually we leave an empty line to preserve line numbers).
44426 if test "x$srcdir" = x.; then
44427 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
44445 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44446 fi # test -n "$CONFIG_FILES"
44448 # Set up the scripts for CONFIG_HEADERS section.
44449 # No need to generate them if there are no CONFIG_HEADERS.
44450 # This happens for instance with `./config.status Makefile'.
44451 if test -n "$CONFIG_HEADERS"; then
44452 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
44456 # Transform confdefs.h into an awk script `defines.awk', embedded as
44457 # here-document in config.status, that substitutes the proper values into
44458 # config.h.in to produce config.h.
44460 # Create a delimiter string that does not exist in confdefs.h, to ease
44461 # handling of long lines.
44463 for ac_last_try in false false :; do
44464 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
44465 if test -z "$ac_tt"; then
44467 elif $ac_last_try; then
44468 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
44470 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
44474 # For the awk script, D is an array of macro values keyed by name,
44475 # likewise P contains macro parameters if any. Preserve backslash
44476 # newline sequences.
44478 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
44480 s/.\{148\}/&'"$ac_delim"'/g
44483 s/^[ ]*#[ ]*define[ ][ ]*/ /
44490 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
44492 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
44496 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
44497 D["\1"]=" \3\\\\\\n"\\/p
44499 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
44504 s/.\{148\}/&'"$ac_delim"'/g
44509 s/["\\]/\\&/g; s/^/"/; s/$/"/p
44512 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
44514 ' <confdefs.h | sed '
44515 s/'"$ac_delim"'/"\\\
44516 "/g' >>$CONFIG_STATUS || ac_write_fail=1
44518 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44519 for (key in D) D_is_set[key] = 1
44522 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
44524 split(line, arg, " ")
44525 if (arg[1] == "#") {
44529 defundef = substr(arg[1], 2)
44532 split(mac1, mac2, "(") #)
44534 prefix = substr(line, 1, index(line, defundef) - 1)
44535 if (D_is_set[macro]) {
44536 # Preserve the white space surrounding the "#".
44537 print prefix "define", macro P[macro] D[macro]
44540 # Replace #undef with comments. This is necessary, for example,
44541 # in the case of _POSIX_SOURCE, which is predefined and required
44542 # on some systems where configure will not decide to define it.
44543 if (defundef == "undef") {
44544 print "/*", prefix defundef, macro, "*/"
44552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44553 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
44554 fi # test -n "$CONFIG_HEADERS"
44557 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
44562 :[FHLC]) ac_mode=$ac_tag; continue;;
44564 case $ac_mode$ac_tag in
44566 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
44567 :[FH]-) ac_tag=-:-;;
44568 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
44585 -) ac_f="$ac_tmp/stdin";;
44586 *) # Look for the file first in the build tree, then in the source tree
44587 # (if the path is not absolute). The absolute path cannot be DOS-style,
44588 # because $ac_f cannot contain `:'.
44592 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
44594 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
44596 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
44597 as_fn_append ac_file_inputs " '$ac_f'"
44600 # Let's still pretend it is `configure' which instantiates (i.e., don't
44601 # use $as_me), people would be surprised to read:
44602 # /* config.h. Generated by config.status. */
44603 configure_input='Generated from '`
44604 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
44606 if test x"$ac_file" != x-; then
44607 configure_input="$ac_file. $configure_input"
44608 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
44609 $as_echo "$as_me: creating $ac_file" >&6;}
44611 # Neutralize special characters interpreted by sed in replacement strings.
44612 case $configure_input in #(
44613 *\&* | *\|* | *\\* )
44614 ac_sed_conf_input=`$as_echo "$configure_input" |
44615 sed 's/[\\\\&|]/\\\\&/g'`;; #(
44616 *) ac_sed_conf_input=$configure_input;;
44620 *:-:* | *:-) cat >"$ac_tmp/stdin" \
44621 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
44626 ac_dir=`$as_dirname -- "$ac_file" ||
44627 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44628 X"$ac_file" : 'X\(//\)[^/]' \| \
44629 X"$ac_file" : 'X\(//\)$' \| \
44630 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
44631 $as_echo X"$ac_file" |
44632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44636 /^X\(\/\/\)[^/].*/{
44649 as_dir="$ac_dir"; as_fn_mkdir_p
44653 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44655 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44656 # A ".." for each directory in $ac_dir_suffix.
44657 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44658 case $ac_top_builddir_sub in
44659 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44660 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44663 ac_abs_top_builddir=$ac_pwd
44664 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44665 # for backward compatibility:
44666 ac_top_builddir=$ac_top_build_prefix
44669 .) # We are building in place.
44671 ac_top_srcdir=$ac_top_builddir_sub
44672 ac_abs_top_srcdir=$ac_pwd ;;
44673 [\\/]* | ?:[\\/]* ) # Absolute name.
44674 ac_srcdir=$srcdir$ac_dir_suffix;
44675 ac_top_srcdir=$srcdir
44676 ac_abs_top_srcdir=$srcdir ;;
44677 *) # Relative name.
44678 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44679 ac_top_srcdir=$ac_top_build_prefix$srcdir
44680 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44682 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44692 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
44693 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
44695 ac_MKDIR_P=$MKDIR_P
44697 [\\/$]* | ?:[\\/]* ) ;;
44698 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
44702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44703 # If the template does not know about datarootdir, expand it.
44704 # FIXME: This hack should be removed a few years after 2.60.
44705 ac_datarootdir_hack=; ac_datarootdir_seen=
44716 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
44717 *datarootdir*) ac_datarootdir_seen=yes;;
44718 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
44719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
44720 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
44722 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44723 ac_datarootdir_hack='
44724 s&@datadir@&$datadir&g
44725 s&@docdir@&$docdir&g
44726 s&@infodir@&$infodir&g
44727 s&@localedir@&$localedir&g
44728 s&@mandir@&$mandir&g
44729 s&\\\${datarootdir}&$datarootdir&g' ;;
44733 # Neutralize VPATH when `$srcdir' = `.'.
44734 # Shell code in configure.ac might set extrasub.
44735 # FIXME: do we really want to maintain this feature?
44736 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
44737 ac_sed_extra="$ac_vpsub
44740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
44742 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
44743 s|@configure_input@|$ac_sed_conf_input|;t t
44744 s&@top_builddir@&$ac_top_builddir_sub&;t t
44745 s&@top_build_prefix@&$ac_top_build_prefix&;t t
44746 s&@srcdir@&$ac_srcdir&;t t
44747 s&@abs_srcdir@&$ac_abs_srcdir&;t t
44748 s&@top_srcdir@&$ac_top_srcdir&;t t
44749 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
44750 s&@builddir@&$ac_builddir&;t t
44751 s&@abs_builddir@&$ac_abs_builddir&;t t
44752 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
44753 s&@INSTALL@&$ac_INSTALL&;t t
44754 s&@MKDIR_P@&$ac_MKDIR_P&;t t
44755 $ac_datarootdir_hack
44757 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
44758 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44760 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
44761 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
44762 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
44763 "$ac_tmp/out"`; test -z "$ac_out"; } &&
44764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44765 which seems to be undefined. Please make sure it is defined" >&5
44766 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
44767 which seems to be undefined. Please make sure it is defined" >&2;}
44769 rm -f "$ac_tmp/stdin"
44771 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
44772 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
44774 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44780 if test x"$ac_file" != x-; then
44782 $as_echo "/* $configure_input */" \
44783 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
44784 } >"$ac_tmp/config.h" \
44785 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44786 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
44787 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
44788 $as_echo "$as_me: $ac_file is unchanged" >&6;}
44791 mv "$ac_tmp/config.h" "$ac_file" \
44792 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
44795 $as_echo "/* $configure_input */" \
44796 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
44797 || as_fn_error $? "could not create -" "$LINENO" 5
44799 # Compute "$ac_file"'s index in $config_headers.
44802 for _am_header in $config_headers :; do
44803 case $_am_header in
44804 $_am_arg | $_am_arg:* )
44807 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
44810 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
44811 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44812 X"$_am_arg" : 'X\(//\)[^/]' \| \
44813 X"$_am_arg" : 'X\(//\)$' \| \
44814 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
44815 $as_echo X"$_am_arg" |
44816 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44820 /^X\(\/\/\)[^/].*/{
44832 s/.*/./; q'`/stamp-h$_am_stamp_count
44835 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
44836 $as_echo "$as_me: executing $ac_file commands" >&6;}
44841 case $ac_file$ac_mode in
44842 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
44843 # Older Autoconf quotes --file arguments for eval, but not when files
44844 # are listed without --file. Let's play safe and only enable the eval
44845 # if we detect the quoting.
44846 # TODO: see whether this extra hack can be removed once we start
44847 # requiring Autoconf 2.70 or later.
44848 case $CONFIG_FILES in #(
44850 eval set x "$CONFIG_FILES" ;; #(
44852 set x $CONFIG_FILES ;; #(
44857 # Used to flag and report bootstrapping failures.
44861 # Strip MF so we end up with the name of the file.
44862 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
44863 # Check whether this is an Automake generated Makefile which includes
44864 # dependency-tracking related rules and includes.
44865 # Grep'ing the whole file directly is not great: AIX grep has a line
44866 # limit of 2048, but all sed's we know have understand at least 4000.
44867 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
44869 am_dirpart=`$as_dirname -- "$am_mf" ||
44870 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
44871 X"$am_mf" : 'X\(//\)[^/]' \| \
44872 X"$am_mf" : 'X\(//\)$' \| \
44873 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
44874 $as_echo X"$am_mf" |
44875 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
44879 /^X\(\/\/\)[^/].*/{
44892 am_filepart=`$as_basename -- "$am_mf" ||
44893 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
44894 X"$am_mf" : 'X\(//\)$' \| \
44895 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
44896 $as_echo X/"$am_mf" |
44897 sed '/^.*\/\([^/][^/]*\)\/*$/{
44910 { echo "$as_me:$LINENO: cd "$am_dirpart" \
44911 && sed -e '/# am--include-marker/d' "$am_filepart" \
44912 | $MAKE -f - am--depfiles" >&5
44913 (cd "$am_dirpart" \
44914 && sed -e '/# am--include-marker/d' "$am_filepart" \
44915 | $MAKE -f - am--depfiles) >&5 2>&5
44917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
44918 (exit $ac_status); } || am_rc=$?
44920 if test $am_rc -ne 0; then
44921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
44922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
44923 as_fn_error $? "Something went wrong bootstrapping makefile fragments
44924 for automatic dependency tracking. Try re-running configure with the
44925 '--disable-dependency-tracking' option to at least be able to build
44926 the package (albeit without support for automatic dependency tracking).
44927 See \`config.log' for more details" "$LINENO" 5; }
44929 { am_dirpart=; unset am_dirpart;}
44930 { am_filepart=; unset am_filepart;}
44931 { am_mf=; unset am_mf;}
44932 { am_rc=; unset am_rc;}
44933 rm -f conftest-deps.mk
44938 # See if we are running on zsh, and set the options that allow our
44939 # commands through without removal of \ escapes.
44940 if test -n "${ZSH_VERSION+set}"; then
44941 setopt NO_GLOB_SUBST
44945 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
44948 cat <<_LT_EOF >> "$cfgfile"
44950 # Generated automatically by $as_me ($PACKAGE) $VERSION
44951 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
44953 # Provide generalized library-building support services.
44954 # Written by Gordon Matzigkeit, 1996
44956 # Copyright (C) 2014 Free Software Foundation, Inc.
44957 # This is free software; see the source for copying conditions. There is NO
44958 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
44960 # GNU Libtool is free software; you can redistribute it and/or modify
44961 # it under the terms of the GNU General Public License as published by
44962 # the Free Software Foundation; either version 2 of of the License, or
44963 # (at your option) any later version.
44965 # As a special exception to the GNU General Public License, if you
44966 # distribute this file as part of a program or library that is built
44967 # using GNU Libtool, you may include this file under the same
44968 # distribution terms that you use for the rest of that program.
44970 # GNU Libtool is distributed in the hope that it will be useful, but
44971 # WITHOUT ANY WARRANTY; without even the implied warranty of
44972 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
44973 # GNU General Public License for more details.
44975 # You should have received a copy of the GNU General Public License
44976 # along with this program. If not, see <http://www.gnu.org/licenses/>.
44979 # The names of the tagged configurations supported by this script.
44982 # Configured defaults for sys_lib_dlsearch_path munging.
44983 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
44985 # ### BEGIN LIBTOOL CONFIG
44987 # Which release of libtool.m4 was used?
44988 macro_version=$macro_version
44989 macro_revision=$macro_revision
44991 # Assembler program.
44994 # DLL creation program.
44995 DLLTOOL=$lt_DLLTOOL
44997 # Object dumper program.
44998 OBJDUMP=$lt_OBJDUMP
45000 # Whether or not to build shared libraries.
45001 build_libtool_libs=$enable_shared
45003 # Whether or not to build static libraries.
45004 build_old_libs=$enable_static
45006 # What type of objects to build.
45009 # Whether or not to optimize for fast installation.
45010 fast_install=$enable_fast_install
45012 # Shared archive member basename,for filename based shared library versioning on AIX.
45013 shared_archive_member_spec=$shared_archive_member_spec
45015 # Shell to use when invoking shell scripts.
45018 # An echo program that protects backslashes.
45021 # The PATH separator for the build system.
45022 PATH_SEPARATOR=$lt_PATH_SEPARATOR
45025 host_alias=$host_alias
45029 # The build system.
45030 build_alias=$build_alias
45034 # A sed program that does not truncate output.
45037 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
45038 Xsed="\$SED -e 1s/^X//"
45040 # A grep program that handles long lines.
45046 # A literal string matcher.
45049 # A BSD- or MS-compatible name lister.
45052 # Whether we need soft or hard links.
45055 # What is the maximum length of a command?
45056 max_cmd_len=$max_cmd_len
45058 # Object file suffix (normally "o").
45061 # Executable file suffix (normally "").
45064 # whether the shell understands "unset".
45067 # turn spaces into newlines.
45070 # turn newlines into spaces.
45073 # convert \$build file names to \$host format.
45074 to_host_file_cmd=$lt_cv_to_host_file_cmd
45076 # convert \$build files to toolchain format.
45077 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
45079 # Method to check whether dependent libraries are shared objects.
45080 deplibs_check_method=$lt_deplibs_check_method
45082 # Command to use when deplibs_check_method = "file_magic".
45083 file_magic_cmd=$lt_file_magic_cmd
45085 # How to find potential files when deplibs_check_method = "file_magic".
45086 file_magic_glob=$lt_file_magic_glob
45088 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
45089 want_nocaseglob=$lt_want_nocaseglob
45091 # Command to associate shared and link libraries.
45092 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
45097 # Flags to create an archive.
45098 AR_FLAGS=$lt_AR_FLAGS
45100 # How to feed a file listing to the archiver.
45101 archiver_list_spec=$lt_archiver_list_spec
45103 # A symbol stripping program.
45106 # Commands used to install an old-style archive.
45108 old_postinstall_cmds=$lt_old_postinstall_cmds
45109 old_postuninstall_cmds=$lt_old_postuninstall_cmds
45111 # Whether to use a lock for old archive extraction.
45112 lock_old_archive_extraction=$lock_old_archive_extraction
45117 # LTCC compiler flags.
45118 LTCFLAGS=$lt_CFLAGS
45120 # Take the output of nm and produce a listing of raw symbols and C names.
45121 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
45123 # Transform the output of nm in a proper C declaration.
45124 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
45126 # Transform the output of nm into a list of symbols to manually relocate.
45127 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
45129 # Transform the output of nm in a C name address pair.
45130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
45132 # Transform the output of nm in a C name address pair when lib prefix is needed.
45133 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
45135 # The name lister interface.
45136 nm_interface=$lt_lt_cv_nm_interface
45138 # Specify filename containing input files for \$NM.
45139 nm_file_list_spec=$lt_nm_file_list_spec
45141 # The root where to search for dependent libraries,and where our libraries should be installed.
45142 lt_sysroot=$lt_sysroot
45144 # Command to truncate a binary pipe.
45145 lt_truncate_bin=$lt_lt_cv_truncate_bin
45147 # The name of the directory that contains temporary libtool files.
45150 # Used to examine libraries when file_magic_cmd begins with "file".
45151 MAGIC_CMD=$MAGIC_CMD
45153 # Must we lock files when doing compilation?
45154 need_locks=$lt_need_locks
45157 MANIFEST_TOOL=$lt_MANIFEST_TOOL
45159 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
45160 DSYMUTIL=$lt_DSYMUTIL
45162 # Tool to change global to local symbols on Mac OS X.
45165 # Tool to manipulate fat objects and archives on Mac OS X.
45168 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
45171 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
45172 OTOOL64=$lt_OTOOL64
45174 # Old archive suffix (normally "a").
45177 # Shared library suffix (normally ".so").
45178 shrext_cmds=$lt_shrext_cmds
45180 # The commands to extract the exported symbol list from a shared archive.
45181 extract_expsyms_cmds=$lt_extract_expsyms_cmds
45183 # Variables whose values should be saved in libtool wrapper scripts and
45184 # restored at link time.
45185 variables_saved_for_relink=$lt_variables_saved_for_relink
45187 # Do we need the "lib" prefix for modules?
45188 need_lib_prefix=$need_lib_prefix
45190 # Do we need a version for libraries?
45191 need_version=$need_version
45193 # Library versioning type.
45194 version_type=$version_type
45196 # Shared library runtime path variable.
45197 runpath_var=$runpath_var
45199 # Shared library path variable.
45200 shlibpath_var=$shlibpath_var
45202 # Is shlibpath searched before the hard-coded library search path?
45203 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
45205 # Format of library name prefix.
45206 libname_spec=$lt_libname_spec
45208 # List of archive names. First name is the real one, the rest are links.
45209 # The last name is the one that the linker finds with -lNAME
45210 library_names_spec=$lt_library_names_spec
45212 # The coded name of the library, if different from the real name.
45213 soname_spec=$lt_soname_spec
45215 # Permission mode override for installation of shared libraries.
45216 install_override_mode=$lt_install_override_mode
45218 # Command to use after installation of a shared archive.
45219 postinstall_cmds=$lt_postinstall_cmds
45221 # Command to use after uninstallation of a shared archive.
45222 postuninstall_cmds=$lt_postuninstall_cmds
45224 # Commands used to finish a libtool library installation in a directory.
45225 finish_cmds=$lt_finish_cmds
45227 # As "finish_cmds", except a single script fragment to be evaled but
45229 finish_eval=$lt_finish_eval
45231 # Whether we should hardcode library paths into libraries.
45232 hardcode_into_libs=$hardcode_into_libs
45234 # Compile-time system search path for libraries.
45235 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
45237 # Detected run-time system search path for libraries.
45238 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
45240 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
45241 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
45243 # Whether dlopen is supported.
45244 dlopen_support=$enable_dlopen
45246 # Whether dlopen of programs is supported.
45247 dlopen_self=$enable_dlopen_self
45249 # Whether dlopen of statically linked programs is supported.
45250 dlopen_self_static=$enable_dlopen_self_static
45252 # Commands to strip libraries.
45253 old_striplib=$lt_old_striplib
45254 striplib=$lt_striplib
45257 # The linker used to build libraries.
45260 # How to create reloadable object files.
45261 reload_flag=$lt_reload_flag
45262 reload_cmds=$lt_reload_cmds
45264 # Commands used to build an old-style archive.
45265 old_archive_cmds=$lt_old_archive_cmds
45267 # A language specific compiler.
45270 # Is the compiler the GNU compiler?
45273 # Compiler flag to turn off builtin functions.
45274 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
45276 # Additional compiler flags for building library objects.
45277 pic_flag=$lt_lt_prog_compiler_pic
45279 # How to pass a linker flag through the compiler.
45280 wl=$lt_lt_prog_compiler_wl
45282 # Compiler flag to prevent dynamic linking.
45283 link_static_flag=$lt_lt_prog_compiler_static
45285 # Does compiler simultaneously support -c and -o options?
45286 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
45288 # Whether or not to add -lc for building shared libraries.
45289 build_libtool_need_lc=$archive_cmds_need_lc
45291 # Whether or not to disallow shared libs when runtime libs are static.
45292 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
45294 # Compiler flag to allow reflexive dlopens.
45295 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
45297 # Compiler flag to generate shared objects directly from archives.
45298 whole_archive_flag_spec=$lt_whole_archive_flag_spec
45300 # Whether the compiler copes with passing no objects directly.
45301 compiler_needs_object=$lt_compiler_needs_object
45303 # Create an old-style archive from a shared archive.
45304 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
45306 # Create a temporary old-style archive to link instead of a shared archive.
45307 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
45309 # Commands used to build a shared archive.
45310 archive_cmds=$lt_archive_cmds
45311 archive_expsym_cmds=$lt_archive_expsym_cmds
45313 # Commands used to build a loadable module if different from building
45314 # a shared archive.
45315 module_cmds=$lt_module_cmds
45316 module_expsym_cmds=$lt_module_expsym_cmds
45318 # Whether we are building with GNU ld or not.
45319 with_gnu_ld=$lt_with_gnu_ld
45321 # Flag that allows shared libraries with undefined symbols to be built.
45322 allow_undefined_flag=$lt_allow_undefined_flag
45324 # Flag that enforces no undefined symbols.
45325 no_undefined_flag=$lt_no_undefined_flag
45327 # Flag to hardcode \$libdir into a binary during linking.
45328 # This must work even if \$libdir does not exist
45329 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
45331 # Whether we need a single "-rpath" flag with a separated argument.
45332 hardcode_libdir_separator=$lt_hardcode_libdir_separator
45334 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
45335 # DIR into the resulting binary.
45336 hardcode_direct=$hardcode_direct
45338 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
45339 # DIR into the resulting binary and the resulting library dependency is
45340 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
45341 # library is relocated.
45342 hardcode_direct_absolute=$hardcode_direct_absolute
45344 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
45345 # into the resulting binary.
45346 hardcode_minus_L=$hardcode_minus_L
45348 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
45349 # into the resulting binary.
45350 hardcode_shlibpath_var=$hardcode_shlibpath_var
45352 # Set to "yes" if building a shared library automatically hardcodes DIR
45353 # into the library and all subsequent libraries and executables linked
45355 hardcode_automatic=$hardcode_automatic
45357 # Set to yes if linker adds runtime paths of dependent libraries
45358 # to runtime path list.
45359 inherit_rpath=$inherit_rpath
45361 # Whether libtool must link a program against all its dependency libraries.
45362 link_all_deplibs=$link_all_deplibs
45364 # Set to "yes" if exported symbols are required.
45365 always_export_symbols=$always_export_symbols
45367 # The commands to list exported symbols.
45368 export_symbols_cmds=$lt_export_symbols_cmds
45370 # Symbols that should not be listed in the preloaded symbols.
45371 exclude_expsyms=$lt_exclude_expsyms
45373 # Symbols that must always be exported.
45374 include_expsyms=$lt_include_expsyms
45376 # Commands necessary for linking programs (against libraries) with templates.
45377 prelink_cmds=$lt_prelink_cmds
45379 # Commands necessary for finishing linking programs.
45380 postlink_cmds=$lt_postlink_cmds
45382 # Specify filename containing input files.
45383 file_list_spec=$lt_file_list_spec
45385 # How to hardcode a shared library path into an executable.
45386 hardcode_action=$hardcode_action
45388 # ### END LIBTOOL CONFIG
45392 cat <<'_LT_EOF' >> "$cfgfile"
45394 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
45396 # func_munge_path_list VARIABLE PATH
45397 # -----------------------------------
45398 # VARIABLE is name of variable containing _space_ separated list of
45399 # directories to be munged by the contents of PATH, which is string
45402 # string "DIR[ DIR]" will be prepended to VARIABLE
45404 # string "DIR[ DIR]" will be appended to VARIABLE
45405 # "DIRP[:DIRP]::[DIRA:]DIRA"
45406 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
45407 # "DIRA[ DIRA]" will be appended to VARIABLE
45409 # VARIABLE will be replaced by "DIR[ DIR]"
45410 func_munge_path_list ()
45416 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
45419 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
45422 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
45423 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
45426 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
45432 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
45433 func_cc_basename ()
45435 for cc_temp in $*""; do
45437 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
45438 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
45443 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
45447 # ### END FUNCTIONS SHARED WITH CONFIGURE
45453 cat <<\_LT_EOF >> "$cfgfile"
45454 # AIX sometimes has problems with the GCC collect2 program. For some
45455 # reason, if we set the COLLECT_NAMES environment variable, the problems
45456 # vanish in a puff of smoke.
45457 if test set != "${COLLECT_NAMES+set}"; then
45459 export COLLECT_NAMES
45466 ltmain=$ac_aux_dir/ltmain.sh
45469 # We use sed instead of cat because bash on DJGPP gets confused if
45470 # if finds mixed CR/LF and LF-only lines. Since sed operates in
45471 # text mode, it properly converts lines to CR/LF. This bash problem
45472 # is reportedly fixed, but why not run on old versions too?
45473 sed '$q' "$ltmain" >> "$cfgfile" \
45474 || (rm -f "$cfgfile"; exit 1)
45476 mv -f "$cfgfile" "$ofile" ||
45477 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
45488 ac_clean_files=$ac_clean_files_save
45490 test $ac_write_fail = 0 ||
45491 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
45494 # configure is writing to config.log, and then calls config.status.
45495 # config.status does its own redirection, appending to config.log.
45496 # Unfortunately, on DOS this fails, as config.log is still kept open
45497 # by configure, so config.status won't be able to write to it; its
45498 # output is simply discarded. So we exec the FD to /dev/null,
45499 # effectively closing config.log, so it can be properly (re)opened and
45500 # appended to by config.status. When coming back to configure, we
45501 # need to make the FD available again.
45502 if test "$no_create" != yes; then
45504 ac_config_status_args=
45505 test "$silent" = yes &&
45506 ac_config_status_args="$ac_config_status_args --quiet"
45508 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
45510 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
45511 # would make configure fail if this is the last instruction.
45512 $ac_cs_success || as_fn_exit 1
45516 # CONFIG_SUBDIRS section.
45518 if test "$no_recursion" != yes; then
45520 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
45521 # so they do not pile up.
45522 ac_sub_configure_args=
45524 eval "set x $ac_configure_args"
45528 if test -n "$ac_prev"; then
45533 -cache-file | --cache-file | --cache-fil | --cache-fi \
45534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
45535 ac_prev=cache_file ;;
45536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
45537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
45540 --config-cache | -C)
45542 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
45544 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
45546 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
45548 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
45550 --disable-option-checking)
45554 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
45556 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
45560 # Always prepend --prefix to ensure using the same prefix
45561 # in subdir configurations.
45562 ac_arg="--prefix=$prefix"
45564 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
45566 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
45569 if test "$silent" = yes; then
45570 ac_sub_configure_args="--silent $ac_sub_configure_args"
45573 # Always prepend --disable-option-checking to silence warnings, since
45574 # different subdirs can have different --enable and --with options.
45575 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
45578 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
45580 # Do not complain, so a configure script can configure whichever
45581 # parts of a large source tree are present.
45582 test -d "$srcdir/$ac_dir" || continue
45584 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
45585 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
45586 $as_echo "$ac_msg" >&6
45587 as_dir="$ac_dir"; as_fn_mkdir_p
45591 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
45593 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
45594 # A ".." for each directory in $ac_dir_suffix.
45595 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
45596 case $ac_top_builddir_sub in
45597 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
45598 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
45601 ac_abs_top_builddir=$ac_pwd
45602 ac_abs_builddir=$ac_pwd$ac_dir_suffix
45603 # for backward compatibility:
45604 ac_top_builddir=$ac_top_build_prefix
45607 .) # We are building in place.
45609 ac_top_srcdir=$ac_top_builddir_sub
45610 ac_abs_top_srcdir=$ac_pwd ;;
45611 [\\/]* | ?:[\\/]* ) # Absolute name.
45612 ac_srcdir=$srcdir$ac_dir_suffix;
45613 ac_top_srcdir=$srcdir
45614 ac_abs_top_srcdir=$srcdir ;;
45615 *) # Relative name.
45616 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
45617 ac_top_srcdir=$ac_top_build_prefix$srcdir
45618 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
45620 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
45625 # Check for guested configure; otherwise get Cygnus style configure.
45626 if test -f "$ac_srcdir/configure.gnu"; then
45627 ac_sub_configure=$ac_srcdir/configure.gnu
45628 elif test -f "$ac_srcdir/configure"; then
45629 ac_sub_configure=$ac_srcdir/configure
45630 elif test -f "$ac_srcdir/configure.in"; then
45631 # This should be Cygnus configure.
45632 ac_sub_configure=$ac_aux_dir/configure
45634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
45635 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
45639 # The recursion is here.
45640 if test -n "$ac_sub_configure"; then
45641 # Make the cache file name correct relative to the subdirectory.
45642 case $cache_file in
45643 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
45644 *) # Relative name.
45645 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
45648 { $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
45649 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
45650 # The eval makes quoting arguments work.
45651 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
45652 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
45653 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
45659 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
45660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
45661 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
45666 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
45667 if test -z "$tmp_cpp"; then
45670 cat >./tests/configurehelp.pm <<_EOF
45671 # This is a generated file. Do not edit.
45673 package configurehelp;
45685 @ISA = qw(Exporter);
45691 \$Cpreprocessor = '$tmp_cpp';
45698 ## ---------------------------------- ##
45699 ## Start of distclean amending code ##
45700 ## ---------------------------------- ##
45702 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
45705 if test ! -f "$xc_subdir/Makefile"; then
45706 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
45710 # Fetch dependency tracking file list from Makefile include lines.
45712 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
45713 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
45715 # --disable-dependency-tracking might have been used, consequently
45716 # there is nothing to amend without a dependency tracking file list.
45718 if test $xc_cnt_words -gt 0; then
45720 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
45721 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
45723 # Build Makefile specific patch hunk.
45725 xc_p="$xc_subdir/xc_patch.tmp"
45727 xc_rm_depfiles=`echo "$xc_inc_lines" \
45728 | $SED 's%include% -rm -f%' 2>/dev/null`
45730 xc_dep_subdirs=`echo "$xc_inc_lines" \
45731 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
45732 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
45735 echo "$xc_rm_depfiles" >$xc_p
45737 for xc_dep_dir in $xc_dep_subdirs; do
45738 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
45739 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
45740 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
45741 echo "${xc_tab}fi" >>$xc_p
45744 # Build Makefile patching sed scripts.
45746 xc_s1="$xc_subdir/xc_script_1.tmp"
45747 xc_s2="$xc_subdir/xc_script_2.tmp"
45748 xc_s3="$xc_subdir/xc_script_3.tmp"
45750 cat >$xc_s1 <<\_EOT
45751 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
45752 s/^.*(DEPDIR)/___xc_depdir_line___/
45754 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
45755 s/^.*(DEPDIR)/___xc_depdir_line___/
45759 cat >$xc_s2 <<\_EOT
45760 /___xc_depdir_line___$/{
45762 /___xc_depdir_line___$/D
45767 /^___xc_depdir_line___/{
45773 # Apply patch to Makefile and cleanup.
45775 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
45776 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
45777 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
45779 if test -f "$xc_subdir/Makefile.tmp3"; then
45780 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
45783 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
45784 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
45785 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
45787 test -f "$xc_p" && rm -f "$xc_p"
45788 test -f "$xc_s1" && rm -f "$xc_s1"
45789 test -f "$xc_s2" && rm -f "$xc_s2"
45790 test -f "$xc_s3" && rm -f "$xc_s3"
45796 ## -------------------------------- ##
45797 ## End of distclean amending code ##
45798 ## -------------------------------- ##
45802 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
45804 Host setup: ${host}
45805 Install prefix: ${prefix}
45808 CPPFLAGS: ${CPPFLAGS}
45809 LDFLAGS: ${LDFLAGS}
45812 curl version: ${CURLVERSION}
45813 SSL: ${curl_ssl_msg}
45814 SSH: ${curl_ssh_msg}
45815 zlib: ${curl_zlib_msg}
45816 brotli: ${curl_brotli_msg}
45817 GSS-API: ${curl_gss_msg}
45818 TLS-SRP: ${curl_tls_srp_msg}
45819 resolver: ${curl_res_msg}
45820 IPv6: ${curl_ipv6_msg}
45821 Unix sockets: ${curl_unix_sockets_msg}
45822 IDN: ${curl_idn_msg}
45823 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
45824 Built-in manual: ${curl_manual_msg}
45825 --libcurl option: ${curl_libcurl_msg}
45826 Verbose errors: ${curl_verbose_msg}
45827 Code coverage: ${curl_coverage_msg}
45828 SSPI: ${curl_sspi_msg}
45829 ca cert bundle: ${ca}${ca_warning}
45830 ca cert path: ${capath}${capath_warning}
45831 ca fallback: ${with_ca_fallback}
45832 LDAP: ${curl_ldap_msg}
45833 LDAPS: ${curl_ldaps_msg}
45834 RTSP: ${curl_rtsp_msg}
45835 RTMP: ${curl_rtmp_msg}
45836 Metalink: ${curl_mtlnk_msg}
45837 PSL: ${curl_psl_msg}
45838 Alt-svc: ${curl_altsvc_msg}
45839 HTTP2: ${curl_h2_msg}
45840 HTTP3: ${curl_h3_msg}
45841 ESNI: ${curl_esni_msg}
45842 Protocols: ${SUPPORT_PROTOCOLS}
45843 Features: ${SUPPORT_FEATURES}
45845 $as_echo "$as_me: Configured to build curl/libcurl:
45847 Host setup: ${host}
45848 Install prefix: ${prefix}
45851 CPPFLAGS: ${CPPFLAGS}
45852 LDFLAGS: ${LDFLAGS}
45855 curl version: ${CURLVERSION}
45856 SSL: ${curl_ssl_msg}
45857 SSH: ${curl_ssh_msg}
45858 zlib: ${curl_zlib_msg}
45859 brotli: ${curl_brotli_msg}
45860 GSS-API: ${curl_gss_msg}
45861 TLS-SRP: ${curl_tls_srp_msg}
45862 resolver: ${curl_res_msg}
45863 IPv6: ${curl_ipv6_msg}
45864 Unix sockets: ${curl_unix_sockets_msg}
45865 IDN: ${curl_idn_msg}
45866 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
45867 Built-in manual: ${curl_manual_msg}
45868 --libcurl option: ${curl_libcurl_msg}
45869 Verbose errors: ${curl_verbose_msg}
45870 Code coverage: ${curl_coverage_msg}
45871 SSPI: ${curl_sspi_msg}
45872 ca cert bundle: ${ca}${ca_warning}
45873 ca cert path: ${capath}${capath_warning}
45874 ca fallback: ${with_ca_fallback}
45875 LDAP: ${curl_ldap_msg}
45876 LDAPS: ${curl_ldaps_msg}
45877 RTSP: ${curl_rtsp_msg}
45878 RTMP: ${curl_rtmp_msg}
45879 Metalink: ${curl_mtlnk_msg}
45880 PSL: ${curl_psl_msg}
45881 Alt-svc: ${curl_altsvc_msg}
45882 HTTP2: ${curl_h2_msg}
45883 HTTP3: ${curl_h3_msg}
45884 ESNI: ${curl_esni_msg}
45885 Protocols: ${SUPPORT_PROTOCOLS}
45886 Features: ${SUPPORT_FEATURES}
45888 if test -n "$experimental"; then
45890 WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!