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 - 2017 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 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
910 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
911 CURL_LT_SHLIB_VERSIONED_FLAVOUR
964 DOING_NATIVE_WINDOWS_FALSE
965 DOING_NATIVE_WINDOWS_TRUE
966 BUILD_UNITTESTS_FALSE
970 USE_EXPLICIT_LIB_DEPS_FALSE
971 USE_EXPLICIT_LIB_DEPS_TRUE
973 CPPFLAG_CURL_STATICLIB
974 USE_CPPFLAG_CURL_STATICLIB_FALSE
975 USE_CPPFLAG_CURL_STATICLIB_TRUE
976 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
977 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
978 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
979 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
980 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
981 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1032 INSTALL_STRIP_PROGRAM
1045 CODE_COVERAGE_LDFLAGS
1047 CODE_COVERAGE_CXXFLAGS
1048 CODE_COVERAGE_CFLAGS
1049 CODE_COVERAGE_CPPFLAGS
1053 CODE_COVERAGE_ENABLED
1054 CODE_COVERAGE_ENABLED_FALSE
1055 CODE_COVERAGE_ENABLED_TRUE
1075 AM_DEFAULT_VERBOSITY
1079 MAINTAINER_MODE_FALSE
1080 MAINTAINER_MODE_TRUE
1109 program_transform_name
1122 enable_option_checking
1123 enable_maintainer_mode
1130 enable_symbol_hiding
1131 enable_hidden_symbols
1135 enable_code_coverage
1136 enable_dependency_tracking
1162 enable_libcurl_option
1169 with_gssapi_includes
1172 with_default_ssl_backend
1192 enable_versioned_symbols
1196 with_zsh_functions_dir
1197 enable_threaded_resolver
1207 ac_precious_vars='build_alias
1216 LT_SYS_LIBRARY_PATH'
1217 ac_subdirs_all='ares'
1219 # Initialize some variables set by options.
1221 ac_init_version=false
1222 ac_unrecognized_opts=
1223 ac_unrecognized_sep=
1224 # The variables have the same names as the options, with
1225 # dashes changed to underlines.
1226 cache_file=/dev/null
1233 program_transform_name=s,x,x,
1241 # Installation directory options.
1242 # These are left unexpanded so users can "make install exec_prefix=/foo"
1243 # and all the variables that are supposed to be based on exec_prefix
1244 # by default will actually change.
1245 # Use braces instead of parens because sh, perl, etc. also accept them.
1246 # (The list follows the same order as the GNU Coding Standards.)
1247 bindir='${exec_prefix}/bin'
1248 sbindir='${exec_prefix}/sbin'
1249 libexecdir='${exec_prefix}/libexec'
1250 datarootdir='${prefix}/share'
1251 datadir='${datarootdir}'
1252 sysconfdir='${prefix}/etc'
1253 sharedstatedir='${prefix}/com'
1254 localstatedir='${prefix}/var'
1255 runstatedir='${localstatedir}/run'
1256 includedir='${prefix}/include'
1257 oldincludedir='/usr/include'
1258 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1259 infodir='${datarootdir}/info'
1264 libdir='${exec_prefix}/lib'
1265 localedir='${datarootdir}/locale'
1266 mandir='${datarootdir}/man'
1272 # If the previous option needs an argument, assign it.
1273 if test -n "$ac_prev"; then
1274 eval $ac_prev=\$ac_option
1280 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1285 # Accept the important Cygnus configure options, so we can diagnose typos.
1287 case $ac_dashdash$ac_option in
1291 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1293 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1294 bindir=$ac_optarg ;;
1296 -build | --build | --buil | --bui | --bu)
1297 ac_prev=build_alias ;;
1298 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1299 build_alias=$ac_optarg ;;
1301 -cache-file | --cache-file | --cache-fil | --cache-fi \
1302 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1303 ac_prev=cache_file ;;
1304 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1305 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1306 cache_file=$ac_optarg ;;
1308 --config-cache | -C)
1309 cache_file=config.cache ;;
1311 -datadir | --datadir | --datadi | --datad)
1313 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1314 datadir=$ac_optarg ;;
1316 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1317 | --dataroo | --dataro | --datar)
1318 ac_prev=datarootdir ;;
1319 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1320 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1321 datarootdir=$ac_optarg ;;
1323 -disable-* | --disable-*)
1324 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1325 # Reject names that are not valid shell variable names.
1326 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1327 as_fn_error $? "invalid feature name: $ac_useropt"
1328 ac_useropt_orig=$ac_useropt
1329 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1330 case $ac_user_opts in
1332 "enable_$ac_useropt"
1334 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1335 ac_unrecognized_sep=', ';;
1337 eval enable_$ac_useropt=no ;;
1339 -docdir | --docdir | --docdi | --doc | --do)
1341 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1342 docdir=$ac_optarg ;;
1344 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1346 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1347 dvidir=$ac_optarg ;;
1349 -enable-* | --enable-*)
1350 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1351 # Reject names that are not valid shell variable names.
1352 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353 as_fn_error $? "invalid feature name: $ac_useropt"
1354 ac_useropt_orig=$ac_useropt
1355 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356 case $ac_user_opts in
1358 "enable_$ac_useropt"
1360 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1361 ac_unrecognized_sep=', ';;
1363 eval enable_$ac_useropt=\$ac_optarg ;;
1365 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1366 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1367 | --exec | --exe | --ex)
1368 ac_prev=exec_prefix ;;
1369 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1370 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1371 | --exec=* | --exe=* | --ex=*)
1372 exec_prefix=$ac_optarg ;;
1374 -gas | --gas | --ga | --g)
1375 # Obsolete; use --with-gas.
1378 -help | --help | --hel | --he | -h)
1379 ac_init_help=long ;;
1380 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1381 ac_init_help=recursive ;;
1382 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1383 ac_init_help=short ;;
1385 -host | --host | --hos | --ho)
1386 ac_prev=host_alias ;;
1387 -host=* | --host=* | --hos=* | --ho=*)
1388 host_alias=$ac_optarg ;;
1390 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1392 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1394 htmldir=$ac_optarg ;;
1396 -includedir | --includedir | --includedi | --included | --include \
1397 | --includ | --inclu | --incl | --inc)
1398 ac_prev=includedir ;;
1399 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1400 | --includ=* | --inclu=* | --incl=* | --inc=*)
1401 includedir=$ac_optarg ;;
1403 -infodir | --infodir | --infodi | --infod | --info | --inf)
1405 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1406 infodir=$ac_optarg ;;
1408 -libdir | --libdir | --libdi | --libd)
1410 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1411 libdir=$ac_optarg ;;
1413 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1414 | --libexe | --libex | --libe)
1415 ac_prev=libexecdir ;;
1416 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1417 | --libexe=* | --libex=* | --libe=*)
1418 libexecdir=$ac_optarg ;;
1420 -localedir | --localedir | --localedi | --localed | --locale)
1421 ac_prev=localedir ;;
1422 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1423 localedir=$ac_optarg ;;
1425 -localstatedir | --localstatedir | --localstatedi | --localstated \
1426 | --localstate | --localstat | --localsta | --localst | --locals)
1427 ac_prev=localstatedir ;;
1428 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1429 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1430 localstatedir=$ac_optarg ;;
1432 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1434 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1435 mandir=$ac_optarg ;;
1437 -nfp | --nfp | --nf)
1438 # Obsolete; use --without-fp.
1441 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1442 | --no-cr | --no-c | -n)
1445 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1446 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1449 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1450 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1451 | --oldin | --oldi | --old | --ol | --o)
1452 ac_prev=oldincludedir ;;
1453 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1454 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1455 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1456 oldincludedir=$ac_optarg ;;
1458 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1460 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1461 prefix=$ac_optarg ;;
1463 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1464 | --program-pre | --program-pr | --program-p)
1465 ac_prev=program_prefix ;;
1466 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1467 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1468 program_prefix=$ac_optarg ;;
1470 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1471 | --program-suf | --program-su | --program-s)
1472 ac_prev=program_suffix ;;
1473 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1474 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1475 program_suffix=$ac_optarg ;;
1477 -program-transform-name | --program-transform-name \
1478 | --program-transform-nam | --program-transform-na \
1479 | --program-transform-n | --program-transform- \
1480 | --program-transform | --program-transfor \
1481 | --program-transfo | --program-transf \
1482 | --program-trans | --program-tran \
1483 | --progr-tra | --program-tr | --program-t)
1484 ac_prev=program_transform_name ;;
1485 -program-transform-name=* | --program-transform-name=* \
1486 | --program-transform-nam=* | --program-transform-na=* \
1487 | --program-transform-n=* | --program-transform-=* \
1488 | --program-transform=* | --program-transfor=* \
1489 | --program-transfo=* | --program-transf=* \
1490 | --program-trans=* | --program-tran=* \
1491 | --progr-tra=* | --program-tr=* | --program-t=*)
1492 program_transform_name=$ac_optarg ;;
1494 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1496 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1497 pdfdir=$ac_optarg ;;
1499 -psdir | --psdir | --psdi | --psd | --ps)
1501 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1508 -runstatedir | --runstatedir | --runstatedi | --runstated \
1509 | --runstate | --runstat | --runsta | --runst | --runs \
1510 | --run | --ru | --r)
1511 ac_prev=runstatedir ;;
1512 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1513 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1514 | --run=* | --ru=* | --r=*)
1515 runstatedir=$ac_optarg ;;
1517 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1519 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1521 sbindir=$ac_optarg ;;
1523 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1524 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1525 | --sharedst | --shareds | --shared | --share | --shar \
1527 ac_prev=sharedstatedir ;;
1528 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1529 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1530 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1532 sharedstatedir=$ac_optarg ;;
1534 -site | --site | --sit)
1536 -site=* | --site=* | --sit=*)
1539 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1541 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1542 srcdir=$ac_optarg ;;
1544 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1545 | --syscon | --sysco | --sysc | --sys | --sy)
1546 ac_prev=sysconfdir ;;
1547 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1548 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1549 sysconfdir=$ac_optarg ;;
1551 -target | --target | --targe | --targ | --tar | --ta | --t)
1552 ac_prev=target_alias ;;
1553 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1554 target_alias=$ac_optarg ;;
1556 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1559 -version | --version | --versio | --versi | --vers | -V)
1560 ac_init_version=: ;;
1563 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1564 # Reject names that are not valid shell variable names.
1565 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1566 as_fn_error $? "invalid package name: $ac_useropt"
1567 ac_useropt_orig=$ac_useropt
1568 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1569 case $ac_user_opts in
1573 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1574 ac_unrecognized_sep=', ';;
1576 eval with_$ac_useropt=\$ac_optarg ;;
1578 -without-* | --without-*)
1579 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1580 # Reject names that are not valid shell variable names.
1581 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1582 as_fn_error $? "invalid package name: $ac_useropt"
1583 ac_useropt_orig=$ac_useropt
1584 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1585 case $ac_user_opts in
1589 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1590 ac_unrecognized_sep=', ';;
1592 eval with_$ac_useropt=no ;;
1595 # Obsolete; use --with-x.
1598 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1599 | --x-incl | --x-inc | --x-in | --x-i)
1600 ac_prev=x_includes ;;
1601 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1602 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1603 x_includes=$ac_optarg ;;
1605 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1606 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1607 ac_prev=x_libraries ;;
1608 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1609 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1610 x_libraries=$ac_optarg ;;
1612 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1613 Try \`$0 --help' for more information"
1617 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1618 # Reject names that are not valid shell variable names.
1619 case $ac_envvar in #(
1620 '' | [0-9]* | *[!_$as_cr_alnum]* )
1621 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1623 eval $ac_envvar=\$ac_optarg
1624 export $ac_envvar ;;
1627 # FIXME: should be removed in autoconf 3.0.
1628 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1629 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1630 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1631 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1637 if test -n "$ac_prev"; then
1638 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1639 as_fn_error $? "missing argument to $ac_option"
1642 if test -n "$ac_unrecognized_opts"; then
1643 case $enable_option_checking in
1645 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1646 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1650 # Check all directory arguments for consistency.
1651 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1652 datadir sysconfdir sharedstatedir localstatedir includedir \
1653 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1654 libdir localedir mandir runstatedir
1656 eval ac_val=\$$ac_var
1657 # Remove trailing slashes.
1660 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1661 eval $ac_var=\$ac_val;;
1663 # Be sure to have absolute directory names.
1665 [\\/$]* | ?:[\\/]* ) continue;;
1666 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1668 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1671 # There might be people who depend on the old broken behavior: `$host'
1672 # used to hold the argument of --host etc.
1673 # FIXME: To remove some day.
1676 target=$target_alias
1678 # FIXME: To remove some day.
1679 if test "x$host_alias" != x; then
1680 if test "x$build_alias" = x; then
1681 cross_compiling=maybe
1682 elif test "x$build_alias" != "x$host_alias"; then
1688 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1690 test "$silent" = yes && exec 6>/dev/null
1693 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1694 ac_ls_di=`ls -di .` &&
1695 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1696 as_fn_error $? "working directory cannot be determined"
1697 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1698 as_fn_error $? "pwd does not report name of working directory"
1701 # Find the source files, if location was not specified.
1702 if test -z "$srcdir"; then
1703 ac_srcdir_defaulted=yes
1704 # Try the directory containing this script, then the parent directory.
1705 ac_confdir=`$as_dirname -- "$as_myself" ||
1706 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1707 X"$as_myself" : 'X\(//\)[^/]' \| \
1708 X"$as_myself" : 'X\(//\)$' \| \
1709 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1710 $as_echo X"$as_myself" |
1711 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1729 if test ! -r "$srcdir/$ac_unique_file"; then
1733 ac_srcdir_defaulted=no
1735 if test ! -r "$srcdir/$ac_unique_file"; then
1736 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1737 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1739 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1741 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1743 # When building in place, set srcdir=.
1744 if test "$ac_abs_confdir" = "$ac_pwd"; then
1747 # Remove unnecessary trailing slashes from srcdir.
1748 # Double slashes in file names in object file debugging info
1749 # mess up M-x gdb in Emacs.
1751 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1753 for ac_var in $ac_precious_vars; do
1754 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_env_${ac_var}_value=\$${ac_var}
1756 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1757 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1761 # Report the --help message.
1763 if test "$ac_init_help" = "long"; then
1764 # Omit some internal or obsolete options to make the list less imposing.
1765 # This message is too long to be a string in the A/UX 3.1 sh.
1767 \`configure' configures curl - to adapt to many kinds of systems.
1769 Usage: $0 [OPTION]... [VAR=VALUE]...
1771 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1772 VAR=VALUE. See below for descriptions of some of the useful variables.
1774 Defaults for the options are specified in brackets.
1777 -h, --help display this help and exit
1778 --help=short display options specific to this package
1779 --help=recursive display the short help of all the included packages
1780 -V, --version display version information and exit
1781 -q, --quiet, --silent do not print \`checking ...' messages
1782 --cache-file=FILE cache test results in FILE [disabled]
1783 -C, --config-cache alias for \`--cache-file=config.cache'
1784 -n, --no-create do not create output files
1785 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1787 Installation directories:
1788 --prefix=PREFIX install architecture-independent files in PREFIX
1789 [$ac_default_prefix]
1790 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1793 By default, \`make install' will install all the files in
1794 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1795 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1796 for instance \`--prefix=\$HOME'.
1798 For better control, use the options below.
1800 Fine tuning of the installation directories:
1801 --bindir=DIR user executables [EPREFIX/bin]
1802 --sbindir=DIR system admin executables [EPREFIX/sbin]
1803 --libexecdir=DIR program executables [EPREFIX/libexec]
1804 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1805 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1806 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1807 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1808 --libdir=DIR object code libraries [EPREFIX/lib]
1809 --includedir=DIR C header files [PREFIX/include]
1810 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1811 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1812 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1813 --infodir=DIR info documentation [DATAROOTDIR/info]
1814 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1815 --mandir=DIR man documentation [DATAROOTDIR/man]
1816 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1817 --htmldir=DIR html documentation [DOCDIR]
1818 --dvidir=DIR dvi documentation [DOCDIR]
1819 --pdfdir=DIR pdf documentation [DOCDIR]
1820 --psdir=DIR ps documentation [DOCDIR]
1826 --program-prefix=PREFIX prepend PREFIX to installed program names
1827 --program-suffix=SUFFIX append SUFFIX to installed program names
1828 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1836 if test -n "$ac_init_help"; then
1837 case $ac_init_help in
1838 short | recursive ) echo "Configuration of curl -:";;
1843 --disable-option-checking ignore unrecognized --enable/--with options
1844 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1845 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1846 --enable-maintainer-mode
1847 enable make rules and dependencies not useful (and
1848 sometimes confusing) to the casual installer
1849 --enable-silent-rules less verbose build output (undo: "make V=1")
1850 --disable-silent-rules verbose build output (undo: "make V=0")
1851 --enable-debug Enable debug build options
1852 --disable-debug Disable debug build options
1853 --enable-optimize Enable compiler optimizations
1854 --disable-optimize Disable compiler optimizations
1855 --enable-warnings Enable strict compiler warnings
1856 --disable-warnings Disable strict compiler warnings
1857 --enable-werror Enable compiler warnings as errors
1858 --disable-werror Disable compiler warnings as errors
1859 --enable-curldebug Enable curl debug memory tracking
1860 --disable-curldebug Disable curl debug memory tracking
1861 --enable-symbol-hiding Enable hiding of library internal symbols
1862 --disable-symbol-hiding Disable hiding of library internal symbols
1863 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1864 --disable-hidden-symbols
1865 To be deprecated, use --disable-symbol-hiding
1866 --enable-ares[=PATH] Enable c-ares for DNS lookups
1867 --disable-ares Disable c-ares for DNS lookups
1868 --disable-rt disable dependency on -lrt
1869 --enable-code-coverage Whether to enable code coverage support
1870 --enable-dependency-tracking
1871 do not reject slow dependency extractors
1872 --disable-dependency-tracking
1873 speeds up one-time build
1874 --disable-largefile omit support for large files
1875 --enable-shared[=PKGS] build shared libraries [default=yes]
1876 --enable-static[=PKGS] build static libraries [default=yes]
1877 --enable-fast-install[=PKGS]
1878 optimize for fast installation [default=yes]
1879 --disable-libtool-lock avoid locking (might break parallel builds)
1880 --enable-http Enable HTTP support
1881 --disable-http Disable HTTP support
1882 --enable-ftp Enable FTP support
1883 --disable-ftp Disable FTP support
1884 --enable-file Enable FILE support
1885 --disable-file Disable FILE support
1886 --enable-ldap Enable LDAP support
1887 --disable-ldap Disable LDAP support
1888 --enable-ldaps Enable LDAPS support
1889 --disable-ldaps Disable LDAPS support
1890 --enable-rtsp Enable RTSP support
1891 --disable-rtsp Disable RTSP support
1892 --enable-proxy Enable proxy support
1893 --disable-proxy Disable proxy support
1894 --enable-dict Enable DICT support
1895 --disable-dict Disable DICT support
1896 --enable-telnet Enable TELNET support
1897 --disable-telnet Disable TELNET support
1898 --enable-tftp Enable TFTP support
1899 --disable-tftp Disable TFTP support
1900 --enable-pop3 Enable POP3 support
1901 --disable-pop3 Disable POP3 support
1902 --enable-imap Enable IMAP support
1903 --disable-imap Disable IMAP support
1904 --enable-smb Enable SMB/CIFS support
1905 --disable-smb Disable SMB/CIFS support
1906 --enable-smtp Enable SMTP support
1907 --disable-smtp Disable SMTP support
1908 --enable-gopher Enable Gopher support
1909 --disable-gopher Disable Gopher support
1910 --enable-manual Enable built-in manual
1911 --disable-manual Disable built-in manual
1912 --enable-libcurl-option Enable --libcurl C code generation support
1913 --disable-libcurl-option
1914 Disable --libcurl C code generation support
1915 --enable-libgcc use libgcc when linking
1916 --enable-ipv6 Enable IPv6 (with IPv4) support
1917 --disable-ipv6 Disable IPv6 support
1918 --enable-versioned-symbols
1919 Enable versioned symbols in shared library
1920 --disable-versioned-symbols
1921 Disable versioned symbols in shared library
1922 --enable-threaded-resolver
1923 Enable threaded resolver
1924 --disable-threaded-resolver
1925 Disable threaded resolver
1926 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1927 --disable-pthreads Disable POSIX threads
1928 --enable-verbose Enable verbose strings
1929 --disable-verbose Disable verbose strings
1930 --enable-sspi Enable SSPI
1931 --disable-sspi Disable SSPI
1932 --enable-crypto-auth Enable cryptographic authentication
1933 --disable-crypto-auth Disable cryptographic authentication
1934 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1935 helper, where FILE is ntlm_auth's absolute filename
1936 (default: /usr/bin/ntlm_auth)
1937 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1939 --enable-tls-srp Enable TLS-SRP authentication
1940 --disable-tls-srp Disable TLS-SRP authentication
1941 --enable-unix-sockets Enable Unix domain sockets
1942 --disable-unix-sockets Disable Unix domain sockets
1943 --enable-cookies Enable cookies support
1944 --disable-cookies Disable cookies support
1947 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1948 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1949 --with-gcov=GCOV use given GCOV for coverage (GCOV=gcov).
1950 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1952 --with-aix-soname=aix|svr4|both
1953 shared library versioning (aka "SONAME") variant to
1954 provide on AIX, [default=aix].
1955 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1956 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
1957 compiler's sysroot if not specified).
1958 --with-zlib=PATH search for zlib in PATH
1959 --without-zlib disable use of zlib
1960 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
1961 installation; when possible, set the PKG_CONFIG_PATH
1962 environment variable instead of using this option
1963 --without-brotli disable BROTLI
1964 --with-ldap-lib=libname Specify name of ldap lib file
1965 --with-lber-lib=libname Specify name of lber lib file
1966 --with-gssapi-includes=DIR
1967 Specify location of GSS-API headers
1968 --with-gssapi-libs=DIR Specify location of GSS-API libs
1969 --with-gssapi=DIR Where to look for GSS-API
1970 --with-default-ssl-backend=NAME
1971 Use NAME as default SSL backend
1972 --without-default-ssl-backend
1973 Use implicit default SSL backend
1974 --with-winssl enable Windows native SSL/TLS
1975 --without-winssl disable Windows native SSL/TLS
1976 --with-darwinssl enable Apple OS native SSL/TLS
1977 --without-darwinssl disable Apple OS native SSL/TLS
1978 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1979 installation (default: /usr/local/ssl); when
1980 possible, set the PKG_CONFIG_PATH environment
1981 variable instead of using this option
1982 --without-ssl disable OpenSSL
1983 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1984 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1985 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1987 --without-gnutls disable GnuTLS detection
1988 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1990 --without-polarssl disable PolarSSL detection
1991 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
1993 --without-mbedtls disable mbedTLS detection
1994 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1995 installation root (default: system lib default)
1996 --without-cyassl disable CyaSSL detection
1997 --with-nss=PATH where to look for NSS, PATH points to the
1999 --without-nss disable NSS detection
2000 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
2001 installation prefix (default: /usr/local). Ignored
2002 if another SSL engine is selected.
2003 --without-axtls disable axTLS
2004 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2006 --without-ca-bundle Don't use a default CA bundle
2007 --with-ca-path=DIRECTORY
2008 Path to a directory containing CA certificates
2009 stored individually, with their filenames in a hash
2010 format. This option can be used with OpenSSL, GnuTLS
2011 and PolarSSL backends. Refer to OpenSSL c_rehash for
2012 details. (example: /etc/certificates)
2013 --without-ca-path Don't use a default CA path
2014 --with-ca-fallback Use the built in CA store of the SSL library
2015 --without-ca-fallback Don't use the built in CA store of the SSL library
2016 --without-libpsl disable support for libpsl cookie checking
2017 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
2019 --without-libmetalink disable libmetalink detection
2020 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2021 LIBSSH2 installation; when possible, set the
2022 PKG_CONFIG_PATH environment variable instead of
2024 --with-libssh2 enable LIBSSH2
2025 --with-libssh=PATH Where to look for libssh, PATH points to the LIBSSH
2026 installation; when possible, set the PKG_CONFIG_PATH
2027 environment variable instead of using this option
2028 --with-libssh enable LIBSSH
2029 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2030 LIBRTMP installation; when possible, set the
2031 PKG_CONFIG_PATH environment variable instead of
2033 --without-librtmp disable LIBRTMP
2034 --with-winidn=PATH enable Windows native IDN
2035 --without-winidn disable Windows native IDN
2036 --with-libidn2=PATH Enable libidn2 usage
2037 --without-libidn2 Disable libidn2 usage
2038 --with-nghttp2=PATH Enable nghttp2 usage
2039 --without-nghttp2 Disable nghttp2 usage
2040 --with-zsh-functions-dir=PATH
2041 Install zsh completions to PATH
2042 --without-zsh-functions-dir
2043 Do not install zsh completions
2045 Some influential environment variables:
2046 CC C compiler command
2047 CFLAGS C compiler flags
2048 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2049 nonstandard directory <lib dir>
2050 LIBS libraries to pass to the linker, e.g. -l<library>
2051 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2052 you have headers in a nonstandard directory <include dir>
2055 User-defined run-time library search path.
2057 Use these variables to override the choices made by `configure' or to help
2058 it to find libraries and programs with nonstandard names/locations.
2060 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>.
2065 if test "$ac_init_help" = "recursive"; then
2066 # If there are subdirs, report their specific --help.
2067 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2068 test -d "$ac_dir" ||
2069 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2074 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2076 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2077 # A ".." for each directory in $ac_dir_suffix.
2078 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2079 case $ac_top_builddir_sub in
2080 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2081 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2084 ac_abs_top_builddir=$ac_pwd
2085 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2086 # for backward compatibility:
2087 ac_top_builddir=$ac_top_build_prefix
2090 .) # We are building in place.
2092 ac_top_srcdir=$ac_top_builddir_sub
2093 ac_abs_top_srcdir=$ac_pwd ;;
2094 [\\/]* | ?:[\\/]* ) # Absolute name.
2095 ac_srcdir=$srcdir$ac_dir_suffix;
2096 ac_top_srcdir=$srcdir
2097 ac_abs_top_srcdir=$srcdir ;;
2099 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2100 ac_top_srcdir=$ac_top_build_prefix$srcdir
2101 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2103 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2105 cd "$ac_dir" || { ac_status=$?; continue; }
2106 # Check for guested configure.
2107 if test -f "$ac_srcdir/configure.gnu"; then
2109 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2110 elif test -f "$ac_srcdir/configure"; then
2112 $SHELL "$ac_srcdir/configure" --help=recursive
2114 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2116 cd "$ac_pwd" || { ac_status=$?; break; }
2120 test -n "$ac_init_help" && exit $ac_status
2121 if $ac_init_version; then
2124 generated by GNU Autoconf 2.69
2126 Copyright (C) 2012 Free Software Foundation, Inc.
2127 This configure script is free software; the Free Software Foundation
2128 gives unlimited permission to copy, distribute and modify it.
2130 Copyright (c) 1998 - 2017 Daniel Stenberg, <daniel@haxx.se>
2131 This configure script may be copied, distributed and modified under the
2132 terms of the curl license; see COPYING for more details
2137 ## ------------------------ ##
2138 ## Autoconf initialization. ##
2139 ## ------------------------ ##
2141 # ac_fn_c_try_compile LINENO
2142 # --------------------------
2143 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2144 ac_fn_c_try_compile ()
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 rm -f conftest.$ac_objext
2148 if { { ac_try="$ac_compile"
2150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2151 *) ac_try_echo=$ac_try;;
2153 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2154 $as_echo "$ac_try_echo"; } >&5
2155 (eval "$ac_compile") 2>conftest.err
2157 if test -s conftest.err; then
2158 grep -v '^ *+' conftest.err >conftest.er1
2159 cat conftest.er1 >&5
2160 mv -f conftest.er1 conftest.err
2162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2163 test $ac_status = 0; } && {
2164 test -z "$ac_c_werror_flag" ||
2165 test ! -s conftest.err
2166 } && test -s conftest.$ac_objext; then :
2169 $as_echo "$as_me: failed program was:" >&5
2170 sed 's/^/| /' conftest.$ac_ext >&5
2174 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2175 as_fn_set_status $ac_retval
2177 } # ac_fn_c_try_compile
2179 # ac_fn_c_try_cpp LINENO
2180 # ----------------------
2181 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2184 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2185 if { { ac_try="$ac_cpp conftest.$ac_ext"
2187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2188 *) ac_try_echo=$ac_try;;
2190 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2191 $as_echo "$ac_try_echo"; } >&5
2192 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2194 if test -s conftest.err; then
2195 grep -v '^ *+' conftest.err >conftest.er1
2196 cat conftest.er1 >&5
2197 mv -f conftest.er1 conftest.err
2199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2200 test $ac_status = 0; } > conftest.i && {
2201 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2202 test ! -s conftest.err
2206 $as_echo "$as_me: failed program was:" >&5
2207 sed 's/^/| /' conftest.$ac_ext >&5
2211 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2212 as_fn_set_status $ac_retval
2216 # ac_fn_c_try_link LINENO
2217 # -----------------------
2218 # Try to link conftest.$ac_ext, and return whether this succeeded.
2221 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2222 rm -f conftest.$ac_objext conftest$ac_exeext
2223 if { { ac_try="$ac_link"
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2228 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229 $as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>conftest.err
2232 if test -s conftest.err; then
2233 grep -v '^ *+' conftest.err >conftest.er1
2234 cat conftest.er1 >&5
2235 mv -f conftest.er1 conftest.err
2237 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2238 test $ac_status = 0; } && {
2239 test -z "$ac_c_werror_flag" ||
2240 test ! -s conftest.err
2241 } && test -s conftest$ac_exeext && {
2242 test "$cross_compiling" = yes ||
2243 test -x conftest$ac_exeext
2247 $as_echo "$as_me: failed program was:" >&5
2248 sed 's/^/| /' conftest.$ac_ext >&5
2252 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2253 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2254 # interfere with the next link command; also delete a directory that is
2255 # left behind by Apple's compiler. We do this before executing the actions.
2256 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2257 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2258 as_fn_set_status $ac_retval
2260 } # ac_fn_c_try_link
2262 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2263 # -------------------------------------------------------
2264 # Tests whether HEADER exists and can be compiled using the include files in
2265 # INCLUDES, setting the cache variable VAR accordingly.
2266 ac_fn_c_check_header_compile ()
2268 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2270 $as_echo_n "checking for $2... " >&6; }
2271 if eval \${$3+:} false; then :
2272 $as_echo_n "(cached) " >&6
2274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2275 /* end confdefs.h. */
2279 if ac_fn_c_try_compile "$LINENO"; then :
2284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2288 $as_echo "$ac_res" >&6; }
2289 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2291 } # ac_fn_c_check_header_compile
2293 # ac_fn_c_try_run LINENO
2294 # ----------------------
2295 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2296 # that executables *can* be run.
2299 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2300 if { { ac_try="$ac_link"
2302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2303 *) ac_try_echo=$ac_try;;
2305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2306 $as_echo "$ac_try_echo"; } >&5
2307 (eval "$ac_link") 2>&5
2309 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2310 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2311 { { case "(($ac_try" in
2312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2313 *) ac_try_echo=$ac_try;;
2315 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2316 $as_echo "$ac_try_echo"; } >&5
2317 (eval "$ac_try") 2>&5
2319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; }; }; then :
2323 $as_echo "$as_me: program exited with status $ac_status" >&5
2324 $as_echo "$as_me: failed program was:" >&5
2325 sed 's/^/| /' conftest.$ac_ext >&5
2327 ac_retval=$ac_status
2329 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2330 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2331 as_fn_set_status $ac_retval
2335 # ac_fn_c_check_func LINENO FUNC VAR
2336 # ----------------------------------
2337 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2338 ac_fn_c_check_func ()
2340 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342 $as_echo_n "checking for $2... " >&6; }
2343 if eval \${$3+:} false; then :
2344 $as_echo_n "(cached) " >&6
2346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347 /* end confdefs.h. */
2349 #define $2 innocuous_$2
2351 # include <limits.h>
2353 # include <assert.h>
2360 #if defined __stub_$2 || defined __stub___$2
2371 if ac_fn_c_try_link "$LINENO"; then :
2376 rm -f core conftest.err conftest.$ac_objext \
2377 conftest$ac_exeext conftest.$ac_ext
2380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2381 $as_echo "$ac_res" >&6; }
2382 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2384 } # ac_fn_c_check_func
2386 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2387 # -------------------------------------------------------
2388 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2389 # the include files in INCLUDES and setting the cache variable VAR
2391 ac_fn_c_check_header_mongrel ()
2393 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2394 if eval \${$3+:} false; then :
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2396 $as_echo_n "checking for $2... " >&6; }
2397 if eval \${$3+:} false; then :
2398 $as_echo_n "(cached) " >&6
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2402 $as_echo "$ac_res" >&6; }
2404 # Is the header compilable?
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2406 $as_echo_n "checking $2 usability... " >&6; }
2407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2408 /* end confdefs.h. */
2412 if ac_fn_c_try_compile "$LINENO"; then :
2413 ac_header_compiler=yes
2415 ac_header_compiler=no
2417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2419 $as_echo "$ac_header_compiler" >&6; }
2421 # Is the header present?
2422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2423 $as_echo_n "checking $2 presence... " >&6; }
2424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2425 /* end confdefs.h. */
2428 if ac_fn_c_try_cpp "$LINENO"; then :
2429 ac_header_preproc=yes
2431 ac_header_preproc=no
2433 rm -f conftest.err conftest.i conftest.$ac_ext
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2435 $as_echo "$ac_header_preproc" >&6; }
2437 # So? What about this header?
2438 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2440 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2441 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2443 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2447 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2449 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2451 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2453 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2455 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2456 ( $as_echo "## ----------------------------------------------------------------------- ##
2457 ## Report this to a suitable curl mailing list: https://curl.haxx.se/mail/ ##
2458 ## ----------------------------------------------------------------------- ##"
2459 ) | sed "s/^/$as_me: WARNING: /" >&2
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2463 $as_echo_n "checking for $2... " >&6; }
2464 if eval \${$3+:} false; then :
2465 $as_echo_n "(cached) " >&6
2467 eval "$3=\$ac_header_compiler"
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2471 $as_echo "$ac_res" >&6; }
2473 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2475 } # ac_fn_c_check_header_mongrel
2477 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2478 # --------------------------------------------
2479 # Tries to find the compile-time value of EXPR in a program that includes
2480 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2482 ac_fn_c_compute_int ()
2484 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2485 if test "$cross_compiling" = yes; then
2486 # Depending upon the size, compute the lo and hi bounds.
2487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2488 /* end confdefs.h. */
2492 static int test_array [1 - 2 * !(($2) >= 0)];
2494 return test_array [0];
2500 if ac_fn_c_try_compile "$LINENO"; then :
2503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2504 /* end confdefs.h. */
2508 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2510 return test_array [0];
2516 if ac_fn_c_try_compile "$LINENO"; then :
2517 ac_hi=$ac_mid; break
2519 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2520 if test $ac_lo -le $ac_mid; then
2524 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2530 /* end confdefs.h. */
2534 static int test_array [1 - 2 * !(($2) < 0)];
2536 return test_array [0];
2542 if ac_fn_c_try_compile "$LINENO"; then :
2545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2546 /* end confdefs.h. */
2550 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2552 return test_array [0];
2558 if ac_fn_c_try_compile "$LINENO"; then :
2559 ac_lo=$ac_mid; break
2561 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2562 if test $ac_mid -le $ac_hi; then
2566 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2576 # Binary search between lo and hi bounds.
2577 while test "x$ac_lo" != "x$ac_hi"; do
2578 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2580 /* end confdefs.h. */
2584 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2586 return test_array [0];
2592 if ac_fn_c_try_compile "$LINENO"; then :
2595 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2605 /* end confdefs.h. */
2607 static long int longval () { return $2; }
2608 static unsigned long int ulongval () { return $2; }
2614 FILE *f = fopen ("conftest.val", "w");
2619 long int i = longval ();
2622 fprintf (f, "%ld", i);
2626 unsigned long int i = ulongval ();
2629 fprintf (f, "%lu", i);
2631 /* Do not output a trailing newline, as this causes \r\n confusion
2632 on some platforms. */
2633 return ferror (f) || fclose (f) != 0;
2639 if ac_fn_c_try_run "$LINENO"; then :
2640 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2644 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2645 conftest.$ac_objext conftest.beam conftest.$ac_ext
2649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2650 as_fn_set_status $ac_retval
2652 } # ac_fn_c_compute_int
2654 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2655 # -------------------------------------------
2656 # Tests whether TYPE exists after having included INCLUDES, setting cache
2657 # variable VAR accordingly.
2658 ac_fn_c_check_type ()
2660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2662 $as_echo_n "checking for $2... " >&6; }
2663 if eval \${$3+:} false; then :
2664 $as_echo_n "(cached) " >&6
2667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2668 /* end confdefs.h. */
2678 if ac_fn_c_try_compile "$LINENO"; then :
2679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2680 /* end confdefs.h. */
2690 if ac_fn_c_try_compile "$LINENO"; then :
2695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2701 $as_echo "$ac_res" >&6; }
2702 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2704 } # ac_fn_c_check_type
2706 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2707 # ----------------------------------------------------
2708 # Tries to find if the field MEMBER exists in type AGGR, after including
2709 # INCLUDES, setting cache variable VAR accordingly.
2710 ac_fn_c_check_member ()
2712 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2714 $as_echo_n "checking for $2.$3... " >&6; }
2715 if eval \${$4+:} false; then :
2716 $as_echo_n "(cached) " >&6
2718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2719 /* end confdefs.h. */
2730 if ac_fn_c_try_compile "$LINENO"; then :
2733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2734 /* end confdefs.h. */
2739 if (sizeof ac_aggr.$3)
2745 if ac_fn_c_try_compile "$LINENO"; then :
2750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2756 $as_echo "$ac_res" >&6; }
2757 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2759 } # ac_fn_c_check_member
2760 cat >config.log <<_ACEOF
2761 This file contains any messages produced by compilers while
2762 running configure, to aid debugging if configure makes a mistake.
2764 It was created by curl $as_me -, which was
2765 generated by GNU Autoconf 2.69. Invocation command line was
2777 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2778 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2779 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2780 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2781 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2783 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2784 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2786 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2787 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2788 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2789 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2790 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2791 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2792 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2800 test -z "$as_dir" && as_dir=.
2801 $as_echo "PATH: $as_dir"
2817 # Keep a trace of the command line.
2818 # Strip out --no-create and --no-recursion so they do not pile up.
2819 # Strip out --silent because we don't want to record it for future runs.
2820 # Also quote any args containing shell meta-characters.
2821 # Make two passes to allow for proper duplicate-argument suppression.
2825 ac_must_keep_next=false
2831 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2832 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2833 | -silent | --silent | --silen | --sile | --sil)
2836 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2839 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2841 as_fn_append ac_configure_args1 " '$ac_arg'"
2842 if test $ac_must_keep_next = true; then
2843 ac_must_keep_next=false # Got value, back to normal.
2846 *=* | --config-cache | -C | -disable-* | --disable-* \
2847 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2848 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2849 | -with-* | --with-* | -without-* | --without-* | --x)
2850 case "$ac_configure_args0 " in
2851 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2854 -* ) ac_must_keep_next=true ;;
2857 as_fn_append ac_configure_args " '$ac_arg'"
2862 { ac_configure_args0=; unset ac_configure_args0;}
2863 { ac_configure_args1=; unset ac_configure_args1;}
2865 # When interrupted or exit'd, cleanup temporary files, and complete
2866 # config.log. We remove comments because anyway the quotes in there
2867 # would cause problems or look ugly.
2868 # WARNING: Use '\'' to represent an apostrophe within the trap.
2869 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2870 trap 'exit_status=$?
2871 # Save into config.log some information that might help in debugging.
2875 $as_echo "## ---------------- ##
2876 ## Cache variables. ##
2877 ## ---------------- ##"
2879 # The following way of writing the cache mishandles newlines in values,
2881 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2882 eval ac_val=\$$ac_var
2886 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2887 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2890 _ | IFS | as_nl) ;; #(
2891 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2892 *) { eval $ac_var=; unset $ac_var;} ;;
2897 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2898 *${as_nl}ac_space=\ *)
2900 "s/'\''/'\''\\\\'\'''\''/g;
2901 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2904 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2911 $as_echo "## ----------------- ##
2912 ## Output variables. ##
2913 ## ----------------- ##"
2915 for ac_var in $ac_subst_vars
2917 eval ac_val=\$$ac_var
2919 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2921 $as_echo "$ac_var='\''$ac_val'\''"
2925 if test -n "$ac_subst_files"; then
2926 $as_echo "## ------------------- ##
2927 ## File substitutions. ##
2928 ## ------------------- ##"
2930 for ac_var in $ac_subst_files
2932 eval ac_val=\$$ac_var
2934 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2936 $as_echo "$ac_var='\''$ac_val'\''"
2941 if test -s confdefs.h; then
2942 $as_echo "## ----------- ##
2949 test "$ac_signal" != 0 &&
2950 $as_echo "$as_me: caught signal $ac_signal"
2951 $as_echo "$as_me: exit $exit_status"
2953 rm -f core *.core core.conftest.* &&
2954 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2957 for ac_signal in 1 2 13 15; do
2958 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2962 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2963 rm -f -r conftest* confdefs.h
2965 $as_echo "/* confdefs.h */" > confdefs.h
2967 # Predefined preprocessor variables.
2969 cat >>confdefs.h <<_ACEOF
2970 #define PACKAGE_NAME "$PACKAGE_NAME"
2973 cat >>confdefs.h <<_ACEOF
2974 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2977 cat >>confdefs.h <<_ACEOF
2978 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2981 cat >>confdefs.h <<_ACEOF
2982 #define PACKAGE_STRING "$PACKAGE_STRING"
2985 cat >>confdefs.h <<_ACEOF
2986 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2989 cat >>confdefs.h <<_ACEOF
2990 #define PACKAGE_URL "$PACKAGE_URL"
2994 # Let the site file select an alternate cache file if it wants to.
2995 # Prefer an explicitly selected file to automatically selected ones.
2998 if test -n "$CONFIG_SITE"; then
2999 # We do not want a PATH search for config.site.
3000 case $CONFIG_SITE in #((
3001 -*) ac_site_file1=./$CONFIG_SITE;;
3002 */*) ac_site_file1=$CONFIG_SITE;;
3003 *) ac_site_file1=./$CONFIG_SITE;;
3005 elif test "x$prefix" != xNONE; then
3006 ac_site_file1=$prefix/share/config.site
3007 ac_site_file2=$prefix/etc/config.site
3009 ac_site_file1=$ac_default_prefix/share/config.site
3010 ac_site_file2=$ac_default_prefix/etc/config.site
3012 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3014 test "x$ac_site_file" = xNONE && continue
3015 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3017 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3018 sed 's/^/| /' "$ac_site_file" >&5
3020 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3021 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3022 as_fn_error $? "failed to load site script $ac_site_file
3023 See \`config.log' for more details" "$LINENO" 5; }
3027 if test -r "$cache_file"; then
3028 # Some versions of bash will fail to source /dev/null (special files
3029 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3030 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3031 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3032 $as_echo "$as_me: loading cache $cache_file" >&6;}
3034 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3035 *) . "./$cache_file";;
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3040 $as_echo "$as_me: creating cache $cache_file" >&6;}
3044 # Check that the precious variables saved in the cache have kept the same
3046 ac_cache_corrupted=false
3047 for ac_var in $ac_precious_vars; do
3048 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3049 eval ac_new_set=\$ac_env_${ac_var}_set
3050 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3051 eval ac_new_val=\$ac_env_${ac_var}_value
3052 case $ac_old_set,$ac_new_set in
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3055 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3056 ac_cache_corrupted=: ;;
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3059 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3060 ac_cache_corrupted=: ;;
3063 if test "x$ac_old_val" != "x$ac_new_val"; then
3064 # differences in whitespace do not lead to failure.
3065 ac_old_val_w=`echo x $ac_old_val`
3066 ac_new_val_w=`echo x $ac_new_val`
3067 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3069 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3070 ac_cache_corrupted=:
3072 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3073 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3074 eval $ac_var=\$ac_old_val
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3077 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3079 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3082 # Pass precious variables to config.status.
3083 if test "$ac_new_set" = set; then
3085 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3086 *) ac_arg=$ac_var=$ac_new_val ;;
3088 case " $ac_configure_args " in
3089 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3090 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3094 if $ac_cache_corrupted; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3096 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3098 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3099 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3101 ## -------------------- ##
3102 ## Main body of script. ##
3103 ## -------------------- ##
3106 ac_cpp='$CPP $CPPFLAGS'
3107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117 # using curl-override.m4
3123 ac_config_headers="$ac_config_headers lib/curl_config.h"
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3128 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3129 # Check whether --enable-maintainer-mode was given.
3130 if test "${enable_maintainer_mode+set}" = set; then :
3131 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3133 USE_MAINTAINER_MODE=no
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3137 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3138 if test $USE_MAINTAINER_MODE = yes; then
3139 MAINTAINER_MODE_TRUE=
3140 MAINTAINER_MODE_FALSE='#'
3142 MAINTAINER_MODE_TRUE='#'
3143 MAINTAINER_MODE_FALSE=
3146 MAINT=$MAINTAINER_MODE_TRUE
3149 # Check whether --enable-silent-rules was given.
3150 if test "${enable_silent_rules+set}" = set; then :
3151 enableval=$enable_silent_rules;
3154 case $enable_silent_rules in # (((
3155 yes) AM_DEFAULT_VERBOSITY=0;;
3156 no) AM_DEFAULT_VERBOSITY=1;;
3157 *) AM_DEFAULT_VERBOSITY=0;;
3159 am_make=${MAKE-make}
3160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3161 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3162 if ${am_cv_make_support_nested_variables+:} false; then :
3163 $as_echo_n "(cached) " >&6
3165 if $as_echo 'TRUE=$(BAR$(V))
3171 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3172 am_cv_make_support_nested_variables=yes
3174 am_cv_make_support_nested_variables=no
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3178 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3179 if test $am_cv_make_support_nested_variables = yes; then
3181 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3183 AM_V=$AM_DEFAULT_VERBOSITY
3184 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3191 $as_echo_n "checking whether to enable debug build options... " >&6; }
3192 OPT_DEBUG_BUILD="default"
3193 # Check whether --enable-debug was given.
3194 if test "${enable_debug+set}" = set; then :
3195 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3198 case "$OPT_DEBUG_BUILD" in
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3210 $as_echo "$want_debug" >&6; }
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3214 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3215 OPT_COMPILER_OPTIMIZE="default"
3216 # Check whether --enable-optimize was given.
3217 if test "${enable_optimize+set}" = set; then :
3218 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3221 case "$OPT_COMPILER_OPTIMIZE" in
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3225 $as_echo "no" >&6; }
3228 if test "$want_debug" = "yes"; then
3229 want_optimize="assume_no"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3231 $as_echo "(assumed) no" >&6; }
3233 want_optimize="assume_yes"
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3235 $as_echo "(assumed) yes" >&6; }
3240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3241 $as_echo "yes" >&6; }
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3247 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3248 OPT_COMPILER_WARNINGS="default"
3249 # Check whether --enable-warnings was given.
3250 if test "${enable_warnings+set}" = set; then :
3251 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3254 case "$OPT_COMPILER_WARNINGS" in
3259 want_warnings="$want_debug"
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3266 $as_echo "$want_warnings" >&6; }
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3270 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3271 OPT_COMPILER_WERROR="default"
3272 # Check whether --enable-werror was given.
3273 if test "${enable_werror+set}" = set; then :
3274 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3277 case "$OPT_COMPILER_WERROR" in
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3289 $as_echo "$want_werror" >&6; }
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3293 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3294 OPT_CURLDEBUG_BUILD="default"
3295 # Check whether --enable-curldebug was given.
3296 if test "${enable_curldebug+set}" = set; then :
3297 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3300 case "$OPT_CURLDEBUG_BUILD" in
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3304 $as_echo "no" >&6; }
3307 if test "$want_debug" = "yes"; then
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3309 $as_echo "(assumed) yes" >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3312 $as_echo "no" >&6; }
3314 want_curldebug_assumed="yes"
3315 want_curldebug="$want_debug"
3318 want_curldebug="yes"
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3320 $as_echo "yes" >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3326 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3327 OPT_SYMBOL_HIDING="default"
3328 # Check whether --enable-symbol-hiding was given.
3329 if test "${enable_symbol_hiding+set}" = set; then :
3330 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3333 # Check whether --enable-hidden-symbols was given.
3334 if test "${enable_hidden_symbols+set}" = set; then :
3335 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3338 case "$OPT_SYMBOL_HIDING" in
3340 want_symbol_hiding="no"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3345 want_symbol_hiding="yes"
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3347 $as_echo "yes" >&6; }
3350 want_symbol_hiding="yes"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3358 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3360 # Check whether --enable-ares was given.
3361 if test "${enable_ares+set}" = set; then :
3362 enableval=$enable_ares; OPT_ARES=$enableval
3374 if test -n "$enableval" && test "$enableval" != "yes"; then
3375 want_ares_path="$enableval"
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3380 $as_echo "$want_ares" >&6; }
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3384 $as_echo_n "checking whether to disable dependency on -lrt... " >&6; }
3386 # Check whether --enable-rt was given.
3387 if test "${enable_rt+set}" = set; then :
3388 enableval=$enable_rt; OPT_RT=$enableval
3394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3395 $as_echo "yes" >&6; }
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3400 $as_echo "(assumed no)" >&6; }
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3405 $as_echo "no" >&6; }
3411 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3414 if test -z "$xc_configure_preamble_result"; then
3415 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3419 # Check that 'PATH_SEPARATOR' has already been set.
3422 if test -z "$xc_PATH_SEPARATOR"; then
3423 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3425 if test -z "$PATH_SEPARATOR"; then
3426 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3429 $as_echo_n "checking for path separator... " >&6; }
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3431 $as_echo "$PATH_SEPARATOR" >&6; }
3432 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3434 $as_echo_n "checking for initial path separator... " >&6; }
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3436 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3437 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3442 # save the configure arguments
3444 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3447 CURL_CFLAG_EXTRAS=""
3448 if test X"$want_werror" = Xyes; then
3449 CURL_CFLAG_EXTRAS="-Werror"
3453 if test -z "$SED"; then
3454 # Extract the first word of "sed", so it can be a program name with args.
3455 set dummy sed; ac_word=$2
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3457 $as_echo_n "checking for $ac_word... " >&6; }
3458 if ${ac_cv_path_SED+:} false; then :
3459 $as_echo_n "(cached) " >&6
3463 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3467 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3468 for as_dir in $as_dummy
3471 test -z "$as_dir" && as_dir=.
3472 for ac_exec_ext in '' $ac_executable_extensions; do
3473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3474 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3482 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3487 if test -n "$SED"; then
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3489 $as_echo "$SED" >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3492 $as_echo "no" >&6; }
3496 if test -z "$SED" || test "$SED" = "not_found"; then
3497 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3502 if test -z "$GREP"; then
3503 # Extract the first word of "grep", so it can be a program name with args.
3504 set dummy grep; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if ${ac_cv_path_GREP+:} false; then :
3508 $as_echo_n "(cached) " >&6
3512 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3516 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3517 for as_dir in $as_dummy
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3523 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3531 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3535 GREP=$ac_cv_path_GREP
3536 if test -n "$GREP"; then
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3538 $as_echo "$GREP" >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3541 $as_echo "no" >&6; }
3545 if test -z "$GREP" || test "$GREP" = "not_found"; then
3546 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3551 if test -z "$EGREP"; then
3552 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3554 $as_echo_n "checking for egrep... " >&6; }
3556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3557 $as_echo "$EGREP" >&6; }
3559 # Extract the first word of "egrep", so it can be a program name with args.
3560 set dummy egrep; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_path_EGREP+:} false; then :
3564 $as_echo_n "(cached) " >&6
3568 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3572 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3573 for as_dir in $as_dummy
3576 test -z "$as_dir" && as_dir=.
3577 for ac_exec_ext in '' $ac_executable_extensions; do
3578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3579 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3587 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3591 EGREP=$ac_cv_path_EGREP
3592 if test -n "$EGREP"; then
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3594 $as_echo "$EGREP" >&6; }
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3603 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3604 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3608 if test -z "$AR"; then
3609 if test -n "$ac_tool_prefix"; then
3610 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3611 set dummy ${ac_tool_prefix}ar; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_path_AR+:} false; then :
3615 $as_echo_n "(cached) " >&6
3619 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3624 for as_dir in $as_dummy
3627 test -z "$as_dir" && as_dir=.
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3630 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3631 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642 if test -n "$AR"; then
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3644 $as_echo "$AR" >&6; }
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3647 $as_echo "no" >&6; }
3652 if test -z "$ac_cv_path_AR"; then
3654 # Extract the first word of "ar", so it can be a program name with args.
3655 set dummy ar; ac_word=$2
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3657 $as_echo_n "checking for $ac_word... " >&6; }
3658 if ${ac_cv_path_ac_pt_AR+:} false; then :
3659 $as_echo_n "(cached) " >&6
3663 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3667 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3668 for as_dir in $as_dummy
3671 test -z "$as_dir" && as_dir=.
3672 for ac_exec_ext in '' $ac_executable_extensions; do
3673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3674 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3685 ac_pt_AR=$ac_cv_path_ac_pt_AR
3686 if test -n "$ac_pt_AR"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3688 $as_echo "$ac_pt_AR" >&6; }
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3694 if test "x$ac_pt_AR" = x; then
3697 case $cross_compiling:$ac_tool_warned in
3699 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3700 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3701 ac_tool_warned=yes ;;
3709 if test -z "$AR" || test "$AR" = "not_found"; then
3710 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3717 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
3719 xc_prog_cc_prev_IFS=$IFS
3720 xc_prog_cc_prev_LIBS=$LIBS
3721 xc_prog_cc_prev_CFLAGS=$CFLAGS
3722 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3723 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3728 for xc_word in $LIBS; do
3738 if test $xc_bad_var_libs = yes; then
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3740 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3741 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3742 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3746 xc_bad_var_ldflags=no
3747 for xc_word in $LDFLAGS; do
3750 xc_bad_var_ldflags=yes
3753 xc_bad_var_ldflags=yes
3756 xc_bad_var_ldflags=yes
3759 xc_bad_var_ldflags=yes
3763 if test $xc_bad_var_ldflags = yes; then
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3765 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3766 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3767 for xc_word in $LDFLAGS; do
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3771 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3775 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3779 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3783 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3790 xc_bad_var_cppflags=no
3791 for xc_word in $CPPFLAGS; do
3794 xc_bad_var_cppflags=yes
3796 -L* | --library-path=*)
3797 xc_bad_var_cppflags=yes
3800 xc_bad_var_cppflags=yes
3804 if test $xc_bad_var_cppflags = yes; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3806 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3807 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3808 for xc_word in $CPPFLAGS; do
3811 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3812 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3814 -L* | --library-path=*)
3815 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3816 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3820 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3827 xc_bad_var_cflags=no
3828 for xc_word in $CFLAGS; do
3831 xc_bad_var_cflags=yes
3834 xc_bad_var_cflags=yes
3837 xc_bad_var_cflags=yes
3840 xc_bad_var_cflags=yes
3842 -L* | --library-path=*)
3843 xc_bad_var_cflags=yes
3846 xc_bad_var_cflags=yes
3850 if test $xc_bad_var_cflags = yes; then
3851 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3852 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3853 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3854 for xc_word in $CFLAGS; do
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3858 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3862 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3866 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3870 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3872 -L* | --library-path=*)
3873 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3874 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3878 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3884 if test $xc_bad_var_libs = yes ||
3885 test $xc_bad_var_cflags = yes ||
3886 test $xc_bad_var_ldflags = yes ||
3887 test $xc_bad_var_cppflags = yes; then
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3889 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3893 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3894 if test -f "$ac_dir/install-sh"; then
3896 ac_install_sh="$ac_aux_dir/install-sh -c"
3898 elif test -f "$ac_dir/install.sh"; then
3900 ac_install_sh="$ac_aux_dir/install.sh -c"
3902 elif test -f "$ac_dir/shtool"; then
3904 ac_install_sh="$ac_aux_dir/shtool install -c"
3908 if test -z "$ac_aux_dir"; then
3909 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3912 # These three variables are undocumented and unsupported,
3913 # and are intended to be withdrawn in a future Autoconf release.
3914 # They can cause serious problems if a builder's source tree is in a directory
3915 # whose full name contains unusual characters.
3916 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3917 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3918 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3921 # Find a good install program. We prefer a C program (faster),
3922 # so one script is as good as another. But avoid the broken or
3923 # incompatible versions:
3924 # SysV /etc/install, /usr/sbin/install
3925 # SunOS /usr/etc/install
3926 # IRIX /sbin/install
3928 # AmigaOS /C/install, which installs bootblocks on floppy discs
3929 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3930 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3931 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3932 # OS/2's system install, which has a completely different semantic
3933 # ./install, which can be erroneously created by make from ./install.sh.
3934 # Reject install programs that cannot install multiple files.
3935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3936 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3937 if test -z "$INSTALL"; then
3938 if ${ac_cv_path_install+:} false; then :
3939 $as_echo_n "(cached) " >&6
3941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3945 test -z "$as_dir" && as_dir=.
3946 # Account for people who put trailing slashes in PATH elements.
3947 case $as_dir/ in #((
3948 ./ | .// | /[cC]/* | \
3949 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3950 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3953 # OSF1 and SCO ODT 3.0 have their own names for install.
3954 # Don't use installbsd from OSF since it installs stuff as root
3956 for ac_prog in ginstall scoinst install; do
3957 for ac_exec_ext in '' $ac_executable_extensions; do
3958 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3959 if test $ac_prog = install &&
3960 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3961 # AIX install. It has an incompatible calling convention.
3963 elif test $ac_prog = install &&
3964 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3965 # program-specific install script used by HP pwplus--don't use.
3968 rm -rf conftest.one conftest.two conftest.dir
3969 echo one > conftest.one
3970 echo two > conftest.two
3972 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3973 test -s conftest.one && test -s conftest.two &&
3974 test -s conftest.dir/conftest.one &&
3975 test -s conftest.dir/conftest.two
3977 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3990 rm -rf conftest.one conftest.two conftest.dir
3993 if test "${ac_cv_path_install+set}" = set; then
3994 INSTALL=$ac_cv_path_install
3996 # As a last resort, use the slow shell script. Don't cache a
3997 # value for INSTALL within a source directory, because that will
3998 # break other packages using the cache if that directory is
3999 # removed, or if the value is a relative name.
4000 INSTALL=$ac_install_sh
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4004 $as_echo "$INSTALL" >&6; }
4006 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4007 # It thinks the first close brace ends the variable substitution.
4008 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4010 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4012 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4014 # Expand $ac_aux_dir to an absolute path.
4015 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4018 ac_cpp='$CPP $CPPFLAGS'
4019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4022 if test -n "$ac_tool_prefix"; then
4023 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4024 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026 $as_echo_n "checking for $ac_word... " >&6; }
4027 if ${ac_cv_prog_CC+:} false; then :
4028 $as_echo_n "(cached) " >&6
4030 if test -n "$CC"; then
4031 ac_cv_prog_CC="$CC" # Let the user override the test.
4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
4039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4040 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4051 if test -n "$CC"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4053 $as_echo "$CC" >&6; }
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056 $as_echo "no" >&6; }
4061 if test -z "$ac_cv_prog_CC"; then
4063 # Extract the first word of "gcc", so it can be a program name with args.
4064 set dummy gcc; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4068 $as_echo_n "(cached) " >&6
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4080 ac_cv_prog_ac_ct_CC="gcc"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4099 if test "x$ac_ct_CC" = x; then
4102 case $cross_compiling:$ac_tool_warned in
4104 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4105 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4106 ac_tool_warned=yes ;;
4114 if test -z "$CC"; then
4115 if test -n "$ac_tool_prefix"; then
4116 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4117 set dummy ${ac_tool_prefix}cc; ac_word=$2
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4119 $as_echo_n "checking for $ac_word... " >&6; }
4120 if ${ac_cv_prog_CC+:} false; then :
4121 $as_echo_n "(cached) " >&6
4123 if test -n "$CC"; then
4124 ac_cv_prog_CC="$CC" # Let the user override the test.
4126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4130 test -z "$as_dir" && as_dir=.
4131 for ac_exec_ext in '' $ac_executable_extensions; do
4132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4133 ac_cv_prog_CC="${ac_tool_prefix}cc"
4134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4144 if test -n "$CC"; then
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4146 $as_echo "$CC" >&6; }
4148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4149 $as_echo "no" >&6; }
4155 if test -z "$CC"; then
4156 # Extract the first word of "cc", so it can be a program name with args.
4157 set dummy cc; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_CC+:} false; then :
4161 $as_echo_n "(cached) " >&6
4163 if test -n "$CC"; then
4164 ac_cv_prog_CC="$CC" # Let the user override the test.
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4175 ac_prog_rejected=yes
4179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4186 if test $ac_prog_rejected = yes; then
4187 # We found a bogon in the path, so make sure we never use it.
4188 set dummy $ac_cv_prog_CC
4190 if test $# != 0; then
4191 # We chose a different compiler from the bogus one.
4192 # However, it has the same basename, so the bogon will be chosen
4193 # first if we set CC to just the basename; use the full file name.
4195 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4201 if test -n "$CC"; then
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4203 $as_echo "$CC" >&6; }
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206 $as_echo "no" >&6; }
4211 if test -z "$CC"; then
4212 if test -n "$ac_tool_prefix"; then
4213 for ac_prog in cl.exe
4215 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4216 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4218 $as_echo_n "checking for $ac_word... " >&6; }
4219 if ${ac_cv_prog_CC+:} false; then :
4220 $as_echo_n "(cached) " >&6
4222 if test -n "$CC"; then
4223 ac_cv_prog_CC="$CC" # Let the user override the test.
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4229 test -z "$as_dir" && as_dir=.
4230 for ac_exec_ext in '' $ac_executable_extensions; do
4231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4232 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4243 if test -n "$CC"; then
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4245 $as_echo "$CC" >&6; }
4247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4248 $as_echo "no" >&6; }
4252 test -n "$CC" && break
4255 if test -z "$CC"; then
4257 for ac_prog in cl.exe
4259 # Extract the first word of "$ac_prog", so it can be a program name with args.
4260 set dummy $ac_prog; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 if test -n "$ac_ct_CC"; then
4267 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_CC="$ac_prog"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4286 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4287 if test -n "$ac_ct_CC"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4289 $as_echo "$ac_ct_CC" >&6; }
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4296 test -n "$ac_ct_CC" && break
4299 if test "x$ac_ct_CC" = x; then
4302 case $cross_compiling:$ac_tool_warned in
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4305 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4306 ac_tool_warned=yes ;;
4315 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4317 as_fn_error $? "no acceptable C compiler found in \$PATH
4318 See \`config.log' for more details" "$LINENO" 5; }
4320 # Provide some information about the compiler.
4321 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4324 for ac_option in --version -v -V -qversion; do
4325 { { ac_try="$ac_compiler $ac_option >&5"
4327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328 *) ac_try_echo=$ac_try;;
4330 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4331 $as_echo "$ac_try_echo"; } >&5
4332 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4334 if test -s conftest.err; then
4336 ... rest of stderr output deleted ...
4337 10q' conftest.err >conftest.er1
4338 cat conftest.er1 >&5
4340 rm -f conftest.er1 conftest.err
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; }
4345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4346 /* end confdefs.h. */
4355 ac_clean_files_save=$ac_clean_files
4356 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4357 # Try to create an executable without -o first, disregard a.out.
4358 # It will help us diagnose broken compilers, and finding out an intuition
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4361 $as_echo_n "checking whether the C compiler works... " >&6; }
4362 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4364 # The possible output files:
4365 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4368 for ac_file in $ac_files
4371 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4372 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4377 if { { ac_try="$ac_link_default"
4379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4380 *) ac_try_echo=$ac_try;;
4382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4383 $as_echo "$ac_try_echo"; } >&5
4384 (eval "$ac_link_default") 2>&5
4386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4387 test $ac_status = 0; }; then :
4388 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4389 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4390 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4391 # so that the user can short-circuit this test for compilers unknown to
4393 for ac_file in $ac_files ''
4395 test -f "$ac_file" || continue
4397 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4400 # We found the default executable, but exeext='' is most
4404 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4406 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4408 # We set ac_cv_exeext here because the later test for it is not
4409 # safe: cross compilers may not add the suffix if given an `-o'
4410 # argument, so we may need to know it at that point already.
4411 # Even if this section looks crufty: it has the advantage of
4418 test "$ac_cv_exeext" = no && ac_cv_exeext=
4423 if test -z "$ac_file"; then :
4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4425 $as_echo "no" >&6; }
4426 $as_echo "$as_me: failed program was:" >&5
4427 sed 's/^/| /' conftest.$ac_ext >&5
4429 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4430 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4431 as_fn_error 77 "C compiler cannot create executables
4432 See \`config.log' for more details" "$LINENO" 5; }
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4435 $as_echo "yes" >&6; }
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4438 $as_echo_n "checking for C compiler default output file name... " >&6; }
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4440 $as_echo "$ac_file" >&6; }
4441 ac_exeext=$ac_cv_exeext
4443 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4444 ac_clean_files=$ac_clean_files_save
4445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4446 $as_echo_n "checking for suffix of executables... " >&6; }
4447 if { { ac_try="$ac_link"
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4452 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4453 $as_echo "$ac_try_echo"; } >&5
4454 (eval "$ac_link") 2>&5
4456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4457 test $ac_status = 0; }; then :
4458 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4459 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4460 # work properly (i.e., refer to `conftest.exe'), while it won't with
4462 for ac_file in conftest.exe conftest conftest.*; do
4463 test -f "$ac_file" || continue
4465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4466 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4474 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4475 See \`config.log' for more details" "$LINENO" 5; }
4477 rm -f conftest conftest$ac_cv_exeext
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4479 $as_echo "$ac_cv_exeext" >&6; }
4481 rm -f conftest.$ac_ext
4482 EXEEXT=$ac_cv_exeext
4484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4485 /* end confdefs.h. */
4489 FILE *f = fopen ("conftest.out", "w");
4490 return ferror (f) || fclose (f) != 0;
4496 ac_clean_files="$ac_clean_files conftest.out"
4497 # Check that the compiler produces executables we can run. If not, either
4498 # the compiler is broken, or we cross compile.
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4500 $as_echo_n "checking whether we are cross compiling... " >&6; }
4501 if test "$cross_compiling" != yes; then
4502 { { ac_try="$ac_link"
4504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4505 *) ac_try_echo=$ac_try;;
4507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4508 $as_echo "$ac_try_echo"; } >&5
4509 (eval "$ac_link") 2>&5
4511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4512 test $ac_status = 0; }
4513 if { ac_try='./conftest$ac_cv_exeext'
4514 { { case "(($ac_try" in
4515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4516 *) ac_try_echo=$ac_try;;
4518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4519 $as_echo "$ac_try_echo"; } >&5
4520 (eval "$ac_try") 2>&5
4522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4523 test $ac_status = 0; }; }; then
4526 if test "$cross_compiling" = maybe; then
4529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4531 as_fn_error $? "cannot run C compiled programs.
4532 If you meant to cross compile, use \`--host'.
4533 See \`config.log' for more details" "$LINENO" 5; }
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4538 $as_echo "$cross_compiling" >&6; }
4540 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4541 ac_clean_files=$ac_clean_files_save
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4543 $as_echo_n "checking for suffix of object files... " >&6; }
4544 if ${ac_cv_objext+:} false; then :
4545 $as_echo_n "(cached) " >&6
4547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4548 /* end confdefs.h. */
4557 rm -f conftest.o conftest.obj
4558 if { { ac_try="$ac_compile"
4560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4561 *) ac_try_echo=$ac_try;;
4563 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4564 $as_echo "$ac_try_echo"; } >&5
4565 (eval "$ac_compile") 2>&5
4567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4568 test $ac_status = 0; }; then :
4569 for ac_file in conftest.o conftest.obj conftest.*; do
4570 test -f "$ac_file" || continue;
4572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4573 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4578 $as_echo "$as_me: failed program was:" >&5
4579 sed 's/^/| /' conftest.$ac_ext >&5
4581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4582 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4583 as_fn_error $? "cannot compute suffix of object files: cannot compile
4584 See \`config.log' for more details" "$LINENO" 5; }
4586 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4589 $as_echo "$ac_cv_objext" >&6; }
4590 OBJEXT=$ac_cv_objext
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4593 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4594 if ${ac_cv_c_compiler_gnu+:} false; then :
4595 $as_echo_n "(cached) " >&6
4597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4598 /* end confdefs.h. */
4610 if ac_fn_c_try_compile "$LINENO"; then :
4615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4616 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4620 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4621 if test $ac_compiler_gnu = yes; then
4626 ac_test_CFLAGS=${CFLAGS+set}
4627 ac_save_CFLAGS=$CFLAGS
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4629 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4630 if ${ac_cv_prog_cc_g+:} false; then :
4631 $as_echo_n "(cached) " >&6
4633 ac_save_c_werror_flag=$ac_c_werror_flag
4634 ac_c_werror_flag=yes
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4647 if ac_fn_c_try_compile "$LINENO"; then :
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4661 if ac_fn_c_try_compile "$LINENO"; then :
4664 ac_c_werror_flag=$ac_save_c_werror_flag
4666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4667 /* end confdefs.h. */
4676 if ac_fn_c_try_compile "$LINENO"; then :
4679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4684 ac_c_werror_flag=$ac_save_c_werror_flag
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4687 $as_echo "$ac_cv_prog_cc_g" >&6; }
4688 if test "$ac_test_CFLAGS" = set; then
4689 CFLAGS=$ac_save_CFLAGS
4690 elif test $ac_cv_prog_cc_g = yes; then
4691 if test "$GCC" = yes; then
4697 if test "$GCC" = yes; then
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4704 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4705 if ${ac_cv_prog_cc_c89+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 ac_cv_prog_cc_c89=no
4710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4711 /* end confdefs.h. */
4715 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4716 struct buf { int x; };
4717 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4718 static char *e (p, i)
4724 static char *f (char * (*g) (char **, int), char **p, ...)
4729 s = g (p, va_arg (v,int));
4734 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4735 function prototypes and stuff, but not '\xHH' hex character constants.
4736 These don't provoke an error unfortunately, instead are silently treated
4737 as 'x'. The following induces an error, until -std is added to get
4738 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4739 array size at least. It's necessary to write '\x00'==0 to get something
4740 that's true only with -std. */
4741 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4743 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4744 inside strings and character constants. */
4746 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4748 int test (int i, double x);
4749 struct s1 {int (*f) (int a);};
4750 struct s2 {int (*f) (double a);};
4751 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4756 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4761 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4762 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4764 CC="$ac_save_CC $ac_arg"
4765 if ac_fn_c_try_compile "$LINENO"; then :
4766 ac_cv_prog_cc_c89=$ac_arg
4768 rm -f core conftest.err conftest.$ac_objext
4769 test "x$ac_cv_prog_cc_c89" != "xno" && break
4771 rm -f conftest.$ac_ext
4776 case "x$ac_cv_prog_cc_c89" in
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4779 $as_echo "none needed" >&6; } ;;
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4782 $as_echo "unsupported" >&6; } ;;
4784 CC="$CC $ac_cv_prog_cc_c89"
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4786 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4788 if test "x$ac_cv_prog_cc_c89" != xno; then :
4793 ac_cpp='$CPP $CPPFLAGS'
4794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4799 ac_cpp='$CPP $CPPFLAGS'
4800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4804 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4805 if ${am_cv_prog_cc_c_o+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4818 # Make sure it works both with $CC and with simple cc.
4819 # Following AC_PROG_CC_C_O, we do the test twice because some
4820 # compilers refuse to overwrite an existing .o file with -o,
4821 # though they will create one.
4822 am_cv_prog_cc_c_o=yes
4824 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4825 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4828 (exit $ac_status); } \
4829 && test -f conftest2.$ac_objext; then
4832 am_cv_prog_cc_c_o=no
4836 rm -f core conftest*
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4840 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4841 if test "$am_cv_prog_cc_c_o" != yes; then
4842 # Losing compiler, so override with the script.
4843 # FIXME: It is wrong to rewrite CC.
4844 # But if we don't then we get into trouble of one sort or another.
4845 # A longer-term fix would be to have automake use am__CC in this case,
4846 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4847 CC="$am_aux_dir/compile $CC"
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4858 ac_cpp='$CPP $CPPFLAGS'
4859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4863 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4864 # On Suns, sometimes $CPP names a directory.
4865 if test -n "$CPP" && test -d "$CPP"; then
4868 if test -z "$CPP"; then
4869 if ${ac_cv_prog_CPP+:} false; then :
4870 $as_echo_n "(cached) " >&6
4872 # Double quotes because CPP needs to be expanded
4873 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4876 for ac_c_preproc_warn_flag in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4887 # include <limits.h>
4889 # include <assert.h>
4893 if ac_fn_c_try_cpp "$LINENO"; then :
4896 # Broken: fails on valid input.
4899 rm -f conftest.err conftest.i conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #include <ac_nonexistent.h>
4907 if ac_fn_c_try_cpp "$LINENO"; then :
4908 # Broken: success on invalid input.
4911 # Passes both tests.
4915 rm -f conftest.err conftest.i conftest.$ac_ext
4918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4919 rm -f conftest.i conftest.err conftest.$ac_ext
4920 if $ac_preproc_ok; then :
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4933 $as_echo "$CPP" >&6; }
4935 for ac_c_preproc_warn_flag in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4946 # include <limits.h>
4948 # include <assert.h>
4952 if ac_fn_c_try_cpp "$LINENO"; then :
4955 # Broken: fails on valid input.
4958 rm -f conftest.err conftest.i conftest.$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4966 if ac_fn_c_try_cpp "$LINENO"; then :
4967 # Broken: success on invalid input.
4970 # Passes both tests.
4974 rm -f conftest.err conftest.i conftest.$ac_ext
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.i conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then :
4982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4985 See \`config.log' for more details" "$LINENO" 5; }
4989 ac_cpp='$CPP $CPPFLAGS'
4990 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4995 IFS=$xc_prog_cc_prev_IFS
4996 LIBS=$xc_prog_cc_prev_LIBS
4997 CFLAGS=$xc_prog_cc_prev_CFLAGS
4998 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4999 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5007 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5008 if ${ac_cv_path_SED+:} false; then :
5009 $as_echo_n "(cached) " >&6
5011 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5012 for ac_i in 1 2 3 4 5 6 7; do
5013 ac_script="$ac_script$as_nl$ac_script"
5015 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5016 { ac_script=; unset ac_script;}
5017 if test -z "$SED"; then
5018 ac_path_SED_found=false
5019 # Loop through the user's path and test for each of PROGNAME-LIST
5020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5024 test -z "$as_dir" && as_dir=.
5025 for ac_prog in sed gsed; do
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5028 as_fn_executable_p "$ac_path_SED" || continue
5029 # Check for GNU ac_path_SED and select it if it is found.
5030 # Check for GNU $ac_path_SED
5031 case `"$ac_path_SED" --version 2>&1` in
5033 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5036 $as_echo_n 0123456789 >"conftest.in"
5039 cat "conftest.in" "conftest.in" >"conftest.tmp"
5040 mv "conftest.tmp" "conftest.in"
5041 cp "conftest.in" "conftest.nl"
5042 $as_echo '' >> "conftest.nl"
5043 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5044 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5045 as_fn_arith $ac_count + 1 && ac_count=$as_val
5046 if test $ac_count -gt ${ac_path_SED_max-0}; then
5047 # Best one so far, save it but keep looking for a better one
5048 ac_cv_path_SED="$ac_path_SED"
5049 ac_path_SED_max=$ac_count
5051 # 10*(2^10) chars as input seems more than enough
5052 test $ac_count -gt 10 && break
5054 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5057 $ac_path_SED_found && break 3
5062 if test -z "$ac_cv_path_SED"; then
5063 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5071 $as_echo "$ac_cv_path_SED" >&6; }
5072 SED="$ac_cv_path_SED"
5075 if test "$GCC" = "yes" ; then :
5079 # allow to override gcov location
5081 # Check whether --with-gcov was given.
5082 if test "${with_gcov+set}" = set; then :
5083 withval=$with_gcov; _AX_CODE_COVERAGE_GCOV_PROG_WITH=$with_gcov
5085 _AX_CODE_COVERAGE_GCOV_PROG_WITH=gcov
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with code coverage support" >&5
5090 $as_echo_n "checking whether to build with code coverage support... " >&6; }
5091 # Check whether --enable-code-coverage was given.
5092 if test "${enable_code_coverage+set}" = set; then :
5093 enableval=$enable_code_coverage;
5095 enable_code_coverage=no
5099 if test x$enable_code_coverage = xyes; then
5100 CODE_COVERAGE_ENABLED_TRUE=
5101 CODE_COVERAGE_ENABLED_FALSE='#'
5103 CODE_COVERAGE_ENABLED_TRUE='#'
5104 CODE_COVERAGE_ENABLED_FALSE=
5107 CODE_COVERAGE_ENABLED=$enable_code_coverage
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_code_coverage" >&5
5110 $as_echo "$enable_code_coverage" >&6; }
5112 if test "$enable_code_coverage" = "yes" ; then :
5115 if test -n "$ac_tool_prefix"; then
5116 # Extract the first word of "${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5117 set dummy ${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5119 $as_echo_n "checking for $ac_word... " >&6; }
5120 if ${ac_cv_prog_GCOV+:} false; then :
5121 $as_echo_n "(cached) " >&6
5123 if test -n "$GCOV"; then
5124 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_prog_GCOV="${ac_tool_prefix}$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5134 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 GCOV=$ac_cv_prog_GCOV
5144 if test -n "$GCOV"; then
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5146 $as_echo "$GCOV" >&6; }
5148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5149 $as_echo "no" >&6; }
5154 if test -z "$ac_cv_prog_GCOV"; then
5156 # Extract the first word of "$_AX_CODE_COVERAGE_GCOV_PROG_WITH", so it can be a program name with args.
5157 set dummy $_AX_CODE_COVERAGE_GCOV_PROG_WITH; ac_word=$2
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5159 $as_echo_n "checking for $ac_word... " >&6; }
5160 if ${ac_cv_prog_ac_ct_GCOV+:} false; then :
5161 $as_echo_n "(cached) " >&6
5163 if test -n "$ac_ct_GCOV"; then
5164 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170 test -z "$as_dir" && as_dir=.
5171 for ac_exec_ext in '' $ac_executable_extensions; do
5172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5173 ac_cv_prog_ac_ct_GCOV="$_AX_CODE_COVERAGE_GCOV_PROG_WITH"
5174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5183 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5184 if test -n "$ac_ct_GCOV"; then
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5186 $as_echo "$ac_ct_GCOV" >&6; }
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5189 $as_echo "no" >&6; }
5192 if test "x$ac_ct_GCOV" = x; then
5195 case $cross_compiling:$ac_tool_warned in
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5198 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5199 ac_tool_warned=yes ;;
5204 GCOV="$ac_cv_prog_GCOV"
5207 if test "X$GCOV" = "X:"; then :
5208 as_fn_error $? "gcov is needed to do coverage" "$LINENO" 5
5212 if test "$GCC" = "no" ; then :
5214 as_fn_error $? "not compiling with gcc, which is required for gcov code coverage" "$LINENO" 5
5218 # Extract the first word of "lcov", so it can be a program name with args.
5219 set dummy lcov; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_LCOV+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$LCOV"; then
5226 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_LCOV="lcov"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 LCOV=$ac_cv_prog_LCOV
5246 if test -n "$LCOV"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5248 $as_echo "$LCOV" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 # Extract the first word of "genhtml", so it can be a program name with args.
5256 set dummy genhtml; ac_word=$2
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5258 $as_echo_n "checking for $ac_word... " >&6; }
5259 if ${ac_cv_prog_GENHTML+:} false; then :
5260 $as_echo_n "(cached) " >&6
5262 if test -n "$GENHTML"; then
5263 ac_cv_prog_GENHTML="$GENHTML" # Let the user override the test.
5265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5269 test -z "$as_dir" && as_dir=.
5270 for ac_exec_ext in '' $ac_executable_extensions; do
5271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5272 ac_cv_prog_GENHTML="genhtml"
5273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 GENHTML=$ac_cv_prog_GENHTML
5283 if test -n "$GENHTML"; then
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GENHTML" >&5
5285 $as_echo "$GENHTML" >&6; }
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5288 $as_echo "no" >&6; }
5293 if test -z "$LCOV" ; then :
5295 as_fn_error $? "To enable code coverage reporting you must have lcov installed" "$LINENO" 5
5299 if test -z "$GENHTML" ; then :
5301 as_fn_error $? "Could not find genhtml from the lcov package" "$LINENO" 5
5305 CODE_COVERAGE_CPPFLAGS="-DNDEBUG"
5306 CODE_COVERAGE_CFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5307 CODE_COVERAGE_CXXFLAGS="-O0 -g -fprofile-arcs -ftest-coverage"
5308 CODE_COVERAGE_LIBS="-lgcov"
5309 CODE_COVERAGE_LDFLAGS="$CODE_COVERAGE_LIBS"
5317 CODE_COVERAGE_RULES_CHECK='
5318 -$(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) -k check
5319 $(A''M_V_at)$(MAKE) $(AM_MAKEFLAGS) code-coverage-capture
5321 CODE_COVERAGE_RULES_CAPTURE='
5322 $(code_coverage_v_lcov_cap)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --capture --output-file "$(CODE_COVERAGE_OUTPUT_FILE).tmp" --test-name "$(call code_coverage_sanitize,$(PACKAGE_NAME)-$(PACKAGE_VERSION))" --no-checksum --compat-libtool $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_OPTIONS)
5323 $(code_coverage_v_lcov_ign)$(LCOV) $(code_coverage_quiet) $(addprefix --directory ,$(CODE_COVERAGE_DIRECTORY)) --remove "$(CODE_COVERAGE_OUTPUT_FILE).tmp" "/tmp/*" $(CODE_COVERAGE_IGNORE_PATTERN) --output-file "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_LCOV_SHOPTS) $(CODE_COVERAGE_LCOV_RMOPTS)
5324 -@rm -f $(CODE_COVERAGE_OUTPUT_FILE).tmp
5325 $(code_coverage_v_genhtml)LANG=C $(GENHTML) $(code_coverage_quiet) $(addprefix --prefix ,$(CODE_COVERAGE_DIRECTORY)) --output-directory "$(CODE_COVERAGE_OUTPUT_DIRECTORY)" --title "$(PACKAGE_NAME)-$(PACKAGE_VERSION) Code Coverage" --legend --show-details "$(CODE_COVERAGE_OUTPUT_FILE)" $(CODE_COVERAGE_GENHTML_OPTIONS)
5326 @echo "file://$(abs_builddir)/$(CODE_COVERAGE_OUTPUT_DIRECTORY)/index.html"
5328 CODE_COVERAGE_RULES_CLEAN='
5329 clean: code-coverage-clean
5330 distclean: code-coverage-clean
5331 code-coverage-clean:
5332 -$(LCOV) --directory $(top_builddir) -z
5333 -rm -rf $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_FILE).tmp $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5334 -find . \( -name "*.gcda" -o -name "*.gcno" -o -name "*.gcov" \) -delete
5339 CODE_COVERAGE_RULES_CHECK='
5340 @echo "Need to reconfigure with --enable-code-coverage"
5342 CODE_COVERAGE_RULES_CAPTURE="$CODE_COVERAGE_RULES_CHECK"
5343 CODE_COVERAGE_RULES_CLEAN=''
5347 CODE_COVERAGE_RULES='
5351 # - CODE_COVERAGE_DIRECTORY: Top-level directory for code coverage reporting.
5352 # Multiple directories may be specified, separated by whitespace.
5353 # (Default: $(top_builddir))
5354 # - CODE_COVERAGE_OUTPUT_FILE: Filename and path for the .info file generated
5355 # by lcov for code coverage. (Default:
5356 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info)
5357 # - CODE_COVERAGE_OUTPUT_DIRECTORY: Directory for generated code coverage
5358 # reports to be created. (Default:
5359 # $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage)
5360 # - CODE_COVERAGE_BRANCH_COVERAGE: Set to 1 to enforce branch coverage,
5361 # set to 0 to disable it and leave empty to stay with the default.
5363 # - CODE_COVERAGE_LCOV_SHOPTS_DEFAULT: Extra options shared between both lcov
5364 # instances. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5365 # - CODE_COVERAGE_LCOV_SHOPTS: Extra options to shared between both lcov
5366 # instances. (Default: $CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5367 # - CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH: --gcov-tool pathtogcov
5368 # - CODE_COVERAGE_LCOV_OPTIONS_DEFAULT: Extra options to pass to the
5369 # collecting lcov instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5370 # - CODE_COVERAGE_LCOV_OPTIONS: Extra options to pass to the collecting lcov
5371 # instance. (Default: $CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5372 # - CODE_COVERAGE_LCOV_RMOPTS_DEFAULT: Extra options to pass to the filtering
5373 # lcov instance. (Default: empty)
5374 # - CODE_COVERAGE_LCOV_RMOPTS: Extra options to pass to the filtering lcov
5375 # instance. (Default: $CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5376 # - CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT: Extra options to pass to the
5377 # genhtml instance. (Default: based on $CODE_COVERAGE_BRANCH_COVERAGE)
5378 # - CODE_COVERAGE_GENHTML_OPTIONS: Extra options to pass to the genhtml
5379 # instance. (Default: $CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5380 # - CODE_COVERAGE_IGNORE_PATTERN: Extra glob pattern of files to ignore
5382 # The generated report will be titled using the $(PACKAGE_NAME) and
5383 # $(PACKAGE_VERSION). In order to add the current git hash to the title,
5384 # use the git-version-gen script, available online.
5386 # Optional variables
5387 CODE_COVERAGE_DIRECTORY ?= $(top_builddir)
5388 CODE_COVERAGE_OUTPUT_FILE ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage.info
5389 CODE_COVERAGE_OUTPUT_DIRECTORY ?= $(PACKAGE_NAME)-$(PACKAGE_VERSION)-coverage
5390 CODE_COVERAGE_BRANCH_COVERAGE ?=
5391 CODE_COVERAGE_LCOV_SHOPTS_DEFAULT ?= $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5392 --rc lcov_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5393 CODE_COVERAGE_LCOV_SHOPTS ?= $(CODE_COVERAGE_LCOV_SHOPTS_DEFAULT)
5394 CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH ?= --gcov-tool "$(GCOV)"
5395 CODE_COVERAGE_LCOV_OPTIONS_DEFAULT ?= $(CODE_COVERAGE_LCOV_OPTIONS_GCOVPATH)
5396 CODE_COVERAGE_LCOV_OPTIONS ?= $(CODE_COVERAGE_LCOV_OPTIONS_DEFAULT)
5397 CODE_COVERAGE_LCOV_RMOPTS_DEFAULT ?=
5398 CODE_COVERAGE_LCOV_RMOPTS ?= $(CODE_COVERAGE_LCOV_RMOPTS_DEFAULT)
5399 CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT ?=\
5400 $(if $(CODE_COVERAGE_BRANCH_COVERAGE),\
5401 --rc genhtml_branch_coverage=$(CODE_COVERAGE_BRANCH_COVERAGE))
5402 CODE_COVERAGE_GENHTML_OPTIONS ?= $(CODE_COVERAGE_GENHTML_OPTIONS_DEFAULT)
5403 CODE_COVERAGE_IGNORE_PATTERN ?=
5406 GITIGNOREFILES += $(CODE_COVERAGE_OUTPUT_FILE) $(CODE_COVERAGE_OUTPUT_DIRECTORY)
5408 code_coverage_v_lcov_cap = $(code_coverage_v_lcov_cap_$(V))
5409 code_coverage_v_lcov_cap_ = $(code_coverage_v_lcov_cap_$(AM_DEFAULT_VERBOSITY))
5410 code_coverage_v_lcov_cap_0 = @echo " LCOV --capture"\
5411 $(CODE_COVERAGE_OUTPUT_FILE);
5412 code_coverage_v_lcov_ign = $(code_coverage_v_lcov_ign_$(V))
5413 code_coverage_v_lcov_ign_ = $(code_coverage_v_lcov_ign_$(AM_DEFAULT_VERBOSITY))
5414 code_coverage_v_lcov_ign_0 = @echo " LCOV --remove /tmp/*"\
5415 $(CODE_COVERAGE_IGNORE_PATTERN);
5416 code_coverage_v_genhtml = $(code_coverage_v_genhtml_$(V))
5417 code_coverage_v_genhtml_ = $(code_coverage_v_genhtml_$(AM_DEFAULT_VERBOSITY))
5418 code_coverage_v_genhtml_0 = @echo " GEN " $(CODE_COVERAGE_OUTPUT_DIRECTORY);
5419 code_coverage_quiet = $(code_coverage_quiet_$(V))
5420 code_coverage_quiet_ = $(code_coverage_quiet_$(AM_DEFAULT_VERBOSITY))
5421 code_coverage_quiet_0 = --quiet
5423 # sanitizes the test-name: replaces with underscores: dashes and dots
5424 code_coverage_sanitize = $(subst -,_,$(subst .,_,$(1)))
5426 # Use recursive makes in order to ignore errors during check
5427 check-code-coverage:'"$CODE_COVERAGE_RULES_CHECK"'
5429 # Capture code coverage data
5430 code-coverage-capture: code-coverage-capture-hook'"$CODE_COVERAGE_RULES_CAPTURE"'
5432 # Hook rule executed before code-coverage-capture, overridable by the user
5433 code-coverage-capture-hook:
5435 '"$CODE_COVERAGE_RULES_CLEAN"'
5437 A''M_DISTCHECK_CONFIGURE_FLAGS ?=
5438 A''M_DISTCHECK_CONFIGURE_FLAGS += --disable-code-coverage
5440 .PHONY: check-code-coverage code-coverage-capture code-coverage-capture-hook code-coverage-clean
5447 # not using GCC so pass a test below - CODE_COVERAGE_ENABLED_TRUE is not zero length
5448 CODE_COVERAGE_ENABLED_TRUE='#'
5452 am__api_version='1.15'
5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5455 $as_echo_n "checking whether build environment is sane... " >&6; }
5456 # Reject unsafe characters in $srcdir or the absolute working directory
5457 # name. Accept space and tab only in the latter.
5461 *[\\\"\#\$\&\'\`$am_lf]*)
5462 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5465 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5466 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5469 # Do 'set' in a subshell so we don't clobber the current shell's
5470 # arguments. Must try -L first in case configure is actually a
5471 # symlink; some systems play weird games with the mod time of symlinks
5472 # (eg FreeBSD returns the mod time of the symlink's containing
5476 for am_try in 1 2; do
5477 echo "timestamp, slept: $am_has_slept" > conftest.file
5478 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5479 if test "$*" = "X"; then
5481 set X `ls -t "$srcdir/configure" conftest.file`
5483 if test "$*" != "X $srcdir/configure conftest.file" \
5484 && test "$*" != "X conftest.file $srcdir/configure"; then
5486 # If neither matched, then we have a broken ls. This can happen
5487 # if, for instance, CONFIG_SHELL is bash and it inherits a
5488 # broken ls alias from the environment. This has actually
5489 # happened. Such a system could not be considered "sane".
5490 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5491 alias in your environment" "$LINENO" 5
5493 if test "$2" = conftest.file || test $am_try -eq 2; then
5500 test "$2" = conftest.file
5506 as_fn_error $? "newly created file is older than distributed files!
5507 Check your system clock" "$LINENO" 5
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511 # If we didn't sleep, we still need to ensure time stamps of config.status and
5512 # generated files are strictly newer.
5514 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5521 test "$program_prefix" != NONE &&
5522 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5523 # Use a double $ so make ignores it.
5524 test "$program_suffix" != NONE &&
5525 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5526 # Double any \ or $.
5527 # By default was `s,x,x', remove it if useless.
5528 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5529 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5531 if test x"${MISSING+set}" != xset; then
5534 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5536 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5539 # Use eval to expand $SHELL
5540 if eval "$MISSING --is-lightweight"; then
5541 am_missing_run="$MISSING "
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5545 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5548 if test x"${install_sh+set}" != xset; then
5551 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5553 install_sh="\${SHELL} $am_aux_dir/install-sh"
5557 # Installed binaries are usually stripped using 'strip' when the user
5558 # run "make install-strip". However 'strip' might not be the right
5559 # tool to use in cross-compilation environments, therefore Automake
5560 # will honor the 'STRIP' environment variable to overrule this program.
5561 if test "$cross_compiling" != no; then
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5564 set dummy ${ac_tool_prefix}strip; ac_word=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_STRIP+:} false; then :
5568 $as_echo_n "(cached) " >&6
5570 if test -n "$STRIP"; then
5571 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir=.
5578 for ac_exec_ext in '' $ac_executable_extensions; do
5579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 STRIP=$ac_cv_prog_STRIP
5591 if test -n "$STRIP"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5593 $as_echo "$STRIP" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5601 if test -z "$ac_cv_prog_STRIP"; then
5603 # Extract the first word of "strip", so it can be a program name with args.
5604 set dummy strip; ac_word=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5608 $as_echo_n "(cached) " >&6
5610 if test -n "$ac_ct_STRIP"; then
5611 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5617 test -z "$as_dir" && as_dir=.
5618 for ac_exec_ext in '' $ac_executable_extensions; do
5619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_STRIP="strip"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5631 if test -n "$ac_ct_STRIP"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5633 $as_echo "$ac_ct_STRIP" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5639 if test "x$ac_ct_STRIP" = x; then
5642 case $cross_compiling:$ac_tool_warned in
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned=yes ;;
5651 STRIP="$ac_cv_prog_STRIP"
5655 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5658 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5659 if test -z "$MKDIR_P"; then
5660 if ${ac_cv_path_mkdir+:} false; then :
5661 $as_echo_n "(cached) " >&6
5663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5664 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5667 test -z "$as_dir" && as_dir=.
5668 for ac_prog in mkdir gmkdir; do
5669 for ac_exec_ext in '' $ac_executable_extensions; do
5670 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5671 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5672 'mkdir (GNU coreutils) '* | \
5673 'mkdir (coreutils) '* | \
5674 'mkdir (fileutils) '4.1*)
5675 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5685 test -d ./--version && rmdir ./--version
5686 if test "${ac_cv_path_mkdir+set}" = set; then
5687 MKDIR_P="$ac_cv_path_mkdir -p"
5689 # As a last resort, use the slow shell script. Don't cache a
5690 # value for MKDIR_P within a source directory, because that will
5691 # break other packages using the cache if that directory is
5692 # removed, or if the value is a relative name.
5693 MKDIR_P="$ac_install_sh -d"
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5697 $as_echo "$MKDIR_P" >&6; }
5699 for ac_prog in gawk mawk nawk awk
5701 # Extract the first word of "$ac_prog", so it can be a program name with args.
5702 set dummy $ac_prog; ac_word=$2
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5704 $as_echo_n "checking for $ac_word... " >&6; }
5705 if ${ac_cv_prog_AWK+:} false; then :
5706 $as_echo_n "(cached) " >&6
5708 if test -n "$AWK"; then
5709 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 for ac_exec_ext in '' $ac_executable_extensions; do
5717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5718 ac_cv_prog_AWK="$ac_prog"
5719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 if test -n "$AWK"; then
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5731 $as_echo "$AWK" >&6; }
5733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5734 $as_echo "no" >&6; }
5738 test -n "$AWK" && break
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5742 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5744 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5745 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5746 $as_echo_n "(cached) " >&6
5748 cat >conftest.make <<\_ACEOF
5751 @echo '@@@%%%=$(MAKE)=@@@%%%'
5753 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5754 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5756 eval ac_cv_prog_make_${ac_make}_set=yes;;
5758 eval ac_cv_prog_make_${ac_make}_set=no;;
5762 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5764 $as_echo "yes" >&6; }
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 SET_MAKE="MAKE=${MAKE-make}"
5772 rm -rf .tst 2>/dev/null
5773 mkdir .tst 2>/dev/null
5774 if test -d .tst; then
5779 rmdir .tst 2>/dev/null
5781 DEPDIR="${am__leading_dot}deps"
5783 ac_config_commands="$ac_config_commands depfiles"
5786 am_make=${MAKE-make}
5787 cat > confinc << 'END'
5789 @echo this is the am__doit target
5792 # If we don't find an include directive, just comment out the code.
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5794 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5798 # First try GNU make style include.
5799 echo "include confinc" > confmf
5800 # Ignore all kinds of additional output from 'make'.
5801 case `$am_make -s -f confmf 2> /dev/null` in #(
5802 *the\ am__doit\ target*)
5808 # Now try BSD make style include.
5809 if test "$am__include" = "#"; then
5810 echo '.include "confinc"' > confmf
5811 case `$am_make -s -f confmf 2> /dev/null` in #(
5812 *the\ am__doit\ target*)
5813 am__include=.include
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5822 $as_echo "$_am_result" >&6; }
5823 rm -f confinc confmf
5825 # Check whether --enable-dependency-tracking was given.
5826 if test "${enable_dependency_tracking+set}" = set; then :
5827 enableval=$enable_dependency_tracking;
5830 if test "x$enable_dependency_tracking" != xno; then
5831 am_depcomp="$ac_aux_dir/depcomp"
5835 if test "x$enable_dependency_tracking" != xno; then
5844 ## --------------------------------------- ##
5845 ## Start of automake initialization code ##
5846 ## --------------------------------------- ##
5848 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5849 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5850 # is not polluted with repeated "-I."
5851 am__isrc=' -I$(srcdir)'
5852 # test to see if srcdir already configured
5853 if test -f $srcdir/config.status; then
5854 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5858 # test whether we have cygpath
5859 if test -z "$CYGPATH_W"; then
5860 if (cygpath --version) >/dev/null 2>/dev/null; then
5861 CYGPATH_W='cygpath -w'
5868 # Define the identity of the package.
5873 cat >>confdefs.h <<_ACEOF
5874 #define PACKAGE "$PACKAGE"
5878 cat >>confdefs.h <<_ACEOF
5879 #define VERSION "$VERSION"
5882 # Some tools Automake needs.
5884 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5887 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5890 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5893 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5896 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5898 # For better backward compatibility. To be removed once Automake 1.9.x
5899 # dies out for good. For more background, see:
5900 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5901 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5902 mkdir_p='$(MKDIR_P)'
5904 # We need awk for the "check" target (and possibly the TAP driver). The
5905 # system "awk" is bad on some platforms.
5906 # Always define AMTAR for backward compatibility. Yes, it's still used
5907 # in the wild :-( We should find a proper way to deprecate it ...
5911 # We'll loop over all known methods to create a tar archive until one works.
5912 _am_tools='gnutar pax cpio none'
5914 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5920 depcc="$CC" am_compiler_list=
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5923 $as_echo_n "checking dependency style of $depcc... " >&6; }
5924 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5925 $as_echo_n "(cached) " >&6
5927 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5928 # We make a subdir and do the tests there. Otherwise we can end up
5929 # making bogus files that we don't know about and never remove. For
5930 # instance it was reported that on HP-UX the gcc test will end up
5931 # making a dummy file named 'D' -- because '-MD' means "put the output
5935 # Copy depcomp to subdir because otherwise we won't find it if we're
5936 # using a relative directory.
5937 cp "$am_depcomp" conftest.dir
5939 # We will build objects and dependencies in a subdirectory because
5940 # it helps to detect inapplicable dependency modes. For instance
5941 # both Tru64's cc and ICC support -MD to output dependencies as a
5942 # side effect of compilation, but ICC will put the dependencies in
5943 # the current directory while Tru64 will put them in the object
5947 am_cv_CC_dependencies_compiler_type=none
5948 if test "$am_compiler_list" = ""; then
5949 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5952 case " $depcc " in #(
5953 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5956 for depmode in $am_compiler_list; do
5957 # Setup a source with many dependencies, because some compilers
5958 # like to wrap large dependency lists on column 80 (with \), and
5959 # we should not choose a depcomp mode which is confused by this.
5961 # We need to recreate these files for each test, as the compiler may
5962 # overwrite some of them when testing with obscure command lines.
5963 # This happens at least with the AIX C compiler.
5965 for i in 1 2 3 4 5 6; do
5966 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5967 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5968 # Solaris 10 /bin/sh.
5969 echo '/* dummy */' > sub/conftst$i.h
5971 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5973 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5974 # mode. It turns out that the SunPro C++ compiler does not properly
5975 # handle '-M -o', and we need to detect this. Also, some Intel
5976 # versions had trouble with output in subdirs.
5977 am__obj=sub/conftest.${OBJEXT-o}
5978 am__minus_obj="-o $am__obj"
5981 # This depmode causes a compiler race in universal mode.
5982 test "$am__universal" = false || continue
5985 # After this tag, mechanisms are not by side-effect, so they'll
5986 # only be used when explicitly requested.
5987 if test "x$enable_dependency_tracking" = xyes; then
5993 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5994 # This compiler won't grok '-c -o', but also, the minuso test has
5995 # not run yet. These depmodes are late enough in the game, and
5996 # so weak that their functioning should not be impacted.
5997 am__obj=conftest.${OBJEXT-o}
6002 if depmode=$depmode \
6003 source=sub/conftest.c object=$am__obj \
6004 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6005 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6006 >/dev/null 2>conftest.err &&
6007 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6008 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6009 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6010 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6011 # icc doesn't choke on unknown options, it will just issue warnings
6012 # or remarks (even with -Werror). So we grep stderr for any message
6013 # that says an option was ignored or not supported.
6014 # When given -MP, icc 7.0 and 7.1 complain thusly:
6015 # icc: Command line warning: ignoring option '-M'; no argument required
6016 # The diagnosis changed in icc 8.0:
6017 # icc: Command line remark: option '-MP' not supported
6018 if (grep 'ignoring option' conftest.err ||
6019 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6020 am_cv_CC_dependencies_compiler_type=$depmode
6029 am_cv_CC_dependencies_compiler_type=none
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6034 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6035 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6038 test "x$enable_dependency_tracking" != xno \
6039 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6041 am__fastdepCC_FALSE='#'
6043 am__fastdepCC_TRUE='#'
6044 am__fastdepCC_FALSE=
6049 # POSIX will say in a future version that running "rm -f" with no argument
6050 # is OK; and we want to be able to make that assumption in our Makefile
6051 # recipes. So use an aggressive probe to check that the usage we want is
6052 # actually supported "in the wild" to an acceptable degree.
6053 # See automake bug#10828.
6054 # To make any issue more visible, cause the running configure to be aborted
6055 # by default if the 'rm' program in use doesn't match our expectations; the
6056 # user can still override this though.
6057 if rm -f && rm -fr && rm -rf; then : OK; else
6061 Your 'rm' program seems unable to run without file operands specified
6062 on the command line, even when the '-f' option is present. This is contrary
6063 to the behaviour of most rm programs out there, and not conforming with
6064 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6066 Please tell bug-automake@gnu.org about your system, including the value
6067 of your $PATH and any error possibly output before this message. This
6068 can help us improve future automake versions.
6071 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6072 echo 'Configuration will proceed anyway, since you have set the' >&2
6073 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6077 Aborting the configuration process, to ensure you take notice of the issue.
6079 You can download and install GNU coreutils to get an 'rm' implementation
6080 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6082 If you want to complete the configuration process using your problematic
6083 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6084 to "yes", and re-run configure.
6087 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6091 ## ------------------------------------- ##
6092 ## End of automake initialization code ##
6093 ## ------------------------------------- ##
6096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6097 $as_echo_n "checking curl version... " >&6; }
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6099 $as_echo "$CURLVERSION" >&6; }
6103 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6106 PKGADD_PKG="HAXXcurl"
6107 PKGADD_NAME="curl - a client that groks URLs"
6108 PKGADD_VENDOR="curl.haxx.se"
6113 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,mbedtls,cyassl,axtls,winssl,darwinssl} )"
6114 curl_ssh_msg="no (--with-libssh2)"
6115 curl_zlib_msg="no (--with-zlib)"
6116 curl_brotli_msg="no (--with-brotli)"
6117 curl_gss_msg="no (--with-gssapi)"
6118 curl_tls_srp_msg="no (--enable-tls-srp)"
6119 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6120 curl_ipv6_msg="no (--enable-ipv6)"
6121 curl_unix_sockets_msg="no (--enable-unix-sockets)"
6122 curl_idn_msg="no (--with-{libidn2,winidn})"
6123 curl_manual_msg="no (--enable-manual)"
6124 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6125 curl_verbose_msg="enabled (--disable-verbose)"
6126 curl_sspi_msg="no (--enable-sspi)"
6127 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6128 curl_ldaps_msg="no (--enable-ldaps)"
6129 curl_rtsp_msg="no (--enable-rtsp)"
6130 curl_rtmp_msg="no (--with-librtmp)"
6131 curl_mtlnk_msg="no (--with-libmetalink)"
6132 curl_psl_msg="no (--with-libpsl)"
6136 INITIAL_LDFLAGS=$LDFLAGS
6140 # Make sure we can run config.sub.
6141 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
6142 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
6144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6145 $as_echo_n "checking build system type... " >&6; }
6146 if ${ac_cv_build+:} false; then :
6147 $as_echo_n "(cached) " >&6
6149 ac_build_alias=$build_alias
6150 test "x$ac_build_alias" = x &&
6151 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
6152 test "x$ac_build_alias" = x &&
6153 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6154 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
6155 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
6158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6159 $as_echo "$ac_cv_build" >&6; }
6160 case $ac_cv_build in
6162 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6165 ac_save_IFS=$IFS; IFS='-'
6171 # Remember, the first character of IFS is used to create $*,
6172 # except with old shells:
6175 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6179 $as_echo_n "checking host system type... " >&6; }
6180 if ${ac_cv_host+:} false; then :
6181 $as_echo_n "(cached) " >&6
6183 if test "x$host_alias" = x; then
6184 ac_cv_host=$ac_cv_build
6186 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
6187 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
6191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6192 $as_echo "$ac_cv_host" >&6; }
6195 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6198 ac_save_IFS=$IFS; IFS='-'
6204 # Remember, the first character of IFS is used to create $*,
6205 # except with old shells:
6208 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6212 cat >>confdefs.h <<_ACEOF
6213 #define OS "${host}"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6221 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6222 if ${ac_cv_path_GREP+:} false; then :
6223 $as_echo_n "(cached) " >&6
6225 if test -z "$GREP"; then
6226 ac_path_GREP_found=false
6227 # Loop through the user's path and test for each of PROGNAME-LIST
6228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6232 test -z "$as_dir" && as_dir=.
6233 for ac_prog in grep ggrep; do
6234 for ac_exec_ext in '' $ac_executable_extensions; do
6235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6236 as_fn_executable_p "$ac_path_GREP" || continue
6237 # Check for GNU ac_path_GREP and select it if it is found.
6238 # Check for GNU $ac_path_GREP
6239 case `"$ac_path_GREP" --version 2>&1` in
6241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6244 $as_echo_n 0123456789 >"conftest.in"
6247 cat "conftest.in" "conftest.in" >"conftest.tmp"
6248 mv "conftest.tmp" "conftest.in"
6249 cp "conftest.in" "conftest.nl"
6250 $as_echo 'GREP' >> "conftest.nl"
6251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6253 as_fn_arith $ac_count + 1 && ac_count=$as_val
6254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6255 # Best one so far, save it but keep looking for a better one
6256 ac_cv_path_GREP="$ac_path_GREP"
6257 ac_path_GREP_max=$ac_count
6259 # 10*(2^10) chars as input seems more than enough
6260 test $ac_count -gt 10 && break
6262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6265 $ac_path_GREP_found && break 3
6270 if test -z "$ac_cv_path_GREP"; then
6271 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6274 ac_cv_path_GREP=$GREP
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6279 $as_echo "$ac_cv_path_GREP" >&6; }
6280 GREP="$ac_cv_path_GREP"
6283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6284 $as_echo_n "checking for egrep... " >&6; }
6285 if ${ac_cv_path_EGREP+:} false; then :
6286 $as_echo_n "(cached) " >&6
6288 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6289 then ac_cv_path_EGREP="$GREP -E"
6291 if test -z "$EGREP"; then
6292 ac_path_EGREP_found=false
6293 # Loop through the user's path and test for each of PROGNAME-LIST
6294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6295 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6298 test -z "$as_dir" && as_dir=.
6299 for ac_prog in egrep; do
6300 for ac_exec_ext in '' $ac_executable_extensions; do
6301 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6302 as_fn_executable_p "$ac_path_EGREP" || continue
6303 # Check for GNU ac_path_EGREP and select it if it is found.
6304 # Check for GNU $ac_path_EGREP
6305 case `"$ac_path_EGREP" --version 2>&1` in
6307 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6310 $as_echo_n 0123456789 >"conftest.in"
6313 cat "conftest.in" "conftest.in" >"conftest.tmp"
6314 mv "conftest.tmp" "conftest.in"
6315 cp "conftest.in" "conftest.nl"
6316 $as_echo 'EGREP' >> "conftest.nl"
6317 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6318 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6319 as_fn_arith $ac_count + 1 && ac_count=$as_val
6320 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6321 # Best one so far, save it but keep looking for a better one
6322 ac_cv_path_EGREP="$ac_path_EGREP"
6323 ac_path_EGREP_max=$ac_count
6325 # 10*(2^10) chars as input seems more than enough
6326 test $ac_count -gt 10 && break
6328 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6331 $ac_path_EGREP_found && break 3
6336 if test -z "$ac_cv_path_EGREP"; then
6337 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6340 ac_cv_path_EGREP=$EGREP
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6346 $as_echo "$ac_cv_path_EGREP" >&6; }
6347 EGREP="$ac_cv_path_EGREP"
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6353 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6355 /* end confdefs.h. */
6362 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6363 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6366 $as_echo "yes" >&6; }
6367 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6373 $as_echo "no" >&6; }
6382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6383 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6385 /* end confdefs.h. */
6395 force compilation error
6403 if ac_fn_c_try_compile "$LINENO"; then :
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6406 $as_echo "yes" >&6; }
6407 tmp_thread_safe_initially_defined="yes"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6412 $as_echo "no" >&6; }
6413 tmp_thread_safe_initially_defined="no"
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6418 if test "$tmp_thread_safe_initially_defined" = "no"; then
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6420 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6423 aix[123].* | aix4.[012].*)
6424 tmp_need_thread_safe="no"
6427 tmp_need_thread_safe="yes"
6430 tmp_need_thread_safe="no"
6434 if test "$tmp_need_thread_safe" = "yes"; then
6435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6436 $as_echo "yes" >&6; }
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6439 $as_echo "no" >&6; }
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6444 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6445 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6446 test "$tmp_need_thread_safe" = "yes"; then
6449 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6451 cat >>confdefs.h <<_EOF
6452 #ifndef _THREAD_SAFE
6453 # define _THREAD_SAFE
6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6458 $as_echo "yes" >&6; }
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6461 $as_echo "no" >&6; }
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6468 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6480 force compilation error
6488 if ac_fn_c_try_compile "$LINENO"; then :
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6491 $as_echo "yes" >&6; }
6492 tmp_reentrant_initially_defined="yes"
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6498 tmp_reentrant_initially_defined="no"
6501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6503 if test "$tmp_reentrant_initially_defined" = "no"; then
6504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6505 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6509 tmp_need_reentrant="yes"
6512 tmp_need_reentrant="no"
6516 if test "$tmp_need_reentrant" = "no"; then
6518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6519 /* end confdefs.h. */
6535 if ac_fn_c_try_compile "$LINENO"; then :
6544 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6545 if test "$tmp_errno" = "yes"; then
6546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6547 /* end confdefs.h. */
6558 force compilation error
6566 if ac_fn_c_try_compile "$LINENO"; then :
6568 tmp_errno="errno_macro_defined"
6572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6573 /* end confdefs.h. */
6585 force compilation error
6593 if ac_fn_c_try_compile "$LINENO"; then :
6595 tmp_errno="errno_macro_needs_reentrant"
6596 tmp_need_reentrant="yes"
6599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606 if test "$tmp_need_reentrant" = "no"; then
6608 if test "$tmp_need_reentrant" = "no"; then
6610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6611 /* end confdefs.h. */
6614 #define gmtime_r innocuous_gmtime_r
6616 # include <limits.h>
6618 # include <assert.h>
6625 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6637 if ac_fn_c_try_link "$LINENO"; then :
6646 rm -f core conftest.err conftest.$ac_objext \
6647 conftest$ac_exeext conftest.$ac_ext
6648 if test "$tmp_gmtime_r" = "yes"; then
6649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6650 /* end confdefs.h. */
6652 #include <sys/types.h>
6656 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6657 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6659 tmp_gmtime_r="proto_declared"
6663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6664 /* end confdefs.h. */
6667 #include <sys/types.h>
6671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6672 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6674 tmp_gmtime_r="proto_needs_reentrant"
6675 tmp_need_reentrant="yes"
6687 if test "$tmp_need_reentrant" = "no"; then
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690 /* end confdefs.h. */
6693 #define localtime_r innocuous_localtime_r
6695 # include <limits.h>
6697 # include <assert.h>
6703 char localtime_r ();
6704 #if defined __stub_localtime_r || defined __stub___localtime_r
6710 return localtime_r ();
6716 if ac_fn_c_try_link "$LINENO"; then :
6718 tmp_localtime_r="yes"
6722 tmp_localtime_r="no"
6725 rm -f core conftest.err conftest.$ac_objext \
6726 conftest$ac_exeext conftest.$ac_ext
6727 if test "$tmp_localtime_r" = "yes"; then
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6731 #include <sys/types.h>
6735 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6736 $EGREP "localtime_r" >/dev/null 2>&1; then :
6738 tmp_localtime_r="proto_declared"
6742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6743 /* end confdefs.h. */
6746 #include <sys/types.h>
6750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6751 $EGREP "localtime_r" >/dev/null 2>&1; then :
6753 tmp_localtime_r="proto_needs_reentrant"
6754 tmp_need_reentrant="yes"
6766 if test "$tmp_need_reentrant" = "no"; then
6768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6769 /* end confdefs.h. */
6772 #define strerror_r innocuous_strerror_r
6774 # include <limits.h>
6776 # include <assert.h>
6783 #if defined __stub_strerror_r || defined __stub___strerror_r
6789 return strerror_r ();
6795 if ac_fn_c_try_link "$LINENO"; then :
6797 tmp_strerror_r="yes"
6804 rm -f core conftest.err conftest.$ac_objext \
6805 conftest$ac_exeext conftest.$ac_ext
6806 if test "$tmp_strerror_r" = "yes"; then
6807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6808 /* end confdefs.h. */
6810 #include <sys/types.h>
6814 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6815 $EGREP "strerror_r" >/dev/null 2>&1; then :
6817 tmp_strerror_r="proto_declared"
6821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6822 /* end confdefs.h. */
6825 #include <sys/types.h>
6829 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6830 $EGREP "strerror_r" >/dev/null 2>&1; then :
6832 tmp_strerror_r="proto_needs_reentrant"
6833 tmp_need_reentrant="yes"
6845 if test "$tmp_need_reentrant" = "no"; then
6847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6848 /* end confdefs.h. */
6851 #define strtok_r innocuous_strtok_r
6853 # include <limits.h>
6855 # include <assert.h>
6862 #if defined __stub_strtok_r || defined __stub___strtok_r
6874 if ac_fn_c_try_link "$LINENO"; then :
6883 rm -f core conftest.err conftest.$ac_objext \
6884 conftest$ac_exeext conftest.$ac_ext
6885 if test "$tmp_strtok_r" = "yes"; then
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6889 #include <sys/types.h>
6893 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6894 $EGREP "strtok_r" >/dev/null 2>&1; then :
6896 tmp_strtok_r="proto_declared"
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6904 #include <sys/types.h>
6908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6909 $EGREP "strtok_r" >/dev/null 2>&1; then :
6911 tmp_strtok_r="proto_needs_reentrant"
6912 tmp_need_reentrant="yes"
6924 if test "$tmp_need_reentrant" = "no"; then
6926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6927 /* end confdefs.h. */
6930 #define inet_ntoa_r innocuous_inet_ntoa_r
6932 # include <limits.h>
6934 # include <assert.h>
6940 char inet_ntoa_r ();
6941 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
6947 return inet_ntoa_r ();
6953 if ac_fn_c_try_link "$LINENO"; then :
6955 tmp_inet_ntoa_r="yes"
6959 tmp_inet_ntoa_r="no"
6962 rm -f core conftest.err conftest.$ac_objext \
6963 conftest$ac_exeext conftest.$ac_ext
6964 if test "$tmp_inet_ntoa_r" = "yes"; then
6965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6966 /* end confdefs.h. */
6968 #include <sys/types.h>
6969 #include <sys/socket.h>
6970 #include <netinet/in.h>
6971 #include <arpa/inet.h>
6974 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6975 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6977 tmp_inet_ntoa_r="proto_declared"
6981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6982 /* end confdefs.h. */
6985 #include <sys/types.h>
6986 #include <sys/socket.h>
6987 #include <netinet/in.h>
6988 #include <arpa/inet.h>
6991 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6992 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
6994 tmp_inet_ntoa_r="proto_needs_reentrant"
6995 tmp_need_reentrant="yes"
7007 if test "$tmp_need_reentrant" = "no"; then
7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7010 /* end confdefs.h. */
7013 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7015 # include <limits.h>
7017 # include <assert.h>
7019 #undef gethostbyaddr_r
7023 char gethostbyaddr_r ();
7024 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7030 return gethostbyaddr_r ();
7036 if ac_fn_c_try_link "$LINENO"; then :
7038 tmp_gethostbyaddr_r="yes"
7042 tmp_gethostbyaddr_r="no"
7045 rm -f core conftest.err conftest.$ac_objext \
7046 conftest$ac_exeext conftest.$ac_ext
7047 if test "$tmp_gethostbyaddr_r" = "yes"; then
7048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7049 /* end confdefs.h. */
7051 #include <sys/types.h>
7055 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7056 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7058 tmp_gethostbyaddr_r="proto_declared"
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7066 #include <sys/types.h>
7070 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7071 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7073 tmp_gethostbyaddr_r="proto_needs_reentrant"
7074 tmp_need_reentrant="yes"
7086 if test "$tmp_need_reentrant" = "no"; then
7088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7089 /* end confdefs.h. */
7092 #define gethostbyname_r innocuous_gethostbyname_r
7094 # include <limits.h>
7096 # include <assert.h>
7098 #undef gethostbyname_r
7102 char gethostbyname_r ();
7103 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7109 return gethostbyname_r ();
7115 if ac_fn_c_try_link "$LINENO"; then :
7117 tmp_gethostbyname_r="yes"
7121 tmp_gethostbyname_r="no"
7124 rm -f core conftest.err conftest.$ac_objext \
7125 conftest$ac_exeext conftest.$ac_ext
7126 if test "$tmp_gethostbyname_r" = "yes"; then
7127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7128 /* end confdefs.h. */
7130 #include <sys/types.h>
7134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7135 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7137 tmp_gethostbyname_r="proto_declared"
7141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7142 /* end confdefs.h. */
7145 #include <sys/types.h>
7149 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7150 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7152 tmp_gethostbyname_r="proto_needs_reentrant"
7153 tmp_need_reentrant="yes"
7165 if test "$tmp_need_reentrant" = "no"; then
7167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7168 /* end confdefs.h. */
7171 #define getprotobyname_r innocuous_getprotobyname_r
7173 # include <limits.h>
7175 # include <assert.h>
7177 #undef getprotobyname_r
7181 char getprotobyname_r ();
7182 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7188 return getprotobyname_r ();
7194 if ac_fn_c_try_link "$LINENO"; then :
7196 tmp_getprotobyname_r="yes"
7200 tmp_getprotobyname_r="no"
7203 rm -f core conftest.err conftest.$ac_objext \
7204 conftest$ac_exeext conftest.$ac_ext
7205 if test "$tmp_getprotobyname_r" = "yes"; then
7206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7207 /* end confdefs.h. */
7209 #include <sys/types.h>
7213 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7214 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7216 tmp_getprotobyname_r="proto_declared"
7220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7221 /* end confdefs.h. */
7224 #include <sys/types.h>
7228 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7229 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7231 tmp_getprotobyname_r="proto_needs_reentrant"
7232 tmp_need_reentrant="yes"
7244 if test "$tmp_need_reentrant" = "no"; then
7246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7247 /* end confdefs.h. */
7250 #define getservbyport_r innocuous_getservbyport_r
7252 # include <limits.h>
7254 # include <assert.h>
7256 #undef getservbyport_r
7260 char getservbyport_r ();
7261 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7267 return getservbyport_r ();
7273 if ac_fn_c_try_link "$LINENO"; then :
7275 tmp_getservbyport_r="yes"
7279 tmp_getservbyport_r="no"
7282 rm -f core conftest.err conftest.$ac_objext \
7283 conftest$ac_exeext conftest.$ac_ext
7284 if test "$tmp_getservbyport_r" = "yes"; then
7285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7286 /* end confdefs.h. */
7288 #include <sys/types.h>
7292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7293 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7295 tmp_getservbyport_r="proto_declared"
7299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7300 /* end confdefs.h. */
7303 #include <sys/types.h>
7307 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7308 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7310 tmp_getservbyport_r="proto_needs_reentrant"
7311 tmp_need_reentrant="yes"
7325 if test "$tmp_need_reentrant" = "yes"; then
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7327 $as_echo "yes" >&6; }
7329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7330 $as_echo "no" >&6; }
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7335 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7336 if test "$tmp_reentrant_initially_defined" = "yes" ||
7337 test "$tmp_need_reentrant" = "yes"; then
7340 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7342 cat >>confdefs.h <<_EOF
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7349 $as_echo "yes" >&6; }
7351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7352 $as_echo "no" >&6; }
7357 # Check whether --enable-largefile was given.
7358 if test "${enable_largefile+set}" = set; then :
7359 enableval=$enable_largefile;
7362 if test "$enable_largefile" != no; then
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7365 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7366 if ${ac_cv_sys_largefile_CC+:} false; then :
7367 $as_echo_n "(cached) " >&6
7369 ac_cv_sys_largefile_CC=no
7370 if test "$GCC" != yes; then
7373 # IRIX 6.2 and later do not support large files by default,
7374 # so use the C compiler's -n32 option if that helps.
7375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7376 /* end confdefs.h. */
7377 #include <sys/types.h>
7378 /* Check that off_t can represent 2**63 - 1 correctly.
7379 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7380 since some C++ compilers masquerading as C compilers
7381 incorrectly reject 9223372036854775807. */
7382 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7383 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7384 && LARGE_OFF_T % 2147483647 == 1)
7393 if ac_fn_c_try_compile "$LINENO"; then :
7396 rm -f core conftest.err conftest.$ac_objext
7398 if ac_fn_c_try_compile "$LINENO"; then :
7399 ac_cv_sys_largefile_CC=' -n32'; break
7401 rm -f core conftest.err conftest.$ac_objext
7405 rm -f conftest.$ac_ext
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7409 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7410 if test "$ac_cv_sys_largefile_CC" != no; then
7411 CC=$CC$ac_cv_sys_largefile_CC
7414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7415 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7416 if ${ac_cv_sys_file_offset_bits+:} false; then :
7417 $as_echo_n "(cached) " >&6
7420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7421 /* end confdefs.h. */
7422 #include <sys/types.h>
7423 /* Check that off_t can represent 2**63 - 1 correctly.
7424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7425 since some C++ compilers masquerading as C compilers
7426 incorrectly reject 9223372036854775807. */
7427 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7429 && LARGE_OFF_T % 2147483647 == 1)
7438 if ac_fn_c_try_compile "$LINENO"; then :
7439 ac_cv_sys_file_offset_bits=no; break
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 #define _FILE_OFFSET_BITS 64
7445 #include <sys/types.h>
7446 /* Check that off_t can represent 2**63 - 1 correctly.
7447 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7448 since some C++ compilers masquerading as C compilers
7449 incorrectly reject 9223372036854775807. */
7450 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7451 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7452 && LARGE_OFF_T % 2147483647 == 1)
7461 if ac_fn_c_try_compile "$LINENO"; then :
7462 ac_cv_sys_file_offset_bits=64; break
7464 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7465 ac_cv_sys_file_offset_bits=unknown
7469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7470 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7471 case $ac_cv_sys_file_offset_bits in #(
7474 cat >>confdefs.h <<_ACEOF
7475 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7480 if test $ac_cv_sys_file_offset_bits = unknown; then
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7482 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7483 if ${ac_cv_sys_large_files+:} false; then :
7484 $as_echo_n "(cached) " >&6
7487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7488 /* end confdefs.h. */
7489 #include <sys/types.h>
7490 /* Check that off_t can represent 2**63 - 1 correctly.
7491 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7492 since some C++ compilers masquerading as C compilers
7493 incorrectly reject 9223372036854775807. */
7494 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7495 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7496 && LARGE_OFF_T % 2147483647 == 1)
7505 if ac_fn_c_try_compile "$LINENO"; then :
7506 ac_cv_sys_large_files=no; break
7508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7510 /* end confdefs.h. */
7511 #define _LARGE_FILES 1
7512 #include <sys/types.h>
7513 /* Check that off_t can represent 2**63 - 1 correctly.
7514 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7515 since some C++ compilers masquerading as C compilers
7516 incorrectly reject 9223372036854775807. */
7517 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7518 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7519 && LARGE_OFF_T % 2147483647 == 1)
7528 if ac_fn_c_try_compile "$LINENO"; then :
7529 ac_cv_sys_large_files=1; break
7531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7532 ac_cv_sys_large_files=unknown
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7537 $as_echo "$ac_cv_sys_large_files" >&6; }
7538 case $ac_cv_sys_large_files in #(
7541 cat >>confdefs.h <<_ACEOF
7542 #define _LARGE_FILES $ac_cv_sys_large_files
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7556 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7561 macro_version='2.4.6'
7562 macro_revision='2.4.6'
7576 ltmain=$ac_aux_dir/ltmain.sh
7578 # Backslashify metacharacters that are still active within
7579 # double-quoted strings.
7580 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7582 # Same as above, but do not quote variable references.
7583 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7585 # Sed substitution to delay expansion of an escaped shell variable in a
7586 # double_quote_subst'ed string.
7587 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7589 # Sed substitution to delay expansion of an escaped single quote.
7590 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7592 # Sed substitution to avoid accidental globbing in evaled expressions
7593 no_glob_subst='s/\*/\\\*/g'
7595 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7596 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7597 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7600 $as_echo_n "checking how to print strings... " >&6; }
7601 # Test print first, because it will be a builtin if present.
7602 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7603 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7605 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7608 # Use this function as a fallback that always works.
7609 func_fallback_echo ()
7611 eval 'cat <<_LTECHO_EOF
7615 ECHO='func_fallback_echo'
7618 # func_echo_all arg...
7619 # Invoke $ECHO with all args, space-separated.
7626 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7627 $as_echo "printf" >&6; } ;;
7628 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7629 $as_echo "print -r" >&6; } ;;
7630 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7631 $as_echo "cat" >&6; } ;;
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7648 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7649 if ${ac_cv_path_SED+:} false; then :
7650 $as_echo_n "(cached) " >&6
7652 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7653 for ac_i in 1 2 3 4 5 6 7; do
7654 ac_script="$ac_script$as_nl$ac_script"
7656 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7657 { ac_script=; unset ac_script;}
7658 if test -z "$SED"; then
7659 ac_path_SED_found=false
7660 # Loop through the user's path and test for each of PROGNAME-LIST
7661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7665 test -z "$as_dir" && as_dir=.
7666 for ac_prog in sed gsed; do
7667 for ac_exec_ext in '' $ac_executable_extensions; do
7668 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7669 as_fn_executable_p "$ac_path_SED" || continue
7670 # Check for GNU ac_path_SED and select it if it is found.
7671 # Check for GNU $ac_path_SED
7672 case `"$ac_path_SED" --version 2>&1` in
7674 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7677 $as_echo_n 0123456789 >"conftest.in"
7680 cat "conftest.in" "conftest.in" >"conftest.tmp"
7681 mv "conftest.tmp" "conftest.in"
7682 cp "conftest.in" "conftest.nl"
7683 $as_echo '' >> "conftest.nl"
7684 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7685 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7686 as_fn_arith $ac_count + 1 && ac_count=$as_val
7687 if test $ac_count -gt ${ac_path_SED_max-0}; then
7688 # Best one so far, save it but keep looking for a better one
7689 ac_cv_path_SED="$ac_path_SED"
7690 ac_path_SED_max=$ac_count
7692 # 10*(2^10) chars as input seems more than enough
7693 test $ac_count -gt 10 && break
7695 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7698 $ac_path_SED_found && break 3
7703 if test -z "$ac_cv_path_SED"; then
7704 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7712 $as_echo "$ac_cv_path_SED" >&6; }
7713 SED="$ac_cv_path_SED"
7716 test -z "$SED" && SED=sed
7717 Xsed="$SED -e 1s/^X//"
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7730 $as_echo_n "checking for fgrep... " >&6; }
7731 if ${ac_cv_path_FGREP+:} false; then :
7732 $as_echo_n "(cached) " >&6
7734 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7735 then ac_cv_path_FGREP="$GREP -F"
7737 if test -z "$FGREP"; then
7738 ac_path_FGREP_found=false
7739 # Loop through the user's path and test for each of PROGNAME-LIST
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7744 test -z "$as_dir" && as_dir=.
7745 for ac_prog in fgrep; do
7746 for ac_exec_ext in '' $ac_executable_extensions; do
7747 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7748 as_fn_executable_p "$ac_path_FGREP" || continue
7749 # Check for GNU ac_path_FGREP and select it if it is found.
7750 # Check for GNU $ac_path_FGREP
7751 case `"$ac_path_FGREP" --version 2>&1` in
7753 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7756 $as_echo_n 0123456789 >"conftest.in"
7759 cat "conftest.in" "conftest.in" >"conftest.tmp"
7760 mv "conftest.tmp" "conftest.in"
7761 cp "conftest.in" "conftest.nl"
7762 $as_echo 'FGREP' >> "conftest.nl"
7763 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7764 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7765 as_fn_arith $ac_count + 1 && ac_count=$as_val
7766 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7767 # Best one so far, save it but keep looking for a better one
7768 ac_cv_path_FGREP="$ac_path_FGREP"
7769 ac_path_FGREP_max=$ac_count
7771 # 10*(2^10) chars as input seems more than enough
7772 test $ac_count -gt 10 && break
7774 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7777 $ac_path_FGREP_found && break 3
7782 if test -z "$ac_cv_path_FGREP"; then
7783 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7786 ac_cv_path_FGREP=$FGREP
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7792 $as_echo "$ac_cv_path_FGREP" >&6; }
7793 FGREP="$ac_cv_path_FGREP"
7796 test -z "$GREP" && GREP=grep
7816 # Check whether --with-gnu-ld was given.
7817 if test "${with_gnu_ld+set}" = set; then :
7818 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
7824 if test yes = "$GCC"; then
7825 # Check if gcc -print-prog-name=ld gives a path.
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7827 $as_echo_n "checking for ld used by $CC... " >&6; }
7830 # gcc leaves a trailing carriage return, which upsets mingw
7831 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7833 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7836 # Accept absolute paths.
7838 re_direlt='/[^/][^/]*/\.\./'
7839 # Canonicalize the pathname of ld
7840 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7841 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7842 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7844 test -z "$LD" && LD=$ac_prog
7847 # If it fails, then pretend we aren't using GCC.
7851 # If it is relative, then search for the first ld in PATH.
7855 elif test yes = "$with_gnu_ld"; then
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7857 $as_echo_n "checking for GNU ld... " >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7860 $as_echo_n "checking for non-GNU ld... " >&6; }
7862 if ${lt_cv_path_LD+:} false; then :
7863 $as_echo_n "(cached) " >&6
7865 if test -z "$LD"; then
7866 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7867 for ac_dir in $PATH; do
7869 test -z "$ac_dir" && ac_dir=.
7870 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7871 lt_cv_path_LD=$ac_dir/$ac_prog
7872 # Check to see if the program is GNU ld. I'd rather use --version,
7873 # but apparently some variants of GNU ld only accept -v.
7874 # Break only if it was the GNU/non-GNU ld that we prefer.
7875 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7876 *GNU* | *'with BFD'*)
7877 test no != "$with_gnu_ld" && break
7880 test yes != "$with_gnu_ld" && break
7887 lt_cv_path_LD=$LD # Let the user override the test with a path.
7892 if test -n "$LD"; then
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7894 $as_echo "$LD" >&6; }
7896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7897 $as_echo "no" >&6; }
7899 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7901 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
7902 if ${lt_cv_prog_gnu_ld+:} false; then :
7903 $as_echo_n "(cached) " >&6
7905 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7906 case `$LD -v 2>&1 </dev/null` in
7907 *GNU* | *'with BFD'*)
7908 lt_cv_prog_gnu_ld=yes
7911 lt_cv_prog_gnu_ld=no
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7916 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
7917 with_gnu_ld=$lt_cv_prog_gnu_ld
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
7928 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
7929 if ${lt_cv_path_NM+:} false; then :
7930 $as_echo_n "(cached) " >&6
7932 if test -n "$NM"; then
7933 # Let the user override the test.
7936 lt_nm_to_check=${ac_tool_prefix}nm
7937 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
7938 lt_nm_to_check="$lt_nm_to_check nm"
7940 for lt_tmp_nm in $lt_nm_to_check; do
7941 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
7942 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
7944 test -z "$ac_dir" && ac_dir=.
7945 tmp_nm=$ac_dir/$lt_tmp_nm
7946 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
7947 # Check to see if the nm accepts a BSD-compat flag.
7948 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
7949 # nm: unknown option "B" ignored
7950 # Tru64's nm complains that /dev/null is an invalid object file
7951 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
7953 mingw*) lt_bad_file=conftest.nm/nofile ;;
7954 *) lt_bad_file=/dev/null ;;
7956 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
7957 *$lt_bad_file* | *'Invalid file or object type'*)
7958 lt_cv_path_NM="$tmp_nm -B"
7962 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
7964 lt_cv_path_NM="$tmp_nm -p"
7968 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
7969 continue # so that we can try to find one that supports BSD flags
7978 : ${lt_cv_path_NM=no}
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7982 $as_echo "$lt_cv_path_NM" >&6; }
7983 if test no != "$lt_cv_path_NM"; then
7986 # Didn't find any BSD compatible name lister, look for dumpbin.
7987 if test -n "$DUMPBIN"; then :
7988 # Let the user override the test.
7990 if test -n "$ac_tool_prefix"; then
7991 for ac_prog in dumpbin "link -dump"
7993 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7994 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7996 $as_echo_n "checking for $ac_word... " >&6; }
7997 if ${ac_cv_prog_DUMPBIN+:} false; then :
7998 $as_echo_n "(cached) " >&6
8000 if test -n "$DUMPBIN"; then
8001 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8007 test -z "$as_dir" && as_dir=.
8008 for ac_exec_ext in '' $ac_executable_extensions; do
8009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8010 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 DUMPBIN=$ac_cv_prog_DUMPBIN
8021 if test -n "$DUMPBIN"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8023 $as_echo "$DUMPBIN" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8030 test -n "$DUMPBIN" && break
8033 if test -z "$DUMPBIN"; then
8034 ac_ct_DUMPBIN=$DUMPBIN
8035 for ac_prog in dumpbin "link -dump"
8037 # Extract the first word of "$ac_prog", so it can be a program name with args.
8038 set dummy $ac_prog; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8042 $as_echo_n "(cached) " >&6
8044 if test -n "$ac_ct_DUMPBIN"; then
8045 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8064 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8065 if test -n "$ac_ct_DUMPBIN"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8067 $as_echo "$ac_ct_DUMPBIN" >&6; }
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8074 test -n "$ac_ct_DUMPBIN" && break
8077 if test "x$ac_ct_DUMPBIN" = x; then
8080 case $cross_compiling:$ac_tool_warned in
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8083 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8084 ac_tool_warned=yes ;;
8086 DUMPBIN=$ac_ct_DUMPBIN
8090 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8092 DUMPBIN="$DUMPBIN -symbols -headers"
8100 if test : != "$DUMPBIN"; then
8104 test -z "$NM" && NM=nm
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8112 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8113 if ${lt_cv_nm_interface+:} false; then :
8114 $as_echo_n "(cached) " >&6
8116 lt_cv_nm_interface="BSD nm"
8117 echo "int some_variable = 0;" > conftest.$ac_ext
8118 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8119 (eval "$ac_compile" 2>conftest.err)
8120 cat conftest.err >&5
8121 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8122 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8123 cat conftest.err >&5
8124 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8125 cat conftest.out >&5
8126 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8127 lt_cv_nm_interface="MS dumpbin"
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8132 $as_echo "$lt_cv_nm_interface" >&6; }
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8135 $as_echo_n "checking whether ln -s works... " >&6; }
8137 if test "$LN_S" = "ln -s"; then
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8139 $as_echo "yes" >&6; }
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8142 $as_echo "no, using $LN_S" >&6; }
8145 # find the maximum length of command line arguments
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8147 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8148 if ${lt_cv_sys_max_cmd_len+:} false; then :
8149 $as_echo_n "(cached) " >&6
8156 # On DJGPP, this test can blow up pretty badly due to problems in libc
8157 # (any single argument exceeding 2000 bytes causes a buffer overrun
8158 # during glob expansion). Even if it were fixed, the result of this
8159 # check would be larger than it should be.
8160 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8164 # Under GNU Hurd, this test is not required because there is
8165 # no limit to the length of command line arguments.
8166 # Libtool will interpret -1 as no limit whatsoever
8167 lt_cv_sys_max_cmd_len=-1;
8170 cygwin* | mingw* | cegcc*)
8171 # On Win9x/ME, this test blows up -- it succeeds, but takes
8172 # about 5 minutes as the teststring grows exponentially.
8173 # Worse, since 9x/ME are not pre-emptively multitasking,
8174 # you end up with a "frozen" computer, even though with patience
8175 # the test eventually succeeds (with a max line length of 256k).
8176 # Instead, let's just punt: use the minimum linelength reported by
8177 # all of the supported platforms: 8192 (on NT/2K/XP).
8178 lt_cv_sys_max_cmd_len=8192;
8182 # On MiNT this can take a long time and run out of memory.
8183 lt_cv_sys_max_cmd_len=8192;
8187 # On AmigaOS with pdksh, this test takes hours, literally.
8188 # So we just punt and use a minimum line length of 8192.
8189 lt_cv_sys_max_cmd_len=8192;
8192 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8193 # This has been around since 386BSD, at least. Likely further.
8194 if test -x /sbin/sysctl; then
8195 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8196 elif test -x /usr/sbin/sysctl; then
8197 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8199 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8201 # And add a safety zone
8202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8203 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8207 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8208 lt_cv_sys_max_cmd_len=196608
8212 # The test takes a long time on OS/2.
8213 lt_cv_sys_max_cmd_len=8192
8217 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8218 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8219 # nice to cause kernel panics so lets avoid the loop below.
8220 # First set a reasonable default.
8221 lt_cv_sys_max_cmd_len=16384
8223 if test -x /sbin/sysconfig; then
8224 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8225 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8230 lt_cv_sys_max_cmd_len=102400
8232 sysv5* | sco5v6* | sysv4.2uw2*)
8233 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8234 if test -n "$kargmax"; then
8235 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8237 lt_cv_sys_max_cmd_len=32768
8241 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8242 if test -n "$lt_cv_sys_max_cmd_len" && \
8243 test undefined != "$lt_cv_sys_max_cmd_len"; then
8244 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8245 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8247 # Make teststring a little bigger before we do anything with it.
8248 # a 1K string should be a reasonable start.
8249 for i in 1 2 3 4 5 6 7 8; do
8250 teststring=$teststring$teststring
8252 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8253 # If test is not a shell built-in, we'll probably end up computing a
8254 # maximum length that is only half of the actual maximum length, but
8256 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8257 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8258 test 17 != "$i" # 1/2 MB should be enough
8261 teststring=$teststring$teststring
8263 # Only check the string length outside the loop.
8264 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8266 # Add a significant safety factor because C++ compilers can tack on
8267 # massive amounts of additional arguments before passing them to the
8268 # linker. It appears as though 1/2 is a usable value.
8269 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8276 if test -n "$lt_cv_sys_max_cmd_len"; then
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8278 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8281 $as_echo "none" >&6; }
8283 max_cmd_len=$lt_cv_sys_max_cmd_len
8294 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8304 # test EBCDIC or ASCII
8305 case `echo X|tr X '\101'` in
8306 A) # ASCII based system
8307 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8308 lt_SP2NL='tr \040 \012'
8309 lt_NL2SP='tr \015\012 \040\040'
8311 *) # EBCDIC based system
8312 lt_SP2NL='tr \100 \n'
8313 lt_NL2SP='tr \r\n \100\100'
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8326 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8327 if ${lt_cv_to_host_file_cmd+:} false; then :
8328 $as_echo_n "(cached) " >&6
8333 *-*-mingw* ) # actually msys
8334 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8337 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8339 * ) # otherwise, assume *nix
8340 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8346 *-*-mingw* ) # actually msys
8347 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8350 lt_cv_to_host_file_cmd=func_convert_file_noop
8352 * ) # otherwise, assume *nix
8353 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8357 * ) # unhandled hosts (and "normal" native builds)
8358 lt_cv_to_host_file_cmd=func_convert_file_noop
8364 to_host_file_cmd=$lt_cv_to_host_file_cmd
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8366 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8373 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8374 if ${lt_cv_to_tool_file_cmd+:} false; then :
8375 $as_echo_n "(cached) " >&6
8377 #assume ordinary cross tools, or native build.
8378 lt_cv_to_tool_file_cmd=func_convert_file_noop
8382 *-*-mingw* ) # actually msys
8383 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8391 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8393 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8400 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8401 if ${lt_cv_ld_reload_flag+:} false; then :
8402 $as_echo_n "(cached) " >&6
8404 lt_cv_ld_reload_flag='-r'
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8407 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8408 reload_flag=$lt_cv_ld_reload_flag
8409 case $reload_flag in
8411 *) reload_flag=" $reload_flag" ;;
8413 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8415 cygwin* | mingw* | pw32* | cegcc*)
8416 if test yes != "$GCC"; then
8421 if test yes = "$GCC"; then
8422 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8424 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8437 if test -n "$ac_tool_prefix"; then
8438 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8439 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8441 $as_echo_n "checking for $ac_word... " >&6; }
8442 if ${ac_cv_prog_OBJDUMP+:} false; then :
8443 $as_echo_n "(cached) " >&6
8445 if test -n "$OBJDUMP"; then
8446 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8452 test -z "$as_dir" && as_dir=.
8453 for ac_exec_ext in '' $ac_executable_extensions; do
8454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8455 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 OBJDUMP=$ac_cv_prog_OBJDUMP
8466 if test -n "$OBJDUMP"; then
8467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8468 $as_echo "$OBJDUMP" >&6; }
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8471 $as_echo "no" >&6; }
8476 if test -z "$ac_cv_prog_OBJDUMP"; then
8477 ac_ct_OBJDUMP=$OBJDUMP
8478 # Extract the first word of "objdump", so it can be a program name with args.
8479 set dummy objdump; ac_word=$2
8480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8481 $as_echo_n "checking for $ac_word... " >&6; }
8482 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8483 $as_echo_n "(cached) " >&6
8485 if test -n "$ac_ct_OBJDUMP"; then
8486 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8492 test -z "$as_dir" && as_dir=.
8493 for ac_exec_ext in '' $ac_executable_extensions; do
8494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8495 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8505 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8506 if test -n "$ac_ct_OBJDUMP"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8508 $as_echo "$ac_ct_OBJDUMP" >&6; }
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8511 $as_echo "no" >&6; }
8514 if test "x$ac_ct_OBJDUMP" = x; then
8517 case $cross_compiling:$ac_tool_warned in
8519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8521 ac_tool_warned=yes ;;
8523 OBJDUMP=$ac_ct_OBJDUMP
8526 OBJDUMP="$ac_cv_prog_OBJDUMP"
8529 test -z "$OBJDUMP" && OBJDUMP=objdump
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8537 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8538 if ${lt_cv_deplibs_check_method+:} false; then :
8539 $as_echo_n "(cached) " >&6
8541 lt_cv_file_magic_cmd='$MAGIC_CMD'
8542 lt_cv_file_magic_test_file=
8543 lt_cv_deplibs_check_method='unknown'
8544 # Need to set the preceding variable on all platforms that support
8545 # interlibrary dependencies.
8546 # 'none' -- dependencies not supported.
8547 # 'unknown' -- same as none, but documents that we really don't know.
8548 # 'pass_all' -- all dependencies passed with no checks.
8549 # 'test_compile' -- check by making test program.
8550 # 'file_magic [[regex]]' -- check by looking for files in library path
8551 # that responds to the $file_magic_cmd with a given extended regex.
8552 # If you have 'file' or equivalent on your system and you're not sure
8553 # whether 'pass_all' will *always* work, you probably want this one.
8557 lt_cv_deplibs_check_method=pass_all
8561 lt_cv_deplibs_check_method=pass_all
8565 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8566 lt_cv_file_magic_cmd='/usr/bin/file -L'
8567 lt_cv_file_magic_test_file=/shlib/libc.so
8571 # func_win32_libid is a shell function defined in ltmain.sh
8572 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8573 lt_cv_file_magic_cmd='func_win32_libid'
8577 # Base MSYS/MinGW do not provide the 'file' command needed by
8578 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8579 # unless we find 'file', for example because we are cross-compiling.
8580 if ( file / ) >/dev/null 2>&1; then
8581 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8582 lt_cv_file_magic_cmd='func_win32_libid'
8584 # Keep this pattern in sync with the one in func_win32_libid.
8585 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8586 lt_cv_file_magic_cmd='$OBJDUMP -f'
8591 # use the weaker test based on 'objdump'. See mingw*.
8592 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8593 lt_cv_file_magic_cmd='$OBJDUMP -f'
8596 darwin* | rhapsody*)
8597 lt_cv_deplibs_check_method=pass_all
8600 freebsd* | dragonfly*)
8601 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8604 # Not sure whether the presence of OpenBSD here was a mistake.
8605 # Let's accept both of them until this is cleared up.
8606 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8607 lt_cv_file_magic_cmd=/usr/bin/file
8608 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8612 lt_cv_deplibs_check_method=pass_all
8617 lt_cv_deplibs_check_method=pass_all
8620 hpux10.20* | hpux11*)
8621 lt_cv_file_magic_cmd=/usr/bin/file
8624 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8625 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8628 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]'
8629 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8632 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8633 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8639 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8640 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8643 irix5* | irix6* | nonstopux*)
8645 *-32|*"-32 ") libmagic=32-bit;;
8646 *-n32|*"-n32 ") libmagic=N32;;
8647 *-64|*"-64 ") libmagic=64-bit;;
8648 *) libmagic=never-match;;
8650 lt_cv_deplibs_check_method=pass_all
8653 # This must be glibc/ELF.
8654 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8655 lt_cv_deplibs_check_method=pass_all
8658 netbsd* | netbsdelf*-gnu)
8659 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8660 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8662 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8667 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8668 lt_cv_file_magic_cmd=/usr/bin/file
8669 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8673 lt_cv_deplibs_check_method=pass_all
8677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8678 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8680 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8684 osf3* | osf4* | osf5*)
8685 lt_cv_deplibs_check_method=pass_all
8689 lt_cv_deplibs_check_method=pass_all
8693 lt_cv_deplibs_check_method=pass_all
8696 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8697 lt_cv_deplibs_check_method=pass_all
8701 case $host_vendor in
8703 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]'
8704 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8707 lt_cv_deplibs_check_method=pass_all
8710 lt_cv_file_magic_cmd='/bin/file'
8711 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8714 lt_cv_file_magic_cmd='/bin/file'
8715 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8716 lt_cv_file_magic_test_file=/lib/libc.so
8719 lt_cv_deplibs_check_method=pass_all
8722 lt_cv_deplibs_check_method=pass_all
8728 lt_cv_deplibs_check_method=pass_all
8731 lt_cv_deplibs_check_method=pass_all
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8737 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8741 if test "$build" = "$host"; then
8744 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8747 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8753 file_magic_cmd=$lt_cv_file_magic_cmd
8754 deplibs_check_method=$lt_cv_deplibs_check_method
8755 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8778 if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_DLLTOOL+:} false; then :
8784 $as_echo_n "(cached) " >&6
8786 if test -n "$DLLTOOL"; then
8787 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 DLLTOOL=$ac_cv_prog_DLLTOOL
8807 if test -n "$DLLTOOL"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8809 $as_echo "$DLLTOOL" >&6; }
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test -z "$ac_cv_prog_DLLTOOL"; then
8818 ac_ct_DLLTOOL=$DLLTOOL
8819 # Extract the first word of "dlltool", so it can be a program name with args.
8820 set dummy dlltool; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8824 $as_echo_n "(cached) " >&6
8826 if test -n "$ac_ct_DLLTOOL"; then
8827 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8846 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8847 if test -n "$ac_ct_DLLTOOL"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8849 $as_echo "$ac_ct_DLLTOOL" >&6; }
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8855 if test "x$ac_ct_DLLTOOL" = x; then
8858 case $cross_compiling:$ac_tool_warned in
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8864 DLLTOOL=$ac_ct_DLLTOOL
8867 DLLTOOL="$ac_cv_prog_DLLTOOL"
8870 test -z "$DLLTOOL" && DLLTOOL=dlltool
8878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
8879 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
8880 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
8881 $as_echo_n "(cached) " >&6
8883 lt_cv_sharedlib_from_linklib_cmd='unknown'
8886 cygwin* | mingw* | pw32* | cegcc*)
8887 # two different shell functions defined in ltmain.sh;
8888 # decide which one to use based on capabilities of $DLLTOOL
8889 case `$DLLTOOL --help 2>&1` in
8890 *--identify-strict*)
8891 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
8894 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
8899 # fallback: assume linklib IS sharedlib
8900 lt_cv_sharedlib_from_linklib_cmd=$ECHO
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
8906 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
8907 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
8908 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
8916 if test -n "$ac_tool_prefix"; then
8919 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8920 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8922 $as_echo_n "checking for $ac_word... " >&6; }
8923 if ${ac_cv_prog_AR+:} false; then :
8924 $as_echo_n "(cached) " >&6
8926 if test -n "$AR"; then
8927 ac_cv_prog_AR="$AR" # Let the user override the test.
8929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8933 test -z "$as_dir" && as_dir=.
8934 for ac_exec_ext in '' $ac_executable_extensions; do
8935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8936 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
8937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8947 if test -n "$AR"; then
8948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8949 $as_echo "$AR" >&6; }
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8952 $as_echo "no" >&6; }
8956 test -n "$AR" && break
8959 if test -z "$AR"; then
8963 # Extract the first word of "$ac_prog", so it can be a program name with args.
8964 set dummy $ac_prog; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8968 $as_echo_n "(cached) " >&6
8970 if test -n "$ac_ct_AR"; then
8971 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_ac_ct_AR="$ac_prog"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8990 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8991 if test -n "$ac_ct_AR"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8993 $as_echo "$ac_ct_AR" >&6; }
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9000 test -n "$ac_ct_AR" && break
9003 if test "x$ac_ct_AR" = x; then
9006 case $cross_compiling:$ac_tool_warned in
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9009 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9010 ac_tool_warned=yes ;;
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9030 $as_echo_n "checking for archiver @FILE support... " >&6; }
9031 if ${lt_cv_ar_at_file+:} false; then :
9032 $as_echo_n "(cached) " >&6
9035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9036 /* end confdefs.h. */
9045 if ac_fn_c_try_compile "$LINENO"; then :
9046 echo conftest.$ac_objext > conftest.lst
9047 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9048 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9049 (eval $lt_ar_try) 2>&5
9051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9052 test $ac_status = 0; }
9053 if test 0 -eq "$ac_status"; then
9054 # Ensure the archiver fails upon bogus file names.
9055 rm -f conftest.$ac_objext libconftest.a
9056 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9057 (eval $lt_ar_try) 2>&5
9059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9060 test $ac_status = 0; }
9061 if test 0 -ne "$ac_status"; then
9065 rm -f conftest.* libconftest.a
9068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9072 $as_echo "$lt_cv_ar_at_file" >&6; }
9074 if test no = "$lt_cv_ar_at_file"; then
9077 archiver_list_spec=$lt_cv_ar_at_file
9086 if test -n "$ac_tool_prefix"; then
9087 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9088 set dummy ${ac_tool_prefix}strip; ac_word=$2
9089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9090 $as_echo_n "checking for $ac_word... " >&6; }
9091 if ${ac_cv_prog_STRIP+:} false; then :
9092 $as_echo_n "(cached) " >&6
9094 if test -n "$STRIP"; then
9095 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9101 test -z "$as_dir" && as_dir=.
9102 for ac_exec_ext in '' $ac_executable_extensions; do
9103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9104 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9114 STRIP=$ac_cv_prog_STRIP
9115 if test -n "$STRIP"; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9117 $as_echo "$STRIP" >&6; }
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9120 $as_echo "no" >&6; }
9125 if test -z "$ac_cv_prog_STRIP"; then
9127 # Extract the first word of "strip", so it can be a program name with args.
9128 set dummy strip; ac_word=$2
9129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9130 $as_echo_n "checking for $ac_word... " >&6; }
9131 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9132 $as_echo_n "(cached) " >&6
9134 if test -n "$ac_ct_STRIP"; then
9135 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9141 test -z "$as_dir" && as_dir=.
9142 for ac_exec_ext in '' $ac_executable_extensions; do
9143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9144 ac_cv_prog_ac_ct_STRIP="strip"
9145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9154 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9155 if test -n "$ac_ct_STRIP"; then
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9157 $as_echo "$ac_ct_STRIP" >&6; }
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9160 $as_echo "no" >&6; }
9163 if test "x$ac_ct_STRIP" = x; then
9166 case $cross_compiling:$ac_tool_warned in
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9169 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9170 ac_tool_warned=yes ;;
9175 STRIP="$ac_cv_prog_STRIP"
9178 test -z "$STRIP" && STRIP=:
9185 if test -n "$ac_tool_prefix"; then
9186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9187 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9189 $as_echo_n "checking for $ac_word... " >&6; }
9190 if ${ac_cv_prog_RANLIB+:} false; then :
9191 $as_echo_n "(cached) " >&6
9193 if test -n "$RANLIB"; then
9194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9200 test -z "$as_dir" && as_dir=.
9201 for ac_exec_ext in '' $ac_executable_extensions; do
9202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9213 RANLIB=$ac_cv_prog_RANLIB
9214 if test -n "$RANLIB"; then
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9216 $as_echo "$RANLIB" >&6; }
9218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9219 $as_echo "no" >&6; }
9224 if test -z "$ac_cv_prog_RANLIB"; then
9225 ac_ct_RANLIB=$RANLIB
9226 # Extract the first word of "ranlib", so it can be a program name with args.
9227 set dummy ranlib; ac_word=$2
9228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9229 $as_echo_n "checking for $ac_word... " >&6; }
9230 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9231 $as_echo_n "(cached) " >&6
9233 if test -n "$ac_ct_RANLIB"; then
9234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9240 test -z "$as_dir" && as_dir=.
9241 for ac_exec_ext in '' $ac_executable_extensions; do
9242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9243 ac_cv_prog_ac_ct_RANLIB="ranlib"
9244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9253 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9254 if test -n "$ac_ct_RANLIB"; then
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9256 $as_echo "$ac_ct_RANLIB" >&6; }
9258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9259 $as_echo "no" >&6; }
9262 if test "x$ac_ct_RANLIB" = x; then
9265 case $cross_compiling:$ac_tool_warned in
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9268 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9269 ac_tool_warned=yes ;;
9271 RANLIB=$ac_ct_RANLIB
9274 RANLIB="$ac_cv_prog_RANLIB"
9277 test -z "$RANLIB" && RANLIB=:
9284 # Determine commands to create old-style static archives.
9285 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9286 old_postinstall_cmds='chmod 644 $oldlib'
9287 old_postuninstall_cmds=
9289 if test -n "$RANLIB"; then
9292 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9295 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9298 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9303 lock_old_archive_extraction=yes ;;
9305 lock_old_archive_extraction=no ;;
9346 # If no C compiler was specified, use CC.
9349 # If no C compiler flags were specified, use CFLAGS.
9350 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9352 # Allow CC to be a program name with arguments.
9356 # Check for command to grab the raw symbol name followed by C symbol from nm.
9357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9358 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9359 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9360 $as_echo_n "(cached) " >&6
9363 # These are sane defaults that work on at least a few old systems.
9364 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9366 # Character class describing NM global symbol codes.
9367 symcode='[BCDEGRST]'
9369 # Regexp to match symbols that can be accessed directly from C.
9370 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9372 # Define system-specific variables.
9377 cygwin* | mingw* | pw32* | cegcc*)
9378 symcode='[ABCDGISTW]'
9381 if test ia64 = "$host_cpu"; then
9382 symcode='[ABCDEGRST]'
9386 symcode='[BCDEGRST]'
9389 symcode='[BCDEGQRST]'
9400 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9408 # If we're using GNU nm, then use its standard symbol codes.
9409 case `$NM -V 2>&1` in
9410 *GNU* | *'with BFD'*)
9411 symcode='[ABCDGIRSTW]' ;;
9414 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9415 # Gets list of data symbols to import.
9416 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9417 # Adjust the below global symbol transforms to fixup imported variables.
9418 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9419 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
9420 lt_c_name_lib_hook="\
9421 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
9422 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
9424 # Disable hooks by default.
9425 lt_cv_sys_global_symbol_to_import=
9431 # Transform an extracted symbol line into a proper C declaration.
9432 # Some systems (esp. on ia64) link data and code symbols differently,
9433 # so use this general approach.
9434 lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9436 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9437 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9439 # Transform an extracted symbol line into symbol name and symbol address
9440 lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9442 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9443 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
9445 # Transform an extracted symbol line into symbol name with lib prefix and
9447 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9448 $lt_c_name_lib_hook\
9449 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
9450 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
9451 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
9453 # Handle CRLF in mingw tool chain
9457 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9461 # Try without a prefix underscore, then with it.
9462 for ac_symprfx in "" "_"; do
9464 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9465 symxfrm="\\1 $ac_symprfx\\2 \\2"
9467 # Write the raw and C identifiers.
9468 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9469 # Fake it for dumpbin and say T for any non-static function,
9470 # D for any global variable and I for any imported variable.
9471 # Also find C++ and __fastcall symbols from MSVC++,
9472 # which start with @ or ?.
9473 lt_cv_sys_global_symbol_pipe="$AWK '"\
9474 " {last_section=section; section=\$ 3};"\
9475 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9476 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9477 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9478 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9479 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9480 " \$ 0!~/External *\|/{next};"\
9481 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9482 " {if(hide[section]) next};"\
9483 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9484 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9485 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9486 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9487 " ' prfx=^$ac_symprfx"
9489 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9491 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9493 # Check to see that the pipe works correctly.
9497 cat > conftest.$ac_ext <<_LT_EOF
9502 void nm_test_func(void);
9503 void nm_test_func(void){}
9507 int main(){nm_test_var='a';nm_test_func();return(0);}
9510 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9511 (eval $ac_compile) 2>&5
9513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9514 test $ac_status = 0; }; then
9515 # Now try to grab the symbols.
9517 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9518 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9521 test $ac_status = 0; } && test -s "$nlist"; then
9522 # Try sorting and uniquifying the output.
9523 if sort "$nlist" | uniq > "$nlist"T; then
9524 mv -f "$nlist"T "$nlist"
9529 # Make sure that we snagged all the symbols we need.
9530 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9531 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9532 cat <<_LT_EOF > conftest.$ac_ext
9533 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9534 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9535 /* DATA imports from DLLs on WIN32 can't be const, because runtime
9536 relocations are performed -- see ld's documentation on pseudo-relocs. */
9537 # define LT_DLSYM_CONST
9538 #elif defined __osf__
9539 /* This system does not cope well with relocations in const data. */
9540 # define LT_DLSYM_CONST
9542 # define LT_DLSYM_CONST const
9550 # Now generate the symbol file.
9551 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9553 cat <<_LT_EOF >> conftest.$ac_ext
9555 /* The mapping between symbol names and symbols. */
9556 LT_DLSYM_CONST struct {
9560 lt__PROGRAM__LTX_preloaded_symbols[] =
9562 { "@PROGRAM@", (void *) 0 },
9564 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9565 cat <<\_LT_EOF >> conftest.$ac_ext
9569 /* This works around a problem in FreeBSD linker */
9570 #ifdef FREEBSD_WORKAROUND
9571 static const void *lt_preloaded_setup() {
9572 return lt__PROGRAM__LTX_preloaded_symbols;
9580 # Now try linking the two files.
9581 mv -f conftest.$ac_objext conftstm.$ac_objext
9582 lt_globsym_save_LIBS=$LIBS
9583 lt_globsym_save_CFLAGS=$CFLAGS
9584 LIBS=conftstm.$ac_objext
9585 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9586 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9587 (eval $ac_link) 2>&5
9589 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9590 test $ac_status = 0; } && test -s conftest$ac_exeext; then
9593 LIBS=$lt_globsym_save_LIBS
9594 CFLAGS=$lt_globsym_save_CFLAGS
9596 echo "cannot find nm_test_func in $nlist" >&5
9599 echo "cannot find nm_test_var in $nlist" >&5
9602 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9605 echo "$progname: failed program was:" >&5
9606 cat conftest.$ac_ext >&5
9608 rm -rf conftest* conftst*
9610 # Do not use the global_symbol_pipe unless it works.
9611 if test yes = "$pipe_works"; then
9614 lt_cv_sys_global_symbol_pipe=
9620 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9621 lt_cv_sys_global_symbol_to_cdecl=
9623 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9625 $as_echo "failed" >&6; }
9627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9628 $as_echo "ok" >&6; }
9631 # Response file support.
9632 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9633 nm_file_list_spec='@'
9634 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9635 nm_file_list_spec='@'
9674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9675 $as_echo_n "checking for sysroot... " >&6; }
9677 # Check whether --with-sysroot was given.
9678 if test "${with_sysroot+set}" = set; then :
9679 withval=$with_sysroot;
9686 case $with_sysroot in #(
9688 if test yes = "$GCC"; then
9689 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9693 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9699 $as_echo "$with_sysroot" >&6; }
9700 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9705 $as_echo "${lt_sysroot:-no}" >&6; }
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9712 $as_echo_n "checking for a working dd... " >&6; }
9713 if ${ac_cv_path_lt_DD+:} false; then :
9714 $as_echo_n "(cached) " >&6
9716 printf 0123456789abcdef0123456789abcdef >conftest.i
9717 cat conftest.i conftest.i >conftest2.i
9719 if test -z "$lt_DD"; then
9720 ac_path_lt_DD_found=false
9721 # Loop through the user's path and test for each of PROGNAME-LIST
9722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 test -z "$as_dir" && as_dir=.
9727 for ac_prog in dd; do
9728 for ac_exec_ext in '' $ac_executable_extensions; do
9729 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9730 as_fn_executable_p "$ac_path_lt_DD" || continue
9731 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9732 cmp -s conftest.i conftest.out \
9733 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9735 $ac_path_lt_DD_found && break 3
9740 if test -z "$ac_cv_path_lt_DD"; then
9744 ac_cv_path_lt_DD=$lt_DD
9747 rm -f conftest.i conftest2.i conftest.out
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9750 $as_echo "$ac_cv_path_lt_DD" >&6; }
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9754 $as_echo_n "checking how to truncate binary pipes... " >&6; }
9755 if ${lt_cv_truncate_bin+:} false; then :
9756 $as_echo_n "(cached) " >&6
9758 printf 0123456789abcdef0123456789abcdef >conftest.i
9759 cat conftest.i conftest.i >conftest2.i
9761 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9762 cmp -s conftest.i conftest.out \
9763 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9765 rm -f conftest.i conftest2.i conftest.out
9766 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9769 $as_echo "$lt_cv_truncate_bin" >&6; }
9777 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
9780 for cc_temp in $*""; do
9782 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9783 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9788 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9791 # Check whether --enable-libtool-lock was given.
9792 if test "${enable_libtool_lock+set}" = set; then :
9793 enableval=$enable_libtool_lock;
9796 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9798 # Some flags need to be propagated to the compiler or linker for good
9802 # Find out what ABI is being produced by ac_compile, and set mode
9803 # options accordingly.
9804 echo 'int i;' > conftest.$ac_ext
9805 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9806 (eval $ac_compile) 2>&5
9808 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9809 test $ac_status = 0; }; then
9810 case `/usr/bin/file conftest.$ac_objext` in
9822 # Find out what ABI is being produced by ac_compile, and set linker
9823 # options accordingly.
9824 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9825 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9826 (eval $ac_compile) 2>&5
9828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9829 test $ac_status = 0; }; then
9830 if test yes = "$lt_cv_prog_gnu_ld"; then
9831 case `/usr/bin/file conftest.$ac_objext` in
9833 LD="${LD-ld} -melf32bsmip"
9836 LD="${LD-ld} -melf32bmipn32"
9839 LD="${LD-ld} -melf64bmip"
9843 case `/usr/bin/file conftest.$ac_objext` in
9860 # Find out what ABI is being produced by ac_compile, and set linker
9861 # options accordingly.
9862 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9863 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9864 (eval $ac_compile) 2>&5
9866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9867 test $ac_status = 0; }; then
9869 case `/usr/bin/file conftest.$ac_objext` in
9877 case `/usr/bin/file conftest.$ac_objext` in
9879 emul="${emul}btsmip"
9882 emul="${emul}ltsmip"
9885 case `/usr/bin/file conftest.$ac_objext` in
9890 LD="${LD-ld} -m $emul"
9895 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
9896 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9897 # Find out what ABI is being produced by ac_compile, and set linker
9898 # options accordingly. Note that the listed cases only cover the
9899 # situations where additional linker options are needed (such as when
9900 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
9901 # vice versa); the common cases where no linker options are needed do
9902 # not appear in the list.
9903 echo 'int i;' > conftest.$ac_ext
9904 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9905 (eval $ac_compile) 2>&5
9907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9908 test $ac_status = 0; }; then
9909 case `/usr/bin/file conftest.o` in
9912 x86_64-*kfreebsd*-gnu)
9913 LD="${LD-ld} -m elf_i386_fbsd"
9916 case `/usr/bin/file conftest.o` in
9918 LD="${LD-ld} -m elf32_x86_64"
9921 LD="${LD-ld} -m elf_i386"
9925 powerpc64le-*linux*)
9926 LD="${LD-ld} -m elf32lppclinux"
9929 LD="${LD-ld} -m elf32ppclinux"
9932 LD="${LD-ld} -m elf_s390"
9935 LD="${LD-ld} -m elf32_sparc"
9941 x86_64-*kfreebsd*-gnu)
9942 LD="${LD-ld} -m elf_x86_64_fbsd"
9945 LD="${LD-ld} -m elf_x86_64"
9948 LD="${LD-ld} -m elf64lppc"
9951 LD="${LD-ld} -m elf64ppc"
9953 s390*-*linux*|s390*-*tpf*)
9954 LD="${LD-ld} -m elf64_s390"
9957 LD="${LD-ld} -m elf64_sparc"
9967 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9969 CFLAGS="$CFLAGS -belf"
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9971 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9972 if ${lt_cv_cc_needs_belf+:} false; then :
9973 $as_echo_n "(cached) " >&6
9976 ac_cpp='$CPP $CPPFLAGS'
9977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9982 /* end confdefs.h. */
9991 if ac_fn_c_try_link "$LINENO"; then :
9992 lt_cv_cc_needs_belf=yes
9994 lt_cv_cc_needs_belf=no
9996 rm -f core conftest.err conftest.$ac_objext \
9997 conftest$ac_exeext conftest.$ac_ext
9999 ac_cpp='$CPP $CPPFLAGS'
10000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10006 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10007 if test yes != "$lt_cv_cc_needs_belf"; then
10008 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10009 CFLAGS=$SAVE_CFLAGS
10013 # Find out what ABI is being produced by ac_compile, and set linker
10014 # options accordingly.
10015 echo 'int i;' > conftest.$ac_ext
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017 (eval $ac_compile) 2>&5
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; }; then
10021 case `/usr/bin/file conftest.o` in
10023 case $lt_cv_prog_gnu_ld in
10026 i?86-*-solaris*|x86_64-*-solaris*)
10027 LD="${LD-ld} -m elf_x86_64"
10030 LD="${LD-ld} -m elf64_sparc"
10033 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10034 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10039 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10051 need_locks=$enable_libtool_lock
10053 if test -n "$ac_tool_prefix"; then
10054 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10055 set dummy ${ac_tool_prefix}mt; ac_word=$2
10056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10057 $as_echo_n "checking for $ac_word... " >&6; }
10058 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10059 $as_echo_n "(cached) " >&6
10061 if test -n "$MANIFEST_TOOL"; then
10062 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10065 for as_dir in $PATH
10068 test -z "$as_dir" && as_dir=.
10069 for ac_exec_ext in '' $ac_executable_extensions; do
10070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10071 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10081 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10082 if test -n "$MANIFEST_TOOL"; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10084 $as_echo "$MANIFEST_TOOL" >&6; }
10086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10087 $as_echo "no" >&6; }
10092 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10093 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10094 # Extract the first word of "mt", so it can be a program name with args.
10095 set dummy mt; ac_word=$2
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10097 $as_echo_n "checking for $ac_word... " >&6; }
10098 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10099 $as_echo_n "(cached) " >&6
10101 if test -n "$ac_ct_MANIFEST_TOOL"; then
10102 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10105 for as_dir in $PATH
10108 test -z "$as_dir" && as_dir=.
10109 for ac_exec_ext in '' $ac_executable_extensions; do
10110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10111 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10121 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10122 if test -n "$ac_ct_MANIFEST_TOOL"; then
10123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10124 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10130 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10133 case $cross_compiling:$ac_tool_warned in
10135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10137 ac_tool_warned=yes ;;
10139 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10142 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10145 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10147 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10148 if ${lt_cv_path_mainfest_tool+:} false; then :
10149 $as_echo_n "(cached) " >&6
10151 lt_cv_path_mainfest_tool=no
10152 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10153 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10154 cat conftest.err >&5
10155 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10156 lt_cv_path_mainfest_tool=yes
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10161 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10162 if test yes != "$lt_cv_path_mainfest_tool"; then
10172 rhapsody* | darwin*)
10173 if test -n "$ac_tool_prefix"; then
10174 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10175 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10177 $as_echo_n "checking for $ac_word... " >&6; }
10178 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10179 $as_echo_n "(cached) " >&6
10181 if test -n "$DSYMUTIL"; then
10182 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10185 for as_dir in $PATH
10188 test -z "$as_dir" && as_dir=.
10189 for ac_exec_ext in '' $ac_executable_extensions; do
10190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10191 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10202 if test -n "$DSYMUTIL"; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10204 $as_echo "$DSYMUTIL" >&6; }
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10207 $as_echo "no" >&6; }
10212 if test -z "$ac_cv_prog_DSYMUTIL"; then
10213 ac_ct_DSYMUTIL=$DSYMUTIL
10214 # Extract the first word of "dsymutil", so it can be a program name with args.
10215 set dummy dsymutil; ac_word=$2
10216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10217 $as_echo_n "checking for $ac_word... " >&6; }
10218 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10219 $as_echo_n "(cached) " >&6
10221 if test -n "$ac_ct_DSYMUTIL"; then
10222 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10225 for as_dir in $PATH
10228 test -z "$as_dir" && as_dir=.
10229 for ac_exec_ext in '' $ac_executable_extensions; do
10230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10231 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10241 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10242 if test -n "$ac_ct_DSYMUTIL"; then
10243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10244 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10247 $as_echo "no" >&6; }
10250 if test "x$ac_ct_DSYMUTIL" = x; then
10253 case $cross_compiling:$ac_tool_warned in
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10256 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10257 ac_tool_warned=yes ;;
10259 DSYMUTIL=$ac_ct_DSYMUTIL
10262 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10265 if test -n "$ac_tool_prefix"; then
10266 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10267 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10269 $as_echo_n "checking for $ac_word... " >&6; }
10270 if ${ac_cv_prog_NMEDIT+:} false; then :
10271 $as_echo_n "(cached) " >&6
10273 if test -n "$NMEDIT"; then
10274 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10277 for as_dir in $PATH
10280 test -z "$as_dir" && as_dir=.
10281 for ac_exec_ext in '' $ac_executable_extensions; do
10282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10283 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10293 NMEDIT=$ac_cv_prog_NMEDIT
10294 if test -n "$NMEDIT"; then
10295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10296 $as_echo "$NMEDIT" >&6; }
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10299 $as_echo "no" >&6; }
10304 if test -z "$ac_cv_prog_NMEDIT"; then
10305 ac_ct_NMEDIT=$NMEDIT
10306 # Extract the first word of "nmedit", so it can be a program name with args.
10307 set dummy nmedit; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10311 $as_echo_n "(cached) " >&6
10313 if test -n "$ac_ct_NMEDIT"; then
10314 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10333 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10334 if test -n "$ac_ct_NMEDIT"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10336 $as_echo "$ac_ct_NMEDIT" >&6; }
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10342 if test "x$ac_ct_NMEDIT" = x; then
10345 case $cross_compiling:$ac_tool_warned in
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10348 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10349 ac_tool_warned=yes ;;
10351 NMEDIT=$ac_ct_NMEDIT
10354 NMEDIT="$ac_cv_prog_NMEDIT"
10357 if test -n "$ac_tool_prefix"; then
10358 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10359 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10361 $as_echo_n "checking for $ac_word... " >&6; }
10362 if ${ac_cv_prog_LIPO+:} false; then :
10363 $as_echo_n "(cached) " >&6
10365 if test -n "$LIPO"; then
10366 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10369 for as_dir in $PATH
10372 test -z "$as_dir" && as_dir=.
10373 for ac_exec_ext in '' $ac_executable_extensions; do
10374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10375 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385 LIPO=$ac_cv_prog_LIPO
10386 if test -n "$LIPO"; then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10388 $as_echo "$LIPO" >&6; }
10390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10391 $as_echo "no" >&6; }
10396 if test -z "$ac_cv_prog_LIPO"; then
10398 # Extract the first word of "lipo", so it can be a program name with args.
10399 set dummy lipo; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10403 $as_echo_n "(cached) " >&6
10405 if test -n "$ac_ct_LIPO"; then
10406 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_ac_ct_LIPO="lipo"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10426 if test -n "$ac_ct_LIPO"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10428 $as_echo "$ac_ct_LIPO" >&6; }
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10434 if test "x$ac_ct_LIPO" = x; then
10437 case $cross_compiling:$ac_tool_warned in
10439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10441 ac_tool_warned=yes ;;
10446 LIPO="$ac_cv_prog_LIPO"
10449 if test -n "$ac_tool_prefix"; then
10450 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10451 set dummy ${ac_tool_prefix}otool; ac_word=$2
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10453 $as_echo_n "checking for $ac_word... " >&6; }
10454 if ${ac_cv_prog_OTOOL+:} false; then :
10455 $as_echo_n "(cached) " >&6
10457 if test -n "$OTOOL"; then
10458 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10461 for as_dir in $PATH
10464 test -z "$as_dir" && as_dir=.
10465 for ac_exec_ext in '' $ac_executable_extensions; do
10466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10467 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477 OTOOL=$ac_cv_prog_OTOOL
10478 if test -n "$OTOOL"; then
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10480 $as_echo "$OTOOL" >&6; }
10482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10483 $as_echo "no" >&6; }
10488 if test -z "$ac_cv_prog_OTOOL"; then
10490 # Extract the first word of "otool", so it can be a program name with args.
10491 set dummy otool; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10495 $as_echo_n "(cached) " >&6
10497 if test -n "$ac_ct_OTOOL"; then
10498 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_ac_ct_OTOOL="otool"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10518 if test -n "$ac_ct_OTOOL"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10520 $as_echo "$ac_ct_OTOOL" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10526 if test "x$ac_ct_OTOOL" = x; then
10529 case $cross_compiling:$ac_tool_warned in
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10533 ac_tool_warned=yes ;;
10538 OTOOL="$ac_cv_prog_OTOOL"
10541 if test -n "$ac_tool_prefix"; then
10542 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10543 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10545 $as_echo_n "checking for $ac_word... " >&6; }
10546 if ${ac_cv_prog_OTOOL64+:} false; then :
10547 $as_echo_n "(cached) " >&6
10549 if test -n "$OTOOL64"; then
10550 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10553 for as_dir in $PATH
10556 test -z "$as_dir" && as_dir=.
10557 for ac_exec_ext in '' $ac_executable_extensions; do
10558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10559 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569 OTOOL64=$ac_cv_prog_OTOOL64
10570 if test -n "$OTOOL64"; then
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10572 $as_echo "$OTOOL64" >&6; }
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10575 $as_echo "no" >&6; }
10580 if test -z "$ac_cv_prog_OTOOL64"; then
10581 ac_ct_OTOOL64=$OTOOL64
10582 # Extract the first word of "otool64", so it can be a program name with args.
10583 set dummy otool64; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10587 $as_echo_n "(cached) " >&6
10589 if test -n "$ac_ct_OTOOL64"; then
10590 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_ac_ct_OTOOL64="otool64"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10610 if test -n "$ac_ct_OTOOL64"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10612 $as_echo "$ac_ct_OTOOL64" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10618 if test "x$ac_ct_OTOOL64" = x; then
10621 case $cross_compiling:$ac_tool_warned in
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10625 ac_tool_warned=yes ;;
10627 OTOOL64=$ac_ct_OTOOL64
10630 OTOOL64="$ac_cv_prog_OTOOL64"
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10660 $as_echo_n "checking for -single_module linker flag... " >&6; }
10661 if ${lt_cv_apple_cc_single_mod+:} false; then :
10662 $as_echo_n "(cached) " >&6
10664 lt_cv_apple_cc_single_mod=no
10665 if test -z "$LT_MULTI_MODULE"; then
10666 # By default we will add the -single_module flag. You can override
10667 # by either setting the environment variable LT_MULTI_MODULE
10668 # non-empty at configure time, or by adding -multi_module to the
10670 rm -rf libconftest.dylib*
10671 echo "int foo(void){return 1;}" > conftest.c
10672 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10673 -dynamiclib -Wl,-single_module conftest.c" >&5
10674 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10675 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10677 # If there is a non-empty error log, and "single_module"
10678 # appears in it, assume the flag caused a linker warning
10679 if test -s conftest.err && $GREP single_module conftest.err; then
10680 cat conftest.err >&5
10681 # Otherwise, if the output was created with a 0 exit code from
10682 # the compiler, it worked.
10683 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10684 lt_cv_apple_cc_single_mod=yes
10686 cat conftest.err >&5
10688 rm -rf libconftest.dylib*
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10693 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10696 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10697 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10698 $as_echo_n "(cached) " >&6
10700 lt_cv_ld_exported_symbols_list=no
10701 save_LDFLAGS=$LDFLAGS
10702 echo "_main" > conftest.sym
10703 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10705 /* end confdefs.h. */
10714 if ac_fn_c_try_link "$LINENO"; then :
10715 lt_cv_ld_exported_symbols_list=yes
10717 lt_cv_ld_exported_symbols_list=no
10719 rm -f core conftest.err conftest.$ac_objext \
10720 conftest$ac_exeext conftest.$ac_ext
10721 LDFLAGS=$save_LDFLAGS
10724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10725 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10728 $as_echo_n "checking for -force_load linker flag... " >&6; }
10729 if ${lt_cv_ld_force_load+:} false; then :
10730 $as_echo_n "(cached) " >&6
10732 lt_cv_ld_force_load=no
10733 cat > conftest.c << _LT_EOF
10734 int forced_loaded() { return 2;}
10736 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10737 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10738 echo "$AR cru libconftest.a conftest.o" >&5
10739 $AR cru libconftest.a conftest.o 2>&5
10740 echo "$RANLIB libconftest.a" >&5
10741 $RANLIB libconftest.a 2>&5
10742 cat > conftest.c << _LT_EOF
10743 int main() { return 0;}
10745 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10746 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10748 if test -s conftest.err && $GREP force_load conftest.err; then
10749 cat conftest.err >&5
10750 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10751 lt_cv_ld_force_load=yes
10753 cat conftest.err >&5
10755 rm -f conftest.err libconftest.a conftest conftest.c
10756 rm -rf conftest.dSYM
10759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10760 $as_echo "$lt_cv_ld_force_load" >&6; }
10762 rhapsody* | darwin1.[012])
10763 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10765 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10766 darwin*) # darwin 5.x on
10767 # if running on 10.5 or later, the deployment target defaults
10768 # to the OS version, if on x86, and 10.4, the deployment
10769 # target defaults to 10.4. Don't you love it?
10770 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10771 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10772 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10774 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10776 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10780 if test yes = "$lt_cv_apple_cc_single_mod"; then
10781 _lt_dar_single_mod='$single_module'
10783 if test yes = "$lt_cv_ld_exported_symbols_list"; then
10784 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10786 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10788 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10789 _lt_dsymutil='~$DSYMUTIL $lib || :'
10796 # func_munge_path_list VARIABLE PATH
10797 # -----------------------------------
10798 # VARIABLE is name of variable containing _space_ separated list of
10799 # directories to be munged by the contents of PATH, which is string
10802 # string "DIR[ DIR]" will be prepended to VARIABLE
10804 # string "DIR[ DIR]" will be appended to VARIABLE
10805 # "DIRP[:DIRP]::[DIRA:]DIRA"
10806 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
10807 # "DIRA[ DIRA]" will be appended to VARIABLE
10809 # VARIABLE will be replaced by "DIR[ DIR]"
10810 func_munge_path_list ()
10816 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
10819 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
10822 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
10823 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
10826 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10832 $as_echo_n "checking for ANSI C header files... " >&6; }
10833 if ${ac_cv_header_stdc+:} false; then :
10834 $as_echo_n "(cached) " >&6
10836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10837 /* end confdefs.h. */
10838 #include <stdlib.h>
10839 #include <stdarg.h>
10840 #include <string.h>
10850 if ac_fn_c_try_compile "$LINENO"; then :
10851 ac_cv_header_stdc=yes
10853 ac_cv_header_stdc=no
10855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10857 if test $ac_cv_header_stdc = yes; then
10858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10860 /* end confdefs.h. */
10861 #include <string.h>
10864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10865 $EGREP "memchr" >/dev/null 2>&1; then :
10868 ac_cv_header_stdc=no
10874 if test $ac_cv_header_stdc = yes; then
10875 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10877 /* end confdefs.h. */
10878 #include <stdlib.h>
10881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10882 $EGREP "free" >/dev/null 2>&1; then :
10885 ac_cv_header_stdc=no
10891 if test $ac_cv_header_stdc = yes; then
10892 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10893 if test "$cross_compiling" = yes; then :
10896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897 /* end confdefs.h. */
10899 #include <stdlib.h>
10900 #if ((' ' & 0x0FF) == 0x020)
10901 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10902 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10904 # define ISLOWER(c) \
10905 (('a' <= (c) && (c) <= 'i') \
10906 || ('j' <= (c) && (c) <= 'r') \
10907 || ('s' <= (c) && (c) <= 'z'))
10908 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10911 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10916 for (i = 0; i < 256; i++)
10917 if (XOR (islower (i), ISLOWER (i))
10918 || toupper (i) != TOUPPER (i))
10923 if ac_fn_c_try_run "$LINENO"; then :
10926 ac_cv_header_stdc=no
10928 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10929 conftest.$ac_objext conftest.beam conftest.$ac_ext
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10935 $as_echo "$ac_cv_header_stdc" >&6; }
10936 if test $ac_cv_header_stdc = yes; then
10938 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10943 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10944 inttypes.h stdint.h unistd.h
10946 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10947 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10949 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10950 cat >>confdefs.h <<_ACEOF
10951 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10959 for ac_header in dlfcn.h
10961 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10963 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10964 cat >>confdefs.h <<_ACEOF
10965 #define HAVE_DLFCN_H 1
10972 # ------------------------------------ #
10973 # Determine libtool default behavior #
10974 # ------------------------------------ #
10977 # Default behavior is to enable shared and static libraries on systems
10978 # where libtool knows how to build both library versions, and does not
10979 # require separate configuration and build runs for each flavor.
10982 xc_lt_want_enable_shared='yes'
10983 xc_lt_want_enable_static='yes'
10986 # User may have disabled shared or static libraries.
10988 case "x$enable_shared" in # (
10990 xc_lt_want_enable_shared='no'
10993 case "x$enable_static" in # (
10995 xc_lt_want_enable_static='no'
10998 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10999 test "x$xc_lt_want_enable_static" = 'xno'; then
11000 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11004 # Default behavior on systems that require independent configuration
11005 # and build runs for shared and static is to enable shared libraries
11006 # and disable static ones. On these systems option '--disable-shared'
11007 # must be used in order to build a proper static library.
11010 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11011 test "x$xc_lt_want_enable_static" = 'xyes'; then
11012 case $host_os in # (
11013 pw32* | cegcc* | os2* | aix*)
11014 xc_lt_want_enable_static='no'
11020 # Make libtool aware of current shared and static library preferences
11021 # taking in account that, depending on host characteristics, libtool
11022 # may modify these option preferences later in this configure script.
11025 enable_shared=$xc_lt_want_enable_shared
11026 enable_static=$xc_lt_want_enable_static
11029 # Default behavior is to build PIC objects for shared libraries and
11030 # non-PIC objects for static libraries.
11033 xc_lt_want_with_pic='default'
11036 # User may have specified PIC preference.
11039 case "x$with_pic" in # ((
11041 xc_lt_want_with_pic='no'
11044 xc_lt_want_with_pic='yes'
11049 # Default behavior on some systems where building a shared library out
11050 # of non-PIC compiled objects will fail with following linker error
11051 # "relocation R_X86_64_32 can not be used when making a shared object"
11052 # is to build PIC objects even for static libraries. This behavior may
11053 # be overridden using 'configure --disable-shared --without-pic'.
11056 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11057 case $host_cpu in # (
11058 x86_64 | amd64 | ia64)
11059 case $host_os in # (
11061 xc_lt_want_with_pic='yes'
11069 # Make libtool aware of current PIC preference taking in account that,
11070 # depending on host characteristics, libtool may modify PIC default
11071 # behavior to fit host system idiosyncrasies later in this script.
11074 with_pic=$xc_lt_want_with_pic
11076 ## ----------------------- ##
11077 ## Start of libtool code ##
11078 ## ----------------------- ##
11084 enable_win32_dll=yes
11087 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11088 if test -n "$ac_tool_prefix"; then
11089 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11090 set dummy ${ac_tool_prefix}as; ac_word=$2
11091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11092 $as_echo_n "checking for $ac_word... " >&6; }
11093 if ${ac_cv_prog_AS+:} false; then :
11094 $as_echo_n "(cached) " >&6
11096 if test -n "$AS"; then
11097 ac_cv_prog_AS="$AS" # Let the user override the test.
11099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11100 for as_dir in $PATH
11103 test -z "$as_dir" && as_dir=.
11104 for ac_exec_ext in '' $ac_executable_extensions; do
11105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11106 ac_cv_prog_AS="${ac_tool_prefix}as"
11107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11117 if test -n "$AS"; then
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11119 $as_echo "$AS" >&6; }
11121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11122 $as_echo "no" >&6; }
11127 if test -z "$ac_cv_prog_AS"; then
11129 # Extract the first word of "as", so it can be a program name with args.
11130 set dummy as; ac_word=$2
11131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11132 $as_echo_n "checking for $ac_word... " >&6; }
11133 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11134 $as_echo_n "(cached) " >&6
11136 if test -n "$ac_ct_AS"; then
11137 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11140 for as_dir in $PATH
11143 test -z "$as_dir" && as_dir=.
11144 for ac_exec_ext in '' $ac_executable_extensions; do
11145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11146 ac_cv_prog_ac_ct_AS="as"
11147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11156 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11157 if test -n "$ac_ct_AS"; then
11158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11159 $as_echo "$ac_ct_AS" >&6; }
11161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11162 $as_echo "no" >&6; }
11165 if test "x$ac_ct_AS" = x; then
11168 case $cross_compiling:$ac_tool_warned in
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11172 ac_tool_warned=yes ;;
11177 AS="$ac_cv_prog_AS"
11180 if test -n "$ac_tool_prefix"; then
11181 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11182 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11184 $as_echo_n "checking for $ac_word... " >&6; }
11185 if ${ac_cv_prog_DLLTOOL+:} false; then :
11186 $as_echo_n "(cached) " >&6
11188 if test -n "$DLLTOOL"; then
11189 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11192 for as_dir in $PATH
11195 test -z "$as_dir" && as_dir=.
11196 for ac_exec_ext in '' $ac_executable_extensions; do
11197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11198 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11208 DLLTOOL=$ac_cv_prog_DLLTOOL
11209 if test -n "$DLLTOOL"; then
11210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11211 $as_echo "$DLLTOOL" >&6; }
11213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 $as_echo "no" >&6; }
11219 if test -z "$ac_cv_prog_DLLTOOL"; then
11220 ac_ct_DLLTOOL=$DLLTOOL
11221 # Extract the first word of "dlltool", so it can be a program name with args.
11222 set dummy dlltool; ac_word=$2
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11224 $as_echo_n "checking for $ac_word... " >&6; }
11225 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11226 $as_echo_n "(cached) " >&6
11228 if test -n "$ac_ct_DLLTOOL"; then
11229 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11232 for as_dir in $PATH
11235 test -z "$as_dir" && as_dir=.
11236 for ac_exec_ext in '' $ac_executable_extensions; do
11237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11238 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11248 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11249 if test -n "$ac_ct_DLLTOOL"; then
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11251 $as_echo "$ac_ct_DLLTOOL" >&6; }
11253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11254 $as_echo "no" >&6; }
11257 if test "x$ac_ct_DLLTOOL" = x; then
11260 case $cross_compiling:$ac_tool_warned in
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11264 ac_tool_warned=yes ;;
11266 DLLTOOL=$ac_ct_DLLTOOL
11269 DLLTOOL="$ac_cv_prog_DLLTOOL"
11272 if test -n "$ac_tool_prefix"; then
11273 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11274 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11276 $as_echo_n "checking for $ac_word... " >&6; }
11277 if ${ac_cv_prog_OBJDUMP+:} false; then :
11278 $as_echo_n "(cached) " >&6
11280 if test -n "$OBJDUMP"; then
11281 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11284 for as_dir in $PATH
11287 test -z "$as_dir" && as_dir=.
11288 for ac_exec_ext in '' $ac_executable_extensions; do
11289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11290 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11300 OBJDUMP=$ac_cv_prog_OBJDUMP
11301 if test -n "$OBJDUMP"; then
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11303 $as_echo "$OBJDUMP" >&6; }
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11306 $as_echo "no" >&6; }
11311 if test -z "$ac_cv_prog_OBJDUMP"; then
11312 ac_ct_OBJDUMP=$OBJDUMP
11313 # Extract the first word of "objdump", so it can be a program name with args.
11314 set dummy objdump; ac_word=$2
11315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11316 $as_echo_n "checking for $ac_word... " >&6; }
11317 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11318 $as_echo_n "(cached) " >&6
11320 if test -n "$ac_ct_OBJDUMP"; then
11321 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11324 for as_dir in $PATH
11327 test -z "$as_dir" && as_dir=.
11328 for ac_exec_ext in '' $ac_executable_extensions; do
11329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11330 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11340 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11341 if test -n "$ac_ct_OBJDUMP"; then
11342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11343 $as_echo "$ac_ct_OBJDUMP" >&6; }
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11346 $as_echo "no" >&6; }
11349 if test "x$ac_ct_OBJDUMP" = x; then
11352 case $cross_compiling:$ac_tool_warned in
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11355 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11356 ac_tool_warned=yes ;;
11358 OBJDUMP=$ac_ct_OBJDUMP
11361 OBJDUMP="$ac_cv_prog_OBJDUMP"
11367 test -z "$AS" && AS=as
11373 test -z "$DLLTOOL" && DLLTOOL=dlltool
11379 test -z "$OBJDUMP" && OBJDUMP=objdump
11391 # Check whether --enable-shared was given.
11392 if test "${enable_shared+set}" = set; then :
11393 enableval=$enable_shared; p=${PACKAGE-default}
11395 yes) enable_shared=yes ;;
11396 no) enable_shared=no ;;
11399 # Look at the argument we got. We use all the common list separators.
11400 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11401 for pkg in $enableval; do
11403 if test "X$pkg" = "X$p"; then
11422 # Check whether --enable-static was given.
11423 if test "${enable_static+set}" = set; then :
11424 enableval=$enable_static; p=${PACKAGE-default}
11426 yes) enable_static=yes ;;
11427 no) enable_static=no ;;
11430 # Look at the argument we got. We use all the common list separators.
11431 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11432 for pkg in $enableval; do
11434 if test "X$pkg" = "X$p"; then
11454 # Check whether --with-pic was given.
11455 if test "${with_pic+set}" = set; then :
11456 withval=$with_pic; lt_p=${PACKAGE-default}
11458 yes|no) pic_mode=$withval ;;
11461 # Look at the argument we got. We use all the common list separators.
11462 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11463 for lt_pkg in $withval; do
11465 if test "X$lt_pkg" = "X$lt_p"; then
11483 # Check whether --enable-fast-install was given.
11484 if test "${enable_fast_install+set}" = set; then :
11485 enableval=$enable_fast_install; p=${PACKAGE-default}
11487 yes) enable_fast_install=yes ;;
11488 no) enable_fast_install=no ;;
11490 enable_fast_install=no
11491 # Look at the argument we got. We use all the common list separators.
11492 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11493 for pkg in $enableval; do
11495 if test "X$pkg" = "X$p"; then
11496 enable_fast_install=yes
11503 enable_fast_install=yes
11513 shared_archive_member_spec=
11514 case $host,$enable_shared in
11515 power*-*-aix[5-9]*,yes)
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11517 $as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11519 # Check whether --with-aix-soname was given.
11520 if test "${with_aix_soname+set}" = set; then :
11521 withval=$with_aix_soname; case $withval in
11525 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11528 lt_cv_with_aix_soname=$with_aix_soname
11530 if ${lt_cv_with_aix_soname+:} false; then :
11531 $as_echo_n "(cached) " >&6
11533 lt_cv_with_aix_soname=aix
11536 with_aix_soname=$lt_cv_with_aix_soname
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11540 $as_echo "$with_aix_soname" >&6; }
11541 if test aix != "$with_aix_soname"; then
11542 # For the AIX way of multilib, we name the shared archive member
11543 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11544 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11545 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11546 # the AIX toolchain works better with OBJECT_MODE set (default 32).
11547 if test 64 = "${OBJECT_MODE-32}"; then
11548 shared_archive_member_spec=shr_64
11550 shared_archive_member_spec=shr
11555 with_aix_soname=aix
11568 # This can be used to rebuild libtool when needed
11569 LIBTOOL_DEPS=$ltmain
11571 # Always use our own libtool.
11572 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11603 test -z "$LN_S" && LN_S="ln -s"
11618 if test -n "${ZSH_VERSION+set}"; then
11619 setopt NO_GLOB_SUBST
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11623 $as_echo_n "checking for objdir... " >&6; }
11624 if ${lt_cv_objdir+:} false; then :
11625 $as_echo_n "(cached) " >&6
11627 rm -f .libs 2>/dev/null
11628 mkdir .libs 2>/dev/null
11629 if test -d .libs; then
11632 # MS-DOS does not allow filenames that begin with a dot.
11635 rmdir .libs 2>/dev/null
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11638 $as_echo "$lt_cv_objdir" >&6; }
11639 objdir=$lt_cv_objdir
11645 cat >>confdefs.h <<_ACEOF
11646 #define LT_OBJDIR "$lt_cv_objdir/"
11654 # AIX sometimes has problems with the GCC collect2 program. For some
11655 # reason, if we set the COLLECT_NAMES environment variable, the problems
11656 # vanish in a puff of smoke.
11657 if test set != "${COLLECT_NAMES+set}"; then
11659 export COLLECT_NAMES
11664 # Global variables:
11666 can_build_shared=yes
11668 # All known linkers require a '.a' archive for static linking (except MSVC,
11669 # which needs '.lib').
11672 with_gnu_ld=$lt_cv_prog_gnu_ld
11677 # Set sane defaults for various variables
11678 test -z "$CC" && CC=cc
11679 test -z "$LTCC" && LTCC=$CC
11680 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11681 test -z "$LD" && LD=ld
11682 test -z "$ac_objext" && ac_objext=o
11684 func_cc_basename $compiler
11685 cc_basename=$func_cc_basename_result
11688 # Only perform the check for file, if the check method requires it
11689 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11690 case $deplibs_check_method in
11692 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11694 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11695 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11696 $as_echo_n "(cached) " >&6
11700 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11703 lt_save_MAGIC_CMD=$MAGIC_CMD
11704 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11705 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11706 for ac_dir in $ac_dummy; do
11708 test -z "$ac_dir" && ac_dir=.
11709 if test -f "$ac_dir/${ac_tool_prefix}file"; then
11710 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11711 if test -n "$file_magic_test_file"; then
11712 case $deplibs_check_method in
11714 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11715 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11716 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11717 $EGREP "$file_magic_regex" > /dev/null; then
11722 *** Warning: the command libtool uses to detect shared libraries,
11723 *** $file_magic_cmd, produces output that libtool cannot recognize.
11724 *** The result is that libtool may fail to recognize shared libraries
11725 *** as such. This will affect the creation of libtool libraries that
11726 *** depend on shared libraries, but programs linked with such libtool
11727 *** libraries will work regardless of this problem. Nevertheless, you
11728 *** may want to report the problem to your system manager and/or to
11729 *** bug-libtool@gnu.org
11739 MAGIC_CMD=$lt_save_MAGIC_CMD
11744 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11745 if test -n "$MAGIC_CMD"; then
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11747 $as_echo "$MAGIC_CMD" >&6; }
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11750 $as_echo "no" >&6; }
11757 if test -z "$lt_cv_path_MAGIC_CMD"; then
11758 if test -n "$ac_tool_prefix"; then
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11760 $as_echo_n "checking for file... " >&6; }
11761 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11762 $as_echo_n "(cached) " >&6
11766 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11769 lt_save_MAGIC_CMD=$MAGIC_CMD
11770 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11772 for ac_dir in $ac_dummy; do
11774 test -z "$ac_dir" && ac_dir=.
11775 if test -f "$ac_dir/file"; then
11776 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11777 if test -n "$file_magic_test_file"; then
11778 case $deplibs_check_method in
11780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11781 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11783 $EGREP "$file_magic_regex" > /dev/null; then
11788 *** Warning: the command libtool uses to detect shared libraries,
11789 *** $file_magic_cmd, produces output that libtool cannot recognize.
11790 *** The result is that libtool may fail to recognize shared libraries
11791 *** as such. This will affect the creation of libtool libraries that
11792 *** depend on shared libraries, but programs linked with such libtool
11793 *** libraries will work regardless of this problem. Nevertheless, you
11794 *** may want to report the problem to your system manager and/or to
11795 *** bug-libtool@gnu.org
11805 MAGIC_CMD=$lt_save_MAGIC_CMD
11810 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11811 if test -n "$MAGIC_CMD"; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11813 $as_echo "$MAGIC_CMD" >&6; }
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11816 $as_echo "no" >&6; }
11829 # Use C for the default configuration in the libtool script
11833 ac_cpp='$CPP $CPPFLAGS'
11834 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11835 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11836 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11839 # Source file extension for C test sources.
11842 # Object file extension for compiled C test sources.
11846 # Code to be used in simple compile tests
11847 lt_simple_compile_test_code="int some_variable = 0;"
11849 # Code to be used in simple link tests
11850 lt_simple_link_test_code='int main(){return(0);}'
11858 # If no C compiler was specified, use CC.
11861 # If no C compiler flags were specified, use CFLAGS.
11862 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11864 # Allow CC to be a program name with arguments.
11867 # Save the default compiler, since it gets overwritten when the other
11868 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11869 compiler_DEFAULT=$CC
11871 # save warnings/boilerplate of simple test code
11872 ac_outfile=conftest.$ac_objext
11873 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11874 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11875 _lt_compiler_boilerplate=`cat conftest.err`
11878 ac_outfile=conftest.$ac_objext
11879 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11880 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11881 _lt_linker_boilerplate=`cat conftest.err`
11886 ## There is no encapsulation within the following macros, do not change
11887 ## the running order or otherwise move them around unless you know exactly
11888 ## what you are doing...
11889 if test -n "$compiler"; then
11891 lt_prog_compiler_no_builtin_flag=
11893 if test yes = "$GCC"; then
11894 case $cc_basename in
11896 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11898 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11902 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11903 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11904 $as_echo_n "(cached) " >&6
11906 lt_cv_prog_compiler_rtti_exceptions=no
11907 ac_outfile=conftest.$ac_objext
11908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11909 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
11910 # Insert the option either (1) after the last *FLAGS variable, or
11911 # (2) before a word containing "conftest.", or (3) at the end.
11912 # Note that $ac_compile itself does not contain backslashes and begins
11913 # with a dollar sign (not a hyphen), so the echo should work correctly.
11914 # The option is referenced via a variable to avoid confusing sed.
11915 lt_compile=`echo "$ac_compile" | $SED \
11916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11918 -e 's:$: $lt_compiler_flag:'`
11919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11920 (eval "$lt_compile" 2>conftest.err)
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 if (exit $ac_status) && test -s "$ac_outfile"; then
11925 # The compiler can only warn and ignore the option if not recognized
11926 # So say no if there are warnings other than the usual output.
11927 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11930 lt_cv_prog_compiler_rtti_exceptions=yes
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11939 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11940 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11952 lt_prog_compiler_wl=
11953 lt_prog_compiler_pic=
11954 lt_prog_compiler_static=
11957 if test yes = "$GCC"; then
11958 lt_prog_compiler_wl='-Wl,'
11959 lt_prog_compiler_static='-static'
11963 # All AIX code is PIC.
11964 if test ia64 = "$host_cpu"; then
11965 # AIX 5 now supports IA64 processor
11966 lt_prog_compiler_static='-Bstatic'
11968 lt_prog_compiler_pic='-fPIC'
11974 # see comment about AmigaOS4 .so support
11975 lt_prog_compiler_pic='-fPIC'
11978 # FIXME: we need at least 68020 code to build shared libraries, but
11979 # adding the '-m68020' flag to GCC prevents building anything better,
11981 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11986 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11987 # PIC is the default for these OSes.
11990 mingw* | cygwin* | pw32* | os2* | cegcc*)
11991 # This hack is so that the source file can tell whether it is being
11992 # built for inclusion in a dll (and should export symbols for example).
11993 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11994 # (--disable-auto-import) libraries
11995 lt_prog_compiler_pic='-DDLL_EXPORT'
11998 lt_prog_compiler_static='$wl-static'
12003 darwin* | rhapsody*)
12004 # PIC is the default on this platform
12005 # Common symbols not allowed in MH_DYLIB files
12006 lt_prog_compiler_pic='-fno-common'
12010 # PIC is the default for Haiku.
12011 # The "-static" flag exists, but is broken.
12012 lt_prog_compiler_static=
12016 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12017 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12018 # sets the default TLS model and affects inlining.
12024 lt_prog_compiler_pic='-fPIC'
12030 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12031 # Instead, we relocate shared libraries at runtime.
12035 # Just because we use GCC doesn't mean we suddenly get shared libraries
12036 # on systems that don't support them.
12037 lt_prog_compiler_can_build_shared=no
12042 # QNX uses GNU C++, but need to define -shared option too, otherwise
12043 # it will coredump.
12044 lt_prog_compiler_pic='-fPIC -shared'
12048 if test -d /usr/nec; then
12049 lt_prog_compiler_pic=-Kconform_pic
12054 lt_prog_compiler_pic='-fPIC'
12058 case $cc_basename in
12059 nvcc*) # Cuda Compiler Driver 2.2
12060 lt_prog_compiler_wl='-Xlinker '
12061 if test -n "$lt_prog_compiler_pic"; then
12062 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12067 # PORTME Check for flag to pass linker flags through the system compiler.
12070 lt_prog_compiler_wl='-Wl,'
12071 if test ia64 = "$host_cpu"; then
12072 # AIX 5 now supports IA64 processor
12073 lt_prog_compiler_static='-Bstatic'
12075 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12079 darwin* | rhapsody*)
12080 # PIC is the default on this platform
12081 # Common symbols not allowed in MH_DYLIB files
12082 lt_prog_compiler_pic='-fno-common'
12083 case $cc_basename in
12085 # NAG Fortran compiler
12086 lt_prog_compiler_wl='-Wl,-Wl,,'
12087 lt_prog_compiler_pic='-PIC'
12088 lt_prog_compiler_static='-Bstatic'
12093 mingw* | cygwin* | pw32* | os2* | cegcc*)
12094 # This hack is so that the source file can tell whether it is being
12095 # built for inclusion in a dll (and should export symbols for example).
12096 lt_prog_compiler_pic='-DDLL_EXPORT'
12099 lt_prog_compiler_static='$wl-static'
12104 hpux9* | hpux10* | hpux11*)
12105 lt_prog_compiler_wl='-Wl,'
12106 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12107 # not for PA HP-UX.
12113 lt_prog_compiler_pic='+Z'
12116 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12117 lt_prog_compiler_static='$wl-a ${wl}archive'
12120 irix5* | irix6* | nonstopux*)
12121 lt_prog_compiler_wl='-Wl,'
12122 # PIC (with -KPIC) is the default.
12123 lt_prog_compiler_static='-non_shared'
12126 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12127 case $cc_basename in
12128 # old Intel for x86_64, which still supported -KPIC.
12130 lt_prog_compiler_wl='-Wl,'
12131 lt_prog_compiler_pic='-KPIC'
12132 lt_prog_compiler_static='-static'
12134 # icc used to be incompatible with GCC.
12135 # ICC 10 doesn't accept -KPIC any more.
12137 lt_prog_compiler_wl='-Wl,'
12138 lt_prog_compiler_pic='-fPIC'
12139 lt_prog_compiler_static='-static'
12141 # Lahey Fortran 8.1.
12143 lt_prog_compiler_wl='-Wl,'
12144 lt_prog_compiler_pic='--shared'
12145 lt_prog_compiler_static='--static'
12148 # NAG Fortran compiler
12149 lt_prog_compiler_wl='-Wl,-Wl,,'
12150 lt_prog_compiler_pic='-PIC'
12151 lt_prog_compiler_static='-Bstatic'
12154 # Fabrice Bellard et al's Tiny C Compiler
12155 lt_prog_compiler_wl='-Wl,'
12156 lt_prog_compiler_pic='-fPIC'
12157 lt_prog_compiler_static='-static'
12159 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12160 # Portland Group compilers (*not* the Pentium gcc compiler,
12161 # which looks to be a dead project)
12162 lt_prog_compiler_wl='-Wl,'
12163 lt_prog_compiler_pic='-fpic'
12164 lt_prog_compiler_static='-Bstatic'
12167 lt_prog_compiler_wl='-Wl,'
12168 # All Alpha code is PIC.
12169 lt_prog_compiler_static='-non_shared'
12171 xl* | bgxl* | bgf* | mpixl*)
12172 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12173 lt_prog_compiler_wl='-Wl,'
12174 lt_prog_compiler_pic='-qpic'
12175 lt_prog_compiler_static='-qstaticlink'
12178 case `$CC -V 2>&1 | sed 5q` in
12179 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12180 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12181 lt_prog_compiler_pic='-KPIC'
12182 lt_prog_compiler_static='-Bstatic'
12183 lt_prog_compiler_wl=''
12185 *Sun\ F* | *Sun*Fortran*)
12186 lt_prog_compiler_pic='-KPIC'
12187 lt_prog_compiler_static='-Bstatic'
12188 lt_prog_compiler_wl='-Qoption ld '
12192 lt_prog_compiler_pic='-KPIC'
12193 lt_prog_compiler_static='-Bstatic'
12194 lt_prog_compiler_wl='-Wl,'
12196 *Intel*\ [CF]*Compiler*)
12197 lt_prog_compiler_wl='-Wl,'
12198 lt_prog_compiler_pic='-fPIC'
12199 lt_prog_compiler_static='-static'
12202 lt_prog_compiler_wl='-Wl,'
12203 lt_prog_compiler_pic='-fpic'
12204 lt_prog_compiler_static='-Bstatic'
12212 lt_prog_compiler_pic='-KPIC'
12213 lt_prog_compiler_static='-Bstatic'
12217 # QNX uses GNU C++, but need to define -shared option too, otherwise
12218 # it will coredump.
12219 lt_prog_compiler_pic='-fPIC -shared'
12222 osf3* | osf4* | osf5*)
12223 lt_prog_compiler_wl='-Wl,'
12224 # All OSF/1 code is PIC.
12225 lt_prog_compiler_static='-non_shared'
12229 lt_prog_compiler_static='-non_shared'
12233 lt_prog_compiler_pic='-KPIC'
12234 lt_prog_compiler_static='-Bstatic'
12235 case $cc_basename in
12236 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12237 lt_prog_compiler_wl='-Qoption ld ';;
12239 lt_prog_compiler_wl='-Wl,';;
12244 lt_prog_compiler_wl='-Qoption ld '
12245 lt_prog_compiler_pic='-PIC'
12246 lt_prog_compiler_static='-Bstatic'
12249 sysv4 | sysv4.2uw2* | sysv4.3*)
12250 lt_prog_compiler_wl='-Wl,'
12251 lt_prog_compiler_pic='-KPIC'
12252 lt_prog_compiler_static='-Bstatic'
12256 if test -d /usr/nec; then
12257 lt_prog_compiler_pic='-Kconform_pic'
12258 lt_prog_compiler_static='-Bstatic'
12262 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12263 lt_prog_compiler_wl='-Wl,'
12264 lt_prog_compiler_pic='-KPIC'
12265 lt_prog_compiler_static='-Bstatic'
12269 lt_prog_compiler_wl='-Wl,'
12270 lt_prog_compiler_can_build_shared=no
12274 lt_prog_compiler_pic='-pic'
12275 lt_prog_compiler_static='-Bstatic'
12279 lt_prog_compiler_can_build_shared=no
12285 # For platforms that do not support PIC, -DPIC is meaningless:
12287 lt_prog_compiler_pic=
12290 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12295 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12296 if ${lt_cv_prog_compiler_pic+:} false; then :
12297 $as_echo_n "(cached) " >&6
12299 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12302 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12303 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12306 # Check to make sure the PIC flag actually works.
12308 if test -n "$lt_prog_compiler_pic"; then
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12310 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12311 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12312 $as_echo_n "(cached) " >&6
12314 lt_cv_prog_compiler_pic_works=no
12315 ac_outfile=conftest.$ac_objext
12316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12317 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
12318 # Insert the option either (1) after the last *FLAGS variable, or
12319 # (2) before a word containing "conftest.", or (3) at the end.
12320 # Note that $ac_compile itself does not contain backslashes and begins
12321 # with a dollar sign (not a hyphen), so the echo should work correctly.
12322 # The option is referenced via a variable to avoid confusing sed.
12323 lt_compile=`echo "$ac_compile" | $SED \
12324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12326 -e 's:$: $lt_compiler_flag:'`
12327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12328 (eval "$lt_compile" 2>conftest.err)
12330 cat conftest.err >&5
12331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12332 if (exit $ac_status) && test -s "$ac_outfile"; then
12333 # The compiler can only warn and ignore the option if not recognized
12334 # So say no if there are warnings other than the usual output.
12335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12338 lt_cv_prog_compiler_pic_works=yes
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12345 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12347 if test yes = "$lt_cv_prog_compiler_pic_works"; then
12348 case $lt_prog_compiler_pic in
12350 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12353 lt_prog_compiler_pic=
12354 lt_prog_compiler_can_build_shared=no
12370 # Check to make sure the static flag actually works.
12372 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12374 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12375 if ${lt_cv_prog_compiler_static_works+:} false; then :
12376 $as_echo_n "(cached) " >&6
12378 lt_cv_prog_compiler_static_works=no
12379 save_LDFLAGS=$LDFLAGS
12380 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12381 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12382 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12383 # The linker can only warn and ignore the option if not recognized
12384 # So say no if there are warnings
12385 if test -s conftest.err; then
12386 # Append any errors to the config.log.
12387 cat conftest.err 1>&5
12388 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12389 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12390 if diff conftest.exp conftest.er2 >/dev/null; then
12391 lt_cv_prog_compiler_static_works=yes
12394 lt_cv_prog_compiler_static_works=yes
12398 LDFLAGS=$save_LDFLAGS
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12402 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12404 if test yes = "$lt_cv_prog_compiler_static_works"; then
12407 lt_prog_compiler_static=
12416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12417 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12418 if ${lt_cv_prog_compiler_c_o+:} false; then :
12419 $as_echo_n "(cached) " >&6
12421 lt_cv_prog_compiler_c_o=no
12422 $RM -r conftest 2>/dev/null
12426 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12428 lt_compiler_flag="-o out/conftest2.$ac_objext"
12429 # Insert the option either (1) after the last *FLAGS variable, or
12430 # (2) before a word containing "conftest.", or (3) at the end.
12431 # Note that $ac_compile itself does not contain backslashes and begins
12432 # with a dollar sign (not a hyphen), so the echo should work correctly.
12433 lt_compile=`echo "$ac_compile" | $SED \
12434 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12435 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12436 -e 's:$: $lt_compiler_flag:'`
12437 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12438 (eval "$lt_compile" 2>out/conftest.err)
12440 cat out/conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12444 # The compiler can only warn and ignore the option if not recognized
12445 # So say no if there are warnings
12446 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12447 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12448 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12449 lt_cv_prog_compiler_c_o=yes
12454 # SGI C++ compiler will create directory out/ii_files/ for
12455 # template instantiation
12456 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12457 $RM out/* && rmdir out
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12464 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12472 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12473 if ${lt_cv_prog_compiler_c_o+:} false; then :
12474 $as_echo_n "(cached) " >&6
12476 lt_cv_prog_compiler_c_o=no
12477 $RM -r conftest 2>/dev/null
12481 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12483 lt_compiler_flag="-o out/conftest2.$ac_objext"
12484 # Insert the option either (1) after the last *FLAGS variable, or
12485 # (2) before a word containing "conftest.", or (3) at the end.
12486 # Note that $ac_compile itself does not contain backslashes and begins
12487 # with a dollar sign (not a hyphen), so the echo should work correctly.
12488 lt_compile=`echo "$ac_compile" | $SED \
12489 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12490 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12491 -e 's:$: $lt_compiler_flag:'`
12492 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12493 (eval "$lt_compile" 2>out/conftest.err)
12495 cat out/conftest.err >&5
12496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12499 # The compiler can only warn and ignore the option if not recognized
12500 # So say no if there are warnings
12501 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12502 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12503 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12504 lt_cv_prog_compiler_c_o=yes
12509 # SGI C++ compiler will create directory out/ii_files/ for
12510 # template instantiation
12511 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12512 $RM out/* && rmdir out
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12519 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12524 hard_links=nottested
12525 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12526 # do not overwrite the value of need_locks provided by the user
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12528 $as_echo_n "checking if we can lock with hard links... " >&6; }
12531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12533 ln conftest.a conftest.b 2>&5 || hard_links=no
12534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12536 $as_echo "$hard_links" >&6; }
12537 if test no = "$hard_links"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12539 $as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12552 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12555 allow_undefined_flag=
12556 always_export_symbols=no
12558 archive_expsym_cmds=
12559 compiler_needs_object=no
12560 enable_shared_with_static_runtimes=no
12561 export_dynamic_flag_spec=
12562 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12563 hardcode_automatic=no
12565 hardcode_direct_absolute=no
12566 hardcode_libdir_flag_spec=
12567 hardcode_libdir_separator=
12568 hardcode_minus_L=no
12569 hardcode_shlibpath_var=unsupported
12571 link_all_deplibs=unknown
12573 module_expsym_cmds=
12574 old_archive_from_new_cmds=
12575 old_archive_from_expsyms_cmds=
12576 thread_safe_flag_spec=
12577 whole_archive_flag_spec=
12578 # include_expsyms should be a list of space-separated symbols to be *always*
12579 # included in the symbol list
12581 # exclude_expsyms can be an extended regexp of symbols to exclude
12582 # it will be wrapped by ' (' and ')$', so one must not match beginning or
12583 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12584 # as well as any symbol that contains 'd'.
12585 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12586 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12587 # platforms (ab)use it in PIC code, but their linkers get confused if
12588 # the symbol is explicitly referenced. Since portable code cannot
12589 # rely on this symbol name, it's probably fine to never include it in
12590 # preloaded symbol tables.
12591 # Exclude shared library initialization/finalization symbols.
12592 extract_expsyms_cmds=
12595 cygwin* | mingw* | pw32* | cegcc*)
12596 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12597 # When not using gcc, we currently assume that we are using
12598 # Microsoft Visual C++.
12599 if test yes != "$GCC"; then
12604 # we just hope/assume this is gcc and not c89 (= MSVC++)
12607 openbsd* | bitrig*)
12610 linux* | k*bsd*-gnu | gnu*)
12611 link_all_deplibs=no
12617 # On some targets, GNU ld is compatible enough with the native linker
12618 # that we're better off using the native interface for both.
12619 lt_use_gnu_ld_interface=no
12620 if test yes = "$with_gnu_ld"; then
12623 # The AIX port of GNU ld has always aspired to compatibility
12624 # with the native linker. However, as the warning in the GNU ld
12625 # block says, versions before 2.19.5* couldn't really create working
12626 # shared libraries, regardless of the interface used.
12627 case `$LD -v 2>&1` in
12628 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12629 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12630 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12632 lt_use_gnu_ld_interface=yes
12637 lt_use_gnu_ld_interface=yes
12642 if test yes = "$lt_use_gnu_ld_interface"; then
12643 # If archive_cmds runs LD, not CC, wlarc should be empty
12646 # Set some defaults for GNU ld with shared library support. These
12647 # are reset later if shared libraries are not supported. Putting them
12648 # here allows them to be overridden if necessary.
12649 runpath_var=LD_RUN_PATH
12650 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12651 export_dynamic_flag_spec='$wl--export-dynamic'
12652 # ancient GNU ld didn't support --whole-archive et. al.
12653 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12654 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12656 whole_archive_flag_spec=
12658 supports_anon_versioning=no
12659 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12660 *GNU\ gold*) supports_anon_versioning=yes ;;
12661 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12662 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12663 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12664 *\ 2.11.*) ;; # other 2.11 versions
12665 *) supports_anon_versioning=yes ;;
12668 # See if GNU ld supports shared libraries.
12671 # On AIX/PPC, the GNU linker is very broken
12672 if test ia64 != "$host_cpu"; then
12676 *** Warning: the GNU linker, at least up to release 2.19, is reported
12677 *** to be unable to reliably create shared libraries on AIX.
12678 *** Therefore, libtool is disabling shared libraries support. If you
12679 *** really care for shared libraries, you may want to install binutils
12680 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12681 *** You will then need to restart the configuration process.
12690 # see comment about AmigaOS4 .so support
12691 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12692 archive_expsym_cmds=''
12695 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)'
12696 hardcode_libdir_flag_spec='-L$libdir'
12697 hardcode_minus_L=yes
12703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12704 allow_undefined_flag=unsupported
12705 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12706 # support --undefined. This deserves some investigation. FIXME
12707 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12713 cygwin* | mingw* | pw32* | cegcc*)
12714 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12715 # as there is no search path for DLLs.
12716 hardcode_libdir_flag_spec='-L$libdir'
12717 export_dynamic_flag_spec='$wl--export-all-symbols'
12718 allow_undefined_flag=unsupported
12719 always_export_symbols=no
12720 enable_shared_with_static_runtimes=yes
12721 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'
12722 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12724 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12726 # If the export-symbols file already is a .def file, use it as
12727 # is; otherwise, prepend EXPORTS...
12728 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
12729 cp $export_symbols $output_objdir/$soname.def;
12731 echo EXPORTS > $output_objdir/$soname.def;
12732 cat $export_symbols >> $output_objdir/$soname.def;
12734 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12741 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12742 link_all_deplibs=yes
12746 hardcode_libdir_flag_spec='-L$libdir'
12747 hardcode_minus_L=yes
12748 allow_undefined_flag=unsupported
12750 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12751 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12752 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12753 $ECHO EXPORTS >> $output_objdir/$libname.def~
12754 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12755 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12756 emximp -o $lib $output_objdir/$libname.def'
12757 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12758 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12759 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12760 $ECHO EXPORTS >> $output_objdir/$libname.def~
12761 prefix_cmds="$SED"~
12762 if test EXPORTS = "`$SED 1q $export_symbols`"; then
12763 prefix_cmds="$prefix_cmds -e 1d";
12765 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12766 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12767 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12768 emximp -o $lib $output_objdir/$libname.def'
12769 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12770 enable_shared_with_static_runtimes=yes
12775 hardcode_shlibpath_var=no
12776 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12777 export_dynamic_flag_spec='$wl-E'
12778 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12779 # Instead, shared libraries are loaded at an image base (0x10000000 by
12780 # default) and relocated if they conflict, which is a slow very memory
12781 # consuming and fragmenting process. To avoid this, we pick a random,
12782 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12783 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12784 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12785 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'
12788 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12790 if test linux-dietlibc = "$host_os"; then
12791 case $cc_basename in
12792 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12795 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12796 && test no = "$tmp_diet"
12798 tmp_addflag=' $pic_flag'
12799 tmp_sharedflag='-shared'
12800 case $cc_basename,$host_cpu in
12801 pgcc*) # Portland Group C compiler
12802 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'
12803 tmp_addflag=' $pic_flag'
12805 pgf77* | pgf90* | pgf95* | pgfortran*)
12806 # Portland Group f77 and f90 compilers
12807 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'
12808 tmp_addflag=' $pic_flag -Mnomain' ;;
12809 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12810 tmp_addflag=' -i_dynamic' ;;
12811 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12812 tmp_addflag=' -i_dynamic -nofor_main' ;;
12813 ifc* | ifort*) # Intel Fortran compiler
12814 tmp_addflag=' -nofor_main' ;;
12815 lf95*) # Lahey Fortran 8.1
12816 whole_archive_flag_spec=
12817 tmp_sharedflag='--shared' ;;
12818 nagfor*) # NAGFOR 5.3
12819 tmp_sharedflag='-Wl,-shared' ;;
12820 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12821 tmp_sharedflag='-qmkshrobj'
12823 nvcc*) # Cuda Compiler Driver 2.2
12824 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'
12825 compiler_needs_object=yes
12828 case `$CC -V 2>&1 | sed 5q` in
12829 *Sun\ C*) # Sun C 5.9
12830 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'
12831 compiler_needs_object=yes
12832 tmp_sharedflag='-G' ;;
12833 *Sun\ F*) # Sun Fortran 8.3
12834 tmp_sharedflag='-G' ;;
12836 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12838 if test yes = "$supports_anon_versioning"; then
12839 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12840 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12841 echo "local: *; };" >> $output_objdir/$libname.ver~
12842 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12845 case $cc_basename in
12847 export_dynamic_flag_spec='-rdynamic'
12849 xlf* | bgf* | bgxlf* | mpixlf*)
12850 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12851 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12852 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12853 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12854 if test yes = "$supports_anon_versioning"; then
12855 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12856 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12857 echo "local: *; };" >> $output_objdir/$libname.ver~
12858 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12867 netbsd* | netbsdelf*-gnu)
12868 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12869 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12872 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12873 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12878 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12882 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12883 *** create shared libraries on Solaris systems. Therefore, libtool
12884 *** is disabling shared libraries support. We urge you to upgrade GNU
12885 *** binutils to release 2.9.1 or newer. Another option is to modify
12886 *** your PATH or compiler configuration so that the native linker is
12887 *** used, and then restart.
12890 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12891 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12892 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12898 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12899 case `$LD -v 2>&1` in
12900 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12904 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12905 *** reliably create shared libraries on SCO systems. Therefore, libtool
12906 *** is disabling shared libraries support. We urge you to upgrade GNU
12907 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12908 *** your PATH or compiler configuration so that the native linker is
12909 *** used, and then restart.
12914 # For security reasons, it is highly recommended that you always
12915 # use absolute paths for naming shared libraries, and exclude the
12916 # DT_RUNPATH tag from executables and libraries. But doing so
12917 # requires that you compile everything twice, which is a pain.
12918 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12919 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12921 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12930 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12932 hardcode_direct=yes
12933 hardcode_shlibpath_var=no
12937 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12938 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12939 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12946 if test no = "$ld_shlibs"; then
12948 hardcode_libdir_flag_spec=
12949 export_dynamic_flag_spec=
12950 whole_archive_flag_spec=
12953 # PORTME fill in a description of your system's linker (not GNU ld)
12956 allow_undefined_flag=unsupported
12957 always_export_symbols=yes
12958 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'
12959 # Note: this linker hardcodes the directories in LIBPATH if there
12960 # are no directories specified by -L.
12961 hardcode_minus_L=yes
12962 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12963 # Neither direct hardcoding nor static linking is supported with a
12965 hardcode_direct=unsupported
12970 if test ia64 = "$host_cpu"; then
12971 # On IA64, the linker does run time linking by default, so we don't
12972 # have to do anything special.
12973 aix_use_runtimelinking=no
12974 exp_sym_flag='-Bexport'
12977 # If we're using GNU nm, then we don't want the "-C" option.
12978 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
12979 # Without the "-l" option, or with the "-B" option, AIX nm treats
12980 # weak defined symbols like other global defined symbols, whereas
12981 # GNU nm marks them as "W".
12982 # While the 'weak' keyword is ignored in the Export File, we need
12983 # it in the Import File for the 'aix-soname' feature, so we have
12984 # to replace the "-B" option with "-P" for AIX nm.
12985 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12986 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'
12988 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'
12990 aix_use_runtimelinking=no
12992 # Test if we are trying to use run time linking or normal
12993 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12994 # have runtime linking enabled, and use it for executables.
12995 # For shared libraries, we enable/disable runtime linking
12996 # depending on the kind of the shared library created -
12997 # when "with_aix_soname,aix_use_runtimelinking" is:
12998 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
12999 # "aix,yes" lib.so shared, rtl:yes, for executables
13000 # lib.a static archive
13001 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13002 # lib.a(lib.so.V) shared, rtl:no, for executables
13003 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13004 # lib.a(lib.so.V) shared, rtl:no
13005 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13006 # lib.a static archive
13007 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13008 for ld_flag in $LDFLAGS; do
13009 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13010 aix_use_runtimelinking=yes
13014 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13015 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13016 # so we don't have lib.a shared libs to link our executables.
13017 # We have to force runtime linking in this case.
13018 aix_use_runtimelinking=yes
13019 LDFLAGS="$LDFLAGS -Wl,-brtl"
13024 exp_sym_flag='-bexport'
13025 no_entry_flag='-bnoentry'
13028 # When large executables or shared objects are built, AIX ld can
13029 # have problems creating the table of contents. If linking a library
13030 # or program results in "error TOC overflow" add -mminimal-toc to
13031 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13032 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13035 hardcode_direct=yes
13036 hardcode_direct_absolute=yes
13037 hardcode_libdir_separator=':'
13038 link_all_deplibs=yes
13039 file_list_spec='$wl-f,'
13040 case $with_aix_soname,$aix_use_runtimelinking in
13041 aix,*) ;; # traditional, no import file
13042 svr4,* | *,yes) # use import file
13043 # The Import File defines what to hardcode.
13045 hardcode_direct_absolute=no
13049 if test yes = "$GCC"; then
13050 case $host_os in aix4.[012]|aix4.[012].*)
13051 # We only want to do this on AIX 4.2 and lower, the check
13052 # below for broken collect2 doesn't work under 4.3+
13053 collect2name=`$CC -print-prog-name=collect2`
13054 if test -f "$collect2name" &&
13055 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13057 # We have reworked collect2
13060 # We have old collect2
13061 hardcode_direct=unsupported
13062 # It fails to find uninstalled libraries when the uninstalled
13063 # path is not listed in the libpath. Setting hardcode_minus_L
13064 # to unsupported forces relinking
13065 hardcode_minus_L=yes
13066 hardcode_libdir_flag_spec='-L$libdir'
13067 hardcode_libdir_separator=
13071 shared_flag='-shared'
13072 if test yes = "$aix_use_runtimelinking"; then
13073 shared_flag="$shared_flag "'$wl-G'
13075 # Need to ensure runtime linking is disabled for the traditional
13076 # shared library, or the linker may eventually find shared libraries
13077 # /with/ Import File - we do not want to mix them.
13078 shared_flag_aix='-shared'
13079 shared_flag_svr4='-shared $wl-G'
13082 if test ia64 = "$host_cpu"; then
13083 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13084 # chokes on -Wl,-G. The following line is correct:
13087 if test yes = "$aix_use_runtimelinking"; then
13088 shared_flag='$wl-G'
13090 shared_flag='$wl-bM:SRE'
13092 shared_flag_aix='$wl-bM:SRE'
13093 shared_flag_svr4='$wl-G'
13097 export_dynamic_flag_spec='$wl-bexpall'
13098 # It seems that -bexpall does not export symbols beginning with
13099 # underscore (_), so it is better to generate a list of symbols to export.
13100 always_export_symbols=yes
13101 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13102 # Warning - without using the other runtime loading flags (-brtl),
13103 # -berok will link without error, but may produce a broken library.
13104 allow_undefined_flag='-berok'
13105 # Determine the default libpath from the value encoded in an
13106 # empty executable.
13107 if test set = "${lt_cv_aix_libpath+set}"; then
13108 aix_libpath=$lt_cv_aix_libpath
13110 if ${lt_cv_aix_libpath_+:} false; then :
13111 $as_echo_n "(cached) " >&6
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13123 if ac_fn_c_try_link "$LINENO"; then :
13125 lt_aix_libpath_sed='
13126 /Import File Strings/,/^$/ {
13128 s/^0 *\([^ ]*\) *$/\1/
13132 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13133 # Check for a 64-bit object if we didn't find anything.
13134 if test -z "$lt_cv_aix_libpath_"; then
13135 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13138 rm -f core conftest.err conftest.$ac_objext \
13139 conftest$ac_exeext conftest.$ac_ext
13140 if test -z "$lt_cv_aix_libpath_"; then
13141 lt_cv_aix_libpath_=/usr/lib:/lib
13146 aix_libpath=$lt_cv_aix_libpath_
13149 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13150 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
13152 if test ia64 = "$host_cpu"; then
13153 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13154 allow_undefined_flag="-z nodefs"
13155 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"
13157 # Determine the default libpath from the value encoded in an
13158 # empty executable.
13159 if test set = "${lt_cv_aix_libpath+set}"; then
13160 aix_libpath=$lt_cv_aix_libpath
13162 if ${lt_cv_aix_libpath_+:} false; then :
13163 $as_echo_n "(cached) " >&6
13165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13166 /* end confdefs.h. */
13175 if ac_fn_c_try_link "$LINENO"; then :
13177 lt_aix_libpath_sed='
13178 /Import File Strings/,/^$/ {
13180 s/^0 *\([^ ]*\) *$/\1/
13184 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13185 # Check for a 64-bit object if we didn't find anything.
13186 if test -z "$lt_cv_aix_libpath_"; then
13187 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13190 rm -f core conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 if test -z "$lt_cv_aix_libpath_"; then
13193 lt_cv_aix_libpath_=/usr/lib:/lib
13198 aix_libpath=$lt_cv_aix_libpath_
13201 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13202 # Warning - without using the other run time loading flags,
13203 # -berok will link without error, but may produce a broken library.
13204 no_undefined_flag=' $wl-bernotok'
13205 allow_undefined_flag=' $wl-berok'
13206 if test yes = "$with_gnu_ld"; then
13207 # We only use this code for GNU lds that support --whole-archive.
13208 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13210 # Exported symbols can be pulled into shared objects from archives
13211 whole_archive_flag_spec='$convenience'
13213 archive_cmds_need_lc=yes
13214 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13215 # -brtl affects multiple linker settings, -berok does not and is overridden later
13216 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13217 if test svr4 != "$with_aix_soname"; then
13218 # This is similar to how AIX traditionally builds its shared libraries.
13219 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'
13221 if test aix != "$with_aix_soname"; then
13222 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'
13224 # used by -dlpreopen to get the symbols
13225 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13227 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13235 # see comment about AmigaOS4 .so support
13236 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13237 archive_expsym_cmds=''
13240 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)'
13241 hardcode_libdir_flag_spec='-L$libdir'
13242 hardcode_minus_L=yes
13248 export_dynamic_flag_spec=-rdynamic
13251 cygwin* | mingw* | pw32* | cegcc*)
13252 # When not using gcc, we currently assume that we are using
13253 # Microsoft Visual C++.
13254 # hardcode_libdir_flag_spec is actually meaningless, as there is
13255 # no search path for DLLs.
13256 case $cc_basename in
13259 hardcode_libdir_flag_spec=' '
13260 allow_undefined_flag=unsupported
13261 always_export_symbols=yes
13263 # Tell ltmain to make .lib files, not .a files.
13265 # Tell ltmain to make .dll files, not .so files.
13267 # FIXME: Setting linknames here is a bad hack.
13268 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13269 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13270 cp "$export_symbols" "$output_objdir/$soname.def";
13271 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13273 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13275 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13277 # The linker will not automatically build a static lib if we build a DLL.
13278 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13279 enable_shared_with_static_runtimes=yes
13280 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13281 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13283 old_postinstall_cmds='chmod 644 $oldlib'
13284 postlink_cmds='lt_outputfile="@OUTPUT@"~
13285 lt_tool_outputfile="@TOOL_OUTPUT@"~
13286 case $lt_outputfile in
13289 lt_outputfile=$lt_outputfile.exe
13290 lt_tool_outputfile=$lt_tool_outputfile.exe
13293 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
13294 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13295 $RM "$lt_outputfile.manifest";
13299 # Assume MSVC wrapper
13300 hardcode_libdir_flag_spec=' '
13301 allow_undefined_flag=unsupported
13302 # Tell ltmain to make .lib files, not .a files.
13304 # Tell ltmain to make .dll files, not .so files.
13306 # FIXME: Setting linknames here is a bad hack.
13307 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13308 # The linker will automatically build a .lib file if we build a DLL.
13309 old_archive_from_new_cmds='true'
13310 # FIXME: Should let the user specify the lib program.
13311 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13312 enable_shared_with_static_runtimes=yes
13317 darwin* | rhapsody*)
13320 archive_cmds_need_lc=no
13322 hardcode_automatic=yes
13323 hardcode_shlibpath_var=unsupported
13324 if test yes = "$lt_cv_ld_force_load"; then
13325 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\"`'
13328 whole_archive_flag_spec=''
13330 link_all_deplibs=yes
13331 allow_undefined_flag=$_lt_dar_allow_undefined
13332 case $cc_basename in
13333 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13334 *) _lt_dar_can_shared=$GCC ;;
13336 if test yes = "$_lt_dar_can_shared"; then
13337 output_verbose_link_cmd=func_echo_all
13338 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13339 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13340 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"
13341 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"
13350 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13351 hardcode_libdir_flag_spec='-L$libdir'
13352 hardcode_shlibpath_var=no
13355 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13356 # support. Future versions do this automatically, but an explicit c++rt0.o
13357 # does not break anything, and helps significantly (at the cost of a little
13360 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13361 hardcode_libdir_flag_spec='-R$libdir'
13362 hardcode_direct=yes
13363 hardcode_shlibpath_var=no
13366 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13368 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13369 hardcode_direct=yes
13370 hardcode_minus_L=yes
13371 hardcode_shlibpath_var=no
13374 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13375 freebsd* | dragonfly*)
13376 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13377 hardcode_libdir_flag_spec='-R$libdir'
13378 hardcode_direct=yes
13379 hardcode_shlibpath_var=no
13383 if test yes = "$GCC"; then
13384 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'
13386 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'
13388 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13389 hardcode_libdir_separator=:
13390 hardcode_direct=yes
13392 # hardcode_minus_L: Not really in the search PATH,
13393 # but as the default location of the library.
13394 hardcode_minus_L=yes
13395 export_dynamic_flag_spec='$wl-E'
13399 if test yes,no = "$GCC,$with_gnu_ld"; then
13400 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13402 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13404 if test no = "$with_gnu_ld"; then
13405 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13406 hardcode_libdir_separator=:
13407 hardcode_direct=yes
13408 hardcode_direct_absolute=yes
13409 export_dynamic_flag_spec='$wl-E'
13410 # hardcode_minus_L: Not really in the search PATH,
13411 # but as the default location of the library.
13412 hardcode_minus_L=yes
13417 if test yes,no = "$GCC,$with_gnu_ld"; then
13420 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13423 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13426 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13432 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13435 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13439 # Older versions of the 11.00 compiler do not understand -b yet
13440 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13442 $as_echo_n "checking if $CC understands -b... " >&6; }
13443 if ${lt_cv_prog_compiler__b+:} false; then :
13444 $as_echo_n "(cached) " >&6
13446 lt_cv_prog_compiler__b=no
13447 save_LDFLAGS=$LDFLAGS
13448 LDFLAGS="$LDFLAGS -b"
13449 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13450 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13451 # The linker can only warn and ignore the option if not recognized
13452 # So say no if there are warnings
13453 if test -s conftest.err; then
13454 # Append any errors to the config.log.
13455 cat conftest.err 1>&5
13456 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13457 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13458 if diff conftest.exp conftest.er2 >/dev/null; then
13459 lt_cv_prog_compiler__b=yes
13462 lt_cv_prog_compiler__b=yes
13466 LDFLAGS=$save_LDFLAGS
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13470 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13472 if test yes = "$lt_cv_prog_compiler__b"; then
13473 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13475 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13481 if test no = "$with_gnu_ld"; then
13482 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13483 hardcode_libdir_separator=:
13488 hardcode_shlibpath_var=no
13491 hardcode_direct=yes
13492 hardcode_direct_absolute=yes
13493 export_dynamic_flag_spec='$wl-E'
13495 # hardcode_minus_L: Not really in the search PATH,
13496 # but as the default location of the library.
13497 hardcode_minus_L=yes
13503 irix5* | irix6* | nonstopux*)
13504 if test yes = "$GCC"; then
13505 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'
13506 # Try to use the -exported_symbol ld option, if it does not
13507 # work, assume that -exports_file does not work either and
13508 # implicitly export all symbols.
13509 # This should be the same for all languages, so no per-tag cache variable.
13510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13511 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13512 if ${lt_cv_irix_exported_symbol+:} false; then :
13513 $as_echo_n "(cached) " >&6
13515 save_LDFLAGS=$LDFLAGS
13516 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13518 /* end confdefs.h. */
13519 int foo (void) { return 0; }
13521 if ac_fn_c_try_link "$LINENO"; then :
13522 lt_cv_irix_exported_symbol=yes
13524 lt_cv_irix_exported_symbol=no
13526 rm -f core conftest.err conftest.$ac_objext \
13527 conftest$ac_exeext conftest.$ac_ext
13528 LDFLAGS=$save_LDFLAGS
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13531 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13532 if test yes = "$lt_cv_irix_exported_symbol"; then
13533 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'
13535 link_all_deplibs=no
13537 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'
13538 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'
13540 archive_cmds_need_lc='no'
13541 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13542 hardcode_libdir_separator=:
13544 link_all_deplibs=yes
13548 case $cc_basename in
13550 # Fabrice Bellard et al's Tiny C Compiler
13552 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13557 netbsd* | netbsdelf*-gnu)
13558 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13561 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13563 hardcode_libdir_flag_spec='-R$libdir'
13564 hardcode_direct=yes
13565 hardcode_shlibpath_var=no
13569 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13570 hardcode_direct=yes
13571 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13572 hardcode_libdir_separator=:
13573 hardcode_shlibpath_var=no
13579 openbsd* | bitrig*)
13580 if test -f /usr/libexec/ld.so; then
13581 hardcode_direct=yes
13582 hardcode_shlibpath_var=no
13583 hardcode_direct_absolute=yes
13584 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13585 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13586 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13587 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13588 export_dynamic_flag_spec='$wl-E'
13590 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13591 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13599 hardcode_libdir_flag_spec='-L$libdir'
13600 hardcode_minus_L=yes
13601 allow_undefined_flag=unsupported
13603 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13604 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13605 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13606 $ECHO EXPORTS >> $output_objdir/$libname.def~
13607 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13608 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13609 emximp -o $lib $output_objdir/$libname.def'
13610 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13611 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13612 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13613 $ECHO EXPORTS >> $output_objdir/$libname.def~
13614 prefix_cmds="$SED"~
13615 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13616 prefix_cmds="$prefix_cmds -e 1d";
13618 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13619 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13620 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13621 emximp -o $lib $output_objdir/$libname.def'
13622 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13623 enable_shared_with_static_runtimes=yes
13627 if test yes = "$GCC"; then
13628 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13629 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'
13631 allow_undefined_flag=' -expect_unresolved \*'
13632 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'
13634 archive_cmds_need_lc='no'
13635 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13636 hardcode_libdir_separator=:
13639 osf4* | osf5*) # as osf3* with the addition of -msym flag
13640 if test yes = "$GCC"; then
13641 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13642 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'
13643 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13645 allow_undefined_flag=' -expect_unresolved \*'
13646 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'
13647 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~
13648 $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'
13650 # Both c and cxx compiler support -rpath directly
13651 hardcode_libdir_flag_spec='-rpath $libdir'
13653 archive_cmds_need_lc='no'
13654 hardcode_libdir_separator=:
13658 no_undefined_flag=' -z defs'
13659 if test yes = "$GCC"; then
13661 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13662 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13663 $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'
13665 case `$CC -V 2>&1` in
13668 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13669 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13670 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13674 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13675 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13676 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13680 hardcode_libdir_flag_spec='-R$libdir'
13681 hardcode_shlibpath_var=no
13683 solaris2.[0-5] | solaris2.[0-5].*) ;;
13685 # The compiler driver will combine and reorder linker options,
13686 # but understands '-z linker_flag'. GCC discards it without '$wl',
13687 # but is careful enough not to reorder.
13688 # Supported since Solaris 2.6 (maybe 2.5.1?)
13689 if test yes = "$GCC"; then
13690 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13692 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13696 link_all_deplibs=yes
13700 if test sequent = "$host_vendor"; then
13701 # Use $CC to link under sequent, because it throws in some extra .o
13702 # files that make .init and .fini sections work.
13703 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13705 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13707 hardcode_libdir_flag_spec='-L$libdir'
13708 hardcode_direct=yes
13709 hardcode_minus_L=yes
13710 hardcode_shlibpath_var=no
13714 case $host_vendor in
13716 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13717 hardcode_direct=yes # is this really true???
13720 ## LD is ld it makes a PLAMLIB
13721 ## CC just makes a GrossModule.
13722 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13723 reload_cmds='$CC -r -o $output$reload_objs'
13727 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13728 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13731 runpath_var='LD_RUN_PATH'
13732 hardcode_shlibpath_var=no
13736 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13737 hardcode_shlibpath_var=no
13738 export_dynamic_flag_spec='-Bexport'
13742 if test -d /usr/nec; then
13743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13744 hardcode_shlibpath_var=no
13745 runpath_var=LD_RUN_PATH
13746 hardcode_runpath_var=yes
13751 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13752 no_undefined_flag='$wl-z,text'
13753 archive_cmds_need_lc=no
13754 hardcode_shlibpath_var=no
13755 runpath_var='LD_RUN_PATH'
13757 if test yes = "$GCC"; then
13758 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13759 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13761 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13762 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13766 sysv5* | sco3.2v5* | sco5v6*)
13767 # Note: We CANNOT use -z defs as we might desire, because we do not
13768 # link with -lc, and that would cause any symbols used from libc to
13769 # always be unresolved, which means just about no library would
13770 # ever link correctly. If we're not using GNU ld we use -z text
13771 # though, which does catch some bad symbols but isn't as heavy-handed
13773 no_undefined_flag='$wl-z,text'
13774 allow_undefined_flag='$wl-z,nodefs'
13775 archive_cmds_need_lc=no
13776 hardcode_shlibpath_var=no
13777 hardcode_libdir_flag_spec='$wl-R,$libdir'
13778 hardcode_libdir_separator=':'
13779 link_all_deplibs=yes
13780 export_dynamic_flag_spec='$wl-Bexport'
13781 runpath_var='LD_RUN_PATH'
13783 if test yes = "$GCC"; then
13784 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13785 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13787 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13788 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13793 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13794 hardcode_libdir_flag_spec='-L$libdir'
13795 hardcode_shlibpath_var=no
13803 if test sni = "$host_vendor"; then
13805 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13806 export_dynamic_flag_spec='$wl-Blargedynsym'
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13813 $as_echo "$ld_shlibs" >&6; }
13814 test no = "$ld_shlibs" && can_build_shared=no
13816 with_gnu_ld=$with_gnu_ld
13833 # Do we need to explicitly link libc?
13835 case "x$archive_cmds_need_lc" in
13837 # Assume -lc should be added
13838 archive_cmds_need_lc=yes
13840 if test yes,yes = "$GCC,$enable_shared"; then
13841 case $archive_cmds in
13843 # FIXME: we may have to deal with multi-command sequences.
13846 # Test whether the compiler implicitly links with -lc since on some
13847 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13848 # to ld, don't add -lc before -lgcc.
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13850 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13851 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13852 $as_echo_n "(cached) " >&6
13855 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13857 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13858 (eval $ac_compile) 2>&5
13860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13861 test $ac_status = 0; } 2>conftest.err; then
13864 libobjs=conftest.$ac_objext
13866 wl=$lt_prog_compiler_wl
13867 pic_flag=$lt_prog_compiler_pic
13873 lt_save_allow_undefined_flag=$allow_undefined_flag
13874 allow_undefined_flag=
13875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13876 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13879 test $ac_status = 0; }
13881 lt_cv_archive_cmds_need_lc=no
13883 lt_cv_archive_cmds_need_lc=yes
13885 allow_undefined_flag=$lt_save_allow_undefined_flag
13887 cat conftest.err 1>&5
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13893 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13894 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14053 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14055 if test yes = "$GCC"; then
14057 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14058 *) lt_awk_arg='/^libraries:/' ;;
14061 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14062 *) lt_sed_strip_eq='s|=/|/|g' ;;
14064 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14065 case $lt_search_path_spec in
14067 # if the path contains ";" then we assume it to be the separator
14068 # otherwise default to the standard path separator (i.e. ":") - it is
14069 # assumed that no part of a normal pathname contains ";" but that should
14070 # okay in the real world where ";" in dirpaths is itself problematic.
14071 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14074 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14077 # Ok, now we have the path, separated by spaces, we can step through it
14078 # and add multilib dir if necessary...
14079 lt_tmp_lt_search_path_spec=
14080 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14081 # ...but if some path component already ends with the multilib dir we assume
14082 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14083 case "$lt_multi_os_dir; $lt_search_path_spec " in
14084 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14088 for lt_sys_path in $lt_search_path_spec; do
14089 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14090 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14091 elif test -n "$lt_multi_os_dir"; then
14092 test -d "$lt_sys_path" && \
14093 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14096 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14097 BEGIN {RS = " "; FS = "/|\n";} {
14100 for (lt_i = NF; lt_i > 0; lt_i--) {
14101 if ($lt_i != "" && $lt_i != ".") {
14102 if ($lt_i == "..") {
14105 if (lt_count == 0) {
14106 lt_foo = "/" $lt_i lt_foo;
14113 if (lt_foo != "") { lt_freq[lt_foo]++; }
14114 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14116 # AWK program above erroneously prepends '/' to C:/dos/paths
14119 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14120 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14122 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14124 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14126 library_names_spec=
14127 libname_spec='lib$name'
14131 postuninstall_cmds=
14135 shlibpath_overrides_runpath=unknown
14137 dynamic_linker="$host_os ld.so"
14138 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14139 need_lib_prefix=unknown
14140 hardcode_into_libs=no
14142 # when you set need_version to no, make sure it does not cause -set_version
14143 # flags to be left without arguments
14144 need_version=unknown
14150 version_type=linux # correct to gnu/linux during the next big refactor
14151 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14152 shlibpath_var=LIBPATH
14154 # AIX 3 has no versioning support, so we append a major version to the name.
14155 soname_spec='$libname$release$shared_ext$major'
14159 version_type=linux # correct to gnu/linux during the next big refactor
14162 hardcode_into_libs=yes
14163 if test ia64 = "$host_cpu"; then
14164 # AIX 5 supports IA64
14165 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14166 shlibpath_var=LD_LIBRARY_PATH
14168 # With GCC up to 2.95.x, collect2 would create an import file
14169 # for dependence libraries. The import file would start with
14170 # the line '#! .'. This would cause the generated library to
14171 # depend on '.', always an invalid library. This was fixed in
14172 # development snapshots of GCC prior to 3.0.
14174 aix4 | aix4.[01] | aix4.[01].*)
14175 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14177 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14180 can_build_shared=no
14184 # Using Import Files as archive members, it is possible to support
14185 # filename-based versioning of shared library archives on AIX. While
14186 # this would work for both with and without runtime linking, it will
14187 # prevent static linking of such archives. So we do filename-based
14188 # shared library versioning with .so extension only, which is used
14189 # when both runtime linking and shared linking is enabled.
14190 # Unfortunately, runtime linking may impact performance, so we do
14191 # not want this to be the default eventually. Also, we use the
14192 # versioned .so libs for executables only if there is the -brtl
14193 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14194 # To allow for filename-based versioning support, we need to create
14195 # libNAME.so.V as an archive file, containing:
14196 # *) an Import File, referring to the versioned filename of the
14197 # archive as well as the shared archive member, telling the
14198 # bitwidth (32 or 64) of that shared object, and providing the
14199 # list of exported symbols of that shared object, eventually
14200 # decorated with the 'weak' keyword
14201 # *) the shared object with the F_LOADONLY flag set, to really avoid
14202 # it being seen by the linker.
14203 # At run time we better use the real file rather than another symlink,
14204 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14206 case $with_aix_soname,$aix_use_runtimelinking in
14207 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14208 # soname into executable. Probably we can add versioning support to
14209 # collect2, so additional links can be useful in future.
14210 aix,yes) # traditional libtool
14211 dynamic_linker='AIX unversionable lib.so'
14212 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14213 # instead of lib<name>.a to let people know that these are not
14214 # typical AIX shared libraries.
14215 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14217 aix,no) # traditional AIX only
14218 dynamic_linker='AIX lib.a(lib.so.V)'
14219 # We preserve .a as extension for shared libraries through AIX4.2
14220 # and later when we are not doing run time linking.
14221 library_names_spec='$libname$release.a $libname.a'
14222 soname_spec='$libname$release$shared_ext$major'
14224 svr4,*) # full svr4 only
14225 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14226 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14227 # We do not specify a path in Import Files, so LIBPATH fires.
14228 shlibpath_overrides_runpath=yes
14230 *,yes) # both, prefer svr4
14231 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14232 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14233 # unpreferred sharedlib libNAME.a needs extra handling
14234 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"'
14235 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"'
14236 # We do not specify a path in Import Files, so LIBPATH fires.
14237 shlibpath_overrides_runpath=yes
14239 *,no) # both, prefer aix
14240 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14241 library_names_spec='$libname$release.a $libname.a'
14242 soname_spec='$libname$release$shared_ext$major'
14243 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14244 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)'
14245 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"'
14248 shlibpath_var=LIBPATH
14255 # Since July 2007 AmigaOS4 officially supports .so libraries.
14256 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14257 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14260 library_names_spec='$libname.ixlibrary $libname.a'
14261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14262 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'
14268 library_names_spec='$libname$shared_ext'
14269 dynamic_linker="$host_os ld.so"
14270 shlibpath_var=LIBRARY_PATH
14274 version_type=linux # correct to gnu/linux during the next big refactor
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'
14278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14279 shlibpath_var=LD_LIBRARY_PATH
14280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14282 # the default ld.so.conf also contains /usr/contrib/lib and
14283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14284 # libtool to hard-code these into programs
14287 cygwin* | mingw* | pw32* | cegcc*)
14288 version_type=windows
14293 case $GCC,$cc_basename in
14296 library_names_spec='$libname.dll.a'
14297 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14298 postinstall_cmds='base_file=`basename \$file`~
14299 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14300 dldir=$destdir/`dirname \$dlpath`~
14301 test -d \$dldir || mkdir -p \$dldir~
14302 $install_prog $dir/$dlname \$dldir/$dlname~
14303 chmod a+x \$dldir/$dlname~
14304 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14305 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14307 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14308 dlpath=$dir/\$dldll~
14310 shlibpath_overrides_runpath=yes
14314 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14315 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14317 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14320 # MinGW DLLs use traditional 'lib' prefix
14321 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14324 # pw32 DLLs use 'pw' prefix rather than 'lib'
14325 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14328 dynamic_linker='Win32 ld.exe'
14333 libname_spec='$name'
14334 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14335 library_names_spec='$libname.dll.lib'
14339 sys_lib_search_path_spec=
14342 for lt_path in $LIB
14345 # Let DOS variable expansion print the short 8.3 style file name.
14346 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14347 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14350 # Convert to MSYS style.
14351 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14354 # Convert to unix form, then to dos form, then back to unix form
14355 # but this time dos style (no spaces!) so that the unix form looks
14356 # like /cygdrive/c/PROGRA~1:/cygdr...
14357 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14358 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14359 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14362 sys_lib_search_path_spec=$LIB
14363 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14364 # It is most probably a Windows format PATH.
14365 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14367 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14369 # FIXME: find the short name or the path components, as spaces are
14370 # common. (e.g. "Program Files" -> "PROGRA~1")
14374 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14375 postinstall_cmds='base_file=`basename \$file`~
14376 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14377 dldir=$destdir/`dirname \$dlpath`~
14378 test -d \$dldir || mkdir -p \$dldir~
14379 $install_prog $dir/$dlname \$dldir/$dlname'
14380 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14381 dlpath=$dir/\$dldll~
14383 shlibpath_overrides_runpath=yes
14384 dynamic_linker='Win32 link.exe'
14388 # Assume MSVC wrapper
14389 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14390 dynamic_linker='Win32 ld.exe'
14393 # FIXME: first we should search . and the directory the executable is in
14397 darwin* | rhapsody*)
14398 dynamic_linker="$host_os dyld"
14399 version_type=darwin
14402 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14403 soname_spec='$libname$release$major$shared_ext'
14404 shlibpath_overrides_runpath=yes
14405 shlibpath_var=DYLD_LIBRARY_PATH
14406 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14408 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14409 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14413 version_type=linux # correct to gnu/linux during the next big refactor
14416 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14417 soname_spec='$libname$release$shared_ext$major'
14418 shlibpath_var=LD_LIBRARY_PATH
14421 freebsd* | dragonfly*)
14422 # DragonFly does not have aout. When/if they implement a new
14423 # versioning mechanism, adjust this.
14424 if test -x /usr/bin/objformat; then
14425 objformat=`/usr/bin/objformat`
14428 freebsd[23].*) objformat=aout ;;
14429 *) objformat=elf ;;
14432 version_type=freebsd-$objformat
14433 case $version_type in
14435 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14436 soname_spec='$libname$release$shared_ext$major'
14441 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14445 shlibpath_var=LD_LIBRARY_PATH
14448 shlibpath_overrides_runpath=yes
14450 freebsd3.[01]* | freebsdelf3.[01]*)
14451 shlibpath_overrides_runpath=yes
14452 hardcode_into_libs=yes
14454 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14455 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14456 shlibpath_overrides_runpath=no
14457 hardcode_into_libs=yes
14459 *) # from 4.6 on, and DragonFly
14460 shlibpath_overrides_runpath=yes
14461 hardcode_into_libs=yes
14467 version_type=linux # correct to gnu/linux during the next big refactor
14470 dynamic_linker="$host_os runtime_loader"
14471 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14472 soname_spec='$libname$release$shared_ext$major'
14473 shlibpath_var=LIBRARY_PATH
14474 shlibpath_overrides_runpath=no
14475 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14476 hardcode_into_libs=yes
14479 hpux9* | hpux10* | hpux11*)
14480 # Give a soname corresponding to the major version so that dld.sl refuses to
14481 # link against other versions.
14488 hardcode_into_libs=yes
14489 dynamic_linker="$host_os dld.so"
14490 shlibpath_var=LD_LIBRARY_PATH
14491 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14492 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14493 soname_spec='$libname$release$shared_ext$major'
14494 if test 32 = "$HPUX_IA64_MODE"; then
14495 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14496 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14498 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14499 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14504 hardcode_into_libs=yes
14505 dynamic_linker="$host_os dld.sl"
14506 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14507 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14508 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14509 soname_spec='$libname$release$shared_ext$major'
14510 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14511 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14515 dynamic_linker="$host_os dld.sl"
14516 shlibpath_var=SHLIB_PATH
14517 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14518 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14519 soname_spec='$libname$release$shared_ext$major'
14522 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14523 postinstall_cmds='chmod 555 $lib'
14524 # or fails outright, so override atomically:
14525 install_override_mode=555
14529 version_type=linux # correct to gnu/linux during the next big refactor
14532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14533 soname_spec='$libname$release$shared_ext$major'
14534 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=no
14537 hardcode_into_libs=yes
14540 irix5* | irix6* | nonstopux*)
14542 nonstopux*) version_type=nonstopux ;;
14544 if test yes = "$lt_cv_prog_gnu_ld"; then
14545 version_type=linux # correct to gnu/linux during the next big refactor
14552 soname_spec='$libname$release$shared_ext$major'
14553 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14555 irix5* | nonstopux*)
14556 libsuff= shlibsuff=
14559 case $LD in # libtool.m4 will add one of these switches to LD
14560 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14561 libsuff= shlibsuff= libmagic=32-bit;;
14562 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14563 libsuff=32 shlibsuff=N32 libmagic=N32;;
14564 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14565 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14566 *) libsuff= shlibsuff= libmagic=never-match;;
14570 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14571 shlibpath_overrides_runpath=no
14572 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14573 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14574 hardcode_into_libs=yes
14577 # No shared lib support for Linux oldld, aout, or coff.
14578 linux*oldld* | linux*aout* | linux*coff*)
14583 version_type=none # Android doesn't support versioned libraries.
14586 library_names_spec='$libname$release$shared_ext'
14587 soname_spec='$libname$release$shared_ext'
14589 shlibpath_var=LD_LIBRARY_PATH
14590 shlibpath_overrides_runpath=yes
14592 # This implies no fast_install, which is unacceptable.
14593 # Some rework will be needed to allow for fast_install
14594 # before this can be enabled.
14595 hardcode_into_libs=yes
14597 dynamic_linker='Android linker'
14598 # Don't embed -rpath directories since the linker doesn't support them.
14599 hardcode_libdir_flag_spec='-L$libdir'
14602 # This must be glibc/ELF.
14603 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14604 version_type=linux # correct to gnu/linux during the next big refactor
14607 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14608 soname_spec='$libname$release$shared_ext$major'
14609 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14610 shlibpath_var=LD_LIBRARY_PATH
14611 shlibpath_overrides_runpath=no
14613 # Some binutils ld are patched to set DT_RUNPATH
14614 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14615 $as_echo_n "(cached) " >&6
14617 lt_cv_shlibpath_overrides_runpath=no
14618 save_LDFLAGS=$LDFLAGS
14619 save_libdir=$libdir
14620 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14621 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14623 /* end confdefs.h. */
14632 if ac_fn_c_try_link "$LINENO"; then :
14633 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14634 lt_cv_shlibpath_overrides_runpath=yes
14637 rm -f core conftest.err conftest.$ac_objext \
14638 conftest$ac_exeext conftest.$ac_ext
14639 LDFLAGS=$save_LDFLAGS
14640 libdir=$save_libdir
14644 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14646 # This implies no fast_install, which is unacceptable.
14647 # Some rework will be needed to allow for fast_install
14648 # before this can be enabled.
14649 hardcode_into_libs=yes
14651 # Ideally, we could use ldconfig to report *all* directores which are
14652 # searched for libraries, however this is still not possible. Aside from not
14653 # being certain /sbin/ldconfig is available, command
14654 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14655 # even though it is searched at run-time. Try to do the best guess by
14656 # appending ld.so.conf contents (and includes) to the search path.
14657 if test -f /etc/ld.so.conf; then
14658 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' ' '`
14659 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14662 # We used to test for /lib/ld.so.1 and disable shared libraries on
14663 # powerpc, because MkLinux only supported shared libraries with the
14664 # GNU dynamic linker. Since this was broken with cross compilers,
14665 # most powerpc-linux boxes support dynamic linking these days and
14666 # people can always --disable-shared, the test was removed, and we
14667 # assume the GNU/Linux dynamic linker is in use.
14668 dynamic_linker='GNU/Linux ld.so'
14675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14676 soname_spec='${libname}${release}${shared_ext}$major'
14677 shlibpath_var=LD_LIBRARY_PATH
14678 shlibpath_overrides_runpath=no
14679 hardcode_into_libs=yes
14680 dynamic_linker='NetBSD ld.elf_so'
14687 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14688 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14689 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14690 dynamic_linker='NetBSD (a.out) ld.so'
14692 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14693 soname_spec='$libname$release$shared_ext$major'
14694 dynamic_linker='NetBSD ld.elf_so'
14696 shlibpath_var=LD_LIBRARY_PATH
14697 shlibpath_overrides_runpath=yes
14698 hardcode_into_libs=yes
14702 version_type=linux # correct to gnu/linux during the next big refactor
14703 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14704 shlibpath_var=LD_LIBRARY_PATH
14705 shlibpath_overrides_runpath=yes
14712 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14713 soname_spec='$libname$release$shared_ext$major'
14714 shlibpath_var=LD_LIBRARY_PATH
14715 shlibpath_overrides_runpath=no
14716 hardcode_into_libs=yes
14717 dynamic_linker='ldqnx.so'
14720 openbsd* | bitrig*)
14722 sys_lib_dlsearch_path_spec=/usr/lib
14724 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14729 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14730 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14731 shlibpath_var=LD_LIBRARY_PATH
14732 shlibpath_overrides_runpath=yes
14736 libname_spec='$name'
14737 version_type=windows
14741 # OS/2 can only load a DLL with a base name of 8 characters or less.
14742 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14743 v=$($ECHO $release$versuffix | tr -d .-);
14744 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14745 $ECHO $n$v`$shared_ext'
14746 library_names_spec='${libname}_dll.$libext'
14747 dynamic_linker='OS/2 ld.exe'
14748 shlibpath_var=BEGINLIBPATH
14749 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14750 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14751 postinstall_cmds='base_file=`basename \$file`~
14752 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14753 dldir=$destdir/`dirname \$dlpath`~
14754 test -d \$dldir || mkdir -p \$dldir~
14755 $install_prog $dir/$dlname \$dldir/$dlname~
14756 chmod a+x \$dldir/$dlname~
14757 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14758 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14760 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14761 dlpath=$dir/\$dldll~
14765 osf3* | osf4* | osf5*)
14769 soname_spec='$libname$release$shared_ext$major'
14770 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14771 shlibpath_var=LD_LIBRARY_PATH
14772 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14773 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14781 version_type=linux # correct to gnu/linux during the next big refactor
14784 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14785 soname_spec='$libname$release$shared_ext$major'
14786 shlibpath_var=LD_LIBRARY_PATH
14787 shlibpath_overrides_runpath=yes
14788 hardcode_into_libs=yes
14789 # ldd complains unless libraries are executable
14790 postinstall_cmds='chmod +x $lib'
14795 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14796 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14797 shlibpath_var=LD_LIBRARY_PATH
14798 shlibpath_overrides_runpath=yes
14799 if test yes = "$with_gnu_ld"; then
14806 version_type=linux # correct to gnu/linux during the next big refactor
14807 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14808 soname_spec='$libname$release$shared_ext$major'
14809 shlibpath_var=LD_LIBRARY_PATH
14810 case $host_vendor in
14812 shlibpath_overrides_runpath=no
14814 runpath_var=LD_RUN_PATH
14822 shlibpath_overrides_runpath=no
14823 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14829 if test -d /usr/nec; then
14830 version_type=linux # correct to gnu/linux during the next big refactor
14831 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14832 soname_spec='$libname$shared_ext.$major'
14833 shlibpath_var=LD_LIBRARY_PATH
14837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14841 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14842 soname_spec='$libname$release$shared_ext$major'
14843 shlibpath_var=LD_LIBRARY_PATH
14844 shlibpath_overrides_runpath=yes
14845 hardcode_into_libs=yes
14846 if test yes = "$with_gnu_ld"; then
14847 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14849 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14852 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14856 sys_lib_dlsearch_path_spec='/usr/lib'
14860 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14861 version_type=linux # correct to gnu/linux during the next big refactor
14864 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14865 shlibpath_var=LD_LIBRARY_PATH
14866 shlibpath_overrides_runpath=no
14867 hardcode_into_libs=yes
14871 version_type=linux # correct to gnu/linux during the next big refactor
14872 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14873 soname_spec='$libname$release$shared_ext$major'
14874 shlibpath_var=LD_LIBRARY_PATH
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14882 $as_echo "$dynamic_linker" >&6; }
14883 test no = "$dynamic_linker" && can_build_shared=no
14885 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14886 if test yes = "$GCC"; then
14887 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14890 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14891 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14894 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14895 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14898 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14899 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14901 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14902 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14904 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14905 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15004 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15006 if test -n "$hardcode_libdir_flag_spec" ||
15007 test -n "$runpath_var" ||
15008 test yes = "$hardcode_automatic"; then
15010 # We can hardcode non-existent directories.
15011 if test no != "$hardcode_direct" &&
15012 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15013 # have to relink, otherwise we might link with an installed library
15014 # when we should be linking with a yet-to-be-installed one
15015 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15016 test no != "$hardcode_minus_L"; then
15017 # Linking always hardcodes the temporary library directory.
15018 hardcode_action=relink
15020 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15021 hardcode_action=immediate
15024 # We cannot hardcode anything, or else we can only hardcode existing
15026 hardcode_action=unsupported
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15029 $as_echo "$hardcode_action" >&6; }
15031 if test relink = "$hardcode_action" ||
15032 test yes = "$inherit_rpath"; then
15033 # Fast installation is not supported
15034 enable_fast_install=no
15035 elif test yes = "$shlibpath_overrides_runpath" ||
15036 test no = "$enable_shared"; then
15037 # Fast installation is not necessary
15038 enable_fast_install=needless
15046 if test yes != "$enable_dlopen"; then
15047 enable_dlopen=unknown
15048 enable_dlopen_self=unknown
15049 enable_dlopen_self_static=unknown
15056 lt_cv_dlopen=load_add_on
15058 lt_cv_dlopen_self=yes
15061 mingw* | pw32* | cegcc*)
15062 lt_cv_dlopen=LoadLibrary
15067 lt_cv_dlopen=dlopen
15072 # if libdl is installed we need to link against it
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15074 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15075 if ${ac_cv_lib_dl_dlopen+:} false; then :
15076 $as_echo_n "(cached) " >&6
15078 ac_check_lib_save_LIBS=$LIBS
15080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15081 /* end confdefs.h. */
15095 if ac_fn_c_try_link "$LINENO"; then :
15096 ac_cv_lib_dl_dlopen=yes
15098 ac_cv_lib_dl_dlopen=no
15100 rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
15102 LIBS=$ac_check_lib_save_LIBS
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15105 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15106 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15107 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15112 lt_cv_dlopen_self=yes
15119 # Don't try to run any link tests for TPF. We know it's impossible
15120 # because TPF is a cross-compiler, and we know how we open DSOs.
15121 lt_cv_dlopen=dlopen
15123 lt_cv_dlopen_self=no
15127 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15128 if test "x$ac_cv_func_shl_load" = xyes; then :
15129 lt_cv_dlopen=shl_load
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15132 $as_echo_n "checking for shl_load in -ldld... " >&6; }
15133 if ${ac_cv_lib_dld_shl_load+:} false; then :
15134 $as_echo_n "(cached) " >&6
15136 ac_check_lib_save_LIBS=$LIBS
15138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15139 /* end confdefs.h. */
15148 return shl_load ();
15153 if ac_fn_c_try_link "$LINENO"; then :
15154 ac_cv_lib_dld_shl_load=yes
15156 ac_cv_lib_dld_shl_load=no
15158 rm -f core conftest.err conftest.$ac_objext \
15159 conftest$ac_exeext conftest.$ac_ext
15160 LIBS=$ac_check_lib_save_LIBS
15162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15163 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
15164 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
15165 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15167 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15168 if test "x$ac_cv_func_dlopen" = xyes; then :
15169 lt_cv_dlopen=dlopen
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15172 $as_echo_n "checking for dlopen in -ldl... " >&6; }
15173 if ${ac_cv_lib_dl_dlopen+:} false; then :
15174 $as_echo_n "(cached) " >&6
15176 ac_check_lib_save_LIBS=$LIBS
15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15179 /* end confdefs.h. */
15193 if ac_fn_c_try_link "$LINENO"; then :
15194 ac_cv_lib_dl_dlopen=yes
15196 ac_cv_lib_dl_dlopen=no
15198 rm -f core conftest.err conftest.$ac_objext \
15199 conftest$ac_exeext conftest.$ac_ext
15200 LIBS=$ac_check_lib_save_LIBS
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15203 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
15204 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
15205 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15208 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
15209 if ${ac_cv_lib_svld_dlopen+:} false; then :
15210 $as_echo_n "(cached) " >&6
15212 ac_check_lib_save_LIBS=$LIBS
15213 LIBS="-lsvld $LIBS"
15214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15215 /* end confdefs.h. */
15229 if ac_fn_c_try_link "$LINENO"; then :
15230 ac_cv_lib_svld_dlopen=yes
15232 ac_cv_lib_svld_dlopen=no
15234 rm -f core conftest.err conftest.$ac_objext \
15235 conftest$ac_exeext conftest.$ac_ext
15236 LIBS=$ac_check_lib_save_LIBS
15238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15239 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
15240 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
15241 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15244 $as_echo_n "checking for dld_link in -ldld... " >&6; }
15245 if ${ac_cv_lib_dld_dld_link+:} false; then :
15246 $as_echo_n "(cached) " >&6
15248 ac_check_lib_save_LIBS=$LIBS
15250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15251 /* end confdefs.h. */
15260 return dld_link ();
15265 if ac_fn_c_try_link "$LINENO"; then :
15266 ac_cv_lib_dld_dld_link=yes
15268 ac_cv_lib_dld_dld_link=no
15270 rm -f core conftest.err conftest.$ac_objext \
15271 conftest$ac_exeext conftest.$ac_ext
15272 LIBS=$ac_check_lib_save_LIBS
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
15275 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
15276 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
15277 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
15298 if test no = "$lt_cv_dlopen"; then
15304 case $lt_cv_dlopen in
15306 save_CPPFLAGS=$CPPFLAGS
15307 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15309 save_LDFLAGS=$LDFLAGS
15310 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15313 LIBS="$lt_cv_dlopen_libs $LIBS"
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15316 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
15317 if ${lt_cv_dlopen_self+:} false; then :
15318 $as_echo_n "(cached) " >&6
15320 if test yes = "$cross_compiling"; then :
15321 lt_cv_dlopen_self=cross
15323 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15324 lt_status=$lt_dlunknown
15325 cat > conftest.$ac_ext <<_LT_EOF
15326 #line $LINENO "configure"
15327 #include "confdefs.h"
15336 # define LT_DLGLOBAL RTLD_GLOBAL
15339 # define LT_DLGLOBAL DL_GLOBAL
15341 # define LT_DLGLOBAL 0
15345 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15346 find out it does not work in some platform. */
15347 #ifndef LT_DLLAZY_OR_NOW
15349 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15352 # define LT_DLLAZY_OR_NOW DL_LAZY
15355 # define LT_DLLAZY_OR_NOW RTLD_NOW
15358 # define LT_DLLAZY_OR_NOW DL_NOW
15360 # define LT_DLLAZY_OR_NOW 0
15367 /* When -fvisibility=hidden is used, assume the code has been annotated
15368 correspondingly for the symbols needed. */
15369 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15370 int fnord () __attribute__((visibility("default")));
15373 int fnord () { return 42; }
15376 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15377 int status = $lt_dlunknown;
15381 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15384 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15385 else puts (dlerror ());
15387 /* dlclose (self); */
15395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15396 (eval $ac_link) 2>&5
15398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15399 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15400 (./conftest; exit; ) >&5 2>/dev/null
15402 case x$lt_status in
15403 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15404 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15405 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15408 # compilation failed
15409 lt_cv_dlopen_self=no
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15417 $as_echo "$lt_cv_dlopen_self" >&6; }
15419 if test yes = "$lt_cv_dlopen_self"; then
15420 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15422 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15423 if ${lt_cv_dlopen_self_static+:} false; then :
15424 $as_echo_n "(cached) " >&6
15426 if test yes = "$cross_compiling"; then :
15427 lt_cv_dlopen_self_static=cross
15429 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15430 lt_status=$lt_dlunknown
15431 cat > conftest.$ac_ext <<_LT_EOF
15432 #line $LINENO "configure"
15433 #include "confdefs.h"
15442 # define LT_DLGLOBAL RTLD_GLOBAL
15445 # define LT_DLGLOBAL DL_GLOBAL
15447 # define LT_DLGLOBAL 0
15451 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15452 find out it does not work in some platform. */
15453 #ifndef LT_DLLAZY_OR_NOW
15455 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15458 # define LT_DLLAZY_OR_NOW DL_LAZY
15461 # define LT_DLLAZY_OR_NOW RTLD_NOW
15464 # define LT_DLLAZY_OR_NOW DL_NOW
15466 # define LT_DLLAZY_OR_NOW 0
15473 /* When -fvisibility=hidden is used, assume the code has been annotated
15474 correspondingly for the symbols needed. */
15475 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15476 int fnord () __attribute__((visibility("default")));
15479 int fnord () { return 42; }
15482 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15483 int status = $lt_dlunknown;
15487 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15490 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15491 else puts (dlerror ());
15493 /* dlclose (self); */
15501 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15502 (eval $ac_link) 2>&5
15504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15505 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15506 (./conftest; exit; ) >&5 2>/dev/null
15508 case x$lt_status in
15509 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15510 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15511 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15514 # compilation failed
15515 lt_cv_dlopen_self_static=no
15522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15523 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15526 CPPFLAGS=$save_CPPFLAGS
15527 LDFLAGS=$save_LDFLAGS
15532 case $lt_cv_dlopen_self in
15533 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15534 *) enable_dlopen_self=unknown ;;
15537 case $lt_cv_dlopen_self_static in
15538 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15539 *) enable_dlopen_self_static=unknown ;;
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15562 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15563 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15564 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15565 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15567 $as_echo "yes" >&6; }
15569 # FIXME - insert some real tests, host_os isn't really good enough
15572 if test -n "$STRIP"; then
15573 striplib="$STRIP -x"
15574 old_striplib="$STRIP -S"
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15576 $as_echo "yes" >&6; }
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15579 $as_echo "no" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15584 $as_echo "no" >&6; }
15600 # Report what library types will actually be built
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15602 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15604 $as_echo "$can_build_shared" >&6; }
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15607 $as_echo_n "checking whether to build shared libraries... " >&6; }
15608 test no = "$can_build_shared" && enable_shared=no
15610 # On AIX, shared libraries and static libraries use the same namespace, and
15611 # are all built from PIC.
15614 test yes = "$enable_shared" && enable_static=no
15615 if test -n "$RANLIB"; then
15616 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15617 postinstall_cmds='$RANLIB $lib'
15622 if test ia64 != "$host_cpu"; then
15623 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15624 yes,aix,yes) ;; # shared object as lib.so file only
15625 yes,svr4,*) ;; # shared object as lib.so archive member only
15626 yes,*) enable_static=no ;; # shared object in lib.a archive as well
15631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15632 $as_echo "$enable_shared" >&6; }
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15635 $as_echo_n "checking whether to build static libraries... " >&6; }
15636 # Make sure either enable_shared or enable_static is yes.
15637 test yes = "$enable_shared" || enable_static=yes
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15639 $as_echo "$enable_static" >&6; }
15646 ac_cpp='$CPP $CPPFLAGS'
15647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15667 ac_config_commands="$ac_config_commands libtool"
15672 # Only expand once:
15675 ## --------------------- ##
15676 ## End of libtool code ##
15677 ## --------------------- ##
15680 # Verify if finally libtool shared libraries will be built
15683 case "x$enable_shared" in # ((
15685 xc_lt_build_shared=$enable_shared
15688 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15693 # Verify if finally libtool static libraries will be built
15696 case "x$enable_static" in # ((
15698 xc_lt_build_static=$enable_static
15701 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15706 # Verify if libtool shared libraries should be linked using flag -version-info
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15710 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15711 xc_lt_shlib_use_version_info='yes'
15712 if test "x$version_type" = 'xnone'; then
15713 xc_lt_shlib_use_version_info='no'
15715 case $host_os in # (
15717 xc_lt_shlib_use_version_info='yes'
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15721 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15724 # Verify if libtool shared libraries should be linked using flag -no-undefined
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15728 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15729 xc_lt_shlib_use_no_undefined='no'
15730 if test "x$allow_undefined" = 'xno'; then
15731 xc_lt_shlib_use_no_undefined='yes'
15732 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15733 xc_lt_shlib_use_no_undefined='yes'
15735 case $host_os in # (
15736 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15737 xc_lt_shlib_use_no_undefined='yes'
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15741 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15744 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15748 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15749 xc_lt_shlib_use_mimpure_text='no'
15750 case $host_os in # (
15752 if test "x$GCC" = 'xyes'; then
15753 xc_lt_shlib_use_mimpure_text='yes'
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15758 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15761 # Find out whether libtool libraries would be built wit PIC
15764 case "x$pic_mode" in # ((((
15766 xc_lt_build_shared_with_pic='yes'
15767 xc_lt_build_static_with_pic='no'
15770 xc_lt_build_shared_with_pic='yes'
15771 xc_lt_build_static_with_pic='yes'
15774 xc_lt_build_shared_with_pic='no'
15775 xc_lt_build_static_with_pic='no'
15778 xc_lt_build_shared_with_pic='unknown'
15779 xc_lt_build_static_with_pic='unknown'
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15781 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15785 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15787 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15789 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15791 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15794 # Verify if libtool shared libraries will be built while static not built
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15798 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15799 if test "$xc_lt_build_shared" = 'yes' &&
15800 test "$xc_lt_build_static" = 'no'; then
15801 xc_lt_build_shared_only='yes'
15803 xc_lt_build_shared_only='no'
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15806 $as_echo "$xc_lt_build_shared_only" >&6; }
15809 # Verify if libtool static libraries will be built while shared not built
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15813 $as_echo_n "checking whether to build static libraries only... " >&6; }
15814 if test "$xc_lt_build_static" = 'yes' &&
15815 test "$xc_lt_build_shared" = 'no'; then
15816 xc_lt_build_static_only='yes'
15818 xc_lt_build_static_only='no'
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15821 $as_echo "$xc_lt_build_static_only" >&6; }
15827 # Automake conditionals based on libtool related checks
15830 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15831 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15832 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15834 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15835 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15838 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15839 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15840 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15842 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15843 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15846 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15847 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15848 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15850 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15851 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15856 # Due to libtool and automake machinery limitations of not allowing
15857 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15858 # inclusion of these in shared or static libraries, we are forced to
15859 # build using separate configure runs for shared and static libraries
15860 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15861 # to compile objects for each kind of library. Notice that relying on
15862 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15863 # user might for example choose to build static libraries with PIC.
15867 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15868 # targeting a static library and not building its shared counterpart.
15871 if test "x$xc_lt_build_static_only" = 'xyes'; then
15872 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15873 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15875 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15876 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15881 # Make staticlib CPPFLAG variable and its definition visible in output
15882 # files unconditionally, providing an empty definition unless strictly
15883 # targeting a static library and not building its shared counterpart.
15886 CPPFLAG_CURL_STATICLIB=
15887 if test "x$xc_lt_build_static_only" = 'xyes'; then
15888 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15893 # Determine whether all dependent libraries must be specified when linking
15894 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15896 REQUIRE_LIB_DEPS=no
15898 REQUIRE_LIB_DEPS=yes
15901 if test x$REQUIRE_LIB_DEPS = xyes; then
15902 USE_EXPLICIT_LIB_DEPS_TRUE=
15903 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15905 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15906 USE_EXPLICIT_LIB_DEPS_FALSE=
15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15911 $as_echo_n "checking for inline... " >&6; }
15912 if ${ac_cv_c_inline+:} false; then :
15913 $as_echo_n "(cached) " >&6
15916 for ac_kw in inline __inline__ __inline; do
15917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15918 /* end confdefs.h. */
15919 #ifndef __cplusplus
15921 static $ac_kw foo_t static_foo () {return 0; }
15922 $ac_kw foo_t foo () {return 0; }
15926 if ac_fn_c_try_compile "$LINENO"; then :
15927 ac_cv_c_inline=$ac_kw
15929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15930 test "$ac_cv_c_inline" != no && break
15934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15935 $as_echo "$ac_cv_c_inline" >&6; }
15937 case $ac_cv_c_inline in
15940 case $ac_cv_c_inline in
15942 *) ac_val=$ac_cv_c_inline;;
15944 cat >>confdefs.h <<_ACEOF
15945 #ifndef __cplusplus
15946 #define inline $ac_val
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
15956 $as_echo_n "checking if cpp -P is needed... " >&6; }
15957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958 /* end confdefs.h. */
15964 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15965 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
15973 $as_echo "$cpp" >&6; }
15975 if test "x$cpp" = "xyes"; then
15976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
15977 $as_echo_n "checking if cpp -P works... " >&6; }
15978 OLDCPPFLAGS=$CPPFLAGS
15979 CPPFLAGS="$CPPFLAGS -P"
15980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15981 /* end confdefs.h. */
15987 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15988 $EGREP "TEST.*TEST" >/dev/null 2>&1; then :
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
15996 $as_echo "$cpp_p" >&6; }
15998 if test "x$cpp_p" = "xno"; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16000 $as_echo "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16007 CPPFLAGS=$OLDCPPFLAGS
16015 compiler_id="unknown"
16018 flags_dbg_all="unknown"
16019 flags_dbg_yes="unknown"
16020 flags_dbg_off="unknown"
16021 flags_opt_all="unknown"
16022 flags_opt_yes="unknown"
16023 flags_opt_off="unknown"
16025 flags_prefer_cppflags="no"
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16029 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
16031 OLDCPPFLAGS=$CPPFLAGS
16032 # CPPPFLAG comes from CURL_CPP_P
16033 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16034 if test -z "$SED"; then
16035 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16037 if test -z "$GREP"; then
16038 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16043 /* end confdefs.h. */
16047 CURL_DEF_TOKEN __DECC
16052 if ac_fn_c_try_cpp "$LINENO"; then :
16054 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16055 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16056 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16057 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16058 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
16063 rm -f conftest.err conftest.i conftest.$ac_ext
16064 if test -z "$tmp_exp"; then
16065 curl_cv_have_def___DECC=no
16068 curl_cv_have_def___DECC=yes
16069 curl_cv_def___DECC=$tmp_exp
16072 CPPFLAGS=$OLDCPPFLAGS
16075 OLDCPPFLAGS=$CPPFLAGS
16076 # CPPPFLAG comes from CURL_CPP_P
16077 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16078 if test -z "$SED"; then
16079 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16081 if test -z "$GREP"; then
16082 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16087 /* end confdefs.h. */
16091 CURL_DEF_TOKEN __DECC_VER
16096 if ac_fn_c_try_cpp "$LINENO"; then :
16098 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16099 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16100 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16101 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16102 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
16107 rm -f conftest.err conftest.i conftest.$ac_ext
16108 if test -z "$tmp_exp"; then
16109 curl_cv_have_def___DECC_VER=no
16112 curl_cv_have_def___DECC_VER=yes
16113 curl_cv_def___DECC_VER=$tmp_exp
16116 CPPFLAGS=$OLDCPPFLAGS
16118 if test "$curl_cv_have_def___DECC" = "yes" &&
16119 test "$curl_cv_have_def___DECC_VER" = "yes"; then
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16121 $as_echo "yes" >&6; }
16122 compiler_id="DEC_C"
16123 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16124 flags_dbg_yes="-g2"
16126 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
16127 flags_opt_yes="-O1"
16128 flags_opt_off="-O0"
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16131 $as_echo "no" >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
16136 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
16138 OLDCPPFLAGS=$CPPFLAGS
16139 # CPPPFLAG comes from CURL_CPP_P
16140 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16141 if test -z "$SED"; then
16142 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16144 if test -z "$GREP"; then
16145 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16150 /* end confdefs.h. */
16154 CURL_DEF_TOKEN __HP_cc
16159 if ac_fn_c_try_cpp "$LINENO"; then :
16161 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16162 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16163 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16164 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16165 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
16170 rm -f conftest.err conftest.i conftest.$ac_ext
16171 if test -z "$tmp_exp"; then
16172 curl_cv_have_def___HP_cc=no
16175 curl_cv_have_def___HP_cc=yes
16176 curl_cv_def___HP_cc=$tmp_exp
16179 CPPFLAGS=$OLDCPPFLAGS
16181 if test "$curl_cv_have_def___HP_cc" = "yes"; then
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16183 $as_echo "yes" >&6; }
16184 compiler_id="HP_UX_C"
16185 flags_dbg_all="-g -s"
16188 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
16189 flags_opt_yes="+O2"
16190 flags_opt_off="+O0"
16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16193 $as_echo "no" >&6; }
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
16198 $as_echo_n "checking if compiler is IBM C... " >&6; }
16200 OLDCPPFLAGS=$CPPFLAGS
16201 # CPPPFLAG comes from CURL_CPP_P
16202 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16203 if test -z "$SED"; then
16204 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16206 if test -z "$GREP"; then
16207 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16212 /* end confdefs.h. */
16216 CURL_DEF_TOKEN __IBMC__
16221 if ac_fn_c_try_cpp "$LINENO"; then :
16223 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16224 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16225 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16226 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16227 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
16232 rm -f conftest.err conftest.i conftest.$ac_ext
16233 if test -z "$tmp_exp"; then
16234 curl_cv_have_def___IBMC__=no
16237 curl_cv_have_def___IBMC__=yes
16238 curl_cv_def___IBMC__=$tmp_exp
16241 CPPFLAGS=$OLDCPPFLAGS
16243 if test "$curl_cv_have_def___IBMC__" = "yes"; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16245 $as_echo "yes" >&6; }
16246 compiler_id="IBM_C"
16247 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16250 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
16251 flags_opt_all="$flags_opt_all -qnooptimize"
16252 flags_opt_all="$flags_opt_all -qoptimize=0"
16253 flags_opt_all="$flags_opt_all -qoptimize=1"
16254 flags_opt_all="$flags_opt_all -qoptimize=2"
16255 flags_opt_all="$flags_opt_all -qoptimize=3"
16256 flags_opt_all="$flags_opt_all -qoptimize=4"
16257 flags_opt_all="$flags_opt_all -qoptimize=5"
16258 flags_opt_yes="-O2"
16259 flags_opt_off="-qnooptimize"
16260 flags_prefer_cppflags="yes"
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16263 $as_echo "no" >&6; }
16267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
16268 $as_echo_n "checking if compiler is Intel C... " >&6; }
16270 OLDCPPFLAGS=$CPPFLAGS
16271 # CPPPFLAG comes from CURL_CPP_P
16272 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16273 if test -z "$SED"; then
16274 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16276 if test -z "$GREP"; then
16277 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16282 /* end confdefs.h. */
16285 #ifdef __INTEL_COMPILER
16286 CURL_DEF_TOKEN __INTEL_COMPILER
16291 if ac_fn_c_try_cpp "$LINENO"; then :
16293 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16294 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16295 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16296 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16297 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
16302 rm -f conftest.err conftest.i conftest.$ac_ext
16303 if test -z "$tmp_exp"; then
16304 curl_cv_have_def___INTEL_COMPILER=no
16307 curl_cv_have_def___INTEL_COMPILER=yes
16308 curl_cv_def___INTEL_COMPILER=$tmp_exp
16311 CPPFLAGS=$OLDCPPFLAGS
16313 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16315 $as_echo "yes" >&6; }
16316 compiler_num="$curl_cv_def___INTEL_COMPILER"
16318 OLDCPPFLAGS=$CPPFLAGS
16319 # CPPPFLAG comes from CURL_CPP_P
16320 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16321 if test -z "$SED"; then
16322 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16324 if test -z "$GREP"; then
16325 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16330 /* end confdefs.h. */
16334 CURL_DEF_TOKEN __unix__
16339 if ac_fn_c_try_cpp "$LINENO"; then :
16341 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16342 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16343 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16344 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16345 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
16350 rm -f conftest.err conftest.i conftest.$ac_ext
16351 if test -z "$tmp_exp"; then
16352 curl_cv_have_def___unix__=no
16355 curl_cv_have_def___unix__=yes
16356 curl_cv_def___unix__=$tmp_exp
16359 CPPFLAGS=$OLDCPPFLAGS
16361 if test "$curl_cv_have_def___unix__" = "yes"; then
16362 compiler_id="INTEL_UNIX_C"
16363 flags_dbg_all="-g -g0"
16366 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16367 flags_opt_yes="-O2"
16368 flags_opt_off="-O0"
16370 compiler_id="INTEL_WINDOWS_C"
16371 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
16372 flags_dbg_all="$flags_dbg_all /debug"
16373 flags_dbg_all="$flags_dbg_all /debug:none"
16374 flags_dbg_all="$flags_dbg_all /debug:minimal"
16375 flags_dbg_all="$flags_dbg_all /debug:partial"
16376 flags_dbg_all="$flags_dbg_all /debug:full"
16377 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
16378 flags_dbg_all="$flags_dbg_all /debug:extended"
16379 flags_dbg_yes="/Zi /Oy-"
16380 flags_dbg_off="/debug:none /Oy-"
16381 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
16382 flags_opt_yes="/O2"
16383 flags_opt_off="/Od"
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16387 $as_echo "no" >&6; }
16391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
16392 $as_echo_n "checking if compiler is clang... " >&6; }
16394 OLDCPPFLAGS=$CPPFLAGS
16395 # CPPPFLAG comes from CURL_CPP_P
16396 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16397 if test -z "$SED"; then
16398 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16400 if test -z "$GREP"; then
16401 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16406 /* end confdefs.h. */
16410 CURL_DEF_TOKEN __clang__
16415 if ac_fn_c_try_cpp "$LINENO"; then :
16417 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16418 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16419 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16420 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16421 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
16426 rm -f conftest.err conftest.i conftest.$ac_ext
16427 if test -z "$tmp_exp"; then
16428 curl_cv_have_def___clang__=no
16431 curl_cv_have_def___clang__=yes
16432 curl_cv_def___clang__=$tmp_exp
16435 CPPFLAGS=$OLDCPPFLAGS
16437 if test "$curl_cv_have_def___clang__" = "yes"; then
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16439 $as_echo "yes" >&6; }
16440 compiler_id="CLANG"
16441 fullclangver=`$CC -v 2>&1 | grep version`
16442 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
16443 if test -z "$clangver"; then
16444 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
16447 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
16450 clangvhi=`echo $clangver | cut -d . -f1`
16451 clangvlo=`echo $clangver | cut -d . -f2`
16452 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16453 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16454 flags_dbg_all="$flags_dbg_all -ggdb"
16455 flags_dbg_all="$flags_dbg_all -gstabs"
16456 flags_dbg_all="$flags_dbg_all -gstabs+"
16457 flags_dbg_all="$flags_dbg_all -gcoff"
16458 flags_dbg_all="$flags_dbg_all -gxcoff"
16459 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16460 flags_dbg_all="$flags_dbg_all -gvms"
16463 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16464 flags_opt_yes="-Os"
16465 flags_opt_off="-O0"
16467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16468 $as_echo "no" >&6; }
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16473 $as_echo_n "checking if compiler is GNU C... " >&6; }
16475 OLDCPPFLAGS=$CPPFLAGS
16476 # CPPPFLAG comes from CURL_CPP_P
16477 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16478 if test -z "$SED"; then
16479 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16481 if test -z "$GREP"; then
16482 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16487 /* end confdefs.h. */
16491 CURL_DEF_TOKEN __GNUC__
16496 if ac_fn_c_try_cpp "$LINENO"; then :
16498 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16499 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16500 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16501 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16502 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16507 rm -f conftest.err conftest.i conftest.$ac_ext
16508 if test -z "$tmp_exp"; then
16509 curl_cv_have_def___GNUC__=no
16512 curl_cv_have_def___GNUC__=yes
16513 curl_cv_def___GNUC__=$tmp_exp
16516 CPPFLAGS=$OLDCPPFLAGS
16518 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16519 test "$compiler_id" = "unknown"; then
16520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16521 $as_echo "yes" >&6; }
16522 compiler_id="GNU_C"
16523 gccver=`$CC -dumpversion`
16524 gccvhi=`echo $gccver | cut -d . -f1`
16525 gccvlo=`echo $gccver | cut -d . -f2`
16526 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16527 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16528 flags_dbg_all="$flags_dbg_all -ggdb"
16529 flags_dbg_all="$flags_dbg_all -gstabs"
16530 flags_dbg_all="$flags_dbg_all -gstabs+"
16531 flags_dbg_all="$flags_dbg_all -gcoff"
16532 flags_dbg_all="$flags_dbg_all -gxcoff"
16533 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16534 flags_dbg_all="$flags_dbg_all -gvms"
16537 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
16538 flags_opt_yes="-O2"
16539 flags_opt_off="-O0"
16541 OLDCPPFLAGS=$CPPFLAGS
16542 # CPPPFLAG comes from CURL_CPP_P
16543 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16544 if test -z "$SED"; then
16545 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16547 if test -z "$GREP"; then
16548 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16553 /* end confdefs.h. */
16557 CURL_DEF_TOKEN _WIN32
16562 if ac_fn_c_try_cpp "$LINENO"; then :
16564 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16565 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16566 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16567 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16568 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16573 rm -f conftest.err conftest.i conftest.$ac_ext
16574 if test -z "$tmp_exp"; then
16575 curl_cv_have_def__WIN32=no
16578 curl_cv_have_def__WIN32=yes
16579 curl_cv_def__WIN32=$tmp_exp
16582 CPPFLAGS=$OLDCPPFLAGS
16585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16586 $as_echo "no" >&6; }
16590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16591 $as_echo_n "checking if compiler is LCC... " >&6; }
16593 OLDCPPFLAGS=$CPPFLAGS
16594 # CPPPFLAG comes from CURL_CPP_P
16595 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16596 if test -z "$SED"; then
16597 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16599 if test -z "$GREP"; then
16600 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16605 /* end confdefs.h. */
16609 CURL_DEF_TOKEN __LCC__
16614 if ac_fn_c_try_cpp "$LINENO"; then :
16616 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16617 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16618 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16619 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16620 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16625 rm -f conftest.err conftest.i conftest.$ac_ext
16626 if test -z "$tmp_exp"; then
16627 curl_cv_have_def___LCC__=no
16630 curl_cv_have_def___LCC__=yes
16631 curl_cv_def___LCC__=$tmp_exp
16634 CPPFLAGS=$OLDCPPFLAGS
16636 if test "$curl_cv_have_def___LCC__" = "yes"; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16638 $as_echo "yes" >&6; }
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16653 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16655 OLDCPPFLAGS=$CPPFLAGS
16656 # CPPPFLAG comes from CURL_CPP_P
16657 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16658 if test -z "$SED"; then
16659 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16661 if test -z "$GREP"; then
16662 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16667 /* end confdefs.h. */
16671 CURL_DEF_TOKEN __GNUC__
16676 if ac_fn_c_try_cpp "$LINENO"; then :
16678 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16679 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16680 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16681 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16682 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16687 rm -f conftest.err conftest.i conftest.$ac_ext
16688 if test -z "$tmp_exp"; then
16689 curl_cv_have_def___GNUC__=no
16692 curl_cv_have_def___GNUC__=yes
16693 curl_cv_def___GNUC__=$tmp_exp
16696 CPPFLAGS=$OLDCPPFLAGS
16699 OLDCPPFLAGS=$CPPFLAGS
16700 # CPPPFLAG comes from CURL_CPP_P
16701 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16702 if test -z "$SED"; then
16703 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16705 if test -z "$GREP"; then
16706 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16711 /* end confdefs.h. */
16714 #ifdef _COMPILER_VERSION
16715 CURL_DEF_TOKEN _COMPILER_VERSION
16720 if ac_fn_c_try_cpp "$LINENO"; then :
16722 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16723 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16724 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16725 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16726 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16731 rm -f conftest.err conftest.i conftest.$ac_ext
16732 if test -z "$tmp_exp"; then
16733 curl_cv_have_def__COMPILER_VERSION=no
16736 curl_cv_have_def__COMPILER_VERSION=yes
16737 curl_cv_def__COMPILER_VERSION=$tmp_exp
16740 CPPFLAGS=$OLDCPPFLAGS
16743 OLDCPPFLAGS=$CPPFLAGS
16744 # CPPPFLAG comes from CURL_CPP_P
16745 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16746 if test -z "$SED"; then
16747 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16749 if test -z "$GREP"; then
16750 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16755 /* end confdefs.h. */
16758 #ifdef _SGI_COMPILER_VERSION
16759 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16764 if ac_fn_c_try_cpp "$LINENO"; then :
16766 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16767 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16768 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16769 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16770 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16775 rm -f conftest.err conftest.i conftest.$ac_ext
16776 if test -z "$tmp_exp"; then
16777 curl_cv_have_def__SGI_COMPILER_VERSION=no
16780 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16781 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16784 CPPFLAGS=$OLDCPPFLAGS
16786 if test "$curl_cv_have_def___GNUC__" = "no" &&
16787 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16788 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16790 $as_echo "yes" >&6; }
16791 compiler_id="SGI_MIPSPRO_C"
16792 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16795 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16796 flags_opt_yes="-O2"
16797 flags_opt_off="-O0"
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16800 $as_echo "no" >&6; }
16804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16805 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16807 OLDCPPFLAGS=$CPPFLAGS
16808 # CPPPFLAG comes from CURL_CPP_P
16809 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16810 if test -z "$SED"; then
16811 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16813 if test -z "$GREP"; then
16814 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16819 /* end confdefs.h. */
16823 CURL_DEF_TOKEN __GNUC__
16828 if ac_fn_c_try_cpp "$LINENO"; then :
16830 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16831 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16832 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16833 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16834 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16839 rm -f conftest.err conftest.i conftest.$ac_ext
16840 if test -z "$tmp_exp"; then
16841 curl_cv_have_def___GNUC__=no
16844 curl_cv_have_def___GNUC__=yes
16845 curl_cv_def___GNUC__=$tmp_exp
16848 CPPFLAGS=$OLDCPPFLAGS
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 __sgi
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" = "__sgi"; then
16883 rm -f conftest.err conftest.i conftest.$ac_ext
16884 if test -z "$tmp_exp"; then
16885 curl_cv_have_def___sgi=no
16888 curl_cv_have_def___sgi=yes
16889 curl_cv_def___sgi=$tmp_exp
16892 CPPFLAGS=$OLDCPPFLAGS
16894 if test "$curl_cv_have_def___GNUC__" = "no" &&
16895 test "$curl_cv_have_def___sgi" = "yes" &&
16896 test "$compiler_id" = "unknown"; then
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16898 $as_echo "yes" >&6; }
16899 compiler_id="SGI_MIPS_C"
16900 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16903 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16904 flags_opt_yes="-O2"
16905 flags_opt_off="-O0"
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16908 $as_echo "no" >&6; }
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16913 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16915 OLDCPPFLAGS=$CPPFLAGS
16916 # CPPPFLAG comes from CURL_CPP_P
16917 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16918 if test -z "$SED"; then
16919 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16921 if test -z "$GREP"; then
16922 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16927 /* end confdefs.h. */
16931 CURL_DEF_TOKEN __SUNPRO_C
16936 if ac_fn_c_try_cpp "$LINENO"; then :
16938 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16939 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16940 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16941 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16942 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16947 rm -f conftest.err conftest.i conftest.$ac_ext
16948 if test -z "$tmp_exp"; then
16949 curl_cv_have_def___SUNPRO_C=no
16952 curl_cv_have_def___SUNPRO_C=yes
16953 curl_cv_def___SUNPRO_C=$tmp_exp
16956 CPPFLAGS=$OLDCPPFLAGS
16958 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16960 $as_echo "yes" >&6; }
16961 compiler_id="SUNPRO_C"
16962 flags_dbg_all="-g -s"
16965 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16966 flags_opt_yes="-xO2"
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16970 $as_echo "no" >&6; }
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16975 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16977 OLDCPPFLAGS=$CPPFLAGS
16978 # CPPPFLAG comes from CURL_CPP_P
16979 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
16980 if test -z "$SED"; then
16981 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16983 if test -z "$GREP"; then
16984 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16993 CURL_DEF_TOKEN __TINYC__
16998 if ac_fn_c_try_cpp "$LINENO"; then :
17000 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17001 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17002 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17003 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17004 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17009 rm -f conftest.err conftest.i conftest.$ac_ext
17010 if test -z "$tmp_exp"; then
17011 curl_cv_have_def___TINYC__=no
17014 curl_cv_have_def___TINYC__=yes
17015 curl_cv_def___TINYC__=$tmp_exp
17018 CPPFLAGS=$OLDCPPFLAGS
17020 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17022 $as_echo "yes" >&6; }
17023 compiler_id="TINY_C"
17024 flags_dbg_all="-g -b"
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17032 $as_echo "no" >&6; }
17036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
17037 $as_echo_n "checking if compiler is Watcom C... " >&6; }
17039 OLDCPPFLAGS=$CPPFLAGS
17040 # CPPPFLAG comes from CURL_CPP_P
17041 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17042 if test -z "$SED"; then
17043 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17045 if test -z "$GREP"; then
17046 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17051 /* end confdefs.h. */
17055 CURL_DEF_TOKEN __WATCOMC__
17060 if ac_fn_c_try_cpp "$LINENO"; then :
17062 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17063 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17064 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17065 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17066 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
17071 rm -f conftest.err conftest.i conftest.$ac_ext
17072 if test -z "$tmp_exp"; then
17073 curl_cv_have_def___WATCOMC__=no
17076 curl_cv_have_def___WATCOMC__=yes
17077 curl_cv_def___WATCOMC__=$tmp_exp
17080 CPPFLAGS=$OLDCPPFLAGS
17082 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17084 $as_echo "yes" >&6; }
17086 OLDCPPFLAGS=$CPPFLAGS
17087 # CPPPFLAG comes from CURL_CPP_P
17088 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17089 if test -z "$SED"; then
17090 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17092 if test -z "$GREP"; then
17093 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17098 /* end confdefs.h. */
17102 CURL_DEF_TOKEN __UNIX__
17107 if ac_fn_c_try_cpp "$LINENO"; then :
17109 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17110 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17111 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17112 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17113 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
17118 rm -f conftest.err conftest.i conftest.$ac_ext
17119 if test -z "$tmp_exp"; then
17120 curl_cv_have_def___UNIX__=no
17123 curl_cv_have_def___UNIX__=yes
17124 curl_cv_def___UNIX__=$tmp_exp
17127 CPPFLAGS=$OLDCPPFLAGS
17129 if test "$curl_cv_have_def___UNIX__" = "yes"; then
17130 compiler_id="WATCOM_UNIX_C"
17131 flags_dbg_all="-g1 -g1+ -g2 -g3"
17132 flags_dbg_yes="-g2"
17134 flags_opt_all="-O0 -O1 -O2 -O3"
17135 flags_opt_yes="-O2"
17136 flags_opt_off="-O0"
17138 compiler_id="WATCOM_WINDOWS_C"
17147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17148 $as_echo "no" >&6; }
17152 if test "$compiler_id" = "unknown"; then
17155 *** Warning: This configure script does not have information about the
17156 *** compiler you are using, relative to the flags required to enable or
17157 *** disable generation of debug info, optimization options or warnings.
17159 *** Whatever settings are present in CFLAGS will be used for this run.
17161 *** If you wish to help the curl project to better support your compiler
17162 *** you can report this and the required info on the libcurl development
17163 *** mailing list: https://cool.haxx.se/mailman/listinfo/curl-library/
17171 eval _sqz_input=\$$1
17172 for _sqz_token in $_sqz_input; do
17173 if test -z "$_sqz_result"; then
17174 _sqz_result="$_sqz_token"
17176 _sqz_result="$_sqz_result $_sqz_token"
17179 eval $1=\$_sqz_result
17185 if test "$compiler_id" != "unknown"; then
17187 if test "$compiler_id" = "GNU_C" ||
17188 test "$compiler_id" = "CLANG"; then
17190 if test "$compiler_id" = "GNU_C" ||
17191 test "$compiler_id" = "CLANG"; then
17192 tmp_has_include="no"
17193 tmp_chg_FLAGS="$CFLAGS"
17194 for word1 in $tmp_chg_FLAGS; do
17197 tmp_has_include="yes"
17201 if test "$tmp_has_include" = "yes"; then
17202 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17203 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17204 CFLAGS="$tmp_chg_FLAGS"
17207 tmp_has_include="no"
17208 tmp_chg_FLAGS="$CPPFLAGS"
17209 for word1 in $tmp_chg_FLAGS; do
17212 tmp_has_include="yes"
17216 if test "$tmp_has_include" = "yes"; then
17217 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
17218 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
17219 CPPFLAGS="$tmp_chg_FLAGS"
17226 tmp_save_CPPFLAGS="$CPPFLAGS"
17227 tmp_save_CFLAGS="$CFLAGS"
17231 case "$compiler_id" in
17235 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
17240 tmp_CFLAGS="$tmp_CFLAGS -std1"
17241 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
17242 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
17243 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
17248 if test "$compiler_num" -ge "295"; then
17249 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
17255 tmp_CFLAGS="$tmp_CFLAGS -z"
17256 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
17261 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
17262 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
17263 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
17268 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
17269 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
17270 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
17275 tmp_CFLAGS="$tmp_CFLAGS"
17280 tmp_CFLAGS="$tmp_CFLAGS -n"
17285 tmp_CFLAGS="$tmp_CFLAGS"
17290 tmp_CFLAGS="$tmp_CFLAGS"
17295 tmp_CFLAGS="$tmp_CFLAGS"
17300 tmp_CFLAGS="$tmp_CFLAGS"
17305 tmp_CFLAGS="$tmp_CFLAGS"
17310 tmp_CFLAGS="$tmp_CFLAGS"
17315 squeeze tmp_CPPFLAGS
17318 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
17320 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
17321 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17322 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17326 tmp_compiler_works="unknown"
17327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17328 /* end confdefs.h. */
17343 if ac_fn_c_try_compile "$LINENO"; then :
17345 tmp_compiler_works="yes"
17349 tmp_compiler_works="no"
17351 sed 's/^/cc-fail: /' conftest.err >&6
17355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17356 if test "$tmp_compiler_works" = "yes"; then
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17373 if ac_fn_c_try_link "$LINENO"; then :
17375 tmp_compiler_works="yes"
17379 tmp_compiler_works="no"
17381 sed 's/^/link-fail: /' conftest.err >&6
17385 rm -f core conftest.err conftest.$ac_objext \
17386 conftest$ac_exeext conftest.$ac_ext
17388 if test "x$cross_compiling" != "xyes" &&
17389 test "$tmp_compiler_works" = "yes"; then
17390 if test "$cross_compiling" = yes; then :
17391 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17392 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17393 as_fn_error $? "cannot run test program while cross compiling
17394 See \`config.log' for more details" "$LINENO" 5; }
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
17401 # include <stdlib.h>
17415 if ac_fn_c_try_run "$LINENO"; then :
17417 tmp_compiler_works="yes"
17421 tmp_compiler_works="no"
17423 echo "run-fail: test program exited with status $ac_status" >&6
17427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17428 conftest.$ac_objext conftest.beam conftest.$ac_ext
17432 if test "$tmp_compiler_works" = "yes"; then
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17435 $as_echo "yes" >&6; }
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17437 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17442 $as_echo "no" >&6; }
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17444 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17445 CPPFLAGS="$tmp_save_CPPFLAGS"
17446 CFLAGS="$tmp_save_CFLAGS"
17456 if test "$compiler_id" != "unknown"; then
17458 tmp_save_CFLAGS="$CFLAGS"
17459 tmp_save_CPPFLAGS="$CPPFLAGS"
17462 tmp_CFLAGS="$CFLAGS"
17463 tmp_CPPFLAGS="$CPPFLAGS"
17466 for word1 in $tmp_CFLAGS; do
17467 ac_var_strip_word="no"
17468 for word2 in $flags_dbg_all; do
17469 if test "$word1" = "$word2"; then
17470 ac_var_strip_word="yes"
17473 if test "$ac_var_strip_word" = "no"; then
17474 ac_var_stripped="$ac_var_stripped $word1"
17477 tmp_CFLAGS="$ac_var_stripped"
17482 for word1 in $tmp_CPPFLAGS; do
17483 ac_var_strip_word="no"
17484 for word2 in $flags_dbg_all; do
17485 if test "$word1" = "$word2"; then
17486 ac_var_strip_word="yes"
17489 if test "$ac_var_strip_word" = "no"; then
17490 ac_var_stripped="$ac_var_stripped $word1"
17493 tmp_CPPFLAGS="$ac_var_stripped"
17494 squeeze tmp_CPPFLAGS
17497 if test "$want_debug" = "yes"; then
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
17499 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
17500 tmp_options="$flags_dbg_yes"
17502 if test "$want_debug" = "no"; then
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17504 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17505 tmp_options="$flags_dbg_off"
17508 if test "$flags_prefer_cppflags" = "yes"; then
17509 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17510 CFLAGS="$tmp_CFLAGS"
17512 CPPFLAGS="$tmp_CPPFLAGS"
17513 CFLAGS="$tmp_CFLAGS $tmp_options"
17518 tmp_compiler_works="unknown"
17519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17520 /* end confdefs.h. */
17535 if ac_fn_c_try_compile "$LINENO"; then :
17537 tmp_compiler_works="yes"
17541 tmp_compiler_works="no"
17543 sed 's/^/cc-fail: /' conftest.err >&6
17547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17548 if test "$tmp_compiler_works" = "yes"; then
17549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17550 /* end confdefs.h. */
17565 if ac_fn_c_try_link "$LINENO"; then :
17567 tmp_compiler_works="yes"
17571 tmp_compiler_works="no"
17573 sed 's/^/link-fail: /' conftest.err >&6
17577 rm -f core conftest.err conftest.$ac_objext \
17578 conftest$ac_exeext conftest.$ac_ext
17580 if test "x$cross_compiling" != "xyes" &&
17581 test "$tmp_compiler_works" = "yes"; then
17582 if test "$cross_compiling" = yes; then :
17583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17585 as_fn_error $? "cannot run test program while cross compiling
17586 See \`config.log' for more details" "$LINENO" 5; }
17588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17589 /* end confdefs.h. */
17593 # include <stdlib.h>
17607 if ac_fn_c_try_run "$LINENO"; then :
17609 tmp_compiler_works="yes"
17613 tmp_compiler_works="no"
17615 echo "run-fail: test program exited with status $ac_status" >&6
17619 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17620 conftest.$ac_objext conftest.beam conftest.$ac_ext
17624 if test "$tmp_compiler_works" = "yes"; then
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17627 $as_echo "yes" >&6; }
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17629 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17634 $as_echo "no" >&6; }
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17636 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17637 CPPFLAGS="$tmp_save_CPPFLAGS"
17638 CFLAGS="$tmp_save_CFLAGS"
17647 if test "$compiler_id" != "unknown"; then
17649 tmp_save_CFLAGS="$CFLAGS"
17650 tmp_save_CPPFLAGS="$CPPFLAGS"
17653 tmp_CFLAGS="$CFLAGS"
17654 tmp_CPPFLAGS="$CPPFLAGS"
17655 honor_optimize_option="yes"
17658 if test "$want_optimize" = "assume_no" ||
17659 test "$want_optimize" = "assume_yes"; then
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17661 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17664 ac_var_match_word="no"
17665 for word1 in $tmp_CFLAGS; do
17666 for word2 in $flags_opt_all; do
17667 if test "$word1" = "$word2"; then
17668 ac_var_match_word="yes"
17673 if test "$ac_var_match_word" = "yes"; then
17675 honor_optimize_option="no"
17682 ac_var_match_word="no"
17683 for word1 in $tmp_CPPFLAGS; do
17684 for word2 in $flags_opt_all; do
17685 if test "$word1" = "$word2"; then
17686 ac_var_match_word="yes"
17691 if test "$ac_var_match_word" = "yes"; then
17693 honor_optimize_option="no"
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17699 $as_echo "$honor_optimize_option" >&6; }
17700 if test "$honor_optimize_option" = "yes"; then
17701 if test "$want_optimize" = "assume_yes"; then
17702 want_optimize="yes"
17704 if test "$want_optimize" = "assume_no"; then
17710 if test "$honor_optimize_option" = "yes"; then
17713 for word1 in $tmp_CFLAGS; do
17714 ac_var_strip_word="no"
17715 for word2 in $flags_opt_all; do
17716 if test "$word1" = "$word2"; then
17717 ac_var_strip_word="yes"
17720 if test "$ac_var_strip_word" = "no"; then
17721 ac_var_stripped="$ac_var_stripped $word1"
17724 tmp_CFLAGS="$ac_var_stripped"
17729 for word1 in $tmp_CPPFLAGS; do
17730 ac_var_strip_word="no"
17731 for word2 in $flags_opt_all; do
17732 if test "$word1" = "$word2"; then
17733 ac_var_strip_word="yes"
17736 if test "$ac_var_strip_word" = "no"; then
17737 ac_var_stripped="$ac_var_stripped $word1"
17740 tmp_CPPFLAGS="$ac_var_stripped"
17741 squeeze tmp_CPPFLAGS
17743 if test "$want_optimize" = "yes"; then
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17745 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17746 tmp_options="$flags_opt_yes"
17748 if test "$want_optimize" = "no"; then
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17750 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17751 tmp_options="$flags_opt_off"
17753 if test "$flags_prefer_cppflags" = "yes"; then
17754 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17755 CFLAGS="$tmp_CFLAGS"
17757 CPPFLAGS="$tmp_CPPFLAGS"
17758 CFLAGS="$tmp_CFLAGS $tmp_options"
17763 tmp_compiler_works="unknown"
17764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17765 /* end confdefs.h. */
17780 if ac_fn_c_try_compile "$LINENO"; then :
17782 tmp_compiler_works="yes"
17786 tmp_compiler_works="no"
17788 sed 's/^/cc-fail: /' conftest.err >&6
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 if test "$tmp_compiler_works" = "yes"; then
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17810 if ac_fn_c_try_link "$LINENO"; then :
17812 tmp_compiler_works="yes"
17816 tmp_compiler_works="no"
17818 sed 's/^/link-fail: /' conftest.err >&6
17822 rm -f core conftest.err conftest.$ac_objext \
17823 conftest$ac_exeext conftest.$ac_ext
17825 if test "x$cross_compiling" != "xyes" &&
17826 test "$tmp_compiler_works" = "yes"; then
17827 if test "$cross_compiling" = yes; then :
17828 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17829 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17830 as_fn_error $? "cannot run test program while cross compiling
17831 See \`config.log' for more details" "$LINENO" 5; }
17833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17834 /* end confdefs.h. */
17838 # include <stdlib.h>
17852 if ac_fn_c_try_run "$LINENO"; then :
17854 tmp_compiler_works="yes"
17858 tmp_compiler_works="no"
17860 echo "run-fail: test program exited with status $ac_status" >&6
17864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17865 conftest.$ac_objext conftest.beam conftest.$ac_ext
17869 if test "$tmp_compiler_works" = "yes"; then
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17872 $as_echo "yes" >&6; }
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17874 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17879 $as_echo "no" >&6; }
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17881 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17882 CPPFLAGS="$tmp_save_CPPFLAGS"
17883 CFLAGS="$tmp_save_CFLAGS"
17893 if test "$compiler_id" != "unknown"; then
17895 tmp_save_CPPFLAGS="$CPPFLAGS"
17896 tmp_save_CFLAGS="$CFLAGS"
17900 case "$compiler_id" in
17904 if test "$want_warnings" = "yes"; then
17905 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17906 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17907 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17908 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17909 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17910 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17911 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17912 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17913 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17914 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17915 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17916 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17917 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17918 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17919 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17920 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17921 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17923 if test "$compiler_num" -ge "101"; then
17924 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17927 if test "$compiler_num" -ge "208"; then
17928 tmp_CFLAGS="$tmp_CFLAGS -Wvla"
17931 if test "$compiler_num" -ge "209"; then
17932 tmp_CFLAGS="$tmp_CFLAGS -Wshift-sign-overflow"
17935 if test "$compiler_num" -ge "302"; then
17940 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-variable-declarations"
17945 if test "$compiler_num" -ge "306"; then
17946 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
17949 if test "$compiler_num" -ge "309"; then
17950 tmp_CFLAGS="$tmp_CFLAGS -Wcomma"
17951 # avoid the varargs warning, fixed in 4.0
17952 # https://bugs.llvm.org/show_bug.cgi?id=29140
17953 if test "$compiler_num" -lt "400"; then
17954 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
17962 if test "$want_warnings" = "yes"; then
17963 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17969 if test "$want_warnings" = "yes"; then
17971 if test "x$cross_compiling" != "xyes" ||
17972 test "$compiler_num" -ge "300"; then
17973 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17976 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17978 if test "$compiler_num" -ge "104"; then
17979 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17980 if test "x$cross_compiling" != "xyes" ||
17981 test "$compiler_num" -ge "300"; then
17982 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17986 if test "$compiler_num" -ge "207"; then
17987 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17988 if test "x$cross_compiling" != "xyes" ||
17989 test "$compiler_num" -ge "300"; then
17990 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17991 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17995 if test "$compiler_num" -ge "295"; then
17996 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17999 if test "$compiler_num" -ge "296"; then
18000 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
18001 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
18002 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
18005 if test "$compiler_num" -ge "297"; then
18006 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18009 if test "$compiler_num" -ge "300"; then
18010 tmp_CFLAGS="$tmp_CFLAGS"
18013 if test "$compiler_num" -ge "303"; then
18014 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
18017 if test "$compiler_num" -ge "304"; then
18018 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
18021 if test "$compiler_num" -ge "400"; then
18022 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
18025 if test "$compiler_num" -ge "402"; then
18026 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
18029 if test "$compiler_num" -ge "403"; then
18030 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
18031 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
18032 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
18033 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
18036 if test "$compiler_num" -ge "405"; then
18037 if test "$curl_cv_have_def__WIN32" = "yes"; then
18038 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
18042 if test "$compiler_num" -ge "406"; then
18043 tmp_CFLAGS="$tmp_CFLAGS -Wdouble-promotion"
18048 if test "$compiler_num" -ge "300"; then
18049 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18051 if test "x$cross_compiling" = "xyes"; then
18052 if test "$compiler_num" -ge "104"; then
18053 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
18055 if test "$compiler_num" -ge "207"; then
18056 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
18057 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
18065 if test "$want_warnings" = "yes"; then
18066 tmp_CFLAGS="$tmp_CFLAGS +w1"
18072 tmp_CFLAGS="$tmp_CFLAGS"
18077 if test "$want_warnings" = "yes"; then
18078 if test "$compiler_num" -gt "600"; then
18079 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
18080 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
18081 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
18082 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
18083 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
18084 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
18085 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
18086 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
18087 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
18088 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
18089 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
18092 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
18093 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
18094 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
18095 if test "$compiler_num" -ge "1000"; then
18096 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
18102 tmp_CFLAGS="$tmp_CFLAGS"
18107 if test "$want_warnings" = "yes"; then
18108 tmp_CFLAGS="$tmp_CFLAGS"
18114 if test "$want_warnings" = "yes"; then
18115 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18121 if test "$want_warnings" = "yes"; then
18122 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
18123 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
18129 if test "$want_warnings" = "yes"; then
18130 tmp_CFLAGS="$tmp_CFLAGS -v"
18136 if test "$want_warnings" = "yes"; then
18137 tmp_CFLAGS="$tmp_CFLAGS -Wall"
18138 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
18139 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
18145 if test "$want_warnings" = "yes"; then
18146 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
18152 tmp_CFLAGS="$tmp_CFLAGS"
18157 squeeze tmp_CPPFLAGS
18160 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
18162 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
18163 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18164 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18168 tmp_compiler_works="unknown"
18169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18170 /* end confdefs.h. */
18185 if ac_fn_c_try_compile "$LINENO"; then :
18187 tmp_compiler_works="yes"
18191 tmp_compiler_works="no"
18193 sed 's/^/cc-fail: /' conftest.err >&6
18197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18198 if test "$tmp_compiler_works" = "yes"; then
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18215 if ac_fn_c_try_link "$LINENO"; then :
18217 tmp_compiler_works="yes"
18221 tmp_compiler_works="no"
18223 sed 's/^/link-fail: /' conftest.err >&6
18227 rm -f core conftest.err conftest.$ac_objext \
18228 conftest$ac_exeext conftest.$ac_ext
18230 if test "x$cross_compiling" != "xyes" &&
18231 test "$tmp_compiler_works" = "yes"; then
18232 if test "$cross_compiling" = yes; then :
18233 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18234 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18235 as_fn_error $? "cannot run test program while cross compiling
18236 See \`config.log' for more details" "$LINENO" 5; }
18238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18239 /* end confdefs.h. */
18243 # include <stdlib.h>
18257 if ac_fn_c_try_run "$LINENO"; then :
18259 tmp_compiler_works="yes"
18263 tmp_compiler_works="no"
18265 echo "run-fail: test program exited with status $ac_status" >&6
18269 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18270 conftest.$ac_objext conftest.beam conftest.$ac_ext
18274 if test "$tmp_compiler_works" = "yes"; then
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18277 $as_echo "yes" >&6; }
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18279 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18284 $as_echo "no" >&6; }
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18286 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18287 CPPFLAGS="$tmp_save_CPPFLAGS"
18288 CFLAGS="$tmp_save_CFLAGS"
18297 if test "$compiler_id" = "INTEL_UNIX_C"; then
18299 if test "$compiler_num" -ge "1000"; then
18300 CFLAGS="$CFLAGS -shared-intel"
18301 elif test "$compiler_num" -ge "900"; then
18302 CFLAGS="$CFLAGS -i-dynamic"
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
18309 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
18310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18311 /* end confdefs.h. */
18318 force compilation error
18325 if ac_fn_c_try_compile "$LINENO"; then :
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18329 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18334 $as_echo "yes" >&6; }
18337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
18341 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
18342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18343 /* end confdefs.h. */
18346 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
18358 if ac_fn_c_try_compile "$LINENO"; then :
18360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18361 $as_echo "no" >&6; }
18362 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18367 $as_echo "yes" >&6; }
18370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
18374 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
18375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18376 /* end confdefs.h. */
18379 # include <stdlib.h>
18393 int j = rand(i[0]);
18402 if ac_fn_c_try_compile "$LINENO"; then :
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18405 $as_echo "no" >&6; }
18406 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18411 $as_echo "yes" >&6; }
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
18418 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
18419 supports_symbol_hiding="no"
18420 symbol_hiding_CFLAGS=""
18421 symbol_hiding_EXTERN=""
18424 case "$compiler_id" in
18426 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18427 tmp_CFLAGS="-fvisibility=hidden"
18428 supports_symbol_hiding="yes"
18431 if test "$compiler_num" -ge "304"; then
18432 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
18433 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18434 tmp_CFLAGS="-fvisibility=hidden"
18435 supports_symbol_hiding="yes"
18440 if test "$compiler_num" -ge "900"; then
18441 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
18442 tmp_save_CFLAGS="$CFLAGS"
18443 CFLAGS="$CFLAGS -fvisibility=hidden"
18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18445 /* end confdefs.h. */
18448 # include <stdio.h>
18453 printf("icc fvisibility bug test");
18460 if ac_fn_c_try_link "$LINENO"; then :
18462 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
18463 tmp_CFLAGS="-fvisibility=hidden"
18464 supports_symbol_hiding="yes"
18467 rm -f core conftest.err conftest.$ac_objext \
18468 conftest$ac_exeext conftest.$ac_ext
18469 CFLAGS="$tmp_save_CFLAGS"
18474 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
18475 tmp_EXTERN="__global"
18476 tmp_CFLAGS="-xldscope=hidden"
18477 supports_symbol_hiding="yes"
18481 if test "$supports_symbol_hiding" = "yes"; then
18482 tmp_save_CFLAGS="$CFLAGS"
18483 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18486 /* end confdefs.h. */
18489 $tmp_EXTERN char *dummy(char *buff);
18490 char *dummy(char *buff)
18502 char *r = dummy(&b[0]);
18511 if ac_fn_c_try_compile "$LINENO"; then :
18513 supports_symbol_hiding="yes"
18514 if test -f conftest.err; then
18515 grep 'visibility' conftest.err >/dev/null
18516 if test "$?" -eq "0"; then
18517 supports_symbol_hiding="no"
18523 supports_symbol_hiding="no"
18525 sed 's/^/cc-src: /' conftest.$ac_ext >&6
18526 sed 's/^/cc-err: /' conftest.err >&6
18530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 CFLAGS="$tmp_save_CFLAGS"
18533 if test "$supports_symbol_hiding" = "yes"; then
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18535 $as_echo "yes" >&6; }
18536 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18537 symbol_hiding_EXTERN="$tmp_EXTERN"
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18540 $as_echo "no" >&6; }
18545 supports_curldebug="unknown"
18546 if test "$want_curldebug" = "yes"; then
18547 if test "x$enable_shared" != "xno" &&
18548 test "x$enable_shared" != "xyes"; then
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18550 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18551 supports_curldebug="no"
18553 if test "x$enable_static" != "xno" &&
18554 test "x$enable_static" != "xyes"; then
18555 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18556 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18557 supports_curldebug="no"
18559 if test "$supports_curldebug" != "no"; then
18560 if test "$enable_shared" = "yes" &&
18561 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18562 supports_curldebug="no"
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18564 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18569 if test "$want_curldebug" = "yes"; then
18570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18571 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18572 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18574 $as_echo "$supports_curldebug" >&6; }
18575 if test "$supports_curldebug" = "no"; then
18576 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18577 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18578 want_curldebug="no"
18582 if test "$want_curldebug" = "yes"; then
18583 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18586 if test "$want_debug" = "yes"; then
18587 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18591 if test x$want_curldebug = xyes; then
18593 CURLDEBUG_FALSE='#'
18600 supports_unittests=yes
18601 # cross-compilation of unit tests static library/programs fails when
18602 # libcurl shared library is built. This might be due to a libtool or
18603 # automake issue. In this case we disable unit tests.
18604 if test "x$cross_compiling" != "xno" &&
18605 test "x$enable_shared" != "xno"; then
18606 supports_unittests=no
18609 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18610 # a problem related with OpenSSL headers and library versions not matching.
18611 # Disable unit tests while time to further investigate this is found.
18614 if test "$compiler_id" = "GNU_C"; then
18615 supports_unittests=no
18620 # All AIX autobuilds fails unit tests linking against unittests library
18621 # due to unittests library being built with no symbols or members. Libtool ?
18622 # Disable unit tests while time to further investigate this is found.
18625 supports_unittests=no
18629 if test "x$want_debug" = "xyes" &&
18630 test "x$supports_unittests" = "xyes"; then
18635 if test x$want_unittests = xyes; then
18636 BUILD_UNITTESTS_TRUE=
18637 BUILD_UNITTESTS_FALSE='#'
18639 BUILD_UNITTESTS_TRUE='#'
18640 BUILD_UNITTESTS_FALSE=
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18648 $as_echo_n "checking for windows.h... " >&6; }
18649 if ${curl_cv_header_windows_h+:} false; then :
18650 $as_echo_n "(cached) " >&6
18653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18654 /* end confdefs.h. */
18658 #ifndef WIN32_LEAN_AND_MEAN
18659 #define WIN32_LEAN_AND_MEAN
18661 #include <windows.h>
18666 #if defined(__CYGWIN__) || defined(__CEGCC__)
18667 HAVE_WINDOWS_H shall not be defined.
18669 int dummy=2*WINVER;
18677 if ac_fn_c_try_compile "$LINENO"; then :
18679 curl_cv_header_windows_h="yes"
18683 curl_cv_header_windows_h="no"
18686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
18690 $as_echo "$curl_cv_header_windows_h" >&6; }
18691 case "$curl_cv_header_windows_h" in
18694 cat >>confdefs.h <<_ACEOF
18695 #define HAVE_WINDOWS_H 1
18702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18703 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18704 if ${curl_cv_native_windows+:} false; then :
18705 $as_echo_n "(cached) " >&6
18708 if test "$curl_cv_header_windows_h" = "no"; then
18709 curl_cv_native_windows="no"
18711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18712 /* end confdefs.h. */
18719 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18720 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18723 Not a native Windows build target.
18731 if ac_fn_c_try_compile "$LINENO"; then :
18733 curl_cv_native_windows="yes"
18737 curl_cv_native_windows="no"
18740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
18745 $as_echo "$curl_cv_native_windows" >&6; }
18746 if test "x$curl_cv_native_windows" = xyes; then
18747 DOING_NATIVE_WINDOWS_TRUE=
18748 DOING_NATIVE_WINDOWS_FALSE='#'
18750 DOING_NATIVE_WINDOWS_TRUE='#'
18751 DOING_NATIVE_WINDOWS_FALSE=
18755 case X-"$curl_cv_native_windows" in
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18759 $as_echo_n "checking for winsock.h... " >&6; }
18760 if ${curl_cv_header_winsock_h+:} false; then :
18761 $as_echo_n "(cached) " >&6
18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765 /* end confdefs.h. */
18769 #ifndef WIN32_LEAN_AND_MEAN
18770 #define WIN32_LEAN_AND_MEAN
18772 #include <windows.h>
18773 #include <winsock.h>
18778 #if defined(__CYGWIN__) || defined(__CEGCC__)
18779 HAVE_WINSOCK_H shall not be defined.
18781 int dummy=WSACleanup();
18789 if ac_fn_c_try_compile "$LINENO"; then :
18791 curl_cv_header_winsock_h="yes"
18795 curl_cv_header_winsock_h="no"
18798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
18802 $as_echo "$curl_cv_header_winsock_h" >&6; }
18803 case "$curl_cv_header_winsock_h" in
18806 cat >>confdefs.h <<_ACEOF
18807 #define HAVE_WINSOCK_H 1
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18815 $as_echo_n "checking for winsock2.h... " >&6; }
18816 if ${curl_cv_header_winsock2_h+:} false; then :
18817 $as_echo_n "(cached) " >&6
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18825 #ifndef WIN32_LEAN_AND_MEAN
18826 #define WIN32_LEAN_AND_MEAN
18828 #include <windows.h>
18829 #include <winsock2.h>
18834 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18835 HAVE_WINSOCK2_H shall not be defined.
18837 int dummy=2*IPPROTO_ESP;
18845 if ac_fn_c_try_compile "$LINENO"; then :
18847 curl_cv_header_winsock2_h="yes"
18851 curl_cv_header_winsock2_h="no"
18854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
18858 $as_echo "$curl_cv_header_winsock2_h" >&6; }
18859 case "$curl_cv_header_winsock2_h" in
18862 cat >>confdefs.h <<_ACEOF
18863 #define HAVE_WINSOCK2_H 1
18870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18871 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18872 if ${curl_cv_header_ws2tcpip_h+:} false; then :
18873 $as_echo_n "(cached) " >&6
18876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18877 /* end confdefs.h. */
18881 #ifndef WIN32_LEAN_AND_MEAN
18882 #define WIN32_LEAN_AND_MEAN
18884 #include <windows.h>
18885 #include <winsock2.h>
18886 #include <ws2tcpip.h>
18891 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18892 HAVE_WS2TCPIP_H shall not be defined.
18894 int dummy=2*IP_PKTINFO;
18902 if ac_fn_c_try_compile "$LINENO"; then :
18904 curl_cv_header_ws2tcpip_h="yes"
18908 curl_cv_header_ws2tcpip_h="no"
18911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
18915 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
18916 case "$curl_cv_header_ws2tcpip_h" in
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_WS2TCPIP_H 1
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18928 $as_echo_n "checking for winldap.h... " >&6; }
18929 if ${curl_cv_header_winldap_h+:} false; then :
18930 $as_echo_n "(cached) " >&6
18933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18934 /* end confdefs.h. */
18938 #ifdef HAVE_WINDOWS_H
18939 #ifndef WIN32_LEAN_AND_MEAN
18940 #define WIN32_LEAN_AND_MEAN
18942 #include <windows.h>
18944 #include <winldap.h>
18949 #if defined(__CYGWIN__) || defined(__CEGCC__)
18950 HAVE_WINLDAP_H shall not be defined.
18952 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18953 ULONG res = ldap_unbind(ldp);
18961 if ac_fn_c_try_compile "$LINENO"; then :
18963 curl_cv_header_winldap_h="yes"
18967 curl_cv_header_winldap_h="no"
18970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
18974 $as_echo "$curl_cv_header_winldap_h" >&6; }
18975 case "$curl_cv_header_winldap_h" in
18978 cat >>confdefs.h <<_ACEOF
18979 #define HAVE_WINLDAP_H 1
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18987 $as_echo_n "checking for winber.h... " >&6; }
18988 if ${curl_cv_header_winber_h+:} false; then :
18989 $as_echo_n "(cached) " >&6
18992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18993 /* end confdefs.h. */
18997 #ifdef HAVE_WINDOWS_H
18998 #ifndef WIN32_LEAN_AND_MEAN
18999 #define WIN32_LEAN_AND_MEAN
19001 #include <windows.h>
19003 #include <winldap.h>
19004 #include <winber.h>
19009 #if defined(__CYGWIN__) || defined(__CEGCC__)
19010 HAVE_WINBER_H shall not be defined.
19012 BERVAL *bvp = NULL;
19013 BerElement *bep = ber_init(bvp);
19022 if ac_fn_c_try_compile "$LINENO"; then :
19024 curl_cv_header_winber_h="yes"
19028 curl_cv_header_winber_h="no"
19031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winber_h" >&5
19035 $as_echo "$curl_cv_header_winber_h" >&6; }
19036 case "$curl_cv_header_winber_h" in
19039 cat >>confdefs.h <<_ACEOF
19040 #define HAVE_WINBER_H 1
19048 curl_cv_header_winsock_h="no"
19049 curl_cv_header_winsock2_h="no"
19050 curl_cv_header_ws2tcpip_h="no"
19051 curl_cv_header_winldap_h="no"
19052 curl_cv_header_winber_h="no"
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
19057 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
19058 curl_win32_file_api="no"
19059 if test "$curl_cv_header_windows_h" = "yes"; then
19060 if test x"$enable_largefile" != "xno"; then
19061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19062 /* end confdefs.h. */
19069 #if !defined(_WIN32_WCE) && \
19070 (defined(__MINGW32__) || \
19071 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
19074 WIN32 large file API not supported.
19082 if ac_fn_c_try_compile "$LINENO"; then :
19084 curl_win32_file_api="win32_large_files"
19087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19089 if test "$curl_win32_file_api" = "no"; then
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19098 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
19101 WIN32 small file API not supported.
19109 if ac_fn_c_try_compile "$LINENO"; then :
19111 curl_win32_file_api="win32_small_files"
19114 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19117 case "$curl_win32_file_api" in
19119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
19120 $as_echo "yes (large file enabled)" >&6; }
19122 cat >>confdefs.h <<_ACEOF
19123 #define USE_WIN32_LARGE_FILES 1
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
19129 $as_echo "yes (large file disabled)" >&6; }
19131 cat >>confdefs.h <<_ACEOF
19132 #define USE_WIN32_SMALL_FILES 1
19137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19138 $as_echo "no" >&6; }
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good-to-use Mac CFLAGS" >&5
19153 $as_echo_n "checking for good-to-use Mac CFLAGS... " >&6; }
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
19155 $as_echo "$tst_cflags" >&6; };
19157 if test "$tst_cflags" = "yes"; then
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for *version-min in CFLAGS" >&5
19159 $as_echo_n "checking for *version-min in CFLAGS... " >&6; }
19161 if test -z "$(echo $CFLAGS | grep m.*os.*-version-min)"; then
19162 min="-mmacosx-version-min=10.8"
19163 CFLAGS="$CFLAGS $min"
19165 if test -z "$min"; then
19166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: set by user" >&5
19167 $as_echo "set by user" >&6; }
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $min set" >&5
19170 $as_echo "$min set" >&6; }
19174 CFLAGS="$CFLAGS -Werror=partial-availability"
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
19176 $as_echo_n "checking whether $CC accepts -Werror=partial-availability... " >&6; }
19177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19178 /* end confdefs.h. */
19187 if ac_fn_c_try_compile "$LINENO"; then :
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19189 $as_echo "yes" >&6; }
19191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19192 $as_echo "no" >&6; }
19195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
19201 $as_echo_n "checking to see if the compiler supports __builtin_available()... " >&6; }
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19206 #include <stdlib.h>
19211 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
19218 if ac_fn_c_try_compile "$LINENO"; then :
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19221 $as_echo "yes" >&6; }
19223 cat >>confdefs.h <<_ACEOF
19224 #define HAVE_BUILTIN_AVAILABLE 1
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19231 $as_echo "no" >&6; }
19234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
19238 $as_echo_n "checking whether to support http... " >&6; }
19239 # Check whether --enable-http was given.
19240 if test "${enable_http+set}" = set; then :
19241 enableval=$enable_http; case "$enableval" in
19243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19244 $as_echo "no" >&6; }
19246 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
19249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
19250 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
19251 CURL_DISABLE_HTTP=1
19254 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19256 CURL_DISABLE_RTSP=1
19259 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19260 $as_echo "yes" >&6; }
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19265 $as_echo "yes" >&6; }
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
19270 $as_echo_n "checking whether to support ftp... " >&6; }
19271 # Check whether --enable-ftp was given.
19272 if test "${enable_ftp+set}" = set; then :
19273 enableval=$enable_ftp; case "$enableval" in
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19276 $as_echo "no" >&6; }
19278 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
19283 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19284 $as_echo "yes" >&6; }
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19289 $as_echo "yes" >&6; }
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
19294 $as_echo_n "checking whether to support file... " >&6; }
19295 # Check whether --enable-file was given.
19296 if test "${enable_file+set}" = set; then :
19297 enableval=$enable_file; case "$enableval" in
19299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19300 $as_echo "no" >&6; }
19302 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
19304 CURL_DISABLE_FILE=1
19307 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19308 $as_echo "yes" >&6; }
19312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19313 $as_echo "yes" >&6; }
19317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
19318 $as_echo_n "checking whether to support ldap... " >&6; }
19319 # Check whether --enable-ldap was given.
19320 if test "${enable_ldap+set}" = set; then :
19321 enableval=$enable_ldap; case "$enableval" in
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19324 $as_echo "no" >&6; }
19326 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
19328 CURL_DISABLE_LDAP=1
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19333 $as_echo "yes" >&6; }
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19339 $as_echo "yes" >&6; }
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
19344 $as_echo_n "checking whether to support ldaps... " >&6; }
19345 # Check whether --enable-ldaps was given.
19346 if test "${enable_ldaps+set}" = set; then :
19347 enableval=$enable_ldaps; case "$enableval" in
19349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19350 $as_echo "no" >&6; }
19352 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19354 CURL_DISABLE_LDAPS=1
19357 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
19359 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
19361 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19363 CURL_DISABLE_LDAPS=1
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19367 $as_echo "yes" >&6; }
19369 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19378 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
19379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19380 $as_echo "no" >&6; }
19382 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
19384 CURL_DISABLE_LDAPS=1
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19388 $as_echo "yes" >&6; }
19390 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
19400 $as_echo_n "checking whether to support rtsp... " >&6; }
19401 # Check whether --enable-rtsp was given.
19402 if test "${enable_rtsp+set}" = set; then :
19403 enableval=$enable_rtsp; case "$enableval" in
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19406 $as_echo "no" >&6; }
19408 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
19410 CURL_DISABLE_RTSP=1
19413 *) if test x$CURL_DISABLE_HTTP = x1 ; then
19414 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19417 $as_echo "yes" >&6; }
19418 curl_rtsp_msg="enabled"
19423 if test "x$CURL_DISABLE_HTTP" != "x1"; then
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19425 $as_echo "yes" >&6; }
19426 curl_rtsp_msg="enabled"
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19429 $as_echo "no" >&6; }
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
19436 $as_echo_n "checking whether to support proxies... " >&6; }
19437 # Check whether --enable-proxy was given.
19438 if test "${enable_proxy+set}" = set; then :
19439 enableval=$enable_proxy; case "$enableval" in
19441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19442 $as_echo "no" >&6; }
19444 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
19446 CURL_DISABLE_PROXY=1
19449 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19450 $as_echo "yes" >&6; }
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19455 $as_echo "yes" >&6; }
19460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
19461 $as_echo_n "checking whether to support dict... " >&6; }
19462 # Check whether --enable-dict was given.
19463 if test "${enable_dict+set}" = set; then :
19464 enableval=$enable_dict; case "$enableval" in
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19467 $as_echo "no" >&6; }
19469 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
19471 CURL_DISABLE_DICT=1
19474 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19475 $as_echo "yes" >&6; }
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19480 $as_echo "yes" >&6; }
19484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
19485 $as_echo_n "checking whether to support telnet... " >&6; }
19486 # Check whether --enable-telnet was given.
19487 if test "${enable_telnet+set}" = set; then :
19488 enableval=$enable_telnet; case "$enableval" in
19490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19491 $as_echo "no" >&6; }
19493 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
19495 CURL_DISABLE_TELNET=1
19498 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19499 $as_echo "yes" >&6; }
19503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19504 $as_echo "yes" >&6; }
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
19509 $as_echo_n "checking whether to support tftp... " >&6; }
19510 # Check whether --enable-tftp was given.
19511 if test "${enable_tftp+set}" = set; then :
19512 enableval=$enable_tftp; case "$enableval" in
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19515 $as_echo "no" >&6; }
19517 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
19519 CURL_DISABLE_TFTP=1
19522 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19523 $as_echo "yes" >&6; }
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19528 $as_echo "yes" >&6; }
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
19534 $as_echo_n "checking whether to support pop3... " >&6; }
19535 # Check whether --enable-pop3 was given.
19536 if test "${enable_pop3+set}" = set; then :
19537 enableval=$enable_pop3; case "$enableval" in
19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19540 $as_echo "no" >&6; }
19542 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
19544 CURL_DISABLE_POP3=1
19547 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19548 $as_echo "yes" >&6; }
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19553 $as_echo "yes" >&6; }
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
19560 $as_echo_n "checking whether to support imap... " >&6; }
19561 # Check whether --enable-imap was given.
19562 if test "${enable_imap+set}" = set; then :
19563 enableval=$enable_imap; case "$enableval" in
19565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19566 $as_echo "no" >&6; }
19568 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
19570 CURL_DISABLE_IMAP=1
19573 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19574 $as_echo "yes" >&6; }
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19579 $as_echo "yes" >&6; }
19585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
19586 $as_echo_n "checking whether to support smb... " >&6; }
19587 # Check whether --enable-smb was given.
19588 if test "${enable_smb+set}" = set; then :
19589 enableval=$enable_smb; case "$enableval" in
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19592 $as_echo "no" >&6; }
19594 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
19599 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19600 $as_echo "yes" >&6; }
19604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19605 $as_echo "yes" >&6; }
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
19611 $as_echo_n "checking whether to support smtp... " >&6; }
19612 # Check whether --enable-smtp was given.
19613 if test "${enable_smtp+set}" = set; then :
19614 enableval=$enable_smtp; case "$enableval" in
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19617 $as_echo "no" >&6; }
19619 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
19621 CURL_DISABLE_SMTP=1
19624 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19625 $as_echo "yes" >&6; }
19629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19630 $as_echo "yes" >&6; }
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19636 $as_echo_n "checking whether to support gopher... " >&6; }
19637 # Check whether --enable-gopher was given.
19638 if test "${enable_gopher+set}" = set; then :
19639 enableval=$enable_gopher; case "$enableval" in
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19642 $as_echo "no" >&6; }
19644 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19646 CURL_DISABLE_GOPHER=1
19649 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19650 $as_echo "yes" >&6; }
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19655 $as_echo "yes" >&6; }
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19663 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19664 # Check whether --enable-manual was given.
19665 if test "${enable_manual+set}" = set; then :
19666 enableval=$enable_manual; case "$enableval" in
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19669 $as_echo "no" >&6; }
19671 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19672 $as_echo "yes" >&6; }
19677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19678 $as_echo "yes" >&6; }
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19685 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19686 # Check whether --enable-libcurl_option was given.
19687 if test "${enable_libcurl_option+set}" = set; then :
19688 enableval=$enable_libcurl_option; case "$enableval" in
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19691 $as_echo "no" >&6; }
19693 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19695 curl_libcurl_msg="no"
19697 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19698 $as_echo "yes" >&6; }
19702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19703 $as_echo "yes" >&6; }
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19710 $as_echo_n "checking whether to use libgcc... " >&6; }
19711 # Check whether --enable-libgcc was given.
19712 if test "${enable_libgcc+set}" = set; then :
19713 enableval=$enable_libgcc; case "$enableval" in
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19717 $as_echo "yes" >&6; }
19719 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19720 $as_echo "no" >&6; }
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19725 $as_echo "no" >&6; }
19731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19732 $as_echo_n "checking if X/Open network library is required... " >&6; }
19733 tst_lib_xnet_required="no"
19734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19735 /* end confdefs.h. */
19740 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19742 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19745 force compilation error
19751 if ac_fn_c_try_compile "$LINENO"; then :
19753 tst_lib_xnet_required="yes"
19754 LIBS="-lxnet $LIBS"
19757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19759 $as_echo "$tst_lib_xnet_required" >&6; }
19762 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19763 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19764 HAVE_GETHOSTBYNAME="1"
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19768 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19769 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19770 $as_echo_n "(cached) " >&6
19772 ac_check_lib_save_LIBS=$LIBS
19774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19775 /* end confdefs.h. */
19781 char gethostbyname ();
19784 return gethostbyname ();
19789 if ac_fn_c_try_link "$LINENO"; then :
19790 ac_cv_lib_nsl_gethostbyname=yes
19792 ac_cv_lib_nsl_gethostbyname=no
19794 rm -f core conftest.err conftest.$ac_objext \
19795 conftest$ac_exeext conftest.$ac_ext
19796 LIBS=$ac_check_lib_save_LIBS
19798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19799 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19800 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19801 HAVE_GETHOSTBYNAME="1"
19810 if test "$HAVE_GETHOSTBYNAME" != "1"
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19813 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19814 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19815 $as_echo_n "(cached) " >&6
19817 ac_check_lib_save_LIBS=$LIBS
19818 LIBS="-lsocket $LIBS"
19819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19820 /* end confdefs.h. */
19826 char gethostbyname ();
19829 return gethostbyname ();
19834 if ac_fn_c_try_link "$LINENO"; then :
19835 ac_cv_lib_socket_gethostbyname=yes
19837 ac_cv_lib_socket_gethostbyname=no
19839 rm -f core conftest.err conftest.$ac_objext \
19840 conftest$ac_exeext conftest.$ac_ext
19841 LIBS=$ac_check_lib_save_LIBS
19843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19844 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19845 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19846 HAVE_GETHOSTBYNAME="1"
19847 LIBS="-lsocket $LIBS"
19853 if test "$HAVE_GETHOSTBYNAME" != "1"
19855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19856 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19857 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19858 $as_echo_n "(cached) " >&6
19860 ac_check_lib_save_LIBS=$LIBS
19861 LIBS="-lwatt $LIBS"
19862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19863 /* end confdefs.h. */
19869 char gethostbyname ();
19872 return gethostbyname ();
19877 if ac_fn_c_try_link "$LINENO"; then :
19878 ac_cv_lib_watt_gethostbyname=yes
19880 ac_cv_lib_watt_gethostbyname=no
19882 rm -f core conftest.err conftest.$ac_objext \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19887 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19888 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19889 HAVE_GETHOSTBYNAME="1"
19890 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19891 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19892 LIBS="-lwatt $LIBS"
19898 if test "$HAVE_GETHOSTBYNAME" != "1"
19900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19901 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19902 my_ac_save_LIBS=$LIBS
19903 LIBS="-lnsl -lsocket $LIBS"
19904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19905 /* end confdefs.h. */
19919 if ac_fn_c_try_link "$LINENO"; then :
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19922 $as_echo "yes" >&6; }
19923 HAVE_GETHOSTBYNAME="1"
19927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19928 $as_echo "no" >&6; }
19929 LIBS=$my_ac_save_LIBS
19932 rm -f core conftest.err conftest.$ac_objext \
19933 conftest$ac_exeext conftest.$ac_ext
19936 if test "$HAVE_GETHOSTBYNAME" != "1"
19938 if test "$curl_cv_header_windows_h" = "yes"; then
19939 if test "$curl_cv_header_winsock_h" = "yes"; then
19942 winsock_LIB="-lwinsock"
19945 winsock_LIB="-lwsock32"
19949 if test "$curl_cv_header_winsock2_h" = "yes"; then
19950 winsock_LIB="-lws2_32"
19952 if test ! -z "$winsock_LIB"; then
19953 my_ac_save_LIBS=$LIBS
19954 LIBS="$winsock_LIB $LIBS"
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19956 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958 /* end confdefs.h. */
19961 #ifdef HAVE_WINDOWS_H
19962 #ifndef WIN32_LEAN_AND_MEAN
19963 #define WIN32_LEAN_AND_MEAN
19965 #include <windows.h>
19966 #ifdef HAVE_WINSOCK2_H
19967 #include <winsock2.h>
19969 #ifdef HAVE_WINSOCK_H
19970 #include <winsock.h>
19978 gethostbyname("www.dummysite.com");
19985 if ac_fn_c_try_link "$LINENO"; then :
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19988 $as_echo "yes" >&6; }
19989 HAVE_GETHOSTBYNAME="1"
19993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19994 $as_echo "no" >&6; }
19996 LIBS=$my_ac_save_LIBS
19999 rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20005 if test "$HAVE_GETHOSTBYNAME" != "1"
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
20008 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20013 /* Older Minix versions may need <net/gen/netdb.h> here instead */
20019 gethostbyname("www.dummysite.com");
20026 if ac_fn_c_try_link "$LINENO"; then :
20028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20029 $as_echo "yes" >&6; }
20030 HAVE_GETHOSTBYNAME="1"
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20035 $as_echo "no" >&6; }
20038 rm -f core conftest.err conftest.$ac_objext \
20039 conftest$ac_exeext conftest.$ac_ext
20042 if test "$HAVE_GETHOSTBYNAME" != "1"
20044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
20045 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
20046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20047 /* end confdefs.h. */
20056 gethostbyname("www.dummysite.com");
20063 if ac_fn_c_try_link "$LINENO"; then :
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20066 $as_echo "yes" >&6; }
20067 HAVE_GETHOSTBYNAME="1"
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20072 $as_echo "no" >&6; }
20075 rm -f core conftest.err conftest.$ac_objext \
20076 conftest$ac_exeext conftest.$ac_ext
20079 if test "$HAVE_GETHOSTBYNAME" != "1"
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
20082 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
20083 if ${ac_cv_lib_network_gethostbyname+:} false; then :
20084 $as_echo_n "(cached) " >&6
20086 ac_check_lib_save_LIBS=$LIBS
20087 LIBS="-lnetwork $LIBS"
20088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20089 /* end confdefs.h. */
20095 char gethostbyname ();
20098 return gethostbyname ();
20103 if ac_fn_c_try_link "$LINENO"; then :
20104 ac_cv_lib_network_gethostbyname=yes
20106 ac_cv_lib_network_gethostbyname=no
20108 rm -f core conftest.err conftest.$ac_objext \
20109 conftest$ac_exeext conftest.$ac_ext
20110 LIBS=$ac_check_lib_save_LIBS
20112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
20113 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
20114 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
20115 HAVE_GETHOSTBYNAME="1"
20116 LIBS="-lnetwork $LIBS"
20122 if test "$HAVE_GETHOSTBYNAME" != "1"
20124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
20125 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
20126 if ${ac_cv_lib_net_gethostbyname+:} false; then :
20127 $as_echo_n "(cached) " >&6
20129 ac_check_lib_save_LIBS=$LIBS
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h. */
20138 char gethostbyname ();
20141 return gethostbyname ();
20146 if ac_fn_c_try_link "$LINENO"; then :
20147 ac_cv_lib_net_gethostbyname=yes
20149 ac_cv_lib_net_gethostbyname=no
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
20156 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
20157 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
20158 HAVE_GETHOSTBYNAME="1"
20166 if test "$HAVE_GETHOSTBYNAME" != "1"; then
20167 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
20171 curl_includes_winsock2="\
20172 /* includes start */
20173 #ifdef HAVE_WINDOWS_H
20174 # ifndef WIN32_LEAN_AND_MEAN
20175 # define WIN32_LEAN_AND_MEAN
20177 # include <windows.h>
20178 # ifdef HAVE_WINSOCK2_H
20179 # include <winsock2.h>
20181 # ifdef HAVE_WINSOCK_H
20182 # include <winsock.h>
20186 /* includes end */"
20188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20189 $as_echo_n "checking for windows.h... " >&6; }
20190 if ${curl_cv_header_windows_h+:} false; then :
20191 $as_echo_n "(cached) " >&6
20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h. */
20199 #ifndef WIN32_LEAN_AND_MEAN
20200 #define WIN32_LEAN_AND_MEAN
20202 #include <windows.h>
20207 #if defined(__CYGWIN__) || defined(__CEGCC__)
20208 HAVE_WINDOWS_H shall not be defined.
20210 int dummy=2*WINVER;
20218 if ac_fn_c_try_compile "$LINENO"; then :
20220 curl_cv_header_windows_h="yes"
20224 curl_cv_header_windows_h="no"
20227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20231 $as_echo "$curl_cv_header_windows_h" >&6; }
20232 case "$curl_cv_header_windows_h" in
20235 cat >>confdefs.h <<_ACEOF
20236 #define HAVE_WINDOWS_H 1
20243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
20244 $as_echo_n "checking for winsock.h... " >&6; }
20245 if ${curl_cv_header_winsock_h+:} false; then :
20246 $as_echo_n "(cached) " >&6
20249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20250 /* end confdefs.h. */
20254 #ifndef WIN32_LEAN_AND_MEAN
20255 #define WIN32_LEAN_AND_MEAN
20257 #include <windows.h>
20258 #include <winsock.h>
20263 #if defined(__CYGWIN__) || defined(__CEGCC__)
20264 HAVE_WINSOCK_H shall not be defined.
20266 int dummy=WSACleanup();
20274 if ac_fn_c_try_compile "$LINENO"; then :
20276 curl_cv_header_winsock_h="yes"
20280 curl_cv_header_winsock_h="no"
20283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock_h" >&5
20287 $as_echo "$curl_cv_header_winsock_h" >&6; }
20288 case "$curl_cv_header_winsock_h" in
20291 cat >>confdefs.h <<_ACEOF
20292 #define HAVE_WINSOCK_H 1
20299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20300 $as_echo_n "checking for winsock2.h... " >&6; }
20301 if ${curl_cv_header_winsock2_h+:} false; then :
20302 $as_echo_n "(cached) " >&6
20305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20306 /* end confdefs.h. */
20310 #ifndef WIN32_LEAN_AND_MEAN
20311 #define WIN32_LEAN_AND_MEAN
20313 #include <windows.h>
20314 #include <winsock2.h>
20319 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20320 HAVE_WINSOCK2_H shall not be defined.
20322 int dummy=2*IPPROTO_ESP;
20330 if ac_fn_c_try_compile "$LINENO"; then :
20332 curl_cv_header_winsock2_h="yes"
20336 curl_cv_header_winsock2_h="no"
20339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20343 $as_echo "$curl_cv_header_winsock2_h" >&6; }
20344 case "$curl_cv_header_winsock2_h" in
20347 cat >>confdefs.h <<_ACEOF
20348 #define HAVE_WINSOCK2_H 1
20356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
20357 $as_echo_n "checking for connect in libraries... " >&6; }
20358 tst_connect_save_LIBS="$LIBS"
20359 tst_connect_need_LIBS="unknown"
20360 for tst_lib in '' '-lsocket' ; do
20361 if test "$tst_connect_need_LIBS" = "unknown"; then
20362 LIBS="$tst_lib $tst_connect_save_LIBS"
20363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20364 /* end confdefs.h. */
20367 $curl_includes_winsock2
20368 #ifndef HAVE_WINDOWS_H
20369 int connect(int, void*, int);
20375 if(0 != connect(0, 0, 0))
20383 if ac_fn_c_try_link "$LINENO"; then :
20385 tst_connect_need_LIBS="$tst_lib"
20388 rm -f core conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20392 LIBS="$tst_connect_save_LIBS"
20394 case X-"$tst_connect_need_LIBS" in
20396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
20397 $as_echo "cannot find connect" >&6; }
20398 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
20401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20402 $as_echo "yes" >&6; }
20405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
20406 $as_echo "$tst_connect_need_LIBS" >&6; }
20407 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
20412 CURL_NETWORK_LIBS=$LIBS
20414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
20415 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
20416 if ${ac_cv_header_time+:} false; then :
20417 $as_echo_n "(cached) " >&6
20419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20420 /* end confdefs.h. */
20421 #include <sys/types.h>
20422 #include <sys/time.h>
20427 if ((struct tm *) 0)
20433 if ac_fn_c_try_compile "$LINENO"; then :
20434 ac_cv_header_time=yes
20436 ac_cv_header_time=no
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
20441 $as_echo "$ac_cv_header_time" >&6; }
20442 if test $ac_cv_header_time = yes; then
20444 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
20449 for ac_header in sys/types.h sys/time.h time.h
20451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
20453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
20454 cat >>confdefs.h <<_ACEOF
20455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
20463 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
20465 if test "x$dontwant_rt" = "xno" ; then
20466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20467 /* end confdefs.h. */
20470 #ifdef HAVE_SYS_TYPES_H
20471 #include <sys/types.h>
20473 #ifdef HAVE_SYS_TIME_H
20474 #include <sys/time.h>
20475 #ifdef TIME_WITH_SYS_TIME
20487 struct timespec ts;
20488 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20495 if ac_fn_c_try_compile "$LINENO"; then :
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20498 $as_echo "yes" >&6; }
20499 curl_func_clock_gettime="yes"
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20504 $as_echo "no" >&6; }
20505 curl_func_clock_gettime="no"
20508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20513 if test "$curl_func_clock_gettime" = "yes"; then
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
20516 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
20518 curl_cv_save_LIBS="$LIBS"
20519 curl_cv_gclk_LIBS="unknown"
20521 for x_xlibs in '' '-lrt' '-lposix4' ; do
20522 if test "$curl_cv_gclk_LIBS" = "unknown"; then
20523 if test -z "$x_xlibs"; then
20524 LIBS="$curl_cv_save_LIBS"
20526 LIBS="$x_xlibs $curl_cv_save_LIBS"
20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h. */
20532 #ifdef HAVE_SYS_TYPES_H
20533 #include <sys/types.h>
20535 #ifdef HAVE_SYS_TIME_H
20536 #include <sys/time.h>
20537 #ifdef TIME_WITH_SYS_TIME
20549 struct timespec ts;
20550 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20557 if ac_fn_c_try_link "$LINENO"; then :
20559 curl_cv_gclk_LIBS="$x_xlibs"
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20567 LIBS="$curl_cv_save_LIBS"
20569 case X-"$curl_cv_gclk_LIBS" in
20571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20572 $as_echo "cannot find clock_gettime" >&6; }
20573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20574 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20575 curl_func_clock_gettime="no"
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20579 $as_echo "no additional lib required" >&6; }
20580 curl_func_clock_gettime="yes"
20583 if test -z "$curl_cv_save_LIBS"; then
20584 LIBS="$curl_cv_gclk_LIBS"
20586 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20589 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20590 curl_func_clock_gettime="yes"
20594 if test "x$cross_compiling" != "xyes" &&
20595 test "$curl_func_clock_gettime" = "yes"; then
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20597 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20598 if test "$cross_compiling" = yes; then :
20599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20601 as_fn_error $? "cannot run test program while cross compiling
20602 See \`config.log' for more details" "$LINENO" 5; }
20604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20605 /* end confdefs.h. */
20608 #ifdef HAVE_STDLIB_H
20609 #include <stdlib.h>
20611 #ifdef HAVE_SYS_TYPES_H
20612 #include <sys/types.h>
20614 #ifdef HAVE_SYS_TIME_H
20615 #include <sys/time.h>
20616 #ifdef TIME_WITH_SYS_TIME
20628 struct timespec ts;
20629 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20639 if ac_fn_c_try_run "$LINENO"; then :
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20642 $as_echo "yes" >&6; }
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20647 $as_echo "no" >&6; }
20648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20649 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20650 curl_func_clock_gettime="no"
20651 LIBS="$curl_cv_save_LIBS"
20654 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20655 conftest.$ac_objext conftest.beam conftest.$ac_ext
20660 case "$curl_func_clock_gettime" in
20663 cat >>confdefs.h <<_ACEOF
20664 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20674 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20678 clean_CPPFLAGS=$CPPFLAGS
20679 clean_LDFLAGS=$LDFLAGS
20683 # Check whether --with-zlib was given.
20684 if test "${with_zlib+set}" = set; then :
20685 withval=$with_zlib; OPT_ZLIB="$withval"
20689 if test "$OPT_ZLIB" = "no" ; then
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20691 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20693 if test "$OPT_ZLIB" = "yes" ; then
20697 if test -z "$OPT_ZLIB" ; then
20699 if test -n "$PKG_CONFIG"; then
20700 PKGCONFIG="$PKG_CONFIG"
20702 if test -n "$ac_tool_prefix"; then
20703 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20704 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20706 $as_echo_n "checking for $ac_word... " >&6; }
20707 if ${ac_cv_path_PKGCONFIG+:} false; then :
20708 $as_echo_n "(cached) " >&6
20712 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
20715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20716 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20717 for as_dir in $as_dummy
20720 test -z "$as_dir" && as_dir=.
20721 for ac_exec_ext in '' $ac_executable_extensions; do
20722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20723 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20734 PKGCONFIG=$ac_cv_path_PKGCONFIG
20735 if test -n "$PKGCONFIG"; then
20736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
20737 $as_echo "$PKGCONFIG" >&6; }
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20740 $as_echo "no" >&6; }
20745 if test -z "$ac_cv_path_PKGCONFIG"; then
20746 ac_pt_PKGCONFIG=$PKGCONFIG
20747 # Extract the first word of "pkg-config", so it can be a program name with args.
20748 set dummy pkg-config; ac_word=$2
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20750 $as_echo_n "checking for $ac_word... " >&6; }
20751 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
20752 $as_echo_n "(cached) " >&6
20754 case $ac_pt_PKGCONFIG in
20756 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
20759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20760 as_dummy="$PATH:/usr/bin:/usr/local/bin"
20761 for as_dir in $as_dummy
20764 test -z "$as_dir" && as_dir=.
20765 for ac_exec_ext in '' $ac_executable_extensions; do
20766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20767 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
20768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20778 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
20779 if test -n "$ac_pt_PKGCONFIG"; then
20780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
20781 $as_echo "$ac_pt_PKGCONFIG" >&6; }
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20784 $as_echo "no" >&6; }
20787 if test "x$ac_pt_PKGCONFIG" = x; then
20790 case $cross_compiling:$ac_tool_warned in
20792 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20793 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20794 ac_tool_warned=yes ;;
20796 PKGCONFIG=$ac_pt_PKGCONFIG
20799 PKGCONFIG="$ac_cv_path_PKGCONFIG"
20804 if test "x$PKGCONFIG" != "xno"; then
20805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
20806 $as_echo_n "checking for zlib options with pkg-config... " >&6; }
20808 if test -n ""; then
20809 PKG_CONFIG_LIBDIR=""
20810 export PKG_CONFIG_LIBDIR
20812 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
20814 if test -z "$itexists"; then
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20817 $as_echo "no" >&6; }
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
20820 $as_echo "found" >&6; }
20825 if test "$PKGCONFIG" != "no" ; then
20826 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
20827 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
20828 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
20833 if test -z "$HAVE_LIBZ"; then
20836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20837 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20838 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20839 $as_echo_n "(cached) " >&6
20841 ac_check_lib_save_LIBS=$LIBS
20843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20844 /* end confdefs.h. */
20850 char inflateEnd ();
20853 return inflateEnd ();
20858 if ac_fn_c_try_link "$LINENO"; then :
20859 ac_cv_lib_z_inflateEnd=yes
20861 ac_cv_lib_z_inflateEnd=no
20863 rm -f core conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20865 LIBS=$ac_check_lib_save_LIBS
20867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20868 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20869 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20873 OPT_ZLIB="/usr/local"
20879 if test -n "$OPT_ZLIB"; then
20880 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20881 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20884 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20885 if test "x$ac_cv_header_zlib_h" = xyes; then :
20888 if test "$HAVE_LIBZ" != "1"; then
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20890 $as_echo_n "checking for gzread in -lz... " >&6; }
20891 if ${ac_cv_lib_z_gzread+:} false; then :
20892 $as_echo_n "(cached) " >&6
20894 ac_check_lib_save_LIBS=$LIBS
20896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20897 /* end confdefs.h. */
20911 if ac_fn_c_try_link "$LINENO"; then :
20912 ac_cv_lib_z_gzread=yes
20914 ac_cv_lib_z_gzread=no
20916 rm -f core conftest.err conftest.$ac_objext \
20917 conftest$ac_exeext conftest.$ac_ext
20918 LIBS=$ac_check_lib_save_LIBS
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20921 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20922 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20928 CPPFLAGS=$clean_CPPFLAGS
20929 LDFLAGS=$clean_LDFLAGS
20936 CPPFLAGS=$clean_CPPFLAGS
20937 LDFLAGS=$clean_LDFLAGS
20943 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20946 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20948 CPPFLAGS=$clean_CPPFLAGS
20949 LDFLAGS=$clean_LDFLAGS
20951 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20954 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20955 CPPFLAGS=$clean_CPPFLAGS
20956 LDFLAGS=$clean_LDFLAGS
20958 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20962 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20965 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20969 LIBS="-lz $clean_LIBS"
20972 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20973 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20974 curl_zlib_msg="enabled"
20978 if test x"$AMFIXLIB" = x1; then
20980 HAVE_LIBZ_FALSE='#'
20992 # Check whether --with-brotli was given.
20993 if test "${with_brotli+set}" = set; then :
20994 withval=$with_brotli; OPT_BROTLI=$withval
20998 if test X"$OPT_BROTLI" != Xno; then
20999 CLEANLDFLAGS="$LDFLAGS"
21000 CLEANCPPFLAGS="$CPPFLAGS"
21003 case "$OPT_BROTLI" in
21006 if test -n "$PKG_CONFIG"; then
21007 PKGCONFIG="$PKG_CONFIG"
21009 if test -n "$ac_tool_prefix"; then
21010 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21011 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21013 $as_echo_n "checking for $ac_word... " >&6; }
21014 if ${ac_cv_path_PKGCONFIG+:} false; then :
21015 $as_echo_n "(cached) " >&6
21019 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21023 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21024 for as_dir in $as_dummy
21027 test -z "$as_dir" && as_dir=.
21028 for ac_exec_ext in '' $ac_executable_extensions; do
21029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21030 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21041 PKGCONFIG=$ac_cv_path_PKGCONFIG
21042 if test -n "$PKGCONFIG"; then
21043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21044 $as_echo "$PKGCONFIG" >&6; }
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21047 $as_echo "no" >&6; }
21052 if test -z "$ac_cv_path_PKGCONFIG"; then
21053 ac_pt_PKGCONFIG=$PKGCONFIG
21054 # Extract the first word of "pkg-config", so it can be a program name with args.
21055 set dummy pkg-config; ac_word=$2
21056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21057 $as_echo_n "checking for $ac_word... " >&6; }
21058 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21059 $as_echo_n "(cached) " >&6
21061 case $ac_pt_PKGCONFIG in
21063 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21067 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21068 for as_dir in $as_dummy
21071 test -z "$as_dir" && as_dir=.
21072 for ac_exec_ext in '' $ac_executable_extensions; do
21073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21074 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21085 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21086 if test -n "$ac_pt_PKGCONFIG"; then
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21088 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21091 $as_echo "no" >&6; }
21094 if test "x$ac_pt_PKGCONFIG" = x; then
21097 case $cross_compiling:$ac_tool_warned in
21099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21100 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21101 ac_tool_warned=yes ;;
21103 PKGCONFIG=$ac_pt_PKGCONFIG
21106 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21111 if test "x$PKGCONFIG" != "xno"; then
21112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
21113 $as_echo_n "checking for libbrotlidec options with pkg-config... " >&6; }
21115 if test -n ""; then
21116 PKG_CONFIG_LIBDIR=""
21117 export PKG_CONFIG_LIBDIR
21119 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
21121 if test -z "$itexists"; then
21123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21124 $as_echo "no" >&6; }
21126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21127 $as_echo "found" >&6; }
21132 if test "$PKGCONFIG" != "no" ; then
21133 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
21134 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
21135 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
21136 version=`$PKGCONFIG --modversion libbrotlidec`
21137 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/-L//'`
21144 PREFIX_BROTLI=$OPT_BROTLI
21148 if test -n "$PREFIX_BROTLI"; then
21149 LIB_BROTLI="-lbrotlidec"
21150 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
21151 CPP_BROTLI=-I${PREFIX_BROTLI}/include
21152 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
21155 LDFLAGS="$LDFLAGS $LD_BROTLI"
21156 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
21157 LIBS="$LIB_BROTLI $LIBS"
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
21160 $as_echo_n "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
21161 if ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+:} false; then :
21162 $as_echo_n "(cached) " >&6
21164 ac_check_lib_save_LIBS=$LIBS
21165 LIBS="-lbrotlidec $LIBS"
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21173 char BrotliDecoderDecompress ();
21176 return BrotliDecoderDecompress ();
21181 if ac_fn_c_try_link "$LINENO"; then :
21182 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
21184 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
21186 rm -f core conftest.err conftest.$ac_objext \
21187 conftest$ac_exeext conftest.$ac_ext
21188 LIBS=$ac_check_lib_save_LIBS
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
21191 $as_echo "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
21192 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes; then :
21193 cat >>confdefs.h <<_ACEOF
21194 #define HAVE_LIBBROTLIDEC 1
21197 LIBS="-lbrotlidec $LIBS"
21202 for ac_header in brotli/decode.h
21204 ac_fn_c_check_header_mongrel "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
21205 if test "x$ac_cv_header_brotli_decode_h" = xyes; then :
21206 cat >>confdefs.h <<_ACEOF
21207 #define HAVE_BROTLI_DECODE_H 1
21209 curl_brotli_msg="enabled (libbrotlidec)"
21212 $as_echo "#define HAVE_BROTLI 1" >>confdefs.h
21222 if test X"$OPT_BROTLI" != Xoff &&
21223 test "$HAVE_BROTLI" != "1"; then
21224 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
21227 if test "$HAVE_BROTLI" = "1"; then
21228 if test -n "$DIR_BROTLI"; then
21230 if test "x$cross_compiling" != "xyes"; then
21231 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_BROTLI"
21232 export LD_LIBRARY_PATH
21233 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&5
21234 $as_echo "$as_me: Added $DIR_BROTLI to LD_LIBRARY_PATH" >&6;}
21238 LDFLAGS=$CLEANLDFLAGS
21239 CPPFLAGS=$CLEANCPPFLAGS
21247 # Check whether --with-ldap-lib was given.
21248 if test "${with_ldap_lib+set}" = set; then :
21249 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
21255 # Check whether --with-lber-lib was given.
21256 if test "${with_lber_lib+set}" = set; then :
21257 withval=$with_lber_lib; LBERLIBNAME="$withval"
21261 if test x$CURL_DISABLE_LDAP != x1 ; then
21264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
21265 $as_echo_n "checking for lber.h... " >&6; }
21266 if ${curl_cv_header_lber_h+:} false; then :
21267 $as_echo_n "(cached) " >&6
21270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21271 /* end confdefs.h. */
21275 #ifdef HAVE_WINDOWS_H
21276 #ifndef WIN32_LEAN_AND_MEAN
21277 #define WIN32_LEAN_AND_MEAN
21279 #include <windows.h>
21281 #ifdef HAVE_SYS_TYPES_H
21282 #include <sys/types.h>
21286 #define NULL (void *)0
21293 BerValue *bvp = NULL;
21294 BerElement *bep = ber_init(bvp);
21302 if ac_fn_c_try_compile "$LINENO"; then :
21304 curl_cv_header_lber_h="yes"
21308 curl_cv_header_lber_h="no"
21311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
21315 $as_echo "$curl_cv_header_lber_h" >&6; }
21316 if test "$curl_cv_header_lber_h" = "yes"; then
21318 cat >>confdefs.h <<_ACEOF
21319 #define HAVE_LBER_H 1
21323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21324 /* end confdefs.h. */
21328 #ifdef HAVE_WINDOWS_H
21329 #ifndef WIN32_LEAN_AND_MEAN
21330 #define WIN32_LEAN_AND_MEAN
21332 #include <windows.h>
21334 #ifdef HAVE_SYS_TYPES_H
21335 #include <sys/types.h>
21339 #define NULL (void *)0
21341 #ifndef LDAP_DEPRECATED
21342 #define LDAP_DEPRECATED 1
21349 BerValue *bvp = NULL;
21350 BerElement *bep = ber_init(bvp);
21358 if ac_fn_c_try_compile "$LINENO"; then :
21360 curl_cv_need_header_lber_h="no"
21364 curl_cv_need_header_lber_h="yes"
21367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21369 case "$curl_cv_need_header_lber_h" in
21372 cat >>confdefs.h <<_ACEOF
21373 #define NEED_LBER_H 1
21381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
21382 $as_echo_n "checking for ldap.h... " >&6; }
21383 if ${curl_cv_header_ldap_h+:} false; then :
21384 $as_echo_n "(cached) " >&6
21387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21388 /* end confdefs.h. */
21392 #ifdef HAVE_WINDOWS_H
21393 #ifndef WIN32_LEAN_AND_MEAN
21394 #define WIN32_LEAN_AND_MEAN
21396 #include <windows.h>
21398 #ifdef HAVE_SYS_TYPES_H
21399 #include <sys/types.h>
21402 #ifndef LDAP_DEPRECATED
21403 #define LDAP_DEPRECATED 1
21413 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21414 int res = ldap_unbind(ldp);
21421 if ac_fn_c_try_compile "$LINENO"; then :
21423 curl_cv_header_ldap_h="yes"
21427 curl_cv_header_ldap_h="no"
21430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
21434 $as_echo "$curl_cv_header_ldap_h" >&6; }
21435 case "$curl_cv_header_ldap_h" in
21438 cat >>confdefs.h <<_ACEOF
21439 #define HAVE_LDAP_H 1
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
21447 $as_echo_n "checking for ldapssl.h... " >&6; }
21448 if ${curl_cv_header_ldapssl_h+:} false; then :
21449 $as_echo_n "(cached) " >&6
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21457 #ifdef HAVE_WINDOWS_H
21458 #ifndef WIN32_LEAN_AND_MEAN
21459 #define WIN32_LEAN_AND_MEAN
21461 #include <windows.h>
21463 #ifdef HAVE_SYS_TYPES_H
21464 #include <sys/types.h>
21468 #define NULL (void *)0
21470 #ifndef LDAP_DEPRECATED
21471 #define LDAP_DEPRECATED 1
21479 #include <ldapssl.h>
21484 char *cert_label = NULL;
21485 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
21492 if ac_fn_c_try_compile "$LINENO"; then :
21494 curl_cv_header_ldapssl_h="yes"
21498 curl_cv_header_ldapssl_h="no"
21501 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldapssl_h" >&5
21505 $as_echo "$curl_cv_header_ldapssl_h" >&6; }
21506 case "$curl_cv_header_ldapssl_h" in
21509 cat >>confdefs.h <<_ACEOF
21510 #define HAVE_LDAPSSL_H 1
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
21518 $as_echo_n "checking for ldap_ssl.h... " >&6; }
21519 if ${curl_cv_header_ldap_ssl_h+:} false; then :
21520 $as_echo_n "(cached) " >&6
21523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21524 /* end confdefs.h. */
21528 #ifdef HAVE_WINDOWS_H
21529 #ifndef WIN32_LEAN_AND_MEAN
21530 #define WIN32_LEAN_AND_MEAN
21532 #include <windows.h>
21534 #ifdef HAVE_SYS_TYPES_H
21535 #include <sys/types.h>
21538 #ifndef LDAP_DEPRECATED
21539 #define LDAP_DEPRECATED 1
21547 #include <ldap_ssl.h>
21552 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
21559 if ac_fn_c_try_compile "$LINENO"; then :
21561 curl_cv_header_ldap_ssl_h="yes"
21565 curl_cv_header_ldap_ssl_h="no"
21568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
21572 $as_echo "$curl_cv_header_ldap_ssl_h" >&6; }
21573 case "$curl_cv_header_ldap_ssl_h" in
21576 cat >>confdefs.h <<_ACEOF
21577 #define HAVE_LDAP_SSL_H 1
21584 if test -z "$LDAPLIBNAME" ; then
21585 if test "$curl_cv_native_windows" = "yes"; then
21586 LDAPLIBNAME="wldap32"
21591 if test "$LDAPLIBNAME" ; then
21592 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
21593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
21594 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
21595 if eval \${$as_ac_Lib+:} false; then :
21596 $as_echo_n "(cached) " >&6
21598 ac_check_lib_save_LIBS=$LIBS
21599 LIBS="-l"$LDAPLIBNAME" $LIBS"
21600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21601 /* end confdefs.h. */
21610 return ldap_init ();
21615 if ac_fn_c_try_link "$LINENO"; then :
21616 eval "$as_ac_Lib=yes"
21618 eval "$as_ac_Lib=no"
21620 rm -f core conftest.err conftest.$ac_objext \
21621 conftest$ac_exeext conftest.$ac_ext
21622 LIBS=$ac_check_lib_save_LIBS
21624 eval ac_res=\$$as_ac_Lib
21625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21626 $as_echo "$ac_res" >&6; }
21627 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21628 cat >>confdefs.h <<_ACEOF
21629 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
21632 LIBS="-l"$LDAPLIBNAME" $LIBS"
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
21637 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
21639 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21641 CURL_DISABLE_LDAP=1
21644 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21646 CURL_DISABLE_LDAPS=1
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
21654 $as_echo_n "checking for LDAP libraries... " >&6; }
21660 curl_cv_save_LIBS="$LIBS"
21661 curl_cv_ldap_LIBS="unknown"
21663 for x_nlibs in '' "$u_libs" \
21667 '-lldapssl -lldapx -lldapsdk' \
21668 '-lldapsdk -lldapx -lldapssl' ; do
21669 if test "$curl_cv_ldap_LIBS" = "unknown"; then
21670 if test -z "$x_nlibs"; then
21671 LIBS="$curl_cv_save_LIBS"
21673 LIBS="$x_nlibs $curl_cv_save_LIBS"
21675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21676 /* end confdefs.h. */
21680 #ifdef HAVE_WINDOWS_H
21681 #ifndef WIN32_LEAN_AND_MEAN
21682 #define WIN32_LEAN_AND_MEAN
21684 #include <windows.h>
21686 #ifdef HAVE_SYS_TYPES_H
21687 #include <sys/types.h>
21691 #define NULL (void *)0
21693 #ifndef LDAP_DEPRECATED
21694 #define LDAP_DEPRECATED 1
21706 BerValue *bvp = NULL;
21707 BerElement *bep = ber_init(bvp);
21708 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
21709 int res = ldap_unbind(ldp);
21717 if ac_fn_c_try_link "$LINENO"; then :
21719 curl_cv_ldap_LIBS="$x_nlibs"
21722 rm -f core conftest.err conftest.$ac_objext \
21723 conftest$ac_exeext conftest.$ac_ext
21727 LIBS="$curl_cv_save_LIBS"
21729 case X-"$curl_cv_ldap_LIBS" in
21731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
21732 $as_echo "cannot find LDAP libraries" >&6; }
21735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
21736 $as_echo "no additional lib required" >&6; }
21739 if test -z "$curl_cv_save_LIBS"; then
21740 LIBS="$curl_cv_ldap_LIBS"
21742 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
21745 $as_echo "$curl_cv_ldap_LIBS" >&6; }
21750 case X-"$curl_cv_ldap_LIBS" in
21752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
21753 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
21755 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21757 CURL_DISABLE_LDAP=1
21760 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21762 CURL_DISABLE_LDAPS=1
21769 if test x$CURL_DISABLE_LDAP != x1 ; then
21771 if test "$LBERLIBNAME" ; then
21772 if test "$LBERLIBNAME" != "no" ; then
21773 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
21774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
21775 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
21776 if eval \${$as_ac_Lib+:} false; then :
21777 $as_echo_n "(cached) " >&6
21779 ac_check_lib_save_LIBS=$LIBS
21780 LIBS="-l"$LBERLIBNAME" $LIBS"
21781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21782 /* end confdefs.h. */
21791 return ber_free ();
21796 if ac_fn_c_try_link "$LINENO"; then :
21797 eval "$as_ac_Lib=yes"
21799 eval "$as_ac_Lib=no"
21801 rm -f core conftest.err conftest.$ac_objext \
21802 conftest$ac_exeext conftest.$ac_ext
21803 LIBS=$ac_check_lib_save_LIBS
21805 eval ac_res=\$$as_ac_Lib
21806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21807 $as_echo "$ac_res" >&6; }
21808 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
21809 cat >>confdefs.h <<_ACEOF
21810 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
21813 LIBS="-l"$LBERLIBNAME" $LIBS"
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
21818 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
21820 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21822 CURL_DISABLE_LDAP=1
21825 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21827 CURL_DISABLE_LDAPS=1
21835 if test x$CURL_DISABLE_LDAP != x1 ; then
21836 for ac_func in ldap_url_parse ldap_init_fd
21838 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21839 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21840 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21841 cat >>confdefs.h <<_ACEOF
21842 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21849 if test "$LDAPLIBNAME" = "wldap32"; then
21850 curl_ldap_msg="enabled (winldap)"
21852 $as_echo "#define USE_WIN32_LDAP 1" >>confdefs.h
21855 curl_ldap_msg="enabled (OpenLDAP)"
21856 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
21858 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
21866 if test x$CURL_DISABLE_LDAPS != x1 ; then
21867 curl_ldaps_msg="enabled"
21871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
21872 $as_echo_n "checking whether to enable IPv6... " >&6; }
21873 # Check whether --enable-ipv6 was given.
21874 if test "${enable_ipv6+set}" = set; then :
21875 enableval=$enable_ipv6; case "$enableval" in
21877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21878 $as_echo "no" >&6; }
21881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21882 $as_echo "yes" >&6; }
21887 if test "$cross_compiling" = yes; then :
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21889 $as_echo "yes" >&6; }
21893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21894 /* end confdefs.h. */
21895 /* is AF_INET6 available? */
21896 #include <sys/types.h>
21897 #ifdef HAVE_WINSOCK2_H
21898 #include <winsock2.h>
21900 #include <sys/socket.h>
21902 #include <stdlib.h> /* for exit() */
21905 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
21912 if ac_fn_c_try_run "$LINENO"; then :
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21914 $as_echo "yes" >&6; }
21917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21918 $as_echo "no" >&6; }
21921 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21922 conftest.$ac_objext conftest.beam conftest.$ac_ext
21928 if test "$ipv6" = "yes"; then
21929 curl_ipv6_msg="enabled"
21932 # Check if struct sockaddr_in6 have sin6_scope_id member
21933 if test "$ipv6" = yes; then
21934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21935 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21937 /* end confdefs.h. */
21939 #include <sys/types.h>
21940 #ifdef HAVE_WINSOCK2_H
21941 #include <winsock2.h>
21942 #include <ws2tcpip.h>
21944 #include <netinet/in.h>
21945 #if defined (__TANDEM)
21946 # include <netinet/in6.h>
21951 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21956 if ac_fn_c_try_compile "$LINENO"; then :
21957 have_sin6_scope_id=yes
21959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21960 if test "$have_sin6_scope_id" = yes; then
21961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21962 $as_echo "yes" >&6; }
21964 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21968 $as_echo "no" >&6; }
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21974 $as_echo_n "checking if argv can be written to... " >&6; }
21975 if test "$cross_compiling" = yes; then :
21977 curl_cv_writable_argv=cross
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21984 int main(int argc, char ** argv) {
21986 return (argv[0][0] == ' ')?0:1;
21991 if ac_fn_c_try_run "$LINENO"; then :
21993 curl_cv_writable_argv=yes
21997 curl_cv_writable_argv=no
22000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22001 conftest.$ac_objext conftest.beam conftest.$ac_ext
22004 case $curl_cv_writable_argv in
22007 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
22009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010 $as_echo "yes" >&6; }
22013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22014 $as_echo "no" >&6; }
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22018 $as_echo "no" >&6; }
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
22020 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
22028 # Check whether --with-gssapi-includes was given.
22029 if test "${with_gssapi_includes+set}" = set; then :
22030 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
22037 # Check whether --with-gssapi-libs was given.
22038 if test "${with_gssapi_libs+set}" = set; then :
22039 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
22046 # Check whether --with-gssapi was given.
22047 if test "${with_gssapi+set}" = set; then :
22048 withval=$with_gssapi;
22049 GSSAPI_ROOT="$withval"
22050 if test x"$GSSAPI_ROOT" != xno; then
22052 if test x"$GSSAPI_ROOT" = xyes; then
22060 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
22062 save_CPPFLAGS="$CPPFLAGS"
22063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
22064 $as_echo_n "checking if GSS-API support is requested... " >&6; }
22065 if test x"$want_gss" = xyes; then
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22067 $as_echo "yes" >&6; }
22069 if test -z "$GSSAPI_INCS"; then
22070 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22071 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
22072 elif test -f "$KRB5CONFIG"; then
22073 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
22074 elif test "$GSSAPI_ROOT" != "yes"; then
22075 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
22079 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
22081 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
22082 if test "x$ac_cv_header_gss_h" = xyes; then :
22085 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
22091 for ac_header in gssapi/gssapi.h
22093 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
22094 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
22095 cat >>confdefs.h <<_ACEOF
22096 #define HAVE_GSSAPI_GSSAPI_H 1
22105 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
22107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
22109 $ac_includes_default
22110 #ifdef HAVE_GSSAPI_GSSAPI_H
22111 #include <gssapi/gssapi.h>
22115 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22116 cat >>confdefs.h <<_ACEOF
22117 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22126 if test "x$not_mit" = "x1"; then
22127 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
22128 if test "x$ac_cv_header_gssapi_h" = xyes; then :
22131 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
22138 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
22146 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
22148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
22149 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
22150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22151 /* end confdefs.h. */
22154 #include <gssapi/gssapi.h>
22155 #include <gssapi/gssapi_generic.h>
22156 #include <gssapi/gssapi_krb5.h>
22164 GSS_C_NT_HOSTBASED_SERVICE,
22172 if ac_fn_c_try_compile "$LINENO"; then :
22174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22175 $as_echo "yes" >&6; }
22179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22180 $as_echo "no" >&6; }
22182 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
22186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22195 $as_echo "no" >&6; }
22197 if test x"$want_gss" = xyes; then
22199 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
22202 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
22204 if test -n "$gnu_gss"; then
22205 curl_gss_msg="enabled (GNU GSS)"
22206 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22208 elif test -z "$GSSAPI_LIB_DIR"; then
22211 LIBS="-lgssapi_krb5 -lresolv $LIBS"
22214 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
22215 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
22216 LIBS="$gss_libs $LIBS"
22217 elif test -f "$KRB5CONFIG"; then
22218 gss_libs=`$KRB5CONFIG --libs gssapi`
22219 LIBS="$gss_libs $LIBS"
22226 gss_libname="gssapi"
22230 if test "$GSSAPI_ROOT" != "yes"; then
22231 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
22232 LIBS="-l$gss_libname $LIBS"
22234 LIBS="-l$gss_libname $LIBS"
22240 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
22246 LIBS="-lgssapi $LIBS"
22251 CPPFLAGS="$save_CPPFLAGS"
22254 build_libstubgss=no
22255 if test x"$want_gss" = "xyes"; then
22256 build_libstubgss=yes
22259 if test "x$build_libstubgss" = "xyes"; then
22260 BUILD_STUB_GSS_TRUE=
22261 BUILD_STUB_GSS_FALSE='#'
22263 BUILD_STUB_GSS_TRUE='#'
22264 BUILD_STUB_GSS_FALSE=
22269 DEFAULT_SSL_BACKEND=no
22270 VALID_DEFAULT_SSL_BACKEND=
22272 # Check whether --with-default-ssl-backend was given.
22273 if test "${with_default_ssl_backend+set}" = set; then :
22274 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
22277 case "$DEFAULT_SSL_BACKEND" in
22281 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
22285 VALID_DEFAULT_SSL_BACKEND=no
22293 # Check whether --with-winssl was given.
22294 if test "${with_winssl+set}" = set; then :
22295 withval=$with_winssl; OPT_WINSSL=$withval
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
22300 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
22301 if test -z "$ssl_backends" -o "x$OPT_WINSSL" != xno; then
22303 if test "x$OPT_WINSSL" != "xno" &&
22304 test "x$curl_cv_native_windows" = "xyes"; then
22305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22306 $as_echo "yes" >&6; }
22308 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
22312 ssl_msg="Windows-native"
22313 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22315 # --with-winssl implies --enable-sspi
22317 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
22321 curl_sspi_msg="enabled"
22322 LIBS="-lcrypt32 $LIBS"
22324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22325 $as_echo "no" >&6; }
22327 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22330 $as_echo "no" >&6; }
22335 # Check whether --with-darwinssl was given.
22336 if test "${with_darwinssl+set}" = set; then :
22337 withval=$with_darwinssl; OPT_DARWINSSL=$withval
22341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Apple OS native SSL/TLS" >&5
22342 $as_echo_n "checking whether to enable Apple OS native SSL/TLS... " >&6; }
22343 if test -z "$ssl_backends" -o "x$OPT_DARWINSSL" != xno; then
22344 if test "x$OPT_DARWINSSL" != "xno" &&
22345 test -d "/System/Library/Frameworks/Security.framework"; then
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22347 $as_echo "yes" >&6; }
22349 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
22353 ssl_msg="Apple OS-native"
22354 test darwinssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22355 DARWINSSL_ENABLED=1
22356 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22359 $as_echo "no" >&6; }
22361 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
22363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22364 $as_echo "no" >&6; }
22371 # Check whether --with-ssl was given.
22372 if test "${with_ssl+set}" = set; then :
22373 withval=$with_ssl; OPT_SSL=$withval
22377 if test -z "$ssl_backends" -o "x$OPT_SSL" != xno &&
22378 test X"$OPT_SSL" != Xno; then
22381 CLEANLDFLAGS="$LDFLAGS"
22382 CLEANCPPFLAGS="$CPPFLAGS"
22386 *-*-msys* | *-*-mingw*)
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
22388 $as_echo_n "checking for gdi32... " >&6; }
22389 my_ac_save_LIBS=$LIBS
22390 LIBS="-lgdi32 $LIBS"
22391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22392 /* end confdefs.h. */
22393 #include <windef.h>
22394 #include <wingdi.h>
22402 if ac_fn_c_try_link "$LINENO"; then :
22403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22404 $as_echo "yes" >&6; }
22406 LIBS=$my_ac_save_LIBS
22407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22408 $as_echo "no" >&6; }
22411 rm -f core conftest.err conftest.$ac_objext \
22412 conftest$ac_exeext conftest.$ac_ext
22418 if test x$cross_compiling != xyes; then
22421 PREFIX_OPENSSL=/usr/local/ssl
22422 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22425 if test x$cross_compiling != xyes; then
22432 PREFIX_OPENSSL=$OPT_SSL
22434 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
22435 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
22436 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
22437 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
22441 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
22442 if test "$PREFIX_OPENSSL" != "/usr" ; then
22443 SSL_LDFLAGS="-L$LIB_OPENSSL"
22444 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
22446 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
22450 if test "$PKGTEST" = "yes"; then
22453 if test -n "$PKG_CONFIG"; then
22454 PKGCONFIG="$PKG_CONFIG"
22456 if test -n "$ac_tool_prefix"; then
22457 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22458 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22460 $as_echo_n "checking for $ac_word... " >&6; }
22461 if ${ac_cv_path_PKGCONFIG+:} false; then :
22462 $as_echo_n "(cached) " >&6
22466 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22470 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22471 for as_dir in $as_dummy
22474 test -z "$as_dir" && as_dir=.
22475 for ac_exec_ext in '' $ac_executable_extensions; do
22476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22477 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22488 PKGCONFIG=$ac_cv_path_PKGCONFIG
22489 if test -n "$PKGCONFIG"; then
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22491 $as_echo "$PKGCONFIG" >&6; }
22493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22494 $as_echo "no" >&6; }
22499 if test -z "$ac_cv_path_PKGCONFIG"; then
22500 ac_pt_PKGCONFIG=$PKGCONFIG
22501 # Extract the first word of "pkg-config", so it can be a program name with args.
22502 set dummy pkg-config; ac_word=$2
22503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22504 $as_echo_n "checking for $ac_word... " >&6; }
22505 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22506 $as_echo_n "(cached) " >&6
22508 case $ac_pt_PKGCONFIG in
22510 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22514 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22515 for as_dir in $as_dummy
22518 test -z "$as_dir" && as_dir=.
22519 for ac_exec_ext in '' $ac_executable_extensions; do
22520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22521 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22532 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22533 if test -n "$ac_pt_PKGCONFIG"; then
22534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22535 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22538 $as_echo "no" >&6; }
22541 if test "x$ac_pt_PKGCONFIG" = x; then
22544 case $cross_compiling:$ac_tool_warned in
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22547 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22548 ac_tool_warned=yes ;;
22550 PKGCONFIG=$ac_pt_PKGCONFIG
22553 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22558 if test "x$PKGCONFIG" != "xno"; then
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
22560 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
22562 if test -n "$OPENSSL_PCDIR"; then
22563 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22564 export PKG_CONFIG_LIBDIR
22566 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
22568 if test -z "$itexists"; then
22570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22571 $as_echo "no" >&6; }
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22574 $as_echo "found" >&6; }
22579 if test "$PKGCONFIG" != "no" ; then
22581 if test -n "$OPENSSL_PCDIR"; then
22582 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22583 export PKG_CONFIG_LIBDIR
22585 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
22588 if test -n "$OPENSSL_PCDIR"; then
22589 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22590 export PKG_CONFIG_LIBDIR
22592 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
22595 if test -n "$OPENSSL_PCDIR"; then
22596 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
22597 export PKG_CONFIG_LIBDIR
22599 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
22602 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
22603 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
22605 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
22606 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
22607 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
22609 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
22611 LIBS="$SSL_LIBS $LIBS"
22615 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
22616 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
22618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
22619 $as_echo_n "checking for HMAC_Update in -lcrypto... " >&6; }
22620 if ${ac_cv_lib_crypto_HMAC_Update+:} false; then :
22621 $as_echo_n "(cached) " >&6
22623 ac_check_lib_save_LIBS=$LIBS
22624 LIBS="-lcrypto $LIBS"
22625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22626 /* end confdefs.h. */
22632 char HMAC_Update ();
22635 return HMAC_Update ();
22640 if ac_fn_c_try_link "$LINENO"; then :
22641 ac_cv_lib_crypto_HMAC_Update=yes
22643 ac_cv_lib_crypto_HMAC_Update=no
22645 rm -f core conftest.err conftest.$ac_objext \
22646 conftest$ac_exeext conftest.$ac_ext
22647 LIBS=$ac_check_lib_save_LIBS
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
22650 $as_echo "$ac_cv_lib_crypto_HMAC_Update" >&6; }
22651 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes; then :
22654 LIBS="-lcrypto $LIBS"
22658 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
22659 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
22660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
22661 $as_echo_n "checking for HMAC_Init_ex in -lcrypto... " >&6; }
22662 if ${ac_cv_lib_crypto_HMAC_Init_ex+:} false; then :
22663 $as_echo_n "(cached) " >&6
22665 ac_check_lib_save_LIBS=$LIBS
22666 LIBS="-lcrypto $LIBS"
22667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22668 /* end confdefs.h. */
22674 char HMAC_Init_ex ();
22677 return HMAC_Init_ex ();
22682 if ac_fn_c_try_link "$LINENO"; then :
22683 ac_cv_lib_crypto_HMAC_Init_ex=yes
22685 ac_cv_lib_crypto_HMAC_Init_ex=no
22687 rm -f core conftest.err conftest.$ac_objext \
22688 conftest$ac_exeext conftest.$ac_ext
22689 LIBS=$ac_check_lib_save_LIBS
22691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
22692 $as_echo "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
22693 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes; then :
22696 LIBS="-lcrypto $LIBS"
22700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
22701 $as_echo_n "checking OpenSSL linking with -ldl... " >&6; }
22703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704 /* end confdefs.h. */
22706 #include <openssl/err.h>
22717 if ac_fn_c_try_link "$LINENO"; then :
22719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22720 $as_echo "yes" >&6; }
22725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22726 $as_echo "no" >&6; }
22728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
22729 $as_echo_n "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
22730 LIBS="$LIBS -lpthread"
22731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22732 /* end confdefs.h. */
22734 #include <openssl/err.h>
22745 if ac_fn_c_try_link "$LINENO"; then :
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22748 $as_echo "yes" >&6; }
22753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22754 $as_echo "no" >&6; }
22755 LDFLAGS="$CLEANLDFLAGS"
22756 CPPFLAGS="$CLEANCPPFLAGS"
22761 rm -f core conftest.err conftest.$ac_objext \
22762 conftest$ac_exeext conftest.$ac_ext
22766 rm -f core conftest.err conftest.$ac_objext \
22767 conftest$ac_exeext conftest.$ac_ext
22776 if test X"$HAVECRYPTO" = X"yes"; then
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22779 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22780 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22781 $as_echo_n "(cached) " >&6
22783 ac_check_lib_save_LIBS=$LIBS
22785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22786 /* end confdefs.h. */
22792 char SSL_connect ();
22795 return SSL_connect ();
22800 if ac_fn_c_try_link "$LINENO"; then :
22801 ac_cv_lib_ssl_SSL_connect=yes
22803 ac_cv_lib_ssl_SSL_connect=no
22805 rm -f core conftest.err conftest.$ac_objext \
22806 conftest$ac_exeext conftest.$ac_ext
22807 LIBS=$ac_check_lib_save_LIBS
22809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22810 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22811 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22812 cat >>confdefs.h <<_ACEOF
22813 #define HAVE_LIBSSL 1
22821 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
22823 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
22825 LIBS="-lRSAglue -lrsaref $LIBS"
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
22827 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
22828 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
22829 $as_echo_n "(cached) " >&6
22831 ac_check_lib_save_LIBS=$LIBS
22833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22834 /* end confdefs.h. */
22840 char SSL_connect ();
22843 return SSL_connect ();
22848 if ac_fn_c_try_link "$LINENO"; then :
22849 ac_cv_lib_ssl_SSL_connect=yes
22851 ac_cv_lib_ssl_SSL_connect=no
22853 rm -f core conftest.err conftest.$ac_objext \
22854 conftest$ac_exeext conftest.$ac_ext
22855 LIBS=$ac_check_lib_save_LIBS
22857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
22858 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
22859 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
22860 cat >>confdefs.h <<_ACEOF
22861 #define HAVE_LIBSSL 1
22868 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
22869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22870 $as_echo "no" >&6; }
22873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22874 $as_echo "yes" >&6; }
22879 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
22880 openssl/pem.h openssl/ssl.h openssl/err.h
22882 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22883 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22884 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22885 cat >>confdefs.h <<_ACEOF
22886 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22889 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
22892 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
22899 if test $ac_cv_header_openssl_x509_h = no; then
22900 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
22902 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22903 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22904 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22905 cat >>confdefs.h <<_ACEOF
22906 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22914 if test $ac_cv_header_x509_h = yes &&
22915 test $ac_cv_header_crypto_h = yes &&
22916 test $ac_cv_header_ssl_h = yes; then
22923 if test X"$OPENSSL_ENABLED" != X"1"; then
22927 if test X"$OPT_SSL" != Xoff &&
22928 test "$OPENSSL_ENABLED" != "1"; then
22929 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
22933 if test X"$OPENSSL_ENABLED" = X"1"; then
22934 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
22935 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
22937 for ac_header in openssl/engine.h
22939 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
22940 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
22941 cat >>confdefs.h <<_ACEOF
22942 #define HAVE_OPENSSL_ENGINE_H 1
22949 for ac_func in ENGINE_load_builtin_engines
22951 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22952 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22953 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22954 cat >>confdefs.h <<_ACEOF
22955 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22966 for ac_func in RAND_egd \
22969 SSLv2_client_method
22971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22973 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22974 cat >>confdefs.h <<_ACEOF
22975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
22983 $as_echo_n "checking for BoringSSL... " >&6; }
22984 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22985 /* end confdefs.h. */
22988 #include <openssl/base.h>
22993 #ifndef OPENSSL_IS_BORINGSSL
22994 #error not boringssl
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_BORINGSSL 1
23011 ssl_msg="BoringSSL"
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
23021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
23022 $as_echo_n "checking for libressl... " >&6; }
23023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23024 /* end confdefs.h. */
23027 #include <openssl/opensslv.h>
23032 int dummy = LIBRESSL_VERSION_NUMBER;
23039 if ac_fn_c_try_compile "$LINENO"; then :
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23042 $as_echo "yes" >&6; }
23044 cat >>confdefs.h <<_ACEOF
23045 #define HAVE_LIBRESSL 1
23052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23053 $as_echo "no" >&6; }
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059 if test "$OPENSSL_ENABLED" = "1"; then
23060 if test -n "$LIB_OPENSSL"; then
23061 if test "x$cross_compiling" != "xyes"; then
23062 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
23063 export LD_LIBRARY_PATH
23064 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
23065 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
23075 $as_echo_n "checking for OpenSSL headers version... " >&6; }
23077 OLDCPPFLAGS=$CPPFLAGS
23078 # CPPPFLAG comes from CURL_CPP_P
23079 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
23080 if test -z "$SED"; then
23081 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
23083 if test -z "$GREP"; then
23084 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
23088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23089 /* end confdefs.h. */
23092 # ifdef USE_OPENSSL
23093 # include <openssl/crypto.h>
23095 # include <crypto.h>
23098 #ifdef OPENSSL_VERSION_NUMBER
23099 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
23104 if ac_fn_c_try_cpp "$LINENO"; then :
23106 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
23107 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
23108 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
23109 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
23110 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
23115 rm -f conftest.err conftest.i conftest.$ac_ext
23116 if test -z "$tmp_exp"; then
23117 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
23120 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
23121 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
23124 CPPFLAGS=$OLDCPPFLAGS
23126 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
23127 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
23128 case "x$tst_verlen" in
23130 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23131 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
23132 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23133 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23136 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
23137 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
23138 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
23139 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
23146 0x111) tst_show="1.1.1" ;;
23147 0x110) tst_show="1.1.0" ;;
23148 0x102) tst_show="1.0.2" ;;
23149 0x101) tst_show="1.0.1" ;;
23150 0x100) tst_show="1.0.0" ;;
23151 0x099) tst_show="0.9.9" ;;
23152 0x098) tst_show="0.9.8" ;;
23153 0x097) tst_show="0.9.7" ;;
23154 0x096) tst_show="0.9.6" ;;
23155 0x095) tst_show="0.9.5" ;;
23156 0x094) tst_show="0.9.4" ;;
23157 0x093) tst_show="0.9.3" ;;
23158 0x092) tst_show="0.9.2" ;;
23159 0x091) tst_show="0.9.1" ;;
23160 *) tst_show="unknown" ;;
23162 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
23166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23167 $as_echo "$tst_show" >&6; }
23169 curl_openssl_api_headers=$tst_api
23175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
23176 $as_echo_n "checking for OpenSSL library version... " >&6; }
23177 if test "$tst_api" = "unknown"; then
23178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23179 /* end confdefs.h. */
23182 #define ERR_clear_last_mark innocuous_ERR_clear_last_mark
23184 # include <limits.h>
23186 # include <assert.h>
23188 #undef ERR_clear_last_mark
23192 char ERR_clear_last_mark ();
23193 #if defined __stub_ERR_clear_last_mark || defined __stub___ERR_clear_last_mark
23199 return ERR_clear_last_mark ();
23205 if ac_fn_c_try_link "$LINENO"; then :
23210 rm -f core conftest.err conftest.$ac_objext \
23211 conftest$ac_exeext conftest.$ac_ext
23213 if test "$tst_api" = "unknown"; then
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217 /* end confdefs.h. */
23220 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
23222 # include <limits.h>
23224 # include <assert.h>
23226 #undef SSL_CTX_set_not_resumbl_sess_cb
23230 char SSL_CTX_set_not_resumbl_sess_cb ();
23231 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
23237 return SSL_CTX_set_not_resumbl_sess_cb ();
23243 if ac_fn_c_try_link "$LINENO"; then :
23248 rm -f core conftest.err conftest.$ac_objext \
23249 conftest$ac_exeext conftest.$ac_ext
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23256 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
23258 # include <limits.h>
23260 # include <assert.h>
23262 #undef SSL_CTX_set_not_resumable_session_callback
23266 char SSL_CTX_set_not_resumable_session_callback ();
23267 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
23273 return SSL_CTX_set_not_resumable_session_callback ();
23279 if ac_fn_c_try_link "$LINENO"; then :
23284 rm -f core conftest.err conftest.$ac_objext \
23285 conftest$ac_exeext conftest.$ac_ext
23289 if test "$tst_api" = "unknown"; then
23290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23291 /* end confdefs.h. */
23294 #define SSL_CONF_CTX_new innocuous_SSL_CONF_CTX_new
23296 # include <limits.h>
23298 # include <assert.h>
23300 #undef SSL_CONF_CTX_new
23304 char SSL_CONF_CTX_new ();
23305 #if defined __stub_SSL_CONF_CTX_new || defined __stub___SSL_CONF_CTX_new
23311 return SSL_CONF_CTX_new ();
23317 if ac_fn_c_try_link "$LINENO"; then :
23322 rm -f core conftest.err conftest.$ac_objext \
23323 conftest$ac_exeext conftest.$ac_ext
23325 if test "$tst_api" = "unknown"; then
23326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23327 /* end confdefs.h. */
23330 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
23332 # include <limits.h>
23334 # include <assert.h>
23336 #undef SSL_renegotiate_abbreviated
23340 char SSL_renegotiate_abbreviated ();
23341 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
23347 return SSL_renegotiate_abbreviated ();
23353 if ac_fn_c_try_link "$LINENO"; then :
23358 rm -f core conftest.err conftest.$ac_objext \
23359 conftest$ac_exeext conftest.$ac_ext
23361 if test "$tst_api" = "unknown"; then
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23366 #define OBJ_add_sigid innocuous_OBJ_add_sigid
23368 # include <limits.h>
23370 # include <assert.h>
23372 #undef OBJ_add_sigid
23376 char OBJ_add_sigid ();
23377 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
23383 return OBJ_add_sigid ();
23389 if ac_fn_c_try_link "$LINENO"; then :
23394 rm -f core conftest.err conftest.$ac_objext \
23395 conftest$ac_exeext conftest.$ac_ext
23397 if test "$tst_api" = "unknown"; then
23398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23399 /* end confdefs.h. */
23402 #define ERR_set_mark innocuous_ERR_set_mark
23404 # include <limits.h>
23406 # include <assert.h>
23408 #undef ERR_set_mark
23412 char ERR_set_mark ();
23413 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
23419 return ERR_set_mark ();
23425 if ac_fn_c_try_link "$LINENO"; then :
23430 rm -f core conftest.err conftest.$ac_objext \
23431 conftest$ac_exeext conftest.$ac_ext
23433 if test "$tst_api" = "unknown"; then
23434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23435 /* end confdefs.h. */
23438 #define ERR_peek_last_error innocuous_ERR_peek_last_error
23440 # include <limits.h>
23442 # include <assert.h>
23444 #undef ERR_peek_last_error
23448 char ERR_peek_last_error ();
23449 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
23455 return ERR_peek_last_error ();
23461 if ac_fn_c_try_link "$LINENO"; then :
23466 rm -f core conftest.err conftest.$ac_objext \
23467 conftest$ac_exeext conftest.$ac_ext
23469 if test "$tst_api" = "unknown"; then
23470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23471 /* end confdefs.h. */
23474 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
23476 # include <limits.h>
23478 # include <assert.h>
23480 #undef c2i_ASN1_OBJECT
23484 char c2i_ASN1_OBJECT ();
23485 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
23491 return c2i_ASN1_OBJECT ();
23497 if ac_fn_c_try_link "$LINENO"; then :
23502 rm -f core conftest.err conftest.$ac_objext \
23503 conftest$ac_exeext conftest.$ac_ext
23505 if test "$tst_api" = "unknown"; then
23506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h. */
23510 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
23512 # include <limits.h>
23514 # include <assert.h>
23516 #undef SSL_CTX_set_purpose
23520 char SSL_CTX_set_purpose ();
23521 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
23527 return SSL_CTX_set_purpose ();
23533 if ac_fn_c_try_link "$LINENO"; then :
23538 rm -f core conftest.err conftest.$ac_objext \
23539 conftest$ac_exeext conftest.$ac_ext
23541 if test "$tst_api" = "unknown"; then
23542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23543 /* end confdefs.h. */
23546 #define OBJ_obj2txt innocuous_OBJ_obj2txt
23548 # include <limits.h>
23550 # include <assert.h>
23556 char OBJ_obj2txt ();
23557 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
23563 return OBJ_obj2txt ();
23569 if ac_fn_c_try_link "$LINENO"; then :
23574 rm -f core conftest.err conftest.$ac_objext \
23575 conftest$ac_exeext conftest.$ac_ext
23577 if test "$tst_api" = "unknown"; then
23578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23579 /* end confdefs.h. */
23582 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
23584 # include <limits.h>
23586 # include <assert.h>
23588 #undef SSL_get_verify_depth
23592 char SSL_get_verify_depth ();
23593 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
23599 return SSL_get_verify_depth ();
23605 if ac_fn_c_try_link "$LINENO"; then :
23610 rm -f core conftest.err conftest.$ac_objext \
23611 conftest$ac_exeext conftest.$ac_ext
23613 if test "$tst_api" = "unknown"; then
23614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23615 /* end confdefs.h. */
23618 #define SSL_library_init innocuous_SSL_library_init
23620 # include <limits.h>
23622 # include <assert.h>
23624 #undef SSL_library_init
23628 char SSL_library_init ();
23629 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
23635 return SSL_library_init ();
23641 if ac_fn_c_try_link "$LINENO"; then :
23646 rm -f core conftest.err conftest.$ac_objext \
23647 conftest$ac_exeext conftest.$ac_ext
23649 if test "$tst_api" = "unknown"; then
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23654 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
23656 # include <limits.h>
23658 # include <assert.h>
23660 #undef SSL_CTX_set_cipher_list
23664 char SSL_CTX_set_cipher_list ();
23665 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
23671 return SSL_CTX_set_cipher_list ();
23677 if ac_fn_c_try_link "$LINENO"; then :
23682 rm -f core conftest.err conftest.$ac_objext \
23683 conftest$ac_exeext conftest.$ac_ext
23686 0x111) tst_show="1.1.1" ;;
23687 0x110) tst_show="1.1.0" ;;
23688 0x102) tst_show="1.0.2" ;;
23689 0x101) tst_show="1.0.1" ;;
23690 0x100) tst_show="1.0.0" ;;
23691 0x099) tst_show="0.9.9" ;;
23692 0x098) tst_show="0.9.8" ;;
23693 0x097) tst_show="0.9.7" ;;
23694 0x096) tst_show="0.9.6" ;;
23695 0x095) tst_show="0.9.5" ;;
23696 0x094) tst_show="0.9.4" ;;
23697 0x093) tst_show="0.9.3" ;;
23698 0x092) tst_show="0.9.2" ;;
23699 0x091) tst_show="0.9.1" ;;
23700 *) tst_show="unknown" ;;
23702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
23703 $as_echo "$tst_show" >&6; }
23705 curl_openssl_api_library=$tst_api
23710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
23711 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
23712 if test "$curl_openssl_api_headers" = "unknown" ||
23713 test "$curl_openssl_api_library" = "unknown"; then
23715 tst_warns="Can not compare OpenSSL headers and library versions."
23716 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
23718 tst_warns="OpenSSL headers and library versions do not match."
23720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
23721 $as_echo "$tst_match" >&6; }
23722 if test "$tst_match" != "yes"; then
23723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
23724 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
23729 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
23733 if test X"$OPENSSL_ENABLED" = X"1"; then
23735 # Check whether --with-egd-socket was given.
23736 if test "${with_egd_socket+set}" = set; then :
23737 withval=$with_egd_socket; EGD_SOCKET="$withval"
23741 if test -n "$EGD_SOCKET" ; then
23743 cat >>confdefs.h <<_ACEOF
23744 #define EGD_SOCKET "$EGD_SOCKET"
23750 # Check whether --with-random was given.
23751 if test "${with_random+set}" = set; then :
23752 withval=$with_random; RANDOM_FILE="$withval"
23755 if test x$cross_compiling != xyes; then
23756 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
23757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
23758 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
23759 if eval \${$as_ac_File+:} false; then :
23760 $as_echo_n "(cached) " >&6
23762 test "$cross_compiling" = yes &&
23763 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
23764 if test -r ""/dev/urandom""; then
23765 eval "$as_ac_File=yes"
23767 eval "$as_ac_File=no"
23770 eval ac_res=\$$as_ac_File
23771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23772 $as_echo "$ac_res" >&6; }
23773 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
23774 RANDOM_FILE="/dev/urandom"
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
23779 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
23785 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
23788 cat >>confdefs.h <<_ACEOF
23789 #define RANDOM_FILE "$RANDOM_FILE"
23795 if test "$OPENSSL_ENABLED" = "1"; then
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
23797 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
23798 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
23799 $as_echo_n "(cached) " >&6
23801 ac_check_lib_save_LIBS=$LIBS
23802 LIBS="-lcrypto $LIBS"
23803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23804 /* end confdefs.h. */
23810 char SRP_Calc_client_key ();
23813 return SRP_Calc_client_key ();
23818 if ac_fn_c_try_link "$LINENO"; then :
23819 ac_cv_lib_crypto_SRP_Calc_client_key=yes
23821 ac_cv_lib_crypto_SRP_Calc_client_key=no
23823 rm -f core conftest.err conftest.$ac_objext \
23824 conftest$ac_exeext conftest.$ac_ext
23825 LIBS=$ac_check_lib_save_LIBS
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
23828 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
23829 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
23832 $as_echo "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
23845 # Check whether --with-gnutls was given.
23846 if test "${with_gnutls+set}" = set; then :
23847 withval=$with_gnutls; OPT_GNUTLS=$withval
23851 if test -z "$ssl_backends" -o "x$OPT_GNUTLS" != xno; then
23854 if test X"$OPT_GNUTLS" != Xno; then
23862 if test "x$OPT_GNUTLS" = "xyes"; then
23864 if test -n "$PKG_CONFIG"; then
23865 PKGCONFIG="$PKG_CONFIG"
23867 if test -n "$ac_tool_prefix"; then
23868 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23869 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23871 $as_echo_n "checking for $ac_word... " >&6; }
23872 if ${ac_cv_path_PKGCONFIG+:} false; then :
23873 $as_echo_n "(cached) " >&6
23877 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23881 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23882 for as_dir in $as_dummy
23885 test -z "$as_dir" && as_dir=.
23886 for ac_exec_ext in '' $ac_executable_extensions; do
23887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23888 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23899 PKGCONFIG=$ac_cv_path_PKGCONFIG
23900 if test -n "$PKGCONFIG"; then
23901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23902 $as_echo "$PKGCONFIG" >&6; }
23904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23905 $as_echo "no" >&6; }
23910 if test -z "$ac_cv_path_PKGCONFIG"; then
23911 ac_pt_PKGCONFIG=$PKGCONFIG
23912 # Extract the first word of "pkg-config", so it can be a program name with args.
23913 set dummy pkg-config; ac_word=$2
23914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23915 $as_echo_n "checking for $ac_word... " >&6; }
23916 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23917 $as_echo_n "(cached) " >&6
23919 case $ac_pt_PKGCONFIG in
23921 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23925 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23926 for as_dir in $as_dummy
23929 test -z "$as_dir" && as_dir=.
23930 for ac_exec_ext in '' $ac_executable_extensions; do
23931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23932 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23933 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23943 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23944 if test -n "$ac_pt_PKGCONFIG"; then
23945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23946 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23949 $as_echo "no" >&6; }
23952 if test "x$ac_pt_PKGCONFIG" = x; then
23955 case $cross_compiling:$ac_tool_warned in
23957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23959 ac_tool_warned=yes ;;
23961 PKGCONFIG=$ac_pt_PKGCONFIG
23964 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23969 if test "x$PKGCONFIG" != "xno"; then
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
23971 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
23973 if test -n ""; then
23974 PKG_CONFIG_LIBDIR=""
23975 export PKG_CONFIG_LIBDIR
23977 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
23979 if test -z "$itexists"; then
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23982 $as_echo "no" >&6; }
23984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23985 $as_echo "found" >&6; }
23990 if test "$PKGCONFIG" != "no" ; then
23991 addlib=`$PKGCONFIG --libs-only-l gnutls`
23992 addld=`$PKGCONFIG --libs-only-L gnutls`
23993 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
23994 version=`$PKGCONFIG --modversion gnutls`
23995 gtlslib=`echo $addld | $SED -e 's/-L//'`
23997 check=`libgnutls-config --version 2>/dev/null`
23998 if test -n "$check"; then
23999 addlib=`libgnutls-config --libs`
24000 addcflags=`libgnutls-config --cflags`
24001 version=`libgnutls-config --version`
24002 gtlslib=`libgnutls-config --prefix`/lib$libsuff
24006 cfg=$OPT_GNUTLS/bin/libgnutls-config
24007 check=`$cfg --version 2>/dev/null`
24008 if test -n "$check"; then
24009 addlib=`$cfg --libs`
24010 addcflags=`$cfg --cflags`
24011 version=`$cfg --version`
24012 gtlslib=`$cfg --prefix`/lib$libsuff
24015 addld=-L$OPT_GNUTLS/lib$libsuff
24016 addcflags=-I$OPT_GNUTLS/include
24017 version="" # we just don't know
24018 gtlslib=$OPT_GNUTLS/lib$libsuff
24022 if test -z "$version"; then
24026 if test -n "$addlib"; then
24029 CLEANCPPFLAGS="$CPPFLAGS"
24030 CLEANLDFLAGS="$LDFLAGS"
24032 LIBS="$addlib $LIBS"
24033 LDFLAGS="$LDFLAGS $addld"
24034 if test "$addcflags" != "-I/usr/include"; then
24035 CPPFLAGS="$CPPFLAGS $addcflags"
24038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
24039 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
24040 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
24041 $as_echo_n "(cached) " >&6
24043 ac_check_lib_save_LIBS=$LIBS
24044 LIBS="-lgnutls $LIBS"
24045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24046 /* end confdefs.h. */
24052 char gnutls_check_version ();
24055 return gnutls_check_version ();
24060 if ac_fn_c_try_link "$LINENO"; then :
24061 ac_cv_lib_gnutls_gnutls_check_version=yes
24063 ac_cv_lib_gnutls_gnutls_check_version=no
24065 rm -f core conftest.err conftest.$ac_objext \
24066 conftest$ac_exeext conftest.$ac_ext
24067 LIBS=$ac_check_lib_save_LIBS
24069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
24070 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
24071 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
24074 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
24081 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24086 CPPFLAGS="$CLEANCPPFLAGS"
24091 if test "x$USE_GNUTLS" = "xyes"; then
24092 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
24093 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
24095 if test -n "$gtlslib"; then
24096 if test "x$cross_compiling" != "xyes"; then
24097 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
24098 export LD_LIBRARY_PATH
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
24100 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
24103 for ac_func in gnutls_certificate_set_x509_key_file2 gnutls_alpn_set_protocols gnutls_ocsp_req_init
24105 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24106 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24107 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24108 cat >>confdefs.h <<_ACEOF
24109 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24120 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24124 if test "$GNUTLS_ENABLED" = "1"; then
24126 # First check if we can detect either crypto library via transitive linking
24127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
24128 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
24129 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
24130 $as_echo_n "(cached) " >&6
24132 ac_check_lib_save_LIBS=$LIBS
24133 LIBS="-lgnutls $LIBS"
24134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24135 /* end confdefs.h. */
24141 char nettle_MD5Init ();
24144 return nettle_MD5Init ();
24149 if ac_fn_c_try_link "$LINENO"; then :
24150 ac_cv_lib_gnutls_nettle_MD5Init=yes
24152 ac_cv_lib_gnutls_nettle_MD5Init=no
24154 rm -f core conftest.err conftest.$ac_objext \
24155 conftest$ac_exeext conftest.$ac_ext
24156 LIBS=$ac_check_lib_save_LIBS
24158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
24159 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
24160 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
24161 USE_GNUTLS_NETTLE=1
24164 if test "$USE_GNUTLS_NETTLE" = ""; then
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
24166 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
24167 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
24168 $as_echo_n "(cached) " >&6
24170 ac_check_lib_save_LIBS=$LIBS
24171 LIBS="-lgnutls $LIBS"
24172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24173 /* end confdefs.h. */
24179 char gcry_control ();
24182 return gcry_control ();
24187 if ac_fn_c_try_link "$LINENO"; then :
24188 ac_cv_lib_gnutls_gcry_control=yes
24190 ac_cv_lib_gnutls_gcry_control=no
24192 rm -f core conftest.err conftest.$ac_objext \
24193 conftest$ac_exeext conftest.$ac_ext
24194 LIBS=$ac_check_lib_save_LIBS
24196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
24197 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
24198 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
24199 USE_GNUTLS_NETTLE=0
24203 # If not, try linking directly to both of them to see if they are available
24204 if test "$USE_GNUTLS_NETTLE" = ""; then
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
24206 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
24207 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
24208 $as_echo_n "(cached) " >&6
24210 ac_check_lib_save_LIBS=$LIBS
24211 LIBS="-lnettle $LIBS"
24212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24213 /* end confdefs.h. */
24219 char nettle_MD5Init ();
24222 return nettle_MD5Init ();
24227 if ac_fn_c_try_link "$LINENO"; then :
24228 ac_cv_lib_nettle_nettle_MD5Init=yes
24230 ac_cv_lib_nettle_nettle_MD5Init=no
24232 rm -f core conftest.err conftest.$ac_objext \
24233 conftest$ac_exeext conftest.$ac_ext
24234 LIBS=$ac_check_lib_save_LIBS
24236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
24237 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
24238 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
24239 USE_GNUTLS_NETTLE=1
24243 if test "$USE_GNUTLS_NETTLE" = ""; then
24244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
24245 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
24246 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
24247 $as_echo_n "(cached) " >&6
24249 ac_check_lib_save_LIBS=$LIBS
24250 LIBS="-lgcrypt $LIBS"
24251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24252 /* end confdefs.h. */
24258 char gcry_control ();
24261 return gcry_control ();
24266 if ac_fn_c_try_link "$LINENO"; then :
24267 ac_cv_lib_gcrypt_gcry_control=yes
24269 ac_cv_lib_gcrypt_gcry_control=no
24271 rm -f core conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
24273 LIBS=$ac_check_lib_save_LIBS
24275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
24276 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
24277 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
24278 USE_GNUTLS_NETTLE=0
24282 if test "$USE_GNUTLS_NETTLE" = ""; then
24283 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
24285 if test "$USE_GNUTLS_NETTLE" = "1"; then
24287 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
24289 USE_GNUTLS_NETTLE=1
24291 LIBS="-lnettle $LIBS"
24293 LIBS="-lgcrypt $LIBS"
24297 if test "$GNUTLS_ENABLED" = "1"; then
24298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
24299 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
24300 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
24301 $as_echo_n "(cached) " >&6
24303 ac_check_lib_save_LIBS=$LIBS
24304 LIBS="-lgnutls $LIBS"
24305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24306 /* end confdefs.h. */
24312 char gnutls_srp_verifier ();
24315 return gnutls_srp_verifier ();
24320 if ac_fn_c_try_link "$LINENO"; then :
24321 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
24323 ac_cv_lib_gnutls_gnutls_srp_verifier=no
24325 rm -f core conftest.err conftest.$ac_objext \
24326 conftest$ac_exeext conftest.$ac_ext
24327 LIBS=$ac_check_lib_save_LIBS
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
24330 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
24331 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
24334 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
24346 _cppflags=$CPPFLAGS
24349 # Check whether --with-polarssl was given.
24350 if test "${with_polarssl+set}" = set; then :
24351 withval=$with_polarssl; OPT_POLARSSL=$withval
24355 if test -z "$ssl_backends" -o "x$OPT_POLARSSL" != xno; then
24358 if test X"$OPT_POLARSSL" != Xno; then
24360 if test "$OPT_POLARSSL" = "yes"; then
24364 if test -z "$OPT_POLARSSL" ; then
24366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
24367 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
24368 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
24369 $as_echo_n "(cached) " >&6
24371 ac_check_lib_save_LIBS=$LIBS
24372 LIBS="-lpolarssl $LIBS"
24373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24374 /* end confdefs.h. */
24380 char havege_init ();
24383 return havege_init ();
24388 if ac_fn_c_try_link "$LINENO"; then :
24389 ac_cv_lib_polarssl_havege_init=yes
24391 ac_cv_lib_polarssl_havege_init=no
24393 rm -f core conftest.err conftest.$ac_objext \
24394 conftest$ac_exeext conftest.$ac_ext
24395 LIBS=$ac_check_lib_save_LIBS
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
24398 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
24399 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
24402 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24409 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24420 if test "x$USE_POLARSSL" != "xyes"; then
24421 addld=-L$OPT_POLARSSL/lib$libsuff
24422 addcflags=-I$OPT_POLARSSL/include
24423 polarssllib=$OPT_POLARSSL/lib$libsuff
24425 LDFLAGS="$LDFLAGS $addld"
24426 if test "$addcflags" != "-I/usr/include"; then
24427 CPPFLAGS="$CPPFLAGS $addcflags"
24430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
24431 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
24432 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
24433 $as_echo_n "(cached) " >&6
24435 ac_check_lib_save_LIBS=$LIBS
24436 LIBS="-lpolarssl $LIBS"
24437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24438 /* end confdefs.h. */
24447 return ssl_init ();
24452 if ac_fn_c_try_link "$LINENO"; then :
24453 ac_cv_lib_polarssl_ssl_init=yes
24455 ac_cv_lib_polarssl_ssl_init=no
24457 rm -f core conftest.err conftest.$ac_objext \
24458 conftest$ac_exeext conftest.$ac_ext
24459 LIBS=$ac_check_lib_save_LIBS
24461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
24462 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
24463 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
24466 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
24473 test polarssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24477 CPPFLAGS=$_cppflags
24484 if test "x$USE_POLARSSL" = "xyes"; then
24485 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
24486 $as_echo "$as_me: detected PolarSSL" >&6;}
24488 LIBS="-lpolarssl $LIBS"
24490 if test -n "$polarssllib"; then
24491 if test "x$cross_compiling" != "xyes"; then
24492 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
24493 export LD_LIBRARY_PATH
24494 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
24495 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
24501 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24507 _cppflags=$CPPFLAGS
24510 # Check whether --with-mbedtls was given.
24511 if test "${with_mbedtls+set}" = set; then :
24512 withval=$with_mbedtls; OPT_MBEDTLS=$withval
24516 if test -z "$ssl_backends" -o "x$OPT_MBEDTLS" != xno; then
24519 if test X"$OPT_MBEDTLS" != Xno; then
24521 if test "$OPT_MBEDTLS" = "yes"; then
24525 if test -z "$OPT_MBEDTLS" ; then
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
24528 $as_echo_n "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
24529 if ${ac_cv_lib_mbedtls_mbedtls_havege_init+:} false; then :
24530 $as_echo_n "(cached) " >&6
24532 ac_check_lib_save_LIBS=$LIBS
24533 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24535 /* end confdefs.h. */
24541 char mbedtls_havege_init ();
24544 return mbedtls_havege_init ();
24549 if ac_fn_c_try_link "$LINENO"; then :
24550 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
24552 ac_cv_lib_mbedtls_mbedtls_havege_init=no
24554 rm -f core conftest.err conftest.$ac_objext \
24555 conftest$ac_exeext conftest.$ac_ext
24556 LIBS=$ac_check_lib_save_LIBS
24558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
24559 $as_echo "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
24560 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes; then :
24563 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24570 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24581 if test "x$USE_MBEDTLS" != "xyes"; then
24582 addld=-L$OPT_MBEDTLS/lib$libsuff
24583 addcflags=-I$OPT_MBEDTLS/include
24584 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
24586 LDFLAGS="$LDFLAGS $addld"
24587 if test "$addcflags" != "-I/usr/include"; then
24588 CPPFLAGS="$CPPFLAGS $addcflags"
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
24592 $as_echo_n "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
24593 if ${ac_cv_lib_mbedtls_mbedtls_ssl_init+:} false; then :
24594 $as_echo_n "(cached) " >&6
24596 ac_check_lib_save_LIBS=$LIBS
24597 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24599 /* end confdefs.h. */
24605 char mbedtls_ssl_init ();
24608 return mbedtls_ssl_init ();
24613 if ac_fn_c_try_link "$LINENO"; then :
24614 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
24616 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
24618 rm -f core conftest.err conftest.$ac_objext \
24619 conftest$ac_exeext conftest.$ac_ext
24620 LIBS=$ac_check_lib_save_LIBS
24622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
24623 $as_echo "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
24624 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes; then :
24627 $as_echo "#define USE_MBEDTLS 1" >>confdefs.h
24634 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24638 CPPFLAGS=$_cppflags
24645 if test "x$USE_MBEDTLS" = "xyes"; then
24646 { $as_echo "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
24647 $as_echo "$as_me: detected mbedTLS" >&6;}
24649 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
24651 if test -n "$mbedtlslib"; then
24652 if test "x$cross_compiling" != "xyes"; then
24653 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$mbedtlslib"
24654 export LD_LIBRARY_PATH
24655 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to LD_LIBRARY_PATH" >&5
24656 $as_echo "$as_me: Added $mbedtlslib to LD_LIBRARY_PATH" >&6;}
24662 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24668 _cppflags=$CPPFLAGS
24671 # Check whether --with-cyassl was given.
24672 if test "${with_cyassl+set}" = set; then :
24673 withval=$with_cyassl; OPT_CYASSL=$withval
24677 if test -z "$ssl_backends" -o "x$OPT_CYASSL" != xno; then
24680 if test X"$OPT_CYASSL" != Xno; then
24682 if test "$OPT_CYASSL" = "yes"; then
24687 cyassllibname=cyassl
24689 if test -z "$OPT_CYASSL" ; then
24691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24692 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24693 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24694 $as_echo_n "(cached) " >&6
24696 ac_check_lib_save_LIBS=$LIBS
24697 LIBS="-lcyassl $LIBS"
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699 /* end confdefs.h. */
24705 char CyaSSL_Init ();
24708 return CyaSSL_Init ();
24713 if ac_fn_c_try_link "$LINENO"; then :
24714 ac_cv_lib_cyassl_CyaSSL_Init=yes
24716 ac_cv_lib_cyassl_CyaSSL_Init=no
24718 rm -f core conftest.err conftest.$ac_objext \
24719 conftest$ac_exeext conftest.$ac_ext
24720 LIBS=$ac_check_lib_save_LIBS
24722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24723 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24724 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24727 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24734 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24745 if test "x$USE_CYASSL" != "xyes"; then
24746 addld=-L$OPT_CYASSL/lib$libsuff
24747 addcflags=-I$OPT_CYASSL/include
24748 cyassllib=$OPT_CYASSL/lib$libsuff
24750 LDFLAGS="$LDFLAGS $addld"
24751 if test "$addcflags" != "-I/usr/include"; then
24752 CPPFLAGS="$CPPFLAGS $addcflags"
24755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
24756 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
24757 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
24758 $as_echo_n "(cached) " >&6
24760 ac_check_lib_save_LIBS=$LIBS
24761 LIBS="-lcyassl $LIBS"
24762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24763 /* end confdefs.h. */
24769 char CyaSSL_Init ();
24772 return CyaSSL_Init ();
24777 if ac_fn_c_try_link "$LINENO"; then :
24778 ac_cv_lib_cyassl_CyaSSL_Init=yes
24780 ac_cv_lib_cyassl_CyaSSL_Init=no
24782 rm -f core conftest.err conftest.$ac_objext \
24783 conftest$ac_exeext conftest.$ac_ext
24784 LIBS=$ac_check_lib_save_LIBS
24786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
24787 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
24788 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
24791 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24798 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24802 CPPFLAGS=$_cppflags
24814 if test "x$USE_CYASSL" != "xyes"; then
24815 addld=-L$OPT_CYASSL/lib$libsuff
24816 addcflags=-I$OPT_CYASSL/include
24817 cyassllib=$OPT_CYASSL/lib$libsuff
24819 LDFLAGS="$LDFLAGS $addld"
24820 if test "$addcflags" != "-I/usr/include"; then
24821 CPPFLAGS="$CPPFLAGS $addcflags"
24824 cyassllibname=wolfssl
24825 my_ac_save_LIBS="$LIBS"
24826 LIBS="-l$cyassllibname -lm $LIBS"
24828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lwolfssl" >&5
24829 $as_echo_n "checking for CyaSSL_Init in -lwolfssl... " >&6; }
24830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24831 /* end confdefs.h. */
24834 /* These aren't needed for detection and confuse WolfSSL.
24835 They are set up properly later if it is detected. */
24837 #undef SIZEOF_LONG_LONG
24838 #include <cyassl/ssl.h>
24843 return CyaSSL_Init();
24850 if ac_fn_c_try_link "$LINENO"; then :
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24853 $as_echo "yes" >&6; }
24855 $as_echo "#define USE_CYASSL 1" >>confdefs.h
24862 test cyassl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
24866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24867 $as_echo "no" >&6; }
24868 CPPFLAGS=$_cppflags
24873 rm -f core conftest.err conftest.$ac_objext \
24874 conftest$ac_exeext conftest.$ac_ext
24875 LIBS="$my_ac_save_LIBS"
24878 if test "x$USE_CYASSL" = "xyes"; then
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: detected $cyassllibname" >&5
24880 $as_echo "$as_me: detected $cyassllibname" >&6;}
24882 # The cast to long int works around a bug in the HP C Compiler
24883 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24884 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24885 # This bug is HP SR number 8606223364.
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
24887 $as_echo_n "checking size of long long... " >&6; }
24888 if ${ac_cv_sizeof_long_long+:} false; then :
24889 $as_echo_n "(cached) " >&6
24891 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
24894 if test "$ac_cv_type_long_long" = yes; then
24895 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24896 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
24897 as_fn_error 77 "cannot compute sizeof (long long)
24898 See \`config.log' for more details" "$LINENO" 5; }
24900 ac_cv_sizeof_long_long=0
24905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
24906 $as_echo "$ac_cv_sizeof_long_long" >&6; }
24910 cat >>confdefs.h <<_ACEOF
24911 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
24916 for ac_header in cyassl/options.h
24918 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/options.h" "ac_cv_header_cyassl_options_h" "$ac_includes_default"
24919 if test "x$ac_cv_header_cyassl_options_h" = xyes; then :
24920 cat >>confdefs.h <<_ACEOF
24921 #define HAVE_CYASSL_OPTIONS_H 1
24929 for ac_header in cyassl/error-ssl.h
24931 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
24932 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
24933 cat >>confdefs.h <<_ACEOF
24934 #define HAVE_CYASSL_ERROR_SSL_H 1
24942 LIBS="-l$cyassllibname -lm $LIBS"
24944 if test "x$cyassllibname" = "xwolfssl"; then
24945 for ac_func in wolfSSLv3_client_method \
24946 wolfSSL_CTX_UseSupportedCurve \
24947 wolfSSL_get_peer_certificate \
24950 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24951 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24952 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24953 cat >>confdefs.h <<_ACEOF
24954 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24961 for ac_func in CyaSSL_CTX_UseSupportedCurve \
24962 CyaSSL_get_peer_certificate
24964 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24965 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24966 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24967 cat >>confdefs.h <<_ACEOF
24968 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24976 if test -n "$cyassllib"; then
24977 if test "x$cross_compiling" != "xyes"; then
24978 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
24979 export LD_LIBRARY_PATH
24980 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
24981 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
24988 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
24995 # Check whether --with-nss was given.
24996 if test "${with_nss+set}" = set; then :
24997 withval=$with_nss; OPT_NSS=$withval
25001 if test -z "$ssl_backends" -o "x$OPT_NSS" != xno; then
25004 if test X"$OPT_NSS" != Xno; then
25012 if test "x$OPT_NSS" = "xyes"; then
25015 if test -n "$PKG_CONFIG"; then
25016 PKGCONFIG="$PKG_CONFIG"
25018 if test -n "$ac_tool_prefix"; then
25019 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25020 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25022 $as_echo_n "checking for $ac_word... " >&6; }
25023 if ${ac_cv_path_PKGCONFIG+:} false; then :
25024 $as_echo_n "(cached) " >&6
25028 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25032 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25033 for as_dir in $as_dummy
25036 test -z "$as_dir" && as_dir=.
25037 for ac_exec_ext in '' $ac_executable_extensions; do
25038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25039 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25050 PKGCONFIG=$ac_cv_path_PKGCONFIG
25051 if test -n "$PKGCONFIG"; then
25052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25053 $as_echo "$PKGCONFIG" >&6; }
25055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25056 $as_echo "no" >&6; }
25061 if test -z "$ac_cv_path_PKGCONFIG"; then
25062 ac_pt_PKGCONFIG=$PKGCONFIG
25063 # Extract the first word of "pkg-config", so it can be a program name with args.
25064 set dummy pkg-config; ac_word=$2
25065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25066 $as_echo_n "checking for $ac_word... " >&6; }
25067 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25068 $as_echo_n "(cached) " >&6
25070 case $ac_pt_PKGCONFIG in
25072 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25076 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25077 for as_dir in $as_dummy
25080 test -z "$as_dir" && as_dir=.
25081 for ac_exec_ext in '' $ac_executable_extensions; do
25082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25083 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25094 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25095 if test -n "$ac_pt_PKGCONFIG"; then
25096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25097 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25100 $as_echo "no" >&6; }
25103 if test "x$ac_pt_PKGCONFIG" = x; then
25106 case $cross_compiling:$ac_tool_warned in
25108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25110 ac_tool_warned=yes ;;
25112 PKGCONFIG=$ac_pt_PKGCONFIG
25115 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25120 if test "x$PKGCONFIG" != "xno"; then
25121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25122 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25124 if test -n ""; then
25125 PKG_CONFIG_LIBDIR=""
25126 export PKG_CONFIG_LIBDIR
25128 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25130 if test -z "$itexists"; then
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25133 $as_echo "no" >&6; }
25135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25136 $as_echo "found" >&6; }
25141 if test "$PKGCONFIG" != "no" ; then
25142 addlib=`$PKGCONFIG --libs nss`
25143 addcflags=`$PKGCONFIG --cflags nss`
25144 version=`$PKGCONFIG --modversion nss`
25145 nssprefix=`$PKGCONFIG --variable=prefix nss`
25148 check=`nss-config --version 2>/dev/null`
25149 if test -n "$check"; then
25150 addlib=`nss-config --libs`
25151 addcflags=`nss-config --cflags`
25152 version=`nss-config --version`
25153 nssprefix=`nss-config --prefix`
25161 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
25162 if test -f "$NSS_PCDIR/nss.pc"; then
25164 if test -n "$PKG_CONFIG"; then
25165 PKGCONFIG="$PKG_CONFIG"
25167 if test -n "$ac_tool_prefix"; then
25168 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25169 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171 $as_echo_n "checking for $ac_word... " >&6; }
25172 if ${ac_cv_path_PKGCONFIG+:} false; then :
25173 $as_echo_n "(cached) " >&6
25177 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25181 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25182 for as_dir in $as_dummy
25185 test -z "$as_dir" && as_dir=.
25186 for ac_exec_ext in '' $ac_executable_extensions; do
25187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25188 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25199 PKGCONFIG=$ac_cv_path_PKGCONFIG
25200 if test -n "$PKGCONFIG"; then
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25202 $as_echo "$PKGCONFIG" >&6; }
25204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25205 $as_echo "no" >&6; }
25210 if test -z "$ac_cv_path_PKGCONFIG"; then
25211 ac_pt_PKGCONFIG=$PKGCONFIG
25212 # Extract the first word of "pkg-config", so it can be a program name with args.
25213 set dummy pkg-config; ac_word=$2
25214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25215 $as_echo_n "checking for $ac_word... " >&6; }
25216 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25217 $as_echo_n "(cached) " >&6
25219 case $ac_pt_PKGCONFIG in
25221 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25225 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25226 for as_dir in $as_dummy
25229 test -z "$as_dir" && as_dir=.
25230 for ac_exec_ext in '' $ac_executable_extensions; do
25231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25232 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25243 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25244 if test -n "$ac_pt_PKGCONFIG"; then
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25246 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25249 $as_echo "no" >&6; }
25252 if test "x$ac_pt_PKGCONFIG" = x; then
25255 case $cross_compiling:$ac_tool_warned in
25257 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25258 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25259 ac_tool_warned=yes ;;
25261 PKGCONFIG=$ac_pt_PKGCONFIG
25264 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25269 if test "x$PKGCONFIG" != "xno"; then
25270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
25271 $as_echo_n "checking for nss options with pkg-config... " >&6; }
25273 if test -n "$NSS_PCDIR"; then
25274 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25275 export PKG_CONFIG_LIBDIR
25277 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
25279 if test -z "$itexists"; then
25281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25282 $as_echo "no" >&6; }
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25285 $as_echo "found" >&6; }
25289 if test "$PKGCONFIG" != "no" ; then
25291 if test -n "$NSS_PCDIR"; then
25292 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25293 export PKG_CONFIG_LIBDIR
25295 $PKGCONFIG --libs-only-L nss`
25297 if test -n "$NSS_PCDIR"; then
25298 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25299 export PKG_CONFIG_LIBDIR
25301 $PKGCONFIG --libs-only-l nss`
25303 if test -n "$NSS_PCDIR"; then
25304 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25305 export PKG_CONFIG_LIBDIR
25307 $PKGCONFIG --cflags nss`
25309 if test -n "$NSS_PCDIR"; then
25310 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25311 export PKG_CONFIG_LIBDIR
25313 $PKGCONFIG --modversion nss`
25315 if test -n "$NSS_PCDIR"; then
25316 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
25317 export PKG_CONFIG_LIBDIR
25319 $PKGCONFIG --variable=prefix nss`
25324 if test -z "$addlib"; then
25325 # Without pkg-config, we'll kludge in some defaults
25326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
25327 $as_echo "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
25328 addld="-L$OPT_NSS/lib"
25329 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
25330 addcflags="-I$OPT_NSS/include"
25335 CLEANLDFLAGS="$LDFLAGS"
25337 CLEANCPPFLAGS="$CPPFLAGS"
25339 LDFLAGS="$addld $LDFLAGS"
25340 LIBS="$addlib $LIBS"
25341 if test "$addcflags" != "-I/usr/include"; then
25342 CPPFLAGS="$CPPFLAGS $addcflags"
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
25346 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
25347 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
25348 $as_echo_n "(cached) " >&6
25350 ac_check_lib_save_LIBS=$LIBS
25351 LIBS="-lnss3 $LIBS"
25352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25353 /* end confdefs.h. */
25359 char SSL_VersionRangeSet ();
25362 return SSL_VersionRangeSet ();
25367 if ac_fn_c_try_link "$LINENO"; then :
25368 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
25370 ac_cv_lib_nss3_SSL_VersionRangeSet=no
25372 rm -f core conftest.err conftest.$ac_objext \
25373 conftest$ac_exeext conftest.$ac_ext
25374 LIBS=$ac_check_lib_save_LIBS
25376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
25377 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
25378 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
25381 $as_echo "#define USE_NSS 1" >>confdefs.h
25388 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25392 LDFLAGS="$CLEANLDFLAGS"
25394 CPPFLAGS="$CLEANCPPFLAGS"
25399 if test "x$USE_NSS" = "xyes"; then
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
25401 $as_echo "$as_me: detected NSS version $version" >&6;}
25403 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
25404 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes; then :
25407 $as_echo "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
25416 if test "x$cross_compiling" != "xyes"; then
25417 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
25418 export LD_LIBRARY_PATH
25419 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
25420 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
25425 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25431 # Check whether --with-axtls was given.
25432 if test "${with_axtls+set}" = set; then :
25433 withval=$with_axtls; OPT_AXTLS=$withval
25437 if test -z "$ssl_backends" -o "x$OPT_AXTLS" != xno; then
25439 if test X"$OPT_AXTLS" != Xno; then
25440 CLEANLDFLAGS="$LDFLAGS"
25441 CLEANCPPFLAGS="$CPPFLAGS"
25444 case "$OPT_AXTLS" in
25446 PREFIX_AXTLS=/usr/local
25447 LIB_AXTLS="$PREFIX_AXTLS/lib"
25448 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25449 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25455 PREFIX_AXTLS=$OPT_AXTLS
25456 LIB_AXTLS="$PREFIX_AXTLS/lib"
25457 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
25458 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
25462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
25463 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
25464 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
25465 $as_echo_n "(cached) " >&6
25467 ac_check_lib_save_LIBS=$LIBS
25468 LIBS="-laxtls $LIBS"
25469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25470 /* end confdefs.h. */
25476 char ssl_version ();
25479 return ssl_version ();
25484 if ac_fn_c_try_link "$LINENO"; then :
25485 ac_cv_lib_axtls_ssl_version=yes
25487 ac_cv_lib_axtls_ssl_version=no
25489 rm -f core conftest.err conftest.$ac_objext \
25490 conftest$ac_exeext conftest.$ac_ext
25491 LIBS=$ac_check_lib_save_LIBS
25493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
25494 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
25495 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
25497 LIBS="-laxtls $LIBS"
25499 $as_echo "#define USE_AXTLS 1" >>confdefs.h
25506 test axtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25508 if test "x$cross_compiling" != "xyes"; then
25509 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
25510 export LD_LIBRARY_PATH
25511 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
25512 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
25517 LDFLAGS="$CLEANLDFLAGS"
25518 CPPFLAGS="$CLEANCPPFLAGS"
25524 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25527 case "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$MBEDTLS_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" in
25529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
25530 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
25531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
25532 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
25535 # one SSL backend is enabled
25538 { $as_echo "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
25539 $as_echo "$as_me: built with one SSL backend" >&6;}
25542 # more than one SSL backend is enabled
25546 CURL_WITH_MULTI_SSL="1"
25548 $as_echo "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
25550 { $as_echo "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
25551 $as_echo "$as_me: built with multiple SSL backends" >&6;}
25555 if test -n "$ssl_backends"; then
25556 curl_ssl_msg="enabled ($ssl_backends)"
25559 if test no = "$VALID_DEFAULT_SSL_BACKEND"
25561 if test -n "$SSL_ENABLED"
25563 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
25565 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
25567 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
25570 cat >>confdefs.h <<_ACEOF
25571 #define CURL_DEFAULT_SSL_BACKEND "$DEFAULT_SSL_BACKEND"
25579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
25580 $as_echo_n "checking default CA cert bundle/path... " >&6; }
25583 # Check whether --with-ca-bundle was given.
25584 if test "${with_ca_bundle+set}" = set; then :
25585 withval=$with_ca_bundle;
25587 if test "x$want_ca" = "xyes"; then
25588 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
25596 # Check whether --with-ca-path was given.
25597 if test "${with_ca_path+set}" = set; then :
25598 withval=$with_ca_path;
25599 want_capath="$withval"
25600 if test "x$want_capath" = "xyes"; then
25601 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
25605 want_capath="unset"
25609 ca_warning=" (warning: certs not found)"
25610 capath_warning=" (warning: certs not found)"
25613 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
25614 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25616 capath="$want_capath"
25617 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
25620 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
25621 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
25622 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or PolarSSL" "$LINENO" 5
25624 capath="$want_capath"
25629 if test "x$cross_compiling" != "xyes"; then
25630 if test "x$want_ca" = "xunset"; then
25631 if test "x$prefix" != xNONE; then
25632 cac="${prefix}/share/curl/curl-ca-bundle.crt"
25634 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
25637 for a in /etc/ssl/certs/ca-certificates.crt \
25638 /etc/pki/tls/certs/ca-bundle.crt \
25639 /usr/share/ssl/certs/ca-bundle.crt \
25640 /usr/local/share/certs/ca-root-nss.crt \
25641 /etc/ssl/cert.pem \
25643 if test -f "$a"; then
25649 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
25650 "x$OPENSSL_ENABLED" = "x1"; then
25651 check_capath="/etc/ssl/certs/"
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
25655 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
25659 if test "x$ca" = "xno" || test -f "$ca"; then
25663 if test "x$capath" != "xno"; then
25664 check_capath="$capath"
25667 if test ! -z "$check_capath"; then
25668 for a in "$check_capath"; do
25669 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
25670 if test "x$capath" = "xno"; then
25679 if test "x$capath" = "xno"; then
25683 if test "x$ca" != "xno"; then
25684 CURL_CA_BUNDLE='"'$ca'"'
25686 cat >>confdefs.h <<_ACEOF
25687 #define CURL_CA_BUNDLE "$ca"
25691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
25692 $as_echo "$ca" >&6; }
25694 if test "x$capath" != "xno"; then
25695 CURL_CA_PATH="\"$capath\""
25697 cat >>confdefs.h <<_ACEOF
25698 #define CURL_CA_PATH "$capath"
25701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
25702 $as_echo "$capath (capath)" >&6; }
25704 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
25705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25706 $as_echo "no" >&6; }
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
25710 $as_echo_n "checking whether to use builtin CA store of SSL library... " >&6; }
25712 # Check whether --with-ca-fallback was given.
25713 if test "${with_ca_fallback+set}" = set; then :
25714 withval=$with_ca_fallback;
25715 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
25716 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
25720 with_ca_fallback="no"
25723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
25724 $as_echo "$with_ca_fallback" >&6; }
25725 if test "x$with_ca_fallback" = "xyes"; then
25726 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
25727 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
25730 cat >>confdefs.h <<_ACEOF
25731 #define CURL_CA_FALLBACK 1
25739 # Check whether --with-libpsl was given.
25740 if test "${with_libpsl+set}" = set; then :
25741 withval=$with_libpsl; with_libpsl=$withval
25746 if test $with_libpsl != "no"; then
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
25748 $as_echo_n "checking for library containing psl_builtin... " >&6; }
25749 if ${ac_cv_search_psl_builtin+:} false; then :
25750 $as_echo_n "(cached) " >&6
25752 ac_func_search_save_LIBS=$LIBS
25753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25754 /* end confdefs.h. */
25760 char psl_builtin ();
25763 return psl_builtin ();
25768 for ac_lib in '' psl; do
25769 if test -z "$ac_lib"; then
25770 ac_res="none required"
25773 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25775 if ac_fn_c_try_link "$LINENO"; then :
25776 ac_cv_search_psl_builtin=$ac_res
25778 rm -f core conftest.err conftest.$ac_objext \
25780 if ${ac_cv_search_psl_builtin+:} false; then :
25784 if ${ac_cv_search_psl_builtin+:} false; then :
25787 ac_cv_search_psl_builtin=no
25789 rm conftest.$ac_ext
25790 LIBS=$ac_func_search_save_LIBS
25792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
25793 $as_echo "$ac_cv_search_psl_builtin" >&6; }
25794 ac_res=$ac_cv_search_psl_builtin
25795 if test "$ac_res" != no; then :
25796 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25797 curl_psl_msg="yes";
25799 $as_echo "#define USE_LIBPSL 1" >>confdefs.h
25803 curl_psl_msg="no (libpsl not found)";
25804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
25805 $as_echo "$as_me: WARNING: libpsl was not found" >&2;}
25811 if test "$curl_psl_msg" = "yes"; then
25813 USE_LIBPSL_FALSE='#'
25815 USE_LIBPSL_TRUE='#'
25824 # Check whether --with-libmetalink was given.
25825 if test "${with_libmetalink+set}" = set; then :
25826 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
25830 if test X"$OPT_LIBMETALINK" != Xno; then
25839 if test "x$OPT_LIBMETALINK" = "xyes"; then
25842 if test -n "$PKG_CONFIG"; then
25843 PKGCONFIG="$PKG_CONFIG"
25845 if test -n "$ac_tool_prefix"; then
25846 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25847 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25849 $as_echo_n "checking for $ac_word... " >&6; }
25850 if ${ac_cv_path_PKGCONFIG+:} false; then :
25851 $as_echo_n "(cached) " >&6
25855 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25859 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25860 for as_dir in $as_dummy
25863 test -z "$as_dir" && as_dir=.
25864 for ac_exec_ext in '' $ac_executable_extensions; do
25865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25866 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25877 PKGCONFIG=$ac_cv_path_PKGCONFIG
25878 if test -n "$PKGCONFIG"; then
25879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25880 $as_echo "$PKGCONFIG" >&6; }
25882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25883 $as_echo "no" >&6; }
25888 if test -z "$ac_cv_path_PKGCONFIG"; then
25889 ac_pt_PKGCONFIG=$PKGCONFIG
25890 # Extract the first word of "pkg-config", so it can be a program name with args.
25891 set dummy pkg-config; ac_word=$2
25892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25893 $as_echo_n "checking for $ac_word... " >&6; }
25894 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25895 $as_echo_n "(cached) " >&6
25897 case $ac_pt_PKGCONFIG in
25899 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25903 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25904 for as_dir in $as_dummy
25907 test -z "$as_dir" && as_dir=.
25908 for ac_exec_ext in '' $ac_executable_extensions; do
25909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25910 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25921 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25922 if test -n "$ac_pt_PKGCONFIG"; then
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25924 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25927 $as_echo "no" >&6; }
25930 if test "x$ac_pt_PKGCONFIG" = x; then
25933 case $cross_compiling:$ac_tool_warned in
25935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25936 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25937 ac_tool_warned=yes ;;
25939 PKGCONFIG=$ac_pt_PKGCONFIG
25942 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25947 if test "x$PKGCONFIG" != "xno"; then
25948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
25949 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
25951 if test -n ""; then
25952 PKG_CONFIG_LIBDIR=""
25953 export PKG_CONFIG_LIBDIR
25955 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
25957 if test -z "$itexists"; then
25959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25960 $as_echo "no" >&6; }
25962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25963 $as_echo "found" >&6; }
25968 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
25970 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
25971 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
25974 if test "$PKGTEST" = "yes"; then
25976 if test -n "$PKG_CONFIG"; then
25977 PKGCONFIG="$PKG_CONFIG"
25979 if test -n "$ac_tool_prefix"; then
25980 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25981 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25983 $as_echo_n "checking for $ac_word... " >&6; }
25984 if ${ac_cv_path_PKGCONFIG+:} false; then :
25985 $as_echo_n "(cached) " >&6
25989 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25993 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25994 for as_dir in $as_dummy
25997 test -z "$as_dir" && as_dir=.
25998 for ac_exec_ext in '' $ac_executable_extensions; do
25999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26000 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26011 PKGCONFIG=$ac_cv_path_PKGCONFIG
26012 if test -n "$PKGCONFIG"; then
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26014 $as_echo "$PKGCONFIG" >&6; }
26016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26017 $as_echo "no" >&6; }
26022 if test -z "$ac_cv_path_PKGCONFIG"; then
26023 ac_pt_PKGCONFIG=$PKGCONFIG
26024 # Extract the first word of "pkg-config", so it can be a program name with args.
26025 set dummy pkg-config; ac_word=$2
26026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26027 $as_echo_n "checking for $ac_word... " >&6; }
26028 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26029 $as_echo_n "(cached) " >&6
26031 case $ac_pt_PKGCONFIG in
26033 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26037 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26038 for as_dir in $as_dummy
26041 test -z "$as_dir" && as_dir=.
26042 for ac_exec_ext in '' $ac_executable_extensions; do
26043 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26044 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26055 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26056 if test -n "$ac_pt_PKGCONFIG"; then
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26058 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26061 $as_echo "no" >&6; }
26064 if test "x$ac_pt_PKGCONFIG" = x; then
26067 case $cross_compiling:$ac_tool_warned in
26069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26070 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26071 ac_tool_warned=yes ;;
26073 PKGCONFIG=$ac_pt_PKGCONFIG
26076 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26081 if test "x$PKGCONFIG" != "xno"; then
26082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
26083 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
26085 if test -n "$LIBMETALINK_PCDIR"; then
26086 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26087 export PKG_CONFIG_LIBDIR
26089 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
26091 if test -z "$itexists"; then
26093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26094 $as_echo "no" >&6; }
26096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26097 $as_echo "found" >&6; }
26103 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
26105 if test -n "$LIBMETALINK_PCDIR"; then
26106 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26107 export PKG_CONFIG_LIBDIR
26109 $PKGCONFIG --libs-only-l libmetalink`
26111 if test -n "$LIBMETALINK_PCDIR"; then
26112 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26113 export PKG_CONFIG_LIBDIR
26115 $PKGCONFIG --libs-only-L libmetalink`
26117 if test -n "$LIBMETALINK_PCDIR"; then
26118 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26119 export PKG_CONFIG_LIBDIR
26121 $PKGCONFIG --cflags-only-I libmetalink`
26123 if test -n "$LIBMETALINK_PCDIR"; then
26124 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
26125 export PKG_CONFIG_LIBDIR
26127 $PKGCONFIG --modversion libmetalink`
26128 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
26130 if test -n "$addlib"; then
26132 clean_CPPFLAGS="$CPPFLAGS"
26133 clean_LDFLAGS="$LDFLAGS"
26135 CPPFLAGS="$clean_CPPFLAGS $addcflags"
26136 LDFLAGS="$clean_LDFLAGS $addld"
26137 LIBS="$addlib $clean_LIBS"
26138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
26139 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
26140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26141 /* end confdefs.h. */
26144 # include <metalink/metalink.h>
26149 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
26157 if ac_fn_c_try_link "$LINENO"; then :
26159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
26160 $as_echo "yes ($version)" >&6; }
26161 want_metalink="yes"
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
26166 $as_echo "no ($version)" >&6; }
26167 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
26168 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
26172 rm -f core conftest.err conftest.$ac_objext \
26173 conftest$ac_exeext conftest.$ac_ext
26174 CPPFLAGS="$clean_CPPFLAGS"
26175 LDFLAGS="$clean_LDFLAGS"
26177 if test "$want_metalink" = "yes"; then
26179 $as_echo "#define USE_METALINK 1" >>confdefs.h
26181 LIBMETALINK_LIBS=$addlib
26182 LIBMETALINK_LDFLAGS=$addld
26183 LIBMETALINK_CPPFLAGS=$addcflags
26187 curl_mtlnk_msg="enabled"
26196 # Check whether --with-libssh2 was given.
26197 if test "${with_libssh2+set}" = set; then :
26198 withval=$with_libssh2; OPT_LIBSSH2=$withval
26207 # Check whether --with-libssh was given.
26208 if test "${with_libssh+set}" = set; then :
26209 withval=$with_libssh; OPT_LIBSSH=$withval
26215 if test X"$OPT_LIBSSH2" != Xno; then
26216 CLEANLDFLAGS="$LDFLAGS"
26217 CLEANCPPFLAGS="$CPPFLAGS"
26220 case "$OPT_LIBSSH2" in
26223 if test -n "$PKG_CONFIG"; then
26224 PKGCONFIG="$PKG_CONFIG"
26226 if test -n "$ac_tool_prefix"; then
26227 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26228 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26230 $as_echo_n "checking for $ac_word... " >&6; }
26231 if ${ac_cv_path_PKGCONFIG+:} false; then :
26232 $as_echo_n "(cached) " >&6
26236 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26240 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26241 for as_dir in $as_dummy
26244 test -z "$as_dir" && as_dir=.
26245 for ac_exec_ext in '' $ac_executable_extensions; do
26246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26247 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26258 PKGCONFIG=$ac_cv_path_PKGCONFIG
26259 if test -n "$PKGCONFIG"; then
26260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26261 $as_echo "$PKGCONFIG" >&6; }
26263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26264 $as_echo "no" >&6; }
26269 if test -z "$ac_cv_path_PKGCONFIG"; then
26270 ac_pt_PKGCONFIG=$PKGCONFIG
26271 # Extract the first word of "pkg-config", so it can be a program name with args.
26272 set dummy pkg-config; ac_word=$2
26273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26274 $as_echo_n "checking for $ac_word... " >&6; }
26275 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26276 $as_echo_n "(cached) " >&6
26278 case $ac_pt_PKGCONFIG in
26280 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26284 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26285 for as_dir in $as_dummy
26288 test -z "$as_dir" && as_dir=.
26289 for ac_exec_ext in '' $ac_executable_extensions; do
26290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26291 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26302 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26303 if test -n "$ac_pt_PKGCONFIG"; then
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26305 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26308 $as_echo "no" >&6; }
26311 if test "x$ac_pt_PKGCONFIG" = x; then
26314 case $cross_compiling:$ac_tool_warned in
26316 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26317 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26318 ac_tool_warned=yes ;;
26320 PKGCONFIG=$ac_pt_PKGCONFIG
26323 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26328 if test "x$PKGCONFIG" != "xno"; then
26329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
26330 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
26332 if test -n ""; then
26333 PKG_CONFIG_LIBDIR=""
26334 export PKG_CONFIG_LIBDIR
26336 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
26338 if test -z "$itexists"; then
26340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26341 $as_echo "no" >&6; }
26343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26344 $as_echo "found" >&6; }
26349 if test "$PKGCONFIG" != "no" ; then
26350 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
26351 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
26352 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
26353 version=`$PKGCONFIG --modversion libssh2`
26354 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
26361 PREFIX_SSH2=$OPT_LIBSSH2
26365 if test -n "$PREFIX_SSH2"; then
26367 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
26368 CPP_SSH2=-I${PREFIX_SSH2}/include
26369 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
26372 LDFLAGS="$LDFLAGS $LD_SSH2"
26373 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
26374 LIBS="$LIB_SSH2 $LIBS"
26376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
26377 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
26378 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
26379 $as_echo_n "(cached) " >&6
26381 ac_check_lib_save_LIBS=$LIBS
26382 LIBS="-lssh2 $LIBS"
26383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26384 /* end confdefs.h. */
26390 char libssh2_channel_open_ex ();
26393 return libssh2_channel_open_ex ();
26398 if ac_fn_c_try_link "$LINENO"; then :
26399 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
26401 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
26403 rm -f core conftest.err conftest.$ac_objext \
26404 conftest$ac_exeext conftest.$ac_ext
26405 LIBS=$ac_check_lib_save_LIBS
26407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
26408 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
26409 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
26410 cat >>confdefs.h <<_ACEOF
26411 #define HAVE_LIBSSH2 1
26414 LIBS="-lssh2 $LIBS"
26419 for ac_header in libssh2.h
26421 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
26422 if test "x$ac_cv_header_libssh2_h" = xyes; then :
26423 cat >>confdefs.h <<_ACEOF
26424 #define HAVE_LIBSSH2_H 1
26426 curl_ssh_msg="enabled (libSSH2)"
26429 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
26439 if test X"$OPT_LIBSSH2" != Xoff &&
26440 test "$LIBSSH2_ENABLED" != "1"; then
26441 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
26444 if test "$LIBSSH2_ENABLED" = "1"; then
26445 if test -n "$DIR_SSH2"; then
26447 if test "x$cross_compiling" != "xyes"; then
26448 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
26449 export LD_LIBRARY_PATH
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
26451 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
26455 LDFLAGS=$CLEANLDFLAGS
26456 CPPFLAGS=$CLEANCPPFLAGS
26459 elif test X"$OPT_LIBSSH" != Xno; then
26460 CLEANLDFLAGS="$LDFLAGS"
26461 CLEANCPPFLAGS="$CPPFLAGS"
26464 case "$OPT_LIBSSH" in
26467 if test -n "$PKG_CONFIG"; then
26468 PKGCONFIG="$PKG_CONFIG"
26470 if test -n "$ac_tool_prefix"; then
26471 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26472 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26474 $as_echo_n "checking for $ac_word... " >&6; }
26475 if ${ac_cv_path_PKGCONFIG+:} false; then :
26476 $as_echo_n "(cached) " >&6
26480 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26484 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26485 for as_dir in $as_dummy
26488 test -z "$as_dir" && as_dir=.
26489 for ac_exec_ext in '' $ac_executable_extensions; do
26490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26491 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26502 PKGCONFIG=$ac_cv_path_PKGCONFIG
26503 if test -n "$PKGCONFIG"; then
26504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26505 $as_echo "$PKGCONFIG" >&6; }
26507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26508 $as_echo "no" >&6; }
26513 if test -z "$ac_cv_path_PKGCONFIG"; then
26514 ac_pt_PKGCONFIG=$PKGCONFIG
26515 # Extract the first word of "pkg-config", so it can be a program name with args.
26516 set dummy pkg-config; ac_word=$2
26517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26518 $as_echo_n "checking for $ac_word... " >&6; }
26519 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26520 $as_echo_n "(cached) " >&6
26522 case $ac_pt_PKGCONFIG in
26524 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26528 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26529 for as_dir in $as_dummy
26532 test -z "$as_dir" && as_dir=.
26533 for ac_exec_ext in '' $ac_executable_extensions; do
26534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26535 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26546 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26547 if test -n "$ac_pt_PKGCONFIG"; then
26548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26549 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26552 $as_echo "no" >&6; }
26555 if test "x$ac_pt_PKGCONFIG" = x; then
26558 case $cross_compiling:$ac_tool_warned in
26560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26562 ac_tool_warned=yes ;;
26564 PKGCONFIG=$ac_pt_PKGCONFIG
26567 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26572 if test "x$PKGCONFIG" != "xno"; then
26573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
26574 $as_echo_n "checking for libssh options with pkg-config... " >&6; }
26576 if test -n ""; then
26577 PKG_CONFIG_LIBDIR=""
26578 export PKG_CONFIG_LIBDIR
26580 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
26582 if test -z "$itexists"; then
26584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26585 $as_echo "no" >&6; }
26587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26588 $as_echo "found" >&6; }
26593 if test "$PKGCONFIG" != "no" ; then
26594 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
26595 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
26596 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
26597 version=`$PKGCONFIG --modversion libssh`
26598 DIR_SSH=`echo $LD_SSH | $SED -e 's/-L//'`
26605 PREFIX_SSH=$OPT_LIBSSH
26609 if test -n "$PREFIX_SSH"; then
26611 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
26612 CPP_SSH=-I${PREFIX_SSH}/include
26613 DIR_SSH=${PREFIX_SSH}/lib$libsuff
26616 LDFLAGS="$LDFLAGS $LD_SSH"
26617 CPPFLAGS="$CPPFLAGS $CPP_SSH"
26618 LIBS="$LIB_SSH $LIBS"
26620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
26621 $as_echo_n "checking for ssh_new in -lssh... " >&6; }
26622 if ${ac_cv_lib_ssh_ssh_new+:} false; then :
26623 $as_echo_n "(cached) " >&6
26625 ac_check_lib_save_LIBS=$LIBS
26627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26628 /* end confdefs.h. */
26642 if ac_fn_c_try_link "$LINENO"; then :
26643 ac_cv_lib_ssh_ssh_new=yes
26645 ac_cv_lib_ssh_ssh_new=no
26647 rm -f core conftest.err conftest.$ac_objext \
26648 conftest$ac_exeext conftest.$ac_ext
26649 LIBS=$ac_check_lib_save_LIBS
26651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
26652 $as_echo "$ac_cv_lib_ssh_ssh_new" >&6; }
26653 if test "x$ac_cv_lib_ssh_ssh_new" = xyes; then :
26654 cat >>confdefs.h <<_ACEOF
26655 #define HAVE_LIBSSH 1
26663 for ac_header in libssh/libssh.h
26665 ac_fn_c_check_header_mongrel "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
26666 if test "x$ac_cv_header_libssh_libssh_h" = xyes; then :
26667 cat >>confdefs.h <<_ACEOF
26668 #define HAVE_LIBSSH_LIBSSH_H 1
26670 curl_ssh_msg="enabled (libSSH)"
26673 $as_echo "#define USE_LIBSSH 1" >>confdefs.h
26683 if test X"$OPT_LIBSSH" != Xoff &&
26684 test "$LIBSSH_ENABLED" != "1"; then
26685 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
26688 if test "$LIBSSH_ENABLED" = "1"; then
26689 if test -n "$DIR_SSH"; then
26691 if test "x$cross_compiling" != "xyes"; then
26692 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH"
26693 export LD_LIBRARY_PATH
26694 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to LD_LIBRARY_PATH" >&5
26695 $as_echo "$as_me: Added $DIR_SSH to LD_LIBRARY_PATH" >&6;}
26699 LDFLAGS=$CLEANLDFLAGS
26700 CPPFLAGS=$CLEANCPPFLAGS
26708 # Check whether --with-librtmp was given.
26709 if test "${with_librtmp+set}" = set; then :
26710 withval=$with_librtmp; OPT_LIBRTMP=$withval
26714 if test X"$OPT_LIBRTMP" != Xno; then
26715 CLEANLDFLAGS="$LDFLAGS"
26716 CLEANCPPFLAGS="$CPPFLAGS"
26719 case "$OPT_LIBRTMP" in
26722 if test -n "$PKG_CONFIG"; then
26723 PKGCONFIG="$PKG_CONFIG"
26725 if test -n "$ac_tool_prefix"; then
26726 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26727 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26729 $as_echo_n "checking for $ac_word... " >&6; }
26730 if ${ac_cv_path_PKGCONFIG+:} false; then :
26731 $as_echo_n "(cached) " >&6
26735 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26739 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26740 for as_dir in $as_dummy
26743 test -z "$as_dir" && as_dir=.
26744 for ac_exec_ext in '' $ac_executable_extensions; do
26745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26746 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26757 PKGCONFIG=$ac_cv_path_PKGCONFIG
26758 if test -n "$PKGCONFIG"; then
26759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26760 $as_echo "$PKGCONFIG" >&6; }
26762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26763 $as_echo "no" >&6; }
26768 if test -z "$ac_cv_path_PKGCONFIG"; then
26769 ac_pt_PKGCONFIG=$PKGCONFIG
26770 # Extract the first word of "pkg-config", so it can be a program name with args.
26771 set dummy pkg-config; ac_word=$2
26772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26773 $as_echo_n "checking for $ac_word... " >&6; }
26774 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
26775 $as_echo_n "(cached) " >&6
26777 case $ac_pt_PKGCONFIG in
26779 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26783 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26784 for as_dir in $as_dummy
26787 test -z "$as_dir" && as_dir=.
26788 for ac_exec_ext in '' $ac_executable_extensions; do
26789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26790 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
26791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
26801 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26802 if test -n "$ac_pt_PKGCONFIG"; then
26803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26804 $as_echo "$ac_pt_PKGCONFIG" >&6; }
26806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26807 $as_echo "no" >&6; }
26810 if test "x$ac_pt_PKGCONFIG" = x; then
26813 case $cross_compiling:$ac_tool_warned in
26815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26816 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26817 ac_tool_warned=yes ;;
26819 PKGCONFIG=$ac_pt_PKGCONFIG
26822 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26827 if test "x$PKGCONFIG" != "xno"; then
26828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
26829 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
26831 if test -n ""; then
26832 PKG_CONFIG_LIBDIR=""
26833 export PKG_CONFIG_LIBDIR
26835 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
26837 if test -z "$itexists"; then
26839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26840 $as_echo "no" >&6; }
26842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
26843 $as_echo "found" >&6; }
26848 if test "$PKGCONFIG" != "no" ; then
26849 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
26850 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
26851 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
26852 version=`$PKGCONFIG --modversion librtmp`
26853 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
26855 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
26864 PREFIX_RTMP=$OPT_LIBRTMP
26868 if test -n "$PREFIX_RTMP"; then
26869 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
26870 CPP_RTMP=-I${PREFIX_RTMP}/include
26871 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
26874 LDFLAGS="$LDFLAGS $LD_RTMP"
26875 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
26876 LIBS="$LIB_RTMP $LIBS"
26878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
26879 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
26880 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
26881 $as_echo_n "(cached) " >&6
26883 ac_check_lib_save_LIBS=$LIBS
26884 LIBS="-lrtmp $LIBS"
26885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26886 /* end confdefs.h. */
26895 return RTMP_Init ();
26900 if ac_fn_c_try_link "$LINENO"; then :
26901 ac_cv_lib_rtmp_RTMP_Init=yes
26903 ac_cv_lib_rtmp_RTMP_Init=no
26905 rm -f core conftest.err conftest.$ac_objext \
26906 conftest$ac_exeext conftest.$ac_ext
26907 LIBS=$ac_check_lib_save_LIBS
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
26910 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
26911 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
26913 for ac_header in librtmp/rtmp.h
26915 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
26916 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
26917 cat >>confdefs.h <<_ACEOF
26918 #define HAVE_LIBRTMP_RTMP_H 1
26920 curl_rtmp_msg="enabled (librtmp)"
26923 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
26934 LDFLAGS=$CLEANLDFLAGS
26935 CPPFLAGS=$CLEANCPPFLAGS
26941 if test X"$OPT_LIBRTMP" != Xoff &&
26942 test "$LIBRTMP_ENABLED" != "1"; then
26943 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
26949 versioned_symbols_flavour=
26950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
26951 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
26952 # Check whether --enable-versioned-symbols was given.
26953 if test "${enable_versioned_symbols+set}" = set; then :
26954 enableval=$enable_versioned_symbols; case "$enableval" in
26955 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26956 $as_echo "yes" >&6; }
26957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
26958 $as_echo_n "checking if libraries can be versioned... " >&6; }
26959 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
26960 if test -z "$GLD"; then
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26962 $as_echo "no" >&6; }
26963 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
26964 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
26966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26967 $as_echo "yes" >&6; }
26968 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
26969 versioned_symbols_flavour="MULTISSL_"
26970 elif test "x$OPENSSL_ENABLED" = "x1"; then
26971 versioned_symbols_flavour="OPENSSL_"
26972 elif test "x$GNUTLS_ENABLED" = "x1"; then
26973 versioned_symbols_flavour="GNUTLS_"
26974 elif test "x$NSS_ENABLED" = "x1"; then
26975 versioned_symbols_flavour="NSS_"
26976 elif test "x$POLARSSL_ENABLED" = "x1"; then
26977 versioned_symbols_flavour="POLARSSL_"
26978 elif test "x$CYASSL_ENABLED" = "x1"; then
26979 versioned_symbols_flavour="CYASSL_"
26980 elif test "x$AXTLS_ENABLED" = "x1"; then
26981 versioned_symbols_flavour="AXTLS_"
26982 elif test "x$WINSSL_ENABLED" = "x1"; then
26983 versioned_symbols_flavour="WINSSL_"
26984 elif test "x$DARWINSSL_ENABLED" = "x1"; then
26985 versioned_symbols_flavour="DARWINSSL_"
26987 versioned_symbols_flavour=""
26989 versioned_symbols="yes"
26993 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26994 $as_echo "no" >&6; }
27000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27001 $as_echo "no" >&6; }
27007 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
27009 if test "x$versioned_symbols" = 'xyes'; then
27010 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
27011 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
27013 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
27014 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
27020 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
27021 OPT_WINIDN="default"
27023 # Check whether --with-winidn was given.
27024 if test "${with_winidn+set}" = set; then :
27025 withval=$with_winidn; OPT_WINIDN=$withval
27028 case "$OPT_WINIDN" in
27031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27032 $as_echo "no" >&6; }
27036 want_winidn_path="default"
27037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27038 $as_echo "yes" >&6; }
27042 want_winidn_path="$withval"
27043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27044 $as_echo "yes ($withval)" >&6; }
27048 if test "$want_winidn" = "yes"; then
27049 clean_CPPFLAGS="$CPPFLAGS"
27050 clean_LDFLAGS="$LDFLAGS"
27052 WINIDN_LIBS="-lnormaliz"
27053 WINIDN_CPPFLAGS="-DWINVER=0x0600"
27055 if test "$want_winidn_path" != "default"; then
27056 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
27057 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
27058 WINIDN_DIR="$want_winidn_path/lib$libsuff"
27061 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
27062 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
27063 LIBS="$WINIDN_LIBS $LIBS"
27065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
27066 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
27067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27068 /* end confdefs.h. */
27071 #include <windows.h>
27076 IdnToUnicode(0, NULL, 0, NULL, 0);
27083 if ac_fn_c_try_link "$LINENO"; then :
27085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27086 $as_echo "yes" >&6; }
27087 tst_links_winidn="yes"
27091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27092 $as_echo "no" >&6; }
27093 tst_links_winidn="no"
27096 rm -f core conftest.err conftest.$ac_objext \
27097 conftest$ac_exeext conftest.$ac_ext
27099 if test "$tst_links_winidn" = "yes"; then
27101 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
27104 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
27108 curl_idn_msg="enabled (Windows-native)"
27110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27111 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27112 CPPFLAGS="$clean_CPPFLAGS"
27113 LDFLAGS="$clean_LDFLAGS"
27119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
27120 $as_echo_n "checking whether to build with libidn2... " >&6; }
27123 # Check whether --with-libidn2 was given.
27124 if test "${with_libidn2+set}" = set; then :
27125 withval=$with_libidn2; OPT_IDN=$withval
27131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27132 $as_echo "no" >&6; }
27136 want_idn_path="default"
27137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
27138 $as_echo "(assumed) yes" >&6; }
27142 want_idn_path="default"
27143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27144 $as_echo "yes" >&6; }
27148 want_idn_path="$withval"
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
27150 $as_echo "yes ($withval)" >&6; }
27154 if test "$want_idn" = "yes"; then
27155 clean_CPPFLAGS="$CPPFLAGS"
27156 clean_LDFLAGS="$LDFLAGS"
27160 if test "$want_idn_path" != "default"; then
27161 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
27163 if test -n "$PKG_CONFIG"; then
27164 PKGCONFIG="$PKG_CONFIG"
27166 if test -n "$ac_tool_prefix"; then
27167 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27168 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27170 $as_echo_n "checking for $ac_word... " >&6; }
27171 if ${ac_cv_path_PKGCONFIG+:} false; then :
27172 $as_echo_n "(cached) " >&6
27176 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27180 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27181 for as_dir in $as_dummy
27184 test -z "$as_dir" && as_dir=.
27185 for ac_exec_ext in '' $ac_executable_extensions; do
27186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27187 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27198 PKGCONFIG=$ac_cv_path_PKGCONFIG
27199 if test -n "$PKGCONFIG"; then
27200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27201 $as_echo "$PKGCONFIG" >&6; }
27203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27204 $as_echo "no" >&6; }
27209 if test -z "$ac_cv_path_PKGCONFIG"; then
27210 ac_pt_PKGCONFIG=$PKGCONFIG
27211 # Extract the first word of "pkg-config", so it can be a program name with args.
27212 set dummy 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_ac_pt_PKGCONFIG+:} false; then :
27216 $as_echo_n "(cached) " >&6
27218 case $ac_pt_PKGCONFIG in
27220 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_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_ac_pt_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 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27243 if test -n "$ac_pt_PKGCONFIG"; then
27244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27245 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27248 $as_echo "no" >&6; }
27251 if test "x$ac_pt_PKGCONFIG" = x; then
27254 case $cross_compiling:$ac_tool_warned in
27256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27258 ac_tool_warned=yes ;;
27260 PKGCONFIG=$ac_pt_PKGCONFIG
27263 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27268 if test "x$PKGCONFIG" != "xno"; then
27269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27270 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27272 if test -n "$IDN_PCDIR"; then
27273 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27274 export PKG_CONFIG_LIBDIR
27276 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27278 if test -z "$itexists"; then
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27281 $as_echo "no" >&6; }
27283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27284 $as_echo "found" >&6; }
27288 if test "$PKGCONFIG" != "no"; then
27290 if test -n "$IDN_PCDIR"; then
27291 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27292 export PKG_CONFIG_LIBDIR
27294 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27296 if test -n "$IDN_PCDIR"; then
27297 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27298 export PKG_CONFIG_LIBDIR
27300 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27302 if test -n "$IDN_PCDIR"; then
27303 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
27304 export PKG_CONFIG_LIBDIR
27306 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27307 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27310 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
27311 IDN_CPPFLAGS="-I$want_idn_path/include"
27312 IDN_DIR="$want_idn_path/lib$libsuff"
27316 if test -n "$PKG_CONFIG"; then
27317 PKGCONFIG="$PKG_CONFIG"
27319 if test -n "$ac_tool_prefix"; then
27320 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27321 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27323 $as_echo_n "checking for $ac_word... " >&6; }
27324 if ${ac_cv_path_PKGCONFIG+:} false; then :
27325 $as_echo_n "(cached) " >&6
27329 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27333 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27334 for as_dir in $as_dummy
27337 test -z "$as_dir" && as_dir=.
27338 for ac_exec_ext in '' $ac_executable_extensions; do
27339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27340 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27351 PKGCONFIG=$ac_cv_path_PKGCONFIG
27352 if test -n "$PKGCONFIG"; then
27353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27354 $as_echo "$PKGCONFIG" >&6; }
27356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27357 $as_echo "no" >&6; }
27362 if test -z "$ac_cv_path_PKGCONFIG"; then
27363 ac_pt_PKGCONFIG=$PKGCONFIG
27364 # Extract the first word of "pkg-config", so it can be a program name with args.
27365 set dummy pkg-config; ac_word=$2
27366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27367 $as_echo_n "checking for $ac_word... " >&6; }
27368 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27369 $as_echo_n "(cached) " >&6
27371 case $ac_pt_PKGCONFIG in
27373 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27377 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27378 for as_dir in $as_dummy
27381 test -z "$as_dir" && as_dir=.
27382 for ac_exec_ext in '' $ac_executable_extensions; do
27383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27384 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27395 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27396 if test -n "$ac_pt_PKGCONFIG"; then
27397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27398 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27401 $as_echo "no" >&6; }
27404 if test "x$ac_pt_PKGCONFIG" = x; then
27407 case $cross_compiling:$ac_tool_warned in
27409 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27410 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27411 ac_tool_warned=yes ;;
27413 PKGCONFIG=$ac_pt_PKGCONFIG
27416 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27421 if test "x$PKGCONFIG" != "xno"; then
27422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
27423 $as_echo_n "checking for libidn2 options with pkg-config... " >&6; }
27425 if test -n ""; then
27426 PKG_CONFIG_LIBDIR=""
27427 export PKG_CONFIG_LIBDIR
27429 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
27431 if test -z "$itexists"; then
27433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27434 $as_echo "no" >&6; }
27436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27437 $as_echo "found" >&6; }
27441 if test "$PKGCONFIG" != "no"; then
27442 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
27443 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
27444 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
27445 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
27451 if test "$PKGCONFIG" != "no"; then
27452 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
27453 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27454 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27455 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27456 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27457 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27458 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
27459 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
27462 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
27464 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
27465 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
27466 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
27467 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
27468 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
27471 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
27472 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
27473 LIBS="$IDN_LIBS $LIBS"
27475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
27476 $as_echo_n "checking if idn2_lookup_ul can be linked... " >&6; }
27477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27478 /* end confdefs.h. */
27481 #define idn2_lookup_ul innocuous_idn2_lookup_ul
27483 # include <limits.h>
27485 # include <assert.h>
27487 #undef idn2_lookup_ul
27491 char idn2_lookup_ul ();
27492 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
27498 return idn2_lookup_ul ();
27504 if ac_fn_c_try_link "$LINENO"; then :
27506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27507 $as_echo "yes" >&6; }
27508 tst_links_libidn="yes"
27512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27513 $as_echo "no" >&6; }
27514 tst_links_libidn="no"
27517 rm -f core conftest.err conftest.$ac_objext \
27518 conftest$ac_exeext conftest.$ac_ext
27520 for ac_header in idn2.h
27522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27525 cat >>confdefs.h <<_ACEOF
27526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27534 if test "$tst_links_libidn" = "yes"; then
27536 $as_echo "#define HAVE_LIBIDN2 1" >>confdefs.h
27541 curl_idn_msg="enabled (libidn2)"
27542 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
27543 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
27544 export LD_LIBRARY_PATH
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
27546 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
27549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
27550 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
27551 CPPFLAGS="$clean_CPPFLAGS"
27552 LDFLAGS="$clean_LDFLAGS"
27563 if test "x$disable_http" = "xyes"; then
27564 # without HTTP, nghttp2 is no use
27569 # Check whether --with-nghttp2 was given.
27570 if test "${with_nghttp2+set}" = set; then :
27571 withval=$with_nghttp2; OPT_H2=$withval
27584 want_h2_path="$withval/lib/pkgconfig"
27588 curl_h2_msg="disabled (--with-nghttp2)"
27589 if test X"$want_h2" != Xno; then
27590 CLEANLDFLAGS="$LDFLAGS"
27591 CLEANCPPFLAGS="$CPPFLAGS"
27595 if test -n "$PKG_CONFIG"; then
27596 PKGCONFIG="$PKG_CONFIG"
27598 if test -n "$ac_tool_prefix"; then
27599 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27600 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27602 $as_echo_n "checking for $ac_word... " >&6; }
27603 if ${ac_cv_path_PKGCONFIG+:} false; then :
27604 $as_echo_n "(cached) " >&6
27608 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27612 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27613 for as_dir in $as_dummy
27616 test -z "$as_dir" && as_dir=.
27617 for ac_exec_ext in '' $ac_executable_extensions; do
27618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27619 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27630 PKGCONFIG=$ac_cv_path_PKGCONFIG
27631 if test -n "$PKGCONFIG"; then
27632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27633 $as_echo "$PKGCONFIG" >&6; }
27635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27636 $as_echo "no" >&6; }
27641 if test -z "$ac_cv_path_PKGCONFIG"; then
27642 ac_pt_PKGCONFIG=$PKGCONFIG
27643 # Extract the first word of "pkg-config", so it can be a program name with args.
27644 set dummy pkg-config; ac_word=$2
27645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27646 $as_echo_n "checking for $ac_word... " >&6; }
27647 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
27648 $as_echo_n "(cached) " >&6
27650 case $ac_pt_PKGCONFIG in
27652 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27656 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27657 for as_dir in $as_dummy
27660 test -z "$as_dir" && as_dir=.
27661 for ac_exec_ext in '' $ac_executable_extensions; do
27662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27663 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
27664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
27674 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27675 if test -n "$ac_pt_PKGCONFIG"; then
27676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27677 $as_echo "$ac_pt_PKGCONFIG" >&6; }
27679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27680 $as_echo "no" >&6; }
27683 if test "x$ac_pt_PKGCONFIG" = x; then
27686 case $cross_compiling:$ac_tool_warned in
27688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27689 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27690 ac_tool_warned=yes ;;
27692 PKGCONFIG=$ac_pt_PKGCONFIG
27695 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27700 if test "x$PKGCONFIG" != "xno"; then
27701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
27702 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
27704 if test -n "$want_h2_path"; then
27705 PKG_CONFIG_LIBDIR="$want_h2_path"
27706 export PKG_CONFIG_LIBDIR
27708 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
27710 if test -z "$itexists"; then
27712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27713 $as_echo "no" >&6; }
27715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
27716 $as_echo "found" >&6; }
27721 if test "$PKGCONFIG" != "no" ; then
27723 if test -n "$want_h2_path"; then
27724 PKG_CONFIG_LIBDIR="$want_h2_path"
27725 export PKG_CONFIG_LIBDIR
27728 $PKGCONFIG --libs-only-l libnghttp2`
27729 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
27730 $as_echo "$as_me: -l is $LIB_H2" >&6;}
27733 if test -n "$want_h2_path"; then
27734 PKG_CONFIG_LIBDIR="$want_h2_path"
27735 export PKG_CONFIG_LIBDIR
27737 $PKGCONFIG --cflags-only-I libnghttp2`
27738 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
27739 $as_echo "$as_me: -I is $CPP_H2" >&6;}
27742 if test -n "$want_h2_path"; then
27743 PKG_CONFIG_LIBDIR="$want_h2_path"
27744 export PKG_CONFIG_LIBDIR
27747 $PKGCONFIG --libs-only-L libnghttp2`
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
27749 $as_echo "$as_me: -L is $LD_H2" >&6;}
27751 LDFLAGS="$LDFLAGS $LD_H2"
27752 CPPFLAGS="$CPPFLAGS $CPP_H2"
27753 LIBS="$LIB_H2 $LIBS"
27755 # use nghttp2_option_set_no_recv_client_magic to require nghttp2
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2" >&5
27758 $as_echo_n "checking for nghttp2_option_set_no_recv_client_magic in -lnghttp2... " >&6; }
27759 if ${ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic+:} false; then :
27760 $as_echo_n "(cached) " >&6
27762 ac_check_lib_save_LIBS=$LIBS
27763 LIBS="-lnghttp2 $LIBS"
27764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27765 /* end confdefs.h. */
27771 char nghttp2_option_set_no_recv_client_magic ();
27774 return nghttp2_option_set_no_recv_client_magic ();
27779 if ac_fn_c_try_link "$LINENO"; then :
27780 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=yes
27782 ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic=no
27784 rm -f core conftest.err conftest.$ac_objext \
27785 conftest$ac_exeext conftest.$ac_ext
27786 LIBS=$ac_check_lib_save_LIBS
27788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&5
27789 $as_echo "$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" >&6; }
27790 if test "x$ac_cv_lib_nghttp2_nghttp2_option_set_no_recv_client_magic" = xyes; then :
27792 for ac_header in nghttp2/nghttp2.h
27794 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
27795 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
27796 cat >>confdefs.h <<_ACEOF
27797 #define HAVE_NGHTTP2_NGHTTP2_H 1
27799 curl_h2_msg="enabled (nghttp2)"
27802 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
27813 LDFLAGS=$CLEANLDFLAGS
27814 CPPFLAGS=$CLEANCPPFLAGS
27821 if test X"$want_h2" != Xdefault; then
27822 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
27829 OPT_ZSH_FPATH=default
27831 # Check whether --with-zsh-functions-dir was given.
27832 if test "${with_zsh_functions_dir+set}" = set; then :
27833 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
27836 case "$OPT_ZSH_FPATH" in
27840 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
27844 ZSH_FUNCTIONS_DIR="$withval"
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
27851 $as_echo_n "checking for ANSI C header files... " >&6; }
27852 if ${ac_cv_header_stdc+:} false; then :
27853 $as_echo_n "(cached) " >&6
27855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27856 /* end confdefs.h. */
27857 #include <stdlib.h>
27858 #include <stdarg.h>
27859 #include <string.h>
27869 if ac_fn_c_try_compile "$LINENO"; then :
27870 ac_cv_header_stdc=yes
27872 ac_cv_header_stdc=no
27874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27876 if test $ac_cv_header_stdc = yes; then
27877 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
27878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27879 /* end confdefs.h. */
27880 #include <string.h>
27883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27884 $EGREP "memchr" >/dev/null 2>&1; then :
27887 ac_cv_header_stdc=no
27893 if test $ac_cv_header_stdc = yes; then
27894 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
27895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27896 /* end confdefs.h. */
27897 #include <stdlib.h>
27900 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
27901 $EGREP "free" >/dev/null 2>&1; then :
27904 ac_cv_header_stdc=no
27910 if test $ac_cv_header_stdc = yes; then
27911 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
27912 if test "$cross_compiling" = yes; then :
27915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27916 /* end confdefs.h. */
27918 #include <stdlib.h>
27919 #if ((' ' & 0x0FF) == 0x020)
27920 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
27921 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
27923 # define ISLOWER(c) \
27924 (('a' <= (c) && (c) <= 'i') \
27925 || ('j' <= (c) && (c) <= 'r') \
27926 || ('s' <= (c) && (c) <= 'z'))
27927 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
27930 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
27935 for (i = 0; i < 256; i++)
27936 if (XOR (islower (i), ISLOWER (i))
27937 || toupper (i) != TOUPPER (i))
27942 if ac_fn_c_try_run "$LINENO"; then :
27945 ac_cv_header_stdc=no
27947 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
27948 conftest.$ac_objext conftest.beam conftest.$ac_ext
27953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
27954 $as_echo "$ac_cv_header_stdc" >&6; }
27955 if test $ac_cv_header_stdc = yes; then
27957 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
27963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
27964 $as_echo_n "checking for malloc.h... " >&6; }
27965 if ${curl_cv_header_malloc_h+:} false; then :
27966 $as_echo_n "(cached) " >&6
27969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27970 /* end confdefs.h. */
27973 #include <malloc.h>
27978 void *p = malloc(10);
27979 void *q = calloc(10,10);
27988 if ac_fn_c_try_compile "$LINENO"; then :
27990 curl_cv_header_malloc_h="yes"
27994 curl_cv_header_malloc_h="no"
27997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_malloc_h" >&5
28001 $as_echo "$curl_cv_header_malloc_h" >&6; }
28002 if test "$curl_cv_header_malloc_h" = "yes"; then
28004 cat >>confdefs.h <<_ACEOF
28005 #define HAVE_MALLOC_H 1
28009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28010 /* end confdefs.h. */
28013 #include <stdlib.h>
28018 void *p = malloc(10);
28019 void *q = calloc(10,10);
28028 if ac_fn_c_try_compile "$LINENO"; then :
28030 curl_cv_need_header_malloc_h="no"
28034 curl_cv_need_header_malloc_h="yes"
28037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28039 case "$curl_cv_need_header_malloc_h" in
28042 cat >>confdefs.h <<_ACEOF
28043 #define NEED_MALLOC_H 1
28051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
28052 $as_echo_n "checking for memory.h... " >&6; }
28053 if ${curl_cv_header_memory_h+:} false; then :
28054 $as_echo_n "(cached) " >&6
28057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28058 /* end confdefs.h. */
28061 #include <memory.h>
28066 void *p = malloc(10);
28067 void *q = calloc(10,10);
28076 if ac_fn_c_try_compile "$LINENO"; then :
28078 curl_cv_header_memory_h="yes"
28082 curl_cv_header_memory_h="no"
28085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_memory_h" >&5
28089 $as_echo "$curl_cv_header_memory_h" >&6; }
28090 if test "$curl_cv_header_memory_h" = "yes"; then
28092 cat >>confdefs.h <<_ACEOF
28093 #define HAVE_MEMORY_H 1
28097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28098 /* end confdefs.h. */
28101 #include <stdlib.h>
28106 void *p = malloc(10);
28107 void *q = calloc(10,10);
28116 if ac_fn_c_try_compile "$LINENO"; then :
28118 curl_cv_need_header_memory_h="no"
28122 curl_cv_need_header_memory_h="yes"
28125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28127 case "$curl_cv_need_header_memory_h" in
28130 cat >>confdefs.h <<_ACEOF
28131 #define NEED_MEMORY_H 1
28139 for ac_header in sys/types.h \
28182 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28183 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
28184 #ifdef HAVE_SYS_TYPES_H
28185 #include <sys/types.h>
28187 #ifdef HAVE_SYS_TIME_H
28188 #include <sys/time.h>
28190 #ifdef HAVE_SYS_SELECT_H
28191 #include <sys/select.h>
28193 #ifdef HAVE_SYS_SOCKET_H
28194 #include <sys/socket.h>
28196 #ifdef HAVE_NETINET_IN_H
28197 #include <netinet/in.h>
28199 #ifdef HAVE_NETINET_IN6_H
28200 #include <netinet/in6.h>
28202 #ifdef HAVE_SYS_UN_H
28203 #include <sys/un.h>
28208 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28209 cat >>confdefs.h <<_ACEOF
28210 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
28219 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
28220 if ${ac_cv_c_const+:} false; then :
28221 $as_echo_n "(cached) " >&6
28223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28224 /* end confdefs.h. */
28229 #ifndef __cplusplus
28230 /* Ultrix mips cc rejects this sort of thing. */
28231 typedef int charset[2];
28232 const charset cs = { 0, 0 };
28233 /* SunOS 4.1.1 cc rejects this. */
28234 char const *const *pcpcc;
28236 /* NEC SVR4.0.2 mips cc rejects this. */
28237 struct point {int x, y;};
28238 static struct point const zero = {0,0};
28239 /* AIX XL C 1.02.0.0 rejects this.
28240 It does not let you subtract one const X* pointer from another in
28241 an arm of an if-expression whose if-part is not a constant
28243 const char *g = "string";
28244 pcpcc = &g + (g ? g-g : 0);
28245 /* HPUX 7.0 cc rejects these. */
28247 ppc = (char**) pcpcc;
28248 pcpcc = (char const *const *) ppc;
28249 { /* SCO 3.2v4 cc rejects this sort of thing. */
28252 char const *s = 0 ? (char *) 0 : (char const *) 0;
28257 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
28258 int x[] = {25, 17};
28259 const int *foo = &x[0];
28262 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
28263 typedef const int *iptr;
28267 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
28268 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
28269 struct s { int j; const int *ap[3]; } bx;
28270 struct s *b = &bx; b->j = 5;
28272 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
28273 const int foo = 10;
28274 if (!foo) return 0;
28276 return !cs[0] && !zero.x;
28283 if ac_fn_c_try_compile "$LINENO"; then :
28288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
28291 $as_echo "$ac_cv_c_const" >&6; }
28292 if test $ac_cv_c_const = no; then
28294 $as_echo "#define const /**/" >>confdefs.h
28299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
28300 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
28301 if ${curl_cv_variadic_macros_c99+:} false; then :
28302 $as_echo_n "(cached) " >&6
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h. */
28309 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
28310 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
28311 int fun3(int arg1, int arg2, int arg3);
28312 int fun2(int arg1, int arg2);
28313 int fun3(int arg1, int arg2, int arg3)
28314 { return arg1 + arg2 + arg3; }
28315 int fun2(int arg1, int arg2)
28316 { return arg1 + arg2; }
28321 int res3 = c99_vmacro3(1, 2, 3);
28322 int res2 = c99_vmacro2(1, 2);
28329 if ac_fn_c_try_compile "$LINENO"; then :
28331 curl_cv_variadic_macros_c99="yes"
28335 curl_cv_variadic_macros_c99="no"
28338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
28342 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
28343 case "$curl_cv_variadic_macros_c99" in
28346 cat >>confdefs.h <<_ACEOF
28347 #define HAVE_VARIADIC_MACROS_C99 1
28352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
28353 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
28354 if ${curl_cv_variadic_macros_gcc+:} false; then :
28355 $as_echo_n "(cached) " >&6
28358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28359 /* end confdefs.h. */
28362 #define gcc_vmacro3(first, args...) fun3(first, args)
28363 #define gcc_vmacro2(first, args...) fun2(first, args)
28364 int fun3(int arg1, int arg2, int arg3);
28365 int fun2(int arg1, int arg2);
28366 int fun3(int arg1, int arg2, int arg3)
28367 { return arg1 + arg2 + arg3; }
28368 int fun2(int arg1, int arg2)
28369 { return arg1 + arg2; }
28374 int res3 = gcc_vmacro3(1, 2, 3);
28375 int res2 = gcc_vmacro2(1, 2);
28382 if ac_fn_c_try_compile "$LINENO"; then :
28384 curl_cv_variadic_macros_gcc="yes"
28388 curl_cv_variadic_macros_gcc="no"
28391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
28395 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
28396 case "$curl_cv_variadic_macros_gcc" in
28399 cat >>confdefs.h <<_ACEOF
28400 #define HAVE_VARIADIC_MACROS_GCC 1
28406 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
28407 if test "x$ac_cv_type_size_t" = xyes; then :
28411 cat >>confdefs.h <<_ACEOF
28412 #define size_t unsigned int
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
28418 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
28419 if ${ac_cv_header_time+:} false; then :
28420 $as_echo_n "(cached) " >&6
28422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28423 /* end confdefs.h. */
28424 #include <sys/types.h>
28425 #include <sys/time.h>
28430 if ((struct tm *) 0)
28436 if ac_fn_c_try_compile "$LINENO"; then :
28437 ac_cv_header_time=yes
28439 ac_cv_header_time=no
28441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
28444 $as_echo "$ac_cv_header_time" >&6; }
28445 if test $ac_cv_header_time = yes; then
28447 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
28452 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
28454 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28455 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28456 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28457 cat >>confdefs.h <<_ACEOF
28458 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
28466 $as_echo_n "checking for struct timeval... " >&6; }
28467 if ${curl_cv_struct_timeval+:} false; then :
28468 $as_echo_n "(cached) " >&6
28471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28472 /* end confdefs.h. */
28476 #ifdef HAVE_WINDOWS_H
28477 #ifndef WIN32_LEAN_AND_MEAN
28478 #define WIN32_LEAN_AND_MEAN
28480 #include <windows.h>
28481 #ifdef HAVE_WINSOCK2_H
28482 #include <winsock2.h>
28484 #ifdef HAVE_WINSOCK_H
28485 #include <winsock.h>
28489 #ifdef HAVE_SYS_TYPES_H
28490 #include <sys/types.h>
28492 #ifdef HAVE_SYS_TIME_H
28493 #include <sys/time.h>
28494 #ifdef TIME_WITH_SYS_TIME
28502 #ifdef HAVE_SYS_SOCKET_H
28503 #include <sys/socket.h>
28518 if ac_fn_c_try_compile "$LINENO"; then :
28520 curl_cv_struct_timeval="yes"
28524 curl_cv_struct_timeval="no"
28527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
28531 $as_echo "$curl_cv_struct_timeval" >&6; }
28532 case "$curl_cv_struct_timeval" in
28535 cat >>confdefs.h <<_ACEOF
28536 #define HAVE_STRUCT_TIMEVAL 1
28544 if test "x$cross_compiling" != xyes; then
28546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
28547 $as_echo_n "checking run-time libs availability... " >&6; }
28548 if test "$cross_compiling" = yes; then :
28549 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28551 as_fn_error $? "cannot run test program while cross compiling
28552 See \`config.log' for more details" "$LINENO" 5; }
28554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28555 /* end confdefs.h. */
28563 if ac_fn_c_try_run "$LINENO"; then :
28564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
28565 $as_echo "fine" >&6; }
28567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
28568 $as_echo "failed" >&6; }
28569 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
28572 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28573 conftest.$ac_objext conftest.beam conftest.$ac_ext
28580 # The cast to long int works around a bug in the HP C Compiler
28581 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28582 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28583 # This bug is HP SR number 8606223364.
28584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
28585 $as_echo_n "checking size of size_t... " >&6; }
28586 if ${ac_cv_sizeof_size_t+:} false; then :
28587 $as_echo_n "(cached) " >&6
28589 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
28592 if test "$ac_cv_type_size_t" = yes; then
28593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28595 as_fn_error 77 "cannot compute sizeof (size_t)
28596 See \`config.log' for more details" "$LINENO" 5; }
28598 ac_cv_sizeof_size_t=0
28603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
28604 $as_echo "$ac_cv_sizeof_size_t" >&6; }
28608 cat >>confdefs.h <<_ACEOF
28609 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
28613 # The cast to long int works around a bug in the HP C Compiler
28614 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28615 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28616 # This bug is HP SR number 8606223364.
28617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
28618 $as_echo_n "checking size of long... " >&6; }
28619 if ${ac_cv_sizeof_long+:} false; then :
28620 $as_echo_n "(cached) " >&6
28622 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
28625 if test "$ac_cv_type_long" = yes; then
28626 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28627 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28628 as_fn_error 77 "cannot compute sizeof (long)
28629 See \`config.log' for more details" "$LINENO" 5; }
28631 ac_cv_sizeof_long=0
28636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
28637 $as_echo "$ac_cv_sizeof_long" >&6; }
28641 cat >>confdefs.h <<_ACEOF
28642 #define SIZEOF_LONG $ac_cv_sizeof_long
28646 # The cast to long int works around a bug in the HP C Compiler
28647 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28648 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28649 # This bug is HP SR number 8606223364.
28650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
28651 $as_echo_n "checking size of int... " >&6; }
28652 if ${ac_cv_sizeof_int+:} false; then :
28653 $as_echo_n "(cached) " >&6
28655 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
28658 if test "$ac_cv_type_int" = yes; then
28659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28661 as_fn_error 77 "cannot compute sizeof (int)
28662 See \`config.log' for more details" "$LINENO" 5; }
28669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
28670 $as_echo "$ac_cv_sizeof_int" >&6; }
28674 cat >>confdefs.h <<_ACEOF
28675 #define SIZEOF_INT $ac_cv_sizeof_int
28679 # The cast to long int works around a bug in the HP C Compiler
28680 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28681 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28682 # This bug is HP SR number 8606223364.
28683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
28684 $as_echo_n "checking size of short... " >&6; }
28685 if ${ac_cv_sizeof_short+:} false; then :
28686 $as_echo_n "(cached) " >&6
28688 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
28691 if test "$ac_cv_type_short" = yes; then
28692 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28693 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28694 as_fn_error 77 "cannot compute sizeof (short)
28695 See \`config.log' for more details" "$LINENO" 5; }
28697 ac_cv_sizeof_short=0
28702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
28703 $as_echo "$ac_cv_sizeof_short" >&6; }
28707 cat >>confdefs.h <<_ACEOF
28708 #define SIZEOF_SHORT $ac_cv_sizeof_short
28712 # The cast to long int works around a bug in the HP C Compiler
28713 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28714 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28715 # This bug is HP SR number 8606223364.
28716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
28717 $as_echo_n "checking size of time_t... " >&6; }
28718 if ${ac_cv_sizeof_time_t+:} false; then :
28719 $as_echo_n "(cached) " >&6
28721 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
28724 if test "$ac_cv_type_time_t" = yes; then
28725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28727 as_fn_error 77 "cannot compute sizeof (time_t)
28728 See \`config.log' for more details" "$LINENO" 5; }
28730 ac_cv_sizeof_time_t=0
28735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
28736 $as_echo "$ac_cv_sizeof_time_t" >&6; }
28740 cat >>confdefs.h <<_ACEOF
28741 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
28745 # The cast to long int works around a bug in the HP C Compiler
28746 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28747 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28748 # This bug is HP SR number 8606223364.
28749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
28750 $as_echo_n "checking size of off_t... " >&6; }
28751 if ${ac_cv_sizeof_off_t+:} false; then :
28752 $as_echo_n "(cached) " >&6
28754 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
28757 if test "$ac_cv_type_off_t" = yes; then
28758 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28760 as_fn_error 77 "cannot compute sizeof (off_t)
28761 See \`config.log' for more details" "$LINENO" 5; }
28763 ac_cv_sizeof_off_t=0
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
28769 $as_echo "$ac_cv_sizeof_off_t" >&6; }
28773 cat >>confdefs.h <<_ACEOF
28774 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
28780 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
28781 # The cast to long int works around a bug in the HP C Compiler
28782 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
28783 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
28784 # This bug is HP SR number 8606223364.
28785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
28786 $as_echo_n "checking size of curl_off_t... " >&6; }
28787 if ${ac_cv_sizeof_curl_off_t+:} false; then :
28788 $as_echo_n "(cached) " >&6
28790 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (curl_off_t))" "ac_cv_sizeof_curl_off_t" "
28791 #include <curl/system.h>
28796 if test "$ac_cv_type_curl_off_t" = yes; then
28797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
28798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
28799 as_fn_error 77 "cannot compute sizeof (curl_off_t)
28800 See \`config.log' for more details" "$LINENO" 5; }
28802 ac_cv_sizeof_curl_off_t=0
28807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_curl_off_t" >&5
28808 $as_echo "$ac_cv_sizeof_curl_off_t" >&6; }
28812 cat >>confdefs.h <<_ACEOF
28813 #define SIZEOF_CURL_OFF_T $ac_cv_sizeof_curl_off_t
28819 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
28820 if test "x$ac_cv_type_long_long" = xyes; then :
28822 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
28829 if test "xyes" = "x$longlong"; then
28830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
28831 $as_echo_n "checking if numberLL works... " >&6; }
28832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28833 /* end confdefs.h. */
28840 long long val = 1000LL;
28847 if ac_fn_c_try_compile "$LINENO"; then :
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28850 $as_echo "yes" >&6; }
28852 $as_echo "#define HAVE_LL 1" >>confdefs.h
28857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28858 $as_echo "no" >&6; }
28861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28865 # check for ssize_t
28866 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
28867 if test "x$ac_cv_type_ssize_t" = xyes; then :
28871 $as_echo "#define ssize_t int" >>confdefs.h
28876 # check for bool type
28877 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
28878 #ifdef HAVE_SYS_TYPES_H
28879 #include <sys/types.h>
28881 #ifdef HAVE_STDBOOL_H
28882 #include <stdbool.h>
28886 if test "x$ac_cv_type_bool" = xyes; then :
28889 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
28895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
28896 $as_echo_n "checking if time_t is unsigned... " >&6; }
28897 if test "$cross_compiling" = yes; then :
28899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28900 $as_echo "no" >&6; }
28903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28904 /* end confdefs.h. */
28908 #include <limits.h>
28913 if ac_fn_c_try_run "$LINENO"; then :
28915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28916 $as_echo "yes" >&6; }
28918 $as_echo "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
28923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28924 $as_echo "no" >&6; }
28927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
28928 conftest.$ac_objext conftest.beam conftest.$ac_ext
28933 curl_includes_ws2tcpip="\
28934 /* includes start */
28935 #ifdef HAVE_WINDOWS_H
28936 # ifndef WIN32_LEAN_AND_MEAN
28937 # define WIN32_LEAN_AND_MEAN
28939 # include <windows.h>
28940 # ifdef HAVE_WINSOCK2_H
28941 # include <winsock2.h>
28942 # ifdef HAVE_WS2TCPIP_H
28943 # include <ws2tcpip.h>
28947 /* includes end */"
28949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
28950 $as_echo_n "checking for windows.h... " >&6; }
28951 if ${curl_cv_header_windows_h+:} false; then :
28952 $as_echo_n "(cached) " >&6
28955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28956 /* end confdefs.h. */
28960 #ifndef WIN32_LEAN_AND_MEAN
28961 #define WIN32_LEAN_AND_MEAN
28963 #include <windows.h>
28968 #if defined(__CYGWIN__) || defined(__CEGCC__)
28969 HAVE_WINDOWS_H shall not be defined.
28971 int dummy=2*WINVER;
28979 if ac_fn_c_try_compile "$LINENO"; then :
28981 curl_cv_header_windows_h="yes"
28985 curl_cv_header_windows_h="no"
28988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
28992 $as_echo "$curl_cv_header_windows_h" >&6; }
28993 case "$curl_cv_header_windows_h" in
28996 cat >>confdefs.h <<_ACEOF
28997 #define HAVE_WINDOWS_H 1
29004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
29005 $as_echo_n "checking for winsock2.h... " >&6; }
29006 if ${curl_cv_header_winsock2_h+:} false; then :
29007 $as_echo_n "(cached) " >&6
29010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29011 /* end confdefs.h. */
29015 #ifndef WIN32_LEAN_AND_MEAN
29016 #define WIN32_LEAN_AND_MEAN
29018 #include <windows.h>
29019 #include <winsock2.h>
29024 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29025 HAVE_WINSOCK2_H shall not be defined.
29027 int dummy=2*IPPROTO_ESP;
29035 if ac_fn_c_try_compile "$LINENO"; then :
29037 curl_cv_header_winsock2_h="yes"
29041 curl_cv_header_winsock2_h="no"
29044 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
29048 $as_echo "$curl_cv_header_winsock2_h" >&6; }
29049 case "$curl_cv_header_winsock2_h" in
29052 cat >>confdefs.h <<_ACEOF
29053 #define HAVE_WINSOCK2_H 1
29060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
29061 $as_echo_n "checking for ws2tcpip.h... " >&6; }
29062 if ${curl_cv_header_ws2tcpip_h+:} false; then :
29063 $as_echo_n "(cached) " >&6
29066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29067 /* end confdefs.h. */
29071 #ifndef WIN32_LEAN_AND_MEAN
29072 #define WIN32_LEAN_AND_MEAN
29074 #include <windows.h>
29075 #include <winsock2.h>
29076 #include <ws2tcpip.h>
29081 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
29082 HAVE_WS2TCPIP_H shall not be defined.
29084 int dummy=2*IP_PKTINFO;
29092 if ac_fn_c_try_compile "$LINENO"; then :
29094 curl_cv_header_ws2tcpip_h="yes"
29098 curl_cv_header_ws2tcpip_h="no"
29101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
29105 $as_echo "$curl_cv_header_ws2tcpip_h" >&6; }
29106 case "$curl_cv_header_ws2tcpip_h" in
29109 cat >>confdefs.h <<_ACEOF
29110 #define HAVE_WS2TCPIP_H 1
29118 curl_includes_sys_socket="\
29119 /* includes start */
29120 #ifdef HAVE_SYS_TYPES_H
29121 # include <sys/types.h>
29123 #ifdef HAVE_SYS_SOCKET_H
29124 # include <sys/socket.h>
29126 /* includes end */"
29127 for ac_header in sys/types.h sys/socket.h
29129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29130 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
29132 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29133 cat >>confdefs.h <<_ACEOF
29134 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29143 curl_preprocess_callconv="\
29144 /* preprocess start */
29145 #ifdef HAVE_WINDOWS_H
29146 # define FUNCALLCONV __stdcall
29148 # define FUNCALLCONV
29150 /* preprocess end */"
29155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
29156 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
29157 curl_typeof_curl_socklen_t="unknown"
29158 for arg1 in int SOCKET; do
29159 for arg2 in 'struct sockaddr' void; do
29160 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
29161 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
29162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29163 /* end confdefs.h. */
29166 $curl_includes_ws2tcpip
29167 $curl_includes_sys_socket
29168 $curl_preprocess_callconv
29169 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
29175 if(0 != getpeername(0, 0, lenptr))
29183 if ac_fn_c_try_compile "$LINENO"; then :
29185 curl_typeof_curl_socklen_t="$t"
29188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29193 for t in socklen_t int; do
29194 if test "$curl_typeof_curl_socklen_t" = "void"; then
29195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29196 /* end confdefs.h. */
29199 $curl_includes_sys_socket
29200 typedef $t curl_socklen_t;
29205 curl_socklen_t dummy;
29212 if ac_fn_c_try_compile "$LINENO"; then :
29214 curl_typeof_curl_socklen_t="$t"
29217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
29221 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
29222 if test "$curl_typeof_curl_socklen_t" = "void" ||
29223 test "$curl_typeof_curl_socklen_t" = "unknown"; then
29224 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
29227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
29228 $as_echo_n "checking size of curl_socklen_t... " >&6; }
29229 curl_sizeof_curl_socklen_t="unknown"
29230 curl_pull_headers_socklen_t="unknown"
29231 if test "$curl_cv_header_ws2tcpip_h" = "yes"; then
29232 tst_pull_header_checks='none ws2tcpip'
29233 tst_size_checks='4'
29235 tst_pull_header_checks='none systypes syssocket'
29236 tst_size_checks='4 8 2'
29238 for tst_size in $tst_size_checks; do
29239 for tst_pull_headers in $tst_pull_header_checks; do
29240 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29241 case $tst_pull_headers in
29243 tmp_includes="$curl_includes_ws2tcpip"
29246 tmp_includes="$curl_includes_sys_types"
29249 tmp_includes="$curl_includes_sys_socket"
29255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29256 /* end confdefs.h. */
29260 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
29261 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
29266 curl_socklen_t dummy;
29273 if ac_fn_c_try_compile "$LINENO"; then :
29275 curl_sizeof_curl_socklen_t="$tst_size"
29276 curl_pull_headers_socklen_t="$tst_pull_headers"
29279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
29284 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
29285 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
29286 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
29289 case $curl_pull_headers_socklen_t in
29292 cat >>confdefs.h <<_EOF
29293 #define CURL_PULL_WS2TCPIP_H 1
29299 cat >>confdefs.h <<_EOF
29300 #define CURL_PULL_SYS_TYPES_H 1
29306 cat >>confdefs.h <<_EOF
29307 #define CURL_PULL_SYS_TYPES_H 1
29311 cat >>confdefs.h <<_EOF
29312 #define CURL_PULL_SYS_SOCKET_H 1
29318 cat >>confdefs.h <<_EOF
29319 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
29323 cat >>confdefs.h <<_EOF
29324 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
29330 curl_includes_poll="\
29331 /* includes start */
29332 #ifdef HAVE_SYS_TYPES_H
29333 # include <sys/types.h>
29338 #ifdef HAVE_SYS_POLL_H
29339 # include <sys/poll.h>
29341 /* includes end */"
29342 for ac_header in sys/types.h poll.h sys/poll.h
29344 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29345 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
29347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29348 cat >>confdefs.h <<_ACEOF
29349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29359 tst_poll_events_macro_defined="unknown"
29361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29362 /* end confdefs.h. */
29365 $curl_includes_poll
29370 #if defined(events) || defined(revents)
29373 force compilation error
29381 if ac_fn_c_try_compile "$LINENO"; then :
29383 tst_poll_events_macro_defined="yes"
29387 tst_poll_events_macro_defined="no"
29390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29392 if test "$tst_poll_events_macro_defined" = "yes"; then
29393 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
29395 cat >>confdefs.h <<_EOF
29396 #define CURL_PULL_SYS_POLL_H 1
29405 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
29407 #ifdef HAVE_WINDOWS_H
29408 #ifndef WIN32_LEAN_AND_MEAN
29409 #define WIN32_LEAN_AND_MEAN
29411 #include <windows.h>
29412 #ifdef HAVE_WINSOCK2_H
29413 #include <winsock2.h>
29415 #ifdef HAVE_WINSOCK_H
29416 #include <winsock.h>
29420 #ifdef HAVE_SYS_TYPES_H
29421 #include <sys/types.h>
29423 #ifdef HAVE_SYS_SOCKET_H
29424 #include <sys/socket.h>
29426 #ifdef HAVE_NETINET_IN_H
29427 #include <netinet/in.h>
29429 #ifdef HAVE_ARPA_INET_H
29430 #include <arpa/inet.h>
29435 if test "x$ac_cv_type_in_addr_t" = xyes; then :
29439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
29440 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
29441 if ${curl_cv_in_addr_t_equiv+:} false; then :
29442 $as_echo_n "(cached) " >&6
29445 curl_cv_in_addr_t_equiv="unknown"
29446 for t in "unsigned long" int size_t unsigned long; do
29447 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
29448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29449 /* end confdefs.h. */
29453 #ifdef HAVE_WINDOWS_H
29454 #ifndef WIN32_LEAN_AND_MEAN
29455 #define WIN32_LEAN_AND_MEAN
29457 #include <windows.h>
29458 #ifdef HAVE_WINSOCK2_H
29459 #include <winsock2.h>
29461 #ifdef HAVE_WINSOCK_H
29462 #include <winsock.h>
29466 #ifdef HAVE_SYS_TYPES_H
29467 #include <sys/types.h>
29469 #ifdef HAVE_SYS_SOCKET_H
29470 #include <sys/socket.h>
29472 #ifdef HAVE_NETINET_IN_H
29473 #include <netinet/in.h>
29475 #ifdef HAVE_ARPA_INET_H
29476 #include <arpa/inet.h>
29483 $t data = inet_addr ("1.2.3.4");
29490 if ac_fn_c_try_link "$LINENO"; then :
29492 curl_cv_in_addr_t_equiv="$t"
29495 rm -f core conftest.err conftest.$ac_objext \
29496 conftest$ac_exeext conftest.$ac_ext
29501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
29502 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
29503 case "$curl_cv_in_addr_t_equiv" in
29505 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
29509 cat >>confdefs.h <<_ACEOF
29510 #define in_addr_t $curl_cv_in_addr_t_equiv
29521 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
29523 #ifdef HAVE_WINDOWS_H
29524 #ifndef WIN32_LEAN_AND_MEAN
29525 #define WIN32_LEAN_AND_MEAN
29527 #include <windows.h>
29528 #ifdef HAVE_WINSOCK2_H
29529 #include <winsock2.h>
29532 #ifdef HAVE_SYS_TYPES_H
29533 #include <sys/types.h>
29535 #ifdef HAVE_SYS_SOCKET_H
29536 #include <sys/socket.h>
29538 #ifdef HAVE_NETINET_IN_H
29539 #include <netinet/in.h>
29541 #ifdef HAVE_ARPA_INET_H
29542 #include <arpa/inet.h>
29547 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
29549 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
29556 for ac_header in signal.h
29558 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
29559 if test "x$ac_cv_header_signal_h" = xyes; then :
29560 cat >>confdefs.h <<_ACEOF
29561 #define HAVE_SIGNAL_H 1
29568 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
29569 #ifdef HAVE_SIGNAL_H
29570 #include <signal.h>
29574 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
29577 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
29582 case "$ac_cv_type_sig_atomic_t" in
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
29586 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
29587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29588 /* end confdefs.h. */
29591 #ifdef HAVE_SIGNAL_H
29592 #include <signal.h>
29598 static volatile sig_atomic_t dummy = 0;
29605 if ac_fn_c_try_link "$LINENO"; then :
29607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29608 $as_echo "no" >&6; }
29609 curl_cv_sig_atomic_t_volatile="no"
29613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29614 $as_echo "yes" >&6; }
29615 curl_cv_sig_atomic_t_volatile="yes"
29618 rm -f core conftest.err conftest.$ac_objext \
29619 conftest$ac_exeext conftest.$ac_ext
29621 if test "$curl_cv_sig_atomic_t_volatile" = "yes"; then
29623 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
29630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
29631 $as_echo_n "checking return type of signal handlers... " >&6; }
29632 if ${ac_cv_type_signal+:} false; then :
29633 $as_echo_n "(cached) " >&6
29635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29636 /* end confdefs.h. */
29637 #include <sys/types.h>
29638 #include <signal.h>
29642 return *(signal (0, 0)) (0) == 1;
29647 if ac_fn_c_try_compile "$LINENO"; then :
29648 ac_cv_type_signal=int
29650 ac_cv_type_signal=void
29652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
29655 $as_echo "$ac_cv_type_signal" >&6; }
29657 cat >>confdefs.h <<_ACEOF
29658 #define RETSIGTYPE $ac_cv_type_signal
29664 for ac_header in sys/select.h sys/socket.h
29666 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29667 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29668 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29669 cat >>confdefs.h <<_ACEOF
29670 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
29679 $as_echo_n "checking for select... " >&6; }
29680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29681 /* end confdefs.h. */
29685 #ifdef HAVE_WINDOWS_H
29686 #ifndef WIN32_LEAN_AND_MEAN
29687 #define WIN32_LEAN_AND_MEAN
29689 #include <windows.h>
29690 #ifdef HAVE_WINSOCK2_H
29691 #include <winsock2.h>
29693 #ifdef HAVE_WINSOCK_H
29694 #include <winsock.h>
29698 #ifdef HAVE_SYS_TYPES_H
29699 #include <sys/types.h>
29701 #ifdef HAVE_SYS_TIME_H
29702 #include <sys/time.h>
29703 #ifdef TIME_WITH_SYS_TIME
29711 #ifndef HAVE_WINDOWS_H
29712 #ifdef HAVE_SYS_SELECT_H
29713 #include <sys/select.h>
29715 #ifdef HAVE_SYS_SOCKET_H
29716 #include <sys/socket.h>
29723 select(0, 0, 0, 0, 0);
29730 if ac_fn_c_try_link "$LINENO"; then :
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29733 $as_echo "yes" >&6; }
29734 curl_cv_select="yes"
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29739 $as_echo "no" >&6; }
29740 curl_cv_select="no"
29743 rm -f core conftest.err conftest.$ac_objext \
29744 conftest$ac_exeext conftest.$ac_ext
29746 if test "$curl_cv_select" = "yes"; then
29747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
29748 $as_echo_n "checking types of args and return type for select... " >&6; }
29749 if ${curl_cv_func_select_args+:} false; then :
29750 $as_echo_n "(cached) " >&6
29753 curl_cv_func_select_args="unknown"
29754 for sel_retv in 'int' 'ssize_t'; do
29755 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
29756 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
29757 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
29758 if test "$curl_cv_func_select_args" = "unknown"; then
29759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760 /* end confdefs.h. */
29764 #ifdef HAVE_WINDOWS_H
29765 #ifndef WIN32_LEAN_AND_MEAN
29766 #define WIN32_LEAN_AND_MEAN
29768 #include <windows.h>
29769 #ifdef HAVE_WINSOCK2_H
29770 #include <winsock2.h>
29772 #ifdef HAVE_WINSOCK_H
29773 #include <winsock.h>
29776 #define SELECTCALLCONV PASCAL
29778 #ifdef HAVE_SYS_TYPES_H
29779 #include <sys/types.h>
29781 #ifdef HAVE_SYS_TIME_H
29782 #include <sys/time.h>
29783 #ifdef TIME_WITH_SYS_TIME
29791 #ifndef HAVE_WINDOWS_H
29792 #ifdef HAVE_SYS_SELECT_H
29793 #include <sys/select.h>
29795 #ifdef HAVE_SYS_SOCKET_H
29796 #include <sys/socket.h>
29798 #define SELECTCALLCONV
29800 #ifndef HAVE_STRUCT_TIMEVAL
29806 extern $sel_retv SELECTCALLCONV
29808 __attribute__((overloadable))
29820 $sel_arg234 rfds=0;
29821 $sel_arg234 wfds=0;
29822 $sel_arg234 efds=0;
29823 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
29830 if ac_fn_c_try_compile "$LINENO"; then :
29832 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
29835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
29844 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
29845 if test "$curl_cv_func_select_args" = "unknown"; then
29846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
29847 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
29848 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
29849 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
29851 select_prev_IFS=$IFS; IFS=','
29852 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
29853 IFS=$select_prev_IFS
29856 sel_qual_type_arg5=$3
29859 cat >>confdefs.h <<_ACEOF
29860 #define SELECT_TYPE_ARG1 $1
29864 cat >>confdefs.h <<_ACEOF
29865 #define SELECT_TYPE_ARG234 $2
29869 cat >>confdefs.h <<_ACEOF
29870 #define SELECT_TYPE_RETV $4
29876 case $prev_sh_opts in
29884 case "$sel_qual_type_arg5" in
29886 sel_qual_arg5=const
29887 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
29891 sel_type_arg5=$sel_qual_type_arg5
29896 cat >>confdefs.h <<_ACEOF
29897 #define SELECT_QUAL_ARG5 $sel_qual_arg5
29901 cat >>confdefs.h <<_ACEOF
29902 #define SELECT_TYPE_ARG5 $sel_type_arg5
29906 case $prev_sh_opts in
29915 cat >>confdefs.h <<_ACEOF
29916 #define HAVE_SELECT 1
29919 curl_cv_func_select="yes"
29925 for ac_header in sys/types.h sys/socket.h
29927 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29928 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
29929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29930 cat >>confdefs.h <<_ACEOF
29931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
29940 $as_echo_n "checking for recv... " >&6; }
29941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29942 /* end confdefs.h. */
29946 #ifdef HAVE_WINDOWS_H
29947 #ifndef WIN32_LEAN_AND_MEAN
29948 #define WIN32_LEAN_AND_MEAN
29950 #include <windows.h>
29951 #ifdef HAVE_WINSOCK2_H
29952 #include <winsock2.h>
29954 #ifdef HAVE_WINSOCK_H
29955 #include <winsock.h>
29959 #ifdef HAVE_SYS_TYPES_H
29960 #include <sys/types.h>
29962 #ifdef HAVE_SYS_SOCKET_H
29963 #include <sys/socket.h>
29977 if ac_fn_c_try_link "$LINENO"; then :
29979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29980 $as_echo "yes" >&6; }
29985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29986 $as_echo "no" >&6; }
29990 rm -f core conftest.err conftest.$ac_objext \
29991 conftest$ac_exeext conftest.$ac_ext
29993 if test "$curl_cv_recv" = "yes"; then
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
29995 $as_echo_n "checking types of args and return type for recv... " >&6; }
29996 if ${curl_cv_func_recv_args+:} false; then :
29997 $as_echo_n "(cached) " >&6
30000 curl_cv_func_recv_args="unknown"
30001 for recv_retv in 'int' 'ssize_t'; do
30002 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30003 for recv_arg2 in 'char *' 'void *'; do
30004 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30005 for recv_arg4 in 'int' 'unsigned int'; do
30006 if test "$curl_cv_func_recv_args" = "unknown"; then
30007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30008 /* end confdefs.h. */
30012 #ifdef HAVE_WINDOWS_H
30013 #ifndef WIN32_LEAN_AND_MEAN
30014 #define WIN32_LEAN_AND_MEAN
30016 #include <windows.h>
30017 #ifdef HAVE_WINSOCK2_H
30018 #include <winsock2.h>
30020 #ifdef HAVE_WINSOCK_H
30021 #include <winsock.h>
30024 #define RECVCALLCONV PASCAL
30026 #ifdef HAVE_SYS_TYPES_H
30027 #include <sys/types.h>
30029 #ifdef HAVE_SYS_SOCKET_H
30030 #include <sys/socket.h>
30032 #define RECVCALLCONV
30034 extern $recv_retv RECVCALLCONV
30036 __attribute__((overloadable))
30038 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
30046 $recv_arg4 flags=0;
30047 $recv_retv res = recv(s, buf, len, flags);
30054 if ac_fn_c_try_compile "$LINENO"; then :
30056 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
30059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
30069 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
30070 if test "$curl_cv_func_recv_args" = "unknown"; then
30071 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
30073 recv_prev_IFS=$IFS; IFS=','
30074 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
30079 cat >>confdefs.h <<_ACEOF
30080 #define RECV_TYPE_ARG1 $1
30084 cat >>confdefs.h <<_ACEOF
30085 #define RECV_TYPE_ARG2 $2
30089 cat >>confdefs.h <<_ACEOF
30090 #define RECV_TYPE_ARG3 $3
30094 cat >>confdefs.h <<_ACEOF
30095 #define RECV_TYPE_ARG4 $4
30099 cat >>confdefs.h <<_ACEOF
30100 #define RECV_TYPE_RETV $5
30105 cat >>confdefs.h <<_ACEOF
30106 #define HAVE_RECV 1
30109 curl_cv_func_recv="yes"
30112 as_fn_error $? "Unable to link function recv" "$LINENO" 5
30116 for ac_header in sys/types.h sys/socket.h
30118 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30119 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30120 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30121 cat >>confdefs.h <<_ACEOF
30122 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
30131 $as_echo_n "checking for send... " >&6; }
30132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30133 /* end confdefs.h. */
30137 #ifdef HAVE_WINDOWS_H
30138 #ifndef WIN32_LEAN_AND_MEAN
30139 #define WIN32_LEAN_AND_MEAN
30141 #include <windows.h>
30142 #ifdef HAVE_WINSOCK2_H
30143 #include <winsock2.h>
30145 #ifdef HAVE_WINSOCK_H
30146 #include <winsock.h>
30150 #ifdef HAVE_SYS_TYPES_H
30151 #include <sys/types.h>
30153 #ifdef HAVE_SYS_SOCKET_H
30154 #include <sys/socket.h>
30168 if ac_fn_c_try_link "$LINENO"; then :
30170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30171 $as_echo "yes" >&6; }
30176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30177 $as_echo "no" >&6; }
30181 rm -f core conftest.err conftest.$ac_objext \
30182 conftest$ac_exeext conftest.$ac_ext
30184 if test "$curl_cv_send" = "yes"; then
30185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
30186 $as_echo_n "checking types of args and return type for send... " >&6; }
30187 if ${curl_cv_func_send_args+:} false; then :
30188 $as_echo_n "(cached) " >&6
30191 curl_cv_func_send_args="unknown"
30192 for send_retv in 'int' 'ssize_t'; do
30193 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
30194 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
30195 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
30196 for send_arg4 in 'int' 'unsigned int'; do
30197 if test "$curl_cv_func_send_args" = "unknown"; then
30198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30199 /* end confdefs.h. */
30203 #ifdef HAVE_WINDOWS_H
30204 #ifndef WIN32_LEAN_AND_MEAN
30205 #define WIN32_LEAN_AND_MEAN
30207 #include <windows.h>
30208 #ifdef HAVE_WINSOCK2_H
30209 #include <winsock2.h>
30211 #ifdef HAVE_WINSOCK_H
30212 #include <winsock.h>
30215 #define SENDCALLCONV PASCAL
30217 #ifdef HAVE_SYS_TYPES_H
30218 #include <sys/types.h>
30220 #ifdef HAVE_SYS_SOCKET_H
30221 #include <sys/socket.h>
30223 #define SENDCALLCONV
30225 extern $send_retv SENDCALLCONV
30227 __attribute__((overloadable))
30229 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
30236 $send_arg4 flags=0;
30237 $send_retv res = send(s, 0, len, flags);
30244 if ac_fn_c_try_compile "$LINENO"; then :
30246 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
30249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
30259 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
30260 if test "$curl_cv_func_send_args" = "unknown"; then
30261 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
30263 send_prev_IFS=$IFS; IFS=','
30264 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
30268 send_qual_type_arg2=$2
30271 cat >>confdefs.h <<_ACEOF
30272 #define SEND_TYPE_ARG1 $1
30276 cat >>confdefs.h <<_ACEOF
30277 #define SEND_TYPE_ARG3 $3
30281 cat >>confdefs.h <<_ACEOF
30282 #define SEND_TYPE_ARG4 $4
30286 cat >>confdefs.h <<_ACEOF
30287 #define SEND_TYPE_RETV $5
30293 case $prev_sh_opts in
30301 case "$send_qual_type_arg2" in
30303 send_qual_arg2=const
30304 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
30308 send_type_arg2=$send_qual_type_arg2
30313 cat >>confdefs.h <<_ACEOF
30314 #define SEND_QUAL_ARG2 $send_qual_arg2
30318 cat >>confdefs.h <<_ACEOF
30319 #define SEND_TYPE_ARG2 $send_type_arg2
30323 case $prev_sh_opts in
30332 cat >>confdefs.h <<_ACEOF
30333 #define HAVE_SEND 1
30336 curl_cv_func_send="yes"
30339 as_fn_error $? "Unable to link function send" "$LINENO" 5
30343 for ac_header in sys/types.h sys/socket.h
30345 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30346 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
30347 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30348 cat >>confdefs.h <<_ACEOF
30349 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
30357 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
30358 if ${curl_cv_msg_nosignal+:} false; then :
30359 $as_echo_n "(cached) " >&6
30362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30363 /* end confdefs.h. */
30367 #ifdef HAVE_WINDOWS_H
30368 #ifndef WIN32_LEAN_AND_MEAN
30369 #define WIN32_LEAN_AND_MEAN
30371 #include <windows.h>
30372 #ifdef HAVE_WINSOCK2_H
30373 #include <winsock2.h>
30375 #ifdef HAVE_WINSOCK_H
30376 #include <winsock.h>
30380 #ifdef HAVE_SYS_TYPES_H
30381 #include <sys/types.h>
30383 #ifdef HAVE_SYS_SOCKET_H
30384 #include <sys/socket.h>
30391 int flag=MSG_NOSIGNAL;
30398 if ac_fn_c_try_compile "$LINENO"; then :
30400 curl_cv_msg_nosignal="yes"
30404 curl_cv_msg_nosignal="no"
30407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
30411 $as_echo "$curl_cv_msg_nosignal" >&6; }
30412 case "$curl_cv_msg_nosignal" in
30415 cat >>confdefs.h <<_ACEOF
30416 #define HAVE_MSG_NOSIGNAL 1
30424 curl_includes_unistd="\
30425 /* includes start */
30426 #ifdef HAVE_SYS_TYPES_H
30427 # include <sys/types.h>
30429 #ifdef HAVE_UNISTD_H
30430 # include <unistd.h>
30432 /* includes end */"
30433 for ac_header in sys/types.h unistd.h
30435 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30436 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
30438 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30439 cat >>confdefs.h <<_ACEOF
30440 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30450 tst_links_alarm="unknown"
30451 tst_proto_alarm="unknown"
30452 tst_compi_alarm="unknown"
30453 tst_allow_alarm="unknown"
30455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
30456 $as_echo_n "checking if alarm can be linked... " >&6; }
30457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30458 /* end confdefs.h. */
30461 #define alarm innocuous_alarm
30463 # include <limits.h>
30465 # include <assert.h>
30472 #if defined __stub_alarm || defined __stub___alarm
30484 if ac_fn_c_try_link "$LINENO"; then :
30486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30487 $as_echo "yes" >&6; }
30488 tst_links_alarm="yes"
30492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30493 $as_echo "no" >&6; }
30494 tst_links_alarm="no"
30497 rm -f core conftest.err conftest.$ac_objext \
30498 conftest$ac_exeext conftest.$ac_ext
30500 if test "$tst_links_alarm" = "yes"; then
30501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
30502 $as_echo_n "checking if alarm is prototyped... " >&6; }
30503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30504 /* end confdefs.h. */
30506 $curl_includes_unistd
30509 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30510 $EGREP "alarm" >/dev/null 2>&1; then :
30512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30513 $as_echo "yes" >&6; }
30514 tst_proto_alarm="yes"
30518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30519 $as_echo "no" >&6; }
30520 tst_proto_alarm="no"
30527 if test "$tst_proto_alarm" = "yes"; then
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
30529 $as_echo_n "checking if alarm is compilable... " >&6; }
30530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30531 /* end confdefs.h. */
30534 $curl_includes_unistd
30547 if ac_fn_c_try_compile "$LINENO"; then :
30549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30550 $as_echo "yes" >&6; }
30551 tst_compi_alarm="yes"
30555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30556 $as_echo "no" >&6; }
30557 tst_compi_alarm="no"
30560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30563 if test "$tst_compi_alarm" = "yes"; then
30564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
30565 $as_echo_n "checking if alarm usage allowed... " >&6; }
30566 if test "x$curl_disallow_alarm" != "xyes"; then
30567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30568 $as_echo "yes" >&6; }
30569 tst_allow_alarm="yes"
30571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30572 $as_echo "no" >&6; }
30573 tst_allow_alarm="no"
30577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
30578 $as_echo_n "checking if alarm might be used... " >&6; }
30579 if test "$tst_links_alarm" = "yes" &&
30580 test "$tst_proto_alarm" = "yes" &&
30581 test "$tst_compi_alarm" = "yes" &&
30582 test "$tst_allow_alarm" = "yes"; then
30583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30584 $as_echo "yes" >&6; }
30586 cat >>confdefs.h <<_ACEOF
30587 #define HAVE_ALARM 1
30590 curl_cv_func_alarm="yes"
30592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30593 $as_echo "no" >&6; }
30594 curl_cv_func_alarm="no"
30598 curl_includes_string="\
30599 /* includes start */
30600 #ifdef HAVE_SYS_TYPES_H
30601 # include <sys/types.h>
30603 #ifdef HAVE_STRING_H
30604 # include <string.h>
30606 #ifdef HAVE_STRINGS_H
30607 # include <strings.h>
30609 /* includes end */"
30610 for ac_header in sys/types.h string.h strings.h
30612 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30613 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
30615 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30616 cat >>confdefs.h <<_ACEOF
30617 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30626 curl_includes_libgen="\
30627 /* includes start */
30628 #ifdef HAVE_SYS_TYPES_H
30629 # include <sys/types.h>
30631 #ifdef HAVE_LIBGEN_H
30632 # include <libgen.h>
30634 /* includes end */"
30635 for ac_header in sys/types.h libgen.h
30637 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30638 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
30640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30641 cat >>confdefs.h <<_ACEOF
30642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30652 tst_links_basename="unknown"
30653 tst_proto_basename="unknown"
30654 tst_compi_basename="unknown"
30655 tst_allow_basename="unknown"
30657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
30658 $as_echo_n "checking if basename can be linked... " >&6; }
30659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30660 /* end confdefs.h. */
30663 #define basename innocuous_basename
30665 # include <limits.h>
30667 # include <assert.h>
30674 #if defined __stub_basename || defined __stub___basename
30680 return basename ();
30686 if ac_fn_c_try_link "$LINENO"; then :
30688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30689 $as_echo "yes" >&6; }
30690 tst_links_basename="yes"
30694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30695 $as_echo "no" >&6; }
30696 tst_links_basename="no"
30699 rm -f core conftest.err conftest.$ac_objext \
30700 conftest$ac_exeext conftest.$ac_ext
30702 if test "$tst_links_basename" = "yes"; then
30703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
30704 $as_echo_n "checking if basename is prototyped... " >&6; }
30705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30706 /* end confdefs.h. */
30708 $curl_includes_string
30709 $curl_includes_libgen
30710 $curl_includes_unistd
30713 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30714 $EGREP "basename" >/dev/null 2>&1; then :
30716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30717 $as_echo "yes" >&6; }
30718 tst_proto_basename="yes"
30722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30723 $as_echo "no" >&6; }
30724 tst_proto_basename="no"
30731 if test "$tst_proto_basename" = "yes"; then
30732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
30733 $as_echo_n "checking if basename is compilable... " >&6; }
30734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30735 /* end confdefs.h. */
30738 $curl_includes_string
30739 $curl_includes_libgen
30740 $curl_includes_unistd
30745 if(0 != basename(0))
30753 if ac_fn_c_try_compile "$LINENO"; then :
30755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30756 $as_echo "yes" >&6; }
30757 tst_compi_basename="yes"
30761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30762 $as_echo "no" >&6; }
30763 tst_compi_basename="no"
30766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30769 if test "$tst_compi_basename" = "yes"; then
30770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
30771 $as_echo_n "checking if basename usage allowed... " >&6; }
30772 if test "x$curl_disallow_basename" != "xyes"; then
30773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30774 $as_echo "yes" >&6; }
30775 tst_allow_basename="yes"
30777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30778 $as_echo "no" >&6; }
30779 tst_allow_basename="no"
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
30784 $as_echo_n "checking if basename might be used... " >&6; }
30785 if test "$tst_links_basename" = "yes" &&
30786 test "$tst_proto_basename" = "yes" &&
30787 test "$tst_compi_basename" = "yes" &&
30788 test "$tst_allow_basename" = "yes"; then
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30790 $as_echo "yes" >&6; }
30792 cat >>confdefs.h <<_ACEOF
30793 #define HAVE_BASENAME 1
30796 curl_cv_func_basename="yes"
30798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30799 $as_echo "no" >&6; }
30800 curl_cv_func_basename="no"
30804 curl_includes_socket="\
30805 /* includes start */
30806 #ifdef HAVE_SYS_TYPES_H
30807 # include <sys/types.h>
30809 #ifdef HAVE_SOCKET_H
30810 # include <socket.h>
30812 /* includes end */"
30813 for ac_header in sys/types.h socket.h
30815 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30816 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
30818 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30819 cat >>confdefs.h <<_ACEOF
30820 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30830 tst_links_closesocket="unknown"
30831 tst_proto_closesocket="unknown"
30832 tst_compi_closesocket="unknown"
30833 tst_allow_closesocket="unknown"
30835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
30836 $as_echo_n "checking if closesocket can be linked... " >&6; }
30837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30838 /* end confdefs.h. */
30841 $curl_includes_winsock2
30842 $curl_includes_socket
30847 if(0 != closesocket(0))
30855 if ac_fn_c_try_link "$LINENO"; then :
30857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30858 $as_echo "yes" >&6; }
30859 tst_links_closesocket="yes"
30863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30864 $as_echo "no" >&6; }
30865 tst_links_closesocket="no"
30868 rm -f core conftest.err conftest.$ac_objext \
30869 conftest$ac_exeext conftest.$ac_ext
30871 if test "$tst_links_closesocket" = "yes"; then
30872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
30873 $as_echo_n "checking if closesocket is prototyped... " >&6; }
30874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30875 /* end confdefs.h. */
30877 $curl_includes_winsock2
30878 $curl_includes_socket
30881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30882 $EGREP "closesocket" >/dev/null 2>&1; then :
30884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30885 $as_echo "yes" >&6; }
30886 tst_proto_closesocket="yes"
30890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30891 $as_echo "no" >&6; }
30892 tst_proto_closesocket="no"
30899 if test "$tst_proto_closesocket" = "yes"; then
30900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
30901 $as_echo_n "checking if closesocket is compilable... " >&6; }
30902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30903 /* end confdefs.h. */
30906 $curl_includes_winsock2
30907 $curl_includes_socket
30912 if(0 != closesocket(0))
30920 if ac_fn_c_try_compile "$LINENO"; then :
30922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30923 $as_echo "yes" >&6; }
30924 tst_compi_closesocket="yes"
30928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30929 $as_echo "no" >&6; }
30930 tst_compi_closesocket="no"
30933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30936 if test "$tst_compi_closesocket" = "yes"; then
30937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
30938 $as_echo_n "checking if closesocket usage allowed... " >&6; }
30939 if test "x$curl_disallow_closesocket" != "xyes"; then
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30941 $as_echo "yes" >&6; }
30942 tst_allow_closesocket="yes"
30944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30945 $as_echo "no" >&6; }
30946 tst_allow_closesocket="no"
30950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
30951 $as_echo_n "checking if closesocket might be used... " >&6; }
30952 if test "$tst_links_closesocket" = "yes" &&
30953 test "$tst_proto_closesocket" = "yes" &&
30954 test "$tst_compi_closesocket" = "yes" &&
30955 test "$tst_allow_closesocket" = "yes"; then
30956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30957 $as_echo "yes" >&6; }
30959 cat >>confdefs.h <<_ACEOF
30960 #define HAVE_CLOSESOCKET 1
30963 curl_cv_func_closesocket="yes"
30965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30966 $as_echo "no" >&6; }
30967 curl_cv_func_closesocket="no"
30972 tst_links_closesocket_camel="unknown"
30973 tst_proto_closesocket_camel="unknown"
30974 tst_compi_closesocket_camel="unknown"
30975 tst_allow_closesocket_camel="unknown"
30977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
30978 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
30979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30980 /* end confdefs.h. */
30983 $curl_includes_sys_socket
30988 if(0 != CloseSocket(0))
30996 if ac_fn_c_try_link "$LINENO"; then :
30998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30999 $as_echo "yes" >&6; }
31000 tst_links_closesocket_camel="yes"
31004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31005 $as_echo "no" >&6; }
31006 tst_links_closesocket_camel="no"
31009 rm -f core conftest.err conftest.$ac_objext \
31010 conftest$ac_exeext conftest.$ac_ext
31012 if test "$tst_links_closesocket_camel" = "yes"; then
31013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
31014 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
31015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31016 /* end confdefs.h. */
31018 $curl_includes_sys_socket
31021 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31022 $EGREP "CloseSocket" >/dev/null 2>&1; then :
31024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31025 $as_echo "yes" >&6; }
31026 tst_proto_closesocket_camel="yes"
31030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31031 $as_echo "no" >&6; }
31032 tst_proto_closesocket_camel="no"
31039 if test "$tst_proto_closesocket_camel" = "yes"; then
31040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
31041 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
31042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31043 /* end confdefs.h. */
31046 $curl_includes_sys_socket
31051 if(0 != CloseSocket(0))
31059 if ac_fn_c_try_compile "$LINENO"; then :
31061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31062 $as_echo "yes" >&6; }
31063 tst_compi_closesocket_camel="yes"
31067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31068 $as_echo "no" >&6; }
31069 tst_compi_closesocket_camel="no"
31072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31075 if test "$tst_compi_closesocket_camel" = "yes"; then
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
31077 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
31078 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
31079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31080 $as_echo "yes" >&6; }
31081 tst_allow_closesocket_camel="yes"
31083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31084 $as_echo "no" >&6; }
31085 tst_allow_closesocket_camel="no"
31089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
31090 $as_echo_n "checking if CloseSocket might be used... " >&6; }
31091 if test "$tst_links_closesocket_camel" = "yes" &&
31092 test "$tst_proto_closesocket_camel" = "yes" &&
31093 test "$tst_compi_closesocket_camel" = "yes" &&
31094 test "$tst_allow_closesocket_camel" = "yes"; then
31095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31096 $as_echo "yes" >&6; }
31098 cat >>confdefs.h <<_ACEOF
31099 #define HAVE_CLOSESOCKET_CAMEL 1
31102 curl_cv_func_closesocket_camel="yes"
31104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31105 $as_echo "no" >&6; }
31106 curl_cv_func_closesocket_camel="no"
31111 tst_links_connect="unknown"
31112 tst_proto_connect="unknown"
31113 tst_compi_connect="unknown"
31114 tst_allow_connect="unknown"
31116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
31117 $as_echo_n "checking if connect can be linked... " >&6; }
31118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31119 /* end confdefs.h. */
31122 $curl_includes_winsock2
31123 $curl_includes_sys_socket
31124 $curl_includes_socket
31129 if(0 != connect(0, 0, 0))
31137 if ac_fn_c_try_link "$LINENO"; then :
31139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31140 $as_echo "yes" >&6; }
31141 tst_links_connect="yes"
31145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31146 $as_echo "no" >&6; }
31147 tst_links_connect="no"
31150 rm -f core conftest.err conftest.$ac_objext \
31151 conftest$ac_exeext conftest.$ac_ext
31153 if test "$tst_links_connect" = "yes"; then
31154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
31155 $as_echo_n "checking if connect is prototyped... " >&6; }
31156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31157 /* end confdefs.h. */
31159 $curl_includes_winsock2
31160 $curl_includes_sys_socket
31161 $curl_includes_socket
31164 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31165 $EGREP "connect" >/dev/null 2>&1; then :
31167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31168 $as_echo "yes" >&6; }
31169 tst_proto_connect="yes"
31173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31174 $as_echo "no" >&6; }
31175 tst_proto_connect="no"
31182 if test "$tst_proto_connect" = "yes"; then
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
31184 $as_echo_n "checking if connect is compilable... " >&6; }
31185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31186 /* end confdefs.h. */
31189 $curl_includes_winsock2
31190 $curl_includes_sys_socket
31191 $curl_includes_socket
31196 if(0 != connect(0, 0, 0))
31204 if ac_fn_c_try_compile "$LINENO"; then :
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31207 $as_echo "yes" >&6; }
31208 tst_compi_connect="yes"
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31213 $as_echo "no" >&6; }
31214 tst_compi_connect="no"
31217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31220 if test "$tst_compi_connect" = "yes"; then
31221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
31222 $as_echo_n "checking if connect usage allowed... " >&6; }
31223 if test "x$curl_disallow_connect" != "xyes"; then
31224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31225 $as_echo "yes" >&6; }
31226 tst_allow_connect="yes"
31228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31229 $as_echo "no" >&6; }
31230 tst_allow_connect="no"
31234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
31235 $as_echo_n "checking if connect might be used... " >&6; }
31236 if test "$tst_links_connect" = "yes" &&
31237 test "$tst_proto_connect" = "yes" &&
31238 test "$tst_compi_connect" = "yes" &&
31239 test "$tst_allow_connect" = "yes"; then
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31241 $as_echo "yes" >&6; }
31243 cat >>confdefs.h <<_ACEOF
31244 #define HAVE_CONNECT 1
31247 curl_cv_func_connect="yes"
31249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31250 $as_echo "no" >&6; }
31251 curl_cv_func_connect="no"
31255 curl_includes_fcntl="\
31256 /* includes start */
31257 #ifdef HAVE_SYS_TYPES_H
31258 # include <sys/types.h>
31260 #ifdef HAVE_UNISTD_H
31261 # include <unistd.h>
31263 #ifdef HAVE_FCNTL_H
31264 # include <fcntl.h>
31266 /* includes end */"
31267 for ac_header in sys/types.h unistd.h fcntl.h
31269 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31270 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
31272 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31273 cat >>confdefs.h <<_ACEOF
31274 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31284 tst_links_fcntl="unknown"
31285 tst_proto_fcntl="unknown"
31286 tst_compi_fcntl="unknown"
31287 tst_allow_fcntl="unknown"
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
31290 $as_echo_n "checking if fcntl can be linked... " >&6; }
31291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31292 /* end confdefs.h. */
31295 #define fcntl innocuous_fcntl
31297 # include <limits.h>
31299 # include <assert.h>
31306 #if defined __stub_fcntl || defined __stub___fcntl
31318 if ac_fn_c_try_link "$LINENO"; then :
31320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31321 $as_echo "yes" >&6; }
31322 tst_links_fcntl="yes"
31326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31327 $as_echo "no" >&6; }
31328 tst_links_fcntl="no"
31331 rm -f core conftest.err conftest.$ac_objext \
31332 conftest$ac_exeext conftest.$ac_ext
31334 if test "$tst_links_fcntl" = "yes"; then
31335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
31336 $as_echo_n "checking if fcntl is prototyped... " >&6; }
31337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31338 /* end confdefs.h. */
31340 $curl_includes_fcntl
31343 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31344 $EGREP "fcntl" >/dev/null 2>&1; then :
31346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31347 $as_echo "yes" >&6; }
31348 tst_proto_fcntl="yes"
31352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31353 $as_echo "no" >&6; }
31354 tst_proto_fcntl="no"
31361 if test "$tst_proto_fcntl" = "yes"; then
31362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
31363 $as_echo_n "checking if fcntl is compilable... " >&6; }
31364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31365 /* end confdefs.h. */
31368 $curl_includes_fcntl
31373 if(0 != fcntl(0, 0, 0))
31381 if ac_fn_c_try_compile "$LINENO"; then :
31383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31384 $as_echo "yes" >&6; }
31385 tst_compi_fcntl="yes"
31389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31390 $as_echo "no" >&6; }
31391 tst_compi_fcntl="no"
31394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31397 if test "$tst_compi_fcntl" = "yes"; then
31398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
31399 $as_echo_n "checking if fcntl usage allowed... " >&6; }
31400 if test "x$curl_disallow_fcntl" != "xyes"; then
31401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31402 $as_echo "yes" >&6; }
31403 tst_allow_fcntl="yes"
31405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31406 $as_echo "no" >&6; }
31407 tst_allow_fcntl="no"
31411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
31412 $as_echo_n "checking if fcntl might be used... " >&6; }
31413 if test "$tst_links_fcntl" = "yes" &&
31414 test "$tst_proto_fcntl" = "yes" &&
31415 test "$tst_compi_fcntl" = "yes" &&
31416 test "$tst_allow_fcntl" = "yes"; then
31417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31418 $as_echo "yes" >&6; }
31420 cat >>confdefs.h <<_ACEOF
31421 #define HAVE_FCNTL 1
31424 curl_cv_func_fcntl="yes"
31427 tst_compi_fcntl_o_nonblock="unknown"
31428 tst_allow_fcntl_o_nonblock="unknown"
31431 sunos4* | aix3* | beos*)
31432 curl_disallow_fcntl_o_nonblock="yes"
31436 if test "$curl_cv_func_fcntl" = "yes"; then
31437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
31438 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
31439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31440 /* end confdefs.h. */
31443 $curl_includes_fcntl
31449 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
31457 if ac_fn_c_try_compile "$LINENO"; then :
31459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31460 $as_echo "yes" >&6; }
31461 tst_compi_fcntl_o_nonblock="yes"
31465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31466 $as_echo "no" >&6; }
31467 tst_compi_fcntl_o_nonblock="no"
31470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31473 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
31474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
31475 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
31476 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31478 $as_echo "yes" >&6; }
31479 tst_allow_fcntl_o_nonblock="yes"
31481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31482 $as_echo "no" >&6; }
31483 tst_allow_fcntl_o_nonblock="no"
31487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
31488 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
31489 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
31490 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
31491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31492 $as_echo "yes" >&6; }
31494 cat >>confdefs.h <<_ACEOF
31495 #define HAVE_FCNTL_O_NONBLOCK 1
31498 curl_cv_func_fcntl_o_nonblock="yes"
31500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31501 $as_echo "no" >&6; }
31502 curl_cv_func_fcntl_o_nonblock="no"
31506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31507 $as_echo "no" >&6; }
31508 curl_cv_func_fcntl="no"
31512 curl_includes_stdio="\
31513 /* includes start */
31514 #ifdef HAVE_SYS_TYPES_H
31515 # include <sys/types.h>
31517 #ifdef HAVE_STDIO_H
31518 # include <stdio.h>
31520 /* includes end */"
31521 for ac_header in sys/types.h stdio.h
31523 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31524 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
31526 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31527 cat >>confdefs.h <<_ACEOF
31528 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31538 tst_links_fdopen="unknown"
31539 tst_proto_fdopen="unknown"
31540 tst_compi_fdopen="unknown"
31541 tst_allow_fdopen="unknown"
31543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
31544 $as_echo_n "checking if fdopen can be linked... " >&6; }
31545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31546 /* end confdefs.h. */
31549 #define fdopen innocuous_fdopen
31551 # include <limits.h>
31553 # include <assert.h>
31560 #if defined __stub_fdopen || defined __stub___fdopen
31572 if ac_fn_c_try_link "$LINENO"; then :
31574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31575 $as_echo "yes" >&6; }
31576 tst_links_fdopen="yes"
31580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31581 $as_echo "no" >&6; }
31582 tst_links_fdopen="no"
31585 rm -f core conftest.err conftest.$ac_objext \
31586 conftest$ac_exeext conftest.$ac_ext
31588 if test "$tst_links_fdopen" = "yes"; then
31589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
31590 $as_echo_n "checking if fdopen is prototyped... " >&6; }
31591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31592 /* end confdefs.h. */
31594 $curl_includes_stdio
31597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31598 $EGREP "fdopen" >/dev/null 2>&1; then :
31600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31601 $as_echo "yes" >&6; }
31602 tst_proto_fdopen="yes"
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31607 $as_echo "no" >&6; }
31608 tst_proto_fdopen="no"
31615 if test "$tst_proto_fdopen" = "yes"; then
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
31617 $as_echo_n "checking if fdopen is compilable... " >&6; }
31618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31619 /* end confdefs.h. */
31622 $curl_includes_stdio
31627 if(0 != fdopen(0, 0))
31635 if ac_fn_c_try_compile "$LINENO"; then :
31637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31638 $as_echo "yes" >&6; }
31639 tst_compi_fdopen="yes"
31643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31644 $as_echo "no" >&6; }
31645 tst_compi_fdopen="no"
31648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31651 if test "$tst_compi_fdopen" = "yes"; then
31652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
31653 $as_echo_n "checking if fdopen usage allowed... " >&6; }
31654 if test "x$curl_disallow_fdopen" != "xyes"; then
31655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31656 $as_echo "yes" >&6; }
31657 tst_allow_fdopen="yes"
31659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660 $as_echo "no" >&6; }
31661 tst_allow_fdopen="no"
31665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
31666 $as_echo_n "checking if fdopen might be used... " >&6; }
31667 if test "$tst_links_fdopen" = "yes" &&
31668 test "$tst_proto_fdopen" = "yes" &&
31669 test "$tst_compi_fdopen" = "yes" &&
31670 test "$tst_allow_fdopen" = "yes"; then
31671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31672 $as_echo "yes" >&6; }
31674 cat >>confdefs.h <<_ACEOF
31675 #define HAVE_FDOPEN 1
31678 curl_cv_func_fdopen="yes"
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31681 $as_echo "no" >&6; }
31682 curl_cv_func_fdopen="no"
31686 curl_includes_netdb="\
31687 /* includes start */
31688 #ifdef HAVE_SYS_TYPES_H
31689 # include <sys/types.h>
31691 #ifdef HAVE_NETDB_H
31692 # include <netdb.h>
31694 /* includes end */"
31695 for ac_header in sys/types.h netdb.h
31697 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31698 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
31700 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31701 cat >>confdefs.h <<_ACEOF
31702 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31712 tst_links_freeaddrinfo="unknown"
31713 tst_proto_freeaddrinfo="unknown"
31714 tst_compi_freeaddrinfo="unknown"
31715 tst_allow_freeaddrinfo="unknown"
31717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
31718 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
31719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31720 /* end confdefs.h. */
31723 $curl_includes_ws2tcpip
31724 $curl_includes_sys_socket
31725 $curl_includes_netdb
31737 if ac_fn_c_try_link "$LINENO"; then :
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31740 $as_echo "yes" >&6; }
31741 tst_links_freeaddrinfo="yes"
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31746 $as_echo "no" >&6; }
31747 tst_links_freeaddrinfo="no"
31750 rm -f core conftest.err conftest.$ac_objext \
31751 conftest$ac_exeext conftest.$ac_ext
31753 if test "$tst_links_freeaddrinfo" = "yes"; then
31754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
31755 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
31756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31757 /* end confdefs.h. */
31759 $curl_includes_ws2tcpip
31760 $curl_includes_sys_socket
31761 $curl_includes_netdb
31764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31765 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31768 $as_echo "yes" >&6; }
31769 tst_proto_freeaddrinfo="yes"
31773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31774 $as_echo "no" >&6; }
31775 tst_proto_freeaddrinfo="no"
31782 if test "$tst_proto_freeaddrinfo" = "yes"; then
31783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
31784 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
31785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31786 /* end confdefs.h. */
31789 $curl_includes_ws2tcpip
31790 $curl_includes_sys_socket
31791 $curl_includes_netdb
31803 if ac_fn_c_try_compile "$LINENO"; then :
31805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31806 $as_echo "yes" >&6; }
31807 tst_compi_freeaddrinfo="yes"
31811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31812 $as_echo "no" >&6; }
31813 tst_compi_freeaddrinfo="no"
31816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31819 if test "$tst_compi_freeaddrinfo" = "yes"; then
31820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
31821 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
31822 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
31823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31824 $as_echo "yes" >&6; }
31825 tst_allow_freeaddrinfo="yes"
31827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31828 $as_echo "no" >&6; }
31829 tst_allow_freeaddrinfo="no"
31833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
31834 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
31835 if test "$tst_links_freeaddrinfo" = "yes" &&
31836 test "$tst_proto_freeaddrinfo" = "yes" &&
31837 test "$tst_compi_freeaddrinfo" = "yes" &&
31838 test "$tst_allow_freeaddrinfo" = "yes"; then
31839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31840 $as_echo "yes" >&6; }
31842 cat >>confdefs.h <<_ACEOF
31843 #define HAVE_FREEADDRINFO 1
31846 curl_cv_func_freeaddrinfo="yes"
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31849 $as_echo "no" >&6; }
31850 curl_cv_func_freeaddrinfo="no"
31854 curl_includes_ifaddrs="\
31855 /* includes start */
31856 #ifdef HAVE_SYS_TYPES_H
31857 # include <sys/types.h>
31859 #ifdef HAVE_SYS_SOCKET_H
31860 # include <sys/socket.h>
31862 #ifdef HAVE_NETINET_IN_H
31863 # include <netinet/in.h>
31865 #ifdef HAVE_IFADDRS_H
31866 # include <ifaddrs.h>
31868 /* includes end */"
31869 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
31871 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
31872 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
31874 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
31875 cat >>confdefs.h <<_ACEOF
31876 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
31886 tst_links_freeifaddrs="unknown"
31887 tst_proto_freeifaddrs="unknown"
31888 tst_compi_freeifaddrs="unknown"
31889 tst_allow_freeifaddrs="unknown"
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
31892 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
31893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31894 /* end confdefs.h. */
31897 #define freeifaddrs innocuous_freeifaddrs
31899 # include <limits.h>
31901 # include <assert.h>
31907 char freeifaddrs ();
31908 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
31914 return freeifaddrs ();
31920 if ac_fn_c_try_link "$LINENO"; then :
31922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31923 $as_echo "yes" >&6; }
31924 tst_links_freeifaddrs="yes"
31928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31929 $as_echo "no" >&6; }
31930 tst_links_freeifaddrs="no"
31933 rm -f core conftest.err conftest.$ac_objext \
31934 conftest$ac_exeext conftest.$ac_ext
31936 if test "$tst_links_freeifaddrs" = "yes"; then
31937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
31938 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
31939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31940 /* end confdefs.h. */
31942 $curl_includes_ifaddrs
31945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31946 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31949 $as_echo "yes" >&6; }
31950 tst_proto_freeifaddrs="yes"
31954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31955 $as_echo "no" >&6; }
31956 tst_proto_freeifaddrs="no"
31963 if test "$tst_proto_freeifaddrs" = "yes"; then
31964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
31965 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
31966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31967 /* end confdefs.h. */
31970 $curl_includes_ifaddrs
31982 if ac_fn_c_try_compile "$LINENO"; then :
31984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31985 $as_echo "yes" >&6; }
31986 tst_compi_freeifaddrs="yes"
31990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31991 $as_echo "no" >&6; }
31992 tst_compi_freeifaddrs="no"
31995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31998 if test "$tst_compi_freeifaddrs" = "yes"; then
31999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
32000 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
32001 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
32002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32003 $as_echo "yes" >&6; }
32004 tst_allow_freeifaddrs="yes"
32006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32007 $as_echo "no" >&6; }
32008 tst_allow_freeifaddrs="no"
32012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
32013 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
32014 if test "$tst_links_freeifaddrs" = "yes" &&
32015 test "$tst_proto_freeifaddrs" = "yes" &&
32016 test "$tst_compi_freeifaddrs" = "yes" &&
32017 test "$tst_allow_freeifaddrs" = "yes"; then
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32019 $as_echo "yes" >&6; }
32021 cat >>confdefs.h <<_ACEOF
32022 #define HAVE_FREEIFADDRS 1
32025 curl_cv_func_freeifaddrs="yes"
32027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32028 $as_echo "no" >&6; }
32029 curl_cv_func_freeifaddrs="no"
32033 curl_includes_sys_xattr="\
32034 /* includes start */
32035 #ifdef HAVE_SYS_TYPES_H
32036 # include <sys/types.h>
32038 #ifdef HAVE_SYS_XATTR_H
32039 # include <sys/xattr.h>
32041 /* includes end */"
32042 for ac_header in sys/types.h sys/xattr.h
32044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
32047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32048 cat >>confdefs.h <<_ACEOF
32049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32059 tst_links_fsetxattr="unknown"
32060 tst_proto_fsetxattr="unknown"
32061 tst_compi_fsetxattr="unknown"
32062 tst_allow_fsetxattr="unknown"
32063 tst_nargs_fsetxattr="unknown"
32065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
32066 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
32067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32068 /* end confdefs.h. */
32071 #define fsetxattr innocuous_fsetxattr
32073 # include <limits.h>
32075 # include <assert.h>
32082 #if defined __stub_fsetxattr || defined __stub___fsetxattr
32088 return fsetxattr ();
32094 if ac_fn_c_try_link "$LINENO"; then :
32096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32097 $as_echo "yes" >&6; }
32098 tst_links_fsetxattr="yes"
32102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32103 $as_echo "no" >&6; }
32104 tst_links_fsetxattr="no"
32107 rm -f core conftest.err conftest.$ac_objext \
32108 conftest$ac_exeext conftest.$ac_ext
32110 if test "$tst_links_fsetxattr" = "yes"; then
32111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
32112 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
32113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32114 /* end confdefs.h. */
32116 $curl_includes_sys_xattr
32119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32120 $EGREP "fsetxattr" >/dev/null 2>&1; then :
32122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32123 $as_echo "yes" >&6; }
32124 tst_proto_fsetxattr="yes"
32128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32129 $as_echo "no" >&6; }
32130 tst_proto_fsetxattr="no"
32137 if test "$tst_proto_fsetxattr" = "yes"; then
32138 if test "$tst_nargs_fsetxattr" = "unknown"; then
32139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
32140 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
32141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32142 /* end confdefs.h. */
32145 $curl_includes_sys_xattr
32150 if(0 != fsetxattr(0, 0, 0, 0, 0))
32158 if ac_fn_c_try_compile "$LINENO"; then :
32160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32161 $as_echo "yes" >&6; }
32162 tst_compi_fsetxattr="yes"
32163 tst_nargs_fsetxattr="5"
32167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32168 $as_echo "no" >&6; }
32169 tst_compi_fsetxattr="no"
32172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32174 if test "$tst_nargs_fsetxattr" = "unknown"; then
32175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
32176 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
32177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32178 /* end confdefs.h. */
32181 $curl_includes_sys_xattr
32186 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
32194 if ac_fn_c_try_compile "$LINENO"; then :
32196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32197 $as_echo "yes" >&6; }
32198 tst_compi_fsetxattr="yes"
32199 tst_nargs_fsetxattr="6"
32203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32204 $as_echo "no" >&6; }
32205 tst_compi_fsetxattr="no"
32208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
32211 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
32212 if test "$tst_compi_fsetxattr" = "yes"; then
32213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32214 $as_echo "yes" >&6; }
32216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32217 $as_echo "no" >&6; }
32221 if test "$tst_compi_fsetxattr" = "yes"; then
32222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
32223 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
32224 if test "x$curl_disallow_fsetxattr" != "xyes"; then
32225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32226 $as_echo "yes" >&6; }
32227 tst_allow_fsetxattr="yes"
32229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32230 $as_echo "no" >&6; }
32231 tst_allow_fsetxattr="no"
32235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
32236 $as_echo_n "checking if fsetxattr might be used... " >&6; }
32237 if test "$tst_links_fsetxattr" = "yes" &&
32238 test "$tst_proto_fsetxattr" = "yes" &&
32239 test "$tst_compi_fsetxattr" = "yes" &&
32240 test "$tst_allow_fsetxattr" = "yes"; then
32241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32242 $as_echo "yes" >&6; }
32244 cat >>confdefs.h <<_ACEOF
32245 #define HAVE_FSETXATTR 1
32249 if test "$tst_nargs_fsetxattr" -eq "5"; then
32251 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
32253 elif test "$tst_nargs_fsetxattr" -eq "6"; then
32255 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
32259 curl_cv_func_fsetxattr="yes"
32261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32262 $as_echo "no" >&6; }
32263 curl_cv_func_fsetxattr="no"
32268 tst_links_ftruncate="unknown"
32269 tst_proto_ftruncate="unknown"
32270 tst_compi_ftruncate="unknown"
32271 tst_allow_ftruncate="unknown"
32273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
32274 $as_echo_n "checking if ftruncate can be linked... " >&6; }
32275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32276 /* end confdefs.h. */
32279 #define ftruncate innocuous_ftruncate
32281 # include <limits.h>
32283 # include <assert.h>
32290 #if defined __stub_ftruncate || defined __stub___ftruncate
32296 return ftruncate ();
32302 if ac_fn_c_try_link "$LINENO"; then :
32304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32305 $as_echo "yes" >&6; }
32306 tst_links_ftruncate="yes"
32310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32311 $as_echo "no" >&6; }
32312 tst_links_ftruncate="no"
32315 rm -f core conftest.err conftest.$ac_objext \
32316 conftest$ac_exeext conftest.$ac_ext
32318 if test "$tst_links_ftruncate" = "yes"; then
32319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
32320 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
32321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32322 /* end confdefs.h. */
32324 $curl_includes_unistd
32327 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32328 $EGREP "ftruncate" >/dev/null 2>&1; then :
32330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32331 $as_echo "yes" >&6; }
32332 tst_proto_ftruncate="yes"
32336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32337 $as_echo "no" >&6; }
32338 tst_proto_ftruncate="no"
32345 if test "$tst_proto_ftruncate" = "yes"; then
32346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
32347 $as_echo_n "checking if ftruncate is compilable... " >&6; }
32348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32349 /* end confdefs.h. */
32352 $curl_includes_unistd
32357 if(0 != ftruncate(0, 0))
32365 if ac_fn_c_try_compile "$LINENO"; then :
32367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32368 $as_echo "yes" >&6; }
32369 tst_compi_ftruncate="yes"
32373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32374 $as_echo "no" >&6; }
32375 tst_compi_ftruncate="no"
32378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32381 if test "$tst_compi_ftruncate" = "yes"; then
32382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
32383 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
32384 if test "x$curl_disallow_ftruncate" != "xyes"; then
32385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32386 $as_echo "yes" >&6; }
32387 tst_allow_ftruncate="yes"
32389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32390 $as_echo "no" >&6; }
32391 tst_allow_ftruncate="no"
32395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
32396 $as_echo_n "checking if ftruncate might be used... " >&6; }
32397 if test "$tst_links_ftruncate" = "yes" &&
32398 test "$tst_proto_ftruncate" = "yes" &&
32399 test "$tst_compi_ftruncate" = "yes" &&
32400 test "$tst_allow_ftruncate" = "yes"; then
32401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32402 $as_echo "yes" >&6; }
32404 cat >>confdefs.h <<_ACEOF
32405 #define HAVE_FTRUNCATE 1
32408 curl_cv_func_ftruncate="yes"
32410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32411 $as_echo "no" >&6; }
32412 curl_cv_func_ftruncate="no"
32416 curl_includes_stdlib="\
32417 /* includes start */
32418 #ifdef HAVE_SYS_TYPES_H
32419 # include <sys/types.h>
32421 #ifdef HAVE_STDLIB_H
32422 # include <stdlib.h>
32424 /* includes end */"
32425 for ac_header in sys/types.h stdlib.h
32427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32428 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
32430 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32431 cat >>confdefs.h <<_ACEOF
32432 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32442 tst_links_getaddrinfo="unknown"
32443 tst_proto_getaddrinfo="unknown"
32444 tst_compi_getaddrinfo="unknown"
32445 tst_works_getaddrinfo="unknown"
32446 tst_allow_getaddrinfo="unknown"
32447 tst_tsafe_getaddrinfo="unknown"
32449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
32450 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
32451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h. */
32455 $curl_includes_ws2tcpip
32456 $curl_includes_sys_socket
32457 $curl_includes_netdb
32462 if(0 != getaddrinfo(0, 0, 0, 0))
32470 if ac_fn_c_try_link "$LINENO"; then :
32472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32473 $as_echo "yes" >&6; }
32474 tst_links_getaddrinfo="yes"
32478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32479 $as_echo "no" >&6; }
32480 tst_links_getaddrinfo="no"
32483 rm -f core conftest.err conftest.$ac_objext \
32484 conftest$ac_exeext conftest.$ac_ext
32486 if test "$tst_links_getaddrinfo" = "yes"; then
32487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
32488 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
32489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32490 /* end confdefs.h. */
32492 $curl_includes_ws2tcpip
32493 $curl_includes_sys_socket
32494 $curl_includes_netdb
32497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32498 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
32500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32501 $as_echo "yes" >&6; }
32502 tst_proto_getaddrinfo="yes"
32506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32507 $as_echo "no" >&6; }
32508 tst_proto_getaddrinfo="no"
32515 if test "$tst_proto_getaddrinfo" = "yes"; then
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
32517 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
32518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32519 /* end confdefs.h. */
32522 $curl_includes_ws2tcpip
32523 $curl_includes_sys_socket
32524 $curl_includes_netdb
32529 if(0 != getaddrinfo(0, 0, 0, 0))
32537 if ac_fn_c_try_compile "$LINENO"; then :
32539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32540 $as_echo "yes" >&6; }
32541 tst_compi_getaddrinfo="yes"
32545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32546 $as_echo "no" >&6; }
32547 tst_compi_getaddrinfo="no"
32550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32553 if test "x$cross_compiling" != "xyes" &&
32554 test "$tst_compi_getaddrinfo" = "yes"; then
32555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
32556 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
32557 if test "$cross_compiling" = yes; then :
32558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32560 as_fn_error $? "cannot run test program while cross compiling
32561 See \`config.log' for more details" "$LINENO" 5; }
32563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32564 /* end confdefs.h. */
32567 $curl_includes_ws2tcpip
32568 $curl_includes_stdlib
32569 $curl_includes_string
32570 $curl_includes_sys_socket
32571 $curl_includes_netdb
32576 struct addrinfo hints;
32577 struct addrinfo *ai = 0;
32580 #ifdef HAVE_WINSOCK2_H
32582 if (WSAStartup(MAKEWORD(2,2), &wsa))
32586 memset(&hints, 0, sizeof(hints));
32587 hints.ai_flags = AI_NUMERICHOST;
32588 hints.ai_family = AF_UNSPEC;
32589 hints.ai_socktype = SOCK_STREAM;
32590 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
32592 exit(1); /* fail */
32601 if ac_fn_c_try_run "$LINENO"; then :
32603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32604 $as_echo "yes" >&6; }
32605 tst_works_getaddrinfo="yes"
32609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32610 $as_echo "no" >&6; }
32611 tst_works_getaddrinfo="no"
32614 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32615 conftest.$ac_objext conftest.beam conftest.$ac_ext
32620 if test "$tst_compi_getaddrinfo" = "yes" &&
32621 test "$tst_works_getaddrinfo" != "no"; then
32622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
32623 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
32624 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
32625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32626 $as_echo "yes" >&6; }
32627 tst_allow_getaddrinfo="yes"
32629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32630 $as_echo "no" >&6; }
32631 tst_allow_getaddrinfo="no"
32635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
32636 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
32637 if test "$tst_links_getaddrinfo" = "yes" &&
32638 test "$tst_proto_getaddrinfo" = "yes" &&
32639 test "$tst_compi_getaddrinfo" = "yes" &&
32640 test "$tst_allow_getaddrinfo" = "yes" &&
32641 test "$tst_works_getaddrinfo" != "no"; then
32642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32643 $as_echo "yes" >&6; }
32645 cat >>confdefs.h <<_ACEOF
32646 #define HAVE_GETADDRINFO 1
32649 curl_cv_func_getaddrinfo="yes"
32651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32652 $as_echo "no" >&6; }
32653 curl_cv_func_getaddrinfo="no"
32654 curl_cv_func_getaddrinfo_threadsafe="no"
32657 if test "$curl_cv_func_getaddrinfo" = "yes"; then
32658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
32659 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
32661 aix[1234].* | aix5.[01].*)
32662 tst_tsafe_getaddrinfo="no"
32665 tst_tsafe_getaddrinfo="yes"
32668 tst_tsafe_getaddrinfo="no"
32671 tst_tsafe_getaddrinfo="yes"
32673 freebsd[1234].* | freebsd5.[1234]*)
32674 tst_tsafe_getaddrinfo="no"
32677 tst_tsafe_getaddrinfo="yes"
32679 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
32680 tst_tsafe_getaddrinfo="no"
32683 tst_tsafe_getaddrinfo="yes"
32686 tst_tsafe_getaddrinfo="no"
32689 tst_tsafe_getaddrinfo="yes"
32692 tst_tsafe_getaddrinfo="no"
32695 tst_tsafe_getaddrinfo="yes"
32698 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
32699 test "$curl_cv_native_windows" = "yes"; then
32700 tst_tsafe_getaddrinfo="yes"
32702 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
32705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32706 /* end confdefs.h. */
32709 $curl_includes_sys_socket
32710 $curl_includes_netdb
32717 force compilation error
32723 if ac_fn_c_try_compile "$LINENO"; then :
32725 tst_symbol_defined="yes"
32729 tst_symbol_defined="no"
32732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32733 if test "$tst_symbol_defined" = "yes"; then
32734 curl_cv_have_def_h_errno=yes
32737 curl_cv_have_def_h_errno=no
32741 if test "$curl_cv_have_def_h_errno" = "yes"; then
32742 tst_h_errno_macro="yes"
32744 tst_h_errno_macro="no"
32746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32747 /* end confdefs.h. */
32750 $curl_includes_sys_socket
32751 $curl_includes_netdb
32765 if ac_fn_c_try_compile "$LINENO"; then :
32767 tst_h_errno_modifiable_lvalue="yes"
32771 tst_h_errno_modifiable_lvalue="no"
32774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32776 /* end confdefs.h. */
32783 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
32785 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
32788 force compilation error
32796 if ac_fn_c_try_compile "$LINENO"; then :
32798 tst_h_errno_sbs_issue_7="yes"
32802 tst_h_errno_sbs_issue_7="no"
32805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32806 if test "$tst_h_errno_macro" = "no" &&
32807 test "$tst_h_errno_modifiable_lvalue" = "no" &&
32808 test "$tst_h_errno_sbs_issue_7" = "no"; then
32809 tst_tsafe_getaddrinfo="no"
32811 tst_tsafe_getaddrinfo="yes"
32814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
32815 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
32816 if test "$tst_tsafe_getaddrinfo" = "yes"; then
32818 cat >>confdefs.h <<_ACEOF
32819 #define HAVE_GETADDRINFO_THREADSAFE 1
32822 curl_cv_func_getaddrinfo_threadsafe="yes"
32824 curl_cv_func_getaddrinfo_threadsafe="no"
32830 tst_links_gai_strerror="unknown"
32831 tst_proto_gai_strerror="unknown"
32832 tst_compi_gai_strerror="unknown"
32833 tst_allow_gai_strerror="unknown"
32835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
32836 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
32837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32838 /* end confdefs.h. */
32841 $curl_includes_winsock2
32842 $curl_includes_netdb
32847 if(0 != gai_strerror(0))
32855 if ac_fn_c_try_link "$LINENO"; then :
32857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32858 $as_echo "yes" >&6; }
32859 tst_links_gai_strerror="yes"
32863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32864 $as_echo "no" >&6; }
32865 tst_links_gai_strerror="no"
32868 rm -f core conftest.err conftest.$ac_objext \
32869 conftest$ac_exeext conftest.$ac_ext
32871 if test "$tst_links_gai_strerror" = "yes"; then
32872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
32873 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
32874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32875 /* end confdefs.h. */
32877 $curl_includes_winsock2
32878 $curl_includes_netdb
32881 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32882 $EGREP "gai_strerror" >/dev/null 2>&1; then :
32884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32885 $as_echo "yes" >&6; }
32886 tst_proto_gai_strerror="yes"
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32891 $as_echo "no" >&6; }
32892 tst_proto_gai_strerror="no"
32899 if test "$tst_proto_gai_strerror" = "yes"; then
32900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
32901 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
32902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32903 /* end confdefs.h. */
32906 $curl_includes_winsock2
32907 $curl_includes_netdb
32912 if(0 != gai_strerror(0))
32920 if ac_fn_c_try_compile "$LINENO"; then :
32922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32923 $as_echo "yes" >&6; }
32924 tst_compi_gai_strerror="yes"
32928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32929 $as_echo "no" >&6; }
32930 tst_compi_gai_strerror="no"
32933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32936 if test "$tst_compi_gai_strerror" = "yes"; then
32937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
32938 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
32939 if test "x$curl_disallow_gai_strerror" != "xyes"; then
32940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32941 $as_echo "yes" >&6; }
32942 tst_allow_gai_strerror="yes"
32944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32945 $as_echo "no" >&6; }
32946 tst_allow_gai_strerror="no"
32950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
32951 $as_echo_n "checking if gai_strerror might be used... " >&6; }
32952 if test "$tst_links_gai_strerror" = "yes" &&
32953 test "$tst_proto_gai_strerror" = "yes" &&
32954 test "$tst_compi_gai_strerror" = "yes" &&
32955 test "$tst_allow_gai_strerror" = "yes"; then
32956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32957 $as_echo "yes" >&6; }
32959 cat >>confdefs.h <<_ACEOF
32960 #define HAVE_GAI_STRERROR 1
32963 curl_cv_func_gai_strerror="yes"
32965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32966 $as_echo "no" >&6; }
32967 curl_cv_func_gai_strerror="no"
32972 tst_links_gethostbyaddr="unknown"
32973 tst_proto_gethostbyaddr="unknown"
32974 tst_compi_gethostbyaddr="unknown"
32975 tst_allow_gethostbyaddr="unknown"
32977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
32978 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
32979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32980 /* end confdefs.h. */
32983 $curl_includes_winsock2
32984 $curl_includes_netdb
32989 if(0 != gethostbyaddr(0, 0, 0))
32997 if ac_fn_c_try_link "$LINENO"; then :
32999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33000 $as_echo "yes" >&6; }
33001 tst_links_gethostbyaddr="yes"
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33006 $as_echo "no" >&6; }
33007 tst_links_gethostbyaddr="no"
33010 rm -f core conftest.err conftest.$ac_objext \
33011 conftest$ac_exeext conftest.$ac_ext
33013 if test "$tst_links_gethostbyaddr" = "yes"; then
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
33015 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
33016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33017 /* end confdefs.h. */
33019 $curl_includes_winsock2
33020 $curl_includes_netdb
33023 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33024 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
33026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33027 $as_echo "yes" >&6; }
33028 tst_proto_gethostbyaddr="yes"
33032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33033 $as_echo "no" >&6; }
33034 tst_proto_gethostbyaddr="no"
33041 if test "$tst_proto_gethostbyaddr" = "yes"; then
33042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
33043 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
33044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33045 /* end confdefs.h. */
33048 $curl_includes_winsock2
33049 $curl_includes_netdb
33054 if(0 != gethostbyaddr(0, 0, 0))
33062 if ac_fn_c_try_compile "$LINENO"; then :
33064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33065 $as_echo "yes" >&6; }
33066 tst_compi_gethostbyaddr="yes"
33070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33071 $as_echo "no" >&6; }
33072 tst_compi_gethostbyaddr="no"
33075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33078 if test "$tst_compi_gethostbyaddr" = "yes"; then
33079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
33080 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
33081 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
33082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33083 $as_echo "yes" >&6; }
33084 tst_allow_gethostbyaddr="yes"
33086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33087 $as_echo "no" >&6; }
33088 tst_allow_gethostbyaddr="no"
33092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
33093 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
33094 if test "$tst_links_gethostbyaddr" = "yes" &&
33095 test "$tst_proto_gethostbyaddr" = "yes" &&
33096 test "$tst_compi_gethostbyaddr" = "yes" &&
33097 test "$tst_allow_gethostbyaddr" = "yes"; then
33098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33099 $as_echo "yes" >&6; }
33101 cat >>confdefs.h <<_ACEOF
33102 #define HAVE_GETHOSTBYADDR 1
33105 curl_cv_func_gethostbyaddr="yes"
33107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33108 $as_echo "no" >&6; }
33109 curl_cv_func_gethostbyaddr="no"
33114 tst_links_gethostbyaddr_r="unknown"
33115 tst_proto_gethostbyaddr_r="unknown"
33116 tst_compi_gethostbyaddr_r="unknown"
33117 tst_allow_gethostbyaddr_r="unknown"
33118 tst_nargs_gethostbyaddr_r="unknown"
33120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
33121 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
33122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33123 /* end confdefs.h. */
33126 #define gethostbyaddr_r innocuous_gethostbyaddr_r
33128 # include <limits.h>
33130 # include <assert.h>
33132 #undef gethostbyaddr_r
33136 char gethostbyaddr_r ();
33137 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
33143 return gethostbyaddr_r ();
33149 if ac_fn_c_try_link "$LINENO"; then :
33151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33152 $as_echo "yes" >&6; }
33153 tst_links_gethostbyaddr_r="yes"
33157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33158 $as_echo "no" >&6; }
33159 tst_links_gethostbyaddr_r="no"
33162 rm -f core conftest.err conftest.$ac_objext \
33163 conftest$ac_exeext conftest.$ac_ext
33165 if test "$tst_links_gethostbyaddr_r" = "yes"; then
33166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
33167 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
33168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33169 /* end confdefs.h. */
33171 $curl_includes_netdb
33174 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33175 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
33177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33178 $as_echo "yes" >&6; }
33179 tst_proto_gethostbyaddr_r="yes"
33183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33184 $as_echo "no" >&6; }
33185 tst_proto_gethostbyaddr_r="no"
33192 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
33193 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
33195 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
33196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33197 /* end confdefs.h. */
33200 $curl_includes_netdb
33205 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
33213 if ac_fn_c_try_compile "$LINENO"; then :
33215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33216 $as_echo "yes" >&6; }
33217 tst_compi_gethostbyaddr_r="yes"
33218 tst_nargs_gethostbyaddr_r="5"
33222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33223 $as_echo "no" >&6; }
33224 tst_compi_gethostbyaddr_r="no"
33227 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33229 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
33231 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
33232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33233 /* end confdefs.h. */
33236 $curl_includes_netdb
33241 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
33249 if ac_fn_c_try_compile "$LINENO"; then :
33251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33252 $as_echo "yes" >&6; }
33253 tst_compi_gethostbyaddr_r="yes"
33254 tst_nargs_gethostbyaddr_r="7"
33258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33259 $as_echo "no" >&6; }
33260 tst_compi_gethostbyaddr_r="no"
33263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33265 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
33266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
33267 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
33268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33269 /* end confdefs.h. */
33272 $curl_includes_netdb
33277 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
33285 if ac_fn_c_try_compile "$LINENO"; then :
33287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33288 $as_echo "yes" >&6; }
33289 tst_compi_gethostbyaddr_r="yes"
33290 tst_nargs_gethostbyaddr_r="8"
33294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33295 $as_echo "no" >&6; }
33296 tst_compi_gethostbyaddr_r="no"
33299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
33302 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
33303 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33305 $as_echo "yes" >&6; }
33307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33308 $as_echo "no" >&6; }
33312 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
33313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
33314 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
33315 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
33316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33317 $as_echo "yes" >&6; }
33318 tst_allow_gethostbyaddr_r="yes"
33320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33321 $as_echo "no" >&6; }
33322 tst_allow_gethostbyaddr_r="no"
33326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
33327 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
33328 if test "$tst_links_gethostbyaddr_r" = "yes" &&
33329 test "$tst_proto_gethostbyaddr_r" = "yes" &&
33330 test "$tst_compi_gethostbyaddr_r" = "yes" &&
33331 test "$tst_allow_gethostbyaddr_r" = "yes"; then
33332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33333 $as_echo "yes" >&6; }
33335 cat >>confdefs.h <<_ACEOF
33336 #define HAVE_GETHOSTBYADDR_R 1
33340 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
33342 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
33344 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
33346 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
33348 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
33350 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
33354 curl_cv_func_gethostbyaddr_r="yes"
33356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33357 $as_echo "no" >&6; }
33358 curl_cv_func_gethostbyaddr_r="no"
33363 tst_links_gethostbyname="unknown"
33364 tst_proto_gethostbyname="unknown"
33365 tst_compi_gethostbyname="unknown"
33366 tst_allow_gethostbyname="unknown"
33368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
33369 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
33370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33371 /* end confdefs.h. */
33374 $curl_includes_winsock2
33375 $curl_includes_netdb
33380 if(0 != gethostbyname(0))
33388 if ac_fn_c_try_link "$LINENO"; then :
33390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33391 $as_echo "yes" >&6; }
33392 tst_links_gethostbyname="yes"
33396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33397 $as_echo "no" >&6; }
33398 tst_links_gethostbyname="no"
33401 rm -f core conftest.err conftest.$ac_objext \
33402 conftest$ac_exeext conftest.$ac_ext
33404 if test "$tst_links_gethostbyname" = "yes"; then
33405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
33406 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
33407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33408 /* end confdefs.h. */
33410 $curl_includes_winsock2
33411 $curl_includes_netdb
33414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33415 $EGREP "gethostbyname" >/dev/null 2>&1; then :
33417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33418 $as_echo "yes" >&6; }
33419 tst_proto_gethostbyname="yes"
33423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33424 $as_echo "no" >&6; }
33425 tst_proto_gethostbyname="no"
33432 if test "$tst_proto_gethostbyname" = "yes"; then
33433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
33434 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
33435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33436 /* end confdefs.h. */
33439 $curl_includes_winsock2
33440 $curl_includes_netdb
33445 if(0 != gethostbyname(0))
33453 if ac_fn_c_try_compile "$LINENO"; then :
33455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33456 $as_echo "yes" >&6; }
33457 tst_compi_gethostbyname="yes"
33461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33462 $as_echo "no" >&6; }
33463 tst_compi_gethostbyname="no"
33466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33469 if test "$tst_compi_gethostbyname" = "yes"; then
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
33471 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
33472 if test "x$curl_disallow_gethostbyname" != "xyes"; then
33473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33474 $as_echo "yes" >&6; }
33475 tst_allow_gethostbyname="yes"
33477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33478 $as_echo "no" >&6; }
33479 tst_allow_gethostbyname="no"
33483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
33484 $as_echo_n "checking if gethostbyname might be used... " >&6; }
33485 if test "$tst_links_gethostbyname" = "yes" &&
33486 test "$tst_proto_gethostbyname" = "yes" &&
33487 test "$tst_compi_gethostbyname" = "yes" &&
33488 test "$tst_allow_gethostbyname" = "yes"; then
33489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33490 $as_echo "yes" >&6; }
33492 cat >>confdefs.h <<_ACEOF
33493 #define HAVE_GETHOSTBYNAME 1
33496 curl_cv_func_gethostbyname="yes"
33498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33499 $as_echo "no" >&6; }
33500 curl_cv_func_gethostbyname="no"
33505 tst_links_gethostbyname_r="unknown"
33506 tst_proto_gethostbyname_r="unknown"
33507 tst_compi_gethostbyname_r="unknown"
33508 tst_allow_gethostbyname_r="unknown"
33509 tst_nargs_gethostbyname_r="unknown"
33511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
33512 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
33513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33514 /* end confdefs.h. */
33517 #define gethostbyname_r innocuous_gethostbyname_r
33519 # include <limits.h>
33521 # include <assert.h>
33523 #undef gethostbyname_r
33527 char gethostbyname_r ();
33528 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
33534 return gethostbyname_r ();
33540 if ac_fn_c_try_link "$LINENO"; then :
33542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33543 $as_echo "yes" >&6; }
33544 tst_links_gethostbyname_r="yes"
33548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33549 $as_echo "no" >&6; }
33550 tst_links_gethostbyname_r="no"
33553 rm -f core conftest.err conftest.$ac_objext \
33554 conftest$ac_exeext conftest.$ac_ext
33556 if test "$tst_links_gethostbyname_r" = "yes"; then
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
33558 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
33559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33560 /* end confdefs.h. */
33562 $curl_includes_netdb
33565 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33566 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
33568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33569 $as_echo "yes" >&6; }
33570 tst_proto_gethostbyname_r="yes"
33574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33575 $as_echo "no" >&6; }
33576 tst_proto_gethostbyname_r="no"
33583 if test "$tst_proto_gethostbyname_r" = "yes"; then
33584 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
33586 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
33587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33588 /* end confdefs.h. */
33591 $curl_includes_netdb
33596 if(0 != gethostbyname_r(0, 0, 0))
33604 if ac_fn_c_try_compile "$LINENO"; then :
33606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33607 $as_echo "yes" >&6; }
33608 tst_compi_gethostbyname_r="yes"
33609 tst_nargs_gethostbyname_r="3"
33613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33614 $as_echo "no" >&6; }
33615 tst_compi_gethostbyname_r="no"
33618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33620 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
33622 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
33623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33624 /* end confdefs.h. */
33627 $curl_includes_netdb
33632 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
33640 if ac_fn_c_try_compile "$LINENO"; then :
33642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33643 $as_echo "yes" >&6; }
33644 tst_compi_gethostbyname_r="yes"
33645 tst_nargs_gethostbyname_r="5"
33649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33650 $as_echo "no" >&6; }
33651 tst_compi_gethostbyname_r="no"
33654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33656 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
33657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
33658 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
33659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33660 /* end confdefs.h. */
33663 $curl_includes_netdb
33668 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
33676 if ac_fn_c_try_compile "$LINENO"; then :
33678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33679 $as_echo "yes" >&6; }
33680 tst_compi_gethostbyname_r="yes"
33681 tst_nargs_gethostbyname_r="6"
33685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33686 $as_echo "no" >&6; }
33687 tst_compi_gethostbyname_r="no"
33690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
33693 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
33694 if test "$tst_compi_gethostbyname_r" = "yes"; then
33695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33696 $as_echo "yes" >&6; }
33698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33699 $as_echo "no" >&6; }
33703 if test "$tst_compi_gethostbyname_r" = "yes"; then
33704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
33705 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
33706 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
33707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33708 $as_echo "yes" >&6; }
33709 tst_allow_gethostbyname_r="yes"
33711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33712 $as_echo "no" >&6; }
33713 tst_allow_gethostbyname_r="no"
33717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
33718 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
33719 if test "$tst_links_gethostbyname_r" = "yes" &&
33720 test "$tst_proto_gethostbyname_r" = "yes" &&
33721 test "$tst_compi_gethostbyname_r" = "yes" &&
33722 test "$tst_allow_gethostbyname_r" = "yes"; then
33723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33724 $as_echo "yes" >&6; }
33726 cat >>confdefs.h <<_ACEOF
33727 #define HAVE_GETHOSTBYNAME_R 1
33731 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
33733 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
33735 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
33737 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
33739 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
33741 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
33745 curl_cv_func_gethostbyname_r="yes"
33747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33748 $as_echo "no" >&6; }
33749 curl_cv_func_gethostbyname_r="no"
33754 tst_links_gethostname="unknown"
33755 tst_proto_gethostname="unknown"
33756 tst_compi_gethostname="unknown"
33757 tst_allow_gethostname="unknown"
33759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
33760 $as_echo_n "checking if gethostname can be linked... " >&6; }
33761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33762 /* end confdefs.h. */
33765 $curl_includes_winsock2
33766 $curl_includes_unistd
33771 if(0 != gethostname(0, 0))
33779 if ac_fn_c_try_link "$LINENO"; then :
33781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33782 $as_echo "yes" >&6; }
33783 tst_links_gethostname="yes"
33787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33788 $as_echo "no" >&6; }
33789 tst_links_gethostname="no"
33792 rm -f core conftest.err conftest.$ac_objext \
33793 conftest$ac_exeext conftest.$ac_ext
33795 if test "$tst_links_gethostname" = "yes"; then
33796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
33797 $as_echo_n "checking if gethostname is prototyped... " >&6; }
33798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33799 /* end confdefs.h. */
33801 $curl_includes_winsock2
33802 $curl_includes_unistd
33805 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33806 $EGREP "gethostname" >/dev/null 2>&1; then :
33808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33809 $as_echo "yes" >&6; }
33810 tst_proto_gethostname="yes"
33814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33815 $as_echo "no" >&6; }
33816 tst_proto_gethostname="no"
33823 if test "$tst_proto_gethostname" = "yes"; then
33824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
33825 $as_echo_n "checking if gethostname is compilable... " >&6; }
33826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33827 /* end confdefs.h. */
33830 $curl_includes_winsock2
33831 $curl_includes_unistd
33836 if(0 != gethostname(0, 0))
33844 if ac_fn_c_try_compile "$LINENO"; then :
33846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33847 $as_echo "yes" >&6; }
33848 tst_compi_gethostname="yes"
33852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33853 $as_echo "no" >&6; }
33854 tst_compi_gethostname="no"
33857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33860 if test "$tst_compi_gethostname" = "yes"; then
33861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
33862 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
33863 tst_gethostname_type_arg2="unknown"
33864 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
33865 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
33866 if test "$tst_gethostname_type_arg2" = "unknown"; then
33867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33868 /* end confdefs.h. */
33871 $curl_includes_winsock2
33872 $curl_includes_unistd
33873 $curl_preprocess_callconv
33874 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
33879 if(0 != gethostname(0, 0))
33887 if ac_fn_c_try_compile "$LINENO"; then :
33889 tst_gethostname_type_arg2="$tst_arg2"
33892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
33897 $as_echo "$tst_gethostname_type_arg2" >&6; }
33898 if test "$tst_gethostname_type_arg2" != "unknown"; then
33900 cat >>confdefs.h <<_ACEOF
33901 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
33907 if test "$tst_compi_gethostname" = "yes"; then
33908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
33909 $as_echo_n "checking if gethostname usage allowed... " >&6; }
33910 if test "x$curl_disallow_gethostname" != "xyes"; then
33911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33912 $as_echo "yes" >&6; }
33913 tst_allow_gethostname="yes"
33915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33916 $as_echo "no" >&6; }
33917 tst_allow_gethostname="no"
33921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
33922 $as_echo_n "checking if gethostname might be used... " >&6; }
33923 if test "$tst_links_gethostname" = "yes" &&
33924 test "$tst_proto_gethostname" = "yes" &&
33925 test "$tst_compi_gethostname" = "yes" &&
33926 test "$tst_allow_gethostname" = "yes"; then
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33928 $as_echo "yes" >&6; }
33930 cat >>confdefs.h <<_ACEOF
33931 #define HAVE_GETHOSTNAME 1
33934 curl_cv_func_gethostname="yes"
33936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33937 $as_echo "no" >&6; }
33938 curl_cv_func_gethostname="no"
33943 tst_links_getifaddrs="unknown"
33944 tst_proto_getifaddrs="unknown"
33945 tst_compi_getifaddrs="unknown"
33946 tst_works_getifaddrs="unknown"
33947 tst_allow_getifaddrs="unknown"
33949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
33950 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
33951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33952 /* end confdefs.h. */
33955 #define getifaddrs innocuous_getifaddrs
33957 # include <limits.h>
33959 # include <assert.h>
33965 char getifaddrs ();
33966 #if defined __stub_getifaddrs || defined __stub___getifaddrs
33972 return getifaddrs ();
33978 if ac_fn_c_try_link "$LINENO"; then :
33980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33981 $as_echo "yes" >&6; }
33982 tst_links_getifaddrs="yes"
33986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33987 $as_echo "no" >&6; }
33988 tst_links_getifaddrs="no"
33991 rm -f core conftest.err conftest.$ac_objext \
33992 conftest$ac_exeext conftest.$ac_ext
33994 if test "$tst_links_getifaddrs" = "yes"; then
33995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
33996 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
33997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33998 /* end confdefs.h. */
34000 $curl_includes_ifaddrs
34003 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34004 $EGREP "getifaddrs" >/dev/null 2>&1; then :
34006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34007 $as_echo "yes" >&6; }
34008 tst_proto_getifaddrs="yes"
34012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34013 $as_echo "no" >&6; }
34014 tst_proto_getifaddrs="no"
34021 if test "$tst_proto_getifaddrs" = "yes"; then
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
34023 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
34024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34025 /* end confdefs.h. */
34028 $curl_includes_ifaddrs
34033 if(0 != getifaddrs(0))
34041 if ac_fn_c_try_compile "$LINENO"; then :
34043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34044 $as_echo "yes" >&6; }
34045 tst_compi_getifaddrs="yes"
34049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34050 $as_echo "no" >&6; }
34051 tst_compi_getifaddrs="no"
34054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34057 if test "x$cross_compiling" != "xyes" &&
34058 test "$tst_compi_getifaddrs" = "yes"; then
34059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
34060 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
34061 if test "$cross_compiling" = yes; then :
34062 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34063 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34064 as_fn_error $? "cannot run test program while cross compiling
34065 See \`config.log' for more details" "$LINENO" 5; }
34067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34068 /* end confdefs.h. */
34071 $curl_includes_stdlib
34072 $curl_includes_ifaddrs
34077 struct ifaddrs *ifa = 0;
34080 error = getifaddrs(&ifa);
34082 exit(1); /* fail */
34091 if ac_fn_c_try_run "$LINENO"; then :
34093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34094 $as_echo "yes" >&6; }
34095 tst_works_getifaddrs="yes"
34099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34100 $as_echo "no" >&6; }
34101 tst_works_getifaddrs="no"
34104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34105 conftest.$ac_objext conftest.beam conftest.$ac_ext
34110 if test "$tst_compi_getifaddrs" = "yes" &&
34111 test "$tst_works_getifaddrs" != "no"; then
34112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
34113 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
34114 if test "x$curl_disallow_getifaddrs" != "xyes"; then
34115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34116 $as_echo "yes" >&6; }
34117 tst_allow_getifaddrs="yes"
34119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34120 $as_echo "no" >&6; }
34121 tst_allow_getifaddrs="no"
34125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
34126 $as_echo_n "checking if getifaddrs might be used... " >&6; }
34127 if test "$tst_links_getifaddrs" = "yes" &&
34128 test "$tst_proto_getifaddrs" = "yes" &&
34129 test "$tst_compi_getifaddrs" = "yes" &&
34130 test "$tst_allow_getifaddrs" = "yes" &&
34131 test "$tst_works_getifaddrs" != "no"; then
34132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34133 $as_echo "yes" >&6; }
34135 cat >>confdefs.h <<_ACEOF
34136 #define HAVE_GETIFADDRS 1
34139 curl_cv_func_getifaddrs="yes"
34141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34142 $as_echo "no" >&6; }
34143 curl_cv_func_getifaddrs="no"
34148 tst_links_getservbyport_r="unknown"
34149 tst_proto_getservbyport_r="unknown"
34150 tst_compi_getservbyport_r="unknown"
34151 tst_allow_getservbyport_r="unknown"
34152 tst_nargs_getservbyport_r="unknown"
34154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
34155 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
34156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34157 /* end confdefs.h. */
34160 #define getservbyport_r innocuous_getservbyport_r
34162 # include <limits.h>
34164 # include <assert.h>
34166 #undef getservbyport_r
34170 char getservbyport_r ();
34171 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
34177 return getservbyport_r ();
34183 if ac_fn_c_try_link "$LINENO"; then :
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34186 $as_echo "yes" >&6; }
34187 tst_links_getservbyport_r="yes"
34191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34192 $as_echo "no" >&6; }
34193 tst_links_getservbyport_r="no"
34196 rm -f core conftest.err conftest.$ac_objext \
34197 conftest$ac_exeext conftest.$ac_ext
34199 if test "$tst_links_getservbyport_r" = "yes"; then
34200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
34201 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
34202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34203 /* end confdefs.h. */
34205 $curl_includes_netdb
34208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34209 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34212 $as_echo "yes" >&6; }
34213 tst_proto_getservbyport_r="yes"
34217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34218 $as_echo "no" >&6; }
34219 tst_proto_getservbyport_r="no"
34226 if test "$tst_proto_getservbyport_r" = "yes"; then
34227 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
34229 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
34230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34231 /* end confdefs.h. */
34234 $curl_includes_netdb
34239 if(0 != getservbyport_r(0, 0, 0, 0))
34247 if ac_fn_c_try_compile "$LINENO"; then :
34249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34250 $as_echo "yes" >&6; }
34251 tst_compi_getservbyport_r="yes"
34252 tst_nargs_getservbyport_r="4"
34256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34257 $as_echo "no" >&6; }
34258 tst_compi_getservbyport_r="no"
34261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34263 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
34265 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
34266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34267 /* end confdefs.h. */
34270 $curl_includes_netdb
34275 if(0 != getservbyport_r(0, 0, 0, 0, 0))
34283 if ac_fn_c_try_compile "$LINENO"; then :
34285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34286 $as_echo "yes" >&6; }
34287 tst_compi_getservbyport_r="yes"
34288 tst_nargs_getservbyport_r="5"
34292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34293 $as_echo "no" >&6; }
34294 tst_compi_getservbyport_r="no"
34297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34299 if test "$tst_nargs_getservbyport_r" = "unknown"; then
34300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
34301 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
34302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34303 /* end confdefs.h. */
34306 $curl_includes_netdb
34311 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
34319 if ac_fn_c_try_compile "$LINENO"; then :
34321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34322 $as_echo "yes" >&6; }
34323 tst_compi_getservbyport_r="yes"
34324 tst_nargs_getservbyport_r="6"
34328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34329 $as_echo "no" >&6; }
34330 tst_compi_getservbyport_r="no"
34333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
34336 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
34337 if test "$tst_compi_getservbyport_r" = "yes"; then
34338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34339 $as_echo "yes" >&6; }
34341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34342 $as_echo "no" >&6; }
34346 if test "$tst_compi_getservbyport_r" = "yes"; then
34347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
34348 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
34349 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
34350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34351 $as_echo "yes" >&6; }
34352 tst_allow_getservbyport_r="yes"
34354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34355 $as_echo "no" >&6; }
34356 tst_allow_getservbyport_r="no"
34360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
34361 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
34362 if test "$tst_links_getservbyport_r" = "yes" &&
34363 test "$tst_proto_getservbyport_r" = "yes" &&
34364 test "$tst_compi_getservbyport_r" = "yes" &&
34365 test "$tst_allow_getservbyport_r" = "yes"; then
34366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34367 $as_echo "yes" >&6; }
34369 cat >>confdefs.h <<_ACEOF
34370 #define HAVE_GETSERVBYPORT_R 1
34374 cat >>confdefs.h <<_ACEOF
34375 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
34378 if test "$tst_nargs_getservbyport_r" -eq "4"; then
34380 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
34384 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
34387 curl_cv_func_getservbyport_r="yes"
34389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34390 $as_echo "no" >&6; }
34391 curl_cv_func_getservbyport_r="no"
34395 curl_includes_time="\
34396 /* includes start */
34397 #ifdef HAVE_SYS_TYPES_H
34398 # include <sys/types.h>
34400 #ifdef HAVE_SYS_TIME_H
34401 # include <sys/time.h>
34402 # ifdef TIME_WITH_SYS_TIME
34406 # ifdef HAVE_TIME_H
34410 /* includes end */"
34411 for ac_header in sys/types.h sys/time.h time.h
34413 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34414 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
34416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34417 cat >>confdefs.h <<_ACEOF
34418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34428 tst_links_gmtime_r="unknown"
34429 tst_proto_gmtime_r="unknown"
34430 tst_compi_gmtime_r="unknown"
34431 tst_works_gmtime_r="unknown"
34432 tst_allow_gmtime_r="unknown"
34434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
34435 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
34436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34437 /* end confdefs.h. */
34440 #define gmtime_r innocuous_gmtime_r
34442 # include <limits.h>
34444 # include <assert.h>
34451 #if defined __stub_gmtime_r || defined __stub___gmtime_r
34457 return gmtime_r ();
34463 if ac_fn_c_try_link "$LINENO"; then :
34465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34466 $as_echo "yes" >&6; }
34467 tst_links_gmtime_r="yes"
34471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34472 $as_echo "no" >&6; }
34473 tst_links_gmtime_r="no"
34476 rm -f core conftest.err conftest.$ac_objext \
34477 conftest$ac_exeext conftest.$ac_ext
34479 if test "$tst_links_gmtime_r" = "yes"; then
34480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
34481 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
34482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34483 /* end confdefs.h. */
34485 $curl_includes_time
34488 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34489 $EGREP "gmtime_r" >/dev/null 2>&1; then :
34491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34492 $as_echo "yes" >&6; }
34493 tst_proto_gmtime_r="yes"
34497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34498 $as_echo "no" >&6; }
34499 tst_proto_gmtime_r="no"
34506 if test "$tst_proto_gmtime_r" = "yes"; then
34507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
34508 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
34509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34510 /* end confdefs.h. */
34513 $curl_includes_time
34518 if(0 != gmtime_r(0, 0))
34526 if ac_fn_c_try_compile "$LINENO"; then :
34528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34529 $as_echo "yes" >&6; }
34530 tst_compi_gmtime_r="yes"
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535 $as_echo "no" >&6; }
34536 tst_compi_gmtime_r="no"
34539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34542 if test "x$cross_compiling" != "xyes" &&
34543 test "$tst_compi_gmtime_r" = "yes"; then
34544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
34545 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
34546 if test "$cross_compiling" = yes; then :
34547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34549 as_fn_error $? "cannot run test program while cross compiling
34550 See \`config.log' for more details" "$LINENO" 5; }
34552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34553 /* end confdefs.h. */
34556 $curl_includes_stdlib
34557 $curl_includes_time
34562 time_t local = 1170352587;
34563 struct tm *gmt = 0;
34565 gmt = gmtime_r(&local, &result);
34576 if ac_fn_c_try_run "$LINENO"; then :
34578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34579 $as_echo "yes" >&6; }
34580 tst_works_gmtime_r="yes"
34584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34585 $as_echo "no" >&6; }
34586 tst_works_gmtime_r="no"
34589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34590 conftest.$ac_objext conftest.beam conftest.$ac_ext
34595 if test "$tst_compi_gmtime_r" = "yes" &&
34596 test "$tst_works_gmtime_r" != "no"; then
34597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
34598 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
34599 if test "x$curl_disallow_gmtime_r" != "xyes"; then
34600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34601 $as_echo "yes" >&6; }
34602 tst_allow_gmtime_r="yes"
34604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34605 $as_echo "no" >&6; }
34606 tst_allow_gmtime_r="no"
34610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
34611 $as_echo_n "checking if gmtime_r might be used... " >&6; }
34612 if test "$tst_links_gmtime_r" = "yes" &&
34613 test "$tst_proto_gmtime_r" = "yes" &&
34614 test "$tst_compi_gmtime_r" = "yes" &&
34615 test "$tst_allow_gmtime_r" = "yes" &&
34616 test "$tst_works_gmtime_r" != "no"; then
34617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34618 $as_echo "yes" >&6; }
34620 cat >>confdefs.h <<_ACEOF
34621 #define HAVE_GMTIME_R 1
34624 curl_cv_func_gmtime_r="yes"
34626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34627 $as_echo "no" >&6; }
34628 curl_cv_func_gmtime_r="no"
34632 curl_includes_arpa_inet="\
34633 /* includes start */
34634 #ifdef HAVE_SYS_TYPES_H
34635 # include <sys/types.h>
34637 #ifdef HAVE_SYS_SOCKET_H
34638 # include <sys/socket.h>
34640 #ifdef HAVE_NETINET_IN_H
34641 # include <netinet/in.h>
34643 #ifdef HAVE_ARPA_INET_H
34644 # include <arpa/inet.h>
34646 #ifdef HAVE_WINSOCK2_H
34647 #include <winsock2.h>
34648 #include <ws2tcpip.h>
34650 /* includes end */"
34651 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
34653 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34654 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
34656 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34657 cat >>confdefs.h <<_ACEOF
34658 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34668 tst_links_inet_ntoa_r="unknown"
34669 tst_proto_inet_ntoa_r="unknown"
34670 tst_compi_inet_ntoa_r="unknown"
34671 tst_allow_inet_ntoa_r="unknown"
34672 tst_nargs_inet_ntoa_r="unknown"
34674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
34675 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
34676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34677 /* end confdefs.h. */
34680 #define inet_ntoa_r innocuous_inet_ntoa_r
34682 # include <limits.h>
34684 # include <assert.h>
34690 char inet_ntoa_r ();
34691 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
34697 return inet_ntoa_r ();
34703 if ac_fn_c_try_link "$LINENO"; then :
34705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34706 $as_echo "yes" >&6; }
34707 tst_links_inet_ntoa_r="yes"
34711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34712 $as_echo "no" >&6; }
34713 tst_links_inet_ntoa_r="no"
34716 rm -f core conftest.err conftest.$ac_objext \
34717 conftest$ac_exeext conftest.$ac_ext
34719 if test "$tst_links_inet_ntoa_r" = "yes"; then
34720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
34721 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
34722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34723 /* end confdefs.h. */
34725 $curl_includes_arpa_inet
34728 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34729 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
34731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34732 $as_echo "yes" >&6; }
34733 tst_proto_inet_ntoa_r="yes"
34737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34738 $as_echo "no" >&6; }
34739 tst_proto_inet_ntoa_r="no"
34746 if test "$tst_proto_inet_ntoa_r" = "yes"; then
34747 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
34749 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
34750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34751 /* end confdefs.h. */
34754 $curl_includes_arpa_inet
34759 struct in_addr addr;
34760 if(0 != inet_ntoa_r(addr, 0))
34768 if ac_fn_c_try_compile "$LINENO"; then :
34770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34771 $as_echo "yes" >&6; }
34772 tst_compi_inet_ntoa_r="yes"
34773 tst_nargs_inet_ntoa_r="2"
34777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34778 $as_echo "no" >&6; }
34779 tst_compi_inet_ntoa_r="no"
34782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34784 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
34785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
34786 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
34787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34788 /* end confdefs.h. */
34791 $curl_includes_arpa_inet
34796 struct in_addr addr;
34797 if(0 != inet_ntoa_r(addr, 0, 0))
34805 if ac_fn_c_try_compile "$LINENO"; then :
34807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34808 $as_echo "yes" >&6; }
34809 tst_compi_inet_ntoa_r="yes"
34810 tst_nargs_inet_ntoa_r="3"
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34815 $as_echo "no" >&6; }
34816 tst_compi_inet_ntoa_r="no"
34819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
34822 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
34823 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34825 $as_echo "yes" >&6; }
34827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34828 $as_echo "no" >&6; }
34832 if test "$tst_compi_inet_ntoa_r" = "yes"; then
34833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
34834 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
34835 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
34836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34837 $as_echo "yes" >&6; }
34838 tst_allow_inet_ntoa_r="yes"
34840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34841 $as_echo "no" >&6; }
34842 tst_allow_inet_ntoa_r="no"
34846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
34847 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
34848 if test "$tst_links_inet_ntoa_r" = "yes" &&
34849 test "$tst_proto_inet_ntoa_r" = "yes" &&
34850 test "$tst_compi_inet_ntoa_r" = "yes" &&
34851 test "$tst_allow_inet_ntoa_r" = "yes"; then
34852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34853 $as_echo "yes" >&6; }
34855 cat >>confdefs.h <<_ACEOF
34856 #define HAVE_INET_NTOA_R 1
34860 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
34862 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
34864 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
34866 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
34870 curl_cv_func_inet_ntoa_r="yes"
34872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34873 $as_echo "no" >&6; }
34874 curl_cv_func_inet_ntoa_r="no"
34879 tst_links_inet_ntop="unknown"
34880 tst_proto_inet_ntop="unknown"
34881 tst_compi_inet_ntop="unknown"
34882 tst_works_inet_ntop="unknown"
34883 tst_allow_inet_ntop="unknown"
34885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
34886 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
34887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34888 /* end confdefs.h. */
34891 #define inet_ntop innocuous_inet_ntop
34893 # include <limits.h>
34895 # include <assert.h>
34902 #if defined __stub_inet_ntop || defined __stub___inet_ntop
34908 return inet_ntop ();
34914 if ac_fn_c_try_link "$LINENO"; then :
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34917 $as_echo "yes" >&6; }
34918 tst_links_inet_ntop="yes"
34922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34923 $as_echo "no" >&6; }
34924 tst_links_inet_ntop="no"
34927 rm -f core conftest.err conftest.$ac_objext \
34928 conftest$ac_exeext conftest.$ac_ext
34930 if test "$tst_links_inet_ntop" = "yes"; then
34931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
34932 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
34933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34934 /* end confdefs.h. */
34936 $curl_includes_arpa_inet
34939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34940 $EGREP "inet_ntop" >/dev/null 2>&1; then :
34942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34943 $as_echo "yes" >&6; }
34944 tst_proto_inet_ntop="yes"
34948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34949 $as_echo "no" >&6; }
34950 tst_proto_inet_ntop="no"
34957 if test "$tst_proto_inet_ntop" = "yes"; then
34958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
34959 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
34960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34961 /* end confdefs.h. */
34964 $curl_includes_arpa_inet
34969 if(0 != inet_ntop(0, 0, 0, 0))
34977 if ac_fn_c_try_compile "$LINENO"; then :
34979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34980 $as_echo "yes" >&6; }
34981 tst_compi_inet_ntop="yes"
34985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34986 $as_echo "no" >&6; }
34987 tst_compi_inet_ntop="no"
34990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34993 if test "x$cross_compiling" != "xyes" &&
34994 test "$tst_compi_inet_ntop" = "yes"; then
34995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
34996 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
34997 if test "$cross_compiling" = yes; then :
34998 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34999 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35000 as_fn_error $? "cannot run test program while cross compiling
35001 See \`config.log' for more details" "$LINENO" 5; }
35003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35004 /* end confdefs.h. */
35007 $curl_includes_stdlib
35008 $curl_includes_arpa_inet
35009 $curl_includes_string
35014 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
35015 char ipv4res[sizeof "255.255.255.255"];
35016 unsigned char ipv6a[26];
35017 unsigned char ipv4a[5];
35028 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
35030 exit(1); /* fail */
35031 if(ipv4ptr != ipv4res)
35032 exit(1); /* fail */
35034 exit(1); /* fail */
35035 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
35036 exit(1); /* fail */
35039 memset(ipv6a, 0, sizeof(ipv6a));
35052 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
35054 exit(1); /* fail */
35055 if(ipv6ptr != ipv6res)
35056 exit(1); /* fail */
35058 exit(1); /* fail */
35059 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
35060 exit(1); /* fail */
35069 if ac_fn_c_try_run "$LINENO"; then :
35071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35072 $as_echo "yes" >&6; }
35073 tst_works_inet_ntop="yes"
35077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35078 $as_echo "no" >&6; }
35079 tst_works_inet_ntop="no"
35082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35083 conftest.$ac_objext conftest.beam conftest.$ac_ext
35088 if test "$tst_compi_inet_ntop" = "yes" &&
35089 test "$tst_works_inet_ntop" != "no"; then
35090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
35091 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
35092 if test "x$curl_disallow_inet_ntop" != "xyes"; then
35093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35094 $as_echo "yes" >&6; }
35095 tst_allow_inet_ntop="yes"
35097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35098 $as_echo "no" >&6; }
35099 tst_allow_inet_ntop="no"
35103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
35104 $as_echo_n "checking if inet_ntop might be used... " >&6; }
35105 if test "$tst_links_inet_ntop" = "yes" &&
35106 test "$tst_proto_inet_ntop" = "yes" &&
35107 test "$tst_compi_inet_ntop" = "yes" &&
35108 test "$tst_allow_inet_ntop" = "yes" &&
35109 test "$tst_works_inet_ntop" != "no"; then
35110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35111 $as_echo "yes" >&6; }
35113 cat >>confdefs.h <<_ACEOF
35114 #define HAVE_INET_NTOP 1
35117 curl_cv_func_inet_ntop="yes"
35119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35120 $as_echo "no" >&6; }
35121 curl_cv_func_inet_ntop="no"
35126 tst_links_inet_pton="unknown"
35127 tst_proto_inet_pton="unknown"
35128 tst_compi_inet_pton="unknown"
35129 tst_works_inet_pton="unknown"
35130 tst_allow_inet_pton="unknown"
35132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
35133 $as_echo_n "checking if inet_pton can be linked... " >&6; }
35134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35135 /* end confdefs.h. */
35138 #define inet_pton innocuous_inet_pton
35140 # include <limits.h>
35142 # include <assert.h>
35149 #if defined __stub_inet_pton || defined __stub___inet_pton
35155 return inet_pton ();
35161 if ac_fn_c_try_link "$LINENO"; then :
35163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35164 $as_echo "yes" >&6; }
35165 tst_links_inet_pton="yes"
35169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35170 $as_echo "no" >&6; }
35171 tst_links_inet_pton="no"
35174 rm -f core conftest.err conftest.$ac_objext \
35175 conftest$ac_exeext conftest.$ac_ext
35177 if test "$tst_links_inet_pton" = "yes"; then
35178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
35179 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
35180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35181 /* end confdefs.h. */
35183 $curl_includes_arpa_inet
35186 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35187 $EGREP "inet_pton" >/dev/null 2>&1; then :
35189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35190 $as_echo "yes" >&6; }
35191 tst_proto_inet_pton="yes"
35195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35196 $as_echo "no" >&6; }
35197 tst_proto_inet_pton="no"
35204 if test "$tst_proto_inet_pton" = "yes"; then
35205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
35206 $as_echo_n "checking if inet_pton is compilable... " >&6; }
35207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35208 /* end confdefs.h. */
35211 $curl_includes_arpa_inet
35216 if(0 != inet_pton(0, 0, 0))
35224 if ac_fn_c_try_compile "$LINENO"; then :
35226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35227 $as_echo "yes" >&6; }
35228 tst_compi_inet_pton="yes"
35232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35233 $as_echo "no" >&6; }
35234 tst_compi_inet_pton="no"
35237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35240 if test "x$cross_compiling" != "xyes" &&
35241 test "$tst_compi_inet_pton" = "yes"; then
35242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
35243 $as_echo_n "checking if inet_pton seems to work... " >&6; }
35244 if test "$cross_compiling" = yes; then :
35245 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
35246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
35247 as_fn_error $? "cannot run test program while cross compiling
35248 See \`config.log' for more details" "$LINENO" 5; }
35250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35251 /* end confdefs.h. */
35254 $curl_includes_stdlib
35255 $curl_includes_arpa_inet
35256 $curl_includes_string
35261 unsigned char ipv6a[16+1];
35262 unsigned char ipv4a[4+1];
35263 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
35264 const char *ipv4src = "192.168.100.1";
35266 memset(ipv4a, 1, sizeof(ipv4a));
35267 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
35268 exit(1); /* fail */
35270 if( (ipv4a[0] != 0xc0) ||
35271 (ipv4a[1] != 0xa8) ||
35272 (ipv4a[2] != 0x64) ||
35273 (ipv4a[3] != 0x01) ||
35274 (ipv4a[4] != 0x01) )
35275 exit(1); /* fail */
35277 memset(ipv6a, 1, sizeof(ipv6a));
35278 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
35279 exit(1); /* fail */
35281 if( (ipv6a[0] != 0xfe) ||
35282 (ipv6a[1] != 0x80) ||
35283 (ipv6a[8] != 0x02) ||
35284 (ipv6a[9] != 0x14) ||
35285 (ipv6a[10] != 0x4f) ||
35286 (ipv6a[11] != 0xff) ||
35287 (ipv6a[12] != 0xfe) ||
35288 (ipv6a[13] != 0x0b) ||
35289 (ipv6a[14] != 0x76) ||
35290 (ipv6a[15] != 0xc8) ||
35291 (ipv6a[16] != 0x01) )
35292 exit(1); /* fail */
35294 if( (ipv6a[2] != 0x0) ||
35295 (ipv6a[3] != 0x0) ||
35296 (ipv6a[4] != 0x0) ||
35297 (ipv6a[5] != 0x0) ||
35298 (ipv6a[6] != 0x0) ||
35299 (ipv6a[7] != 0x0) )
35300 exit(1); /* fail */
35309 if ac_fn_c_try_run "$LINENO"; then :
35311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35312 $as_echo "yes" >&6; }
35313 tst_works_inet_pton="yes"
35317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35318 $as_echo "no" >&6; }
35319 tst_works_inet_pton="no"
35322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
35323 conftest.$ac_objext conftest.beam conftest.$ac_ext
35328 if test "$tst_compi_inet_pton" = "yes" &&
35329 test "$tst_works_inet_pton" != "no"; then
35330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
35331 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
35332 if test "x$curl_disallow_inet_pton" != "xyes"; then
35333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35334 $as_echo "yes" >&6; }
35335 tst_allow_inet_pton="yes"
35337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35338 $as_echo "no" >&6; }
35339 tst_allow_inet_pton="no"
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
35344 $as_echo_n "checking if inet_pton might be used... " >&6; }
35345 if test "$tst_links_inet_pton" = "yes" &&
35346 test "$tst_proto_inet_pton" = "yes" &&
35347 test "$tst_compi_inet_pton" = "yes" &&
35348 test "$tst_allow_inet_pton" = "yes" &&
35349 test "$tst_works_inet_pton" != "no"; then
35350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35351 $as_echo "yes" >&6; }
35353 cat >>confdefs.h <<_ACEOF
35354 #define HAVE_INET_PTON 1
35357 curl_cv_func_inet_pton="yes"
35359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35360 $as_echo "no" >&6; }
35361 curl_cv_func_inet_pton="no"
35365 curl_includes_stropts="\
35366 /* includes start */
35367 #ifdef HAVE_SYS_TYPES_H
35368 # include <sys/types.h>
35370 #ifdef HAVE_UNISTD_H
35371 # include <unistd.h>
35373 #ifdef HAVE_SYS_SOCKET_H
35374 # include <sys/socket.h>
35376 #ifdef HAVE_SYS_IOCTL_H
35377 # include <sys/ioctl.h>
35379 #ifdef HAVE_STROPTS_H
35380 # include <stropts.h>
35382 /* includes end */"
35383 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
35385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35386 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
35388 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35389 cat >>confdefs.h <<_ACEOF
35390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35400 tst_links_ioctl="unknown"
35401 tst_proto_ioctl="unknown"
35402 tst_compi_ioctl="unknown"
35403 tst_allow_ioctl="unknown"
35405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
35406 $as_echo_n "checking if ioctl can be linked... " >&6; }
35407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35408 /* end confdefs.h. */
35411 #define ioctl innocuous_ioctl
35413 # include <limits.h>
35415 # include <assert.h>
35422 #if defined __stub_ioctl || defined __stub___ioctl
35434 if ac_fn_c_try_link "$LINENO"; then :
35436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35437 $as_echo "yes" >&6; }
35438 tst_links_ioctl="yes"
35442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35443 $as_echo "no" >&6; }
35444 tst_links_ioctl="no"
35447 rm -f core conftest.err conftest.$ac_objext \
35448 conftest$ac_exeext conftest.$ac_ext
35450 if test "$tst_links_ioctl" = "yes"; then
35451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
35452 $as_echo_n "checking if ioctl is prototyped... " >&6; }
35453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35454 /* end confdefs.h. */
35456 $curl_includes_stropts
35459 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35460 $EGREP "ioctl" >/dev/null 2>&1; then :
35462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35463 $as_echo "yes" >&6; }
35464 tst_proto_ioctl="yes"
35468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35469 $as_echo "no" >&6; }
35470 tst_proto_ioctl="no"
35477 if test "$tst_proto_ioctl" = "yes"; then
35478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
35479 $as_echo_n "checking if ioctl is compilable... " >&6; }
35480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35481 /* end confdefs.h. */
35484 $curl_includes_stropts
35489 if(0 != ioctl(0, 0, 0))
35497 if ac_fn_c_try_compile "$LINENO"; then :
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35500 $as_echo "yes" >&6; }
35501 tst_compi_ioctl="yes"
35505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35506 $as_echo "no" >&6; }
35507 tst_compi_ioctl="no"
35510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35513 if test "$tst_compi_ioctl" = "yes"; then
35514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
35515 $as_echo_n "checking if ioctl usage allowed... " >&6; }
35516 if test "x$curl_disallow_ioctl" != "xyes"; then
35517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35518 $as_echo "yes" >&6; }
35519 tst_allow_ioctl="yes"
35521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35522 $as_echo "no" >&6; }
35523 tst_allow_ioctl="no"
35527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
35528 $as_echo_n "checking if ioctl might be used... " >&6; }
35529 if test "$tst_links_ioctl" = "yes" &&
35530 test "$tst_proto_ioctl" = "yes" &&
35531 test "$tst_compi_ioctl" = "yes" &&
35532 test "$tst_allow_ioctl" = "yes"; then
35533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35534 $as_echo "yes" >&6; }
35536 cat >>confdefs.h <<_ACEOF
35537 #define HAVE_IOCTL 1
35540 curl_cv_func_ioctl="yes"
35543 tst_compi_ioctl_fionbio="unknown"
35544 tst_allow_ioctl_fionbio="unknown"
35546 if test "$curl_cv_func_ioctl" = "yes"; then
35547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
35548 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
35549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35550 /* end confdefs.h. */
35553 $curl_includes_stropts
35559 if(0 != ioctl(0, FIONBIO, &flags))
35567 if ac_fn_c_try_compile "$LINENO"; then :
35569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35570 $as_echo "yes" >&6; }
35571 tst_compi_ioctl_fionbio="yes"
35575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35576 $as_echo "no" >&6; }
35577 tst_compi_ioctl_fionbio="no"
35580 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35583 if test "$tst_compi_ioctl_fionbio" = "yes"; then
35584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
35585 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
35586 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
35587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35588 $as_echo "yes" >&6; }
35589 tst_allow_ioctl_fionbio="yes"
35591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35592 $as_echo "no" >&6; }
35593 tst_allow_ioctl_fionbio="no"
35597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
35598 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
35599 if test "$tst_compi_ioctl_fionbio" = "yes" &&
35600 test "$tst_allow_ioctl_fionbio" = "yes"; then
35601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35602 $as_echo "yes" >&6; }
35604 cat >>confdefs.h <<_ACEOF
35605 #define HAVE_IOCTL_FIONBIO 1
35608 curl_cv_func_ioctl_fionbio="yes"
35610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35611 $as_echo "no" >&6; }
35612 curl_cv_func_ioctl_fionbio="no"
35617 tst_compi_ioctl_siocgifaddr="unknown"
35618 tst_allow_ioctl_siocgifaddr="unknown"
35620 if test "$curl_cv_func_ioctl" = "yes"; then
35621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
35622 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
35623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35624 /* end confdefs.h. */
35627 $curl_includes_stropts
35628 #include <net/if.h>
35634 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
35642 if ac_fn_c_try_compile "$LINENO"; then :
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35645 $as_echo "yes" >&6; }
35646 tst_compi_ioctl_siocgifaddr="yes"
35650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35651 $as_echo "no" >&6; }
35652 tst_compi_ioctl_siocgifaddr="no"
35655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35658 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
35659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
35660 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
35661 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
35662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35663 $as_echo "yes" >&6; }
35664 tst_allow_ioctl_siocgifaddr="yes"
35666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35667 $as_echo "no" >&6; }
35668 tst_allow_ioctl_siocgifaddr="no"
35672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
35673 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
35674 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
35675 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
35676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35677 $as_echo "yes" >&6; }
35679 cat >>confdefs.h <<_ACEOF
35680 #define HAVE_IOCTL_SIOCGIFADDR 1
35683 curl_cv_func_ioctl_siocgifaddr="yes"
35685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35686 $as_echo "no" >&6; }
35687 curl_cv_func_ioctl_siocgifaddr="no"
35691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35692 $as_echo "no" >&6; }
35693 curl_cv_func_ioctl="no"
35698 tst_links_ioctlsocket="unknown"
35699 tst_proto_ioctlsocket="unknown"
35700 tst_compi_ioctlsocket="unknown"
35701 tst_allow_ioctlsocket="unknown"
35703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
35704 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
35705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35706 /* end confdefs.h. */
35709 $curl_includes_winsock2
35714 if(0 != ioctlsocket(0, 0, 0))
35722 if ac_fn_c_try_link "$LINENO"; then :
35724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35725 $as_echo "yes" >&6; }
35726 tst_links_ioctlsocket="yes"
35730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35731 $as_echo "no" >&6; }
35732 tst_links_ioctlsocket="no"
35735 rm -f core conftest.err conftest.$ac_objext \
35736 conftest$ac_exeext conftest.$ac_ext
35738 if test "$tst_links_ioctlsocket" = "yes"; then
35739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
35740 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
35741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35742 /* end confdefs.h. */
35744 $curl_includes_winsock2
35747 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35748 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
35750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35751 $as_echo "yes" >&6; }
35752 tst_proto_ioctlsocket="yes"
35756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35757 $as_echo "no" >&6; }
35758 tst_proto_ioctlsocket="no"
35765 if test "$tst_proto_ioctlsocket" = "yes"; then
35766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
35767 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
35768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35769 /* end confdefs.h. */
35772 $curl_includes_winsock2
35777 if(0 != ioctlsocket(0, 0, 0))
35785 if ac_fn_c_try_compile "$LINENO"; then :
35787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35788 $as_echo "yes" >&6; }
35789 tst_compi_ioctlsocket="yes"
35793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35794 $as_echo "no" >&6; }
35795 tst_compi_ioctlsocket="no"
35798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35801 if test "$tst_compi_ioctlsocket" = "yes"; then
35802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
35803 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
35804 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
35805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35806 $as_echo "yes" >&6; }
35807 tst_allow_ioctlsocket="yes"
35809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35810 $as_echo "no" >&6; }
35811 tst_allow_ioctlsocket="no"
35815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
35816 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
35817 if test "$tst_links_ioctlsocket" = "yes" &&
35818 test "$tst_proto_ioctlsocket" = "yes" &&
35819 test "$tst_compi_ioctlsocket" = "yes" &&
35820 test "$tst_allow_ioctlsocket" = "yes"; then
35821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35822 $as_echo "yes" >&6; }
35824 cat >>confdefs.h <<_ACEOF
35825 #define HAVE_IOCTLSOCKET 1
35828 curl_cv_func_ioctlsocket="yes"
35831 tst_compi_ioctlsocket_fionbio="unknown"
35832 tst_allow_ioctlsocket_fionbio="unknown"
35834 if test "$curl_cv_func_ioctlsocket" = "yes"; then
35835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
35836 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
35837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35838 /* end confdefs.h. */
35841 $curl_includes_winsock2
35847 if(0 != ioctlsocket(0, FIONBIO, &flags))
35855 if ac_fn_c_try_compile "$LINENO"; then :
35857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35858 $as_echo "yes" >&6; }
35859 tst_compi_ioctlsocket_fionbio="yes"
35863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35864 $as_echo "no" >&6; }
35865 tst_compi_ioctlsocket_fionbio="no"
35868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35871 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
35872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
35873 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
35874 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
35875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35876 $as_echo "yes" >&6; }
35877 tst_allow_ioctlsocket_fionbio="yes"
35879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35880 $as_echo "no" >&6; }
35881 tst_allow_ioctlsocket_fionbio="no"
35885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
35886 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
35887 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
35888 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
35889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35890 $as_echo "yes" >&6; }
35892 cat >>confdefs.h <<_ACEOF
35893 #define HAVE_IOCTLSOCKET_FIONBIO 1
35896 curl_cv_func_ioctlsocket_fionbio="yes"
35898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35899 $as_echo "no" >&6; }
35900 curl_cv_func_ioctlsocket_fionbio="no"
35904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35905 $as_echo "no" >&6; }
35906 curl_cv_func_ioctlsocket="no"
35911 tst_links_ioctlsocket_camel="unknown"
35912 tst_proto_ioctlsocket_camel="unknown"
35913 tst_compi_ioctlsocket_camel="unknown"
35914 tst_allow_ioctlsocket_camel="unknown"
35916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
35917 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
35918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35919 /* end confdefs.h. */
35922 #define IoctlSocket innocuous_IoctlSocket
35924 # include <limits.h>
35926 # include <assert.h>
35932 char IoctlSocket ();
35933 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
35939 return IoctlSocket ();
35945 if ac_fn_c_try_link "$LINENO"; then :
35947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35948 $as_echo "yes" >&6; }
35949 tst_links_ioctlsocket_camel="yes"
35953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35954 $as_echo "no" >&6; }
35955 tst_links_ioctlsocket_camel="no"
35958 rm -f core conftest.err conftest.$ac_objext \
35959 conftest$ac_exeext conftest.$ac_ext
35961 if test "$tst_links_ioctlsocket_camel" = "yes"; then
35962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
35963 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
35964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35965 /* end confdefs.h. */
35967 $curl_includes_stropts
35970 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35971 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
35973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35974 $as_echo "yes" >&6; }
35975 tst_proto_ioctlsocket_camel="yes"
35979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35980 $as_echo "no" >&6; }
35981 tst_proto_ioctlsocket_camel="no"
35988 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
35989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
35990 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
35991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35992 /* end confdefs.h. */
35995 $curl_includes_stropts
36000 if(0 != IoctlSocket(0, 0, 0))
36008 if ac_fn_c_try_compile "$LINENO"; then :
36010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36011 $as_echo "yes" >&6; }
36012 tst_compi_ioctlsocket_camel="yes"
36016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36017 $as_echo "no" >&6; }
36018 tst_compi_ioctlsocket_camel="no"
36021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36024 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
36025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
36026 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
36027 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
36028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36029 $as_echo "yes" >&6; }
36030 tst_allow_ioctlsocket_camel="yes"
36032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36033 $as_echo "no" >&6; }
36034 tst_allow_ioctlsocket_camel="no"
36038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
36039 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
36040 if test "$tst_links_ioctlsocket_camel" = "yes" &&
36041 test "$tst_proto_ioctlsocket_camel" = "yes" &&
36042 test "$tst_compi_ioctlsocket_camel" = "yes" &&
36043 test "$tst_allow_ioctlsocket_camel" = "yes"; then
36044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36045 $as_echo "yes" >&6; }
36047 cat >>confdefs.h <<_ACEOF
36048 #define HAVE_IOCTLSOCKET_CAMEL 1
36051 curl_cv_func_ioctlsocket_camel="yes"
36054 tst_compi_ioctlsocket_camel_fionbio="unknown"
36055 tst_allow_ioctlsocket_camel_fionbio="unknown"
36057 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
36058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
36059 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
36060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36061 /* end confdefs.h. */
36064 $curl_includes_stropts
36070 if(0 != ioctlsocket(0, FIONBIO, &flags))
36078 if ac_fn_c_try_compile "$LINENO"; then :
36080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36081 $as_echo "yes" >&6; }
36082 tst_compi_ioctlsocket_camel_fionbio="yes"
36086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36087 $as_echo "no" >&6; }
36088 tst_compi_ioctlsocket_camel_fionbio="no"
36091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36094 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
36095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
36096 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
36097 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
36098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36099 $as_echo "yes" >&6; }
36100 tst_allow_ioctlsocket_camel_fionbio="yes"
36102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36103 $as_echo "no" >&6; }
36104 tst_allow_ioctlsocket_camel_fionbio="no"
36108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
36109 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
36110 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
36111 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
36112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36113 $as_echo "yes" >&6; }
36115 cat >>confdefs.h <<_ACEOF
36116 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
36119 curl_cv_func_ioctlsocket_camel_fionbio="yes"
36121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36122 $as_echo "no" >&6; }
36123 curl_cv_func_ioctlsocket_camel_fionbio="no"
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36128 $as_echo "no" >&6; }
36129 curl_cv_func_ioctlsocket_camel="no"
36134 tst_links_localtime_r="unknown"
36135 tst_proto_localtime_r="unknown"
36136 tst_compi_localtime_r="unknown"
36137 tst_works_localtime_r="unknown"
36138 tst_allow_localtime_r="unknown"
36140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
36141 $as_echo_n "checking if localtime_r can be linked... " >&6; }
36142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36143 /* end confdefs.h. */
36146 #define localtime_r innocuous_localtime_r
36148 # include <limits.h>
36150 # include <assert.h>
36156 char localtime_r ();
36157 #if defined __stub_localtime_r || defined __stub___localtime_r
36163 return localtime_r ();
36169 if ac_fn_c_try_link "$LINENO"; then :
36171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36172 $as_echo "yes" >&6; }
36173 tst_links_localtime_r="yes"
36177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36178 $as_echo "no" >&6; }
36179 tst_links_localtime_r="no"
36182 rm -f core conftest.err conftest.$ac_objext \
36183 conftest$ac_exeext conftest.$ac_ext
36185 if test "$tst_links_localtime_r" = "yes"; then
36186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
36187 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
36188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36189 /* end confdefs.h. */
36191 $curl_includes_time
36194 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36195 $EGREP "localtime_r" >/dev/null 2>&1; then :
36197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36198 $as_echo "yes" >&6; }
36199 tst_proto_localtime_r="yes"
36203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36204 $as_echo "no" >&6; }
36205 tst_proto_localtime_r="no"
36212 if test "$tst_proto_localtime_r" = "yes"; then
36213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
36214 $as_echo_n "checking if localtime_r is compilable... " >&6; }
36215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36216 /* end confdefs.h. */
36219 $curl_includes_time
36224 if(0 != localtime_r(0, 0))
36232 if ac_fn_c_try_compile "$LINENO"; then :
36234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36235 $as_echo "yes" >&6; }
36236 tst_compi_localtime_r="yes"
36240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36241 $as_echo "no" >&6; }
36242 tst_compi_localtime_r="no"
36245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36248 if test "x$cross_compiling" != "xyes" &&
36249 test "$tst_compi_localtime_r" = "yes"; then
36250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
36251 $as_echo_n "checking if localtime_r seems to work... " >&6; }
36252 if test "$cross_compiling" = yes; then :
36253 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36254 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36255 as_fn_error $? "cannot run test program while cross compiling
36256 See \`config.log' for more details" "$LINENO" 5; }
36258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36259 /* end confdefs.h. */
36262 $curl_includes_stdlib
36263 $curl_includes_time
36268 time_t clock = 1170352587;
36269 struct tm *tmp = 0;
36271 tmp = localtime_r(&clock, &result);
36282 if ac_fn_c_try_run "$LINENO"; then :
36284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36285 $as_echo "yes" >&6; }
36286 tst_works_localtime_r="yes"
36290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36291 $as_echo "no" >&6; }
36292 tst_works_localtime_r="no"
36295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36296 conftest.$ac_objext conftest.beam conftest.$ac_ext
36301 if test "$tst_compi_localtime_r" = "yes" &&
36302 test "$tst_works_localtime_r" != "no"; then
36303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
36304 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
36305 if test "x$curl_disallow_localtime_r" != "xyes"; then
36306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36307 $as_echo "yes" >&6; }
36308 tst_allow_localtime_r="yes"
36310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36311 $as_echo "no" >&6; }
36312 tst_allow_localtime_r="no"
36316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
36317 $as_echo_n "checking if localtime_r might be used... " >&6; }
36318 if test "$tst_links_localtime_r" = "yes" &&
36319 test "$tst_proto_localtime_r" = "yes" &&
36320 test "$tst_compi_localtime_r" = "yes" &&
36321 test "$tst_allow_localtime_r" = "yes" &&
36322 test "$tst_works_localtime_r" != "no"; then
36323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36324 $as_echo "yes" >&6; }
36326 cat >>confdefs.h <<_ACEOF
36327 #define HAVE_LOCALTIME_R 1
36330 curl_cv_func_localtime_r="yes"
36332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36333 $as_echo "no" >&6; }
36334 curl_cv_func_localtime_r="no"
36339 tst_links_memrchr="unknown"
36340 tst_macro_memrchr="unknown"
36341 tst_proto_memrchr="unknown"
36342 tst_compi_memrchr="unknown"
36343 tst_allow_memrchr="unknown"
36345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
36346 $as_echo_n "checking if memrchr can be linked... " >&6; }
36347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36348 /* end confdefs.h. */
36351 #define memrchr innocuous_memrchr
36353 # include <limits.h>
36355 # include <assert.h>
36362 #if defined __stub_memrchr || defined __stub___memrchr
36374 if ac_fn_c_try_link "$LINENO"; then :
36376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377 $as_echo "yes" >&6; }
36378 tst_links_memrchr="yes"
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 $as_echo "no" >&6; }
36384 tst_links_memrchr="no"
36387 rm -f core conftest.err conftest.$ac_objext \
36388 conftest$ac_exeext conftest.$ac_ext
36390 if test "$tst_links_memrchr" = "no"; then
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
36392 $as_echo_n "checking if memrchr seems a macro... " >&6; }
36393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36394 /* end confdefs.h. */
36397 $curl_includes_string
36402 if(0 != memrchr(0, 0, 0))
36410 if ac_fn_c_try_link "$LINENO"; then :
36412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36413 $as_echo "yes" >&6; }
36414 tst_macro_memrchr="yes"
36418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36419 $as_echo "no" >&6; }
36420 tst_macro_memrchr="no"
36423 rm -f core conftest.err conftest.$ac_objext \
36424 conftest$ac_exeext conftest.$ac_ext
36427 if test "$tst_links_memrchr" = "yes"; then
36428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
36429 $as_echo_n "checking if memrchr is prototyped... " >&6; }
36430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36431 /* end confdefs.h. */
36433 $curl_includes_string
36436 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36437 $EGREP "memrchr" >/dev/null 2>&1; then :
36439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36440 $as_echo "yes" >&6; }
36441 tst_proto_memrchr="yes"
36445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36446 $as_echo "no" >&6; }
36447 tst_proto_memrchr="no"
36454 if test "$tst_proto_memrchr" = "yes" ||
36455 test "$tst_macro_memrchr" = "yes"; then
36456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
36457 $as_echo_n "checking if memrchr is compilable... " >&6; }
36458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36459 /* end confdefs.h. */
36462 $curl_includes_string
36467 if(0 != memrchr(0, 0, 0))
36475 if ac_fn_c_try_compile "$LINENO"; then :
36477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36478 $as_echo "yes" >&6; }
36479 tst_compi_memrchr="yes"
36483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36484 $as_echo "no" >&6; }
36485 tst_compi_memrchr="no"
36488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36491 if test "$tst_compi_memrchr" = "yes"; then
36492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
36493 $as_echo_n "checking if memrchr usage allowed... " >&6; }
36494 if test "x$curl_disallow_memrchr" != "xyes"; then
36495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36496 $as_echo "yes" >&6; }
36497 tst_allow_memrchr="yes"
36499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36500 $as_echo "no" >&6; }
36501 tst_allow_memrchr="no"
36505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
36506 $as_echo_n "checking if memrchr might be used... " >&6; }
36507 if (test "$tst_proto_memrchr" = "yes" ||
36508 test "$tst_macro_memrchr" = "yes") &&
36509 test "$tst_compi_memrchr" = "yes" &&
36510 test "$tst_allow_memrchr" = "yes"; then
36511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36512 $as_echo "yes" >&6; }
36514 cat >>confdefs.h <<_ACEOF
36515 #define HAVE_MEMRCHR 1
36518 curl_cv_func_memrchr="yes"
36520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36521 $as_echo "no" >&6; }
36522 curl_cv_func_memrchr="no"
36527 tst_links_poll="unknown"
36528 tst_proto_poll="unknown"
36529 tst_compi_poll="unknown"
36530 tst_works_poll="unknown"
36531 tst_allow_poll="unknown"
36535 curl_disallow_poll="yes"
36536 tst_compi_poll="no"
36540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
36541 $as_echo_n "checking if poll can be linked... " >&6; }
36542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36543 /* end confdefs.h. */
36546 $curl_includes_poll
36551 if(0 != poll(0, 0, 0))
36559 if ac_fn_c_try_link "$LINENO"; then :
36561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36562 $as_echo "yes" >&6; }
36563 tst_links_poll="yes"
36567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36568 $as_echo "no" >&6; }
36569 tst_links_poll="no"
36572 rm -f core conftest.err conftest.$ac_objext \
36573 conftest$ac_exeext conftest.$ac_ext
36575 if test "$tst_links_poll" = "yes"; then
36576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
36577 $as_echo_n "checking if poll is prototyped... " >&6; }
36578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36579 /* end confdefs.h. */
36581 $curl_includes_poll
36584 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36585 $EGREP "poll" >/dev/null 2>&1; then :
36587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36588 $as_echo "yes" >&6; }
36589 tst_proto_poll="yes"
36593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36594 $as_echo "no" >&6; }
36595 tst_proto_poll="no"
36602 if test "$tst_proto_poll" = "yes"; then
36603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
36604 $as_echo_n "checking if poll is compilable... " >&6; }
36605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36606 /* end confdefs.h. */
36609 $curl_includes_poll
36614 if(0 != poll(0, 0, 0))
36622 if ac_fn_c_try_compile "$LINENO"; then :
36624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36625 $as_echo "yes" >&6; }
36626 tst_compi_poll="yes"
36630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36631 $as_echo "no" >&6; }
36632 tst_compi_poll="no"
36635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36638 if test "x$cross_compiling" != "xyes" &&
36639 test "$tst_compi_poll" = "yes"; then
36640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
36641 $as_echo_n "checking if poll seems to work... " >&6; }
36642 if test "$cross_compiling" = yes; then :
36643 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36644 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36645 as_fn_error $? "cannot run test program while cross compiling
36646 See \`config.log' for more details" "$LINENO" 5; }
36648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36649 /* end confdefs.h. */
36652 $curl_includes_stdlib
36653 $curl_includes_poll
36654 $curl_includes_time
36659 /* detect the original poll() breakage */
36660 if(0 != poll(0, 0, 10))
36661 exit(1); /* fail */
36663 /* detect the 10.12 poll() breakage */
36664 struct timeval before, after;
36668 gettimeofday(&before, NULL);
36669 rc = poll(NULL, 0, 500);
36670 gettimeofday(&after, NULL);
36672 us = (after.tv_sec - before.tv_sec) * 1000000 +
36673 (after.tv_usec - before.tv_usec);
36684 if ac_fn_c_try_run "$LINENO"; then :
36686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36687 $as_echo "yes" >&6; }
36688 tst_works_poll="yes"
36692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36693 $as_echo "no" >&6; }
36694 tst_works_poll="no"
36697 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36698 conftest.$ac_objext conftest.beam conftest.$ac_ext
36703 if test "$tst_compi_poll" = "yes" &&
36704 test "$tst_works_poll" != "no"; then
36705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
36706 $as_echo_n "checking if poll usage allowed... " >&6; }
36707 if test "x$curl_disallow_poll" != "xyes"; then
36708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36709 $as_echo "yes" >&6; }
36710 tst_allow_poll="yes"
36712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36713 $as_echo "no" >&6; }
36714 tst_allow_poll="no"
36718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
36719 $as_echo_n "checking if poll might be used... " >&6; }
36720 if test "$tst_links_poll" = "yes" &&
36721 test "$tst_proto_poll" = "yes" &&
36722 test "$tst_compi_poll" = "yes" &&
36723 test "$tst_allow_poll" = "yes" &&
36724 test "$tst_works_poll" != "no"; then
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36726 $as_echo "yes" >&6; }
36728 cat >>confdefs.h <<_ACEOF
36729 #define HAVE_POLL 1
36733 cat >>confdefs.h <<_ACEOF
36734 #define HAVE_POLL_FINE 1
36737 curl_cv_func_poll="yes"
36739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36740 $as_echo "no" >&6; }
36741 curl_cv_func_poll="no"
36746 tst_links_setsockopt="unknown"
36747 tst_proto_setsockopt="unknown"
36748 tst_compi_setsockopt="unknown"
36749 tst_allow_setsockopt="unknown"
36751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
36752 $as_echo_n "checking if setsockopt can be linked... " >&6; }
36753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36754 /* end confdefs.h. */
36757 $curl_includes_winsock2
36758 $curl_includes_sys_socket
36763 if(0 != setsockopt(0, 0, 0, 0, 0))
36771 if ac_fn_c_try_link "$LINENO"; then :
36773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36774 $as_echo "yes" >&6; }
36775 tst_links_setsockopt="yes"
36779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36780 $as_echo "no" >&6; }
36781 tst_links_setsockopt="no"
36784 rm -f core conftest.err conftest.$ac_objext \
36785 conftest$ac_exeext conftest.$ac_ext
36787 if test "$tst_links_setsockopt" = "yes"; then
36788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
36789 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
36790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36791 /* end confdefs.h. */
36793 $curl_includes_winsock2
36794 $curl_includes_sys_socket
36797 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36798 $EGREP "setsockopt" >/dev/null 2>&1; then :
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36801 $as_echo "yes" >&6; }
36802 tst_proto_setsockopt="yes"
36806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36807 $as_echo "no" >&6; }
36808 tst_proto_setsockopt="no"
36815 if test "$tst_proto_setsockopt" = "yes"; then
36816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
36817 $as_echo_n "checking if setsockopt is compilable... " >&6; }
36818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36819 /* end confdefs.h. */
36822 $curl_includes_winsock2
36823 $curl_includes_sys_socket
36828 if(0 != setsockopt(0, 0, 0, 0, 0))
36836 if ac_fn_c_try_compile "$LINENO"; then :
36838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36839 $as_echo "yes" >&6; }
36840 tst_compi_setsockopt="yes"
36844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36845 $as_echo "no" >&6; }
36846 tst_compi_setsockopt="no"
36849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36852 if test "$tst_compi_setsockopt" = "yes"; then
36853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
36854 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
36855 if test "x$curl_disallow_setsockopt" != "xyes"; then
36856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36857 $as_echo "yes" >&6; }
36858 tst_allow_setsockopt="yes"
36860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36861 $as_echo "no" >&6; }
36862 tst_allow_setsockopt="no"
36866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
36867 $as_echo_n "checking if setsockopt might be used... " >&6; }
36868 if test "$tst_links_setsockopt" = "yes" &&
36869 test "$tst_proto_setsockopt" = "yes" &&
36870 test "$tst_compi_setsockopt" = "yes" &&
36871 test "$tst_allow_setsockopt" = "yes"; then
36872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36873 $as_echo "yes" >&6; }
36875 cat >>confdefs.h <<_ACEOF
36876 #define HAVE_SETSOCKOPT 1
36879 curl_cv_func_setsockopt="yes"
36882 tst_compi_setsockopt_so_nonblock="unknown"
36883 tst_allow_setsockopt_so_nonblock="unknown"
36885 if test "$curl_cv_func_setsockopt" = "yes"; then
36886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
36887 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
36888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36889 /* end confdefs.h. */
36892 $curl_includes_winsock2
36893 $curl_includes_sys_socket
36898 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
36906 if ac_fn_c_try_compile "$LINENO"; then :
36908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36909 $as_echo "yes" >&6; }
36910 tst_compi_setsockopt_so_nonblock="yes"
36914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36915 $as_echo "no" >&6; }
36916 tst_compi_setsockopt_so_nonblock="no"
36919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36922 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
36923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
36924 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
36925 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
36926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36927 $as_echo "yes" >&6; }
36928 tst_allow_setsockopt_so_nonblock="yes"
36930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36931 $as_echo "no" >&6; }
36932 tst_allow_setsockopt_so_nonblock="no"
36936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
36937 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
36938 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
36939 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
36940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36941 $as_echo "yes" >&6; }
36943 cat >>confdefs.h <<_ACEOF
36944 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
36947 curl_cv_func_setsockopt_so_nonblock="yes"
36949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36950 $as_echo "no" >&6; }
36951 curl_cv_func_setsockopt_so_nonblock="no"
36955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36956 $as_echo "no" >&6; }
36957 curl_cv_func_setsockopt="no"
36961 curl_includes_signal="\
36962 /* includes start */
36963 #ifdef HAVE_SYS_TYPES_H
36964 # include <sys/types.h>
36966 #ifdef HAVE_SIGNAL_H
36967 # include <signal.h>
36969 /* includes end */"
36970 for ac_header in sys/types.h signal.h
36972 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
36973 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
36975 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
36976 cat >>confdefs.h <<_ACEOF
36977 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
36987 tst_links_sigaction="unknown"
36988 tst_proto_sigaction="unknown"
36989 tst_compi_sigaction="unknown"
36990 tst_allow_sigaction="unknown"
36992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
36993 $as_echo_n "checking if sigaction can be linked... " >&6; }
36994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36995 /* end confdefs.h. */
36998 #define sigaction innocuous_sigaction
37000 # include <limits.h>
37002 # include <assert.h>
37009 #if defined __stub_sigaction || defined __stub___sigaction
37015 return sigaction ();
37021 if ac_fn_c_try_link "$LINENO"; then :
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 $as_echo "yes" >&6; }
37025 tst_links_sigaction="yes"
37029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37030 $as_echo "no" >&6; }
37031 tst_links_sigaction="no"
37034 rm -f core conftest.err conftest.$ac_objext \
37035 conftest$ac_exeext conftest.$ac_ext
37037 if test "$tst_links_sigaction" = "yes"; then
37038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
37039 $as_echo_n "checking if sigaction is prototyped... " >&6; }
37040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37041 /* end confdefs.h. */
37043 $curl_includes_signal
37046 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37047 $EGREP "sigaction" >/dev/null 2>&1; then :
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37050 $as_echo "yes" >&6; }
37051 tst_proto_sigaction="yes"
37055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37056 $as_echo "no" >&6; }
37057 tst_proto_sigaction="no"
37064 if test "$tst_proto_sigaction" = "yes"; then
37065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
37066 $as_echo_n "checking if sigaction is compilable... " >&6; }
37067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37068 /* end confdefs.h. */
37071 $curl_includes_signal
37076 if(0 != sigaction(0, 0, 0))
37084 if ac_fn_c_try_compile "$LINENO"; then :
37086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37087 $as_echo "yes" >&6; }
37088 tst_compi_sigaction="yes"
37092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37093 $as_echo "no" >&6; }
37094 tst_compi_sigaction="no"
37097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37100 if test "$tst_compi_sigaction" = "yes"; then
37101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
37102 $as_echo_n "checking if sigaction usage allowed... " >&6; }
37103 if test "x$curl_disallow_sigaction" != "xyes"; then
37104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37105 $as_echo "yes" >&6; }
37106 tst_allow_sigaction="yes"
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37109 $as_echo "no" >&6; }
37110 tst_allow_sigaction="no"
37114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
37115 $as_echo_n "checking if sigaction might be used... " >&6; }
37116 if test "$tst_links_sigaction" = "yes" &&
37117 test "$tst_proto_sigaction" = "yes" &&
37118 test "$tst_compi_sigaction" = "yes" &&
37119 test "$tst_allow_sigaction" = "yes"; then
37120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37121 $as_echo "yes" >&6; }
37123 cat >>confdefs.h <<_ACEOF
37124 #define HAVE_SIGACTION 1
37127 curl_cv_func_sigaction="yes"
37129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130 $as_echo "no" >&6; }
37131 curl_cv_func_sigaction="no"
37136 tst_links_siginterrupt="unknown"
37137 tst_proto_siginterrupt="unknown"
37138 tst_compi_siginterrupt="unknown"
37139 tst_allow_siginterrupt="unknown"
37141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
37142 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
37143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37144 /* end confdefs.h. */
37147 #define siginterrupt innocuous_siginterrupt
37149 # include <limits.h>
37151 # include <assert.h>
37153 #undef siginterrupt
37157 char siginterrupt ();
37158 #if defined __stub_siginterrupt || defined __stub___siginterrupt
37164 return siginterrupt ();
37170 if ac_fn_c_try_link "$LINENO"; then :
37172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37173 $as_echo "yes" >&6; }
37174 tst_links_siginterrupt="yes"
37178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37179 $as_echo "no" >&6; }
37180 tst_links_siginterrupt="no"
37183 rm -f core conftest.err conftest.$ac_objext \
37184 conftest$ac_exeext conftest.$ac_ext
37186 if test "$tst_links_siginterrupt" = "yes"; then
37187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
37188 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
37189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37190 /* end confdefs.h. */
37192 $curl_includes_signal
37195 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37196 $EGREP "siginterrupt" >/dev/null 2>&1; then :
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37199 $as_echo "yes" >&6; }
37200 tst_proto_siginterrupt="yes"
37204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37205 $as_echo "no" >&6; }
37206 tst_proto_siginterrupt="no"
37213 if test "$tst_proto_siginterrupt" = "yes"; then
37214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
37215 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
37216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37217 /* end confdefs.h. */
37220 $curl_includes_signal
37225 if(0 != siginterrupt(0, 0))
37233 if ac_fn_c_try_compile "$LINENO"; then :
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37236 $as_echo "yes" >&6; }
37237 tst_compi_siginterrupt="yes"
37241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37242 $as_echo "no" >&6; }
37243 tst_compi_siginterrupt="no"
37246 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37249 if test "$tst_compi_siginterrupt" = "yes"; then
37250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
37251 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
37252 if test "x$curl_disallow_siginterrupt" != "xyes"; then
37253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37254 $as_echo "yes" >&6; }
37255 tst_allow_siginterrupt="yes"
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37258 $as_echo "no" >&6; }
37259 tst_allow_siginterrupt="no"
37263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
37264 $as_echo_n "checking if siginterrupt might be used... " >&6; }
37265 if test "$tst_links_siginterrupt" = "yes" &&
37266 test "$tst_proto_siginterrupt" = "yes" &&
37267 test "$tst_compi_siginterrupt" = "yes" &&
37268 test "$tst_allow_siginterrupt" = "yes"; then
37269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37270 $as_echo "yes" >&6; }
37272 cat >>confdefs.h <<_ACEOF
37273 #define HAVE_SIGINTERRUPT 1
37276 curl_cv_func_siginterrupt="yes"
37278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37279 $as_echo "no" >&6; }
37280 curl_cv_func_siginterrupt="no"
37285 tst_links_signal="unknown"
37286 tst_proto_signal="unknown"
37287 tst_compi_signal="unknown"
37288 tst_allow_signal="unknown"
37290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
37291 $as_echo_n "checking if signal can be linked... " >&6; }
37292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37293 /* end confdefs.h. */
37296 #define signal innocuous_signal
37298 # include <limits.h>
37300 # include <assert.h>
37307 #if defined __stub_signal || defined __stub___signal
37319 if ac_fn_c_try_link "$LINENO"; then :
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37322 $as_echo "yes" >&6; }
37323 tst_links_signal="yes"
37327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37328 $as_echo "no" >&6; }
37329 tst_links_signal="no"
37332 rm -f core conftest.err conftest.$ac_objext \
37333 conftest$ac_exeext conftest.$ac_ext
37335 if test "$tst_links_signal" = "yes"; then
37336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
37337 $as_echo_n "checking if signal is prototyped... " >&6; }
37338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37339 /* end confdefs.h. */
37341 $curl_includes_signal
37344 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37345 $EGREP "signal" >/dev/null 2>&1; then :
37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37348 $as_echo "yes" >&6; }
37349 tst_proto_signal="yes"
37353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37354 $as_echo "no" >&6; }
37355 tst_proto_signal="no"
37362 if test "$tst_proto_signal" = "yes"; then
37363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
37364 $as_echo_n "checking if signal is compilable... " >&6; }
37365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37366 /* end confdefs.h. */
37369 $curl_includes_signal
37374 if(0 != signal(0, 0))
37382 if ac_fn_c_try_compile "$LINENO"; then :
37384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37385 $as_echo "yes" >&6; }
37386 tst_compi_signal="yes"
37390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37391 $as_echo "no" >&6; }
37392 tst_compi_signal="no"
37395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37398 if test "$tst_compi_signal" = "yes"; then
37399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
37400 $as_echo_n "checking if signal usage allowed... " >&6; }
37401 if test "x$curl_disallow_signal" != "xyes"; then
37402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37403 $as_echo "yes" >&6; }
37404 tst_allow_signal="yes"
37406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37407 $as_echo "no" >&6; }
37408 tst_allow_signal="no"
37412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
37413 $as_echo_n "checking if signal might be used... " >&6; }
37414 if test "$tst_links_signal" = "yes" &&
37415 test "$tst_proto_signal" = "yes" &&
37416 test "$tst_compi_signal" = "yes" &&
37417 test "$tst_allow_signal" = "yes"; then
37418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37419 $as_echo "yes" >&6; }
37421 cat >>confdefs.h <<_ACEOF
37422 #define HAVE_SIGNAL 1
37425 curl_cv_func_signal="yes"
37427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37428 $as_echo "no" >&6; }
37429 curl_cv_func_signal="no"
37433 curl_includes_setjmp="\
37434 /* includes start */
37435 #ifdef HAVE_SYS_TYPES_H
37436 # include <sys/types.h>
37438 #ifdef HAVE_SETJMP_H
37439 # include <setjmp.h>
37441 /* includes end */"
37442 for ac_header in sys/types.h setjmp.h
37444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37445 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
37447 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37448 cat >>confdefs.h <<_ACEOF
37449 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37459 tst_links_sigsetjmp="unknown"
37460 tst_macro_sigsetjmp="unknown"
37461 tst_proto_sigsetjmp="unknown"
37462 tst_compi_sigsetjmp="unknown"
37463 tst_allow_sigsetjmp="unknown"
37465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
37466 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
37467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37468 /* end confdefs.h. */
37471 #define sigsetjmp innocuous_sigsetjmp
37473 # include <limits.h>
37475 # include <assert.h>
37482 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
37488 return sigsetjmp ();
37494 if ac_fn_c_try_link "$LINENO"; then :
37496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37497 $as_echo "yes" >&6; }
37498 tst_links_sigsetjmp="yes"
37502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37503 $as_echo "no" >&6; }
37504 tst_links_sigsetjmp="no"
37507 rm -f core conftest.err conftest.$ac_objext \
37508 conftest$ac_exeext conftest.$ac_ext
37510 if test "$tst_links_sigsetjmp" = "no"; then
37511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
37512 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
37513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37514 /* end confdefs.h. */
37517 $curl_includes_setjmp
37523 if(0 != sigsetjmp(env, 0))
37531 if ac_fn_c_try_link "$LINENO"; then :
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37534 $as_echo "yes" >&6; }
37535 tst_macro_sigsetjmp="yes"
37539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37540 $as_echo "no" >&6; }
37541 tst_macro_sigsetjmp="no"
37544 rm -f core conftest.err conftest.$ac_objext \
37545 conftest$ac_exeext conftest.$ac_ext
37548 if test "$tst_links_sigsetjmp" = "yes"; then
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
37550 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
37551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37552 /* end confdefs.h. */
37554 $curl_includes_setjmp
37557 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37558 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
37560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37561 $as_echo "yes" >&6; }
37562 tst_proto_sigsetjmp="yes"
37566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37567 $as_echo "no" >&6; }
37568 tst_proto_sigsetjmp="no"
37575 if test "$tst_proto_sigsetjmp" = "yes" ||
37576 test "$tst_macro_sigsetjmp" = "yes"; then
37577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
37578 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
37579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37580 /* end confdefs.h. */
37583 $curl_includes_setjmp
37589 if(0 != sigsetjmp(env, 0))
37597 if ac_fn_c_try_compile "$LINENO"; then :
37599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37600 $as_echo "yes" >&6; }
37601 tst_compi_sigsetjmp="yes"
37605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37606 $as_echo "no" >&6; }
37607 tst_compi_sigsetjmp="no"
37610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37613 if test "$tst_compi_sigsetjmp" = "yes"; then
37614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
37615 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
37616 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
37617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37618 $as_echo "yes" >&6; }
37619 tst_allow_sigsetjmp="yes"
37621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37622 $as_echo "no" >&6; }
37623 tst_allow_sigsetjmp="no"
37627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
37628 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
37629 if (test "$tst_proto_sigsetjmp" = "yes" ||
37630 test "$tst_macro_sigsetjmp" = "yes") &&
37631 test "$tst_compi_sigsetjmp" = "yes" &&
37632 test "$tst_allow_sigsetjmp" = "yes"; then
37633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37634 $as_echo "yes" >&6; }
37636 cat >>confdefs.h <<_ACEOF
37637 #define HAVE_SIGSETJMP 1
37640 curl_cv_func_sigsetjmp="yes"
37642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37643 $as_echo "no" >&6; }
37644 curl_cv_func_sigsetjmp="no"
37649 tst_links_socket="unknown"
37650 tst_proto_socket="unknown"
37651 tst_compi_socket="unknown"
37652 tst_allow_socket="unknown"
37654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
37655 $as_echo_n "checking if socket can be linked... " >&6; }
37656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37657 /* end confdefs.h. */
37660 $curl_includes_winsock2
37661 $curl_includes_sys_socket
37662 $curl_includes_socket
37667 if(0 != socket(0, 0, 0))
37675 if ac_fn_c_try_link "$LINENO"; then :
37677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37678 $as_echo "yes" >&6; }
37679 tst_links_socket="yes"
37683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37684 $as_echo "no" >&6; }
37685 tst_links_socket="no"
37688 rm -f core conftest.err conftest.$ac_objext \
37689 conftest$ac_exeext conftest.$ac_ext
37691 if test "$tst_links_socket" = "yes"; then
37692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
37693 $as_echo_n "checking if socket is prototyped... " >&6; }
37694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37695 /* end confdefs.h. */
37697 $curl_includes_winsock2
37698 $curl_includes_sys_socket
37699 $curl_includes_socket
37702 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37703 $EGREP "socket" >/dev/null 2>&1; then :
37705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37706 $as_echo "yes" >&6; }
37707 tst_proto_socket="yes"
37711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37712 $as_echo "no" >&6; }
37713 tst_proto_socket="no"
37720 if test "$tst_proto_socket" = "yes"; then
37721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
37722 $as_echo_n "checking if socket is compilable... " >&6; }
37723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37724 /* end confdefs.h. */
37727 $curl_includes_winsock2
37728 $curl_includes_sys_socket
37729 $curl_includes_socket
37734 if(0 != socket(0, 0, 0))
37742 if ac_fn_c_try_compile "$LINENO"; then :
37744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37745 $as_echo "yes" >&6; }
37746 tst_compi_socket="yes"
37750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37751 $as_echo "no" >&6; }
37752 tst_compi_socket="no"
37755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37758 if test "$tst_compi_socket" = "yes"; then
37759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
37760 $as_echo_n "checking if socket usage allowed... " >&6; }
37761 if test "x$curl_disallow_socket" != "xyes"; then
37762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37763 $as_echo "yes" >&6; }
37764 tst_allow_socket="yes"
37766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37767 $as_echo "no" >&6; }
37768 tst_allow_socket="no"
37772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
37773 $as_echo_n "checking if socket might be used... " >&6; }
37774 if test "$tst_links_socket" = "yes" &&
37775 test "$tst_proto_socket" = "yes" &&
37776 test "$tst_compi_socket" = "yes" &&
37777 test "$tst_allow_socket" = "yes"; then
37778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37779 $as_echo "yes" >&6; }
37781 cat >>confdefs.h <<_ACEOF
37782 #define HAVE_SOCKET 1
37785 curl_cv_func_socket="yes"
37787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37788 $as_echo "no" >&6; }
37789 curl_cv_func_socket="no"
37794 tst_links_socketpair="unknown"
37795 tst_proto_socketpair="unknown"
37796 tst_compi_socketpair="unknown"
37797 tst_allow_socketpair="unknown"
37799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
37800 $as_echo_n "checking if socketpair can be linked... " >&6; }
37801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37802 /* end confdefs.h. */
37805 #define socketpair innocuous_socketpair
37807 # include <limits.h>
37809 # include <assert.h>
37815 char socketpair ();
37816 #if defined __stub_socketpair || defined __stub___socketpair
37822 return socketpair ();
37828 if ac_fn_c_try_link "$LINENO"; then :
37830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37831 $as_echo "yes" >&6; }
37832 tst_links_socketpair="yes"
37836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37837 $as_echo "no" >&6; }
37838 tst_links_socketpair="no"
37841 rm -f core conftest.err conftest.$ac_objext \
37842 conftest$ac_exeext conftest.$ac_ext
37844 if test "$tst_links_socketpair" = "yes"; then
37845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
37846 $as_echo_n "checking if socketpair is prototyped... " >&6; }
37847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37848 /* end confdefs.h. */
37850 $curl_includes_sys_socket
37851 $curl_includes_socket
37854 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37855 $EGREP "socketpair" >/dev/null 2>&1; then :
37857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37858 $as_echo "yes" >&6; }
37859 tst_proto_socketpair="yes"
37863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37864 $as_echo "no" >&6; }
37865 tst_proto_socketpair="no"
37872 if test "$tst_proto_socketpair" = "yes"; then
37873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
37874 $as_echo_n "checking if socketpair is compilable... " >&6; }
37875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37876 /* end confdefs.h. */
37879 $curl_includes_sys_socket
37880 $curl_includes_socket
37886 if(0 != socketpair(0, 0, 0, sv))
37894 if ac_fn_c_try_compile "$LINENO"; then :
37896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37897 $as_echo "yes" >&6; }
37898 tst_compi_socketpair="yes"
37902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37903 $as_echo "no" >&6; }
37904 tst_compi_socketpair="no"
37907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37910 if test "$tst_compi_socketpair" = "yes"; then
37911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
37912 $as_echo_n "checking if socketpair usage allowed... " >&6; }
37913 if test "x$curl_disallow_socketpair" != "xyes"; then
37914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37915 $as_echo "yes" >&6; }
37916 tst_allow_socketpair="yes"
37918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37919 $as_echo "no" >&6; }
37920 tst_allow_socketpair="no"
37924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
37925 $as_echo_n "checking if socketpair might be used... " >&6; }
37926 if test "$tst_links_socketpair" = "yes" &&
37927 test "$tst_proto_socketpair" = "yes" &&
37928 test "$tst_compi_socketpair" = "yes" &&
37929 test "$tst_allow_socketpair" = "yes"; then
37930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37931 $as_echo "yes" >&6; }
37933 cat >>confdefs.h <<_ACEOF
37934 #define HAVE_SOCKETPAIR 1
37937 curl_cv_func_socketpair="yes"
37939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37940 $as_echo "no" >&6; }
37941 curl_cv_func_socketpair="no"
37946 tst_links_strcasecmp="unknown"
37947 tst_proto_strcasecmp="unknown"
37948 tst_compi_strcasecmp="unknown"
37949 tst_allow_strcasecmp="unknown"
37951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
37952 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
37953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37954 /* end confdefs.h. */
37957 #define strcasecmp innocuous_strcasecmp
37959 # include <limits.h>
37961 # include <assert.h>
37967 char strcasecmp ();
37968 #if defined __stub_strcasecmp || defined __stub___strcasecmp
37974 return strcasecmp ();
37980 if ac_fn_c_try_link "$LINENO"; then :
37982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37983 $as_echo "yes" >&6; }
37984 tst_links_strcasecmp="yes"
37988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37989 $as_echo "no" >&6; }
37990 tst_links_strcasecmp="no"
37993 rm -f core conftest.err conftest.$ac_objext \
37994 conftest$ac_exeext conftest.$ac_ext
37996 if test "$tst_links_strcasecmp" = "yes"; then
37997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
37998 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
37999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38000 /* end confdefs.h. */
38002 $curl_includes_string
38005 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38006 $EGREP "strcasecmp" >/dev/null 2>&1; then :
38008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38009 $as_echo "yes" >&6; }
38010 tst_proto_strcasecmp="yes"
38014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38015 $as_echo "no" >&6; }
38016 tst_proto_strcasecmp="no"
38023 if test "$tst_proto_strcasecmp" = "yes"; then
38024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
38025 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
38026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38027 /* end confdefs.h. */
38030 $curl_includes_string
38035 if(0 != strcasecmp(0, 0))
38043 if ac_fn_c_try_compile "$LINENO"; then :
38045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38046 $as_echo "yes" >&6; }
38047 tst_compi_strcasecmp="yes"
38051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38052 $as_echo "no" >&6; }
38053 tst_compi_strcasecmp="no"
38056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38059 if test "$tst_compi_strcasecmp" = "yes"; then
38060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
38061 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
38062 if test "x$curl_disallow_strcasecmp" != "xyes"; then
38063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064 $as_echo "yes" >&6; }
38065 tst_allow_strcasecmp="yes"
38067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38068 $as_echo "no" >&6; }
38069 tst_allow_strcasecmp="no"
38073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
38074 $as_echo_n "checking if strcasecmp might be used... " >&6; }
38075 if test "$tst_links_strcasecmp" = "yes" &&
38076 test "$tst_proto_strcasecmp" = "yes" &&
38077 test "$tst_compi_strcasecmp" = "yes" &&
38078 test "$tst_allow_strcasecmp" = "yes"; then
38079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38080 $as_echo "yes" >&6; }
38082 cat >>confdefs.h <<_ACEOF
38083 #define HAVE_STRCASECMP 1
38086 curl_cv_func_strcasecmp="yes"
38088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38089 $as_echo "no" >&6; }
38090 curl_cv_func_strcasecmp="no"
38095 tst_links_strcmpi="unknown"
38096 tst_proto_strcmpi="unknown"
38097 tst_compi_strcmpi="unknown"
38098 tst_allow_strcmpi="unknown"
38100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
38101 $as_echo_n "checking if strcmpi can be linked... " >&6; }
38102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38103 /* end confdefs.h. */
38106 #define strcmpi innocuous_strcmpi
38108 # include <limits.h>
38110 # include <assert.h>
38117 #if defined __stub_strcmpi || defined __stub___strcmpi
38129 if ac_fn_c_try_link "$LINENO"; then :
38131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38132 $as_echo "yes" >&6; }
38133 tst_links_strcmpi="yes"
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38138 $as_echo "no" >&6; }
38139 tst_links_strcmpi="no"
38142 rm -f core conftest.err conftest.$ac_objext \
38143 conftest$ac_exeext conftest.$ac_ext
38145 if test "$tst_links_strcmpi" = "yes"; then
38146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
38147 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
38148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38149 /* end confdefs.h. */
38151 $curl_includes_string
38154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38155 $EGREP "strcmpi" >/dev/null 2>&1; then :
38157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38158 $as_echo "yes" >&6; }
38159 tst_proto_strcmpi="yes"
38163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38164 $as_echo "no" >&6; }
38165 tst_proto_strcmpi="no"
38172 if test "$tst_proto_strcmpi" = "yes"; then
38173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
38174 $as_echo_n "checking if strcmpi is compilable... " >&6; }
38175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38176 /* end confdefs.h. */
38179 $curl_includes_string
38184 if(0 != strcmpi(0, 0))
38192 if ac_fn_c_try_compile "$LINENO"; then :
38194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38195 $as_echo "yes" >&6; }
38196 tst_compi_strcmpi="yes"
38200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38201 $as_echo "no" >&6; }
38202 tst_compi_strcmpi="no"
38205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38208 if test "$tst_compi_strcmpi" = "yes"; then
38209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
38210 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
38211 if test "x$curl_disallow_strcmpi" != "xyes"; then
38212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38213 $as_echo "yes" >&6; }
38214 tst_allow_strcmpi="yes"
38216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38217 $as_echo "no" >&6; }
38218 tst_allow_strcmpi="no"
38222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
38223 $as_echo_n "checking if strcmpi might be used... " >&6; }
38224 if test "$tst_links_strcmpi" = "yes" &&
38225 test "$tst_proto_strcmpi" = "yes" &&
38226 test "$tst_compi_strcmpi" = "yes" &&
38227 test "$tst_allow_strcmpi" = "yes"; then
38228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38229 $as_echo "yes" >&6; }
38231 cat >>confdefs.h <<_ACEOF
38232 #define HAVE_STRCMPI 1
38235 curl_cv_func_strcmpi="yes"
38237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238 $as_echo "no" >&6; }
38239 curl_cv_func_strcmpi="no"
38244 tst_links_strdup="unknown"
38245 tst_proto_strdup="unknown"
38246 tst_compi_strdup="unknown"
38247 tst_allow_strdup="unknown"
38249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
38250 $as_echo_n "checking if strdup can be linked... " >&6; }
38251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38252 /* end confdefs.h. */
38255 #define strdup innocuous_strdup
38257 # include <limits.h>
38259 # include <assert.h>
38266 #if defined __stub_strdup || defined __stub___strdup
38278 if ac_fn_c_try_link "$LINENO"; then :
38280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38281 $as_echo "yes" >&6; }
38282 tst_links_strdup="yes"
38286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38287 $as_echo "no" >&6; }
38288 tst_links_strdup="no"
38291 rm -f core conftest.err conftest.$ac_objext \
38292 conftest$ac_exeext conftest.$ac_ext
38294 if test "$tst_links_strdup" = "yes"; then
38295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
38296 $as_echo_n "checking if strdup is prototyped... " >&6; }
38297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38298 /* end confdefs.h. */
38300 $curl_includes_string
38303 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38304 $EGREP "strdup" >/dev/null 2>&1; then :
38306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38307 $as_echo "yes" >&6; }
38308 tst_proto_strdup="yes"
38312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38313 $as_echo "no" >&6; }
38314 tst_proto_strdup="no"
38321 if test "$tst_proto_strdup" = "yes"; then
38322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
38323 $as_echo_n "checking if strdup is compilable... " >&6; }
38324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38325 /* end confdefs.h. */
38328 $curl_includes_string
38341 if ac_fn_c_try_compile "$LINENO"; then :
38343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38344 $as_echo "yes" >&6; }
38345 tst_compi_strdup="yes"
38349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38350 $as_echo "no" >&6; }
38351 tst_compi_strdup="no"
38354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38357 if test "$tst_compi_strdup" = "yes"; then
38358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
38359 $as_echo_n "checking if strdup usage allowed... " >&6; }
38360 if test "x$curl_disallow_strdup" != "xyes"; then
38361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38362 $as_echo "yes" >&6; }
38363 tst_allow_strdup="yes"
38365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38366 $as_echo "no" >&6; }
38367 tst_allow_strdup="no"
38371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
38372 $as_echo_n "checking if strdup might be used... " >&6; }
38373 if test "$tst_links_strdup" = "yes" &&
38374 test "$tst_proto_strdup" = "yes" &&
38375 test "$tst_compi_strdup" = "yes" &&
38376 test "$tst_allow_strdup" = "yes"; then
38377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38378 $as_echo "yes" >&6; }
38380 cat >>confdefs.h <<_ACEOF
38381 #define HAVE_STRDUP 1
38384 curl_cv_func_strdup="yes"
38386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38387 $as_echo "no" >&6; }
38388 curl_cv_func_strdup="no"
38393 tst_links_strerror_r="unknown"
38394 tst_proto_strerror_r="unknown"
38395 tst_compi_strerror_r="unknown"
38396 tst_glibc_strerror_r="unknown"
38397 tst_posix_strerror_r="unknown"
38398 tst_allow_strerror_r="unknown"
38399 tst_works_glibc_strerror_r="unknown"
38400 tst_works_posix_strerror_r="unknown"
38401 tst_glibc_strerror_r_type_arg3="unknown"
38402 tst_posix_strerror_r_type_arg3="unknown"
38404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
38405 $as_echo_n "checking if strerror_r can be linked... " >&6; }
38406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38407 /* end confdefs.h. */
38410 #define strerror_r innocuous_strerror_r
38412 # include <limits.h>
38414 # include <assert.h>
38420 char strerror_r ();
38421 #if defined __stub_strerror_r || defined __stub___strerror_r
38427 return strerror_r ();
38433 if ac_fn_c_try_link "$LINENO"; then :
38435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38436 $as_echo "yes" >&6; }
38437 tst_links_strerror_r="yes"
38441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38442 $as_echo "no" >&6; }
38443 tst_links_strerror_r="no"
38446 rm -f core conftest.err conftest.$ac_objext \
38447 conftest$ac_exeext conftest.$ac_ext
38449 if test "$tst_links_strerror_r" = "yes"; then
38450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
38451 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
38452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38453 /* end confdefs.h. */
38455 $curl_includes_string
38458 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38459 $EGREP "strerror_r" >/dev/null 2>&1; then :
38461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38462 $as_echo "yes" >&6; }
38463 tst_proto_strerror_r="yes"
38467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38468 $as_echo "no" >&6; }
38469 tst_proto_strerror_r="no"
38476 if test "$tst_proto_strerror_r" = "yes"; then
38477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
38478 $as_echo_n "checking if strerror_r is compilable... " >&6; }
38479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38480 /* end confdefs.h. */
38483 $curl_includes_string
38488 if(0 != strerror_r(0, 0, 0))
38496 if ac_fn_c_try_compile "$LINENO"; then :
38498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499 $as_echo "yes" >&6; }
38500 tst_compi_strerror_r="yes"
38504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505 $as_echo "no" >&6; }
38506 tst_compi_strerror_r="no"
38509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38512 if test "$tst_compi_strerror_r" = "yes"; then
38513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
38514 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
38515 tst_glibc_strerror_r_type_arg3="unknown"
38516 for arg3 in 'size_t' 'int' 'unsigned int'; do
38517 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
38518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38519 /* end confdefs.h. */
38522 $curl_includes_string
38523 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
38528 if(0 != strerror_r(0, 0, 0))
38536 if ac_fn_c_try_compile "$LINENO"; then :
38538 tst_glibc_strerror_r_type_arg3="$arg3"
38541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38544 case "$tst_glibc_strerror_r_type_arg3" in
38546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38547 $as_echo "no" >&6; }
38548 tst_glibc_strerror_r="no"
38551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38552 $as_echo "yes" >&6; }
38553 tst_glibc_strerror_r="yes"
38558 if test "x$cross_compiling" != "xyes" &&
38559 test "$tst_glibc_strerror_r" = "yes"; then
38560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38561 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38562 if test "$cross_compiling" = yes; then :
38563 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38564 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38565 as_fn_error $? "cannot run test program while cross compiling
38566 See \`config.log' for more details" "$LINENO" 5; }
38568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38569 /* end confdefs.h. */
38572 $curl_includes_stdlib
38573 $curl_includes_string
38574 # include <errno.h>
38582 string = strerror_r(EACCES, buffer, sizeof(buffer));
38584 exit(1); /* fail */
38586 exit(1); /* fail */
38595 if ac_fn_c_try_run "$LINENO"; then :
38597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38598 $as_echo "yes" >&6; }
38599 tst_works_glibc_strerror_r="yes"
38603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38604 $as_echo "no" >&6; }
38605 tst_works_glibc_strerror_r="no"
38608 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38609 conftest.$ac_objext conftest.beam conftest.$ac_ext
38614 if test "$tst_compi_strerror_r" = "yes" &&
38615 test "$tst_works_glibc_strerror_r" != "yes"; then
38616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
38617 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
38618 tst_posix_strerror_r_type_arg3="unknown"
38619 for arg3 in 'size_t' 'int' 'unsigned int'; do
38620 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
38621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38622 /* end confdefs.h. */
38625 $curl_includes_string
38626 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
38631 if(0 != strerror_r(0, 0, 0))
38639 if ac_fn_c_try_compile "$LINENO"; then :
38641 tst_posix_strerror_r_type_arg3="$arg3"
38644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38647 case "$tst_posix_strerror_r_type_arg3" in
38649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38650 $as_echo "no" >&6; }
38651 tst_posix_strerror_r="no"
38654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38655 $as_echo "yes" >&6; }
38656 tst_posix_strerror_r="yes"
38661 if test "x$cross_compiling" != "xyes" &&
38662 test "$tst_posix_strerror_r" = "yes"; then
38663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
38664 $as_echo_n "checking if strerror_r seems to work... " >&6; }
38665 if test "$cross_compiling" = yes; then :
38666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
38668 as_fn_error $? "cannot run test program while cross compiling
38669 See \`config.log' for more details" "$LINENO" 5; }
38671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38672 /* end confdefs.h. */
38675 $curl_includes_stdlib
38676 $curl_includes_string
38677 # include <errno.h>
38685 error = strerror_r(EACCES, buffer, sizeof(buffer));
38687 exit(1); /* fail */
38688 if(buffer[0] == '\0')
38689 exit(1); /* fail */
38698 if ac_fn_c_try_run "$LINENO"; then :
38700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38701 $as_echo "yes" >&6; }
38702 tst_works_posix_strerror_r="yes"
38706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38707 $as_echo "no" >&6; }
38708 tst_works_posix_strerror_r="no"
38711 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38712 conftest.$ac_objext conftest.beam conftest.$ac_ext
38717 if test "$tst_works_glibc_strerror_r" = "yes"; then
38718 tst_posix_strerror_r="no"
38720 if test "$tst_works_posix_strerror_r" = "yes"; then
38721 tst_glibc_strerror_r="no"
38723 if test "$tst_glibc_strerror_r" = "yes" &&
38724 test "$tst_works_glibc_strerror_r" != "no" &&
38725 test "$tst_posix_strerror_r" != "yes"; then
38726 tst_allow_strerror_r="check"
38728 if test "$tst_posix_strerror_r" = "yes" &&
38729 test "$tst_works_posix_strerror_r" != "no" &&
38730 test "$tst_glibc_strerror_r" != "yes"; then
38731 tst_allow_strerror_r="check"
38733 if test "$tst_allow_strerror_r" = "check"; then
38734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
38735 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
38736 if test "x$curl_disallow_strerror_r" != "xyes"; then
38737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38738 $as_echo "yes" >&6; }
38739 tst_allow_strerror_r="yes"
38741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38742 $as_echo "no" >&6; }
38743 tst_allow_strerror_r="no"
38747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
38748 $as_echo_n "checking if strerror_r might be used... " >&6; }
38749 if test "$tst_links_strerror_r" = "yes" &&
38750 test "$tst_proto_strerror_r" = "yes" &&
38751 test "$tst_compi_strerror_r" = "yes" &&
38752 test "$tst_allow_strerror_r" = "yes"; then
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38754 $as_echo "yes" >&6; }
38755 if test "$tst_glibc_strerror_r" = "yes"; then
38757 cat >>confdefs.h <<_ACEOF
38758 #define HAVE_STRERROR_R 1
38762 cat >>confdefs.h <<_ACEOF
38763 #define HAVE_GLIBC_STRERROR_R 1
38767 cat >>confdefs.h <<_ACEOF
38768 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
38772 if test "$tst_posix_strerror_r" = "yes"; then
38774 cat >>confdefs.h <<_ACEOF
38775 #define HAVE_STRERROR_R 1
38779 cat >>confdefs.h <<_ACEOF
38780 #define HAVE_POSIX_STRERROR_R 1
38784 cat >>confdefs.h <<_ACEOF
38785 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
38789 curl_cv_func_strerror_r="yes"
38791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38792 $as_echo "no" >&6; }
38793 curl_cv_func_strerror_r="no"
38796 if test "$tst_compi_strerror_r" = "yes" &&
38797 test "$tst_allow_strerror_r" = "unknown"; then
38798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
38799 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
38805 tst_links_stricmp="unknown"
38806 tst_proto_stricmp="unknown"
38807 tst_compi_stricmp="unknown"
38808 tst_allow_stricmp="unknown"
38810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
38811 $as_echo_n "checking if stricmp can be linked... " >&6; }
38812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38813 /* end confdefs.h. */
38816 #define stricmp innocuous_stricmp
38818 # include <limits.h>
38820 # include <assert.h>
38827 #if defined __stub_stricmp || defined __stub___stricmp
38839 if ac_fn_c_try_link "$LINENO"; then :
38841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38842 $as_echo "yes" >&6; }
38843 tst_links_stricmp="yes"
38847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38848 $as_echo "no" >&6; }
38849 tst_links_stricmp="no"
38852 rm -f core conftest.err conftest.$ac_objext \
38853 conftest$ac_exeext conftest.$ac_ext
38855 if test "$tst_links_stricmp" = "yes"; then
38856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
38857 $as_echo_n "checking if stricmp is prototyped... " >&6; }
38858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38859 /* end confdefs.h. */
38861 $curl_includes_string
38864 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38865 $EGREP "stricmp" >/dev/null 2>&1; then :
38867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38868 $as_echo "yes" >&6; }
38869 tst_proto_stricmp="yes"
38873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38874 $as_echo "no" >&6; }
38875 tst_proto_stricmp="no"
38882 if test "$tst_proto_stricmp" = "yes"; then
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
38884 $as_echo_n "checking if stricmp is compilable... " >&6; }
38885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38886 /* end confdefs.h. */
38889 $curl_includes_string
38894 if(0 != stricmp(0, 0))
38902 if ac_fn_c_try_compile "$LINENO"; then :
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38905 $as_echo "yes" >&6; }
38906 tst_compi_stricmp="yes"
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911 $as_echo "no" >&6; }
38912 tst_compi_stricmp="no"
38915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38918 if test "$tst_compi_stricmp" = "yes"; then
38919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
38920 $as_echo_n "checking if stricmp usage allowed... " >&6; }
38921 if test "x$curl_disallow_stricmp" != "xyes"; then
38922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38923 $as_echo "yes" >&6; }
38924 tst_allow_stricmp="yes"
38926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38927 $as_echo "no" >&6; }
38928 tst_allow_stricmp="no"
38932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
38933 $as_echo_n "checking if stricmp might be used... " >&6; }
38934 if test "$tst_links_stricmp" = "yes" &&
38935 test "$tst_proto_stricmp" = "yes" &&
38936 test "$tst_compi_stricmp" = "yes" &&
38937 test "$tst_allow_stricmp" = "yes"; then
38938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38939 $as_echo "yes" >&6; }
38941 cat >>confdefs.h <<_ACEOF
38942 #define HAVE_STRICMP 1
38945 curl_cv_func_stricmp="yes"
38947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38948 $as_echo "no" >&6; }
38949 curl_cv_func_stricmp="no"
38954 tst_links_strncasecmp="unknown"
38955 tst_proto_strncasecmp="unknown"
38956 tst_compi_strncasecmp="unknown"
38957 tst_allow_strncasecmp="unknown"
38959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
38960 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
38961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38962 /* end confdefs.h. */
38965 #define strncasecmp innocuous_strncasecmp
38967 # include <limits.h>
38969 # include <assert.h>
38975 char strncasecmp ();
38976 #if defined __stub_strncasecmp || defined __stub___strncasecmp
38982 return strncasecmp ();
38988 if ac_fn_c_try_link "$LINENO"; then :
38990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38991 $as_echo "yes" >&6; }
38992 tst_links_strncasecmp="yes"
38996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38997 $as_echo "no" >&6; }
38998 tst_links_strncasecmp="no"
39001 rm -f core conftest.err conftest.$ac_objext \
39002 conftest$ac_exeext conftest.$ac_ext
39004 if test "$tst_links_strncasecmp" = "yes"; then
39005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
39006 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
39007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39008 /* end confdefs.h. */
39010 $curl_includes_string
39013 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39014 $EGREP "strncasecmp" >/dev/null 2>&1; then :
39016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39017 $as_echo "yes" >&6; }
39018 tst_proto_strncasecmp="yes"
39022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39023 $as_echo "no" >&6; }
39024 tst_proto_strncasecmp="no"
39031 if test "$tst_proto_strncasecmp" = "yes"; then
39032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
39033 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
39034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39035 /* end confdefs.h. */
39038 $curl_includes_string
39043 if(0 != strncasecmp(0, 0, 0))
39051 if ac_fn_c_try_compile "$LINENO"; then :
39053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39054 $as_echo "yes" >&6; }
39055 tst_compi_strncasecmp="yes"
39059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39060 $as_echo "no" >&6; }
39061 tst_compi_strncasecmp="no"
39064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39067 if test "$tst_compi_strncasecmp" = "yes"; then
39068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
39069 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
39070 if test "x$curl_disallow_strncasecmp" != "xyes"; then
39071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39072 $as_echo "yes" >&6; }
39073 tst_allow_strncasecmp="yes"
39075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39076 $as_echo "no" >&6; }
39077 tst_allow_strncasecmp="no"
39081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
39082 $as_echo_n "checking if strncasecmp might be used... " >&6; }
39083 if test "$tst_links_strncasecmp" = "yes" &&
39084 test "$tst_proto_strncasecmp" = "yes" &&
39085 test "$tst_compi_strncasecmp" = "yes" &&
39086 test "$tst_allow_strncasecmp" = "yes"; then
39087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39088 $as_echo "yes" >&6; }
39090 cat >>confdefs.h <<_ACEOF
39091 #define HAVE_STRNCASECMP 1
39094 curl_cv_func_strncasecmp="yes"
39096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39097 $as_echo "no" >&6; }
39098 curl_cv_func_strncasecmp="no"
39103 tst_links_strncmpi="unknown"
39104 tst_proto_strncmpi="unknown"
39105 tst_compi_strncmpi="unknown"
39106 tst_allow_strncmpi="unknown"
39108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
39109 $as_echo_n "checking if strncmpi can be linked... " >&6; }
39110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39111 /* end confdefs.h. */
39114 #define strncmpi innocuous_strncmpi
39116 # include <limits.h>
39118 # include <assert.h>
39125 #if defined __stub_strncmpi || defined __stub___strncmpi
39131 return strncmpi ();
39137 if ac_fn_c_try_link "$LINENO"; then :
39139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39140 $as_echo "yes" >&6; }
39141 tst_links_strncmpi="yes"
39145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39146 $as_echo "no" >&6; }
39147 tst_links_strncmpi="no"
39150 rm -f core conftest.err conftest.$ac_objext \
39151 conftest$ac_exeext conftest.$ac_ext
39153 if test "$tst_links_strncmpi" = "yes"; then
39154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
39155 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
39156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39157 /* end confdefs.h. */
39159 $curl_includes_string
39162 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39163 $EGREP "strncmpi" >/dev/null 2>&1; then :
39165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39166 $as_echo "yes" >&6; }
39167 tst_proto_strncmpi="yes"
39171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39172 $as_echo "no" >&6; }
39173 tst_proto_strncmpi="no"
39180 if test "$tst_proto_strncmpi" = "yes"; then
39181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
39182 $as_echo_n "checking if strncmpi is compilable... " >&6; }
39183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39184 /* end confdefs.h. */
39187 $curl_includes_string
39192 if(0 != strncmpi(0, 0))
39200 if ac_fn_c_try_compile "$LINENO"; then :
39202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39203 $as_echo "yes" >&6; }
39204 tst_compi_strncmpi="yes"
39208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39209 $as_echo "no" >&6; }
39210 tst_compi_strncmpi="no"
39213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39216 if test "$tst_compi_strncmpi" = "yes"; then
39217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
39218 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
39219 if test "x$curl_disallow_strncmpi" != "xyes"; then
39220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39221 $as_echo "yes" >&6; }
39222 tst_allow_strncmpi="yes"
39224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39225 $as_echo "no" >&6; }
39226 tst_allow_strncmpi="no"
39230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
39231 $as_echo_n "checking if strncmpi might be used... " >&6; }
39232 if test "$tst_links_strncmpi" = "yes" &&
39233 test "$tst_proto_strncmpi" = "yes" &&
39234 test "$tst_compi_strncmpi" = "yes" &&
39235 test "$tst_allow_strncmpi" = "yes"; then
39236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39237 $as_echo "yes" >&6; }
39239 cat >>confdefs.h <<_ACEOF
39240 #define HAVE_STRNCMPI 1
39243 curl_cv_func_strncmpi="yes"
39245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39246 $as_echo "no" >&6; }
39247 curl_cv_func_strncmpi="no"
39252 tst_links_strnicmp="unknown"
39253 tst_proto_strnicmp="unknown"
39254 tst_compi_strnicmp="unknown"
39255 tst_allow_strnicmp="unknown"
39257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
39258 $as_echo_n "checking if strnicmp can be linked... " >&6; }
39259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39260 /* end confdefs.h. */
39263 #define strnicmp innocuous_strnicmp
39265 # include <limits.h>
39267 # include <assert.h>
39274 #if defined __stub_strnicmp || defined __stub___strnicmp
39280 return strnicmp ();
39286 if ac_fn_c_try_link "$LINENO"; then :
39288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39289 $as_echo "yes" >&6; }
39290 tst_links_strnicmp="yes"
39294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39295 $as_echo "no" >&6; }
39296 tst_links_strnicmp="no"
39299 rm -f core conftest.err conftest.$ac_objext \
39300 conftest$ac_exeext conftest.$ac_ext
39302 if test "$tst_links_strnicmp" = "yes"; then
39303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
39304 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
39305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39306 /* end confdefs.h. */
39308 $curl_includes_string
39311 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39312 $EGREP "strnicmp" >/dev/null 2>&1; then :
39314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39315 $as_echo "yes" >&6; }
39316 tst_proto_strnicmp="yes"
39320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39321 $as_echo "no" >&6; }
39322 tst_proto_strnicmp="no"
39329 if test "$tst_proto_strnicmp" = "yes"; then
39330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
39331 $as_echo_n "checking if strnicmp is compilable... " >&6; }
39332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39333 /* end confdefs.h. */
39336 $curl_includes_string
39341 if(0 != strnicmp(0, 0))
39349 if ac_fn_c_try_compile "$LINENO"; then :
39351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39352 $as_echo "yes" >&6; }
39353 tst_compi_strnicmp="yes"
39357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39358 $as_echo "no" >&6; }
39359 tst_compi_strnicmp="no"
39362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39365 if test "$tst_compi_strnicmp" = "yes"; then
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
39367 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
39368 if test "x$curl_disallow_strnicmp" != "xyes"; then
39369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39370 $as_echo "yes" >&6; }
39371 tst_allow_strnicmp="yes"
39373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39374 $as_echo "no" >&6; }
39375 tst_allow_strnicmp="no"
39379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
39380 $as_echo_n "checking if strnicmp might be used... " >&6; }
39381 if test "$tst_links_strnicmp" = "yes" &&
39382 test "$tst_proto_strnicmp" = "yes" &&
39383 test "$tst_compi_strnicmp" = "yes" &&
39384 test "$tst_allow_strnicmp" = "yes"; then
39385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39386 $as_echo "yes" >&6; }
39388 cat >>confdefs.h <<_ACEOF
39389 #define HAVE_STRNICMP 1
39392 curl_cv_func_strnicmp="yes"
39394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39395 $as_echo "no" >&6; }
39396 curl_cv_func_strnicmp="no"
39401 tst_links_strstr="unknown"
39402 tst_proto_strstr="unknown"
39403 tst_compi_strstr="unknown"
39404 tst_allow_strstr="unknown"
39406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
39407 $as_echo_n "checking if strstr can be linked... " >&6; }
39408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39409 /* end confdefs.h. */
39412 #define strstr innocuous_strstr
39414 # include <limits.h>
39416 # include <assert.h>
39423 #if defined __stub_strstr || defined __stub___strstr
39435 if ac_fn_c_try_link "$LINENO"; then :
39437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438 $as_echo "yes" >&6; }
39439 tst_links_strstr="yes"
39443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39444 $as_echo "no" >&6; }
39445 tst_links_strstr="no"
39448 rm -f core conftest.err conftest.$ac_objext \
39449 conftest$ac_exeext conftest.$ac_ext
39451 if test "$tst_links_strstr" = "yes"; then
39452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
39453 $as_echo_n "checking if strstr is prototyped... " >&6; }
39454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39455 /* end confdefs.h. */
39457 $curl_includes_string
39460 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39461 $EGREP "strstr" >/dev/null 2>&1; then :
39463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39464 $as_echo "yes" >&6; }
39465 tst_proto_strstr="yes"
39469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39470 $as_echo "no" >&6; }
39471 tst_proto_strstr="no"
39478 if test "$tst_proto_strstr" = "yes"; then
39479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
39480 $as_echo_n "checking if strstr is compilable... " >&6; }
39481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39482 /* end confdefs.h. */
39485 $curl_includes_string
39490 if(0 != strstr(0, 0))
39498 if ac_fn_c_try_compile "$LINENO"; then :
39500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39501 $as_echo "yes" >&6; }
39502 tst_compi_strstr="yes"
39506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39507 $as_echo "no" >&6; }
39508 tst_compi_strstr="no"
39511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39514 if test "$tst_compi_strstr" = "yes"; then
39515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
39516 $as_echo_n "checking if strstr usage allowed... " >&6; }
39517 if test "x$curl_disallow_strstr" != "xyes"; then
39518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39519 $as_echo "yes" >&6; }
39520 tst_allow_strstr="yes"
39522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39523 $as_echo "no" >&6; }
39524 tst_allow_strstr="no"
39528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
39529 $as_echo_n "checking if strstr might be used... " >&6; }
39530 if test "$tst_links_strstr" = "yes" &&
39531 test "$tst_proto_strstr" = "yes" &&
39532 test "$tst_compi_strstr" = "yes" &&
39533 test "$tst_allow_strstr" = "yes"; then
39534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39535 $as_echo "yes" >&6; }
39537 cat >>confdefs.h <<_ACEOF
39538 #define HAVE_STRSTR 1
39541 curl_cv_func_strstr="yes"
39543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39544 $as_echo "no" >&6; }
39545 curl_cv_func_strstr="no"
39550 tst_links_strtok_r="unknown"
39551 tst_proto_strtok_r="unknown"
39552 tst_compi_strtok_r="unknown"
39553 tst_allow_strtok_r="unknown"
39555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
39556 $as_echo_n "checking if strtok_r can be linked... " >&6; }
39557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39558 /* end confdefs.h. */
39561 #define strtok_r innocuous_strtok_r
39563 # include <limits.h>
39565 # include <assert.h>
39572 #if defined __stub_strtok_r || defined __stub___strtok_r
39578 return strtok_r ();
39584 if ac_fn_c_try_link "$LINENO"; then :
39586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39587 $as_echo "yes" >&6; }
39588 tst_links_strtok_r="yes"
39592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39593 $as_echo "no" >&6; }
39594 tst_links_strtok_r="no"
39597 rm -f core conftest.err conftest.$ac_objext \
39598 conftest$ac_exeext conftest.$ac_ext
39600 if test "$tst_links_strtok_r" = "yes"; then
39601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
39602 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
39603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39604 /* end confdefs.h. */
39606 $curl_includes_string
39609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39610 $EGREP "strtok_r" >/dev/null 2>&1; then :
39612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39613 $as_echo "yes" >&6; }
39614 tst_proto_strtok_r="yes"
39618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39619 $as_echo "no" >&6; }
39620 tst_proto_strtok_r="no"
39627 if test "$tst_proto_strtok_r" = "yes"; then
39628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
39629 $as_echo_n "checking if strtok_r is compilable... " >&6; }
39630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39631 /* end confdefs.h. */
39634 $curl_includes_string
39639 if(0 != strtok_r(0, 0, 0))
39647 if ac_fn_c_try_compile "$LINENO"; then :
39649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39650 $as_echo "yes" >&6; }
39651 tst_compi_strtok_r="yes"
39655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39656 $as_echo "no" >&6; }
39657 tst_compi_strtok_r="no"
39660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39663 if test "$tst_compi_strtok_r" = "yes"; then
39664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
39665 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
39666 if test "x$curl_disallow_strtok_r" != "xyes"; then
39667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39668 $as_echo "yes" >&6; }
39669 tst_allow_strtok_r="yes"
39671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39672 $as_echo "no" >&6; }
39673 tst_allow_strtok_r="no"
39677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
39678 $as_echo_n "checking if strtok_r might be used... " >&6; }
39679 if test "$tst_links_strtok_r" = "yes" &&
39680 test "$tst_proto_strtok_r" = "yes" &&
39681 test "$tst_compi_strtok_r" = "yes" &&
39682 test "$tst_allow_strtok_r" = "yes"; then
39683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39684 $as_echo "yes" >&6; }
39686 cat >>confdefs.h <<_ACEOF
39687 #define HAVE_STRTOK_R 1
39690 curl_cv_func_strtok_r="yes"
39692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39693 $as_echo "no" >&6; }
39694 curl_cv_func_strtok_r="no"
39699 tst_links_strtoll="unknown"
39700 tst_proto_strtoll="unknown"
39701 tst_compi_strtoll="unknown"
39702 tst_allow_strtoll="unknown"
39704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
39705 $as_echo_n "checking if strtoll can be linked... " >&6; }
39706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39707 /* end confdefs.h. */
39710 #define strtoll innocuous_strtoll
39712 # include <limits.h>
39714 # include <assert.h>
39721 #if defined __stub_strtoll || defined __stub___strtoll
39733 if ac_fn_c_try_link "$LINENO"; then :
39735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39736 $as_echo "yes" >&6; }
39737 tst_links_strtoll="yes"
39741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39742 $as_echo "no" >&6; }
39743 tst_links_strtoll="no"
39746 rm -f core conftest.err conftest.$ac_objext \
39747 conftest$ac_exeext conftest.$ac_ext
39749 if test "$tst_links_strtoll" = "yes"; then
39750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
39751 $as_echo_n "checking if strtoll is prototyped... " >&6; }
39752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39753 /* end confdefs.h. */
39755 $curl_includes_stdlib
39758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39759 $EGREP "strtoll" >/dev/null 2>&1; then :
39761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39762 $as_echo "yes" >&6; }
39763 tst_proto_strtoll="yes"
39767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39768 $as_echo "no" >&6; }
39769 tst_proto_strtoll="no"
39776 if test "$tst_proto_strtoll" = "yes"; then
39777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
39778 $as_echo_n "checking if strtoll is compilable... " >&6; }
39779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39780 /* end confdefs.h. */
39783 $curl_includes_stdlib
39788 if(0 != strtoll(0, 0, 0))
39796 if ac_fn_c_try_compile "$LINENO"; then :
39798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39799 $as_echo "yes" >&6; }
39800 tst_compi_strtoll="yes"
39804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39805 $as_echo "no" >&6; }
39806 tst_compi_strtoll="no"
39809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39812 if test "$tst_compi_strtoll" = "yes"; then
39813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
39814 $as_echo_n "checking if strtoll usage allowed... " >&6; }
39815 if test "x$curl_disallow_strtoll" != "xyes"; then
39816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39817 $as_echo "yes" >&6; }
39818 tst_allow_strtoll="yes"
39820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39821 $as_echo "no" >&6; }
39822 tst_allow_strtoll="no"
39826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
39827 $as_echo_n "checking if strtoll might be used... " >&6; }
39828 if test "$tst_links_strtoll" = "yes" &&
39829 test "$tst_proto_strtoll" = "yes" &&
39830 test "$tst_compi_strtoll" = "yes" &&
39831 test "$tst_allow_strtoll" = "yes"; then
39832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39833 $as_echo "yes" >&6; }
39835 cat >>confdefs.h <<_ACEOF
39836 #define HAVE_STRTOLL 1
39839 curl_cv_func_strtoll="yes"
39841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39842 $as_echo "no" >&6; }
39843 curl_cv_func_strtoll="no"
39847 curl_includes_sys_uio="\
39848 /* includes start */
39849 #ifdef HAVE_SYS_TYPES_H
39850 # include <sys/types.h>
39852 #ifdef HAVE_SYS_UIO_H
39853 # include <sys/uio.h>
39855 /* includes end */"
39856 for ac_header in sys/types.h sys/uio.h
39858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
39859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
39861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
39862 cat >>confdefs.h <<_ACEOF
39863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
39873 tst_links_writev="unknown"
39874 tst_proto_writev="unknown"
39875 tst_compi_writev="unknown"
39876 tst_allow_writev="unknown"
39878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
39879 $as_echo_n "checking if writev can be linked... " >&6; }
39880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39881 /* end confdefs.h. */
39884 #define writev innocuous_writev
39886 # include <limits.h>
39888 # include <assert.h>
39895 #if defined __stub_writev || defined __stub___writev
39907 if ac_fn_c_try_link "$LINENO"; then :
39909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39910 $as_echo "yes" >&6; }
39911 tst_links_writev="yes"
39915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39916 $as_echo "no" >&6; }
39917 tst_links_writev="no"
39920 rm -f core conftest.err conftest.$ac_objext \
39921 conftest$ac_exeext conftest.$ac_ext
39923 if test "$tst_links_writev" = "yes"; then
39924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
39925 $as_echo_n "checking if writev is prototyped... " >&6; }
39926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39927 /* end confdefs.h. */
39929 $curl_includes_sys_uio
39932 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39933 $EGREP "writev" >/dev/null 2>&1; then :
39935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39936 $as_echo "yes" >&6; }
39937 tst_proto_writev="yes"
39941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39942 $as_echo "no" >&6; }
39943 tst_proto_writev="no"
39950 if test "$tst_proto_writev" = "yes"; then
39951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
39952 $as_echo_n "checking if writev is compilable... " >&6; }
39953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39954 /* end confdefs.h. */
39957 $curl_includes_sys_uio
39962 if(0 != writev(0, 0, 0))
39970 if ac_fn_c_try_compile "$LINENO"; then :
39972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39973 $as_echo "yes" >&6; }
39974 tst_compi_writev="yes"
39978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39979 $as_echo "no" >&6; }
39980 tst_compi_writev="no"
39983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
39986 if test "$tst_compi_writev" = "yes"; then
39987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
39988 $as_echo_n "checking if writev usage allowed... " >&6; }
39989 if test "x$curl_disallow_writev" != "xyes"; then
39990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39991 $as_echo "yes" >&6; }
39992 tst_allow_writev="yes"
39994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39995 $as_echo "no" >&6; }
39996 tst_allow_writev="no"
40000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
40001 $as_echo_n "checking if writev might be used... " >&6; }
40002 if test "$tst_links_writev" = "yes" &&
40003 test "$tst_proto_writev" = "yes" &&
40004 test "$tst_compi_writev" = "yes" &&
40005 test "$tst_allow_writev" = "yes"; then
40006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40007 $as_echo "yes" >&6; }
40009 cat >>confdefs.h <<_ACEOF
40010 #define HAVE_WRITEV 1
40013 curl_cv_func_writev="yes"
40015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40016 $as_echo "no" >&6; }
40017 curl_cv_func_writev="no"
40025 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
40026 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
40030 for ac_func in geteuid \
40038 mach_absolute_time \
40047 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
40048 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
40049 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
40050 cat >>confdefs.h <<_ACEOF
40051 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
40058 eval skipcheck=\$skipcheck_$func
40059 if test "x$skipcheck" != "xyes"; then
40060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
40061 $as_echo_n "checking deeper for $func... " >&6; }
40062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40063 /* end confdefs.h. */
40077 if ac_fn_c_try_link "$LINENO"; then :
40079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40080 $as_echo "yes" >&6; }
40081 eval "ac_cv_func_$func=yes"
40083 cat >>confdefs.h <<_ACEOF
40084 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
40090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40091 $as_echo "but still no" >&6; }
40094 rm -f core conftest.err conftest.$ac_objext \
40095 conftest$ac_exeext conftest.$ac_ext
40103 for ac_header in sys/types.h sys/socket.h netdb.h
40105 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40106 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40108 cat >>confdefs.h <<_ACEOF
40109 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
40118 $as_echo_n "checking for getnameinfo... " >&6; }
40119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40120 /* end confdefs.h. */
40123 #define getnameinfo innocuous_getnameinfo
40125 # include <limits.h>
40127 # include <assert.h>
40133 char getnameinfo ();
40134 #if defined __stub_getnameinfo || defined __stub___getnameinfo
40140 return getnameinfo ();
40146 if ac_fn_c_try_link "$LINENO"; then :
40148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40149 $as_echo "yes" >&6; }
40150 curl_cv_getnameinfo="yes"
40154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40155 $as_echo "no" >&6; }
40156 curl_cv_getnameinfo="no"
40159 rm -f core conftest.err conftest.$ac_objext \
40160 conftest$ac_exeext conftest.$ac_ext
40162 if test "$curl_cv_getnameinfo" != "yes"; then
40163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
40164 $as_echo_n "checking deeper for getnameinfo... " >&6; }
40165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40166 /* end confdefs.h. */
40180 if ac_fn_c_try_link "$LINENO"; then :
40182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40183 $as_echo "yes" >&6; }
40184 curl_cv_getnameinfo="yes"
40188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40189 $as_echo "but still no" >&6; }
40190 curl_cv_getnameinfo="no"
40193 rm -f core conftest.err conftest.$ac_objext \
40194 conftest$ac_exeext conftest.$ac_ext
40197 if test "$curl_cv_getnameinfo" != "yes"; then
40198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
40199 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
40200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40201 /* end confdefs.h. */
40205 #ifdef HAVE_WINDOWS_H
40206 #ifndef WIN32_LEAN_AND_MEAN
40207 #define WIN32_LEAN_AND_MEAN
40209 #include <windows.h>
40210 #ifdef HAVE_WINSOCK2_H
40211 #include <winsock2.h>
40212 #ifdef HAVE_WS2TCPIP_H
40213 #include <ws2tcpip.h>
40217 #ifdef HAVE_SYS_TYPES_H
40218 #include <sys/types.h>
40220 #ifdef HAVE_SYS_SOCKET_H
40221 #include <sys/socket.h>
40223 #ifdef HAVE_NETDB_H
40231 getnameinfo(0, 0, 0, 0, 0, 0, 0);
40238 if ac_fn_c_try_link "$LINENO"; then :
40240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40241 $as_echo "yes" >&6; }
40242 curl_cv_getnameinfo="yes"
40246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
40247 $as_echo "but still no" >&6; }
40248 curl_cv_getnameinfo="no"
40251 rm -f core conftest.err conftest.$ac_objext \
40252 conftest$ac_exeext conftest.$ac_ext
40255 if test "$curl_cv_getnameinfo" = "yes"; then
40256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
40257 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
40258 if ${curl_cv_func_getnameinfo_args+:} false; then :
40259 $as_echo_n "(cached) " >&6
40262 curl_cv_func_getnameinfo_args="unknown"
40263 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
40264 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
40265 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
40266 for gni_arg7 in 'int' 'unsigned int'; do
40267 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40269 /* end confdefs.h. */
40273 #ifdef HAVE_WINDOWS_H
40274 #ifndef WIN32_LEAN_AND_MEAN
40275 #define WIN32_LEAN_AND_MEAN
40277 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
40278 #undef _WIN32_WINNT
40279 #define _WIN32_WINNT 0x0501
40281 #include <windows.h>
40282 #ifdef HAVE_WINSOCK2_H
40283 #include <winsock2.h>
40284 #ifdef HAVE_WS2TCPIP_H
40285 #include <ws2tcpip.h>
40288 #define GNICALLCONV WSAAPI
40290 #ifdef HAVE_SYS_TYPES_H
40291 #include <sys/types.h>
40293 #ifdef HAVE_SYS_SOCKET_H
40294 #include <sys/socket.h>
40296 #ifdef HAVE_NETDB_H
40299 #define GNICALLCONV
40301 extern int GNICALLCONV
40303 __attribute__((overloadable))
40305 getnameinfo($gni_arg1, $gni_arg2,
40306 char *, $gni_arg46,
40307 char *, $gni_arg46,
40314 $gni_arg46 hostlen=0;
40315 $gni_arg46 servlen=0;
40317 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
40324 if ac_fn_c_try_compile "$LINENO"; then :
40326 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
40329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
40337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
40338 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
40339 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
40340 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
40341 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
40342 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
40343 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
40345 gni_prev_IFS=$IFS; IFS=','
40346 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
40350 gni_qual_type_arg1=$1
40353 cat >>confdefs.h <<_ACEOF
40354 #define GETNAMEINFO_TYPE_ARG2 $2
40358 cat >>confdefs.h <<_ACEOF
40359 #define GETNAMEINFO_TYPE_ARG46 $3
40363 cat >>confdefs.h <<_ACEOF
40364 #define GETNAMEINFO_TYPE_ARG7 $4
40370 case $prev_sh_opts in
40378 case "$gni_qual_type_arg1" in
40380 gni_qual_arg1=const
40381 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
40385 gni_type_arg1=$gni_qual_type_arg1
40390 cat >>confdefs.h <<_ACEOF
40391 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
40395 cat >>confdefs.h <<_ACEOF
40396 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
40400 case $prev_sh_opts in
40409 cat >>confdefs.h <<_ACEOF
40410 #define HAVE_GETNAMEINFO 1
40413 curl_cv_func_getnameinfo="yes"
40418 if test "$ipv6" = "yes"; then
40419 if test "$curl_cv_func_getaddrinfo" = "yes"; then
40421 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
40427 for ac_header in stdio.h sys/types.h sys/socket.h \
40428 netdb.h netinet/in.h arpa/inet.h
40430 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
40431 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
40432 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
40433 cat >>confdefs.h <<_ACEOF
40434 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
40442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
40443 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
40444 if ${curl_cv_working_ni_withscopeid+:} false; then :
40445 $as_echo_n "(cached) " >&6
40448 if test "$cross_compiling" = yes; then :
40450 # Program is not run when cross-compiling. So we assume
40451 # NI_WITHSCOPEID will work if we are able to compile it.
40452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40453 /* end confdefs.h. */
40456 #include <sys/types.h>
40457 #include <sys/socket.h>
40463 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40470 if ac_fn_c_try_compile "$LINENO"; then :
40472 curl_cv_working_ni_withscopeid="yes"
40476 curl_cv_working_ni_withscopeid="no"
40479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
40482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40483 /* end confdefs.h. */
40486 #ifdef HAVE_STDLIB_H
40487 #include <stdlib.h>
40489 #ifdef HAVE_STDIO_H
40492 #ifdef HAVE_SYS_TYPES_H
40493 #include <sys/types.h>
40495 #ifdef HAVE_SYS_SOCKET_H
40496 #include <sys/socket.h>
40498 #ifdef HAVE_NETDB_H
40501 #ifdef HAVE_NETINET_IN_H
40502 #include <netinet/in.h>
40504 #ifdef HAVE_ARPA_INET_H
40505 #include <arpa/inet.h>
40511 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
40512 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
40513 struct sockaddr_storage sa;
40515 unsigned char sa[256];
40517 char hostbuf[NI_MAXHOST];
40519 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
40520 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
40521 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
40522 int fd = socket(AF_INET6, SOCK_STREAM, 0);
40524 perror("socket()");
40525 return 1; /* Error creating socket */
40527 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
40529 perror("getsockname()");
40530 return 2; /* Error retrieving socket name */
40532 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
40534 printf("rc = %s\n", gai_strerror(rc));
40535 return 3; /* Error translating socket address */
40537 return 0; /* Ok, NI_WITHSCOPEID works */
40539 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
40544 } # AC-LANG-PROGRAM
40547 if ac_fn_c_try_run "$LINENO"; then :
40549 # Exit code == 0. Program worked.
40550 curl_cv_working_ni_withscopeid="yes"
40554 # Exit code != 0. Program failed.
40555 curl_cv_working_ni_withscopeid="no"
40558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40559 conftest.$ac_objext conftest.beam conftest.$ac_ext
40564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_working_ni_withscopeid" >&5
40565 $as_echo "$curl_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
40566 case "$curl_cv_working_ni_withscopeid" in
40569 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
40578 tst_method="unknown"
40580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
40581 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
40582 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
40583 tst_method="fcntl O_NONBLOCK"
40584 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
40585 tst_method="ioctl FIONBIO"
40586 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
40587 tst_method="ioctlsocket FIONBIO"
40588 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
40589 tst_method="IoctlSocket FIONBIO"
40590 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
40591 tst_method="setsockopt SO_NONBLOCK"
40593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
40594 $as_echo "$tst_method" >&6; }
40595 if test "$tst_method" = "unknown"; then
40596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
40597 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
40602 # Extract the first word of "perl", so it can be a program name with args.
40603 set dummy perl; ac_word=$2
40604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40605 $as_echo_n "checking for $ac_word... " >&6; }
40606 if ${ac_cv_path_PERL+:} false; then :
40607 $as_echo_n "(cached) " >&6
40611 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
40614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40615 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
40616 for as_dir in $as_dummy
40619 test -z "$as_dir" && as_dir=.
40620 for ac_exec_ext in '' $ac_executable_extensions; do
40621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40622 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
40623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40633 PERL=$ac_cv_path_PERL
40634 if test -n "$PERL"; then
40635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
40636 $as_echo "$PERL" >&6; }
40638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40639 $as_echo "no" >&6; }
40645 for ac_prog in gnroff nroff
40647 # Extract the first word of "$ac_prog", so it can be a program name with args.
40648 set dummy $ac_prog; ac_word=$2
40649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
40650 $as_echo_n "checking for $ac_word... " >&6; }
40651 if ${ac_cv_path_NROFF+:} false; then :
40652 $as_echo_n "(cached) " >&6
40656 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
40659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
40660 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
40661 for as_dir in $as_dummy
40664 test -z "$as_dir" && as_dir=.
40665 for ac_exec_ext in '' $ac_executable_extensions; do
40666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
40667 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
40668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
40678 NROFF=$ac_cv_path_NROFF
40679 if test -n "$NROFF"; then
40680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
40681 $as_echo "$NROFF" >&6; }
40683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40684 $as_echo "no" >&6; }
40688 test -n "$NROFF" && break
40693 if test -n "$NROFF"; then
40695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
40696 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
40698 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40699 if test -z "$mancheck"; then
40701 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
40702 if test -z "$mancheck"; then
40704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
40705 $as_echo "failed" >&6; }
40706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
40707 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
40709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40710 $as_echo "$MANOPT" >&6; }
40713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
40714 $as_echo "$MANOPT" >&6; }
40719 if test -z "$MANOPT"
40721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
40722 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
40727 if test "$USE_MANUAL" = "1"; then
40729 $as_echo "#define USE_MANUAL 1" >>confdefs.h
40731 curl_manual_msg="enabled"
40734 if test x"$USE_MANUAL" = x1; then
40736 USE_MANUAL_FALSE='#'
40738 USE_MANUAL_TRUE='#'
40747 if test "$want_ares" = "yes"; then
40748 clean_CPPFLAGS="$CPPFLAGS"
40749 clean_LDFLAGS="$LDFLAGS"
40751 embedded_ares="unknown"
40752 configure_runpath=`pwd`
40753 embedded_ares_builddir="$configure_runpath/ares"
40754 if test -n "$want_ares_path"; then
40755 ares_CPPFLAGS="-I$want_ares_path/include"
40756 ares_LDFLAGS="-L$want_ares_path/lib"
40757 ares_LIBS="-lcares"
40759 if test -d "$srcdir/ares"; then
40760 embedded_ares="yes"
40761 subdirs="$subdirs ares"
40764 ares_LDFLAGS="-L$embedded_ares_builddir"
40765 ares_LIBS="-lcares"
40769 ares_LIBS="-lcares"
40773 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
40774 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
40775 LIBS="$ares_LIBS $clean_LIBS"
40777 if test "$embedded_ares" != "yes"; then
40778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
40779 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
40780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40781 /* end confdefs.h. */
40785 /* set of dummy functions in case c-ares was built with debug */
40786 void curl_dofree() { }
40787 void curl_sclose() { }
40788 void curl_domalloc() { }
40789 void curl_docalloc() { }
40790 void curl_socket() { }
40795 ares_channel channel;
40796 ares_cancel(channel); /* added in 1.2.0 */
40797 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
40798 ares_dup(&channel, channel); /* added in 1.6.0 */
40805 if ac_fn_c_try_link "$LINENO"; then :
40807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40808 $as_echo "yes" >&6; }
40812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40813 $as_echo "no" >&6; }
40814 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
40815 CPPFLAGS="$clean_CPPFLAGS"
40816 LDFLAGS="$clean_LDFLAGS"
40822 rm -f core conftest.err conftest.$ac_objext \
40823 conftest$ac_exeext conftest.$ac_ext
40825 if test "$want_ares" = "yes"; then
40827 $as_echo "#define USE_ARES 1" >>confdefs.h
40831 curl_res_msg="c-ares"
40835 if test x$embedded_ares = xyes; then
40836 USE_EMBEDDED_ARES_TRUE=
40837 USE_EMBEDDED_ARES_FALSE='#'
40839 USE_EMBEDDED_ARES_TRUE='#'
40840 USE_EMBEDDED_ARES_FALSE=
40844 if test "x$curl_cv_native_windows" != "xyes" &&
40845 test "x$enable_shared" = "xyes"; then
40846 build_libhostname=yes
40848 build_libhostname=no
40850 if test x$build_libhostname = xyes; then
40851 BUILD_LIBHOSTNAME_TRUE=
40852 BUILD_LIBHOSTNAME_FALSE='#'
40854 BUILD_LIBHOSTNAME_TRUE='#'
40855 BUILD_LIBHOSTNAME_FALSE=
40859 if test "x$want_ares" != xyes; then
40861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
40862 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
40863 OPT_THRES="default"
40864 # Check whether --enable-threaded_resolver was given.
40865 if test "${enable_threaded_resolver+set}" = set; then :
40866 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
40869 case "$OPT_THRES" in
40877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
40878 $as_echo "$want_thres" >&6; }
40882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
40883 $as_echo_n "checking whether to use POSIX threads for threaded resolver... " >&6; }
40884 # Check whether --enable-pthreads was given.
40885 if test "${enable_pthreads+set}" = set; then :
40886 enableval=$enable_pthreads; case "$enableval" in
40887 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
40888 $as_echo "no" >&6; }
40891 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40892 $as_echo "yes" >&6; }
40898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
40899 $as_echo "auto" >&6; }
40906 if test "$want_pthreads" != "no"; then
40907 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
40908 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
40910 if test "$dontwant_rt" != "no"; then
40911 if test "$want_pthreads" = "yes"; then
40912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
40913 $as_echo "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
40919 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
40923 if test "$want_pthreads" != "no"; then
40924 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
40925 if test "x$ac_cv_header_pthread_h" = xyes; then :
40927 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
40929 save_CFLAGS="$CFLAGS"
40931 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
40932 if test "x$ac_cv_func_pthread_create" = xyes; then :
40933 USE_THREADS_POSIX=1
40937 if test "$USE_THREADS_POSIX" != "1"
40939 CFLAGS="$CFLAGS -pthread"
40940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
40941 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
40942 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
40943 $as_echo_n "(cached) " >&6
40945 ac_check_lib_save_LIBS=$LIBS
40946 LIBS="-lpthread $LIBS"
40947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40948 /* end confdefs.h. */
40954 char pthread_create ();
40957 return pthread_create ();
40962 if ac_fn_c_try_link "$LINENO"; then :
40963 ac_cv_lib_pthread_pthread_create=yes
40965 ac_cv_lib_pthread_pthread_create=no
40967 rm -f core conftest.err conftest.$ac_objext \
40968 conftest$ac_exeext conftest.$ac_ext
40969 LIBS=$ac_check_lib_save_LIBS
40971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
40972 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
40973 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
40974 USE_THREADS_POSIX=1
40976 CFLAGS="$save_CFLAGS"
40981 if test "x$USE_THREADS_POSIX" = "x1"
40984 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
40986 curl_res_msg="POSIX threaded"
40994 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
40995 if test "$want_pthreads" = "yes"; then
40996 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
40998 if test "$curl_cv_native_windows" = "yes"; then
40999 USE_THREADS_WIN32=1
41001 $as_echo "#define USE_THREADS_WIN32 1" >>confdefs.h
41003 curl_res_msg="Win32 threaded"
41005 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
41009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
41010 $as_echo_n "checking whether to enable verbose strings... " >&6; }
41011 # Check whether --enable-verbose was given.
41012 if test "${enable_verbose+set}" = set; then :
41013 enableval=$enable_verbose; case "$enableval" in
41015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41016 $as_echo "no" >&6; }
41018 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
41020 curl_verbose_msg="no"
41022 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41023 $as_echo "yes" >&6; }
41027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41028 $as_echo "yes" >&6; }
41033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
41034 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
41035 # Check whether --enable-sspi was given.
41036 if test "${enable_sspi+set}" = set; then :
41037 enableval=$enable_sspi; case "$enableval" in
41039 if test "$curl_cv_native_windows" = "yes"; then
41040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41041 $as_echo "yes" >&6; }
41043 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
41047 curl_sspi_msg="enabled"
41049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41050 $as_echo "no" >&6; }
41051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
41052 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
41056 if test "x$WINSSL_ENABLED" = "x1"; then
41057 # --with-winssl implies --enable-sspi
41058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41059 $as_echo "yes" >&6; }
41061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41062 $as_echo "no" >&6; }
41067 if test "x$WINSSL_ENABLED" = "x1"; then
41068 # --with-winssl implies --enable-sspi
41069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41070 $as_echo "yes" >&6; }
41072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41073 $as_echo "no" >&6; }
41079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
41080 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
41081 # Check whether --enable-crypto-auth was given.
41082 if test "${enable_crypto_auth+set}" = set; then :
41083 enableval=$enable_crypto_auth; case "$enableval" in
41085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41086 $as_echo "no" >&6; }
41088 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
41090 CURL_DISABLE_CRYPTO_AUTH=1
41092 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41093 $as_echo "yes" >&6; }
41097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41098 $as_echo "yes" >&6; }
41104 OPT_NTLM_WB="default"
41105 # Check whether --enable-ntlm-wb was given.
41106 if test "${enable_ntlm_wb+set}" = set; then :
41107 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
41110 want_ntlm_wb_file="/usr/bin/ntlm_auth"
41111 case "$OPT_NTLM_WB" in
41120 if test -n "$enableval" && test "$enableval" != "yes"; then
41121 want_ntlm_wb_file="$enableval"
41128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
41129 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
41130 if test "$curl_cv_native_windows" = "yes" ||
41131 test "x$SSL_ENABLED" = "x"; then
41132 want_ntlm_wb_file=""
41135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
41136 $as_echo "$want_ntlm_wb" >&6; }
41137 if test "$want_ntlm_wb" = "yes"; then
41139 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
41142 cat >>confdefs.h <<_ACEOF
41143 #define NTLM_WB_FILE "$want_ntlm_wb_file"
41150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
41151 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
41152 # Check whether --enable-tls-srp was given.
41153 if test "${enable_tls_srp+set}" = set; then :
41154 enableval=$enable_tls_srp; case "$enableval" in
41156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41157 $as_echo "no" >&6; }
41159 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
41163 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41164 $as_echo "yes" >&6; }
41169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41170 $as_echo "yes" >&6; }
41176 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
41178 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
41181 curl_tls_srp_msg="enabled"
41184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
41185 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
41186 # Check whether --enable-unix-sockets was given.
41187 if test "${enable_unix_sockets+set}" = set; then :
41188 enableval=$enable_unix_sockets; case "$enableval" in
41189 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41190 $as_echo "no" >&6; }
41191 want_unix_sockets=no
41193 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41194 $as_echo "yes" >&6; }
41195 want_unix_sockets=yes
41200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
41201 $as_echo "auto" >&6; }
41202 want_unix_sockets=auto
41207 if test "x$want_unix_sockets" != "xno"; then
41208 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
41209 #include <sys/un.h>
41212 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
41215 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
41219 curl_unix_sockets_msg="enabled"
41223 if test "x$want_unix_sockets" = "xyes"; then
41224 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
41231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
41232 $as_echo_n "checking whether to enable support for cookies... " >&6; }
41233 # Check whether --enable-cookies was given.
41234 if test "${enable_cookies+set}" = set; then :
41235 enableval=$enable_cookies; case "$enableval" in
41237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41238 $as_echo "no" >&6; }
41240 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
41243 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41244 $as_echo "yes" >&6; }
41248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41249 $as_echo "yes" >&6; }
41255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
41256 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
41257 CFLAG_CURL_SYMBOL_HIDING=""
41258 doing_symbol_hiding="no"
41259 if test x"$curl_cv_native_windows" != "xyes" &&
41260 test "$want_symbol_hiding" = "yes" &&
41261 test "$supports_symbol_hiding" = "yes"; then
41262 doing_symbol_hiding="yes"
41263 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
41265 cat >>confdefs.h <<_ACEOF
41266 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
41269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270 $as_echo "yes" >&6; }
41272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
41273 $as_echo "no" >&6; }
41275 if test x$doing_symbol_hiding = xyes; then
41276 DOING_CURL_SYMBOL_HIDING_TRUE=
41277 DOING_CURL_SYMBOL_HIDING_FALSE='#'
41279 DOING_CURL_SYMBOL_HIDING_TRUE='#'
41280 DOING_CURL_SYMBOL_HIDING_FALSE=
41295 if test x$cross_compiling = xyes; then
41296 CROSSCOMPILING_TRUE=
41297 CROSSCOMPILING_FALSE='#'
41299 CROSSCOMPILING_TRUE='#'
41300 CROSSCOMPILING_FALSE=
41304 ENABLE_SHARED="$enable_shared"
41307 ENABLE_STATIC="$enable_static"
41312 if test "x$OPENSSL_ENABLED" = "x1"; then
41313 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41314 elif test -n "$SSL_ENABLED"; then
41315 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
41317 if test "x$IPV6_ENABLED" = "x1"; then
41318 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
41320 if test "x$USE_UNIX_SOCKETS" = "x1"; then
41321 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
41323 if test "x$HAVE_LIBZ" = "x1"; then
41324 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
41326 if test "x$HAVE_BROTLI" = "x1"; then
41327 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
41329 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
41330 -o "x$USE_THREADS_WIN32" = "x1"; then
41331 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
41333 if test "x$IDN_ENABLED" = "x1"; then
41334 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
41336 if test "x$USE_WINDOWS_SSPI" = "x1"; then
41337 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
41340 if test "x$HAVE_GSSAPI" = "x1"; then
41341 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
41344 if test "x$curl_psl_msg" = "xyes"; then
41345 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
41348 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41349 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41350 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
41353 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
41354 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
41355 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
41358 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
41359 if test "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41360 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41361 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1"; then
41362 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
41364 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
41365 "x$NTLM_WB_ENABLED" = "x1"; then
41366 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
41371 if test "x$USE_TLS_SRP" = "x1"; then
41372 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
41375 if test "x$USE_NGHTTP2" = "x1"; then
41376 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
41379 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
41380 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
41383 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
41384 -o "x$NSS_ENABLED" = "x1"; then
41385 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
41390 if test "x$CURL_DISABLE_HTTP" != "x1"; then
41391 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
41392 if test "x$SSL_ENABLED" = "x1"; then
41393 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
41396 if test "x$CURL_DISABLE_FTP" != "x1"; then
41397 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
41398 if test "x$SSL_ENABLED" = "x1"; then
41399 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
41402 if test "x$CURL_DISABLE_FILE" != "x1"; then
41403 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
41405 if test "x$CURL_DISABLE_TELNET" != "x1"; then
41406 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
41408 if test "x$CURL_DISABLE_LDAP" != "x1"; then
41409 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
41410 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
41411 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
41412 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
41413 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
41417 if test "x$CURL_DISABLE_DICT" != "x1"; then
41418 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
41420 if test "x$CURL_DISABLE_TFTP" != "x1"; then
41421 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
41423 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
41424 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
41426 if test "x$CURL_DISABLE_POP3" != "x1"; then
41427 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
41428 if test "x$SSL_ENABLED" = "x1"; then
41429 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
41432 if test "x$CURL_DISABLE_IMAP" != "x1"; then
41433 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
41434 if test "x$SSL_ENABLED" = "x1"; then
41435 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
41438 if test "x$CURL_DISABLE_SMB" != "x1" \
41439 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
41440 -a \( "x$OPENSSL_ENABLED" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
41441 -o "x$GNUTLS_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
41442 -o "x$NSS_ENABLED" = "x1" -o "x$DARWINSSL_ENABLED" = "x1" \); then
41443 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
41444 if test "x$SSL_ENABLED" = "x1"; then
41445 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
41448 if test "x$CURL_DISABLE_SMTP" != "x1"; then
41449 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
41450 if test "x$SSL_ENABLED" = "x1"; then
41451 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
41454 if test "x$USE_LIBSSH2" = "x1"; then
41455 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41456 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41458 if test "x$USE_LIBSSH" = "x1"; then
41459 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
41460 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
41462 if test "x$CURL_DISABLE_RTSP" != "x1"; then
41463 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
41465 if test "x$USE_LIBRTMP" = "x1"; then
41466 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
41469 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
41480 squeeze LIBCURL_LIBS
41481 squeeze CURL_NETWORK_LIBS
41482 squeeze CURL_NETWORK_AND_TIME_LIBS
41484 squeeze SUPPORT_FEATURES
41485 squeeze SUPPORT_PROTOCOLS
41490 for xc_word in $LIBS; do
41496 xc_bad_var_libs=yes
41500 if test $xc_bad_var_libs = yes; then
41501 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
41502 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
41503 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
41504 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
41508 xc_bad_var_ldflags=no
41509 for xc_word in $LDFLAGS; do
41512 xc_bad_var_ldflags=yes
41515 xc_bad_var_ldflags=yes
41518 xc_bad_var_ldflags=yes
41521 xc_bad_var_ldflags=yes
41525 if test $xc_bad_var_ldflags = yes; then
41526 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
41527 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
41528 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
41529 for xc_word in $LDFLAGS; do
41532 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41533 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41536 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41537 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41540 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41541 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41544 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41545 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41552 xc_bad_var_cppflags=no
41553 for xc_word in $CPPFLAGS; do
41556 xc_bad_var_cppflags=yes
41558 -L* | --library-path=*)
41559 xc_bad_var_cppflags=yes
41562 xc_bad_var_cppflags=yes
41566 if test $xc_bad_var_cppflags = yes; then
41567 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
41568 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
41569 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
41570 for xc_word in $CPPFLAGS; do
41573 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41574 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41576 -L* | --library-path=*)
41577 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41578 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41581 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41582 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41589 xc_bad_var_cflags=no
41590 for xc_word in $CFLAGS; do
41593 xc_bad_var_cflags=yes
41596 xc_bad_var_cflags=yes
41599 xc_bad_var_cflags=yes
41602 xc_bad_var_cflags=yes
41604 -L* | --library-path=*)
41605 xc_bad_var_cflags=yes
41608 xc_bad_var_cflags=yes
41612 if test $xc_bad_var_cflags = yes; then
41613 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
41614 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
41615 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
41616 for xc_word in $CFLAGS; do
41619 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
41620 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
41623 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
41624 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
41627 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
41628 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
41631 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
41632 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
41634 -L* | --library-path=*)
41635 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
41636 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
41639 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
41640 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
41646 if test $xc_bad_var_libs = yes ||
41647 test $xc_bad_var_cflags = yes ||
41648 test $xc_bad_var_ldflags = yes ||
41649 test $xc_bad_var_cppflags = yes; then
41650 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
41651 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
41655 SSL_BACKENDS=${ssl_backends}
41658 if test "x$want_curldebug_assumed" = "xyes" &&
41659 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
41660 ac_configure_args="$ac_configure_args --enable-curldebug"
41663 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/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
41665 cat >confcache <<\_ACEOF
41666 # This file is a shell script that caches the results of configure
41667 # tests run on this system so they can be shared between configure
41668 # scripts and configure runs, see configure's option --config-cache.
41669 # It is not useful on other systems. If it contains results you don't
41670 # want to keep, you may remove or edit it.
41672 # config.status only pays attention to the cache file if you give it
41673 # the --recheck option to rerun configure.
41675 # `ac_cv_env_foo' variables (set or unset) will be overridden when
41676 # loading this file, other *unset* `ac_cv_foo' will be assigned the
41677 # following values.
41681 # The following way of writing the cache mishandles newlines in values,
41682 # but we know of no workaround that is simple, portable, and efficient.
41683 # So, we kill variables containing newlines.
41684 # Ultrix sh set writes to stderr and can't be redirected directly,
41685 # and sets the high bit in the cache file unless we assign to the vars.
41687 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
41688 eval ac_val=\$$ac_var
41692 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
41693 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
41696 _ | IFS | as_nl) ;; #(
41697 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
41698 *) { eval $ac_var=; unset $ac_var;} ;;
41704 case $as_nl`(ac_space=' '; set) 2>&1` in #(
41705 *${as_nl}ac_space=\ *)
41706 # `set' does not quote correctly, so add quotes: double-quote
41707 # substitution turns \\\\ into \\, and sed turns \\ into \.
41710 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
41713 # `set' quotes correctly as required by POSIX, so do not add quotes.
41714 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
41723 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
41725 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
41727 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
41728 if test -w "$cache_file"; then
41729 if test "x$cache_file" != "x/dev/null"; then
41730 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
41731 $as_echo "$as_me: updating cache $cache_file" >&6;}
41732 if test ! -f "$cache_file" || test -h "$cache_file"; then
41733 cat confcache >"$cache_file"
41735 case $cache_file in #(
41737 mv -f confcache "$cache_file"$$ &&
41738 mv -f "$cache_file"$$ "$cache_file" ;; #(
41740 mv -f confcache "$cache_file" ;;
41745 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
41746 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
41751 test "x$prefix" = xNONE && prefix=$ac_default_prefix
41752 # Let make expand exec_prefix.
41753 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
41755 DEFS=-DHAVE_CONFIG_H
41760 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
41761 # 1. Remove the extension, and $U if already installed.
41762 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
41763 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
41764 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
41765 # will be set to the directory where LIBOBJS objects are built.
41766 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
41767 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
41769 LIBOBJS=$ac_libobjs
41771 LTLIBOBJS=$ac_ltlibobjs
41774 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
41775 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
41776 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41778 if test -z "${CODE_COVERAGE_ENABLED_TRUE}" && test -z "${CODE_COVERAGE_ENABLED_FALSE}"; then
41779 as_fn_error $? "conditional \"CODE_COVERAGE_ENABLED\" was never defined.
41780 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
41783 $as_echo_n "checking that generated files are newer than configure... " >&6; }
41784 if test -n "$am_sleep_pid"; then
41785 # Hide warnings about reused PIDs.
41786 wait $am_sleep_pid 2>/dev/null
41788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
41789 $as_echo "done" >&6; }
41790 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
41791 as_fn_error $? "conditional \"AMDEP\" was never defined.
41792 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41794 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
41795 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
41796 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41798 if test -n "$EXEEXT"; then
41800 am__EXEEXT_FALSE='#'
41802 am__EXEEXT_TRUE='#'
41806 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
41807 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
41808 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41810 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
41811 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
41812 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41814 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
41815 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
41816 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41818 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
41819 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
41820 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41822 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
41823 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
41824 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41826 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
41827 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
41828 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41830 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
41831 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
41832 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41834 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
41835 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
41836 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41838 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
41839 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
41840 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41842 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
41843 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
41844 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41846 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
41847 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
41848 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41850 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
41851 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
41852 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41854 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
41855 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
41856 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41858 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
41859 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
41860 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41862 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
41863 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
41864 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41866 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
41867 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
41868 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41870 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
41871 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
41872 Usually this means the macro was only invoked conditionally." "$LINENO" 5
41875 : "${CONFIG_STATUS=./config.status}"
41877 ac_clean_files_save=$ac_clean_files
41878 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
41879 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
41880 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
41882 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
41884 # Generated by $as_me.
41885 # Run this file to recreate the current configuration.
41886 # Compiler output produced by configure, useful for debugging
41887 # configure, is in config.log if it exists.
41890 ac_cs_recheck=false
41893 SHELL=\${CONFIG_SHELL-$SHELL}
41896 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
41897 ## -------------------- ##
41898 ## M4sh Initialization. ##
41899 ## -------------------- ##
41901 # Be more Bourne compatible
41902 DUALCASE=1; export DUALCASE # for MKS sh
41903 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
41906 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
41907 # is contrary to our usage. Disable this feature.
41908 alias -g '${1+"$@"}'='"$@"'
41909 setopt NO_GLOB_SUBST
41911 case `(set -o) 2>/dev/null` in #(
41923 # Printing a long string crashes Solaris 7 /usr/bin/printf.
41924 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41925 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
41926 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41927 # Prefer a ksh shell builtin over an external printf program on Solaris,
41928 # but without wasting forks for bash or zsh.
41929 if test -z "$BASH_VERSION$ZSH_VERSION" \
41930 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
41931 as_echo='print -r --'
41932 as_echo_n='print -rn --'
41933 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
41934 as_echo='printf %s\n'
41935 as_echo_n='printf %s'
41937 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
41938 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
41939 as_echo_n='/usr/ucb/echo -n'
41941 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
41942 as_echo_n_body='eval
41946 expr "X$arg" : "X\\(.*\\)$as_nl";
41947 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
41949 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
41951 export as_echo_n_body
41952 as_echo_n='sh -c $as_echo_n_body as_echo'
41954 export as_echo_body
41955 as_echo='sh -c $as_echo_body as_echo'
41961 # We need space, tab and new line, in precisely that order. Quoting is
41962 # there to prevent editors from complaining about space-tab.
41963 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
41964 # splitting by setting IFS to empty value.)
41967 # Find who we are. Look in the path if we contain no directory separator.
41970 *[\\/]* ) as_myself=$0 ;;
41971 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
41972 for as_dir in $PATH
41975 test -z "$as_dir" && as_dir=.
41976 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
41982 # We did not find ourselves, most probably we were run as `sh COMMAND'
41983 # in which case we are not to be found in the path.
41984 if test "x$as_myself" = x; then
41987 if test ! -f "$as_myself"; then
41988 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
41992 # Unset variables that we do not need and which cause bugs (e.g. in
41993 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
41994 # suppresses any "Segmentation fault" message there. '((' could
41995 # trigger a bug in pdksh 5.2.14.
41996 for as_var in BASH_ENV ENV MAIL MAILPATH
41997 do eval test x\${$as_var+set} = xset \
41998 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
42011 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42014 # as_fn_error STATUS ERROR [LINENO LOG_FD]
42015 # ----------------------------------------
42016 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
42017 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
42018 # script with STATUS, using 1 if that was 0.
42021 as_status=$1; test $as_status -eq 0 && as_status=1
42023 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
42024 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
42026 $as_echo "$as_me: error: $2" >&2
42027 as_fn_exit $as_status
42031 # as_fn_set_status STATUS
42032 # -----------------------
42033 # Set $? to STATUS, without forking.
42034 as_fn_set_status ()
42037 } # as_fn_set_status
42039 # as_fn_exit STATUS
42040 # -----------------
42041 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
42045 as_fn_set_status $1
42051 # Portably unset VAR.
42054 { eval $1=; unset $1;}
42056 as_unset=as_fn_unset
42057 # as_fn_append VAR VALUE
42058 # ----------------------
42059 # Append the text in VALUE to the end of the definition contained in VAR. Take
42060 # advantage of any shell optimizations that allow amortized linear growth over
42061 # repeated appends, instead of the typical quadratic growth present in naive
42063 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
42064 eval 'as_fn_append ()
42075 # as_fn_arith ARG...
42076 # ------------------
42077 # Perform arithmetic evaluation on the ARGs, and store the result in the
42078 # global $as_val. Take advantage of shells that can avoid forks. The arguments
42079 # must be portable across $(()) and expr.
42080 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
42081 eval 'as_fn_arith ()
42088 as_val=`expr "$@" || test $? -eq 1`
42093 if expr a : '\(a\)' >/dev/null 2>&1 &&
42094 test "X`expr 00001 : '.*\(...\)'`" = X001; then
42100 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
42101 as_basename=basename
42106 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
42112 as_me=`$as_basename -- "$0" ||
42113 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
42114 X"$0" : 'X\(//\)$' \| \
42115 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
42117 sed '/^.*\/\([^/][^/]*\)\/*$/{
42131 # Avoid depending upon Character Ranges.
42132 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
42133 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
42134 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
42135 as_cr_digits='0123456789'
42136 as_cr_alnum=$as_cr_Letters$as_cr_digits
42138 ECHO_C= ECHO_N= ECHO_T=
42139 case `echo -n x` in #(((((
42141 case `echo 'xy\c'` in
42142 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
42144 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
42151 rm -f conf$$ conf$$.exe conf$$.file
42152 if test -d conf$$.dir; then
42153 rm -f conf$$.dir/conf$$.file
42156 mkdir conf$$.dir 2>/dev/null
42158 if (echo >conf$$.file) 2>/dev/null; then
42159 if ln -s conf$$.file conf$$ 2>/dev/null; then
42161 # ... but there are two gotchas:
42162 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
42163 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
42164 # In both cases, we have to default to `cp -pR'.
42165 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
42167 elif ln conf$$.file conf$$ 2>/dev/null; then
42175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
42176 rmdir conf$$.dir 2>/dev/null
42181 # Create "$as_dir" as a directory, including parents if necessary.
42186 -*) as_dir=./$as_dir;;
42188 test -d "$as_dir" || eval $as_mkdir_p || {
42192 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
42193 *) as_qdir=$as_dir;;
42195 as_dirs="'$as_qdir' $as_dirs"
42196 as_dir=`$as_dirname -- "$as_dir" ||
42197 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
42198 X"$as_dir" : 'X\(//\)[^/]' \| \
42199 X"$as_dir" : 'X\(//\)$' \| \
42200 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
42201 $as_echo X"$as_dir" |
42202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
42206 /^X\(\/\/\)[^/].*/{
42219 test -d "$as_dir" && break
42221 test -z "$as_dirs" || eval "mkdir $as_dirs"
42222 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
42226 if mkdir -p . 2>/dev/null; then
42227 as_mkdir_p='mkdir -p "$as_dir"'
42229 test -d ./-p && rmdir ./-p
42234 # as_fn_executable_p FILE
42235 # -----------------------
42236 # Test if FILE is an executable regular file.
42237 as_fn_executable_p ()
42239 test -f "$1" && test -x "$1"
42240 } # as_fn_executable_p
42241 as_test_x='test -x'
42242 as_executable_p=as_fn_executable_p
42244 # Sed expression to map a string onto a valid CPP name.
42245 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
42247 # Sed expression to map a string onto a valid variable name.
42248 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
42252 ## ----------------------------------- ##
42253 ## Main body of $CONFIG_STATUS script. ##
42254 ## ----------------------------------- ##
42256 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
42258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42259 # Save the log message, to keep $0 and so on meaningful, and to
42260 # report actual input values of CONFIG_FILES etc. instead of their
42261 # values after options handling.
42263 This file was extended by curl $as_me -, which was
42264 generated by GNU Autoconf 2.69. Invocation command line was
42266 CONFIG_FILES = $CONFIG_FILES
42267 CONFIG_HEADERS = $CONFIG_HEADERS
42268 CONFIG_LINKS = $CONFIG_LINKS
42269 CONFIG_COMMANDS = $CONFIG_COMMANDS
42272 on `(hostname || uname -n) 2>/dev/null | sed 1q`
42277 case $ac_config_files in *"
42278 "*) set x $ac_config_files; shift; ac_config_files=$*;;
42281 case $ac_config_headers in *"
42282 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
42286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42287 # Files that config.status was made for.
42288 config_files="$ac_config_files"
42289 config_headers="$ac_config_headers"
42290 config_commands="$ac_config_commands"
42294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42296 \`$as_me' instantiates files and other configuration actions
42297 from templates according to the current configuration. Unless the files
42298 and actions are specified as TAGs, all are instantiated by default.
42300 Usage: $0 [OPTION]... [TAG]...
42302 -h, --help print this help, then exit
42303 -V, --version print version number and configuration settings, then exit
42304 --config print configuration, then exit
42305 -q, --quiet, --silent
42306 do not print progress messages
42307 -d, --debug don't remove temporary files
42308 --recheck update $as_me by reconfiguring in the same conditions
42309 --file=FILE[:TEMPLATE]
42310 instantiate the configuration file FILE
42311 --header=FILE[:TEMPLATE]
42312 instantiate the configuration header FILE
42314 Configuration files:
42317 Configuration headers:
42320 Configuration commands:
42323 Report bugs to <a suitable curl mailing list: https://curl.haxx.se/mail/>."
42326 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42327 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
42329 curl config.status -
42330 configured by $0, generated by GNU Autoconf 2.69,
42331 with options \\"\$ac_cs_config\\"
42333 Copyright (C) 2012 Free Software Foundation, Inc.
42334 This config.status script is free software; the Free Software Foundation
42335 gives unlimited permission to copy, distribute and modify it."
42342 test -n "\$AWK" || AWK=awk
42345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42346 # The default lists apply if the user does not specify any file.
42352 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42353 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
42357 ac_option=`expr "X$1" : 'X\([^=]*\)='`
42369 # Handling of the options.
42370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
42372 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
42373 $as_echo "$ac_cs_version"; exit ;;
42374 --config | --confi | --conf | --con | --co | --c )
42375 $as_echo "$ac_cs_config"; exit ;;
42376 --debug | --debu | --deb | --de | --d | -d )
42378 --file | --fil | --fi | --f )
42381 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42382 '') as_fn_error $? "missing file argument" ;;
42384 as_fn_append CONFIG_FILES " '$ac_optarg'"
42385 ac_need_defaults=false;;
42386 --header | --heade | --head | --hea )
42389 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
42391 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
42392 ac_need_defaults=false;;
42394 # Conflict between --help and --header
42395 as_fn_error $? "ambiguous option: \`$1'
42396 Try \`$0 --help' for more information.";;
42397 --help | --hel | -h )
42398 $as_echo "$ac_cs_usage"; exit ;;
42399 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
42400 | -silent | --silent | --silen | --sile | --sil | --si | --s)
42403 # This is an error.
42404 -*) as_fn_error $? "unrecognized option: \`$1'
42405 Try \`$0 --help' for more information." ;;
42407 *) as_fn_append ac_config_targets " $1"
42408 ac_need_defaults=false ;;
42414 ac_configure_extra_args=
42416 if $ac_cs_silent; then
42418 ac_configure_extra_args="$ac_configure_extra_args --silent"
42422 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42423 if \$ac_cs_recheck; then
42424 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
42426 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
42427 CONFIG_SHELL='$SHELL'
42428 export CONFIG_SHELL
42433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42437 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
42438 ## Running $as_me. ##
42444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42448 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
42451 # The HP-UX ksh and POSIX shell print the target directory to stdout
42452 # if CDPATH is set.
42453 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
42455 sed_quote_subst='$sed_quote_subst'
42456 double_quote_subst='$double_quote_subst'
42457 delay_variable_subst='$delay_variable_subst'
42458 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
42459 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
42460 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
42461 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
42462 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
42463 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
42464 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
42465 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
42466 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
42467 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
42468 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
42469 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
42470 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
42471 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
42472 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
42473 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
42474 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
42475 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
42476 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
42477 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
42478 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
42479 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
42480 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
42481 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
42482 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
42483 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
42484 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
42485 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
42486 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
42487 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
42488 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
42489 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
42490 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
42491 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
42492 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
42493 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
42494 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
42495 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
42496 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
42497 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
42498 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
42499 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
42500 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
42501 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
42502 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
42503 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
42504 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
42505 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42506 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42507 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
42508 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
42509 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
42510 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
42511 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
42512 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
42513 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
42514 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
42515 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
42516 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
42517 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"`'
42518 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
42519 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
42520 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
42521 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
42522 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
42523 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
42524 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
42525 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
42526 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
42527 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
42528 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
42529 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
42530 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
42531 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
42532 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
42533 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
42534 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
42535 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
42536 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
42537 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
42538 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42539 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
42540 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
42541 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
42542 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
42543 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
42544 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
42545 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
42546 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
42547 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42548 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
42549 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
42550 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
42551 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
42552 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
42553 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
42554 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
42555 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
42556 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
42557 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
42558 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
42559 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
42560 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
42561 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
42562 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
42563 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
42564 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
42565 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
42566 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
42567 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
42568 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
42569 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
42570 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
42571 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
42572 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
42573 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
42574 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
42575 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
42576 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
42577 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
42578 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
42579 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
42580 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
42581 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
42582 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
42583 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
42584 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
42585 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
42586 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
42587 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
42588 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
42589 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
42590 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
42591 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
42592 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
42593 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
42596 LTCFLAGS='$LTCFLAGS'
42597 compiler='$compiler_DEFAULT'
42599 # A function that is used when there is no print builtin or printf.
42600 func_fallback_echo ()
42602 eval 'cat <<_LTECHO_EOF
42607 # Quote evaled strings.
42624 deplibs_check_method \
42628 sharedlib_from_linklib_cmd \
42631 archiver_list_spec \
42637 lt_cv_sys_global_symbol_pipe \
42638 lt_cv_sys_global_symbol_to_cdecl \
42639 lt_cv_sys_global_symbol_to_import \
42640 lt_cv_sys_global_symbol_to_c_name_address \
42641 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
42642 lt_cv_nm_interface \
42643 nm_file_list_spec \
42644 lt_cv_truncate_bin \
42645 lt_prog_compiler_no_builtin_flag \
42646 lt_prog_compiler_pic \
42647 lt_prog_compiler_wl \
42648 lt_prog_compiler_static \
42649 lt_cv_prog_compiler_c_o \
42658 export_dynamic_flag_spec \
42659 whole_archive_flag_spec \
42660 compiler_needs_object \
42662 allow_undefined_flag \
42663 no_undefined_flag \
42664 hardcode_libdir_flag_spec \
42665 hardcode_libdir_separator \
42669 variables_saved_for_relink \
42671 library_names_spec \
42673 install_override_mode \
42677 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42678 *[\\\\\\\`\\"\\\$]*)
42679 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42682 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42687 # Double-quote double-evaled strings.
42688 for var in reload_cmds \
42689 old_postinstall_cmds \
42690 old_postuninstall_cmds \
42692 extract_expsyms_cmds \
42693 old_archive_from_new_cmds \
42694 old_archive_from_expsyms_cmds \
42696 archive_expsym_cmds \
42698 module_expsym_cmds \
42699 export_symbols_cmds \
42703 postuninstall_cmds \
42705 sys_lib_search_path_spec \
42706 configure_time_dlsearch_path \
42707 configure_time_lt_sys_library_path; do
42708 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
42709 *[\\\\\\\`\\"\\\$]*)
42710 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
42713 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
42718 ac_aux_dir='$ac_aux_dir'
42720 # See if we are running on zsh, and set the options that allow our
42721 # commands through without removal of \ escapes INIT.
42722 if test -n "\${ZSH_VERSION+set}"; then
42723 setopt NO_GLOB_SUBST
42737 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42739 # Handling of arguments.
42740 for ac_config_target in $ac_config_targets
42742 case $ac_config_target in
42743 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
42744 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
42745 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
42746 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
42747 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
42748 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
42749 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
42750 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
42751 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
42752 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
42753 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
42754 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
42755 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
42756 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
42757 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
42758 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
42759 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
42760 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
42761 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
42762 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
42763 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
42764 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
42765 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
42766 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
42767 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
42768 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
42769 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
42770 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
42771 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
42772 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
42773 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
42774 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
42775 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
42776 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
42777 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
42778 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
42779 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
42780 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
42782 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
42787 # If the user did not use the arguments to specify the items to instantiate,
42788 # then the envvar interface is used. Set only those that are not.
42789 # We use the long form for the default assignment because of an extremely
42790 # bizarre bug on SunOS 4.1.3.
42791 if $ac_need_defaults; then
42792 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
42793 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
42794 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
42797 # Have a temporary directory for convenience. Make it in the build tree
42798 # simply because there is no reason against having it here, and in addition,
42799 # creating and moving files from /tmp can sometimes cause problems.
42800 # Hook for its removal unless debugging.
42801 # Note that there is a small window in which the directory will not be cleaned:
42802 # after its creation but before its name has been assigned to `$tmp'.
42806 trap 'exit_status=$?
42807 : "${ac_tmp:=$tmp}"
42808 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
42810 trap 'as_fn_exit 1' 1 2 13 15
42812 # Create a (secure) tmp directory for tmp files.
42815 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
42819 tmp=./conf$$-$RANDOM
42820 (umask 077 && mkdir "$tmp")
42821 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
42824 # Set up the scripts for CONFIG_FILES section.
42825 # No need to generate them if there are no CONFIG_FILES.
42826 # This happens for instance with `./config.status config.h'.
42827 if test -n "$CONFIG_FILES"; then
42830 ac_cr=`echo X | tr X '\015'`
42831 # On cygwin, bash can eat \r inside `` if the user requested igncr.
42832 # But we know of no other shell where ac_cr would be empty at this
42833 # point, so we can use a bashism as a fallback.
42834 if test "x$ac_cr" = x; then
42835 eval ac_cr=\$\'\\r\'
42837 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
42838 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
42841 ac_cs_awk_cr=$ac_cr
42844 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
42849 echo "cat >conf$$subs.awk <<_ACEOF" &&
42850 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
42852 } >conf$$subs.sh ||
42853 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42854 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
42856 for ac_last_try in false false false false false :; do
42857 . ./conf$$subs.sh ||
42858 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42860 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
42861 if test $ac_delim_n = $ac_delim_num; then
42863 elif $ac_last_try; then
42864 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
42866 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
42869 rm -f conf$$subs.sh
42871 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42872 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
42876 s/^/S["/; s/!.*/"]=/
42886 s/\(.\{148\}\)..*/\1/
42888 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
42893 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42900 s/\(.\{148\}\)..*/\1/
42902 s/["\\]/\\&/g; s/^/"/; s/$/"/
42906 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
42911 ' <conf$$subs.awk | sed '
42916 ' >>$CONFIG_STATUS || ac_write_fail=1
42917 rm -f conf$$subs.awk
42918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
42920 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
42921 for (key in S) S_is_set[key] = 1
42927 nfields = split(line, field, "@")
42929 len = length(field[1])
42930 for (i = 2; i < nfields; i++) {
42932 keylen = length(key)
42933 if (S_is_set[key]) {
42935 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
42936 len += length(value) + length(field[++i])
42947 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42948 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
42949 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
42952 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
42953 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
42956 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
42957 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
42958 # trailing colons and then remove the whole line if VPATH becomes empty
42959 # (actually we leave an empty line to preserve line numbers).
42960 if test "x$srcdir" = x.; then
42961 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
42979 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
42980 fi # test -n "$CONFIG_FILES"
42982 # Set up the scripts for CONFIG_HEADERS section.
42983 # No need to generate them if there are no CONFIG_HEADERS.
42984 # This happens for instance with `./config.status Makefile'.
42985 if test -n "$CONFIG_HEADERS"; then
42986 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
42990 # Transform confdefs.h into an awk script `defines.awk', embedded as
42991 # here-document in config.status, that substitutes the proper values into
42992 # config.h.in to produce config.h.
42994 # Create a delimiter string that does not exist in confdefs.h, to ease
42995 # handling of long lines.
42997 for ac_last_try in false false :; do
42998 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
42999 if test -z "$ac_tt"; then
43001 elif $ac_last_try; then
43002 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
43004 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
43008 # For the awk script, D is an array of macro values keyed by name,
43009 # likewise P contains macro parameters if any. Preserve backslash
43010 # newline sequences.
43012 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
43014 s/.\{148\}/&'"$ac_delim"'/g
43017 s/^[ ]*#[ ]*define[ ][ ]*/ /
43024 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43026 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
43030 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
43031 D["\1"]=" \3\\\\\\n"\\/p
43033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
43038 s/.\{148\}/&'"$ac_delim"'/g
43043 s/["\\]/\\&/g; s/^/"/; s/$/"/p
43046 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
43048 ' <confdefs.h | sed '
43049 s/'"$ac_delim"'/"\\\
43050 "/g' >>$CONFIG_STATUS || ac_write_fail=1
43052 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43053 for (key in D) D_is_set[key] = 1
43056 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
43058 split(line, arg, " ")
43059 if (arg[1] == "#") {
43063 defundef = substr(arg[1], 2)
43066 split(mac1, mac2, "(") #)
43068 prefix = substr(line, 1, index(line, defundef) - 1)
43069 if (D_is_set[macro]) {
43070 # Preserve the white space surrounding the "#".
43071 print prefix "define", macro P[macro] D[macro]
43074 # Replace #undef with comments. This is necessary, for example,
43075 # in the case of _POSIX_SOURCE, which is predefined and required
43076 # on some systems where configure will not decide to define it.
43077 if (defundef == "undef") {
43078 print "/*", prefix defundef, macro, "*/"
43086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43087 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
43088 fi # test -n "$CONFIG_HEADERS"
43091 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
43096 :[FHLC]) ac_mode=$ac_tag; continue;;
43098 case $ac_mode$ac_tag in
43100 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
43101 :[FH]-) ac_tag=-:-;;
43102 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
43119 -) ac_f="$ac_tmp/stdin";;
43120 *) # Look for the file first in the build tree, then in the source tree
43121 # (if the path is not absolute). The absolute path cannot be DOS-style,
43122 # because $ac_f cannot contain `:'.
43126 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
43128 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
43130 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
43131 as_fn_append ac_file_inputs " '$ac_f'"
43134 # Let's still pretend it is `configure' which instantiates (i.e., don't
43135 # use $as_me), people would be surprised to read:
43136 # /* config.h. Generated by config.status. */
43137 configure_input='Generated from '`
43138 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
43140 if test x"$ac_file" != x-; then
43141 configure_input="$ac_file. $configure_input"
43142 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
43143 $as_echo "$as_me: creating $ac_file" >&6;}
43145 # Neutralize special characters interpreted by sed in replacement strings.
43146 case $configure_input in #(
43147 *\&* | *\|* | *\\* )
43148 ac_sed_conf_input=`$as_echo "$configure_input" |
43149 sed 's/[\\\\&|]/\\\\&/g'`;; #(
43150 *) ac_sed_conf_input=$configure_input;;
43154 *:-:* | *:-) cat >"$ac_tmp/stdin" \
43155 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
43160 ac_dir=`$as_dirname -- "$ac_file" ||
43161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43162 X"$ac_file" : 'X\(//\)[^/]' \| \
43163 X"$ac_file" : 'X\(//\)$' \| \
43164 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
43165 $as_echo X"$ac_file" |
43166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43170 /^X\(\/\/\)[^/].*/{
43183 as_dir="$ac_dir"; as_fn_mkdir_p
43187 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
43189 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
43190 # A ".." for each directory in $ac_dir_suffix.
43191 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
43192 case $ac_top_builddir_sub in
43193 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
43194 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
43197 ac_abs_top_builddir=$ac_pwd
43198 ac_abs_builddir=$ac_pwd$ac_dir_suffix
43199 # for backward compatibility:
43200 ac_top_builddir=$ac_top_build_prefix
43203 .) # We are building in place.
43205 ac_top_srcdir=$ac_top_builddir_sub
43206 ac_abs_top_srcdir=$ac_pwd ;;
43207 [\\/]* | ?:[\\/]* ) # Absolute name.
43208 ac_srcdir=$srcdir$ac_dir_suffix;
43209 ac_top_srcdir=$srcdir
43210 ac_abs_top_srcdir=$srcdir ;;
43211 *) # Relative name.
43212 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
43213 ac_top_srcdir=$ac_top_build_prefix$srcdir
43214 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
43216 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
43226 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
43227 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
43229 ac_MKDIR_P=$MKDIR_P
43231 [\\/$]* | ?:[\\/]* ) ;;
43232 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
43236 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43237 # If the template does not know about datarootdir, expand it.
43238 # FIXME: This hack should be removed a few years after 2.60.
43239 ac_datarootdir_hack=; ac_datarootdir_seen=
43250 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
43251 *datarootdir*) ac_datarootdir_seen=yes;;
43252 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
43253 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
43254 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
43256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43257 ac_datarootdir_hack='
43258 s&@datadir@&$datadir&g
43259 s&@docdir@&$docdir&g
43260 s&@infodir@&$infodir&g
43261 s&@localedir@&$localedir&g
43262 s&@mandir@&$mandir&g
43263 s&\\\${datarootdir}&$datarootdir&g' ;;
43267 # Neutralize VPATH when `$srcdir' = `.'.
43268 # Shell code in configure.ac might set extrasub.
43269 # FIXME: do we really want to maintain this feature?
43270 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
43271 ac_sed_extra="$ac_vpsub
43274 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
43276 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
43277 s|@configure_input@|$ac_sed_conf_input|;t t
43278 s&@top_builddir@&$ac_top_builddir_sub&;t t
43279 s&@top_build_prefix@&$ac_top_build_prefix&;t t
43280 s&@srcdir@&$ac_srcdir&;t t
43281 s&@abs_srcdir@&$ac_abs_srcdir&;t t
43282 s&@top_srcdir@&$ac_top_srcdir&;t t
43283 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
43284 s&@builddir@&$ac_builddir&;t t
43285 s&@abs_builddir@&$ac_abs_builddir&;t t
43286 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
43287 s&@INSTALL@&$ac_INSTALL&;t t
43288 s&@MKDIR_P@&$ac_MKDIR_P&;t t
43289 $ac_datarootdir_hack
43291 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
43292 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43294 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
43295 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
43296 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
43297 "$ac_tmp/out"`; test -z "$ac_out"; } &&
43298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43299 which seems to be undefined. Please make sure it is defined" >&5
43300 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
43301 which seems to be undefined. Please make sure it is defined" >&2;}
43303 rm -f "$ac_tmp/stdin"
43305 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
43306 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
43308 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43314 if test x"$ac_file" != x-; then
43316 $as_echo "/* $configure_input */" \
43317 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
43318 } >"$ac_tmp/config.h" \
43319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43320 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
43321 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
43322 $as_echo "$as_me: $ac_file is unchanged" >&6;}
43325 mv "$ac_tmp/config.h" "$ac_file" \
43326 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
43329 $as_echo "/* $configure_input */" \
43330 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
43331 || as_fn_error $? "could not create -" "$LINENO" 5
43333 # Compute "$ac_file"'s index in $config_headers.
43336 for _am_header in $config_headers :; do
43337 case $_am_header in
43338 $_am_arg | $_am_arg:* )
43341 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
43344 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
43345 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43346 X"$_am_arg" : 'X\(//\)[^/]' \| \
43347 X"$_am_arg" : 'X\(//\)$' \| \
43348 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
43349 $as_echo X"$_am_arg" |
43350 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43354 /^X\(\/\/\)[^/].*/{
43366 s/.*/./; q'`/stamp-h$_am_stamp_count
43369 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
43370 $as_echo "$as_me: executing $ac_file commands" >&6;}
43375 case $ac_file$ac_mode in
43376 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
43377 # Older Autoconf quotes --file arguments for eval, but not when files
43378 # are listed without --file. Let's play safe and only enable the eval
43379 # if we detect the quoting.
43380 case $CONFIG_FILES in
43381 *\'*) eval set x "$CONFIG_FILES" ;;
43382 *) set x $CONFIG_FILES ;;
43387 # Strip MF so we end up with the name of the file.
43388 mf=`echo "$mf" | sed -e 's/:.*$//'`
43389 # Check whether this is an Automake generated Makefile or not.
43390 # We used to match only the files named 'Makefile.in', but
43391 # some people rename them; so instead we look at the file content.
43392 # Grep'ing the first line is not enough: some people post-process
43393 # each Makefile.in and add a new line on top of each file to say so.
43394 # Grep'ing the whole file is not good either: AIX grep has a line
43395 # limit of 2048, but all sed's we know have understand at least 4000.
43396 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
43397 dirpart=`$as_dirname -- "$mf" ||
43398 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43399 X"$mf" : 'X\(//\)[^/]' \| \
43400 X"$mf" : 'X\(//\)$' \| \
43401 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
43403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43407 /^X\(\/\/\)[^/].*/{
43423 # Extract the definition of DEPDIR, am__include, and am__quote
43424 # from the Makefile without running 'make'.
43425 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
43426 test -z "$DEPDIR" && continue
43427 am__include=`sed -n 's/^am__include = //p' < "$mf"`
43428 test -z "$am__include" && continue
43429 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
43430 # Find all dependency output files, they are included files with
43431 # $(DEPDIR) in their names. We invoke sed twice because it is the
43432 # simplest approach to changing $(DEPDIR) to its actual value in the
43434 for file in `sed -n "
43435 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
43436 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
43437 # Make sure the directory exists.
43438 test -f "$dirpart/$file" && continue
43439 fdir=`$as_dirname -- "$file" ||
43440 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
43441 X"$file" : 'X\(//\)[^/]' \| \
43442 X"$file" : 'X\(//\)$' \| \
43443 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
43444 $as_echo X"$file" |
43445 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
43449 /^X\(\/\/\)[^/].*/{
43462 as_dir=$dirpart/$fdir; as_fn_mkdir_p
43463 # echo "creating $dirpart/$file"
43464 echo '# dummy' > "$dirpart/$file"
43471 # See if we are running on zsh, and set the options that allow our
43472 # commands through without removal of \ escapes.
43473 if test -n "${ZSH_VERSION+set}"; then
43474 setopt NO_GLOB_SUBST
43478 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
43481 cat <<_LT_EOF >> "$cfgfile"
43483 # Generated automatically by $as_me ($PACKAGE) $VERSION
43484 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
43486 # Provide generalized library-building support services.
43487 # Written by Gordon Matzigkeit, 1996
43489 # Copyright (C) 2014 Free Software Foundation, Inc.
43490 # This is free software; see the source for copying conditions. There is NO
43491 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
43493 # GNU Libtool is free software; you can redistribute it and/or modify
43494 # it under the terms of the GNU General Public License as published by
43495 # the Free Software Foundation; either version 2 of of the License, or
43496 # (at your option) any later version.
43498 # As a special exception to the GNU General Public License, if you
43499 # distribute this file as part of a program or library that is built
43500 # using GNU Libtool, you may include this file under the same
43501 # distribution terms that you use for the rest of that program.
43503 # GNU Libtool is distributed in the hope that it will be useful, but
43504 # WITHOUT ANY WARRANTY; without even the implied warranty of
43505 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43506 # GNU General Public License for more details.
43508 # You should have received a copy of the GNU General Public License
43509 # along with this program. If not, see <http://www.gnu.org/licenses/>.
43512 # The names of the tagged configurations supported by this script.
43515 # Configured defaults for sys_lib_dlsearch_path munging.
43516 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
43518 # ### BEGIN LIBTOOL CONFIG
43520 # Which release of libtool.m4 was used?
43521 macro_version=$macro_version
43522 macro_revision=$macro_revision
43524 # Assembler program.
43527 # DLL creation program.
43528 DLLTOOL=$lt_DLLTOOL
43530 # Object dumper program.
43531 OBJDUMP=$lt_OBJDUMP
43533 # Whether or not to build shared libraries.
43534 build_libtool_libs=$enable_shared
43536 # Whether or not to build static libraries.
43537 build_old_libs=$enable_static
43539 # What type of objects to build.
43542 # Whether or not to optimize for fast installation.
43543 fast_install=$enable_fast_install
43545 # Shared archive member basename,for filename based shared library versioning on AIX.
43546 shared_archive_member_spec=$shared_archive_member_spec
43548 # Shell to use when invoking shell scripts.
43551 # An echo program that protects backslashes.
43554 # The PATH separator for the build system.
43555 PATH_SEPARATOR=$lt_PATH_SEPARATOR
43558 host_alias=$host_alias
43562 # The build system.
43563 build_alias=$build_alias
43567 # A sed program that does not truncate output.
43570 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
43571 Xsed="\$SED -e 1s/^X//"
43573 # A grep program that handles long lines.
43579 # A literal string matcher.
43582 # A BSD- or MS-compatible name lister.
43585 # Whether we need soft or hard links.
43588 # What is the maximum length of a command?
43589 max_cmd_len=$max_cmd_len
43591 # Object file suffix (normally "o").
43594 # Executable file suffix (normally "").
43597 # whether the shell understands "unset".
43600 # turn spaces into newlines.
43603 # turn newlines into spaces.
43606 # convert \$build file names to \$host format.
43607 to_host_file_cmd=$lt_cv_to_host_file_cmd
43609 # convert \$build files to toolchain format.
43610 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
43612 # Method to check whether dependent libraries are shared objects.
43613 deplibs_check_method=$lt_deplibs_check_method
43615 # Command to use when deplibs_check_method = "file_magic".
43616 file_magic_cmd=$lt_file_magic_cmd
43618 # How to find potential files when deplibs_check_method = "file_magic".
43619 file_magic_glob=$lt_file_magic_glob
43621 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
43622 want_nocaseglob=$lt_want_nocaseglob
43624 # Command to associate shared and link libraries.
43625 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
43630 # Flags to create an archive.
43631 AR_FLAGS=$lt_AR_FLAGS
43633 # How to feed a file listing to the archiver.
43634 archiver_list_spec=$lt_archiver_list_spec
43636 # A symbol stripping program.
43639 # Commands used to install an old-style archive.
43641 old_postinstall_cmds=$lt_old_postinstall_cmds
43642 old_postuninstall_cmds=$lt_old_postuninstall_cmds
43644 # Whether to use a lock for old archive extraction.
43645 lock_old_archive_extraction=$lock_old_archive_extraction
43650 # LTCC compiler flags.
43651 LTCFLAGS=$lt_CFLAGS
43653 # Take the output of nm and produce a listing of raw symbols and C names.
43654 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
43656 # Transform the output of nm in a proper C declaration.
43657 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
43659 # Transform the output of nm into a list of symbols to manually relocate.
43660 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
43662 # Transform the output of nm in a C name address pair.
43663 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
43665 # Transform the output of nm in a C name address pair when lib prefix is needed.
43666 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
43668 # The name lister interface.
43669 nm_interface=$lt_lt_cv_nm_interface
43671 # Specify filename containing input files for \$NM.
43672 nm_file_list_spec=$lt_nm_file_list_spec
43674 # The root where to search for dependent libraries,and where our libraries should be installed.
43675 lt_sysroot=$lt_sysroot
43677 # Command to truncate a binary pipe.
43678 lt_truncate_bin=$lt_lt_cv_truncate_bin
43680 # The name of the directory that contains temporary libtool files.
43683 # Used to examine libraries when file_magic_cmd begins with "file".
43684 MAGIC_CMD=$MAGIC_CMD
43686 # Must we lock files when doing compilation?
43687 need_locks=$lt_need_locks
43690 MANIFEST_TOOL=$lt_MANIFEST_TOOL
43692 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
43693 DSYMUTIL=$lt_DSYMUTIL
43695 # Tool to change global to local symbols on Mac OS X.
43698 # Tool to manipulate fat objects and archives on Mac OS X.
43701 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
43704 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
43705 OTOOL64=$lt_OTOOL64
43707 # Old archive suffix (normally "a").
43710 # Shared library suffix (normally ".so").
43711 shrext_cmds=$lt_shrext_cmds
43713 # The commands to extract the exported symbol list from a shared archive.
43714 extract_expsyms_cmds=$lt_extract_expsyms_cmds
43716 # Variables whose values should be saved in libtool wrapper scripts and
43717 # restored at link time.
43718 variables_saved_for_relink=$lt_variables_saved_for_relink
43720 # Do we need the "lib" prefix for modules?
43721 need_lib_prefix=$need_lib_prefix
43723 # Do we need a version for libraries?
43724 need_version=$need_version
43726 # Library versioning type.
43727 version_type=$version_type
43729 # Shared library runtime path variable.
43730 runpath_var=$runpath_var
43732 # Shared library path variable.
43733 shlibpath_var=$shlibpath_var
43735 # Is shlibpath searched before the hard-coded library search path?
43736 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
43738 # Format of library name prefix.
43739 libname_spec=$lt_libname_spec
43741 # List of archive names. First name is the real one, the rest are links.
43742 # The last name is the one that the linker finds with -lNAME
43743 library_names_spec=$lt_library_names_spec
43745 # The coded name of the library, if different from the real name.
43746 soname_spec=$lt_soname_spec
43748 # Permission mode override for installation of shared libraries.
43749 install_override_mode=$lt_install_override_mode
43751 # Command to use after installation of a shared archive.
43752 postinstall_cmds=$lt_postinstall_cmds
43754 # Command to use after uninstallation of a shared archive.
43755 postuninstall_cmds=$lt_postuninstall_cmds
43757 # Commands used to finish a libtool library installation in a directory.
43758 finish_cmds=$lt_finish_cmds
43760 # As "finish_cmds", except a single script fragment to be evaled but
43762 finish_eval=$lt_finish_eval
43764 # Whether we should hardcode library paths into libraries.
43765 hardcode_into_libs=$hardcode_into_libs
43767 # Compile-time system search path for libraries.
43768 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
43770 # Detected run-time system search path for libraries.
43771 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
43773 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
43774 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
43776 # Whether dlopen is supported.
43777 dlopen_support=$enable_dlopen
43779 # Whether dlopen of programs is supported.
43780 dlopen_self=$enable_dlopen_self
43782 # Whether dlopen of statically linked programs is supported.
43783 dlopen_self_static=$enable_dlopen_self_static
43785 # Commands to strip libraries.
43786 old_striplib=$lt_old_striplib
43787 striplib=$lt_striplib
43790 # The linker used to build libraries.
43793 # How to create reloadable object files.
43794 reload_flag=$lt_reload_flag
43795 reload_cmds=$lt_reload_cmds
43797 # Commands used to build an old-style archive.
43798 old_archive_cmds=$lt_old_archive_cmds
43800 # A language specific compiler.
43803 # Is the compiler the GNU compiler?
43806 # Compiler flag to turn off builtin functions.
43807 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
43809 # Additional compiler flags for building library objects.
43810 pic_flag=$lt_lt_prog_compiler_pic
43812 # How to pass a linker flag through the compiler.
43813 wl=$lt_lt_prog_compiler_wl
43815 # Compiler flag to prevent dynamic linking.
43816 link_static_flag=$lt_lt_prog_compiler_static
43818 # Does compiler simultaneously support -c and -o options?
43819 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
43821 # Whether or not to add -lc for building shared libraries.
43822 build_libtool_need_lc=$archive_cmds_need_lc
43824 # Whether or not to disallow shared libs when runtime libs are static.
43825 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
43827 # Compiler flag to allow reflexive dlopens.
43828 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
43830 # Compiler flag to generate shared objects directly from archives.
43831 whole_archive_flag_spec=$lt_whole_archive_flag_spec
43833 # Whether the compiler copes with passing no objects directly.
43834 compiler_needs_object=$lt_compiler_needs_object
43836 # Create an old-style archive from a shared archive.
43837 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
43839 # Create a temporary old-style archive to link instead of a shared archive.
43840 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
43842 # Commands used to build a shared archive.
43843 archive_cmds=$lt_archive_cmds
43844 archive_expsym_cmds=$lt_archive_expsym_cmds
43846 # Commands used to build a loadable module if different from building
43847 # a shared archive.
43848 module_cmds=$lt_module_cmds
43849 module_expsym_cmds=$lt_module_expsym_cmds
43851 # Whether we are building with GNU ld or not.
43852 with_gnu_ld=$lt_with_gnu_ld
43854 # Flag that allows shared libraries with undefined symbols to be built.
43855 allow_undefined_flag=$lt_allow_undefined_flag
43857 # Flag that enforces no undefined symbols.
43858 no_undefined_flag=$lt_no_undefined_flag
43860 # Flag to hardcode \$libdir into a binary during linking.
43861 # This must work even if \$libdir does not exist
43862 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
43864 # Whether we need a single "-rpath" flag with a separated argument.
43865 hardcode_libdir_separator=$lt_hardcode_libdir_separator
43867 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43868 # DIR into the resulting binary.
43869 hardcode_direct=$hardcode_direct
43871 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
43872 # DIR into the resulting binary and the resulting library dependency is
43873 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
43874 # library is relocated.
43875 hardcode_direct_absolute=$hardcode_direct_absolute
43877 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
43878 # into the resulting binary.
43879 hardcode_minus_L=$hardcode_minus_L
43881 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
43882 # into the resulting binary.
43883 hardcode_shlibpath_var=$hardcode_shlibpath_var
43885 # Set to "yes" if building a shared library automatically hardcodes DIR
43886 # into the library and all subsequent libraries and executables linked
43888 hardcode_automatic=$hardcode_automatic
43890 # Set to yes if linker adds runtime paths of dependent libraries
43891 # to runtime path list.
43892 inherit_rpath=$inherit_rpath
43894 # Whether libtool must link a program against all its dependency libraries.
43895 link_all_deplibs=$link_all_deplibs
43897 # Set to "yes" if exported symbols are required.
43898 always_export_symbols=$always_export_symbols
43900 # The commands to list exported symbols.
43901 export_symbols_cmds=$lt_export_symbols_cmds
43903 # Symbols that should not be listed in the preloaded symbols.
43904 exclude_expsyms=$lt_exclude_expsyms
43906 # Symbols that must always be exported.
43907 include_expsyms=$lt_include_expsyms
43909 # Commands necessary for linking programs (against libraries) with templates.
43910 prelink_cmds=$lt_prelink_cmds
43912 # Commands necessary for finishing linking programs.
43913 postlink_cmds=$lt_postlink_cmds
43915 # Specify filename containing input files.
43916 file_list_spec=$lt_file_list_spec
43918 # How to hardcode a shared library path into an executable.
43919 hardcode_action=$hardcode_action
43921 # ### END LIBTOOL CONFIG
43925 cat <<'_LT_EOF' >> "$cfgfile"
43927 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
43929 # func_munge_path_list VARIABLE PATH
43930 # -----------------------------------
43931 # VARIABLE is name of variable containing _space_ separated list of
43932 # directories to be munged by the contents of PATH, which is string
43935 # string "DIR[ DIR]" will be prepended to VARIABLE
43937 # string "DIR[ DIR]" will be appended to VARIABLE
43938 # "DIRP[:DIRP]::[DIRA:]DIRA"
43939 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
43940 # "DIRA[ DIRA]" will be appended to VARIABLE
43942 # VARIABLE will be replaced by "DIR[ DIR]"
43943 func_munge_path_list ()
43949 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
43952 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
43955 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
43956 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
43959 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
43965 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
43966 func_cc_basename ()
43968 for cc_temp in $*""; do
43970 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
43971 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
43976 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
43980 # ### END FUNCTIONS SHARED WITH CONFIGURE
43986 cat <<\_LT_EOF >> "$cfgfile"
43987 # AIX sometimes has problems with the GCC collect2 program. For some
43988 # reason, if we set the COLLECT_NAMES environment variable, the problems
43989 # vanish in a puff of smoke.
43990 if test set != "${COLLECT_NAMES+set}"; then
43992 export COLLECT_NAMES
43999 ltmain=$ac_aux_dir/ltmain.sh
44002 # We use sed instead of cat because bash on DJGPP gets confused if
44003 # if finds mixed CR/LF and LF-only lines. Since sed operates in
44004 # text mode, it properly converts lines to CR/LF. This bash problem
44005 # is reportedly fixed, but why not run on old versions too?
44006 sed '$q' "$ltmain" >> "$cfgfile" \
44007 || (rm -f "$cfgfile"; exit 1)
44009 mv -f "$cfgfile" "$ofile" ||
44010 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
44021 ac_clean_files=$ac_clean_files_save
44023 test $ac_write_fail = 0 ||
44024 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
44027 # configure is writing to config.log, and then calls config.status.
44028 # config.status does its own redirection, appending to config.log.
44029 # Unfortunately, on DOS this fails, as config.log is still kept open
44030 # by configure, so config.status won't be able to write to it; its
44031 # output is simply discarded. So we exec the FD to /dev/null,
44032 # effectively closing config.log, so it can be properly (re)opened and
44033 # appended to by config.status. When coming back to configure, we
44034 # need to make the FD available again.
44035 if test "$no_create" != yes; then
44037 ac_config_status_args=
44038 test "$silent" = yes &&
44039 ac_config_status_args="$ac_config_status_args --quiet"
44041 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
44043 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
44044 # would make configure fail if this is the last instruction.
44045 $ac_cs_success || as_fn_exit 1
44049 # CONFIG_SUBDIRS section.
44051 if test "$no_recursion" != yes; then
44053 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
44054 # so they do not pile up.
44055 ac_sub_configure_args=
44057 eval "set x $ac_configure_args"
44061 if test -n "$ac_prev"; then
44066 -cache-file | --cache-file | --cache-fil | --cache-fi \
44067 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
44068 ac_prev=cache_file ;;
44069 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
44070 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
44073 --config-cache | -C)
44075 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
44077 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
44079 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
44081 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
44083 --disable-option-checking)
44087 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44089 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
44093 # Always prepend --prefix to ensure using the same prefix
44094 # in subdir configurations.
44095 ac_arg="--prefix=$prefix"
44097 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
44099 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
44102 if test "$silent" = yes; then
44103 ac_sub_configure_args="--silent $ac_sub_configure_args"
44106 # Always prepend --disable-option-checking to silence warnings, since
44107 # different subdirs can have different --enable and --with options.
44108 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
44111 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
44113 # Do not complain, so a configure script can configure whichever
44114 # parts of a large source tree are present.
44115 test -d "$srcdir/$ac_dir" || continue
44117 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
44118 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
44119 $as_echo "$ac_msg" >&6
44120 as_dir="$ac_dir"; as_fn_mkdir_p
44124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
44126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
44127 # A ".." for each directory in $ac_dir_suffix.
44128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
44129 case $ac_top_builddir_sub in
44130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
44131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
44134 ac_abs_top_builddir=$ac_pwd
44135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
44136 # for backward compatibility:
44137 ac_top_builddir=$ac_top_build_prefix
44140 .) # We are building in place.
44142 ac_top_srcdir=$ac_top_builddir_sub
44143 ac_abs_top_srcdir=$ac_pwd ;;
44144 [\\/]* | ?:[\\/]* ) # Absolute name.
44145 ac_srcdir=$srcdir$ac_dir_suffix;
44146 ac_top_srcdir=$srcdir
44147 ac_abs_top_srcdir=$srcdir ;;
44148 *) # Relative name.
44149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
44150 ac_top_srcdir=$ac_top_build_prefix$srcdir
44151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
44153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
44158 # Check for guested configure; otherwise get Cygnus style configure.
44159 if test -f "$ac_srcdir/configure.gnu"; then
44160 ac_sub_configure=$ac_srcdir/configure.gnu
44161 elif test -f "$ac_srcdir/configure"; then
44162 ac_sub_configure=$ac_srcdir/configure
44163 elif test -f "$ac_srcdir/configure.in"; then
44164 # This should be Cygnus configure.
44165 ac_sub_configure=$ac_aux_dir/configure
44167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
44168 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
44172 # The recursion is here.
44173 if test -n "$ac_sub_configure"; then
44174 # Make the cache file name correct relative to the subdirectory.
44175 case $cache_file in
44176 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
44177 *) # Relative name.
44178 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
44181 { $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
44182 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
44183 # The eval makes quoting arguments work.
44184 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
44185 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
44186 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
44192 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
44193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
44194 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
44199 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
44200 if test -z "$tmp_cpp"; then
44203 cat >./tests/configurehelp.pm <<_EOF
44204 # This is a generated file. Do not edit.
44206 package configurehelp;
44218 @ISA = qw(Exporter);
44224 \$Cpreprocessor = '$tmp_cpp';
44231 ## ---------------------------------- ##
44232 ## Start of distclean amending code ##
44233 ## ---------------------------------- ##
44235 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
44238 if test ! -f "$xc_subdir/Makefile"; then
44239 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
44243 # Fetch dependency tracking file list from Makefile include lines.
44245 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
44246 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
44248 # --disable-dependency-tracking might have been used, consequently
44249 # there is nothing to amend without a dependency tracking file list.
44251 if test $xc_cnt_words -gt 0; then
44253 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
44254 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
44256 # Build Makefile specific patch hunk.
44258 xc_p="$xc_subdir/xc_patch.tmp"
44260 xc_rm_depfiles=`echo "$xc_inc_lines" \
44261 | $SED 's%include% -rm -f%' 2>/dev/null`
44263 xc_dep_subdirs=`echo "$xc_inc_lines" \
44264 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
44265 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
44268 echo "$xc_rm_depfiles" >$xc_p
44270 for xc_dep_dir in $xc_dep_subdirs; do
44271 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
44272 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
44273 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
44274 echo "${xc_tab}fi" >>$xc_p
44277 # Build Makefile patching sed scripts.
44279 xc_s1="$xc_subdir/xc_script_1.tmp"
44280 xc_s2="$xc_subdir/xc_script_2.tmp"
44281 xc_s3="$xc_subdir/xc_script_3.tmp"
44283 cat >$xc_s1 <<\_EOT
44284 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
44285 s/^.*(DEPDIR)/___xc_depdir_line___/
44287 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
44288 s/^.*(DEPDIR)/___xc_depdir_line___/
44292 cat >$xc_s2 <<\_EOT
44293 /___xc_depdir_line___$/{
44295 /___xc_depdir_line___$/D
44300 /^___xc_depdir_line___/{
44306 # Apply patch to Makefile and cleanup.
44308 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
44309 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
44310 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
44312 if test -f "$xc_subdir/Makefile.tmp3"; then
44313 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
44316 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
44317 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
44318 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
44320 test -f "$xc_p" && rm -f "$xc_p"
44321 test -f "$xc_s1" && rm -f "$xc_s1"
44322 test -f "$xc_s2" && rm -f "$xc_s2"
44323 test -f "$xc_s3" && rm -f "$xc_s3"
44329 ## -------------------------------- ##
44330 ## End of distclean amending code ##
44331 ## -------------------------------- ##
44335 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
44337 curl version: ${CURLVERSION}
44338 Host setup: ${host}
44339 Install prefix: ${prefix}
44341 SSL support: ${curl_ssl_msg}
44342 SSH support: ${curl_ssh_msg}
44343 zlib support: ${curl_zlib_msg}
44344 brotli support: ${curl_brotli_msg}
44345 GSS-API support: ${curl_gss_msg}
44346 TLS-SRP support: ${curl_tls_srp_msg}
44347 resolver: ${curl_res_msg}
44348 IPv6 support: ${curl_ipv6_msg}
44349 Unix sockets support: ${curl_unix_sockets_msg}
44350 IDN support: ${curl_idn_msg}
44351 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44352 Built-in manual: ${curl_manual_msg}
44353 --libcurl option: ${curl_libcurl_msg}
44354 Verbose errors: ${curl_verbose_msg}
44355 SSPI support: ${curl_sspi_msg}
44356 ca cert bundle: ${ca}${ca_warning}
44357 ca cert path: ${capath}${capath_warning}
44358 ca fallback: ${with_ca_fallback}
44359 LDAP support: ${curl_ldap_msg}
44360 LDAPS support: ${curl_ldaps_msg}
44361 RTSP support: ${curl_rtsp_msg}
44362 RTMP support: ${curl_rtmp_msg}
44363 metalink support: ${curl_mtlnk_msg}
44364 PSL support: ${curl_psl_msg}
44365 HTTP2 support: ${curl_h2_msg}
44366 Protocols: ${SUPPORT_PROTOCOLS}
44368 $as_echo "$as_me: Configured to build curl/libcurl:
44370 curl version: ${CURLVERSION}
44371 Host setup: ${host}
44372 Install prefix: ${prefix}
44374 SSL support: ${curl_ssl_msg}
44375 SSH support: ${curl_ssh_msg}
44376 zlib support: ${curl_zlib_msg}
44377 brotli support: ${curl_brotli_msg}
44378 GSS-API support: ${curl_gss_msg}
44379 TLS-SRP support: ${curl_tls_srp_msg}
44380 resolver: ${curl_res_msg}
44381 IPv6 support: ${curl_ipv6_msg}
44382 Unix sockets support: ${curl_unix_sockets_msg}
44383 IDN support: ${curl_idn_msg}
44384 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
44385 Built-in manual: ${curl_manual_msg}
44386 --libcurl option: ${curl_libcurl_msg}
44387 Verbose errors: ${curl_verbose_msg}
44388 SSPI support: ${curl_sspi_msg}
44389 ca cert bundle: ${ca}${ca_warning}
44390 ca cert path: ${capath}${capath_warning}
44391 ca fallback: ${with_ca_fallback}
44392 LDAP support: ${curl_ldap_msg}
44393 LDAPS support: ${curl_ldaps_msg}
44394 RTSP support: ${curl_rtsp_msg}
44395 RTMP support: ${curl_rtmp_msg}
44396 metalink support: ${curl_mtlnk_msg}
44397 PSL support: ${curl_psl_msg}
44398 HTTP2 support: ${curl_h2_msg}
44399 Protocols: ${SUPPORT_PROTOCOLS}