2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for curl -.
5 # Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
8 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
12 # This configure script is free software; the Free Software Foundation
13 # gives unlimited permission to copy, distribute and modify it.
15 # Copyright (c) 1998 - 2022 Daniel Stenberg, <daniel@haxx.se>
16 # This configure script may be copied, distributed and modified under the
17 # terms of the curl license; see COPYING for more details
19 ## -------------------------------- ##
20 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
21 ## -------------------------------- ##
23 xc_configure_preamble_ver_major='1'
24 xc_configure_preamble_ver_minor='0'
27 # Set IFS to space, tab and newline.
34 IFS="$xc_space$xc_tab$xc_newline"
37 # Set internationalization behavior variables.
48 # Some useful variables.
51 xc_msg_warn='configure: WARNING:'
52 xc_msg_abrt='Can not continue.'
53 xc_msg_err='configure: error:'
56 # Verify that 'echo' command is available, otherwise abort.
60 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
61 case "x$xc_tst_str" in # ((
66 # Try built-in echo, and fail.
67 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
73 # Verify that 'test' command is available, otherwise abort.
77 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
78 case "x$xc_tst_str" in # ((
83 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
89 # Verify that 'PATH' variable is set, otherwise abort.
93 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
94 case "x$xc_tst_str" in # ((
99 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
105 # Verify that 'expr' command is available, otherwise abort.
109 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
110 case "x$xc_tst_str" in # ((
115 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
121 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
125 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
126 | sed -e 's:unknown:success:' 2>/dev/null`
127 case "x$xc_tst_str" in # ((
132 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
138 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
142 (`echo "$xc_tst_str" 2>/dev/null \
143 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
144 case "x$xc_tst_str" in # ((
149 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
155 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
158 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
159 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
160 | tr -d "0123456789$xc_tab" 2>/dev/null`
161 case "x$xc_tst_str" in # ((
166 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
172 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
175 xc_tst_str='unknown unknown unknown unknown'
176 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
177 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
178 case "x$xc_tst_str" in # ((
183 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
189 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
193 xc_tst_str=`cat <<_EOT 2>/dev/null \
194 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
199 case "x$xc_tst_str" in # ((
204 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
210 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
213 # Directory count in 'PATH' when using a colon separator.
215 xc_tst_prev_IFS=$IFS; IFS=':'
216 for xc_tst_dir in $PATH; do
218 xc_tst_dirs_col="x$xc_tst_dirs_col"
221 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
223 # Directory count in 'PATH' when using a semicolon separator.
225 xc_tst_prev_IFS=$IFS; IFS=';'
226 for xc_tst_dir in $PATH; do
228 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
231 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
233 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
234 # When both counting methods give the same result we do not want to
235 # chose one over the other, and consider auto-detection not possible.
236 if test -z "$PATH_SEPARATOR"; then
237 # User should provide the correct 'PATH_SEPARATOR' definition.
238 # Until then, guess that it is colon!
239 echo "$xc_msg_warn path separator not determined, guessing colon" >&2
243 # Separator with the greater directory count is the auto-detected one.
244 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
245 xc_tst_auto_separator=';'
247 xc_tst_auto_separator=':'
249 if test -z "$PATH_SEPARATOR"; then
250 # Simply use the auto-detected one when not already set.
251 PATH_SEPARATOR=$xc_tst_auto_separator
252 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
253 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
256 xc_PATH_SEPARATOR=$PATH_SEPARATOR
258 xc_configure_preamble_result='yes'
261 ## -------------------- ##
262 ## M4sh Initialization. ##
263 ## -------------------- ##
265 # Be more Bourne compatible
266 DUALCASE=1; export DUALCASE # for MKS sh
268 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
272 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
273 # is contrary to our usage. Disable this feature.
274 alias -g '${1+"$@"}'='"$@"'
277 case `(set -o) 2>/dev/null` in #(
287 # Reset variables that may have inherited troublesome values from
290 # IFS needs to be set, to space, tab, and newline, in precisely that order.
291 # (If _AS_PATH_WALK were called with IFS unset, it would have the
292 # side effect of setting IFS to empty, thus disabling word splitting.)
293 # Quoting is to prevent editors from complaining about space-tab.
303 # Ensure predictable behavior from utilities with locale-dependent output.
309 # We cannot yet rely on "unset" to work, but we need these variables
310 # to be unset--not just set to an empty or harmless value--now, to
311 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
312 # also avoids known problems related to "unset" and subshell syntax
313 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
314 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
315 do eval test \${$as_var+y} \
316 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
319 # Ensure that fds 0, 1, and 2 are open.
320 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
321 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
322 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
326 # Find who we are. Look in the path if we contain no directory separator.
329 *[\\/]* ) as_myself=$0 ;;
330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337 *) as_dir=$as_dir/ ;;
339 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
345 # We did not find ourselves, most probably we were run as `sh COMMAND'
346 # in which case we are not to be found in the path.
347 if test "x$as_myself" = x; then
350 if test ! -f "$as_myself"; then
351 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
356 # Use a proper internal environment variable to ensure we don't fall
357 # into an infinite loop, continuously re-executing ourselves.
358 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
359 _as_can_reexec=no; export _as_can_reexec;
360 # We cannot yet assume a decent shell, so we have to provide a
361 # neutralization value for shells without unset; and this also
362 # works around shells that cannot unset nonexistent variables.
363 # Preserve -v and -x to the replacement shell.
366 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
368 *v*x* | *x*v* ) as_opts=-vx ;;
373 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
374 # Admittedly, this is quite paranoid, since all the known shells bail
375 # out after a failed `exec'.
376 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
379 # We don't want this to propagate to other subprocesses.
380 { _as_can_reexec=; unset _as_can_reexec;}
381 if test "x$CONFIG_SHELL" = x; then
382 as_bourne_compatible="as_nop=:
383 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
387 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
388 # is contrary to our usage. Disable this feature.
389 alias -g '\${1+\"\$@\"}'='\"\$@\"'
392 case \`(set -o) 2>/dev/null\` in #(
400 as_required="as_fn_return () { (exit \$1); }
401 as_fn_success () { as_fn_return 0; }
402 as_fn_failure () { as_fn_return 1; }
403 as_fn_ret_success () { return 0; }
404 as_fn_ret_failure () { return 1; }
407 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
408 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
409 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
410 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
411 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
415 exitcode=1; echo positional parameters were not saved.
417 test x\$exitcode = x0 || exit 1
418 blah=\$(echo \$(echo blah))
419 test x\"\$blah\" = xblah || exit 1
421 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
422 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
423 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
424 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
425 test \$(( 1 + 1 )) = 2 || exit 1
427 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
428 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
429 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
430 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
431 PATH=/empty FPATH=/empty; export PATH FPATH
432 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
433 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
434 if (eval "$as_required") 2>/dev/null
440 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
446 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
452 *) as_dir=$as_dir/ ;;
457 for as_base in sh bash ksh sh5; do
458 # Try only shells that exist, to save several forks.
459 as_shell=$as_dir$as_base
460 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
461 as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
463 CONFIG_SHELL=$as_shell as_have_required=yes
464 if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
478 if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
479 as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
481 CONFIG_SHELL=$SHELL as_have_required=yes
486 if test "x$CONFIG_SHELL" != x
489 # We cannot yet assume a decent shell, so we have to provide a
490 # neutralization value for shells without unset; and this also
491 # works around shells that cannot unset nonexistent variables.
492 # Preserve -v and -x to the replacement shell.
495 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
497 *v*x* | *x*v* ) as_opts=-vx ;;
502 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
503 # Admittedly, this is quite paranoid, since all the known shells bail
504 # out after a failed `exec'.
505 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
509 if test x$as_have_required = xno
511 printf "%s\n" "$0: This script requires a shell more modern than all"
512 printf "%s\n" "$0: the shells that I found on your system."
513 if test ${ZSH_VERSION+y} ; then
514 printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
515 printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
517 printf "%s\n" "$0: Please tell bug-autoconf@gnu.org and a suitable curl
518 $0: mailing list: https://curl.se/mail/ about your system,
519 $0: including any error possibly output before this
520 $0: message. Then install a modern shell, or manually run
521 $0: the script under such a shell if you do have one."
527 SHELL=${CONFIG_SHELL-/bin/sh}
529 # Unset more variables known to interfere with behavior of common tools.
530 CLICOLOR_FORCE= GREP_OPTIONS=
531 unset CLICOLOR_FORCE GREP_OPTIONS
533 ## --------------------- ##
534 ## M4sh Shell Functions. ##
535 ## --------------------- ##
538 # Portably unset VAR.
541 { eval $1=; unset $1;}
546 # as_fn_set_status STATUS
547 # -----------------------
548 # Set $? to STATUS, without forking.
556 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
565 # Do nothing but, unlike ":", preserve the value of $?.
574 # Create "$as_dir" as a directory, including parents if necessary.
579 -*) as_dir=./$as_dir;;
581 test -d "$as_dir" || eval $as_mkdir_p || {
585 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
588 as_dirs="'$as_qdir' $as_dirs"
589 as_dir=`$as_dirname -- "$as_dir" ||
590 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
591 X"$as_dir" : 'X\(//\)[^/]' \| \
592 X"$as_dir" : 'X\(//\)$' \| \
593 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
594 printf "%s\n" X"$as_dir" |
595 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
612 test -d "$as_dir" && break
614 test -z "$as_dirs" || eval "mkdir $as_dirs"
615 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
620 # as_fn_executable_p FILE
621 # -----------------------
622 # Test if FILE is an executable regular file.
623 as_fn_executable_p ()
625 test -f "$1" && test -x "$1"
626 } # as_fn_executable_p
627 # as_fn_append VAR VALUE
628 # ----------------------
629 # Append the text in VALUE to the end of the definition contained in VAR. Take
630 # advantage of any shell optimizations that allow amortized linear growth over
631 # repeated appends, instead of the typical quadratic growth present in naive
633 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
635 eval 'as_fn_append ()
648 # Perform arithmetic evaluation on the ARGs, and store the result in the
649 # global $as_val. Take advantage of shells that can avoid forks. The arguments
650 # must be portable across $(()) and expr.
651 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
660 as_val=`expr "$@" || test $? -eq 1`
666 # Do nothing but, unlike ":", preserve the value of $?.
673 # as_fn_error STATUS ERROR [LINENO LOG_FD]
674 # ----------------------------------------
675 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
676 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
677 # script with STATUS, using 1 if that was 0.
680 as_status=$1; test $as_status -eq 0 && as_status=1
682 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
683 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
685 printf "%s\n" "$as_me: error: $2" >&2
686 as_fn_exit $as_status
689 if expr a : '\(a\)' >/dev/null 2>&1 &&
690 test "X`expr 00001 : '.*\(...\)'`" = X001; then
696 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
702 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
708 as_me=`$as_basename -- "$0" ||
709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
710 X"$0" : 'X\(//\)$' \| \
711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
712 printf "%s\n" X/"$0" |
713 sed '/^.*\/\([^/][^/]*\)\/*$/{
727 # Avoid depending upon Character Ranges.
728 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
729 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
730 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
731 as_cr_digits='0123456789'
732 as_cr_alnum=$as_cr_Letters$as_cr_digits
735 as_lineno_1=$LINENO as_lineno_1a=$LINENO
736 as_lineno_2=$LINENO as_lineno_2a=$LINENO
737 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
738 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
739 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
751 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
755 chmod +x "$as_me.lineno" ||
756 { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
758 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
759 # already done that, so ensure we don't try to do so again and fall
760 # in an infinite loop. This has already happened in practice.
761 _as_can_reexec=no; export _as_can_reexec
762 # Don't try to exec as it changes $[0], causing all sort of problems
763 # (the dirname of $[0] is not the place where we might find the
764 # original and so on. Autoconf is especially sensitive to this).
766 # Exit status is that of the last command.
771 # Determine whether it's possible to make 'echo' print without a newline.
772 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
773 # for compatibility with existing Makefiles.
774 ECHO_C= ECHO_N= ECHO_T=
775 case `echo -n x` in #(((((
777 case `echo 'xy\c'` in
778 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
780 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
787 # For backward compatibility with old third-party macros, we provide
788 # the shell variables $as_echo and $as_echo_n. New code should use
789 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
790 as_echo='printf %s\n'
791 as_echo_n='printf %s'
794 rm -f conf$$ conf$$.exe conf$$.file
795 if test -d conf$$.dir; then
796 rm -f conf$$.dir/conf$$.file
799 mkdir conf$$.dir 2>/dev/null
801 if (echo >conf$$.file) 2>/dev/null; then
802 if ln -s conf$$.file conf$$ 2>/dev/null; then
804 # ... but there are two gotchas:
805 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
806 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
807 # In both cases, we have to default to `cp -pR'.
808 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
810 elif ln conf$$.file conf$$ 2>/dev/null; then
818 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
819 rmdir conf$$.dir 2>/dev/null
821 if mkdir -p . 2>/dev/null; then
822 as_mkdir_p='mkdir -p "$as_dir"'
824 test -d ./-p && rmdir ./-p
829 as_executable_p=as_fn_executable_p
831 # Sed expression to map a string onto a valid CPP name.
832 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
834 # Sed expression to map a string onto a valid variable name.
835 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
837 SHELL=${CONFIG_SHELL-/bin/sh}
840 test -n "$DJDIR" || exec 7<&0 </dev/null
844 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
845 # so uname gets run too.
846 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
851 ac_default_prefix=/usr/local
853 ac_config_libobj_dir=.
860 # Identity of this package.
862 PACKAGE_TARNAME='curl'
864 PACKAGE_STRING='curl -'
865 PACKAGE_BUGREPORT='a suitable curl mailing list: https://curl.se/mail/'
868 ac_unique_file="lib/urldata.h"
869 # Factoring default headers for most tests.
870 ac_includes_default="\
881 #ifdef HAVE_INTTYPES_H
882 # include <inttypes.h>
887 #ifdef HAVE_STRINGS_H
888 # include <strings.h>
890 #ifdef HAVE_SYS_TYPES_H
891 # include <sys/types.h>
893 #ifdef HAVE_SYS_STAT_H
894 # include <sys/stat.h>
901 ac_subst_vars='am__EXEEXT_FALSE
914 CURL_NETWORK_AND_TIME_LIBS
917 CFLAG_CURL_SYMBOL_HIDING
918 DOING_CURL_SYMBOL_HIDING_FALSE
919 DOING_CURL_SYMBOL_HIDING_TRUE
921 BUILD_LIBHOSTNAME_FALSE
922 BUILD_LIBHOSTNAME_TRUE
934 USE_NGTCP2_CRYPTO_WOLFSSL
935 USE_NGTCP2_CRYPTO_GNUTLS
936 USE_NGTCP2_CRYPTO_OPENSSL
941 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
942 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
943 CURL_LT_SHLIB_VERSIONED_FLAVOUR
980 HAVE_PROTO_BSDSOCKET_H
1003 USE_WIN32_SMALL_FILES
1004 USE_WIN32_LARGE_FILES
1005 DOING_NATIVE_WINDOWS_FALSE
1006 DOING_NATIVE_WINDOWS_TRUE
1007 BUILD_UNITTESTS_FALSE
1008 BUILD_UNITTESTS_TRUE
1012 USE_EXPLICIT_LIB_DEPS_FALSE
1013 USE_EXPLICIT_LIB_DEPS_TRUE
1015 CPPFLAG_CURL_STATICLIB
1016 USE_CPPFLAG_CURL_STATICLIB_FALSE
1017 USE_CPPFLAG_CURL_STATICLIB_TRUE
1018 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
1019 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
1020 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
1021 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
1022 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
1023 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1079 INSTALL_STRIP_PROGRAM
1111 AM_DEFAULT_VERBOSITY
1115 MAINTAINER_MODE_FALSE
1116 MAINTAINER_MODE_TRUE
1145 program_transform_name
1159 enable_option_checking
1160 enable_maintainer_mode
1167 enable_symbol_hiding
1171 enable_code_coverage
1172 enable_dependency_tracking
1174 with_secure_transport
1213 enable_libcurl_option
1221 with_gssapi_includes
1224 with_default_ssl_backend
1227 enable_openssl_auto_load_config
1238 enable_versioned_symbols
1246 with_zsh_functions_dir
1247 with_fish_functions_dir
1249 enable_threaded_resolver
1265 enable_progress_meter
1267 enable_get_easy_options
1273 ac_precious_vars='build_alias
1282 LT_SYS_LIBRARY_PATH'
1285 # Initialize some variables set by options.
1287 ac_init_version=false
1288 ac_unrecognized_opts=
1289 ac_unrecognized_sep=
1290 # The variables have the same names as the options, with
1291 # dashes changed to underlines.
1292 cache_file=/dev/null
1299 program_transform_name=s,x,x,
1307 # Installation directory options.
1308 # These are left unexpanded so users can "make install exec_prefix=/foo"
1309 # and all the variables that are supposed to be based on exec_prefix
1310 # by default will actually change.
1311 # Use braces instead of parens because sh, perl, etc. also accept them.
1312 # (The list follows the same order as the GNU Coding Standards.)
1313 bindir='${exec_prefix}/bin'
1314 sbindir='${exec_prefix}/sbin'
1315 libexecdir='${exec_prefix}/libexec'
1316 datarootdir='${prefix}/share'
1317 datadir='${datarootdir}'
1318 sysconfdir='${prefix}/etc'
1319 sharedstatedir='${prefix}/com'
1320 localstatedir='${prefix}/var'
1321 runstatedir='${localstatedir}/run'
1322 includedir='${prefix}/include'
1323 oldincludedir='/usr/include'
1324 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1325 infodir='${datarootdir}/info'
1330 libdir='${exec_prefix}/lib'
1331 localedir='${datarootdir}/locale'
1332 mandir='${datarootdir}/man'
1338 # If the previous option needs an argument, assign it.
1339 if test -n "$ac_prev"; then
1340 eval $ac_prev=\$ac_option
1346 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1351 case $ac_dashdash$ac_option in
1355 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1357 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1358 bindir=$ac_optarg ;;
1360 -build | --build | --buil | --bui | --bu)
1361 ac_prev=build_alias ;;
1362 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1363 build_alias=$ac_optarg ;;
1365 -cache-file | --cache-file | --cache-fil | --cache-fi \
1366 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1367 ac_prev=cache_file ;;
1368 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1369 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1370 cache_file=$ac_optarg ;;
1372 --config-cache | -C)
1373 cache_file=config.cache ;;
1375 -datadir | --datadir | --datadi | --datad)
1377 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1378 datadir=$ac_optarg ;;
1380 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1381 | --dataroo | --dataro | --datar)
1382 ac_prev=datarootdir ;;
1383 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1384 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1385 datarootdir=$ac_optarg ;;
1387 -disable-* | --disable-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1396 "enable_$ac_useropt"
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1401 eval enable_$ac_useropt=no ;;
1403 -docdir | --docdir | --docdi | --doc | --do)
1405 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1406 docdir=$ac_optarg ;;
1408 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1410 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1411 dvidir=$ac_optarg ;;
1413 -enable-* | --enable-*)
1414 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1415 # Reject names that are not valid shell variable names.
1416 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1417 as_fn_error $? "invalid feature name: \`$ac_useropt'"
1418 ac_useropt_orig=$ac_useropt
1419 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1420 case $ac_user_opts in
1422 "enable_$ac_useropt"
1424 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1425 ac_unrecognized_sep=', ';;
1427 eval enable_$ac_useropt=\$ac_optarg ;;
1429 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1430 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1431 | --exec | --exe | --ex)
1432 ac_prev=exec_prefix ;;
1433 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1434 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1435 | --exec=* | --exe=* | --ex=*)
1436 exec_prefix=$ac_optarg ;;
1438 -gas | --gas | --ga | --g)
1439 # Obsolete; use --with-gas.
1442 -help | --help | --hel | --he | -h)
1443 ac_init_help=long ;;
1444 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1445 ac_init_help=recursive ;;
1446 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1447 ac_init_help=short ;;
1449 -host | --host | --hos | --ho)
1450 ac_prev=host_alias ;;
1451 -host=* | --host=* | --hos=* | --ho=*)
1452 host_alias=$ac_optarg ;;
1454 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1456 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1458 htmldir=$ac_optarg ;;
1460 -includedir | --includedir | --includedi | --included | --include \
1461 | --includ | --inclu | --incl | --inc)
1462 ac_prev=includedir ;;
1463 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1464 | --includ=* | --inclu=* | --incl=* | --inc=*)
1465 includedir=$ac_optarg ;;
1467 -infodir | --infodir | --infodi | --infod | --info | --inf)
1469 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1470 infodir=$ac_optarg ;;
1472 -libdir | --libdir | --libdi | --libd)
1474 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1475 libdir=$ac_optarg ;;
1477 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1478 | --libexe | --libex | --libe)
1479 ac_prev=libexecdir ;;
1480 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1481 | --libexe=* | --libex=* | --libe=*)
1482 libexecdir=$ac_optarg ;;
1484 -localedir | --localedir | --localedi | --localed | --locale)
1485 ac_prev=localedir ;;
1486 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1487 localedir=$ac_optarg ;;
1489 -localstatedir | --localstatedir | --localstatedi | --localstated \
1490 | --localstate | --localstat | --localsta | --localst | --locals)
1491 ac_prev=localstatedir ;;
1492 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1493 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1494 localstatedir=$ac_optarg ;;
1496 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1498 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1499 mandir=$ac_optarg ;;
1501 -nfp | --nfp | --nf)
1502 # Obsolete; use --without-fp.
1505 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1506 | --no-cr | --no-c | -n)
1509 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1510 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1513 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1514 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1515 | --oldin | --oldi | --old | --ol | --o)
1516 ac_prev=oldincludedir ;;
1517 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1518 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1519 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1520 oldincludedir=$ac_optarg ;;
1522 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1524 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1525 prefix=$ac_optarg ;;
1527 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1528 | --program-pre | --program-pr | --program-p)
1529 ac_prev=program_prefix ;;
1530 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1531 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1532 program_prefix=$ac_optarg ;;
1534 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1535 | --program-suf | --program-su | --program-s)
1536 ac_prev=program_suffix ;;
1537 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1538 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1539 program_suffix=$ac_optarg ;;
1541 -program-transform-name | --program-transform-name \
1542 | --program-transform-nam | --program-transform-na \
1543 | --program-transform-n | --program-transform- \
1544 | --program-transform | --program-transfor \
1545 | --program-transfo | --program-transf \
1546 | --program-trans | --program-tran \
1547 | --progr-tra | --program-tr | --program-t)
1548 ac_prev=program_transform_name ;;
1549 -program-transform-name=* | --program-transform-name=* \
1550 | --program-transform-nam=* | --program-transform-na=* \
1551 | --program-transform-n=* | --program-transform-=* \
1552 | --program-transform=* | --program-transfor=* \
1553 | --program-transfo=* | --program-transf=* \
1554 | --program-trans=* | --program-tran=* \
1555 | --progr-tra=* | --program-tr=* | --program-t=*)
1556 program_transform_name=$ac_optarg ;;
1558 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1560 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1561 pdfdir=$ac_optarg ;;
1563 -psdir | --psdir | --psdi | --psd | --ps)
1565 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1568 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1569 | -silent | --silent | --silen | --sile | --sil)
1572 -runstatedir | --runstatedir | --runstatedi | --runstated \
1573 | --runstate | --runstat | --runsta | --runst | --runs \
1574 | --run | --ru | --r)
1575 ac_prev=runstatedir ;;
1576 -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1577 | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1578 | --run=* | --ru=* | --r=*)
1579 runstatedir=$ac_optarg ;;
1581 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1583 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1585 sbindir=$ac_optarg ;;
1587 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1588 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1589 | --sharedst | --shareds | --shared | --share | --shar \
1591 ac_prev=sharedstatedir ;;
1592 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1593 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1594 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1596 sharedstatedir=$ac_optarg ;;
1598 -site | --site | --sit)
1600 -site=* | --site=* | --sit=*)
1603 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1605 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1606 srcdir=$ac_optarg ;;
1608 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1609 | --syscon | --sysco | --sysc | --sys | --sy)
1610 ac_prev=sysconfdir ;;
1611 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1612 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1613 sysconfdir=$ac_optarg ;;
1615 -target | --target | --targe | --targ | --tar | --ta | --t)
1616 ac_prev=target_alias ;;
1617 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1618 target_alias=$ac_optarg ;;
1620 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1623 -version | --version | --versio | --versi | --vers | -V)
1624 ac_init_version=: ;;
1627 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1628 # Reject names that are not valid shell variable names.
1629 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1630 as_fn_error $? "invalid package name: \`$ac_useropt'"
1631 ac_useropt_orig=$ac_useropt
1632 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1633 case $ac_user_opts in
1637 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1638 ac_unrecognized_sep=', ';;
1640 eval with_$ac_useropt=\$ac_optarg ;;
1642 -without-* | --without-*)
1643 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1644 # Reject names that are not valid shell variable names.
1645 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1646 as_fn_error $? "invalid package name: \`$ac_useropt'"
1647 ac_useropt_orig=$ac_useropt
1648 ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1649 case $ac_user_opts in
1653 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1654 ac_unrecognized_sep=', ';;
1656 eval with_$ac_useropt=no ;;
1659 # Obsolete; use --with-x.
1662 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1663 | --x-incl | --x-inc | --x-in | --x-i)
1664 ac_prev=x_includes ;;
1665 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1666 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1667 x_includes=$ac_optarg ;;
1669 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1670 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1671 ac_prev=x_libraries ;;
1672 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1673 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1674 x_libraries=$ac_optarg ;;
1676 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1677 Try \`$0 --help' for more information"
1681 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1682 # Reject names that are not valid shell variable names.
1683 case $ac_envvar in #(
1684 '' | [0-9]* | *[!_$as_cr_alnum]* )
1685 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1687 eval $ac_envvar=\$ac_optarg
1688 export $ac_envvar ;;
1691 # FIXME: should be removed in autoconf 3.0.
1692 printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1693 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1694 printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1695 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1701 if test -n "$ac_prev"; then
1702 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1703 as_fn_error $? "missing argument to $ac_option"
1706 if test -n "$ac_unrecognized_opts"; then
1707 case $enable_option_checking in
1709 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1710 *) printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1714 # Check all directory arguments for consistency.
1715 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1716 datadir sysconfdir sharedstatedir localstatedir includedir \
1717 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1718 libdir localedir mandir runstatedir
1720 eval ac_val=\$$ac_var
1721 # Remove trailing slashes.
1724 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1725 eval $ac_var=\$ac_val;;
1727 # Be sure to have absolute directory names.
1729 [\\/$]* | ?:[\\/]* ) continue;;
1730 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1732 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1735 # There might be people who depend on the old broken behavior: `$host'
1736 # used to hold the argument of --host etc.
1737 # FIXME: To remove some day.
1740 target=$target_alias
1742 # FIXME: To remove some day.
1743 if test "x$host_alias" != x; then
1744 if test "x$build_alias" = x; then
1745 cross_compiling=maybe
1746 elif test "x$build_alias" != "x$host_alias"; then
1752 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1754 test "$silent" = yes && exec 6>/dev/null
1757 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1758 ac_ls_di=`ls -di .` &&
1759 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1760 as_fn_error $? "working directory cannot be determined"
1761 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1762 as_fn_error $? "pwd does not report name of working directory"
1765 # Find the source files, if location was not specified.
1766 if test -z "$srcdir"; then
1767 ac_srcdir_defaulted=yes
1768 # Try the directory containing this script, then the parent directory.
1769 ac_confdir=`$as_dirname -- "$as_myself" ||
1770 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1771 X"$as_myself" : 'X\(//\)[^/]' \| \
1772 X"$as_myself" : 'X\(//\)$' \| \
1773 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1774 printf "%s\n" X"$as_myself" |
1775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1793 if test ! -r "$srcdir/$ac_unique_file"; then
1797 ac_srcdir_defaulted=no
1799 if test ! -r "$srcdir/$ac_unique_file"; then
1800 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1801 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1803 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1805 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1807 # When building in place, set srcdir=.
1808 if test "$ac_abs_confdir" = "$ac_pwd"; then
1811 # Remove unnecessary trailing slashes from srcdir.
1812 # Double slashes in file names in object file debugging info
1813 # mess up M-x gdb in Emacs.
1815 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1817 for ac_var in $ac_precious_vars; do
1818 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1819 eval ac_env_${ac_var}_value=\$${ac_var}
1820 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1821 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1825 # Report the --help message.
1827 if test "$ac_init_help" = "long"; then
1828 # Omit some internal or obsolete options to make the list less imposing.
1829 # This message is too long to be a string in the A/UX 3.1 sh.
1831 \`configure' configures curl - to adapt to many kinds of systems.
1833 Usage: $0 [OPTION]... [VAR=VALUE]...
1835 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1836 VAR=VALUE. See below for descriptions of some of the useful variables.
1838 Defaults for the options are specified in brackets.
1841 -h, --help display this help and exit
1842 --help=short display options specific to this package
1843 --help=recursive display the short help of all the included packages
1844 -V, --version display version information and exit
1845 -q, --quiet, --silent do not print \`checking ...' messages
1846 --cache-file=FILE cache test results in FILE [disabled]
1847 -C, --config-cache alias for \`--cache-file=config.cache'
1848 -n, --no-create do not create output files
1849 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1851 Installation directories:
1852 --prefix=PREFIX install architecture-independent files in PREFIX
1853 [$ac_default_prefix]
1854 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1857 By default, \`make install' will install all the files in
1858 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1859 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1860 for instance \`--prefix=\$HOME'.
1862 For better control, use the options below.
1864 Fine tuning of the installation directories:
1865 --bindir=DIR user executables [EPREFIX/bin]
1866 --sbindir=DIR system admin executables [EPREFIX/sbin]
1867 --libexecdir=DIR program executables [EPREFIX/libexec]
1868 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1869 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1870 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1871 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1872 --libdir=DIR object code libraries [EPREFIX/lib]
1873 --includedir=DIR C header files [PREFIX/include]
1874 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1875 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1876 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1877 --infodir=DIR info documentation [DATAROOTDIR/info]
1878 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1879 --mandir=DIR man documentation [DATAROOTDIR/man]
1880 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1881 --htmldir=DIR html documentation [DOCDIR]
1882 --dvidir=DIR dvi documentation [DOCDIR]
1883 --pdfdir=DIR pdf documentation [DOCDIR]
1884 --psdir=DIR ps documentation [DOCDIR]
1890 --program-prefix=PREFIX prepend PREFIX to installed program names
1891 --program-suffix=SUFFIX append SUFFIX to installed program names
1892 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1895 --build=BUILD configure for building on BUILD [guessed]
1896 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1900 if test -n "$ac_init_help"; then
1901 case $ac_init_help in
1902 short | recursive ) echo "Configuration of curl -:";;
1907 --disable-option-checking ignore unrecognized --enable/--with options
1908 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1909 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1910 --enable-maintainer-mode
1911 enable make rules and dependencies not useful (and
1912 sometimes confusing) to the casual installer
1913 --enable-silent-rules less verbose build output (undo: "make V=1")
1914 --disable-silent-rules verbose build output (undo: "make V=0")
1915 --enable-debug Enable debug build options
1916 --disable-debug Disable debug build options
1917 --enable-optimize Enable compiler optimizations
1918 --disable-optimize Disable compiler optimizations
1919 --enable-warnings Enable strict compiler warnings
1920 --disable-warnings Disable strict compiler warnings
1921 --enable-werror Enable compiler warnings as errors
1922 --disable-werror Disable compiler warnings as errors
1923 --enable-curldebug Enable curl debug memory tracking
1924 --disable-curldebug Disable curl debug memory tracking
1925 --enable-symbol-hiding Enable hiding of library internal symbols
1926 --disable-symbol-hiding Disable hiding of library internal symbols
1927 --enable-ares[=PATH] Enable c-ares for DNS lookups
1928 --disable-ares Disable c-ares for DNS lookups
1929 --disable-rt disable dependency on -lrt
1930 --enable-ech Enable ECH support
1931 --disable-ech Disable ECH support
1932 --enable-code-coverage Provide code coverage
1933 --enable-dependency-tracking
1934 do not reject slow dependency extractors
1935 --disable-dependency-tracking
1936 speeds up one-time build
1937 --disable-largefile omit support for large files
1938 --enable-shared[=PKGS] build shared libraries [default=yes]
1939 --enable-static[=PKGS] build static libraries [default=yes]
1940 --enable-fast-install[=PKGS]
1941 optimize for fast installation [default=yes]
1942 --disable-libtool-lock avoid locking (might break parallel builds)
1943 --enable-http Enable HTTP support
1944 --disable-http Disable HTTP support
1945 --enable-ftp Enable FTP support
1946 --disable-ftp Disable FTP support
1947 --enable-file Enable FILE support
1948 --disable-file Disable FILE support
1949 --enable-ldap Enable LDAP support
1950 --disable-ldap Disable LDAP support
1951 --enable-ldaps Enable LDAPS support
1952 --disable-ldaps Disable LDAPS support
1953 --enable-rtsp Enable RTSP support
1954 --disable-rtsp Disable RTSP support
1955 --enable-proxy Enable proxy support
1956 --disable-proxy Disable proxy support
1957 --enable-dict Enable DICT support
1958 --disable-dict Disable DICT support
1959 --enable-telnet Enable TELNET support
1960 --disable-telnet Disable TELNET support
1961 --enable-tftp Enable TFTP support
1962 --disable-tftp Disable TFTP support
1963 --enable-pop3 Enable POP3 support
1964 --disable-pop3 Disable POP3 support
1965 --enable-imap Enable IMAP support
1966 --disable-imap Disable IMAP support
1967 --enable-smb Enable SMB/CIFS support
1968 --disable-smb Disable SMB/CIFS support
1969 --enable-smtp Enable SMTP support
1970 --disable-smtp Disable SMTP support
1971 --enable-gopher Enable Gopher support
1972 --disable-gopher Disable Gopher support
1973 --enable-mqtt Enable MQTT support
1974 --disable-mqtt Disable MQTT support
1975 --enable-manual Enable built-in manual
1976 --disable-manual Disable built-in manual
1977 --enable-libcurl-option Enable --libcurl C code generation support
1978 --disable-libcurl-option
1979 Disable --libcurl C code generation support
1980 --enable-libgcc use libgcc when linking
1981 --enable-ipv6 Enable IPv6 (with IPv4) support
1982 --disable-ipv6 Disable IPv6 support
1983 --enable-openssl-auto-load-config
1984 Enable automatic loading of OpenSSL configuration
1985 --disable-openssl-auto-load-config
1986 Disable automatic loading of OpenSSL configuration
1987 --enable-versioned-symbols
1988 Enable versioned symbols in shared library
1989 --disable-versioned-symbols
1990 Disable versioned symbols in shared library
1991 --enable-threaded-resolver
1992 Enable threaded resolver
1993 --disable-threaded-resolver
1994 Disable threaded resolver
1995 --enable-pthreads Enable POSIX threads (default for threaded resolver)
1996 --disable-pthreads Disable POSIX threads
1997 --enable-verbose Enable verbose strings
1998 --disable-verbose Disable verbose strings
1999 --enable-sspi Enable SSPI
2000 --disable-sspi Disable SSPI
2001 --enable-crypto-auth Enable cryptographic authentication
2002 --disable-crypto-auth Disable cryptographic authentication
2003 --enable-ntlm Enable NTLM support
2004 --disable-ntlm Disable NTLM support
2005 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
2006 helper, where FILE is ntlm_auth's absolute filename
2007 (default: /usr/bin/ntlm_auth)
2008 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
2010 --enable-tls-srp Enable TLS-SRP authentication
2011 --disable-tls-srp Disable TLS-SRP authentication
2012 --enable-unix-sockets Enable Unix domain sockets
2013 --disable-unix-sockets Disable Unix domain sockets
2014 --enable-cookies Enable cookies support
2015 --disable-cookies Disable cookies support
2016 --enable-socketpair Enable socketpair support
2017 --disable-socketpair Disable socketpair support
2018 --enable-http-auth Enable HTTP authentication support
2019 --disable-http-auth Disable HTTP authentication support
2020 --enable-doh Enable DoH support
2021 --disable-doh Disable DoH support
2022 --enable-mime Enable mime API support
2023 --disable-mime Disable mime API support
2024 --enable-dateparse Enable date parsing
2025 --disable-dateparse Disable date parsing
2026 --enable-netrc Enable netrc parsing
2027 --disable-netrc Disable netrc parsing
2028 --enable-progress-meter Enable progress-meter
2029 --disable-progress-meter
2030 Disable progress-meter
2031 --enable-dnsshuffle Enable DNS shuffling
2032 --disable-dnsshuffle Disable DNS shuffling
2033 --enable-get-easy-options
2034 Enable curl_easy_options
2035 --disable-get-easy-options
2036 Disable curl_easy_options
2037 --enable-alt-svc Enable alt-svc support
2038 --disable-alt-svc Disable alt-svc support
2039 --enable-headers-api Enable headers-api support
2040 --disable-headers-api Disable headers-api support
2041 --enable-hsts Enable HSTS support
2042 --disable-hsts Disable HSTS support
2043 --enable-websockets Enable WebSockets support
2044 --disable-websockets Disable WebSockets support
2047 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2048 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2049 --with-schannel enable Windows native SSL/TLS
2050 --with-secure-transport enable Apple OS native SSL/TLS
2051 --with-amissl enable Amiga native SSL/TLS (AmiSSL)
2052 --with-ssl=PATH old version of --with-openssl
2053 --without-ssl build without any TLS library
2054 --with-openssl=PATH Where to look for OpenSSL, PATH points to the SSL
2055 installation (default: /usr/local/ssl); when
2056 possible, set the PKG_CONFIG_PATH environment
2057 variable instead of using this option
2058 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
2060 --with-mbedtls=PATH where to look for mbedTLS, PATH points to the
2062 --with-wolfssl=PATH where to look for WolfSSL, PATH points to the
2063 installation root (default: system lib default)
2064 --with-bearssl=PATH where to look for BearSSL, PATH points to the
2066 --with-rustls=PATH where to look for rustls, PATH points to the
2068 --with-nss-deprecated confirm you realize NSS is going away
2069 --with-nss=PATH where to look for NSS, PATH points to the
2072 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2074 --with-aix-soname=aix|svr4|both
2075 shared library versioning (aka "SONAME") variant to
2076 provide on AIX, [default=aix].
2077 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2078 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the
2079 compiler's sysroot if not specified).
2080 --with-hyper=PATH Enable hyper usage
2081 --without-hyper Disable hyper usage
2082 --with-zlib=PATH search for zlib in PATH
2083 --without-zlib disable use of zlib
2084 --with-brotli=PATH Where to look for brotli, PATH points to the BROTLI
2085 installation; when possible, set the PKG_CONFIG_PATH
2086 environment variable instead of using this option
2087 --without-brotli disable BROTLI
2088 --with-zstd=PATH Where to look for libzstd, PATH points to the
2089 libzstd installation; when possible, set the
2090 PKG_CONFIG_PATH environment variable instead of
2092 --without-zstd disable libzstd
2093 --with-ldap-lib=libname Specify name of ldap lib file
2094 --with-lber-lib=libname Specify name of lber lib file
2095 --with-gssapi-includes=DIR
2096 Specify location of GSS-API headers
2097 --with-gssapi-libs=DIR Specify location of GSS-API libs
2098 --with-gssapi=DIR Where to look for GSS-API
2099 --with-default-ssl-backend=NAME
2100 Use NAME as default SSL backend
2101 --without-default-ssl-backend
2102 Use implicit default SSL backend
2103 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
2104 --with-random=FILE read randomness from FILE (default=/dev/urandom)
2105 --with-ca-bundle=FILE Path to a file containing CA certificates (example:
2107 --without-ca-bundle Don't use a default CA bundle
2108 --with-ca-path=DIRECTORY
2109 Path to a directory containing CA certificates
2110 stored individually, with their filenames in a hash
2111 format. This option can be used with the OpenSSL,
2112 GnuTLS and mbedTLS backends. Refer to OpenSSL
2113 c_rehash for details. (example: /etc/certificates)
2114 --without-ca-path Don't use a default CA path
2115 --with-ca-fallback Use the built in CA store of the SSL library
2116 --without-ca-fallback Don't use the built in CA store of the SSL library
2117 --without-libpsl disable support for libpsl cookie checking
2118 --without-libgsasl disable libgsasl support for SCRAM
2119 --with-libssh2=PATH Where to look for libssh2, PATH points to the
2120 libssh2 installation; when possible, set the
2121 PKG_CONFIG_PATH environment variable instead of
2123 --with-libssh2 enable libssh2
2124 --with-libssh=PATH Where to look for libssh, PATH points to the libssh
2125 installation; when possible, set the PKG_CONFIG_PATH
2126 environment variable instead of using this option
2127 --with-libssh enable libssh
2128 --with-wolfssh=PATH Where to look for wolfssh, PATH points to the
2129 wolfSSH installation; when possible, set the
2130 PKG_CONFIG_PATH environment variable instead of
2132 --with-wolfssh enable wolfssh
2133 --with-librtmp=PATH Where to look for librtmp, PATH points to the
2134 LIBRTMP installation; when possible, set the
2135 PKG_CONFIG_PATH environment variable instead of
2137 --without-librtmp disable LIBRTMP
2138 --with-winidn=PATH enable Windows native IDN
2139 --without-winidn disable Windows native IDN
2140 --with-libidn2=PATH Enable libidn2 usage
2141 --without-libidn2 Disable libidn2 usage
2142 --with-nghttp2=PATH Enable nghttp2 usage
2143 --without-nghttp2 Disable nghttp2 usage
2144 --with-ngtcp2=PATH Enable ngtcp2 usage
2145 --without-ngtcp2 Disable ngtcp2 usage
2146 --with-nghttp3=PATH Enable nghttp3 usage
2147 --without-nghttp3 Disable nghttp3 usage
2148 --with-quiche=PATH Enable quiche usage
2149 --without-quiche Disable quiche usage
2150 --with-msh3=PATH Enable msh3 usage
2151 --without-msh3 Disable msh3 usage
2152 --with-zsh-functions-dir=PATH
2153 Install zsh completions to PATH
2154 --without-zsh-functions-dir
2155 Do not install zsh completions
2156 --with-fish-functions-dir=PATH
2157 Install fish completions to PATH
2158 --without-fish-functions-dir
2159 Do not install fish completions
2160 --with-n64-deprecated confirm you realize support for systems without 64
2161 bit data types is going away
2163 Some influential environment variables:
2164 CC C compiler command
2165 CFLAGS C compiler flags
2166 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2167 nonstandard directory <lib dir>
2168 LIBS libraries to pass to the linker, e.g. -l<library>
2169 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2170 you have headers in a nonstandard directory <include dir>
2173 User-defined run-time library search path.
2175 Use these variables to override the choices made by `configure' or to help
2176 it to find libraries and programs with nonstandard names/locations.
2178 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>.
2183 if test "$ac_init_help" = "recursive"; then
2184 # If there are subdirs, report their specific --help.
2185 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2186 test -d "$ac_dir" ||
2187 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2192 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2194 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
2195 # A ".." for each directory in $ac_dir_suffix.
2196 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2197 case $ac_top_builddir_sub in
2198 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2199 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2202 ac_abs_top_builddir=$ac_pwd
2203 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2204 # for backward compatibility:
2205 ac_top_builddir=$ac_top_build_prefix
2208 .) # We are building in place.
2210 ac_top_srcdir=$ac_top_builddir_sub
2211 ac_abs_top_srcdir=$ac_pwd ;;
2212 [\\/]* | ?:[\\/]* ) # Absolute name.
2213 ac_srcdir=$srcdir$ac_dir_suffix;
2214 ac_top_srcdir=$srcdir
2215 ac_abs_top_srcdir=$srcdir ;;
2217 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2218 ac_top_srcdir=$ac_top_build_prefix$srcdir
2219 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2221 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2223 cd "$ac_dir" || { ac_status=$?; continue; }
2224 # Check for configure.gnu first; this name is used for a wrapper for
2225 # Metaconfig's "Configure" on case-insensitive file systems.
2226 if test -f "$ac_srcdir/configure.gnu"; then
2228 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2229 elif test -f "$ac_srcdir/configure"; then
2231 $SHELL "$ac_srcdir/configure" --help=recursive
2233 printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2235 cd "$ac_pwd" || { ac_status=$?; break; }
2239 test -n "$ac_init_help" && exit $ac_status
2240 if $ac_init_version; then
2243 generated by GNU Autoconf 2.71
2245 Copyright (C) 2021 Free Software Foundation, Inc.
2246 This configure script is free software; the Free Software Foundation
2247 gives unlimited permission to copy, distribute and modify it.
2249 Copyright (c) 1998 - 2022 Daniel Stenberg, <daniel@haxx.se>
2250 This configure script may be copied, distributed and modified under the
2251 terms of the curl license; see COPYING for more details
2256 ## ------------------------ ##
2257 ## Autoconf initialization. ##
2258 ## ------------------------ ##
2260 # ac_fn_c_try_compile LINENO
2261 # --------------------------
2262 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2263 ac_fn_c_try_compile ()
2265 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2266 rm -f conftest.$ac_objext conftest.beam
2267 if { { ac_try="$ac_compile"
2269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2270 *) ac_try_echo=$ac_try;;
2272 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2273 printf "%s\n" "$ac_try_echo"; } >&5
2274 (eval "$ac_compile") 2>conftest.err
2276 if test -s conftest.err; then
2277 grep -v '^ *+' conftest.err >conftest.er1
2278 cat conftest.er1 >&5
2279 mv -f conftest.er1 conftest.err
2281 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2282 test $ac_status = 0; } && {
2283 test -z "$ac_c_werror_flag" ||
2284 test ! -s conftest.err
2285 } && test -s conftest.$ac_objext
2289 printf "%s\n" "$as_me: failed program was:" >&5
2290 sed 's/^/| /' conftest.$ac_ext >&5
2294 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2295 as_fn_set_status $ac_retval
2297 } # ac_fn_c_try_compile
2299 # ac_fn_c_try_cpp LINENO
2300 # ----------------------
2301 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2304 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2305 if { { ac_try="$ac_cpp conftest.$ac_ext"
2307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2308 *) ac_try_echo=$ac_try;;
2310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2311 printf "%s\n" "$ac_try_echo"; } >&5
2312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2314 if test -s conftest.err; then
2315 grep -v '^ *+' conftest.err >conftest.er1
2316 cat conftest.er1 >&5
2317 mv -f conftest.er1 conftest.err
2319 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2320 test $ac_status = 0; } > conftest.i && {
2321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2322 test ! -s conftest.err
2327 printf "%s\n" "$as_me: failed program was:" >&5
2328 sed 's/^/| /' conftest.$ac_ext >&5
2332 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2333 as_fn_set_status $ac_retval
2337 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2338 # -------------------------------------------------------
2339 # Tests whether HEADER exists and can be compiled using the include files in
2340 # INCLUDES, setting the cache variable VAR accordingly.
2341 ac_fn_c_check_header_compile ()
2343 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2345 printf %s "checking for $2... " >&6; }
2346 if eval test \${$3+y}
2348 printf %s "(cached) " >&6
2350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2351 /* end confdefs.h. */
2355 if ac_fn_c_try_compile "$LINENO"
2361 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2365 printf "%s\n" "$ac_res" >&6; }
2366 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2368 } # ac_fn_c_check_header_compile
2370 # ac_fn_c_try_link LINENO
2371 # -----------------------
2372 # Try to link conftest.$ac_ext, and return whether this succeeded.
2375 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2376 rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
2377 if { { ac_try="$ac_link"
2379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2380 *) ac_try_echo=$ac_try;;
2382 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2383 printf "%s\n" "$ac_try_echo"; } >&5
2384 (eval "$ac_link") 2>conftest.err
2386 if test -s conftest.err; then
2387 grep -v '^ *+' conftest.err >conftest.er1
2388 cat conftest.er1 >&5
2389 mv -f conftest.er1 conftest.err
2391 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2392 test $ac_status = 0; } && {
2393 test -z "$ac_c_werror_flag" ||
2394 test ! -s conftest.err
2395 } && test -s conftest$ac_exeext && {
2396 test "$cross_compiling" = yes ||
2397 test -x conftest$ac_exeext
2402 printf "%s\n" "$as_me: failed program was:" >&5
2403 sed 's/^/| /' conftest.$ac_ext >&5
2407 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2408 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2409 # interfere with the next link command; also delete a directory that is
2410 # left behind by Apple's compiler. We do this before executing the actions.
2411 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2412 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2413 as_fn_set_status $ac_retval
2415 } # ac_fn_c_try_link
2417 # ac_fn_c_check_func LINENO FUNC VAR
2418 # ----------------------------------
2419 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2420 ac_fn_c_check_func ()
2422 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2424 printf %s "checking for $2... " >&6; }
2425 if eval test \${$3+y}
2427 printf %s "(cached) " >&6
2429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2430 /* end confdefs.h. */
2432 #define $2 innocuous_$2
2434 # include <limits.h>
2436 # include <assert.h>
2443 #if defined __stub_$2 || defined __stub___$2
2454 if ac_fn_c_try_link "$LINENO"
2460 rm -f core conftest.err conftest.$ac_objext conftest.beam \
2461 conftest$ac_exeext conftest.$ac_ext
2464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465 printf "%s\n" "$ac_res" >&6; }
2466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2468 } # ac_fn_c_check_func
2470 # ac_fn_c_try_run LINENO
2471 # ----------------------
2472 # Try to run conftest.$ac_ext, and return whether this succeeded. Assumes that
2473 # executables *can* be run.
2476 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2477 if { { ac_try="$ac_link"
2479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2480 *) ac_try_echo=$ac_try;;
2482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2483 printf "%s\n" "$ac_try_echo"; } >&5
2484 (eval "$ac_link") 2>&5
2486 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2487 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2488 { { case "(($ac_try" in
2489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2490 *) ac_try_echo=$ac_try;;
2492 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2493 printf "%s\n" "$ac_try_echo"; } >&5
2494 (eval "$ac_try") 2>&5
2496 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2497 test $ac_status = 0; }; }
2501 printf "%s\n" "$as_me: program exited with status $ac_status" >&5
2502 printf "%s\n" "$as_me: failed program was:" >&5
2503 sed 's/^/| /' conftest.$ac_ext >&5
2505 ac_retval=$ac_status
2507 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2508 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2509 as_fn_set_status $ac_retval
2513 # ac_fn_c_check_type LINENO SIZEOF_LONG_LONG VAR INCLUDES
2514 # -------------------------------------------------------
2515 # Tests whether TYPE exists after having included INCLUDES, setting cache
2516 # variable VAR accordingly.
2517 ac_fn_c_check_type ()
2519 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2521 printf %s "checking for $2... " >&6; }
2522 if eval test \${$3+y}
2524 printf %s "(cached) " >&6
2527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2528 /* end confdefs.h. */
2538 if ac_fn_c_try_compile "$LINENO"
2540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2541 /* end confdefs.h. */
2551 if ac_fn_c_try_compile "$LINENO"
2557 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2559 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2563 printf "%s\n" "$ac_res" >&6; }
2564 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2566 } # ac_fn_c_check_type
2568 # ac_fn_check_decl LINENO SYMBOL VAR INCLUDES EXTRA-OPTIONS FLAG-VAR
2569 # ------------------------------------------------------------------
2570 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2571 # accordingly. Pass EXTRA-OPTIONS to the compiler, using FLAG-VAR.
2574 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2575 as_decl_name=`echo $2|sed 's/ *(.*//'`
2576 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2577 printf %s "checking whether $as_decl_name is declared... " >&6; }
2578 if eval test \${$3+y}
2580 printf %s "(cached) " >&6
2582 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2583 eval ac_save_FLAGS=\$$6
2584 as_fn_append $6 " $5"
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2590 #ifndef $as_decl_name
2592 (void) $as_decl_use;
2594 (void) $as_decl_name;
2602 if ac_fn_c_try_compile "$LINENO"
2608 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2609 eval $6=\$ac_save_FLAGS
2613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2614 printf "%s\n" "$ac_res" >&6; }
2615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2617 } # ac_fn_check_decl
2619 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2620 # ----------------------------------------------------
2621 # Tries to find if the field MEMBER exists in type AGGR, after including
2622 # INCLUDES, setting cache variable VAR accordingly.
2623 ac_fn_c_check_member ()
2625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2627 printf %s "checking for $2.$3... " >&6; }
2628 if eval test \${$4+y}
2630 printf %s "(cached) " >&6
2632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2633 /* end confdefs.h. */
2644 if ac_fn_c_try_compile "$LINENO"
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649 /* end confdefs.h. */
2654 if (sizeof ac_aggr.$3)
2660 if ac_fn_c_try_compile "$LINENO"
2666 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2668 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
2671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2672 printf "%s\n" "$ac_res" >&6; }
2673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2675 } # ac_fn_c_check_member
2676 ac_configure_args_raw=
2681 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2683 as_fn_append ac_configure_args_raw " '$ac_arg'"
2686 case $ac_configure_args_raw in
2690 ac_unsafe_z='|&;<>()$`\\"*?[ '' ' # This string ends in space, tab.
2691 ac_unsafe_a="$ac_unsafe_z#~"
2692 ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
2693 ac_configure_args_raw=` printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
2696 cat >config.log <<_ACEOF
2697 This file contains any messages produced by compilers while
2698 running configure, to aid debugging if configure makes a mistake.
2700 It was created by curl $as_me -, which was
2701 generated by GNU Autoconf 2.71. Invocation command line was
2703 $ $0$ac_configure_args_raw
2713 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2714 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2715 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2716 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2717 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2719 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2720 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2722 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2723 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2724 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2725 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2726 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2727 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2728 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2736 case $as_dir in #(((
2739 *) as_dir=$as_dir/ ;;
2741 printf "%s\n" "PATH: $as_dir"
2757 # Keep a trace of the command line.
2758 # Strip out --no-create and --no-recursion so they do not pile up.
2759 # Strip out --silent because we don't want to record it for future runs.
2760 # Also quote any args containing shell meta-characters.
2761 # Make two passes to allow for proper duplicate-argument suppression.
2765 ac_must_keep_next=false
2771 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2773 | -silent | --silent | --silen | --sile | --sil)
2776 ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2779 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2781 as_fn_append ac_configure_args1 " '$ac_arg'"
2782 if test $ac_must_keep_next = true; then
2783 ac_must_keep_next=false # Got value, back to normal.
2786 *=* | --config-cache | -C | -disable-* | --disable-* \
2787 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2788 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2789 | -with-* | --with-* | -without-* | --without-* | --x)
2790 case "$ac_configure_args0 " in
2791 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2794 -* ) ac_must_keep_next=true ;;
2797 as_fn_append ac_configure_args " '$ac_arg'"
2802 { ac_configure_args0=; unset ac_configure_args0;}
2803 { ac_configure_args1=; unset ac_configure_args1;}
2805 # When interrupted or exit'd, cleanup temporary files, and complete
2806 # config.log. We remove comments because anyway the quotes in there
2807 # would cause problems or look ugly.
2808 # WARNING: Use '\'' to represent an apostrophe within the trap.
2809 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2810 trap 'exit_status=$?
2813 # Save into config.log some information that might help in debugging.
2817 printf "%s\n" "## ---------------- ##
2818 ## Cache variables. ##
2819 ## ---------------- ##"
2821 # The following way of writing the cache mishandles newlines in values,
2823 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2824 eval ac_val=\$$ac_var
2828 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2829 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2832 _ | IFS | as_nl) ;; #(
2833 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2834 *) { eval $ac_var=; unset $ac_var;} ;;
2839 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2840 *${as_nl}ac_space=\ *)
2842 "s/'\''/'\''\\\\'\'''\''/g;
2843 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2846 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2853 printf "%s\n" "## ----------------- ##
2854 ## Output variables. ##
2855 ## ----------------- ##"
2857 for ac_var in $ac_subst_vars
2859 eval ac_val=\$$ac_var
2861 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2863 printf "%s\n" "$ac_var='\''$ac_val'\''"
2867 if test -n "$ac_subst_files"; then
2868 printf "%s\n" "## ------------------- ##
2869 ## File substitutions. ##
2870 ## ------------------- ##"
2872 for ac_var in $ac_subst_files
2874 eval ac_val=\$$ac_var
2876 *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2878 printf "%s\n" "$ac_var='\''$ac_val'\''"
2883 if test -s confdefs.h; then
2884 printf "%s\n" "## ----------- ##
2891 test "$ac_signal" != 0 &&
2892 printf "%s\n" "$as_me: caught signal $ac_signal"
2893 printf "%s\n" "$as_me: exit $exit_status"
2895 rm -f core *.core core.conftest.* &&
2896 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2899 for ac_signal in 1 2 13 15; do
2900 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2904 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2905 rm -f -r conftest* confdefs.h
2907 printf "%s\n" "/* confdefs.h */" > confdefs.h
2909 # Predefined preprocessor variables.
2911 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2913 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2915 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2917 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2919 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2921 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2924 # Let the site file select an alternate cache file if it wants to.
2925 # Prefer an explicitly selected file to automatically selected ones.
2926 if test -n "$CONFIG_SITE"; then
2927 ac_site_files="$CONFIG_SITE"
2928 elif test "x$prefix" != xNONE; then
2929 ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2931 ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2934 for ac_site_file in $ac_site_files
2936 case $ac_site_file in #(
2940 ac_site_file=./$ac_site_file ;;
2942 if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2944 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2945 sed 's/^/| /' "$ac_site_file" >&5
2947 || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2948 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2949 as_fn_error $? "failed to load site script $ac_site_file
2950 See \`config.log' for more details" "$LINENO" 5; }
2954 if test -r "$cache_file"; then
2955 # Some versions of bash will fail to source /dev/null (special files
2956 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2957 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2959 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2962 *) . "./$cache_file";;
2966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2967 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2971 # Test code for whether the C compiler supports C89 (global declarations)
2972 ac_c_conftest_c89_globals='
2973 /* Does the compiler advertise C89 conformance?
2974 Do not test the value of __STDC__, because some compilers set it to 0
2975 while being otherwise adequately conformant. */
2976 #if !defined __STDC__
2977 # error "Compiler does not advertise C89 conformance"
2983 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh. */
2984 struct buf { int x; };
2985 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2986 static char *e (p, i)
2992 static char *f (char * (*g) (char **, int), char **p, ...)
2997 s = g (p, va_arg (v,int));
3002 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3003 function prototypes and stuff, but not \xHH hex character constants.
3004 These do not provoke an error unfortunately, instead are silently treated
3005 as an "x". The following induces an error, until -std is added to get
3006 proper ANSI mode. Curiously \x00 != x always comes out true, for an
3007 array size at least. It is necessary to write \x00 == 0 to get something
3008 that is true only with -std. */
3009 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
3011 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3012 inside strings and character constants. */
3013 #define FOO(x) '\''x'\''
3014 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
3016 int test (int i, double x);
3017 struct s1 {int (*f) (int a);};
3018 struct s2 {int (*f) (double a);};
3019 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
3022 # Test code for whether the C compiler supports C89 (body of main).
3023 ac_c_conftest_c89_main='
3024 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
3027 # Test code for whether the C compiler supports C99 (global declarations)
3028 ac_c_conftest_c99_globals='
3029 // Does the compiler advertise C99 conformance?
3030 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
3031 # error "Compiler does not advertise C99 conformance"
3034 #include <stdbool.h>
3035 extern int puts (const char *);
3036 extern int printf (const char *, ...);
3037 extern int dprintf (int, const char *, ...);
3038 extern void *malloc (size_t);
3040 // Check varargs macros. These examples are taken from C99 6.10.3.5.
3041 // dprintf is used instead of fprintf to avoid needing to declare
3043 #define debug(...) dprintf (2, __VA_ARGS__)
3044 #define showlist(...) puts (#__VA_ARGS__)
3045 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
3047 test_varargs_macros (void)
3052 debug ("X = %d\n", x);
3053 showlist (The first, second, and third items.);
3054 report (x>y, "x is %d but y is %d", x, y);
3057 // Check long long types.
3058 #define BIG64 18446744073709551615ull
3059 #define BIG32 4294967295ul
3060 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
3062 #error "your preprocessor is broken"
3066 #error "your preprocessor is broken"
3068 static long long int bignum = -9223372036854775807LL;
3069 static unsigned long long int ubignum = BIG64;
3071 struct incomplete_array
3079 const wchar_t *name;
3083 typedef const char *ccp;
3086 test_restrict (ccp restrict text)
3088 // See if C++-style comments work.
3089 // Iterate through items via the restricted pointer.
3090 // Also check for declarations in for loops.
3091 for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
3096 // Check varargs and va_copy.
3098 test_varargs (const char *format, ...)
3101 va_start (args, format);
3103 va_copy (args_copy, args);
3105 const char *str = "";
3113 case '\''s'\'': // string
3114 str = va_arg (args_copy, const char *);
3116 case '\''d'\'': // int
3117 number = va_arg (args_copy, int);
3119 case '\''f'\'': // float
3120 fnumber = va_arg (args_copy, double);
3129 return *str && number && fnumber;
3133 # Test code for whether the C compiler supports C99 (body of main).
3134 ac_c_conftest_c99_main='
3136 _Bool success = false;
3137 success |= (argc != 0);
3140 if (test_restrict ("String literal") == 0)
3142 char *restrict newvar = "Another string";
3145 success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
3146 test_varargs_macros ();
3148 // Check flexible array members.
3149 struct incomplete_array *ia =
3150 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
3152 for (int i = 0; i < ia->datasize; ++i)
3153 ia->data[i] = i * 1.234;
3155 // Check named initializers.
3156 struct named_init ni = {
3158 .name = L"Test wide string",
3159 .average = 543.34343,
3164 int dynamic_array[ni.number];
3165 dynamic_array[0] = argv[0][0];
3166 dynamic_array[ni.number - 1] = 543;
3168 // work around unused variable warnings
3169 ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
3170 || dynamic_array[ni.number - 1] != 543);
3173 # Test code for whether the C compiler supports C11 (global declarations)
3174 ac_c_conftest_c11_globals='
3175 // Does the compiler advertise C11 conformance?
3176 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
3177 # error "Compiler does not advertise C11 conformance"
3181 char _Alignas (double) aligned_as_double;
3182 char _Alignas (0) no_special_alignment;
3183 extern char aligned_as_int;
3184 char _Alignas (0) _Alignas (int) aligned_as_int;
3189 int_alignment = _Alignof (int),
3190 int_array_alignment = _Alignof (int[100]),
3191 char_alignment = _Alignof (char)
3193 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
3196 int _Noreturn does_not_return (void) { for (;;) continue; }
3198 // Check _Static_assert.
3199 struct test_static_assert
3202 _Static_assert (sizeof (int) <= sizeof (long int),
3203 "_Static_assert does not work in struct");
3207 // Check UTF-8 literals.
3208 #define u8 syntax error!
3209 char const utf8_literal[] = u8"happens to be ASCII" "another string";
3211 // Check duplicate typedefs.
3212 typedef long *long_ptr;
3213 typedef long int *long_ptr;
3214 typedef long_ptr long_ptr;
3216 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
3220 struct { int i; int j; };
3221 struct { int k; long int l; } w;
3227 # Test code for whether the C compiler supports C11 (body of main).
3228 ac_c_conftest_c11_main='
3229 _Static_assert ((offsetof (struct anonymous, i)
3230 == offsetof (struct anonymous, w.k)),
3231 "Anonymous union alignment botch");
3237 # Test code for whether the C compiler supports C11 (complete).
3238 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
3239 ${ac_c_conftest_c99_globals}
3240 ${ac_c_conftest_c11_globals}
3243 main (int argc, char **argv)
3246 ${ac_c_conftest_c89_main}
3247 ${ac_c_conftest_c99_main}
3248 ${ac_c_conftest_c11_main}
3253 # Test code for whether the C compiler supports C99 (complete).
3254 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
3255 ${ac_c_conftest_c99_globals}
3258 main (int argc, char **argv)
3261 ${ac_c_conftest_c89_main}
3262 ${ac_c_conftest_c99_main}
3267 # Test code for whether the C compiler supports C89 (complete).
3268 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
3271 main (int argc, char **argv)
3274 ${ac_c_conftest_c89_main}
3279 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
3280 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
3281 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
3282 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
3283 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
3284 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
3285 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
3286 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
3287 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
3289 # Auxiliary files required by this configure script.
3290 ac_aux_files="ltmain.sh config.guess config.sub missing compile install-sh"
3292 # Locations in which to look for auxiliary files.
3293 ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.."
3295 # Search for a directory containing all of the required auxiliary files,
3296 # $ac_aux_files, from the $PATH-style list $ac_aux_dir_candidates.
3297 # If we don't find one directory that contains all the files we need,
3298 # we report the set of missing files from the *first* directory in
3299 # $ac_aux_dir_candidates and give up.
3300 ac_missing_aux_files=""
3301 ac_first_candidate=:
3302 printf "%s\n" "$as_me:${as_lineno-$LINENO}: looking for aux files: $ac_aux_files" >&5
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3305 for as_dir in $ac_aux_dir_candidates
3308 case $as_dir in #(((
3311 *) as_dir=$as_dir/ ;;
3315 printf "%s\n" "$as_me:${as_lineno-$LINENO}: trying $as_dir" >&5
3316 ac_aux_dir_found=yes
3318 for ac_aux in $ac_aux_files
3320 # As a special case, if "install-sh" is required, that requirement
3321 # can be satisfied by any of "install-sh", "install.sh", or "shtool",
3322 # and $ac_install_sh is set appropriately for whichever one is found.
3323 if test x"$ac_aux" = x"install-sh"
3325 if test -f "${as_dir}install-sh"; then
3326 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install-sh found" >&5
3327 ac_install_sh="${as_dir}install-sh -c"
3328 elif test -f "${as_dir}install.sh"; then
3329 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}install.sh found" >&5
3330 ac_install_sh="${as_dir}install.sh -c"
3331 elif test -f "${as_dir}shtool"; then
3332 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}shtool found" >&5
3333 ac_install_sh="${as_dir}shtool install -c"
3336 if $ac_first_candidate; then
3337 ac_missing_aux_files="${ac_missing_aux_files} install-sh"
3343 if test -f "${as_dir}${ac_aux}"; then
3344 printf "%s\n" "$as_me:${as_lineno-$LINENO}: ${as_dir}${ac_aux} found" >&5
3347 if $ac_first_candidate; then
3348 ac_missing_aux_files="${ac_missing_aux_files} ${ac_aux}"
3355 if test "$ac_aux_dir_found" = yes; then
3356 ac_aux_dir="$as_dir"
3359 ac_first_candidate=false
3368 as_fn_error $? "cannot find required auxiliary files:$ac_missing_aux_files" "$LINENO" 5
3372 # These three variables are undocumented and unsupported,
3373 # and are intended to be withdrawn in a future Autoconf release.
3374 # They can cause serious problems if a builder's source tree is in a directory
3375 # whose full name contains unusual characters.
3376 if test -f "${ac_aux_dir}config.guess"; then
3377 ac_config_guess="$SHELL ${ac_aux_dir}config.guess"
3379 if test -f "${ac_aux_dir}config.sub"; then
3380 ac_config_sub="$SHELL ${ac_aux_dir}config.sub"
3382 if test -f "$ac_aux_dir/configure"; then
3383 ac_configure="$SHELL ${ac_aux_dir}configure"
3386 # Check that the precious variables saved in the cache have kept the same
3388 ac_cache_corrupted=false
3389 for ac_var in $ac_precious_vars; do
3390 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3391 eval ac_new_set=\$ac_env_${ac_var}_set
3392 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3393 eval ac_new_val=\$ac_env_${ac_var}_value
3394 case $ac_old_set,$ac_new_set in
3396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3397 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3398 ac_cache_corrupted=: ;;
3400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3401 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3402 ac_cache_corrupted=: ;;
3405 if test "x$ac_old_val" != "x$ac_new_val"; then
3406 # differences in whitespace do not lead to failure.
3407 ac_old_val_w=`echo x $ac_old_val`
3408 ac_new_val_w=`echo x $ac_new_val`
3409 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3411 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3412 ac_cache_corrupted=:
3414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3415 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3416 eval $ac_var=\$ac_old_val
3418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3419 printf "%s\n" "$as_me: former value: \`$ac_old_val'" >&2;}
3420 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3421 printf "%s\n" "$as_me: current value: \`$ac_new_val'" >&2;}
3424 # Pass precious variables to config.status.
3425 if test "$ac_new_set" = set; then
3427 *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3428 *) ac_arg=$ac_var=$ac_new_val ;;
3430 case " $ac_configure_args " in
3431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3432 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3436 if $ac_cache_corrupted; then
3437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3438 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3440 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
3441 as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
3442 and start over" "$LINENO" 5
3444 ## -------------------- ##
3445 ## Main body of script. ##
3446 ## -------------------- ##
3449 ac_cpp='$CPP $CPPFLAGS'
3450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 # using curl-override.m4
3466 ac_config_headers="$ac_config_headers lib/curl_config.h"
3470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3471 printf %s "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3472 # Check whether --enable-maintainer-mode was given.
3473 if test ${enable_maintainer_mode+y}
3475 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3477 USE_MAINTAINER_MODE=no
3480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3481 printf "%s\n" "$USE_MAINTAINER_MODE" >&6; }
3482 if test $USE_MAINTAINER_MODE = yes; then
3483 MAINTAINER_MODE_TRUE=
3484 MAINTAINER_MODE_FALSE='#'
3486 MAINTAINER_MODE_TRUE='#'
3487 MAINTAINER_MODE_FALSE=
3490 MAINT=$MAINTAINER_MODE_TRUE
3493 # Check whether --enable-silent-rules was given.
3494 if test ${enable_silent_rules+y}
3496 enableval=$enable_silent_rules;
3499 case $enable_silent_rules in # (((
3500 yes) AM_DEFAULT_VERBOSITY=0;;
3501 no) AM_DEFAULT_VERBOSITY=1;;
3502 *) AM_DEFAULT_VERBOSITY=0;;
3504 am_make=${MAKE-make}
3505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3506 printf %s "checking whether $am_make supports nested variables... " >&6; }
3507 if test ${am_cv_make_support_nested_variables+y}
3509 printf %s "(cached) " >&6
3511 if printf "%s\n" 'TRUE=$(BAR$(V))
3517 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3518 am_cv_make_support_nested_variables=yes
3520 am_cv_make_support_nested_variables=no
3523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3524 printf "%s\n" "$am_cv_make_support_nested_variables" >&6; }
3525 if test $am_cv_make_support_nested_variables = yes; then
3527 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3529 AM_V=$AM_DEFAULT_VERBOSITY
3530 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3537 printf %s "checking whether to enable debug build options... " >&6; }
3538 OPT_DEBUG_BUILD="default"
3539 # Check whether --enable-debug was given.
3540 if test ${enable_debug+y}
3542 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3545 case "$OPT_DEBUG_BUILD" in
3555 printf "%s\n" "#define DEBUGBUILD 1" >>confdefs.h
3559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3560 printf "%s\n" "$want_debug" >&6; }
3563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3564 printf %s "checking whether to enable compiler optimizer... " >&6; }
3565 OPT_COMPILER_OPTIMIZE="default"
3566 # Check whether --enable-optimize was given.
3567 if test ${enable_optimize+y}
3569 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3572 case "$OPT_COMPILER_OPTIMIZE" in
3575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 printf "%s\n" "no" >&6; }
3579 if test "$want_debug" = "yes"; then
3580 want_optimize="assume_no"
3581 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3582 printf "%s\n" "(assumed) no" >&6; }
3584 want_optimize="assume_yes"
3585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3586 printf "%s\n" "(assumed) yes" >&6; }
3591 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3592 printf "%s\n" "yes" >&6; }
3597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3598 printf %s "checking whether to enable strict compiler warnings... " >&6; }
3599 OPT_COMPILER_WARNINGS="default"
3600 # Check whether --enable-warnings was given.
3601 if test ${enable_warnings+y}
3603 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3606 case "$OPT_COMPILER_WARNINGS" in
3611 want_warnings="$want_debug"
3617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3618 printf "%s\n" "$want_warnings" >&6; }
3621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3622 printf %s "checking whether to enable compiler warnings as errors... " >&6; }
3623 OPT_COMPILER_WERROR="default"
3624 # Check whether --enable-werror was given.
3625 if test ${enable_werror+y}
3627 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3630 case "$OPT_COMPILER_WERROR" in
3641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3642 printf "%s\n" "$want_werror" >&6; }
3645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3646 printf %s "checking whether to enable curl debug memory tracking... " >&6; }
3647 OPT_CURLDEBUG_BUILD="default"
3648 # Check whether --enable-curldebug was given.
3649 if test ${enable_curldebug+y}
3651 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3654 case "$OPT_CURLDEBUG_BUILD" in
3657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3658 printf "%s\n" "no" >&6; }
3661 if test "$want_debug" = "yes"; then
3662 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3663 printf "%s\n" "(assumed) yes" >&6; }
3665 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3669 printf "%s\n" "no" >&6; }
3671 want_curldebug_assumed="yes"
3672 want_curldebug="$want_debug"
3675 want_curldebug="yes"
3677 printf "%s\n" "#define CURLDEBUG 1" >>confdefs.h
3679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3680 printf "%s\n" "yes" >&6; }
3685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3686 printf %s "checking whether to enable hiding of library internal symbols... " >&6; }
3687 OPT_SYMBOL_HIDING="default"
3688 # Check whether --enable-symbol-hiding was given.
3689 if test ${enable_symbol_hiding+y}
3691 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3694 case "$OPT_SYMBOL_HIDING" in
3696 want_symbol_hiding="no"
3697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3698 printf "%s\n" "no" >&6; }
3701 want_symbol_hiding="yes"
3702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703 printf "%s\n" "yes" >&6; }
3706 want_symbol_hiding="yes"
3707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3708 printf "%s\n" "yes" >&6; }
3713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3714 printf %s "checking whether to enable c-ares for DNS lookups... " >&6; }
3716 # Check whether --enable-ares was given.
3717 if test ${enable_ares+y}
3719 enableval=$enable_ares; OPT_ARES=$enableval
3731 if test -n "$enableval" && test "$enableval" != "yes"; then
3732 want_ares_path="$enableval"
3736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3737 printf "%s\n" "$want_ares" >&6; }
3740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable dependency on -lrt" >&5
3741 printf %s "checking whether to disable dependency on -lrt... " >&6; }
3743 # Check whether --enable-rt was given.
3744 if test ${enable_rt+y}
3746 enableval=$enable_rt; OPT_RT=$enableval
3752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3753 printf "%s\n" "yes" >&6; }
3757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed no)" >&5
3758 printf "%s\n" "(assumed no)" >&6; }
3762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 printf "%s\n" "no" >&6; }
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable ECH support" >&5
3769 printf %s "checking whether to enable ECH support... " >&6; }
3771 # Check whether --enable-ech was given.
3772 if test ${enable_ech+y}
3774 enableval=$enable_ech; OPT_ECH=$enableval
3780 curl_ech_msg="no (--enable-ech)"
3781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 printf "%s\n" "no" >&6; }
3786 curl_ech_msg="no (--enable-ech)"
3787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 printf "%s\n" "no" >&6; }
3792 curl_ech_msg="enabled (--disable-ech)"
3794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3795 printf "%s\n" "yes" >&6; }
3801 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3804 if test -z "$xc_configure_preamble_result"; then
3805 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3809 # Check that 'PATH_SEPARATOR' has already been set.
3812 if test -z "$xc_PATH_SEPARATOR"; then
3813 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3815 if test -z "$PATH_SEPARATOR"; then
3816 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3819 printf %s "checking for path separator... " >&6; }
3820 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3821 printf "%s\n" "$PATH_SEPARATOR" >&6; }
3822 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3824 printf %s "checking for initial path separator... " >&6; }
3825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3826 printf "%s\n" "$xc_PATH_SEPARATOR" >&6; }
3827 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3832 # save the configure arguments
3834 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3837 if test -z "$SED"; then
3838 # Extract the first word of "sed", so it can be a program name with args.
3839 set dummy sed; ac_word=$2
3840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3841 printf %s "checking for $ac_word... " >&6; }
3842 if test ${ac_cv_path_SED+y}
3844 printf %s "(cached) " >&6
3848 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3852 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3853 for as_dir in $as_dummy
3856 case $as_dir in #(((
3859 *) as_dir=$as_dir/ ;;
3861 for ac_exec_ext in '' $ac_executable_extensions; do
3862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3863 ac_cv_path_SED="$as_dir$ac_word$ac_exec_ext"
3864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3871 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3876 if test -n "$SED"; then
3877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3878 printf "%s\n" "$SED" >&6; }
3880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 printf "%s\n" "no" >&6; }
3885 if test -z "$SED" || test "$SED" = "not_found"; then
3886 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3891 if test -z "$GREP"; then
3892 # Extract the first word of "grep", so it can be a program name with args.
3893 set dummy grep; ac_word=$2
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 printf %s "checking for $ac_word... " >&6; }
3896 if test ${ac_cv_path_GREP+y}
3898 printf %s "(cached) " >&6
3902 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3907 for as_dir in $as_dummy
3910 case $as_dir in #(((
3913 *) as_dir=$as_dir/ ;;
3915 for ac_exec_ext in '' $ac_executable_extensions; do
3916 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3917 ac_cv_path_GREP="$as_dir$ac_word$ac_exec_ext"
3918 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3925 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3929 GREP=$ac_cv_path_GREP
3930 if test -n "$GREP"; then
3931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3932 printf "%s\n" "$GREP" >&6; }
3934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3935 printf "%s\n" "no" >&6; }
3939 if test -z "$GREP" || test "$GREP" = "not_found"; then
3940 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3945 if test -z "$EGREP"; then
3946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that grep -E works" >&5
3947 printf %s "checking that grep -E works... " >&6; }
3948 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3951 printf "%s\n" "yes" >&6; }
3953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3954 printf "%s\n" "no" >&6; }
3955 # Extract the first word of "egrep", so it can be a program name with args.
3956 set dummy egrep; ac_word=$2
3957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3958 printf %s "checking for $ac_word... " >&6; }
3959 if test ${ac_cv_path_EGREP+y}
3961 printf %s "(cached) " >&6
3965 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3969 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3970 for as_dir in $as_dummy
3973 case $as_dir in #(((
3976 *) as_dir=$as_dir/ ;;
3978 for ac_exec_ext in '' $ac_executable_extensions; do
3979 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3980 ac_cv_path_EGREP="$as_dir$ac_word$ac_exec_ext"
3981 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3988 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3992 EGREP=$ac_cv_path_EGREP
3993 if test -n "$EGREP"; then
3994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3995 printf "%s\n" "$EGREP" >&6; }
3997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3998 printf "%s\n" "no" >&6; }
4004 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
4005 as_fn_error $? "grep -E is not working and egrep is not found in PATH. Cannot continue." "$LINENO" 5
4009 if test -z "$AR"; then
4010 if test -n "$ac_tool_prefix"; then
4011 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4012 set dummy ${ac_tool_prefix}ar; ac_word=$2
4013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4014 printf %s "checking for $ac_word... " >&6; }
4015 if test ${ac_cv_path_AR+y}
4017 printf %s "(cached) " >&6
4021 ac_cv_path_AR="$AR" # Let the user override the test with a path.
4024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4025 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4026 for as_dir in $as_dummy
4029 case $as_dir in #(((
4032 *) as_dir=$as_dir/ ;;
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4036 ac_cv_path_AR="$as_dir$ac_word$ac_exec_ext"
4037 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4048 if test -n "$AR"; then
4049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4050 printf "%s\n" "$AR" >&6; }
4052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4053 printf "%s\n" "no" >&6; }
4058 if test -z "$ac_cv_path_AR"; then
4060 # Extract the first word of "ar", so it can be a program name with args.
4061 set dummy ar; ac_word=$2
4062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4063 printf %s "checking for $ac_word... " >&6; }
4064 if test ${ac_cv_path_ac_pt_AR+y}
4066 printf %s "(cached) " >&6
4070 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4074 as_dummy="$PATH:/usr/bin:/usr/local/bin"
4075 for as_dir in $as_dummy
4078 case $as_dir in #(((
4081 *) as_dir=$as_dir/ ;;
4083 for ac_exec_ext in '' $ac_executable_extensions; do
4084 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4085 ac_cv_path_ac_pt_AR="$as_dir$ac_word$ac_exec_ext"
4086 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4096 ac_pt_AR=$ac_cv_path_ac_pt_AR
4097 if test -n "$ac_pt_AR"; then
4098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
4099 printf "%s\n" "$ac_pt_AR" >&6; }
4101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4102 printf "%s\n" "no" >&6; }
4105 if test "x$ac_pt_AR" = x; then
4108 case $cross_compiling:$ac_tool_warned in
4110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4111 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4112 ac_tool_warned=yes ;;
4120 if test -z "$AR" || test "$AR" = "not_found"; then
4121 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
4128 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)".*/\1/p' ${srcdir}/include/curl/curlver.h`
4130 xc_prog_cc_prev_IFS=$IFS
4131 xc_prog_cc_prev_LIBS=$LIBS
4132 xc_prog_cc_prev_CFLAGS=$CFLAGS
4133 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
4134 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
4139 for xc_word in $LIBS; do
4149 if test $xc_bad_var_libs = yes; then
4150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
4151 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
4152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
4153 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
4157 xc_bad_var_ldflags=no
4158 for xc_word in $LDFLAGS; do
4161 xc_bad_var_ldflags=yes
4164 xc_bad_var_ldflags=yes
4167 xc_bad_var_ldflags=yes
4170 xc_bad_var_ldflags=yes
4174 if test $xc_bad_var_ldflags = yes; then
4175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
4176 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
4177 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
4178 for xc_word in $LDFLAGS; do
4181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4182 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4186 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4190 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4194 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4201 xc_bad_var_cppflags=no
4202 for xc_word in $CPPFLAGS; do
4205 xc_bad_var_cppflags=yes
4207 -L* | --library-path=*)
4208 xc_bad_var_cppflags=yes
4211 xc_bad_var_cppflags=yes
4215 if test $xc_bad_var_cppflags = yes; then
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
4217 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
4218 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
4219 for xc_word in $CPPFLAGS; do
4222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4223 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4225 -L* | --library-path=*)
4226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4227 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4230 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4231 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4238 xc_bad_var_cflags=no
4239 for xc_word in $CFLAGS; do
4242 xc_bad_var_cflags=yes
4245 xc_bad_var_cflags=yes
4248 xc_bad_var_cflags=yes
4251 xc_bad_var_cflags=yes
4253 -L* | --library-path=*)
4254 xc_bad_var_cflags=yes
4257 xc_bad_var_cflags=yes
4261 if test $xc_bad_var_cflags = yes; then
4262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
4263 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
4264 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
4265 for xc_word in $CFLAGS; do
4268 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
4269 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
4272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
4273 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
4276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
4277 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
4280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
4281 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
4283 -L* | --library-path=*)
4284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
4285 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
4288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
4289 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
4295 if test $xc_bad_var_libs = yes ||
4296 test $xc_bad_var_cflags = yes ||
4297 test $xc_bad_var_ldflags = yes ||
4298 test $xc_bad_var_cppflags = yes; then
4299 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
4300 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
4305 # Find a good install program. We prefer a C program (faster),
4306 # so one script is as good as another. But avoid the broken or
4307 # incompatible versions:
4308 # SysV /etc/install, /usr/sbin/install
4309 # SunOS /usr/etc/install
4310 # IRIX /sbin/install
4312 # AmigaOS /C/install, which installs bootblocks on floppy discs
4313 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4314 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4315 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4316 # OS/2's system install, which has a completely different semantic
4317 # ./install, which can be erroneously created by make from ./install.sh.
4318 # Reject install programs that cannot install multiple files.
4319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4320 printf %s "checking for a BSD-compatible install... " >&6; }
4321 if test -z "$INSTALL"; then
4322 if test ${ac_cv_path_install+y}
4324 printf %s "(cached) " >&6
4326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4330 case $as_dir in #(((
4333 *) as_dir=$as_dir/ ;;
4335 # Account for fact that we put trailing slashes in our PATH walk.
4338 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4339 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4342 # OSF1 and SCO ODT 3.0 have their own names for install.
4343 # Don't use installbsd from OSF since it installs stuff as root
4345 for ac_prog in ginstall scoinst install; do
4346 for ac_exec_ext in '' $ac_executable_extensions; do
4347 if as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext"; then
4348 if test $ac_prog = install &&
4349 grep dspmsg "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4350 # AIX install. It has an incompatible calling convention.
4352 elif test $ac_prog = install &&
4353 grep pwplus "$as_dir$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4354 # program-specific install script used by HP pwplus--don't use.
4357 rm -rf conftest.one conftest.two conftest.dir
4358 echo one > conftest.one
4359 echo two > conftest.two
4361 if "$as_dir$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir/" &&
4362 test -s conftest.one && test -s conftest.two &&
4363 test -s conftest.dir/conftest.one &&
4364 test -s conftest.dir/conftest.two
4366 ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c"
4379 rm -rf conftest.one conftest.two conftest.dir
4382 if test ${ac_cv_path_install+y}; then
4383 INSTALL=$ac_cv_path_install
4385 # As a last resort, use the slow shell script. Don't cache a
4386 # value for INSTALL within a source directory, because that will
4387 # break other packages using the cache if that directory is
4388 # removed, or if the value is a relative name.
4389 INSTALL=$ac_install_sh
4392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4393 printf "%s\n" "$INSTALL" >&6; }
4395 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4396 # It thinks the first close brace ends the variable substitution.
4397 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4399 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4401 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4413 # Expand $ac_aux_dir to an absolute path.
4414 am_aux_dir=`cd "$ac_aux_dir" && pwd`
4417 ac_cpp='$CPP $CPPFLAGS'
4418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4421 if test -n "$ac_tool_prefix"; then
4422 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4423 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4425 printf %s "checking for $ac_word... " >&6; }
4426 if test ${ac_cv_prog_CC+y}
4428 printf %s "(cached) " >&6
4430 if test -n "$CC"; then
4431 ac_cv_prog_CC="$CC" # Let the user override the test.
4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 case $as_dir in #(((
4440 *) as_dir=$as_dir/ ;;
4442 for ac_exec_ext in '' $ac_executable_extensions; do
4443 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4444 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4445 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4455 if test -n "$CC"; then
4456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4457 printf "%s\n" "$CC" >&6; }
4459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4460 printf "%s\n" "no" >&6; }
4465 if test -z "$ac_cv_prog_CC"; then
4467 # Extract the first word of "gcc", so it can be a program name with args.
4468 set dummy gcc; ac_word=$2
4469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4470 printf %s "checking for $ac_word... " >&6; }
4471 if test ${ac_cv_prog_ac_ct_CC+y}
4473 printf %s "(cached) " >&6
4475 if test -n "$ac_ct_CC"; then
4476 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4482 case $as_dir in #(((
4485 *) as_dir=$as_dir/ ;;
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_ac_ct_CC="gcc"
4490 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4499 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4500 if test -n "$ac_ct_CC"; then
4501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4502 printf "%s\n" "$ac_ct_CC" >&6; }
4504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 printf "%s\n" "no" >&6; }
4508 if test "x$ac_ct_CC" = x; then
4511 case $cross_compiling:$ac_tool_warned in
4513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned=yes ;;
4523 if test -z "$CC"; then
4524 if test -n "$ac_tool_prefix"; then
4525 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4526 set dummy ${ac_tool_prefix}cc; ac_word=$2
4527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4528 printf %s "checking for $ac_word... " >&6; }
4529 if test ${ac_cv_prog_CC+y}
4531 printf %s "(cached) " >&6
4533 if test -n "$CC"; then
4534 ac_cv_prog_CC="$CC" # Let the user override the test.
4536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540 case $as_dir in #(((
4543 *) as_dir=$as_dir/ ;;
4545 for ac_exec_ext in '' $ac_executable_extensions; do
4546 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4547 ac_cv_prog_CC="${ac_tool_prefix}cc"
4548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4558 if test -n "$CC"; then
4559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4560 printf "%s\n" "$CC" >&6; }
4562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4563 printf "%s\n" "no" >&6; }
4569 if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571 set dummy cc; ac_word=$2
4572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4573 printf %s "checking for $ac_word... " >&6; }
4574 if test ${ac_cv_prog_CC+y}
4576 printf %s "(cached) " >&6
4578 if test -n "$CC"; then
4579 ac_cv_prog_CC="$CC" # Let the user override the test.
4582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4586 case $as_dir in #(((
4589 *) as_dir=$as_dir/ ;;
4591 for ac_exec_ext in '' $ac_executable_extensions; do
4592 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4593 if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4594 ac_prog_rejected=yes
4598 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4605 if test $ac_prog_rejected = yes; then
4606 # We found a bogon in the path, so make sure we never use it.
4607 set dummy $ac_cv_prog_CC
4609 if test $# != 0; then
4610 # We chose a different compiler from the bogus one.
4611 # However, it has the same basename, so the bogon will be chosen
4612 # first if we set CC to just the basename; use the full file name.
4614 ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
4620 if test -n "$CC"; then
4621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4622 printf "%s\n" "$CC" >&6; }
4624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4625 printf "%s\n" "no" >&6; }
4630 if test -z "$CC"; then
4631 if test -n "$ac_tool_prefix"; then
4632 for ac_prog in cl.exe
4634 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4635 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 printf %s "checking for $ac_word... " >&6; }
4638 if test ${ac_cv_prog_CC+y}
4640 printf %s "(cached) " >&6
4642 if test -n "$CC"; then
4643 ac_cv_prog_CC="$CC" # Let the user override the test.
4645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4649 case $as_dir in #(((
4652 *) as_dir=$as_dir/ ;;
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4656 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4657 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4667 if test -n "$CC"; then
4668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4669 printf "%s\n" "$CC" >&6; }
4671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4672 printf "%s\n" "no" >&6; }
4676 test -n "$CC" && break
4679 if test -z "$CC"; then
4681 for ac_prog in cl.exe
4683 # Extract the first word of "$ac_prog", so it can be a program name with args.
4684 set dummy $ac_prog; ac_word=$2
4685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4686 printf %s "checking for $ac_word... " >&6; }
4687 if test ${ac_cv_prog_ac_ct_CC+y}
4689 printf %s "(cached) " >&6
4691 if test -n "$ac_ct_CC"; then
4692 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 case $as_dir in #(((
4701 *) as_dir=$as_dir/ ;;
4703 for ac_exec_ext in '' $ac_executable_extensions; do
4704 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4705 ac_cv_prog_ac_ct_CC="$ac_prog"
4706 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4715 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4716 if test -n "$ac_ct_CC"; then
4717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4718 printf "%s\n" "$ac_ct_CC" >&6; }
4720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4721 printf "%s\n" "no" >&6; }
4725 test -n "$ac_ct_CC" && break
4728 if test "x$ac_ct_CC" = x; then
4731 case $cross_compiling:$ac_tool_warned in
4733 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4734 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4735 ac_tool_warned=yes ;;
4742 if test -z "$CC"; then
4743 if test -n "$ac_tool_prefix"; then
4744 # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
4745 set dummy ${ac_tool_prefix}clang; ac_word=$2
4746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4747 printf %s "checking for $ac_word... " >&6; }
4748 if test ${ac_cv_prog_CC+y}
4750 printf %s "(cached) " >&6
4752 if test -n "$CC"; then
4753 ac_cv_prog_CC="$CC" # Let the user override the test.
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 case $as_dir in #(((
4762 *) as_dir=$as_dir/ ;;
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4766 ac_cv_prog_CC="${ac_tool_prefix}clang"
4767 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4777 if test -n "$CC"; then
4778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4779 printf "%s\n" "$CC" >&6; }
4781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4782 printf "%s\n" "no" >&6; }
4787 if test -z "$ac_cv_prog_CC"; then
4789 # Extract the first word of "clang", so it can be a program name with args.
4790 set dummy clang; ac_word=$2
4791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4792 printf %s "checking for $ac_word... " >&6; }
4793 if test ${ac_cv_prog_ac_ct_CC+y}
4795 printf %s "(cached) " >&6
4797 if test -n "$ac_ct_CC"; then
4798 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4804 case $as_dir in #(((
4807 *) as_dir=$as_dir/ ;;
4809 for ac_exec_ext in '' $ac_executable_extensions; do
4810 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4811 ac_cv_prog_ac_ct_CC="clang"
4812 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4821 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4822 if test -n "$ac_ct_CC"; then
4823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4824 printf "%s\n" "$ac_ct_CC" >&6; }
4826 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4827 printf "%s\n" "no" >&6; }
4830 if test "x$ac_ct_CC" = x; then
4833 case $cross_compiling:$ac_tool_warned in
4835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4836 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4837 ac_tool_warned=yes ;;
4848 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4849 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4850 as_fn_error $? "no acceptable C compiler found in \$PATH
4851 See \`config.log' for more details" "$LINENO" 5; }
4853 # Provide some information about the compiler.
4854 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4857 for ac_option in --version -v -V -qversion -version; do
4858 { { ac_try="$ac_compiler $ac_option >&5"
4860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4861 *) ac_try_echo=$ac_try;;
4863 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4864 printf "%s\n" "$ac_try_echo"; } >&5
4865 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4867 if test -s conftest.err; then
4869 ... rest of stderr output deleted ...
4870 10q' conftest.err >conftest.er1
4871 cat conftest.er1 >&5
4873 rm -f conftest.er1 conftest.err
4874 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4875 test $ac_status = 0; }
4878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4879 /* end confdefs.h. */
4888 ac_clean_files_save=$ac_clean_files
4889 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4890 # Try to create an executable without -o first, disregard a.out.
4891 # It will help us diagnose broken compilers, and finding out an intuition
4893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4894 printf %s "checking whether the C compiler works... " >&6; }
4895 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4897 # The possible output files:
4898 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4901 for ac_file in $ac_files
4904 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4905 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4910 if { { ac_try="$ac_link_default"
4912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4913 *) ac_try_echo=$ac_try;;
4915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4916 printf "%s\n" "$ac_try_echo"; } >&5
4917 (eval "$ac_link_default") 2>&5
4919 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4920 test $ac_status = 0; }
4922 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4923 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4924 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4925 # so that the user can short-circuit this test for compilers unknown to
4927 for ac_file in $ac_files ''
4929 test -f "$ac_file" || continue
4931 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4934 # We found the default executable, but exeext='' is most
4938 if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
4940 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4942 # We set ac_cv_exeext here because the later test for it is not
4943 # safe: cross compilers may not add the suffix if given an `-o'
4944 # argument, so we may need to know it at that point already.
4945 # Even if this section looks crufty: it has the advantage of
4952 test "$ac_cv_exeext" = no && ac_cv_exeext=
4957 if test -z "$ac_file"
4959 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4960 printf "%s\n" "no" >&6; }
4961 printf "%s\n" "$as_me: failed program was:" >&5
4962 sed 's/^/| /' conftest.$ac_ext >&5
4964 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4965 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
4966 as_fn_error 77 "C compiler cannot create executables
4967 See \`config.log' for more details" "$LINENO" 5; }
4969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4970 printf "%s\n" "yes" >&6; }
4972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4973 printf %s "checking for C compiler default output file name... " >&6; }
4974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4975 printf "%s\n" "$ac_file" >&6; }
4976 ac_exeext=$ac_cv_exeext
4978 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4979 ac_clean_files=$ac_clean_files_save
4980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4981 printf %s "checking for suffix of executables... " >&6; }
4982 if { { ac_try="$ac_link"
4984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4985 *) ac_try_echo=$ac_try;;
4987 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4988 printf "%s\n" "$ac_try_echo"; } >&5
4989 (eval "$ac_link") 2>&5
4991 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4992 test $ac_status = 0; }
4994 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4995 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4996 # work properly (i.e., refer to `conftest.exe'), while it won't with
4998 for ac_file in conftest.exe conftest conftest.*; do
4999 test -f "$ac_file" || continue
5001 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
5002 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
5008 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5009 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5010 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
5011 See \`config.log' for more details" "$LINENO" 5; }
5013 rm -f conftest conftest$ac_cv_exeext
5014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
5015 printf "%s\n" "$ac_cv_exeext" >&6; }
5017 rm -f conftest.$ac_ext
5018 EXEEXT=$ac_cv_exeext
5020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5021 /* end confdefs.h. */
5025 FILE *f = fopen ("conftest.out", "w");
5026 return ferror (f) || fclose (f) != 0;
5032 ac_clean_files="$ac_clean_files conftest.out"
5033 # Check that the compiler produces executables we can run. If not, either
5034 # the compiler is broken, or we cross compile.
5035 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
5036 printf %s "checking whether we are cross compiling... " >&6; }
5037 if test "$cross_compiling" != yes; then
5038 { { ac_try="$ac_link"
5040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5041 *) ac_try_echo=$ac_try;;
5043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5044 printf "%s\n" "$ac_try_echo"; } >&5
5045 (eval "$ac_link") 2>&5
5047 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5048 test $ac_status = 0; }
5049 if { ac_try='./conftest$ac_cv_exeext'
5050 { { case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5054 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5055 printf "%s\n" "$ac_try_echo"; } >&5
5056 (eval "$ac_try") 2>&5
5058 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5059 test $ac_status = 0; }; }; then
5062 if test "$cross_compiling" = maybe; then
5065 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5066 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5067 as_fn_error 77 "cannot run C compiled programs.
5068 If you meant to cross compile, use \`--host'.
5069 See \`config.log' for more details" "$LINENO" 5; }
5073 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
5074 printf "%s\n" "$cross_compiling" >&6; }
5076 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
5077 ac_clean_files=$ac_clean_files_save
5078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
5079 printf %s "checking for suffix of object files... " >&6; }
5080 if test ${ac_cv_objext+y}
5082 printf %s "(cached) " >&6
5084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5085 /* end confdefs.h. */
5094 rm -f conftest.o conftest.obj
5095 if { { ac_try="$ac_compile"
5097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5098 *) ac_try_echo=$ac_try;;
5100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5101 printf "%s\n" "$ac_try_echo"; } >&5
5102 (eval "$ac_compile") 2>&5
5104 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5105 test $ac_status = 0; }
5107 for ac_file in conftest.o conftest.obj conftest.*; do
5108 test -f "$ac_file" || continue;
5110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
5111 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
5116 printf "%s\n" "$as_me: failed program was:" >&5
5117 sed 's/^/| /' conftest.$ac_ext >&5
5119 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5120 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5121 as_fn_error $? "cannot compute suffix of object files: cannot compile
5122 See \`config.log' for more details" "$LINENO" 5; }
5124 rm -f conftest.$ac_cv_objext conftest.$ac_ext
5126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
5127 printf "%s\n" "$ac_cv_objext" >&6; }
5128 OBJEXT=$ac_cv_objext
5130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
5131 printf %s "checking whether the compiler supports GNU C... " >&6; }
5132 if test ${ac_cv_c_compiler_gnu+y}
5134 printf %s "(cached) " >&6
5136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5137 /* end confdefs.h. */
5149 if ac_fn_c_try_compile "$LINENO"
5155 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5156 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5160 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
5161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5163 if test $ac_compiler_gnu = yes; then
5168 ac_test_CFLAGS=${CFLAGS+y}
5169 ac_save_CFLAGS=$CFLAGS
5170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5171 printf %s "checking whether $CC accepts -g... " >&6; }
5172 if test ${ac_cv_prog_cc_g+y}
5174 printf %s "(cached) " >&6
5176 ac_save_c_werror_flag=$ac_c_werror_flag
5177 ac_c_werror_flag=yes
5180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5181 /* end confdefs.h. */
5190 if ac_fn_c_try_compile "$LINENO"
5195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5205 if ac_fn_c_try_compile "$LINENO"
5209 ac_c_werror_flag=$ac_save_c_werror_flag
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5221 if ac_fn_c_try_compile "$LINENO"
5225 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5227 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5229 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5230 ac_c_werror_flag=$ac_save_c_werror_flag
5232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5233 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
5234 if test $ac_test_CFLAGS; then
5235 CFLAGS=$ac_save_CFLAGS
5236 elif test $ac_cv_prog_cc_g = yes; then
5237 if test "$GCC" = yes; then
5243 if test "$GCC" = yes; then
5250 if test x$ac_prog_cc_stdc = xno
5252 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
5253 printf %s "checking for $CC option to enable C11 features... " >&6; }
5254 if test ${ac_cv_prog_cc_c11+y}
5256 printf %s "(cached) " >&6
5258 ac_cv_prog_cc_c11=no
5260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5261 /* end confdefs.h. */
5262 $ac_c_conftest_c11_program
5264 for ac_arg in '' -std=gnu11
5266 CC="$ac_save_CC $ac_arg"
5267 if ac_fn_c_try_compile "$LINENO"
5269 ac_cv_prog_cc_c11=$ac_arg
5271 rm -f core conftest.err conftest.$ac_objext conftest.beam
5272 test "x$ac_cv_prog_cc_c11" != "xno" && break
5274 rm -f conftest.$ac_ext
5278 if test "x$ac_cv_prog_cc_c11" = xno
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5281 printf "%s\n" "unsupported" >&6; }
5283 if test "x$ac_cv_prog_cc_c11" = x
5285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5286 printf "%s\n" "none needed" >&6; }
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
5289 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
5290 CC="$CC $ac_cv_prog_cc_c11"
5292 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
5296 if test x$ac_prog_cc_stdc = xno
5298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
5299 printf %s "checking for $CC option to enable C99 features... " >&6; }
5300 if test ${ac_cv_prog_cc_c99+y}
5302 printf %s "(cached) " >&6
5304 ac_cv_prog_cc_c99=no
5306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5307 /* end confdefs.h. */
5308 $ac_c_conftest_c99_program
5310 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
5312 CC="$ac_save_CC $ac_arg"
5313 if ac_fn_c_try_compile "$LINENO"
5315 ac_cv_prog_cc_c99=$ac_arg
5317 rm -f core conftest.err conftest.$ac_objext conftest.beam
5318 test "x$ac_cv_prog_cc_c99" != "xno" && break
5320 rm -f conftest.$ac_ext
5324 if test "x$ac_cv_prog_cc_c99" = xno
5326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5327 printf "%s\n" "unsupported" >&6; }
5329 if test "x$ac_cv_prog_cc_c99" = x
5331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5332 printf "%s\n" "none needed" >&6; }
5334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5335 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
5336 CC="$CC $ac_cv_prog_cc_c99"
5338 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
5342 if test x$ac_prog_cc_stdc = xno
5344 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
5345 printf %s "checking for $CC option to enable C89 features... " >&6; }
5346 if test ${ac_cv_prog_cc_c89+y}
5348 printf %s "(cached) " >&6
5350 ac_cv_prog_cc_c89=no
5352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5354 $ac_c_conftest_c89_program
5356 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5358 CC="$ac_save_CC $ac_arg"
5359 if ac_fn_c_try_compile "$LINENO"
5361 ac_cv_prog_cc_c89=$ac_arg
5363 rm -f core conftest.err conftest.$ac_objext conftest.beam
5364 test "x$ac_cv_prog_cc_c89" != "xno" && break
5366 rm -f conftest.$ac_ext
5370 if test "x$ac_cv_prog_cc_c89" = xno
5372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5373 printf "%s\n" "unsupported" >&6; }
5375 if test "x$ac_cv_prog_cc_c89" = x
5377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5378 printf "%s\n" "none needed" >&6; }
5380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5381 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
5382 CC="$CC $ac_cv_prog_cc_c89"
5384 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
5390 ac_cpp='$CPP $CPPFLAGS'
5391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 ac_cpp='$CPP $CPPFLAGS'
5398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5402 printf %s "checking whether $CC understands -c and -o together... " >&6; }
5403 if test ${am_cv_prog_cc_c_o+y}
5405 printf %s "(cached) " >&6
5407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5408 /* end confdefs.h. */
5417 # Make sure it works both with $CC and with simple cc.
5418 # Following AC_PROG_CC_C_O, we do the test twice because some
5419 # compilers refuse to overwrite an existing .o file with -o,
5420 # though they will create one.
5421 am_cv_prog_cc_c_o=yes
5423 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5424 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } \
5428 && test -f conftest2.$ac_objext; then
5431 am_cv_prog_cc_c_o=no
5435 rm -f core conftest*
5438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5439 printf "%s\n" "$am_cv_prog_cc_c_o" >&6; }
5440 if test "$am_cv_prog_cc_c_o" != yes; then
5441 # Losing compiler, so override with the script.
5442 # FIXME: It is wrong to rewrite CC.
5443 # But if we don't then we get into trouble of one sort or another.
5444 # A longer-term fix would be to have automake use am__CC in this case,
5445 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5446 CC="$am_aux_dir/compile $CC"
5449 ac_cpp='$CPP $CPPFLAGS'
5450 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5451 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5452 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5457 ac_cpp='$CPP $CPPFLAGS'
5458 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5459 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5460 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5462 printf %s "checking how to run the C preprocessor... " >&6; }
5463 # On Suns, sometimes $CPP names a directory.
5464 if test -n "$CPP" && test -d "$CPP"; then
5467 if test -z "$CPP"; then
5468 if test ${ac_cv_prog_CPP+y}
5470 printf %s "(cached) " >&6
5472 # Double quotes because $CC needs to be expanded
5473 for CPP in "$CC -E" "$CC -E -traditional-cpp" cpp /lib/cpp
5476 for ac_c_preproc_warn_flag in '' yes
5478 # Use a header file that comes with gcc, so configuring glibc
5479 # with a fresh cross-compiler works.
5480 # On the NeXT, cc -E runs the code through the compiler's parser,
5481 # not just through cpp. "Syntax error" is here to catch this case.
5482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5483 /* end confdefs.h. */
5487 if ac_fn_c_try_cpp "$LINENO"
5491 # Broken: fails on valid input.
5494 rm -f conftest.err conftest.i conftest.$ac_ext
5496 # OK, works on sane cases. Now check whether nonexistent headers
5497 # can be detected and how.
5498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5499 /* end confdefs.h. */
5500 #include <ac_nonexistent.h>
5502 if ac_fn_c_try_cpp "$LINENO"
5504 # Broken: success on invalid input.
5507 # Passes both tests.
5511 rm -f conftest.err conftest.i conftest.$ac_ext
5514 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5515 rm -f conftest.i conftest.err conftest.$ac_ext
5529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5530 printf "%s\n" "$CPP" >&6; }
5532 for ac_c_preproc_warn_flag in '' yes
5534 # Use a header file that comes with gcc, so configuring glibc
5535 # with a fresh cross-compiler works.
5536 # On the NeXT, cc -E runs the code through the compiler's parser,
5537 # not just through cpp. "Syntax error" is here to catch this case.
5538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5539 /* end confdefs.h. */
5543 if ac_fn_c_try_cpp "$LINENO"
5547 # Broken: fails on valid input.
5550 rm -f conftest.err conftest.i conftest.$ac_ext
5552 # OK, works on sane cases. Now check whether nonexistent headers
5553 # can be detected and how.
5554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5555 /* end confdefs.h. */
5556 #include <ac_nonexistent.h>
5558 if ac_fn_c_try_cpp "$LINENO"
5560 # Broken: success on invalid input.
5563 # Passes both tests.
5567 rm -f conftest.err conftest.i conftest.$ac_ext
5570 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5571 rm -f conftest.i conftest.err conftest.$ac_ext
5576 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5577 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
5578 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5579 See \`config.log' for more details" "$LINENO" 5; }
5583 ac_cpp='$CPP $CPPFLAGS'
5584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5589 IFS=$xc_prog_cc_prev_IFS
5590 LIBS=$xc_prog_cc_prev_LIBS
5591 CFLAGS=$xc_prog_cc_prev_CFLAGS
5592 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
5593 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
5600 ac_header= ac_cache=
5601 for ac_item in $ac_header_c_list
5603 if test $ac_cache; then
5604 ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
5605 if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
5606 printf "%s\n" "#define $ac_item 1" >> confdefs.h
5608 ac_header= ac_cache=
5609 elif test $ac_header; then
5623 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
5626 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
5630 for ac_header in stdatomic.h
5632 ac_fn_c_check_header_compile "$LINENO" "stdatomic.h" "ac_cv_header_stdatomic_h" "$ac_includes_default"
5633 if test "x$ac_cv_header_stdatomic_h" = xyes
5635 printf "%s\n" "#define HAVE_STDATOMIC_H 1" >>confdefs.h
5637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _Atomic is available" >&5
5638 printf %s "checking if _Atomic is available... " >&6; }
5639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5640 /* end confdefs.h. */
5643 $curl_includes_unistd
5649 i = 4; // Force an atomic-write operation.
5656 if ac_fn_c_try_link "$LINENO"
5659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5660 printf "%s\n" "yes" >&6; }
5662 printf "%s\n" "#define HAVE_ATOMIC 1" >>confdefs.h
5668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5669 printf "%s\n" "no" >&6; }
5673 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5674 conftest$ac_exeext conftest.$ac_ext
5681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5682 printf %s "checking for a sed that does not truncate output... " >&6; }
5683 if test ${ac_cv_path_SED+y}
5685 printf %s "(cached) " >&6
5687 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5688 for ac_i in 1 2 3 4 5 6 7; do
5689 ac_script="$ac_script$as_nl$ac_script"
5691 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5692 { ac_script=; unset ac_script;}
5693 if test -z "$SED"; then
5694 ac_path_SED_found=false
5695 # Loop through the user's path and test for each of PROGNAME-LIST
5696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5700 case $as_dir in #(((
5703 *) as_dir=$as_dir/ ;;
5705 for ac_prog in sed gsed
5707 for ac_exec_ext in '' $ac_executable_extensions; do
5708 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
5709 as_fn_executable_p "$ac_path_SED" || continue
5710 # Check for GNU ac_path_SED and select it if it is found.
5711 # Check for GNU $ac_path_SED
5712 case `"$ac_path_SED" --version 2>&1` in
5714 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5717 printf %s 0123456789 >"conftest.in"
5720 cat "conftest.in" "conftest.in" >"conftest.tmp"
5721 mv "conftest.tmp" "conftest.in"
5722 cp "conftest.in" "conftest.nl"
5723 printf "%s\n" '' >> "conftest.nl"
5724 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5725 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5726 as_fn_arith $ac_count + 1 && ac_count=$as_val
5727 if test $ac_count -gt ${ac_path_SED_max-0}; then
5728 # Best one so far, save it but keep looking for a better one
5729 ac_cv_path_SED="$ac_path_SED"
5730 ac_path_SED_max=$ac_count
5732 # 10*(2^10) chars as input seems more than enough
5733 test $ac_count -gt 10 && break
5735 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5738 $ac_path_SED_found && break 3
5743 if test -z "$ac_cv_path_SED"; then
5744 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5751 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5752 printf "%s\n" "$ac_cv_path_SED" >&6; }
5753 SED="$ac_cv_path_SED"
5759 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for code coverage support" >&5
5760 printf %s "checking for code coverage support... " >&6; }
5762 curl_coverage_msg="disabled"
5764 # Check whether --enable-code-coverage was given.
5765 if test ${enable_code_coverage+y}
5767 enableval=$enable_code_coverage; coverage="$enableval"
5771 if test "$GCC" != "yes"
5775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $coverage" >&5
5776 printf "%s\n" "$coverage" >&6; }
5778 if test "x$coverage" = "xyes"; then
5779 curl_coverage_msg="enabled"
5781 if test -n "$ac_tool_prefix"; then
5782 # Extract the first word of "${ac_tool_prefix}gcov", so it can be a program name with args.
5783 set dummy ${ac_tool_prefix}gcov; ac_word=$2
5784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5785 printf %s "checking for $ac_word... " >&6; }
5786 if test ${ac_cv_prog_GCOV+y}
5788 printf %s "(cached) " >&6
5790 if test -n "$GCOV"; then
5791 ac_cv_prog_GCOV="$GCOV" # Let the user override the test.
5793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5797 case $as_dir in #(((
5800 *) as_dir=$as_dir/ ;;
5802 for ac_exec_ext in '' $ac_executable_extensions; do
5803 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5804 ac_cv_prog_GCOV="${ac_tool_prefix}gcov"
5805 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5814 GCOV=$ac_cv_prog_GCOV
5815 if test -n "$GCOV"; then
5816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCOV" >&5
5817 printf "%s\n" "$GCOV" >&6; }
5819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5820 printf "%s\n" "no" >&6; }
5825 if test -z "$ac_cv_prog_GCOV"; then
5827 # Extract the first word of "gcov", so it can be a program name with args.
5828 set dummy gcov; ac_word=$2
5829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5830 printf %s "checking for $ac_word... " >&6; }
5831 if test ${ac_cv_prog_ac_ct_GCOV+y}
5833 printf %s "(cached) " >&6
5835 if test -n "$ac_ct_GCOV"; then
5836 ac_cv_prog_ac_ct_GCOV="$ac_ct_GCOV" # Let the user override the test.
5838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5842 case $as_dir in #(((
5845 *) as_dir=$as_dir/ ;;
5847 for ac_exec_ext in '' $ac_executable_extensions; do
5848 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5849 ac_cv_prog_ac_ct_GCOV="gcov"
5850 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5859 ac_ct_GCOV=$ac_cv_prog_ac_ct_GCOV
5860 if test -n "$ac_ct_GCOV"; then
5861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GCOV" >&5
5862 printf "%s\n" "$ac_ct_GCOV" >&6; }
5864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5865 printf "%s\n" "no" >&6; }
5868 if test "x$ac_ct_GCOV" = x; then
5871 case $cross_compiling:$ac_tool_warned in
5873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5874 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5875 ac_tool_warned=yes ;;
5880 GCOV="$ac_cv_prog_GCOV"
5883 if test -z "$GCOV"; then
5884 as_fn_error $? "needs gcov for code coverage" "$LINENO" 5
5886 # Extract the first word of "lcov", so it can be a program name with args.
5887 set dummy lcov; ac_word=$2
5888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5889 printf %s "checking for $ac_word... " >&6; }
5890 if test ${ac_cv_prog_LCOV+y}
5892 printf %s "(cached) " >&6
5894 if test -n "$LCOV"; then
5895 ac_cv_prog_LCOV="$LCOV" # Let the user override the test.
5897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5901 case $as_dir in #(((
5904 *) as_dir=$as_dir/ ;;
5906 for ac_exec_ext in '' $ac_executable_extensions; do
5907 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5908 ac_cv_prog_LCOV="lcov"
5909 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5918 LCOV=$ac_cv_prog_LCOV
5919 if test -n "$LCOV"; then
5920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LCOV" >&5
5921 printf "%s\n" "$LCOV" >&6; }
5923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5924 printf "%s\n" "no" >&6; }
5928 if test -z "$LCOV"; then
5929 as_fn_error $? "needs lcov for code coverage" "$LINENO" 5
5932 CPPFLAGS="$CPPFLAGS -DNDEBUG"
5933 CFLAGS="$CFLAGS -O0 -g -fprofile-arcs -ftest-coverage"
5938 am__api_version='1.16'
5940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5941 printf %s "checking whether build environment is sane... " >&6; }
5942 # Reject unsafe characters in $srcdir or the absolute working directory
5943 # name. Accept space and tab only in the latter.
5947 *[\\\"\#\$\&\'\`$am_lf]*)
5948 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5951 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5952 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5955 # Do 'set' in a subshell so we don't clobber the current shell's
5956 # arguments. Must try -L first in case configure is actually a
5957 # symlink; some systems play weird games with the mod time of symlinks
5958 # (eg FreeBSD returns the mod time of the symlink's containing
5962 for am_try in 1 2; do
5963 echo "timestamp, slept: $am_has_slept" > conftest.file
5964 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5965 if test "$*" = "X"; then
5967 set X `ls -t "$srcdir/configure" conftest.file`
5969 if test "$*" != "X $srcdir/configure conftest.file" \
5970 && test "$*" != "X conftest.file $srcdir/configure"; then
5972 # If neither matched, then we have a broken ls. This can happen
5973 # if, for instance, CONFIG_SHELL is bash and it inherits a
5974 # broken ls alias from the environment. This has actually
5975 # happened. Such a system could not be considered "sane".
5976 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5977 alias in your environment" "$LINENO" 5
5979 if test "$2" = conftest.file || test $am_try -eq 2; then
5986 test "$2" = conftest.file
5992 as_fn_error $? "newly created file is older than distributed files!
5993 Check your system clock" "$LINENO" 5
5995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5996 printf "%s\n" "yes" >&6; }
5997 # If we didn't sleep, we still need to ensure time stamps of config.status and
5998 # generated files are strictly newer.
6000 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
6007 test "$program_prefix" != NONE &&
6008 program_transform_name="s&^&$program_prefix&;$program_transform_name"
6009 # Use a double $ so make ignores it.
6010 test "$program_suffix" != NONE &&
6011 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
6012 # Double any \ or $.
6013 # By default was `s,x,x', remove it if useless.
6014 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
6015 program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"`
6018 if test x"${MISSING+set}" != xset; then
6019 MISSING="\${SHELL} '$am_aux_dir/missing'"
6021 # Use eval to expand $SHELL
6022 if eval "$MISSING --is-lightweight"; then
6023 am_missing_run="$MISSING "
6026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
6027 printf "%s\n" "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
6030 if test x"${install_sh+set}" != xset; then
6033 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
6035 install_sh="\${SHELL} $am_aux_dir/install-sh"
6039 # Installed binaries are usually stripped using 'strip' when the user
6040 # run "make install-strip". However 'strip' might not be the right
6041 # tool to use in cross-compilation environments, therefore Automake
6042 # will honor the 'STRIP' environment variable to overrule this program.
6043 if test "$cross_compiling" != no; then
6044 if test -n "$ac_tool_prefix"; then
6045 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6046 set dummy ${ac_tool_prefix}strip; ac_word=$2
6047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6048 printf %s "checking for $ac_word... " >&6; }
6049 if test ${ac_cv_prog_STRIP+y}
6051 printf %s "(cached) " >&6
6053 if test -n "$STRIP"; then
6054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6060 case $as_dir in #(((
6063 *) as_dir=$as_dir/ ;;
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6067 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6068 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6077 STRIP=$ac_cv_prog_STRIP
6078 if test -n "$STRIP"; then
6079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6080 printf "%s\n" "$STRIP" >&6; }
6082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083 printf "%s\n" "no" >&6; }
6088 if test -z "$ac_cv_prog_STRIP"; then
6090 # Extract the first word of "strip", so it can be a program name with args.
6091 set dummy strip; ac_word=$2
6092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6093 printf %s "checking for $ac_word... " >&6; }
6094 if test ${ac_cv_prog_ac_ct_STRIP+y}
6096 printf %s "(cached) " >&6
6098 if test -n "$ac_ct_STRIP"; then
6099 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6105 case $as_dir in #(((
6108 *) as_dir=$as_dir/ ;;
6110 for ac_exec_ext in '' $ac_executable_extensions; do
6111 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6112 ac_cv_prog_ac_ct_STRIP="strip"
6113 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6122 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6123 if test -n "$ac_ct_STRIP"; then
6124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6125 printf "%s\n" "$ac_ct_STRIP" >&6; }
6127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6128 printf "%s\n" "no" >&6; }
6131 if test "x$ac_ct_STRIP" = x; then
6134 case $cross_compiling:$ac_tool_warned in
6136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6137 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6138 ac_tool_warned=yes ;;
6143 STRIP="$ac_cv_prog_STRIP"
6147 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a race-free mkdir -p" >&5
6151 printf %s "checking for a race-free mkdir -p... " >&6; }
6152 if test -z "$MKDIR_P"; then
6153 if test ${ac_cv_path_mkdir+y}
6155 printf %s "(cached) " >&6
6157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6158 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6161 case $as_dir in #(((
6164 *) as_dir=$as_dir/ ;;
6166 for ac_prog in mkdir gmkdir; do
6167 for ac_exec_ext in '' $ac_executable_extensions; do
6168 as_fn_executable_p "$as_dir$ac_prog$ac_exec_ext" || continue
6169 case `"$as_dir$ac_prog$ac_exec_ext" --version 2>&1` in #(
6170 'mkdir ('*'coreutils) '* | \
6172 'mkdir (fileutils) '4.1*)
6173 ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext
6183 test -d ./--version && rmdir ./--version
6184 if test ${ac_cv_path_mkdir+y}; then
6185 MKDIR_P="$ac_cv_path_mkdir -p"
6187 # As a last resort, use the slow shell script. Don't cache a
6188 # value for MKDIR_P within a source directory, because that will
6189 # break other packages using the cache if that directory is
6190 # removed, or if the value is a relative name.
6191 MKDIR_P="$ac_install_sh -d"
6194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6195 printf "%s\n" "$MKDIR_P" >&6; }
6197 for ac_prog in gawk mawk nawk awk
6199 # Extract the first word of "$ac_prog", so it can be a program name with args.
6200 set dummy $ac_prog; ac_word=$2
6201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202 printf %s "checking for $ac_word... " >&6; }
6203 if test ${ac_cv_prog_AWK+y}
6205 printf %s "(cached) " >&6
6207 if test -n "$AWK"; then
6208 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6214 case $as_dir in #(((
6217 *) as_dir=$as_dir/ ;;
6219 for ac_exec_ext in '' $ac_executable_extensions; do
6220 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
6221 ac_cv_prog_AWK="$ac_prog"
6222 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
6232 if test -n "$AWK"; then
6233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6234 printf "%s\n" "$AWK" >&6; }
6236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6237 printf "%s\n" "no" >&6; }
6241 test -n "$AWK" && break
6244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6245 printf %s "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6247 ac_make=`printf "%s\n" "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6248 if eval test \${ac_cv_prog_make_${ac_make}_set+y}
6250 printf %s "(cached) " >&6
6252 cat >conftest.make <<\_ACEOF
6255 @echo '@@@%%%=$(MAKE)=@@@%%%'
6257 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6258 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6260 eval ac_cv_prog_make_${ac_make}_set=yes;;
6262 eval ac_cv_prog_make_${ac_make}_set=no;;
6266 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6268 printf "%s\n" "yes" >&6; }
6271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
6272 printf "%s\n" "no" >&6; }
6273 SET_MAKE="MAKE=${MAKE-make}"
6276 rm -rf .tst 2>/dev/null
6277 mkdir .tst 2>/dev/null
6278 if test -d .tst; then
6283 rmdir .tst 2>/dev/null
6285 DEPDIR="${am__leading_dot}deps"
6287 ac_config_commands="$ac_config_commands depfiles"
6289 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
6290 printf %s "checking whether ${MAKE-make} supports the include directive... " >&6; }
6291 cat > confinc.mk << 'END'
6293 @echo this is the am__doit target >confinc.out
6298 # BSD make does it like this.
6299 echo '.include "confinc.mk" # ignored' > confmf.BSD
6300 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
6301 echo 'include confinc.mk # ignored' > confmf.GNU
6303 for s in GNU BSD; do
6304 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
6305 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
6307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6308 (exit $ac_status); }
6309 case $?:`cat confinc.out 2>/dev/null` in #(
6310 '0:this is the am__doit target') :
6313 am__include='.include' am__quote='"' ;; #(
6315 am__include='include' am__quote='' ;;
6320 if test "$am__include" != "#"; then
6321 _am_result="yes ($s style)"
6325 rm -f confinc.* confmf.*
6326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
6327 printf "%s\n" "${_am_result}" >&6; }
6329 # Check whether --enable-dependency-tracking was given.
6330 if test ${enable_dependency_tracking+y}
6332 enableval=$enable_dependency_tracking;
6335 if test "x$enable_dependency_tracking" != xno; then
6336 am_depcomp="$ac_aux_dir/depcomp"
6340 if test "x$enable_dependency_tracking" != xno; then
6349 ## --------------------------------------- ##
6350 ## Start of automake initialization code ##
6351 ## --------------------------------------- ##
6353 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6354 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6355 # is not polluted with repeated "-I."
6356 am__isrc=' -I$(srcdir)'
6357 # test to see if srcdir already configured
6358 if test -f $srcdir/config.status; then
6359 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6363 # test whether we have cygpath
6364 if test -z "$CYGPATH_W"; then
6365 if (cygpath --version) >/dev/null 2>/dev/null; then
6366 CYGPATH_W='cygpath -w'
6373 # Define the identity of the package.
6378 printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h
6381 printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h
6383 # Some tools Automake needs.
6385 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6388 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6391 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6394 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6397 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6399 # For better backward compatibility. To be removed once Automake 1.9.x
6400 # dies out for good. For more background, see:
6401 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6402 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6403 mkdir_p='$(MKDIR_P)'
6405 # We need awk for the "check" target (and possibly the TAP driver). The
6406 # system "awk" is bad on some platforms.
6407 # Always define AMTAR for backward compatibility. Yes, it's still used
6408 # in the wild :-( We should find a proper way to deprecate it ...
6412 # We'll loop over all known methods to create a tar archive until one works.
6413 _am_tools='gnutar pax cpio none'
6415 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6421 depcc="$CC" am_compiler_list=
6423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6424 printf %s "checking dependency style of $depcc... " >&6; }
6425 if test ${am_cv_CC_dependencies_compiler_type+y}
6427 printf %s "(cached) " >&6
6429 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6430 # We make a subdir and do the tests there. Otherwise we can end up
6431 # making bogus files that we don't know about and never remove. For
6432 # instance it was reported that on HP-UX the gcc test will end up
6433 # making a dummy file named 'D' -- because '-MD' means "put the output
6437 # Copy depcomp to subdir because otherwise we won't find it if we're
6438 # using a relative directory.
6439 cp "$am_depcomp" conftest.dir
6441 # We will build objects and dependencies in a subdirectory because
6442 # it helps to detect inapplicable dependency modes. For instance
6443 # both Tru64's cc and ICC support -MD to output dependencies as a
6444 # side effect of compilation, but ICC will put the dependencies in
6445 # the current directory while Tru64 will put them in the object
6449 am_cv_CC_dependencies_compiler_type=none
6450 if test "$am_compiler_list" = ""; then
6451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6454 case " $depcc " in #(
6455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6458 for depmode in $am_compiler_list; do
6459 # Setup a source with many dependencies, because some compilers
6460 # like to wrap large dependency lists on column 80 (with \), and
6461 # we should not choose a depcomp mode which is confused by this.
6463 # We need to recreate these files for each test, as the compiler may
6464 # overwrite some of them when testing with obscure command lines.
6465 # This happens at least with the AIX C compiler.
6467 for i in 1 2 3 4 5 6; do
6468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6469 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6470 # Solaris 10 /bin/sh.
6471 echo '/* dummy */' > sub/conftst$i.h
6473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6475 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6476 # mode. It turns out that the SunPro C++ compiler does not properly
6477 # handle '-M -o', and we need to detect this. Also, some Intel
6478 # versions had trouble with output in subdirs.
6479 am__obj=sub/conftest.${OBJEXT-o}
6480 am__minus_obj="-o $am__obj"
6483 # This depmode causes a compiler race in universal mode.
6484 test "$am__universal" = false || continue
6487 # After this tag, mechanisms are not by side-effect, so they'll
6488 # only be used when explicitly requested.
6489 if test "x$enable_dependency_tracking" = xyes; then
6495 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6496 # This compiler won't grok '-c -o', but also, the minuso test has
6497 # not run yet. These depmodes are late enough in the game, and
6498 # so weak that their functioning should not be impacted.
6499 am__obj=conftest.${OBJEXT-o}
6504 if depmode=$depmode \
6505 source=sub/conftest.c object=$am__obj \
6506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6508 >/dev/null 2>conftest.err &&
6509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6513 # icc doesn't choke on unknown options, it will just issue warnings
6514 # or remarks (even with -Werror). So we grep stderr for any message
6515 # that says an option was ignored or not supported.
6516 # When given -MP, icc 7.0 and 7.1 complain thusly:
6517 # icc: Command line warning: ignoring option '-M'; no argument required
6518 # The diagnosis changed in icc 8.0:
6519 # icc: Command line remark: option '-MP' not supported
6520 if (grep 'ignoring option' conftest.err ||
6521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6522 am_cv_CC_dependencies_compiler_type=$depmode
6531 am_cv_CC_dependencies_compiler_type=none
6535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6536 printf "%s\n" "$am_cv_CC_dependencies_compiler_type" >&6; }
6537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6540 test "x$enable_dependency_tracking" != xno \
6541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6543 am__fastdepCC_FALSE='#'
6545 am__fastdepCC_TRUE='#'
6546 am__fastdepCC_FALSE=
6550 # Variables for tags utilities; see am/tags.am
6551 if test -z "$CTAGS"; then
6555 if test -z "$ETAGS"; then
6559 if test -z "$CSCOPE"; then
6565 # POSIX will say in a future version that running "rm -f" with no argument
6566 # is OK; and we want to be able to make that assumption in our Makefile
6567 # recipes. So use an aggressive probe to check that the usage we want is
6568 # actually supported "in the wild" to an acceptable degree.
6569 # See automake bug#10828.
6570 # To make any issue more visible, cause the running configure to be aborted
6571 # by default if the 'rm' program in use doesn't match our expectations; the
6572 # user can still override this though.
6573 if rm -f && rm -fr && rm -rf; then : OK; else
6577 Your 'rm' program seems unable to run without file operands specified
6578 on the command line, even when the '-f' option is present. This is contrary
6579 to the behaviour of most rm programs out there, and not conforming with
6580 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6582 Please tell bug-automake@gnu.org about your system, including the value
6583 of your $PATH and any error possibly output before this message. This
6584 can help us improve future automake versions.
6587 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6588 echo 'Configuration will proceed anyway, since you have set the' >&2
6589 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6593 Aborting the configuration process, to ensure you take notice of the issue.
6595 You can download and install GNU coreutils to get an 'rm' implementation
6596 that behaves properly: <https://www.gnu.org/software/coreutils/>.
6598 If you want to complete the configuration process using your problematic
6599 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6600 to "yes", and re-run configure.
6603 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6607 ## ------------------------------------- ##
6608 ## End of automake initialization code ##
6609 ## ------------------------------------- ##
6612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
6613 printf %s "checking curl version... " >&6; }
6614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
6615 printf "%s\n" "$CURLVERSION" >&6; }
6619 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\([0-9A-Fa-f]*\).*/\1/p' ${srcdir}/include/curl/curlver.h`
6622 PKGADD_PKG="HAXXcurl"
6623 PKGADD_NAME="curl - a client that groks URLs"
6624 PKGADD_VENDOR="curl.se"
6629 curl_ssl_msg="no (--with-{openssl,gnutls,nss,mbedtls,wolfssl,schannel,secure-transport,amissl,bearssl,rustls} )"
6630 curl_ssh_msg="no (--with-{libssh,libssh2})"
6631 curl_zlib_msg="no (--with-zlib)"
6632 curl_brotli_msg="no (--with-brotli)"
6633 curl_zstd_msg="no (--with-zstd)"
6634 curl_gss_msg="no (--with-gssapi)"
6635 curl_gsasl_msg="no (--with-gsasl)"
6636 curl_tls_srp_msg="no (--enable-tls-srp)"
6637 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
6638 curl_ipv6_msg="no (--enable-ipv6)"
6639 curl_unix_sockets_msg="no (--enable-unix-sockets)"
6640 curl_idn_msg="no (--with-{libidn2,winidn})"
6641 curl_manual_msg="no (--enable-manual)"
6642 curl_libcurl_msg="enabled (--disable-libcurl-option)"
6643 curl_verbose_msg="enabled (--disable-verbose)"
6644 curl_sspi_msg="no (--enable-sspi)"
6645 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
6646 curl_ldaps_msg="no (--enable-ldaps)"
6647 curl_rtsp_msg="no (--enable-rtsp)"
6648 curl_rtmp_msg="no (--with-librtmp)"
6649 curl_psl_msg="no (--with-libpsl)"
6650 curl_altsvc_msg="enabled (--disable-alt-svc)"
6651 curl_headers_msg="enabled (--disable-headers-api)"
6652 curl_hsts_msg="enabled (--disable-hsts)"
6653 curl_ws_msg="no (--enable-websockets)"
6655 curl_h1_msg="enabled (internal)"
6656 curl_h2_msg="no (--with-nghttp2, --with-hyper)"
6657 curl_h3_msg="no (--with-ngtcp2, --with-quiche --with-msh3)"
6662 INITIAL_LDFLAGS=$LDFLAGS
6667 # Check whether --with-schannel was given.
6668 if test ${with_schannel+y}
6670 withval=$with_schannel; OPT_SCHANNEL=$withval
6671 TLSCHOICE="schannel"
6675 OPT_SECURETRANSPORT=no
6677 # Check whether --with-secure-transport was given.
6678 if test ${with_secure_transport+y}
6680 withval=$with_secure_transport;
6681 OPT_SECURETRANSPORT=$withval
6682 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }Secure-Transport"
6689 # Check whether --with-amissl was given.
6690 if test ${with_amissl+y}
6692 withval=$with_amissl;
6694 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }AmiSSL"
6702 # Check whether --with-ssl was given.
6703 if test ${with_ssl+y}
6707 OPT_OPENSSL=$withval
6708 if test X"$withval" != Xno; then
6709 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6718 # Check whether --with-openssl was given.
6719 if test ${with_openssl+y}
6721 withval=$with_openssl;
6722 OPT_OPENSSL=$withval
6723 if test X"$withval" != Xno; then
6724 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }OpenSSL"
6732 # Check whether --with-gnutls was given.
6733 if test ${with_gnutls+y}
6735 withval=$with_gnutls;
6737 if test X"$withval" != Xno; then
6738 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }GnuTLS"
6746 # Check whether --with-mbedtls was given.
6747 if test ${with_mbedtls+y}
6749 withval=$with_mbedtls;
6750 OPT_MBEDTLS=$withval
6751 if test X"$withval" != Xno; then
6752 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }mbedTLS"
6760 # Check whether --with-wolfssl was given.
6761 if test ${with_wolfssl+y}
6763 withval=$with_wolfssl;
6764 OPT_WOLFSSL=$withval
6765 if test X"$withval" != Xno; then
6766 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }wolfSSL"
6774 # Check whether --with-bearssl was given.
6775 if test ${with_bearssl+y}
6777 withval=$with_bearssl;
6778 OPT_BEARSSL=$withval
6779 if test X"$withval" != Xno; then
6780 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }BearSSL"
6788 # Check whether --with-rustls was given.
6789 if test ${with_rustls+y}
6791 withval=$with_rustls;
6793 if test X"$withval" != Xno; then
6794 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }rustls"
6795 experimental="$experimental rustls"
6803 # Check whether --with-nss-deprecated was given.
6804 if test ${with_nss_deprecated+y}
6806 withval=$with_nss_deprecated; if test X"$withval" != Xno; then
6807 OPT_NSS_AWARE=$withval
6815 # Check whether --with-nss was given.
6816 if test ${with_nss+y}
6818 withval=$with_nss; OPT_NSS=$withval
6819 if test X"$withval" != Xno; then
6821 if test X"$OPT_NSS_AWARE" = "Xno" ; then
6822 as_fn_error $? "NSS use must be confirmed using --with-nss-deprecated. NSS support will be dropped from curl in August 2022. See docs/DEPRECATE.md" "$LINENO" 5
6825 TLSCHOICE="${TLSCHOICE:+$TLSCHOICE, }NSS"
6831 if test -z "$TLSCHOICE"; then
6832 if test "x$OPT_SSL" != "xno"; then
6833 as_fn_error $? "select TLS backend(s) or disable TLS with --without-ssl.
6842 --with-openssl (also works for BoringSSL and libressl)
6845 --with-secure-transport
6852 # Check whether --with-darwinssl was given.
6853 if test ${with_darwinssl+y}
6855 withval=$with_darwinssl; as_fn_error $? "--with-darwin-ssl no longer works!" "$LINENO" 5
6862 # Make sure we can run config.sub.
6863 $SHELL "${ac_aux_dir}config.sub" sun4 >/dev/null 2>&1 ||
6864 as_fn_error $? "cannot run $SHELL ${ac_aux_dir}config.sub" "$LINENO" 5
6866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
6867 printf %s "checking build system type... " >&6; }
6868 if test ${ac_cv_build+y}
6870 printf %s "(cached) " >&6
6872 ac_build_alias=$build_alias
6873 test "x$ac_build_alias" = x &&
6874 ac_build_alias=`$SHELL "${ac_aux_dir}config.guess"`
6875 test "x$ac_build_alias" = x &&
6876 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
6877 ac_cv_build=`$SHELL "${ac_aux_dir}config.sub" $ac_build_alias` ||
6878 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $ac_build_alias failed" "$LINENO" 5
6881 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
6882 printf "%s\n" "$ac_cv_build" >&6; }
6883 case $ac_cv_build in
6885 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
6888 ac_save_IFS=$IFS; IFS='-'
6894 # Remember, the first character of IFS is used to create $*,
6895 # except with old shells:
6898 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
6901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
6902 printf %s "checking host system type... " >&6; }
6903 if test ${ac_cv_host+y}
6905 printf %s "(cached) " >&6
6907 if test "x$host_alias" = x; then
6908 ac_cv_host=$ac_cv_build
6910 ac_cv_host=`$SHELL "${ac_aux_dir}config.sub" $host_alias` ||
6911 as_fn_error $? "$SHELL ${ac_aux_dir}config.sub $host_alias failed" "$LINENO" 5
6915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
6916 printf "%s\n" "$ac_cv_host" >&6; }
6919 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
6922 ac_save_IFS=$IFS; IFS='-'
6928 # Remember, the first character of IFS is used to create $*,
6929 # except with old shells:
6932 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
6936 printf "%s\n" "#define OS \"${host}\"" >>confdefs.h
6939 # Silence warning: ar: 'u' modifier ignored since 'D' is the default
6944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6945 printf %s "checking for grep that handles long lines and -e... " >&6; }
6946 if test ${ac_cv_path_GREP+y}
6948 printf %s "(cached) " >&6
6950 if test -z "$GREP"; then
6951 ac_path_GREP_found=false
6952 # Loop through the user's path and test for each of PROGNAME-LIST
6953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6954 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6957 case $as_dir in #(((
6960 *) as_dir=$as_dir/ ;;
6962 for ac_prog in grep ggrep
6964 for ac_exec_ext in '' $ac_executable_extensions; do
6965 ac_path_GREP="$as_dir$ac_prog$ac_exec_ext"
6966 as_fn_executable_p "$ac_path_GREP" || continue
6967 # Check for GNU ac_path_GREP and select it if it is found.
6968 # Check for GNU $ac_path_GREP
6969 case `"$ac_path_GREP" --version 2>&1` in
6971 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6974 printf %s 0123456789 >"conftest.in"
6977 cat "conftest.in" "conftest.in" >"conftest.tmp"
6978 mv "conftest.tmp" "conftest.in"
6979 cp "conftest.in" "conftest.nl"
6980 printf "%s\n" 'GREP' >> "conftest.nl"
6981 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6982 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6983 as_fn_arith $ac_count + 1 && ac_count=$as_val
6984 if test $ac_count -gt ${ac_path_GREP_max-0}; then
6985 # Best one so far, save it but keep looking for a better one
6986 ac_cv_path_GREP="$ac_path_GREP"
6987 ac_path_GREP_max=$ac_count
6989 # 10*(2^10) chars as input seems more than enough
6990 test $ac_count -gt 10 && break
6992 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6995 $ac_path_GREP_found && break 3
7000 if test -z "$ac_cv_path_GREP"; then
7001 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7004 ac_cv_path_GREP=$GREP
7008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
7009 printf "%s\n" "$ac_cv_path_GREP" >&6; }
7010 GREP="$ac_cv_path_GREP"
7013 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
7014 printf %s "checking for egrep... " >&6; }
7015 if test ${ac_cv_path_EGREP+y}
7017 printf %s "(cached) " >&6
7019 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
7020 then ac_cv_path_EGREP="$GREP -E"
7022 if test -z "$EGREP"; then
7023 ac_path_EGREP_found=false
7024 # Loop through the user's path and test for each of PROGNAME-LIST
7025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7026 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7029 case $as_dir in #(((
7032 *) as_dir=$as_dir/ ;;
7034 for ac_prog in egrep
7036 for ac_exec_ext in '' $ac_executable_extensions; do
7037 ac_path_EGREP="$as_dir$ac_prog$ac_exec_ext"
7038 as_fn_executable_p "$ac_path_EGREP" || continue
7039 # Check for GNU ac_path_EGREP and select it if it is found.
7040 # Check for GNU $ac_path_EGREP
7041 case `"$ac_path_EGREP" --version 2>&1` in
7043 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
7046 printf %s 0123456789 >"conftest.in"
7049 cat "conftest.in" "conftest.in" >"conftest.tmp"
7050 mv "conftest.tmp" "conftest.in"
7051 cp "conftest.in" "conftest.nl"
7052 printf "%s\n" 'EGREP' >> "conftest.nl"
7053 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
7054 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7055 as_fn_arith $ac_count + 1 && ac_count=$as_val
7056 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
7057 # Best one so far, save it but keep looking for a better one
7058 ac_cv_path_EGREP="$ac_path_EGREP"
7059 ac_path_EGREP_max=$ac_count
7061 # 10*(2^10) chars as input seems more than enough
7062 test $ac_count -gt 10 && break
7064 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7067 $ac_path_EGREP_found && break 3
7072 if test -z "$ac_cv_path_EGREP"; then
7073 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7076 ac_cv_path_EGREP=$EGREP
7081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
7082 printf "%s\n" "$ac_cv_path_EGREP" >&6; }
7083 EGREP="$ac_cv_path_EGREP"
7088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
7089 printf %s "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7091 /* end confdefs.h. */
7098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7099 $EGREP "yes_this_is_aix" >/dev/null 2>&1
7102 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7103 printf "%s\n" "yes" >&6; }
7104 printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
7109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 printf "%s\n" "no" >&6; }
7119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
7120 printf %s "checking if _THREAD_SAFE is already defined... " >&6; }
7121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7122 /* end confdefs.h. */
7132 force compilation error
7140 if ac_fn_c_try_compile "$LINENO"
7143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7144 printf "%s\n" "yes" >&6; }
7145 tmp_thread_safe_initially_defined="yes"
7149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7150 printf "%s\n" "no" >&6; }
7151 tmp_thread_safe_initially_defined="no"
7154 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7156 if test "$tmp_thread_safe_initially_defined" = "no"; then
7157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
7158 printf %s "checking if _THREAD_SAFE is actually needed... " >&6; }
7161 aix[123].* | aix4.[012].*)
7162 tmp_need_thread_safe="no"
7165 tmp_need_thread_safe="yes"
7168 tmp_need_thread_safe="no"
7172 if test "$tmp_need_thread_safe" = "yes"; then
7173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7174 printf "%s\n" "yes" >&6; }
7176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7177 printf "%s\n" "no" >&6; }
7181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
7182 printf %s "checking if _THREAD_SAFE is onwards defined... " >&6; }
7183 if test "$tmp_thread_safe_initially_defined" = "yes" ||
7184 test "$tmp_need_thread_safe" = "yes"; then
7187 printf "%s\n" "#define NEED_THREAD_SAFE 1" >>confdefs.h
7189 cat >>confdefs.h <<_EOF
7190 #ifndef _THREAD_SAFE
7191 # define _THREAD_SAFE
7195 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7196 printf "%s\n" "yes" >&6; }
7198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7199 printf "%s\n" "no" >&6; }
7205 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
7206 printf %s "checking if _REENTRANT is already defined... " >&6; }
7207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7208 /* end confdefs.h. */
7218 force compilation error
7226 if ac_fn_c_try_compile "$LINENO"
7229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7230 printf "%s\n" "yes" >&6; }
7231 tmp_reentrant_initially_defined="yes"
7235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 printf "%s\n" "no" >&6; }
7237 tmp_reentrant_initially_defined="no"
7240 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7242 if test "$tmp_reentrant_initially_defined" = "no"; then
7243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
7244 printf %s "checking if _REENTRANT is actually needed... " >&6; }
7248 tmp_need_reentrant="yes"
7251 tmp_need_reentrant="no"
7255 if test "$tmp_need_reentrant" = "no"; then
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7274 if ac_fn_c_try_compile "$LINENO"
7284 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7285 if test "$tmp_errno" = "yes"; then
7286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7287 /* end confdefs.h. */
7298 force compilation error
7306 if ac_fn_c_try_compile "$LINENO"
7309 tmp_errno="errno_macro_defined"
7313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7314 /* end confdefs.h. */
7326 force compilation error
7334 if ac_fn_c_try_compile "$LINENO"
7337 tmp_errno="errno_macro_needs_reentrant"
7338 tmp_need_reentrant="yes"
7341 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7344 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7348 if test "$tmp_need_reentrant" = "no"; then
7350 if test "$tmp_need_reentrant" = "no"; then
7352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7353 /* end confdefs.h. */
7356 #define gmtime_r innocuous_gmtime_r
7358 # include <limits.h>
7360 # include <assert.h>
7367 #if defined __stub_gmtime_r || defined __stub___gmtime_r
7379 if ac_fn_c_try_link "$LINENO"
7389 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7390 conftest$ac_exeext conftest.$ac_ext
7391 if test "$tmp_gmtime_r" = "yes"; then
7392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7393 /* end confdefs.h. */
7395 #include <sys/types.h>
7399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7400 $EGREP "gmtime_r" >/dev/null 2>&1
7403 tmp_gmtime_r="proto_declared"
7407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7408 /* end confdefs.h. */
7411 #include <sys/types.h>
7415 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7416 $EGREP "gmtime_r" >/dev/null 2>&1
7419 tmp_gmtime_r="proto_needs_reentrant"
7420 tmp_need_reentrant="yes"
7432 if test "$tmp_need_reentrant" = "no"; then
7434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7435 /* end confdefs.h. */
7438 #define localtime_r innocuous_localtime_r
7440 # include <limits.h>
7442 # include <assert.h>
7448 char localtime_r ();
7449 #if defined __stub_localtime_r || defined __stub___localtime_r
7455 return localtime_r ();
7461 if ac_fn_c_try_link "$LINENO"
7464 tmp_localtime_r="yes"
7468 tmp_localtime_r="no"
7471 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7472 conftest$ac_exeext conftest.$ac_ext
7473 if test "$tmp_localtime_r" = "yes"; then
7474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7475 /* end confdefs.h. */
7477 #include <sys/types.h>
7481 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7482 $EGREP "localtime_r" >/dev/null 2>&1
7485 tmp_localtime_r="proto_declared"
7489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7490 /* end confdefs.h. */
7493 #include <sys/types.h>
7497 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7498 $EGREP "localtime_r" >/dev/null 2>&1
7501 tmp_localtime_r="proto_needs_reentrant"
7502 tmp_need_reentrant="yes"
7514 if test "$tmp_need_reentrant" = "no"; then
7516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7517 /* end confdefs.h. */
7520 #define strerror_r innocuous_strerror_r
7522 # include <limits.h>
7524 # include <assert.h>
7531 #if defined __stub_strerror_r || defined __stub___strerror_r
7537 return strerror_r ();
7543 if ac_fn_c_try_link "$LINENO"
7546 tmp_strerror_r="yes"
7553 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7554 conftest$ac_exeext conftest.$ac_ext
7555 if test "$tmp_strerror_r" = "yes"; then
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7559 #include <sys/types.h>
7563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7564 $EGREP "strerror_r" >/dev/null 2>&1
7567 tmp_strerror_r="proto_declared"
7571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7572 /* end confdefs.h. */
7575 #include <sys/types.h>
7579 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7580 $EGREP "strerror_r" >/dev/null 2>&1
7583 tmp_strerror_r="proto_needs_reentrant"
7584 tmp_need_reentrant="yes"
7596 if test "$tmp_need_reentrant" = "no"; then
7598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7599 /* end confdefs.h. */
7602 #define strtok_r innocuous_strtok_r
7604 # include <limits.h>
7606 # include <assert.h>
7613 #if defined __stub_strtok_r || defined __stub___strtok_r
7625 if ac_fn_c_try_link "$LINENO"
7635 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7636 conftest$ac_exeext conftest.$ac_ext
7637 if test "$tmp_strtok_r" = "yes"; then
7638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7639 /* end confdefs.h. */
7641 #include <sys/types.h>
7645 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7646 $EGREP "strtok_r" >/dev/null 2>&1
7649 tmp_strtok_r="proto_declared"
7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7654 /* end confdefs.h. */
7657 #include <sys/types.h>
7661 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7662 $EGREP "strtok_r" >/dev/null 2>&1
7665 tmp_strtok_r="proto_needs_reentrant"
7666 tmp_need_reentrant="yes"
7678 if test "$tmp_need_reentrant" = "no"; then
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7684 #define gethostbyname_r innocuous_gethostbyname_r
7686 # include <limits.h>
7688 # include <assert.h>
7690 #undef gethostbyname_r
7694 char gethostbyname_r ();
7695 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7701 return gethostbyname_r ();
7707 if ac_fn_c_try_link "$LINENO"
7710 tmp_gethostbyname_r="yes"
7714 tmp_gethostbyname_r="no"
7717 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7718 conftest$ac_exeext conftest.$ac_ext
7719 if test "$tmp_gethostbyname_r" = "yes"; then
7720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7721 /* end confdefs.h. */
7723 #include <sys/types.h>
7727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7728 $EGREP "gethostbyname_r" >/dev/null 2>&1
7731 tmp_gethostbyname_r="proto_declared"
7735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7736 /* end confdefs.h. */
7739 #include <sys/types.h>
7743 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7744 $EGREP "gethostbyname_r" >/dev/null 2>&1
7747 tmp_gethostbyname_r="proto_needs_reentrant"
7748 tmp_need_reentrant="yes"
7760 if test "$tmp_need_reentrant" = "no"; then
7762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7763 /* end confdefs.h. */
7766 #define getprotobyname_r innocuous_getprotobyname_r
7768 # include <limits.h>
7770 # include <assert.h>
7772 #undef getprotobyname_r
7776 char getprotobyname_r ();
7777 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7783 return getprotobyname_r ();
7789 if ac_fn_c_try_link "$LINENO"
7792 tmp_getprotobyname_r="yes"
7796 tmp_getprotobyname_r="no"
7799 rm -f core conftest.err conftest.$ac_objext conftest.beam \
7800 conftest$ac_exeext conftest.$ac_ext
7801 if test "$tmp_getprotobyname_r" = "yes"; then
7802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7805 #include <sys/types.h>
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 $EGREP "getprotobyname_r" >/dev/null 2>&1
7813 tmp_getprotobyname_r="proto_declared"
7817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7818 /* end confdefs.h. */
7821 #include <sys/types.h>
7825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7826 $EGREP "getprotobyname_r" >/dev/null 2>&1
7829 tmp_getprotobyname_r="proto_needs_reentrant"
7830 tmp_need_reentrant="yes"
7844 if test "$tmp_need_reentrant" = "yes"; then
7845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7846 printf "%s\n" "yes" >&6; }
7848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 printf "%s\n" "no" >&6; }
7853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7854 printf %s "checking if _REENTRANT is onwards defined... " >&6; }
7855 if test "$tmp_reentrant_initially_defined" = "yes" ||
7856 test "$tmp_need_reentrant" = "yes"; then
7859 printf "%s\n" "#define NEED_REENTRANT 1" >>confdefs.h
7861 cat >>confdefs.h <<_EOF
7867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7868 printf "%s\n" "yes" >&6; }
7870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 printf "%s\n" "no" >&6; }
7876 # Check whether --enable-largefile was given.
7877 if test ${enable_largefile+y}
7879 enableval=$enable_largefile;
7882 if test "$enable_largefile" != no; then
7884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7885 printf %s "checking for special C compiler options needed for large files... " >&6; }
7886 if test ${ac_cv_sys_largefile_CC+y}
7888 printf %s "(cached) " >&6
7890 ac_cv_sys_largefile_CC=no
7891 if test "$GCC" != yes; then
7894 # IRIX 6.2 and later do not support large files by default,
7895 # so use the C compiler's -n32 option if that helps.
7896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7897 /* end confdefs.h. */
7898 #include <sys/types.h>
7899 /* Check that off_t can represent 2**63 - 1 correctly.
7900 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7901 since some C++ compilers masquerading as C compilers
7902 incorrectly reject 9223372036854775807. */
7903 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7904 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7905 && LARGE_OFF_T % 2147483647 == 1)
7914 if ac_fn_c_try_compile "$LINENO"
7918 rm -f core conftest.err conftest.$ac_objext conftest.beam
7920 if ac_fn_c_try_compile "$LINENO"
7922 ac_cv_sys_largefile_CC=' -n32'; break
7924 rm -f core conftest.err conftest.$ac_objext conftest.beam
7928 rm -f conftest.$ac_ext
7931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7932 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
7933 if test "$ac_cv_sys_largefile_CC" != no; then
7934 CC=$CC$ac_cv_sys_largefile_CC
7937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7938 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7939 if test ${ac_cv_sys_file_offset_bits+y}
7941 printf %s "(cached) " >&6
7944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7945 /* end confdefs.h. */
7946 #include <sys/types.h>
7947 /* Check that off_t can represent 2**63 - 1 correctly.
7948 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7949 since some C++ compilers masquerading as C compilers
7950 incorrectly reject 9223372036854775807. */
7951 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7952 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7953 && LARGE_OFF_T % 2147483647 == 1)
7962 if ac_fn_c_try_compile "$LINENO"
7964 ac_cv_sys_file_offset_bits=no; break
7966 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7968 /* end confdefs.h. */
7969 #define _FILE_OFFSET_BITS 64
7970 #include <sys/types.h>
7971 /* Check that off_t can represent 2**63 - 1 correctly.
7972 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7973 since some C++ compilers masquerading as C compilers
7974 incorrectly reject 9223372036854775807. */
7975 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
7976 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7977 && LARGE_OFF_T % 2147483647 == 1)
7986 if ac_fn_c_try_compile "$LINENO"
7988 ac_cv_sys_file_offset_bits=64; break
7990 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
7991 ac_cv_sys_file_offset_bits=unknown
7995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7996 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
7997 case $ac_cv_sys_file_offset_bits in #(
8000 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
8004 if test $ac_cv_sys_file_offset_bits = unknown; then
8005 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
8006 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
8007 if test ${ac_cv_sys_large_files+y}
8009 printf %s "(cached) " >&6
8012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8013 /* end confdefs.h. */
8014 #include <sys/types.h>
8015 /* Check that off_t can represent 2**63 - 1 correctly.
8016 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8017 since some C++ compilers masquerading as C compilers
8018 incorrectly reject 9223372036854775807. */
8019 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8020 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8021 && LARGE_OFF_T % 2147483647 == 1)
8030 if ac_fn_c_try_compile "$LINENO"
8032 ac_cv_sys_large_files=no; break
8034 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8037 #define _LARGE_FILES 1
8038 #include <sys/types.h>
8039 /* Check that off_t can represent 2**63 - 1 correctly.
8040 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8041 since some C++ compilers masquerading as C compilers
8042 incorrectly reject 9223372036854775807. */
8043 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
8044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8045 && LARGE_OFF_T % 2147483647 == 1)
8054 if ac_fn_c_try_compile "$LINENO"
8056 ac_cv_sys_large_files=1; break
8058 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
8059 ac_cv_sys_large_files=unknown
8063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
8064 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
8065 case $ac_cv_sys_large_files in #(
8068 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
8078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8079 printf "%s\n" "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8084 macro_version='2.4.7'
8085 macro_revision='2.4.7'
8100 ltmain=$ac_aux_dir/ltmain.sh
8102 # Backslashify metacharacters that are still active within
8103 # double-quoted strings.
8104 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8106 # Same as above, but do not quote variable references.
8107 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8109 # Sed substitution to delay expansion of an escaped shell variable in a
8110 # double_quote_subst'ed string.
8111 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8113 # Sed substitution to delay expansion of an escaped single quote.
8114 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8116 # Sed substitution to avoid accidental globbing in evaled expressions
8117 no_glob_subst='s/\*/\\\*/g'
8119 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8120 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8121 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8124 printf %s "checking how to print strings... " >&6; }
8125 # Test print first, because it will be a builtin if present.
8126 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
8127 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8129 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8132 # Use this function as a fallback that always works.
8133 func_fallback_echo ()
8135 eval 'cat <<_LTECHO_EOF
8139 ECHO='func_fallback_echo'
8142 # func_echo_all arg...
8143 # Invoke $ECHO with all args, space-separated.
8150 printf*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8151 printf "%s\n" "printf" >&6; } ;;
8152 print*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8153 printf "%s\n" "print -r" >&6; } ;;
8154 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8155 printf "%s\n" "cat" >&6; } ;;
8171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8172 printf %s "checking for a sed that does not truncate output... " >&6; }
8173 if test ${ac_cv_path_SED+y}
8175 printf %s "(cached) " >&6
8177 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8178 for ac_i in 1 2 3 4 5 6 7; do
8179 ac_script="$ac_script$as_nl$ac_script"
8181 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8182 { ac_script=; unset ac_script;}
8183 if test -z "$SED"; then
8184 ac_path_SED_found=false
8185 # Loop through the user's path and test for each of PROGNAME-LIST
8186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8190 case $as_dir in #(((
8193 *) as_dir=$as_dir/ ;;
8195 for ac_prog in sed gsed
8197 for ac_exec_ext in '' $ac_executable_extensions; do
8198 ac_path_SED="$as_dir$ac_prog$ac_exec_ext"
8199 as_fn_executable_p "$ac_path_SED" || continue
8200 # Check for GNU ac_path_SED and select it if it is found.
8201 # Check for GNU $ac_path_SED
8202 case `"$ac_path_SED" --version 2>&1` in
8204 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8207 printf %s 0123456789 >"conftest.in"
8210 cat "conftest.in" "conftest.in" >"conftest.tmp"
8211 mv "conftest.tmp" "conftest.in"
8212 cp "conftest.in" "conftest.nl"
8213 printf "%s\n" '' >> "conftest.nl"
8214 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8215 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8216 as_fn_arith $ac_count + 1 && ac_count=$as_val
8217 if test $ac_count -gt ${ac_path_SED_max-0}; then
8218 # Best one so far, save it but keep looking for a better one
8219 ac_cv_path_SED="$ac_path_SED"
8220 ac_path_SED_max=$ac_count
8222 # 10*(2^10) chars as input seems more than enough
8223 test $ac_count -gt 10 && break
8225 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8228 $ac_path_SED_found && break 3
8233 if test -z "$ac_cv_path_SED"; then
8234 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8242 printf "%s\n" "$ac_cv_path_SED" >&6; }
8243 SED="$ac_cv_path_SED"
8246 test -z "$SED" && SED=sed
8247 Xsed="$SED -e 1s/^X//"
8259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8260 printf %s "checking for fgrep... " >&6; }
8261 if test ${ac_cv_path_FGREP+y}
8263 printf %s "(cached) " >&6
8265 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8266 then ac_cv_path_FGREP="$GREP -F"
8268 if test -z "$FGREP"; then
8269 ac_path_FGREP_found=false
8270 # Loop through the user's path and test for each of PROGNAME-LIST
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8275 case $as_dir in #(((
8278 *) as_dir=$as_dir/ ;;
8280 for ac_prog in fgrep
8282 for ac_exec_ext in '' $ac_executable_extensions; do
8283 ac_path_FGREP="$as_dir$ac_prog$ac_exec_ext"
8284 as_fn_executable_p "$ac_path_FGREP" || continue
8285 # Check for GNU ac_path_FGREP and select it if it is found.
8286 # Check for GNU $ac_path_FGREP
8287 case `"$ac_path_FGREP" --version 2>&1` in
8289 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8292 printf %s 0123456789 >"conftest.in"
8295 cat "conftest.in" "conftest.in" >"conftest.tmp"
8296 mv "conftest.tmp" "conftest.in"
8297 cp "conftest.in" "conftest.nl"
8298 printf "%s\n" 'FGREP' >> "conftest.nl"
8299 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8300 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8301 as_fn_arith $ac_count + 1 && ac_count=$as_val
8302 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8303 # Best one so far, save it but keep looking for a better one
8304 ac_cv_path_FGREP="$ac_path_FGREP"
8305 ac_path_FGREP_max=$ac_count
8307 # 10*(2^10) chars as input seems more than enough
8308 test $ac_count -gt 10 && break
8310 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8313 $ac_path_FGREP_found && break 3
8318 if test -z "$ac_cv_path_FGREP"; then
8319 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8322 ac_cv_path_FGREP=$FGREP
8327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8328 printf "%s\n" "$ac_cv_path_FGREP" >&6; }
8329 FGREP="$ac_cv_path_FGREP"
8332 test -z "$GREP" && GREP=grep
8352 # Check whether --with-gnu-ld was given.
8353 if test ${with_gnu_ld+y}
8355 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8361 if test yes = "$GCC"; then
8362 # Check if gcc -print-prog-name=ld gives a path.
8363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8364 printf %s "checking for ld used by $CC... " >&6; }
8367 # gcc leaves a trailing carriage return, which upsets mingw
8368 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8370 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8373 # Accept absolute paths.
8375 re_direlt='/[^/][^/]*/\.\./'
8376 # Canonicalize the pathname of ld
8377 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8378 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8379 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8381 test -z "$LD" && LD=$ac_prog
8384 # If it fails, then pretend we aren't using GCC.
8388 # If it is relative, then search for the first ld in PATH.
8392 elif test yes = "$with_gnu_ld"; then
8393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8394 printf %s "checking for GNU ld... " >&6; }
8396 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8397 printf %s "checking for non-GNU ld... " >&6; }
8399 if test ${lt_cv_path_LD+y}
8401 printf %s "(cached) " >&6
8403 if test -z "$LD"; then
8404 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8405 for ac_dir in $PATH; do
8407 test -z "$ac_dir" && ac_dir=.
8408 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8409 lt_cv_path_LD=$ac_dir/$ac_prog
8410 # Check to see if the program is GNU ld. I'd rather use --version,
8411 # but apparently some variants of GNU ld only accept -v.
8412 # Break only if it was the GNU/non-GNU ld that we prefer.
8413 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8414 *GNU* | *'with BFD'*)
8415 test no != "$with_gnu_ld" && break
8418 test yes != "$with_gnu_ld" && break
8425 lt_cv_path_LD=$LD # Let the user override the test with a path.
8430 if test -n "$LD"; then
8431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8432 printf "%s\n" "$LD" >&6; }
8434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8435 printf "%s\n" "no" >&6; }
8437 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8439 printf %s "checking if the linker ($LD) is GNU ld... " >&6; }
8440 if test ${lt_cv_prog_gnu_ld+y}
8442 printf %s "(cached) " >&6
8444 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8445 case `$LD -v 2>&1 </dev/null` in
8446 *GNU* | *'with BFD'*)
8447 lt_cv_prog_gnu_ld=yes
8450 lt_cv_prog_gnu_ld=no
8454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8455 printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; }
8456 with_gnu_ld=$lt_cv_prog_gnu_ld
8466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8467 printf %s "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8468 if test ${lt_cv_path_NM+y}
8470 printf %s "(cached) " >&6
8472 if test -n "$NM"; then
8473 # Let the user override the test.
8476 lt_nm_to_check=${ac_tool_prefix}nm
8477 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8478 lt_nm_to_check="$lt_nm_to_check nm"
8480 for lt_tmp_nm in $lt_nm_to_check; do
8481 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8482 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8484 test -z "$ac_dir" && ac_dir=.
8485 tmp_nm=$ac_dir/$lt_tmp_nm
8486 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8487 # Check to see if the nm accepts a BSD-compat flag.
8488 # Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8489 # nm: unknown option "B" ignored
8490 # Tru64's nm complains that /dev/null is an invalid object file
8491 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8493 mingw*) lt_bad_file=conftest.nm/nofile ;;
8494 *) lt_bad_file=/dev/null ;;
8496 case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in
8497 *$lt_bad_file* | *'Invalid file or object type'*)
8498 lt_cv_path_NM="$tmp_nm -B"
8502 case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in
8504 lt_cv_path_NM="$tmp_nm -p"
8508 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8509 continue # so that we can try to find one that supports BSD flags
8518 : ${lt_cv_path_NM=no}
8521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8522 printf "%s\n" "$lt_cv_path_NM" >&6; }
8523 if test no != "$lt_cv_path_NM"; then
8526 # Didn't find any BSD compatible name lister, look for dumpbin.
8527 if test -n "$DUMPBIN"; then :
8528 # Let the user override the test.
8530 if test -n "$ac_tool_prefix"; then
8531 for ac_prog in dumpbin "link -dump"
8533 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8534 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8536 printf %s "checking for $ac_word... " >&6; }
8537 if test ${ac_cv_prog_DUMPBIN+y}
8539 printf %s "(cached) " >&6
8541 if test -n "$DUMPBIN"; then
8542 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8548 case $as_dir in #(((
8551 *) as_dir=$as_dir/ ;;
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8555 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8556 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8565 DUMPBIN=$ac_cv_prog_DUMPBIN
8566 if test -n "$DUMPBIN"; then
8567 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8568 printf "%s\n" "$DUMPBIN" >&6; }
8570 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 printf "%s\n" "no" >&6; }
8575 test -n "$DUMPBIN" && break
8578 if test -z "$DUMPBIN"; then
8579 ac_ct_DUMPBIN=$DUMPBIN
8580 for ac_prog in dumpbin "link -dump"
8582 # Extract the first word of "$ac_prog", so it can be a program name with args.
8583 set dummy $ac_prog; ac_word=$2
8584 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8585 printf %s "checking for $ac_word... " >&6; }
8586 if test ${ac_cv_prog_ac_ct_DUMPBIN+y}
8588 printf %s "(cached) " >&6
8590 if test -n "$ac_ct_DUMPBIN"; then
8591 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8597 case $as_dir in #(((
8600 *) as_dir=$as_dir/ ;;
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
8604 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8605 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
8614 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8615 if test -n "$ac_ct_DUMPBIN"; then
8616 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8617 printf "%s\n" "$ac_ct_DUMPBIN" >&6; }
8619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
8620 printf "%s\n" "no" >&6; }
8624 test -n "$ac_ct_DUMPBIN" && break
8627 if test "x$ac_ct_DUMPBIN" = x; then
8630 case $cross_compiling:$ac_tool_warned in
8632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8633 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8634 ac_tool_warned=yes ;;
8636 DUMPBIN=$ac_ct_DUMPBIN
8640 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in
8642 DUMPBIN="$DUMPBIN -symbols -headers"
8650 if test : != "$DUMPBIN"; then
8654 test -z "$NM" && NM=nm
8661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8662 printf %s "checking the name lister ($NM) interface... " >&6; }
8663 if test ${lt_cv_nm_interface+y}
8665 printf %s "(cached) " >&6
8667 lt_cv_nm_interface="BSD nm"
8668 echo "int some_variable = 0;" > conftest.$ac_ext
8669 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8670 (eval "$ac_compile" 2>conftest.err)
8671 cat conftest.err >&5
8672 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8673 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8674 cat conftest.err >&5
8675 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8676 cat conftest.out >&5
8677 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8678 lt_cv_nm_interface="MS dumpbin"
8682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8683 printf "%s\n" "$lt_cv_nm_interface" >&6; }
8685 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8686 printf %s "checking whether ln -s works... " >&6; }
8688 if test "$LN_S" = "ln -s"; then
8689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8690 printf "%s\n" "yes" >&6; }
8692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8693 printf "%s\n" "no, using $LN_S" >&6; }
8696 # find the maximum length of command line arguments
8697 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8698 printf %s "checking the maximum length of command line arguments... " >&6; }
8699 if test ${lt_cv_sys_max_cmd_len+y}
8701 printf %s "(cached) " >&6
8708 # On DJGPP, this test can blow up pretty badly due to problems in libc
8709 # (any single argument exceeding 2000 bytes causes a buffer overrun
8710 # during glob expansion). Even if it were fixed, the result of this
8711 # check would be larger than it should be.
8712 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8716 # Under GNU Hurd, this test is not required because there is
8717 # no limit to the length of command line arguments.
8718 # Libtool will interpret -1 as no limit whatsoever
8719 lt_cv_sys_max_cmd_len=-1;
8722 cygwin* | mingw* | cegcc*)
8723 # On Win9x/ME, this test blows up -- it succeeds, but takes
8724 # about 5 minutes as the teststring grows exponentially.
8725 # Worse, since 9x/ME are not pre-emptively multitasking,
8726 # you end up with a "frozen" computer, even though with patience
8727 # the test eventually succeeds (with a max line length of 256k).
8728 # Instead, let's just punt: use the minimum linelength reported by
8729 # all of the supported platforms: 8192 (on NT/2K/XP).
8730 lt_cv_sys_max_cmd_len=8192;
8734 # On MiNT this can take a long time and run out of memory.
8735 lt_cv_sys_max_cmd_len=8192;
8739 # On AmigaOS with pdksh, this test takes hours, literally.
8740 # So we just punt and use a minimum line length of 8192.
8741 lt_cv_sys_max_cmd_len=8192;
8744 bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*)
8745 # This has been around since 386BSD, at least. Likely further.
8746 if test -x /sbin/sysctl; then
8747 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8748 elif test -x /usr/sbin/sysctl; then
8749 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8751 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8753 # And add a safety zone
8754 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8755 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8759 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8760 lt_cv_sys_max_cmd_len=196608
8764 # The test takes a long time on OS/2.
8765 lt_cv_sys_max_cmd_len=8192
8769 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8770 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8771 # nice to cause kernel panics so lets avoid the loop below.
8772 # First set a reasonable default.
8773 lt_cv_sys_max_cmd_len=16384
8775 if test -x /sbin/sysconfig; then
8776 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8777 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8782 lt_cv_sys_max_cmd_len=102400
8784 sysv5* | sco5v6* | sysv4.2uw2*)
8785 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8786 if test -n "$kargmax"; then
8787 lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'`
8789 lt_cv_sys_max_cmd_len=32768
8793 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8794 if test -n "$lt_cv_sys_max_cmd_len" && \
8795 test undefined != "$lt_cv_sys_max_cmd_len"; then
8796 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8797 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8799 # Make teststring a little bigger before we do anything with it.
8800 # a 1K string should be a reasonable start.
8801 for i in 1 2 3 4 5 6 7 8; do
8802 teststring=$teststring$teststring
8804 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8805 # If test is not a shell built-in, we'll probably end up computing a
8806 # maximum length that is only half of the actual maximum length, but
8808 while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8809 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8810 test 17 != "$i" # 1/2 MB should be enough
8813 teststring=$teststring$teststring
8815 # Only check the string length outside the loop.
8816 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8818 # Add a significant safety factor because C++ compilers can tack on
8819 # massive amounts of additional arguments before passing them to the
8820 # linker. It appears as though 1/2 is a usable value.
8821 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8828 if test -n "$lt_cv_sys_max_cmd_len"; then
8829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8830 printf "%s\n" "$lt_cv_sys_max_cmd_len" >&6; }
8832 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none" >&5
8833 printf "%s\n" "none" >&6; }
8835 max_cmd_len=$lt_cv_sys_max_cmd_len
8846 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8856 # test EBCDIC or ASCII
8857 case `echo X|tr X '\101'` in
8858 A) # ASCII based system
8859 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8860 lt_SP2NL='tr \040 \012'
8861 lt_NL2SP='tr \015\012 \040\040'
8863 *) # EBCDIC based system
8864 lt_SP2NL='tr \100 \n'
8865 lt_NL2SP='tr \r\n \100\100'
8877 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8878 printf %s "checking how to convert $build file names to $host format... " >&6; }
8879 if test ${lt_cv_to_host_file_cmd+y}
8881 printf %s "(cached) " >&6
8886 *-*-mingw* ) # actually msys
8887 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8890 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8892 * ) # otherwise, assume *nix
8893 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8899 *-*-mingw* ) # actually msys
8900 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8903 lt_cv_to_host_file_cmd=func_convert_file_noop
8905 * ) # otherwise, assume *nix
8906 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8910 * ) # unhandled hosts (and "normal" native builds)
8911 lt_cv_to_host_file_cmd=func_convert_file_noop
8917 to_host_file_cmd=$lt_cv_to_host_file_cmd
8918 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8919 printf "%s\n" "$lt_cv_to_host_file_cmd" >&6; }
8925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8926 printf %s "checking how to convert $build file names to toolchain format... " >&6; }
8927 if test ${lt_cv_to_tool_file_cmd+y}
8929 printf %s "(cached) " >&6
8931 #assume ordinary cross tools, or native build.
8932 lt_cv_to_tool_file_cmd=func_convert_file_noop
8936 *-*-mingw* ) # actually msys
8937 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8945 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8947 printf "%s\n" "$lt_cv_to_tool_file_cmd" >&6; }
8953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8954 printf %s "checking for $LD option to reload object files... " >&6; }
8955 if test ${lt_cv_ld_reload_flag+y}
8957 printf %s "(cached) " >&6
8959 lt_cv_ld_reload_flag='-r'
8961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8962 printf "%s\n" "$lt_cv_ld_reload_flag" >&6; }
8963 reload_flag=$lt_cv_ld_reload_flag
8964 case $reload_flag in
8966 *) reload_flag=" $reload_flag" ;;
8968 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8970 cygwin* | mingw* | pw32* | cegcc*)
8971 if test yes != "$GCC"; then
8976 if test yes = "$GCC"; then
8977 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8979 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8992 if test -n "$ac_tool_prefix"; then
8993 # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args.
8994 set dummy ${ac_tool_prefix}file; ac_word=$2
8995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8996 printf %s "checking for $ac_word... " >&6; }
8997 if test ${ac_cv_prog_FILECMD+y}
8999 printf %s "(cached) " >&6
9001 if test -n "$FILECMD"; then
9002 ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test.
9004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9008 case $as_dir in #(((
9011 *) as_dir=$as_dir/ ;;
9013 for ac_exec_ext in '' $ac_executable_extensions; do
9014 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9015 ac_cv_prog_FILECMD="${ac_tool_prefix}file"
9016 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9025 FILECMD=$ac_cv_prog_FILECMD
9026 if test -n "$FILECMD"; then
9027 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5
9028 printf "%s\n" "$FILECMD" >&6; }
9030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9031 printf "%s\n" "no" >&6; }
9036 if test -z "$ac_cv_prog_FILECMD"; then
9037 ac_ct_FILECMD=$FILECMD
9038 # Extract the first word of "file", so it can be a program name with args.
9039 set dummy file; ac_word=$2
9040 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9041 printf %s "checking for $ac_word... " >&6; }
9042 if test ${ac_cv_prog_ac_ct_FILECMD+y}
9044 printf %s "(cached) " >&6
9046 if test -n "$ac_ct_FILECMD"; then
9047 ac_cv_prog_ac_ct_FILECMD="$ac_ct_FILECMD" # Let the user override the test.
9049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9053 case $as_dir in #(((
9056 *) as_dir=$as_dir/ ;;
9058 for ac_exec_ext in '' $ac_executable_extensions; do
9059 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9060 ac_cv_prog_ac_ct_FILECMD="file"
9061 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9070 ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD
9071 if test -n "$ac_ct_FILECMD"; then
9072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5
9073 printf "%s\n" "$ac_ct_FILECMD" >&6; }
9075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9076 printf "%s\n" "no" >&6; }
9079 if test "x$ac_ct_FILECMD" = x; then
9082 case $cross_compiling:$ac_tool_warned in
9084 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9085 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9086 ac_tool_warned=yes ;;
9088 FILECMD=$ac_ct_FILECMD
9091 FILECMD="$ac_cv_prog_FILECMD"
9100 if test -n "$ac_tool_prefix"; then
9101 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9102 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9104 printf %s "checking for $ac_word... " >&6; }
9105 if test ${ac_cv_prog_OBJDUMP+y}
9107 printf %s "(cached) " >&6
9109 if test -n "$OBJDUMP"; then
9110 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9116 case $as_dir in #(((
9119 *) as_dir=$as_dir/ ;;
9121 for ac_exec_ext in '' $ac_executable_extensions; do
9122 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9123 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9124 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9133 OBJDUMP=$ac_cv_prog_OBJDUMP
9134 if test -n "$OBJDUMP"; then
9135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9136 printf "%s\n" "$OBJDUMP" >&6; }
9138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9139 printf "%s\n" "no" >&6; }
9144 if test -z "$ac_cv_prog_OBJDUMP"; then
9145 ac_ct_OBJDUMP=$OBJDUMP
9146 # Extract the first word of "objdump", so it can be a program name with args.
9147 set dummy objdump; ac_word=$2
9148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9149 printf %s "checking for $ac_word... " >&6; }
9150 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
9152 printf %s "(cached) " >&6
9154 if test -n "$ac_ct_OBJDUMP"; then
9155 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9161 case $as_dir in #(((
9164 *) as_dir=$as_dir/ ;;
9166 for ac_exec_ext in '' $ac_executable_extensions; do
9167 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9168 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9169 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9178 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9179 if test -n "$ac_ct_OBJDUMP"; then
9180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9181 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
9183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9184 printf "%s\n" "no" >&6; }
9187 if test "x$ac_ct_OBJDUMP" = x; then
9190 case $cross_compiling:$ac_tool_warned in
9192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9193 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9194 ac_tool_warned=yes ;;
9196 OBJDUMP=$ac_ct_OBJDUMP
9199 OBJDUMP="$ac_cv_prog_OBJDUMP"
9202 test -z "$OBJDUMP" && OBJDUMP=objdump
9209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9210 printf %s "checking how to recognize dependent libraries... " >&6; }
9211 if test ${lt_cv_deplibs_check_method+y}
9213 printf %s "(cached) " >&6
9215 lt_cv_file_magic_cmd='$MAGIC_CMD'
9216 lt_cv_file_magic_test_file=
9217 lt_cv_deplibs_check_method='unknown'
9218 # Need to set the preceding variable on all platforms that support
9219 # interlibrary dependencies.
9220 # 'none' -- dependencies not supported.
9221 # 'unknown' -- same as none, but documents that we really don't know.
9222 # 'pass_all' -- all dependencies passed with no checks.
9223 # 'test_compile' -- check by making test program.
9224 # 'file_magic [[regex]]' -- check by looking for files in library path
9225 # that responds to the $file_magic_cmd with a given extended regex.
9226 # If you have 'file' or equivalent on your system and you're not sure
9227 # whether 'pass_all' will *always* work, you probably want this one.
9231 lt_cv_deplibs_check_method=pass_all
9235 lt_cv_deplibs_check_method=pass_all
9239 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9240 lt_cv_file_magic_cmd='$FILECMD -L'
9241 lt_cv_file_magic_test_file=/shlib/libc.so
9245 # func_win32_libid is a shell function defined in ltmain.sh
9246 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9247 lt_cv_file_magic_cmd='func_win32_libid'
9251 # Base MSYS/MinGW do not provide the 'file' command needed by
9252 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9253 # unless we find 'file', for example because we are cross-compiling.
9254 if ( file / ) >/dev/null 2>&1; then
9255 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9256 lt_cv_file_magic_cmd='func_win32_libid'
9258 # Keep this pattern in sync with the one in func_win32_libid.
9259 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
9260 lt_cv_file_magic_cmd='$OBJDUMP -f'
9265 # use the weaker test based on 'objdump'. See mingw*.
9266 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9267 lt_cv_file_magic_cmd='$OBJDUMP -f'
9270 darwin* | rhapsody*)
9271 lt_cv_deplibs_check_method=pass_all
9274 freebsd* | dragonfly* | midnightbsd*)
9275 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9278 # Not sure whether the presence of OpenBSD here was a mistake.
9279 # Let's accept both of them until this is cleared up.
9280 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9281 lt_cv_file_magic_cmd=$FILECMD
9282 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9286 lt_cv_deplibs_check_method=pass_all
9291 lt_cv_deplibs_check_method=pass_all
9294 hpux10.20* | hpux11*)
9295 lt_cv_file_magic_cmd=$FILECMD
9298 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9299 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9302 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]'
9303 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9306 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9307 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9313 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9314 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9317 irix5* | irix6* | nonstopux*)
9319 *-32|*"-32 ") libmagic=32-bit;;
9320 *-n32|*"-n32 ") libmagic=N32;;
9321 *-64|*"-64 ") libmagic=64-bit;;
9322 *) libmagic=never-match;;
9324 lt_cv_deplibs_check_method=pass_all
9327 # This must be glibc/ELF.
9328 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
9329 lt_cv_deplibs_check_method=pass_all
9332 netbsd* | netbsdelf*-gnu)
9333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9334 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9336 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9341 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9342 lt_cv_file_magic_cmd=$FILECMD
9343 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9347 lt_cv_deplibs_check_method=pass_all
9351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
9352 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9354 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9358 osf3* | osf4* | osf5*)
9359 lt_cv_deplibs_check_method=pass_all
9363 lt_cv_deplibs_check_method=pass_all
9367 lt_cv_deplibs_check_method=pass_all
9370 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9371 lt_cv_deplibs_check_method=pass_all
9375 case $host_vendor in
9377 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]'
9378 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9381 lt_cv_deplibs_check_method=pass_all
9384 lt_cv_file_magic_cmd='/bin/file'
9385 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9388 lt_cv_file_magic_cmd='/bin/file'
9389 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9390 lt_cv_file_magic_test_file=/lib/libc.so
9393 lt_cv_deplibs_check_method=pass_all
9396 lt_cv_deplibs_check_method=pass_all
9402 lt_cv_deplibs_check_method=pass_all
9405 lt_cv_deplibs_check_method=pass_all
9410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9411 printf "%s\n" "$lt_cv_deplibs_check_method" >&6; }
9415 if test "$build" = "$host"; then
9418 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9421 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9427 file_magic_cmd=$lt_cv_file_magic_cmd
9428 deplibs_check_method=$lt_cv_deplibs_check_method
9429 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9452 if test -n "$ac_tool_prefix"; then
9453 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9454 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9456 printf %s "checking for $ac_word... " >&6; }
9457 if test ${ac_cv_prog_DLLTOOL+y}
9459 printf %s "(cached) " >&6
9461 if test -n "$DLLTOOL"; then
9462 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9468 case $as_dir in #(((
9471 *) as_dir=$as_dir/ ;;
9473 for ac_exec_ext in '' $ac_executable_extensions; do
9474 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9475 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9476 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9485 DLLTOOL=$ac_cv_prog_DLLTOOL
9486 if test -n "$DLLTOOL"; then
9487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9488 printf "%s\n" "$DLLTOOL" >&6; }
9490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9491 printf "%s\n" "no" >&6; }
9496 if test -z "$ac_cv_prog_DLLTOOL"; then
9497 ac_ct_DLLTOOL=$DLLTOOL
9498 # Extract the first word of "dlltool", so it can be a program name with args.
9499 set dummy dlltool; ac_word=$2
9500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 printf %s "checking for $ac_word... " >&6; }
9502 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
9504 printf %s "(cached) " >&6
9506 if test -n "$ac_ct_DLLTOOL"; then
9507 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9513 case $as_dir in #(((
9516 *) as_dir=$as_dir/ ;;
9518 for ac_exec_ext in '' $ac_executable_extensions; do
9519 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9520 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9521 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9530 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9531 if test -n "$ac_ct_DLLTOOL"; then
9532 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9533 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
9535 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 printf "%s\n" "no" >&6; }
9539 if test "x$ac_ct_DLLTOOL" = x; then
9542 case $cross_compiling:$ac_tool_warned in
9544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9545 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9546 ac_tool_warned=yes ;;
9548 DLLTOOL=$ac_ct_DLLTOOL
9551 DLLTOOL="$ac_cv_prog_DLLTOOL"
9554 test -z "$DLLTOOL" && DLLTOOL=dlltool
9562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9563 printf %s "checking how to associate runtime and link libraries... " >&6; }
9564 if test ${lt_cv_sharedlib_from_linklib_cmd+y}
9566 printf %s "(cached) " >&6
9568 lt_cv_sharedlib_from_linklib_cmd='unknown'
9571 cygwin* | mingw* | pw32* | cegcc*)
9572 # two different shell functions defined in ltmain.sh;
9573 # decide which one to use based on capabilities of $DLLTOOL
9574 case `$DLLTOOL --help 2>&1` in
9575 *--identify-strict*)
9576 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9579 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9584 # fallback: assume linklib IS sharedlib
9585 lt_cv_sharedlib_from_linklib_cmd=$ECHO
9590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9591 printf "%s\n" "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9592 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9593 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9601 if test -n "$ac_tool_prefix"; then
9604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9607 printf %s "checking for $ac_word... " >&6; }
9608 if test ${ac_cv_prog_AR+y}
9610 printf %s "(cached) " >&6
9612 if test -n "$AR"; then
9613 ac_cv_prog_AR="$AR" # Let the user override the test.
9615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9619 case $as_dir in #(((
9622 *) as_dir=$as_dir/ ;;
9624 for ac_exec_ext in '' $ac_executable_extensions; do
9625 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9626 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9627 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9637 if test -n "$AR"; then
9638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9639 printf "%s\n" "$AR" >&6; }
9641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9642 printf "%s\n" "no" >&6; }
9646 test -n "$AR" && break
9649 if test -z "$AR"; then
9653 # Extract the first word of "$ac_prog", so it can be a program name with args.
9654 set dummy $ac_prog; ac_word=$2
9655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9656 printf %s "checking for $ac_word... " >&6; }
9657 if test ${ac_cv_prog_ac_ct_AR+y}
9659 printf %s "(cached) " >&6
9661 if test -n "$ac_ct_AR"; then
9662 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9668 case $as_dir in #(((
9671 *) as_dir=$as_dir/ ;;
9673 for ac_exec_ext in '' $ac_executable_extensions; do
9674 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9675 ac_cv_prog_ac_ct_AR="$ac_prog"
9676 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9685 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9686 if test -n "$ac_ct_AR"; then
9687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9688 printf "%s\n" "$ac_ct_AR" >&6; }
9690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9691 printf "%s\n" "no" >&6; }
9695 test -n "$ac_ct_AR" && break
9698 if test "x$ac_ct_AR" = x; then
9701 case $cross_compiling:$ac_tool_warned in
9703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9704 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9705 ac_tool_warned=yes ;;
9718 # Use ARFLAGS variable as AR's operation code to sync the variable naming with
9719 # Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have
9720 # higher priority because thats what people were doing historically (setting
9721 # ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS
9722 # variable obsoleted/removed.
9724 test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr}
9725 lt_ar_flags=$AR_FLAGS
9732 # Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override
9733 # by AR_FLAGS because that was never working and AR_FLAGS is about to die.
9740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9741 printf %s "checking for archiver @FILE support... " >&6; }
9742 if test ${lt_cv_ar_at_file+y}
9744 printf %s "(cached) " >&6
9747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9748 /* end confdefs.h. */
9757 if ac_fn_c_try_compile "$LINENO"
9759 echo conftest.$ac_objext > conftest.lst
9760 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9761 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9762 (eval $lt_ar_try) 2>&5
9764 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9765 test $ac_status = 0; }
9766 if test 0 -eq "$ac_status"; then
9767 # Ensure the archiver fails upon bogus file names.
9768 rm -f conftest.$ac_objext libconftest.a
9769 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9770 (eval $lt_ar_try) 2>&5
9772 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9773 test $ac_status = 0; }
9774 if test 0 -ne "$ac_status"; then
9778 rm -f conftest.* libconftest.a
9781 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
9784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9785 printf "%s\n" "$lt_cv_ar_at_file" >&6; }
9787 if test no = "$lt_cv_ar_at_file"; then
9790 archiver_list_spec=$lt_cv_ar_at_file
9799 if test -n "$ac_tool_prefix"; then
9800 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9801 set dummy ${ac_tool_prefix}strip; ac_word=$2
9802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9803 printf %s "checking for $ac_word... " >&6; }
9804 if test ${ac_cv_prog_STRIP+y}
9806 printf %s "(cached) " >&6
9808 if test -n "$STRIP"; then
9809 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9815 case $as_dir in #(((
9818 *) as_dir=$as_dir/ ;;
9820 for ac_exec_ext in '' $ac_executable_extensions; do
9821 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9822 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9823 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9832 STRIP=$ac_cv_prog_STRIP
9833 if test -n "$STRIP"; then
9834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9835 printf "%s\n" "$STRIP" >&6; }
9837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9838 printf "%s\n" "no" >&6; }
9843 if test -z "$ac_cv_prog_STRIP"; then
9845 # Extract the first word of "strip", so it can be a program name with args.
9846 set dummy strip; ac_word=$2
9847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9848 printf %s "checking for $ac_word... " >&6; }
9849 if test ${ac_cv_prog_ac_ct_STRIP+y}
9851 printf %s "(cached) " >&6
9853 if test -n "$ac_ct_STRIP"; then
9854 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9860 case $as_dir in #(((
9863 *) as_dir=$as_dir/ ;;
9865 for ac_exec_ext in '' $ac_executable_extensions; do
9866 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9867 ac_cv_prog_ac_ct_STRIP="strip"
9868 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9877 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9878 if test -n "$ac_ct_STRIP"; then
9879 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9880 printf "%s\n" "$ac_ct_STRIP" >&6; }
9882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9883 printf "%s\n" "no" >&6; }
9886 if test "x$ac_ct_STRIP" = x; then
9889 case $cross_compiling:$ac_tool_warned in
9891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9892 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9893 ac_tool_warned=yes ;;
9898 STRIP="$ac_cv_prog_STRIP"
9901 test -z "$STRIP" && STRIP=:
9908 if test -n "$ac_tool_prefix"; then
9909 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9910 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9912 printf %s "checking for $ac_word... " >&6; }
9913 if test ${ac_cv_prog_RANLIB+y}
9915 printf %s "(cached) " >&6
9917 if test -n "$RANLIB"; then
9918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9924 case $as_dir in #(((
9927 *) as_dir=$as_dir/ ;;
9929 for ac_exec_ext in '' $ac_executable_extensions; do
9930 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9931 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9932 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9941 RANLIB=$ac_cv_prog_RANLIB
9942 if test -n "$RANLIB"; then
9943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9944 printf "%s\n" "$RANLIB" >&6; }
9946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 printf "%s\n" "no" >&6; }
9952 if test -z "$ac_cv_prog_RANLIB"; then
9953 ac_ct_RANLIB=$RANLIB
9954 # Extract the first word of "ranlib", so it can be a program name with args.
9955 set dummy ranlib; ac_word=$2
9956 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9957 printf %s "checking for $ac_word... " >&6; }
9958 if test ${ac_cv_prog_ac_ct_RANLIB+y}
9960 printf %s "(cached) " >&6
9962 if test -n "$ac_ct_RANLIB"; then
9963 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9969 case $as_dir in #(((
9972 *) as_dir=$as_dir/ ;;
9974 for ac_exec_ext in '' $ac_executable_extensions; do
9975 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
9976 ac_cv_prog_ac_ct_RANLIB="ranlib"
9977 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
9986 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9987 if test -n "$ac_ct_RANLIB"; then
9988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9989 printf "%s\n" "$ac_ct_RANLIB" >&6; }
9991 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
9992 printf "%s\n" "no" >&6; }
9995 if test "x$ac_ct_RANLIB" = x; then
9998 case $cross_compiling:$ac_tool_warned in
10000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10001 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10002 ac_tool_warned=yes ;;
10004 RANLIB=$ac_ct_RANLIB
10007 RANLIB="$ac_cv_prog_RANLIB"
10010 test -z "$RANLIB" && RANLIB=:
10017 # Determine commands to create old-style static archives.
10018 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
10019 old_postinstall_cmds='chmod 644 $oldlib'
10020 old_postuninstall_cmds=
10022 if test -n "$RANLIB"; then
10024 bitrig* | openbsd*)
10025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
10028 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
10031 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
10036 lock_old_archive_extraction=yes ;;
10038 lock_old_archive_extraction=no ;;
10079 # If no C compiler was specified, use CC.
10082 # If no C compiler flags were specified, use CFLAGS.
10083 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10085 # Allow CC to be a program name with arguments.
10089 # Check for command to grab the raw symbol name followed by C symbol from nm.
10090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
10091 printf %s "checking command to parse $NM output from $compiler object... " >&6; }
10092 if test ${lt_cv_sys_global_symbol_pipe+y}
10094 printf %s "(cached) " >&6
10097 # These are sane defaults that work on at least a few old systems.
10098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10100 # Character class describing NM global symbol codes.
10101 symcode='[BCDEGRST]'
10103 # Regexp to match symbols that can be accessed directly from C.
10104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10106 # Define system-specific variables.
10111 cygwin* | mingw* | pw32* | cegcc*)
10112 symcode='[ABCDGISTW]'
10115 if test ia64 = "$host_cpu"; then
10116 symcode='[ABCDEGRST]'
10119 irix* | nonstopux*)
10120 symcode='[BCDEGRST]'
10123 symcode='[BCDEGQRST]'
10134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10142 # If we're using GNU nm, then use its standard symbol codes.
10143 case `$NM -V 2>&1` in
10144 *GNU* | *'with BFD'*)
10145 symcode='[ABCDGIRSTW]' ;;
10148 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10149 # Gets list of data symbols to import.
10150 lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'"
10151 # Adjust the below global symbol transforms to fixup imported variables.
10152 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
10153 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'"
10154 lt_c_name_lib_hook="\
10155 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\
10156 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'"
10158 # Disable hooks by default.
10159 lt_cv_sys_global_symbol_to_import=
10162 lt_c_name_lib_hook=
10165 # Transform an extracted symbol line into a proper C declaration.
10166 # Some systems (esp. on ia64) link data and code symbols differently,
10167 # so use this general approach.
10168 lt_cv_sys_global_symbol_to_cdecl="$SED -n"\
10170 " -e 's/^T .* \(.*\)$/extern int \1();/p'"\
10171 " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
10173 # Transform an extracted symbol line into symbol name and symbol address
10174 lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\
10176 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10177 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'"
10179 # Transform an extracted symbol line into symbol name with lib prefix and
10181 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\
10182 $lt_c_name_lib_hook\
10183 " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\
10184 " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\
10185 " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'"
10187 # Handle CRLF in mingw tool chain
10191 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10195 # Try without a prefix underscore, then with it.
10196 for ac_symprfx in "" "_"; do
10198 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10199 symxfrm="\\1 $ac_symprfx\\2 \\2"
10201 # Write the raw and C identifiers.
10202 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10203 # Fake it for dumpbin and say T for any non-static function,
10204 # D for any global variable and I for any imported variable.
10205 # Also find C++ and __fastcall symbols from MSVC++ or ICC,
10206 # which start with @ or ?.
10207 lt_cv_sys_global_symbol_pipe="$AWK '"\
10208 " {last_section=section; section=\$ 3};"\
10209 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
10210 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
10211 " /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
10212 " /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
10213 " /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
10214 " \$ 0!~/External *\|/{next};"\
10215 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
10216 " {if(hide[section]) next};"\
10217 " {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
10218 " {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
10219 " s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
10220 " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
10221 " ' prfx=^$ac_symprfx"
10223 lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10225 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'"
10227 # Check to see that the pipe works correctly.
10231 cat > conftest.$ac_ext <<_LT_EOF
10236 void nm_test_func(void);
10237 void nm_test_func(void){}
10241 int main(){nm_test_var='a';nm_test_func();return(0);}
10244 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10245 (eval $ac_compile) 2>&5
10247 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; }; then
10249 # Now try to grab the symbols.
10251 $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
10252 if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
10253 # Try sorting and uniquifying the output.
10254 if sort "$nlist" | uniq > "$nlist"T; then
10255 mv -f "$nlist"T "$nlist"
10260 # Make sure that we snagged all the symbols we need.
10261 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10262 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10263 cat <<_LT_EOF > conftest.$ac_ext
10264 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
10265 #if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
10266 /* DATA imports from DLLs on WIN32 can't be const, because runtime
10267 relocations are performed -- see ld's documentation on pseudo-relocs. */
10268 # define LT_DLSYM_CONST
10269 #elif defined __osf__
10270 /* This system does not cope well with relocations in const data. */
10271 # define LT_DLSYM_CONST
10273 # define LT_DLSYM_CONST const
10281 # Now generate the symbol file.
10282 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10284 cat <<_LT_EOF >> conftest.$ac_ext
10286 /* The mapping between symbol names and symbols. */
10287 LT_DLSYM_CONST struct {
10291 lt__PROGRAM__LTX_preloaded_symbols[] =
10293 { "@PROGRAM@", (void *) 0 },
10295 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10296 cat <<\_LT_EOF >> conftest.$ac_ext
10300 /* This works around a problem in FreeBSD linker */
10301 #ifdef FREEBSD_WORKAROUND
10302 static const void *lt_preloaded_setup() {
10303 return lt__PROGRAM__LTX_preloaded_symbols;
10311 # Now try linking the two files.
10312 mv conftest.$ac_objext conftstm.$ac_objext
10313 lt_globsym_save_LIBS=$LIBS
10314 lt_globsym_save_CFLAGS=$CFLAGS
10315 LIBS=conftstm.$ac_objext
10316 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10318 (eval $ac_link) 2>&5
10320 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10321 test $ac_status = 0; } && test -s conftest$ac_exeext; then
10324 LIBS=$lt_globsym_save_LIBS
10325 CFLAGS=$lt_globsym_save_CFLAGS
10327 echo "cannot find nm_test_func in $nlist" >&5
10330 echo "cannot find nm_test_var in $nlist" >&5
10333 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10336 echo "$progname: failed program was:" >&5
10337 cat conftest.$ac_ext >&5
10339 rm -rf conftest* conftst*
10341 # Do not use the global_symbol_pipe unless it works.
10342 if test yes = "$pipe_works"; then
10345 lt_cv_sys_global_symbol_pipe=
10351 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10352 lt_cv_sys_global_symbol_to_cdecl=
10354 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10356 printf "%s\n" "failed" >&6; }
10358 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10359 printf "%s\n" "ok" >&6; }
10362 # Response file support.
10363 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
10364 nm_file_list_spec='@'
10365 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
10366 nm_file_list_spec='@'
10405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
10406 printf %s "checking for sysroot... " >&6; }
10408 # Check whether --with-sysroot was given.
10409 if test ${with_sysroot+y}
10411 withval=$with_sysroot;
10418 case $with_sysroot in #(
10420 if test yes = "$GCC"; then
10421 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
10425 lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"`
10430 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
10431 printf "%s\n" "$with_sysroot" >&6; }
10432 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
10436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
10437 printf "%s\n" "${lt_sysroot:-no}" >&6; }
10443 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
10444 printf %s "checking for a working dd... " >&6; }
10445 if test ${ac_cv_path_lt_DD+y}
10447 printf %s "(cached) " >&6
10449 printf 0123456789abcdef0123456789abcdef >conftest.i
10450 cat conftest.i conftest.i >conftest2.i
10452 if test -z "$lt_DD"; then
10453 ac_path_lt_DD_found=false
10454 # Loop through the user's path and test for each of PROGNAME-LIST
10455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10456 for as_dir in $PATH
10459 case $as_dir in #(((
10462 *) as_dir=$as_dir/ ;;
10466 for ac_exec_ext in '' $ac_executable_extensions; do
10467 ac_path_lt_DD="$as_dir$ac_prog$ac_exec_ext"
10468 as_fn_executable_p "$ac_path_lt_DD" || continue
10469 if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10470 cmp -s conftest.i conftest.out \
10471 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
10473 $ac_path_lt_DD_found && break 3
10478 if test -z "$ac_cv_path_lt_DD"; then
10482 ac_cv_path_lt_DD=$lt_DD
10485 rm -f conftest.i conftest2.i conftest.out
10487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
10488 printf "%s\n" "$ac_cv_path_lt_DD" >&6; }
10491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
10492 printf %s "checking how to truncate binary pipes... " >&6; }
10493 if test ${lt_cv_truncate_bin+y}
10495 printf %s "(cached) " >&6
10497 printf 0123456789abcdef0123456789abcdef >conftest.i
10498 cat conftest.i conftest.i >conftest2.i
10499 lt_cv_truncate_bin=
10500 if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
10501 cmp -s conftest.i conftest.out \
10502 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
10504 rm -f conftest.i conftest2.i conftest.out
10505 test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
10507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
10508 printf "%s\n" "$lt_cv_truncate_bin" >&6; }
10516 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
10517 func_cc_basename ()
10519 for cc_temp in $*""; do
10521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10527 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
10530 # Check whether --enable-libtool-lock was given.
10531 if test ${enable_libtool_lock+y}
10533 enableval=$enable_libtool_lock;
10536 test no = "$enable_libtool_lock" || enable_libtool_lock=yes
10538 # Some flags need to be propagated to the compiler or linker for good
10542 # Find out what ABI is being produced by ac_compile, and set mode
10543 # options accordingly.
10544 echo 'int i;' > conftest.$ac_ext
10545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10546 (eval $ac_compile) 2>&5
10548 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10549 test $ac_status = 0; }; then
10550 case `$FILECMD conftest.$ac_objext` in
10562 # Find out what ABI is being produced by ac_compile, and set linker
10563 # options accordingly.
10564 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10566 (eval $ac_compile) 2>&5
10568 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10569 test $ac_status = 0; }; then
10570 if test yes = "$lt_cv_prog_gnu_ld"; then
10571 case `$FILECMD conftest.$ac_objext` in
10573 LD="${LD-ld} -melf32bsmip"
10576 LD="${LD-ld} -melf32bmipn32"
10579 LD="${LD-ld} -melf64bmip"
10583 case `$FILECMD conftest.$ac_objext` in
10600 # Find out what ABI is being produced by ac_compile, and set linker
10601 # options accordingly.
10602 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10603 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10604 (eval $ac_compile) 2>&5
10606 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10607 test $ac_status = 0; }; then
10609 case `$FILECMD conftest.$ac_objext` in
10617 case `$FILECMD conftest.$ac_objext` in
10619 emul="${emul}btsmip"
10622 emul="${emul}ltsmip"
10625 case `$FILECMD conftest.$ac_objext` in
10630 LD="${LD-ld} -m $emul"
10635 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10636 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10637 # Find out what ABI is being produced by ac_compile, and set linker
10638 # options accordingly. Note that the listed cases only cover the
10639 # situations where additional linker options are needed (such as when
10640 # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10641 # vice versa); the common cases where no linker options are needed do
10642 # not appear in the list.
10643 echo 'int i;' > conftest.$ac_ext
10644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10645 (eval $ac_compile) 2>&5
10647 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10648 test $ac_status = 0; }; then
10649 case `$FILECMD conftest.o` in
10652 x86_64-*kfreebsd*-gnu)
10653 LD="${LD-ld} -m elf_i386_fbsd"
10656 case `$FILECMD conftest.o` in
10658 LD="${LD-ld} -m elf32_x86_64"
10661 LD="${LD-ld} -m elf_i386"
10665 powerpc64le-*linux*)
10666 LD="${LD-ld} -m elf32lppclinux"
10669 LD="${LD-ld} -m elf32ppclinux"
10672 LD="${LD-ld} -m elf_s390"
10675 LD="${LD-ld} -m elf32_sparc"
10681 x86_64-*kfreebsd*-gnu)
10682 LD="${LD-ld} -m elf_x86_64_fbsd"
10685 LD="${LD-ld} -m elf_x86_64"
10688 LD="${LD-ld} -m elf64lppc"
10691 LD="${LD-ld} -m elf64ppc"
10693 s390*-*linux*|s390*-*tpf*)
10694 LD="${LD-ld} -m elf64_s390"
10697 LD="${LD-ld} -m elf64_sparc"
10707 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10708 SAVE_CFLAGS=$CFLAGS
10709 CFLAGS="$CFLAGS -belf"
10710 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10711 printf %s "checking whether the C compiler needs -belf... " >&6; }
10712 if test ${lt_cv_cc_needs_belf+y}
10714 printf %s "(cached) " >&6
10717 ac_cpp='$CPP $CPPFLAGS'
10718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10723 /* end confdefs.h. */
10732 if ac_fn_c_try_link "$LINENO"
10734 lt_cv_cc_needs_belf=yes
10736 lt_cv_cc_needs_belf=no
10738 rm -f core conftest.err conftest.$ac_objext conftest.beam \
10739 conftest$ac_exeext conftest.$ac_ext
10741 ac_cpp='$CPP $CPPFLAGS'
10742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10748 printf "%s\n" "$lt_cv_cc_needs_belf" >&6; }
10749 if test yes != "$lt_cv_cc_needs_belf"; then
10750 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10751 CFLAGS=$SAVE_CFLAGS
10755 # Find out what ABI is being produced by ac_compile, and set linker
10756 # options accordingly.
10757 echo 'int i;' > conftest.$ac_ext
10758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10759 (eval $ac_compile) 2>&5
10761 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10762 test $ac_status = 0; }; then
10763 case `$FILECMD conftest.o` in
10765 case $lt_cv_prog_gnu_ld in
10768 i?86-*-solaris*|x86_64-*-solaris*)
10769 LD="${LD-ld} -m elf_x86_64"
10772 LD="${LD-ld} -m elf64_sparc"
10775 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10776 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10781 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10793 need_locks=$enable_libtool_lock
10795 if test -n "$ac_tool_prefix"; then
10796 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10797 set dummy ${ac_tool_prefix}mt; ac_word=$2
10798 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10799 printf %s "checking for $ac_word... " >&6; }
10800 if test ${ac_cv_prog_MANIFEST_TOOL+y}
10802 printf %s "(cached) " >&6
10804 if test -n "$MANIFEST_TOOL"; then
10805 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10808 for as_dir in $PATH
10811 case $as_dir in #(((
10814 *) as_dir=$as_dir/ ;;
10816 for ac_exec_ext in '' $ac_executable_extensions; do
10817 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10818 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10819 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10828 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10829 if test -n "$MANIFEST_TOOL"; then
10830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10831 printf "%s\n" "$MANIFEST_TOOL" >&6; }
10833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10834 printf "%s\n" "no" >&6; }
10839 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10840 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10841 # Extract the first word of "mt", so it can be a program name with args.
10842 set dummy mt; ac_word=$2
10843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10844 printf %s "checking for $ac_word... " >&6; }
10845 if test ${ac_cv_prog_ac_ct_MANIFEST_TOOL+y}
10847 printf %s "(cached) " >&6
10849 if test -n "$ac_ct_MANIFEST_TOOL"; then
10850 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10853 for as_dir in $PATH
10856 case $as_dir in #(((
10859 *) as_dir=$as_dir/ ;;
10861 for ac_exec_ext in '' $ac_executable_extensions; do
10862 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10863 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10864 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10873 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10874 if test -n "$ac_ct_MANIFEST_TOOL"; then
10875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10876 printf "%s\n" "$ac_ct_MANIFEST_TOOL" >&6; }
10878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10879 printf "%s\n" "no" >&6; }
10882 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10885 case $cross_compiling:$ac_tool_warned in
10887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10888 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10889 ac_tool_warned=yes ;;
10891 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10894 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10897 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10899 printf %s "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10900 if test ${lt_cv_path_mainfest_tool+y}
10902 printf %s "(cached) " >&6
10904 lt_cv_path_mainfest_tool=no
10905 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10906 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10907 cat conftest.err >&5
10908 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10909 lt_cv_path_mainfest_tool=yes
10913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10914 printf "%s\n" "$lt_cv_path_mainfest_tool" >&6; }
10915 if test yes != "$lt_cv_path_mainfest_tool"; then
10925 rhapsody* | darwin*)
10926 if test -n "$ac_tool_prefix"; then
10927 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10928 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10930 printf %s "checking for $ac_word... " >&6; }
10931 if test ${ac_cv_prog_DSYMUTIL+y}
10933 printf %s "(cached) " >&6
10935 if test -n "$DSYMUTIL"; then
10936 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10942 case $as_dir in #(((
10945 *) as_dir=$as_dir/ ;;
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10950 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
10959 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10960 if test -n "$DSYMUTIL"; then
10961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10962 printf "%s\n" "$DSYMUTIL" >&6; }
10964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
10965 printf "%s\n" "no" >&6; }
10970 if test -z "$ac_cv_prog_DSYMUTIL"; then
10971 ac_ct_DSYMUTIL=$DSYMUTIL
10972 # Extract the first word of "dsymutil", so it can be a program name with args.
10973 set dummy dsymutil; ac_word=$2
10974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 printf %s "checking for $ac_word... " >&6; }
10976 if test ${ac_cv_prog_ac_ct_DSYMUTIL+y}
10978 printf %s "(cached) " >&6
10980 if test -n "$ac_ct_DSYMUTIL"; then
10981 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10984 for as_dir in $PATH
10987 case $as_dir in #(((
10990 *) as_dir=$as_dir/ ;;
10992 for ac_exec_ext in '' $ac_executable_extensions; do
10993 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
10994 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10995 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11004 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
11005 if test -n "$ac_ct_DSYMUTIL"; then
11006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
11007 printf "%s\n" "$ac_ct_DSYMUTIL" >&6; }
11009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11010 printf "%s\n" "no" >&6; }
11013 if test "x$ac_ct_DSYMUTIL" = x; then
11016 case $cross_compiling:$ac_tool_warned in
11018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11019 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11020 ac_tool_warned=yes ;;
11022 DSYMUTIL=$ac_ct_DSYMUTIL
11025 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
11028 if test -n "$ac_tool_prefix"; then
11029 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
11030 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
11031 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11032 printf %s "checking for $ac_word... " >&6; }
11033 if test ${ac_cv_prog_NMEDIT+y}
11035 printf %s "(cached) " >&6
11037 if test -n "$NMEDIT"; then
11038 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
11040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11041 for as_dir in $PATH
11044 case $as_dir in #(((
11047 *) as_dir=$as_dir/ ;;
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
11052 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11061 NMEDIT=$ac_cv_prog_NMEDIT
11062 if test -n "$NMEDIT"; then
11063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
11064 printf "%s\n" "$NMEDIT" >&6; }
11066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11067 printf "%s\n" "no" >&6; }
11072 if test -z "$ac_cv_prog_NMEDIT"; then
11073 ac_ct_NMEDIT=$NMEDIT
11074 # Extract the first word of "nmedit", so it can be a program name with args.
11075 set dummy nmedit; ac_word=$2
11076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11077 printf %s "checking for $ac_word... " >&6; }
11078 if test ${ac_cv_prog_ac_ct_NMEDIT+y}
11080 printf %s "(cached) " >&6
11082 if test -n "$ac_ct_NMEDIT"; then
11083 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11089 case $as_dir in #(((
11092 *) as_dir=$as_dir/ ;;
11094 for ac_exec_ext in '' $ac_executable_extensions; do
11095 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11096 ac_cv_prog_ac_ct_NMEDIT="nmedit"
11097 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11106 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
11107 if test -n "$ac_ct_NMEDIT"; then
11108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
11109 printf "%s\n" "$ac_ct_NMEDIT" >&6; }
11111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11112 printf "%s\n" "no" >&6; }
11115 if test "x$ac_ct_NMEDIT" = x; then
11118 case $cross_compiling:$ac_tool_warned in
11120 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11121 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11122 ac_tool_warned=yes ;;
11124 NMEDIT=$ac_ct_NMEDIT
11127 NMEDIT="$ac_cv_prog_NMEDIT"
11130 if test -n "$ac_tool_prefix"; then
11131 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
11132 set dummy ${ac_tool_prefix}lipo; ac_word=$2
11133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11134 printf %s "checking for $ac_word... " >&6; }
11135 if test ${ac_cv_prog_LIPO+y}
11137 printf %s "(cached) " >&6
11139 if test -n "$LIPO"; then
11140 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11143 for as_dir in $PATH
11146 case $as_dir in #(((
11149 *) as_dir=$as_dir/ ;;
11151 for ac_exec_ext in '' $ac_executable_extensions; do
11152 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11153 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
11154 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11163 LIPO=$ac_cv_prog_LIPO
11164 if test -n "$LIPO"; then
11165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11166 printf "%s\n" "$LIPO" >&6; }
11168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11169 printf "%s\n" "no" >&6; }
11174 if test -z "$ac_cv_prog_LIPO"; then
11176 # Extract the first word of "lipo", so it can be a program name with args.
11177 set dummy lipo; ac_word=$2
11178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11179 printf %s "checking for $ac_word... " >&6; }
11180 if test ${ac_cv_prog_ac_ct_LIPO+y}
11182 printf %s "(cached) " >&6
11184 if test -n "$ac_ct_LIPO"; then
11185 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
11187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11188 for as_dir in $PATH
11191 case $as_dir in #(((
11194 *) 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_ac_ct_LIPO="lipo"
11199 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11208 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
11209 if test -n "$ac_ct_LIPO"; then
11210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
11211 printf "%s\n" "$ac_ct_LIPO" >&6; }
11213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11214 printf "%s\n" "no" >&6; }
11217 if test "x$ac_ct_LIPO" = x; then
11220 case $cross_compiling:$ac_tool_warned in
11222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11223 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11224 ac_tool_warned=yes ;;
11229 LIPO="$ac_cv_prog_LIPO"
11232 if test -n "$ac_tool_prefix"; then
11233 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
11234 set dummy ${ac_tool_prefix}otool; ac_word=$2
11235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11236 printf %s "checking for $ac_word... " >&6; }
11237 if test ${ac_cv_prog_OTOOL+y}
11239 printf %s "(cached) " >&6
11241 if test -n "$OTOOL"; then
11242 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11248 case $as_dir in #(((
11251 *) as_dir=$as_dir/ ;;
11253 for ac_exec_ext in '' $ac_executable_extensions; do
11254 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11255 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
11256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11265 OTOOL=$ac_cv_prog_OTOOL
11266 if test -n "$OTOOL"; then
11267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
11268 printf "%s\n" "$OTOOL" >&6; }
11270 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11271 printf "%s\n" "no" >&6; }
11276 if test -z "$ac_cv_prog_OTOOL"; then
11278 # Extract the first word of "otool", so it can be a program name with args.
11279 set dummy otool; ac_word=$2
11280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281 printf %s "checking for $ac_word... " >&6; }
11282 if test ${ac_cv_prog_ac_ct_OTOOL+y}
11284 printf %s "(cached) " >&6
11286 if test -n "$ac_ct_OTOOL"; then
11287 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
11289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11290 for as_dir in $PATH
11293 case $as_dir in #(((
11296 *) as_dir=$as_dir/ ;;
11298 for ac_exec_ext in '' $ac_executable_extensions; do
11299 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11300 ac_cv_prog_ac_ct_OTOOL="otool"
11301 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11310 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
11311 if test -n "$ac_ct_OTOOL"; then
11312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
11313 printf "%s\n" "$ac_ct_OTOOL" >&6; }
11315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11316 printf "%s\n" "no" >&6; }
11319 if test "x$ac_ct_OTOOL" = x; then
11322 case $cross_compiling:$ac_tool_warned in
11324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11325 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11326 ac_tool_warned=yes ;;
11331 OTOOL="$ac_cv_prog_OTOOL"
11334 if test -n "$ac_tool_prefix"; then
11335 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
11336 set dummy ${ac_tool_prefix}otool64; ac_word=$2
11337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11338 printf %s "checking for $ac_word... " >&6; }
11339 if test ${ac_cv_prog_OTOOL64+y}
11341 printf %s "(cached) " >&6
11343 if test -n "$OTOOL64"; then
11344 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
11346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11347 for as_dir in $PATH
11350 case $as_dir in #(((
11353 *) as_dir=$as_dir/ ;;
11355 for ac_exec_ext in '' $ac_executable_extensions; do
11356 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11357 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
11358 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11367 OTOOL64=$ac_cv_prog_OTOOL64
11368 if test -n "$OTOOL64"; then
11369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
11370 printf "%s\n" "$OTOOL64" >&6; }
11372 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11373 printf "%s\n" "no" >&6; }
11378 if test -z "$ac_cv_prog_OTOOL64"; then
11379 ac_ct_OTOOL64=$OTOOL64
11380 # Extract the first word of "otool64", so it can be a program name with args.
11381 set dummy otool64; ac_word=$2
11382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11383 printf %s "checking for $ac_word... " >&6; }
11384 if test ${ac_cv_prog_ac_ct_OTOOL64+y}
11386 printf %s "(cached) " >&6
11388 if test -n "$ac_ct_OTOOL64"; then
11389 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
11391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11392 for as_dir in $PATH
11395 case $as_dir in #(((
11398 *) as_dir=$as_dir/ ;;
11400 for ac_exec_ext in '' $ac_executable_extensions; do
11401 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11402 ac_cv_prog_ac_ct_OTOOL64="otool64"
11403 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11412 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
11413 if test -n "$ac_ct_OTOOL64"; then
11414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
11415 printf "%s\n" "$ac_ct_OTOOL64" >&6; }
11417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11418 printf "%s\n" "no" >&6; }
11421 if test "x$ac_ct_OTOOL64" = x; then
11424 case $cross_compiling:$ac_tool_warned in
11426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11427 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11428 ac_tool_warned=yes ;;
11430 OTOOL64=$ac_ct_OTOOL64
11433 OTOOL64="$ac_cv_prog_OTOOL64"
11462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
11463 printf %s "checking for -single_module linker flag... " >&6; }
11464 if test ${lt_cv_apple_cc_single_mod+y}
11466 printf %s "(cached) " >&6
11468 lt_cv_apple_cc_single_mod=no
11469 if test -z "$LT_MULTI_MODULE"; then
11470 # By default we will add the -single_module flag. You can override
11471 # by either setting the environment variable LT_MULTI_MODULE
11472 # non-empty at configure time, or by adding -multi_module to the
11474 rm -rf libconftest.dylib*
11475 echo "int foo(void){return 1;}" > conftest.c
11476 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11477 -dynamiclib -Wl,-single_module conftest.c" >&5
11478 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
11479 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
11481 # If there is a non-empty error log, and "single_module"
11482 # appears in it, assume the flag caused a linker warning
11483 if test -s conftest.err && $GREP single_module conftest.err; then
11484 cat conftest.err >&5
11485 # Otherwise, if the output was created with a 0 exit code from
11486 # the compiler, it worked.
11487 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
11488 lt_cv_apple_cc_single_mod=yes
11490 cat conftest.err >&5
11492 rm -rf libconftest.dylib*
11496 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
11497 printf "%s\n" "$lt_cv_apple_cc_single_mod" >&6; }
11499 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
11500 printf %s "checking for -exported_symbols_list linker flag... " >&6; }
11501 if test ${lt_cv_ld_exported_symbols_list+y}
11503 printf %s "(cached) " >&6
11505 lt_cv_ld_exported_symbols_list=no
11506 save_LDFLAGS=$LDFLAGS
11507 echo "_main" > conftest.sym
11508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
11509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11510 /* end confdefs.h. */
11519 if ac_fn_c_try_link "$LINENO"
11521 lt_cv_ld_exported_symbols_list=yes
11523 lt_cv_ld_exported_symbols_list=no
11525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
11526 conftest$ac_exeext conftest.$ac_ext
11527 LDFLAGS=$save_LDFLAGS
11530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
11531 printf "%s\n" "$lt_cv_ld_exported_symbols_list" >&6; }
11533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
11534 printf %s "checking for -force_load linker flag... " >&6; }
11535 if test ${lt_cv_ld_force_load+y}
11537 printf %s "(cached) " >&6
11539 lt_cv_ld_force_load=no
11540 cat > conftest.c << _LT_EOF
11541 int forced_loaded() { return 2;}
11543 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
11544 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
11545 echo "$AR $AR_FLAGS libconftest.a conftest.o" >&5
11546 $AR $AR_FLAGS libconftest.a conftest.o 2>&5
11547 echo "$RANLIB libconftest.a" >&5
11548 $RANLIB libconftest.a 2>&5
11549 cat > conftest.c << _LT_EOF
11550 int main() { return 0;}
11552 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
11553 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
11555 if test -s conftest.err && $GREP force_load conftest.err; then
11556 cat conftest.err >&5
11557 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
11558 lt_cv_ld_force_load=yes
11560 cat conftest.err >&5
11562 rm -f conftest.err libconftest.a conftest conftest.c
11563 rm -rf conftest.dSYM
11566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
11567 printf "%s\n" "$lt_cv_ld_force_load" >&6; }
11569 rhapsody* | darwin1.[012])
11570 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
11572 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11574 case $MACOSX_DEPLOYMENT_TARGET,$host in
11575 10.[012],*|,*powerpc*-darwin[5-8]*)
11576 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
11578 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
11582 if test yes = "$lt_cv_apple_cc_single_mod"; then
11583 _lt_dar_single_mod='$single_module'
11585 if test yes = "$lt_cv_ld_exported_symbols_list"; then
11586 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
11588 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
11590 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
11591 _lt_dsymutil='~$DSYMUTIL $lib || :'
11598 # func_munge_path_list VARIABLE PATH
11599 # -----------------------------------
11600 # VARIABLE is name of variable containing _space_ separated list of
11601 # directories to be munged by the contents of PATH, which is string
11604 # string "DIR[ DIR]" will be prepended to VARIABLE
11606 # string "DIR[ DIR]" will be appended to VARIABLE
11607 # "DIRP[:DIRP]::[DIRA:]DIRA"
11608 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11609 # "DIRA[ DIRA]" will be appended to VARIABLE
11611 # VARIABLE will be replaced by "DIR[ DIR]"
11612 func_munge_path_list ()
11618 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11621 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11624 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11625 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11628 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11633 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11635 if test "x$ac_cv_header_dlfcn_h" = xyes
11637 printf "%s\n" "#define HAVE_DLFCN_H 1" >>confdefs.h
11641 # ------------------------------------ #
11642 # Determine libtool default behavior #
11643 # ------------------------------------ #
11646 # Default behavior is to enable shared and static libraries on systems
11647 # where libtool knows how to build both library versions, and does not
11648 # require separate configuration and build runs for each flavor.
11651 xc_lt_want_enable_shared='yes'
11652 xc_lt_want_enable_static='yes'
11655 # User may have disabled shared or static libraries.
11657 case "x$enable_shared" in # (
11659 xc_lt_want_enable_shared='no'
11662 case "x$enable_static" in # (
11664 xc_lt_want_enable_static='no'
11667 if test "x$xc_lt_want_enable_shared" = 'xno' &&
11668 test "x$xc_lt_want_enable_static" = 'xno'; then
11669 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
11673 # Default behavior on systems that require independent configuration
11674 # and build runs for shared and static is to enable shared libraries
11675 # and disable static ones. On these systems option '--disable-shared'
11676 # must be used in order to build a proper static library.
11679 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
11680 test "x$xc_lt_want_enable_static" = 'xyes'; then
11681 case $host_os in # (
11682 pw32* | cegcc* | os2* | aix*)
11683 xc_lt_want_enable_static='no'
11689 # Make libtool aware of current shared and static library preferences
11690 # taking in account that, depending on host characteristics, libtool
11691 # may modify these option preferences later in this configure script.
11694 enable_shared=$xc_lt_want_enable_shared
11695 enable_static=$xc_lt_want_enable_static
11698 # Default behavior is to build PIC objects for shared libraries and
11699 # non-PIC objects for static libraries.
11702 xc_lt_want_with_pic='default'
11705 # User may have specified PIC preference.
11708 case "x$with_pic" in # ((
11710 xc_lt_want_with_pic='no'
11713 xc_lt_want_with_pic='yes'
11718 # Default behavior on some systems where building a shared library out
11719 # of non-PIC compiled objects will fail with following linker error
11720 # "relocation R_X86_64_32 can not be used when making a shared object"
11721 # is to build PIC objects even for static libraries. This behavior may
11722 # be overridden using 'configure --disable-shared --without-pic'.
11725 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11726 case $host_cpu in # (
11727 x86_64 | amd64 | ia64)
11728 case $host_os in # (
11729 linux* | freebsd* | midnightbsd*)
11730 xc_lt_want_with_pic='yes'
11738 # Make libtool aware of current PIC preference taking in account that,
11739 # depending on host characteristics, libtool may modify PIC default
11740 # behavior to fit host system idiosyncrasies later in this script.
11743 with_pic=$xc_lt_want_with_pic
11745 ## ----------------------- ##
11746 ## Start of libtool code ##
11747 ## ----------------------- ##
11753 enable_win32_dll=yes
11756 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11757 if test -n "$ac_tool_prefix"; then
11758 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11759 set dummy ${ac_tool_prefix}as; ac_word=$2
11760 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11761 printf %s "checking for $ac_word... " >&6; }
11762 if test ${ac_cv_prog_AS+y}
11764 printf %s "(cached) " >&6
11766 if test -n "$AS"; then
11767 ac_cv_prog_AS="$AS" # Let the user override the test.
11769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11770 for as_dir in $PATH
11773 case $as_dir in #(((
11776 *) as_dir=$as_dir/ ;;
11778 for ac_exec_ext in '' $ac_executable_extensions; do
11779 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11780 ac_cv_prog_AS="${ac_tool_prefix}as"
11781 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11791 if test -n "$AS"; then
11792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11793 printf "%s\n" "$AS" >&6; }
11795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11796 printf "%s\n" "no" >&6; }
11801 if test -z "$ac_cv_prog_AS"; then
11803 # Extract the first word of "as", so it can be a program name with args.
11804 set dummy as; ac_word=$2
11805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11806 printf %s "checking for $ac_word... " >&6; }
11807 if test ${ac_cv_prog_ac_ct_AS+y}
11809 printf %s "(cached) " >&6
11811 if test -n "$ac_ct_AS"; then
11812 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11815 for as_dir in $PATH
11818 case $as_dir in #(((
11821 *) as_dir=$as_dir/ ;;
11823 for ac_exec_ext in '' $ac_executable_extensions; do
11824 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11825 ac_cv_prog_ac_ct_AS="as"
11826 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11835 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11836 if test -n "$ac_ct_AS"; then
11837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11838 printf "%s\n" "$ac_ct_AS" >&6; }
11840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11841 printf "%s\n" "no" >&6; }
11844 if test "x$ac_ct_AS" = x; then
11847 case $cross_compiling:$ac_tool_warned in
11849 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11850 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11851 ac_tool_warned=yes ;;
11856 AS="$ac_cv_prog_AS"
11859 if test -n "$ac_tool_prefix"; then
11860 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11861 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11863 printf %s "checking for $ac_word... " >&6; }
11864 if test ${ac_cv_prog_DLLTOOL+y}
11866 printf %s "(cached) " >&6
11868 if test -n "$DLLTOOL"; then
11869 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11872 for as_dir in $PATH
11875 case $as_dir in #(((
11878 *) as_dir=$as_dir/ ;;
11880 for ac_exec_ext in '' $ac_executable_extensions; do
11881 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11882 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11883 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11892 DLLTOOL=$ac_cv_prog_DLLTOOL
11893 if test -n "$DLLTOOL"; then
11894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11895 printf "%s\n" "$DLLTOOL" >&6; }
11897 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 printf "%s\n" "no" >&6; }
11903 if test -z "$ac_cv_prog_DLLTOOL"; then
11904 ac_ct_DLLTOOL=$DLLTOOL
11905 # Extract the first word of "dlltool", so it can be a program name with args.
11906 set dummy dlltool; ac_word=$2
11907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11908 printf %s "checking for $ac_word... " >&6; }
11909 if test ${ac_cv_prog_ac_ct_DLLTOOL+y}
11911 printf %s "(cached) " >&6
11913 if test -n "$ac_ct_DLLTOOL"; then
11914 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11917 for as_dir in $PATH
11920 case $as_dir in #(((
11923 *) as_dir=$as_dir/ ;;
11925 for ac_exec_ext in '' $ac_executable_extensions; do
11926 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11927 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11928 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11937 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11938 if test -n "$ac_ct_DLLTOOL"; then
11939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11940 printf "%s\n" "$ac_ct_DLLTOOL" >&6; }
11942 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
11943 printf "%s\n" "no" >&6; }
11946 if test "x$ac_ct_DLLTOOL" = x; then
11949 case $cross_compiling:$ac_tool_warned in
11951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11952 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11953 ac_tool_warned=yes ;;
11955 DLLTOOL=$ac_ct_DLLTOOL
11958 DLLTOOL="$ac_cv_prog_DLLTOOL"
11961 if test -n "$ac_tool_prefix"; then
11962 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11963 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11965 printf %s "checking for $ac_word... " >&6; }
11966 if test ${ac_cv_prog_OBJDUMP+y}
11968 printf %s "(cached) " >&6
11970 if test -n "$OBJDUMP"; then
11971 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11974 for as_dir in $PATH
11977 case $as_dir in #(((
11980 *) as_dir=$as_dir/ ;;
11982 for ac_exec_ext in '' $ac_executable_extensions; do
11983 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
11984 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11985 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
11994 OBJDUMP=$ac_cv_prog_OBJDUMP
11995 if test -n "$OBJDUMP"; then
11996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11997 printf "%s\n" "$OBJDUMP" >&6; }
11999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12000 printf "%s\n" "no" >&6; }
12005 if test -z "$ac_cv_prog_OBJDUMP"; then
12006 ac_ct_OBJDUMP=$OBJDUMP
12007 # Extract the first word of "objdump", so it can be a program name with args.
12008 set dummy objdump; ac_word=$2
12009 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12010 printf %s "checking for $ac_word... " >&6; }
12011 if test ${ac_cv_prog_ac_ct_OBJDUMP+y}
12013 printf %s "(cached) " >&6
12015 if test -n "$ac_ct_OBJDUMP"; then
12016 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12022 case $as_dir in #(((
12025 *) as_dir=$as_dir/ ;;
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
12029 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12030 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
12039 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12040 if test -n "$ac_ct_OBJDUMP"; then
12041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12042 printf "%s\n" "$ac_ct_OBJDUMP" >&6; }
12044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12045 printf "%s\n" "no" >&6; }
12048 if test "x$ac_ct_OBJDUMP" = x; then
12051 case $cross_compiling:$ac_tool_warned in
12053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12054 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12055 ac_tool_warned=yes ;;
12057 OBJDUMP=$ac_ct_OBJDUMP
12060 OBJDUMP="$ac_cv_prog_OBJDUMP"
12066 test -z "$AS" && AS=as
12072 test -z "$DLLTOOL" && DLLTOOL=dlltool
12078 test -z "$OBJDUMP" && OBJDUMP=objdump
12090 # Check whether --enable-shared was given.
12091 if test ${enable_shared+y}
12093 enableval=$enable_shared; p=${PACKAGE-default}
12095 yes) enable_shared=yes ;;
12096 no) enable_shared=no ;;
12099 # Look at the argument we got. We use all the common list separators.
12100 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12101 for pkg in $enableval; do
12103 if test "X$pkg" = "X$p"; then
12122 # Check whether --enable-static was given.
12123 if test ${enable_static+y}
12125 enableval=$enable_static; p=${PACKAGE-default}
12127 yes) enable_static=yes ;;
12128 no) enable_static=no ;;
12131 # Look at the argument we got. We use all the common list separators.
12132 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12133 for pkg in $enableval; do
12135 if test "X$pkg" = "X$p"; then
12155 # Check whether --with-pic was given.
12156 if test ${with_pic+y}
12158 withval=$with_pic; lt_p=${PACKAGE-default}
12160 yes|no) pic_mode=$withval ;;
12163 # Look at the argument we got. We use all the common list separators.
12164 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12165 for lt_pkg in $withval; do
12167 if test "X$lt_pkg" = "X$lt_p"; then
12185 # Check whether --enable-fast-install was given.
12186 if test ${enable_fast_install+y}
12188 enableval=$enable_fast_install; p=${PACKAGE-default}
12190 yes) enable_fast_install=yes ;;
12191 no) enable_fast_install=no ;;
12193 enable_fast_install=no
12194 # Look at the argument we got. We use all the common list separators.
12195 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
12196 for pkg in $enableval; do
12198 if test "X$pkg" = "X$p"; then
12199 enable_fast_install=yes
12206 enable_fast_install=yes
12216 shared_archive_member_spec=
12217 case $host,$enable_shared in
12218 power*-*-aix[5-9]*,yes)
12219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
12220 printf %s "checking which variant of shared library versioning to provide... " >&6; }
12222 # Check whether --with-aix-soname was given.
12223 if test ${with_aix_soname+y}
12225 withval=$with_aix_soname; case $withval in
12229 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
12232 lt_cv_with_aix_soname=$with_aix_soname
12234 if test ${lt_cv_with_aix_soname+y}
12236 printf %s "(cached) " >&6
12238 lt_cv_with_aix_soname=aix
12241 with_aix_soname=$lt_cv_with_aix_soname
12244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
12245 printf "%s\n" "$with_aix_soname" >&6; }
12246 if test aix != "$with_aix_soname"; then
12247 # For the AIX way of multilib, we name the shared archive member
12248 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
12249 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
12250 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
12251 # the AIX toolchain works better with OBJECT_MODE set (default 32).
12252 if test 64 = "${OBJECT_MODE-32}"; then
12253 shared_archive_member_spec=shr_64
12255 shared_archive_member_spec=shr
12260 with_aix_soname=aix
12273 # This can be used to rebuild libtool when needed
12274 LIBTOOL_DEPS=$ltmain
12276 # Always use our own libtool.
12277 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
12308 test -z "$LN_S" && LN_S="ln -s"
12323 if test -n "${ZSH_VERSION+set}"; then
12324 setopt NO_GLOB_SUBST
12327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
12328 printf %s "checking for objdir... " >&6; }
12329 if test ${lt_cv_objdir+y}
12331 printf %s "(cached) " >&6
12333 rm -f .libs 2>/dev/null
12334 mkdir .libs 2>/dev/null
12335 if test -d .libs; then
12338 # MS-DOS does not allow filenames that begin with a dot.
12341 rmdir .libs 2>/dev/null
12343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
12344 printf "%s\n" "$lt_cv_objdir" >&6; }
12345 objdir=$lt_cv_objdir
12351 printf "%s\n" "#define LT_OBJDIR \"$lt_cv_objdir/\"" >>confdefs.h
12358 # AIX sometimes has problems with the GCC collect2 program. For some
12359 # reason, if we set the COLLECT_NAMES environment variable, the problems
12360 # vanish in a puff of smoke.
12361 if test set != "${COLLECT_NAMES+set}"; then
12363 export COLLECT_NAMES
12368 # Global variables:
12370 can_build_shared=yes
12372 # All known linkers require a '.a' archive for static linking (except MSVC and
12373 # ICC, which need '.lib').
12376 with_gnu_ld=$lt_cv_prog_gnu_ld
12381 # Set sane defaults for various variables
12382 test -z "$CC" && CC=cc
12383 test -z "$LTCC" && LTCC=$CC
12384 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
12385 test -z "$LD" && LD=ld
12386 test -z "$ac_objext" && ac_objext=o
12388 func_cc_basename $compiler
12389 cc_basename=$func_cc_basename_result
12392 # Only perform the check for file, if the check method requires it
12393 test -z "$MAGIC_CMD" && MAGIC_CMD=file
12394 case $deplibs_check_method in
12396 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
12397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
12398 printf %s "checking for ${ac_tool_prefix}file... " >&6; }
12399 if test ${lt_cv_path_MAGIC_CMD+y}
12401 printf %s "(cached) " >&6
12405 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12408 lt_save_MAGIC_CMD=$MAGIC_CMD
12409 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12410 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12411 for ac_dir in $ac_dummy; do
12413 test -z "$ac_dir" && ac_dir=.
12414 if test -f "$ac_dir/${ac_tool_prefix}file"; then
12415 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
12416 if test -n "$file_magic_test_file"; then
12417 case $deplibs_check_method in
12419 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12420 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12421 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12422 $EGREP "$file_magic_regex" > /dev/null; then
12427 *** Warning: the command libtool uses to detect shared libraries,
12428 *** $file_magic_cmd, produces output that libtool cannot recognize.
12429 *** The result is that libtool may fail to recognize shared libraries
12430 *** as such. This will affect the creation of libtool libraries that
12431 *** depend on shared libraries, but programs linked with such libtool
12432 *** libraries will work regardless of this problem. Nevertheless, you
12433 *** may want to report the problem to your system manager and/or to
12434 *** bug-libtool@gnu.org
12444 MAGIC_CMD=$lt_save_MAGIC_CMD
12449 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12450 if test -n "$MAGIC_CMD"; then
12451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12452 printf "%s\n" "$MAGIC_CMD" >&6; }
12454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12455 printf "%s\n" "no" >&6; }
12462 if test -z "$lt_cv_path_MAGIC_CMD"; then
12463 if test -n "$ac_tool_prefix"; then
12464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for file" >&5
12465 printf %s "checking for file... " >&6; }
12466 if test ${lt_cv_path_MAGIC_CMD+y}
12468 printf %s "(cached) " >&6
12472 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
12475 lt_save_MAGIC_CMD=$MAGIC_CMD
12476 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
12477 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
12478 for ac_dir in $ac_dummy; do
12480 test -z "$ac_dir" && ac_dir=.
12481 if test -f "$ac_dir/file"; then
12482 lt_cv_path_MAGIC_CMD=$ac_dir/"file"
12483 if test -n "$file_magic_test_file"; then
12484 case $deplibs_check_method in
12486 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12487 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12488 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
12489 $EGREP "$file_magic_regex" > /dev/null; then
12494 *** Warning: the command libtool uses to detect shared libraries,
12495 *** $file_magic_cmd, produces output that libtool cannot recognize.
12496 *** The result is that libtool may fail to recognize shared libraries
12497 *** as such. This will affect the creation of libtool libraries that
12498 *** depend on shared libraries, but programs linked with such libtool
12499 *** libraries will work regardless of this problem. Nevertheless, you
12500 *** may want to report the problem to your system manager and/or to
12501 *** bug-libtool@gnu.org
12511 MAGIC_CMD=$lt_save_MAGIC_CMD
12516 MAGIC_CMD=$lt_cv_path_MAGIC_CMD
12517 if test -n "$MAGIC_CMD"; then
12518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
12519 printf "%s\n" "$MAGIC_CMD" >&6; }
12521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
12522 printf "%s\n" "no" >&6; }
12535 # Use C for the default configuration in the libtool script
12539 ac_cpp='$CPP $CPPFLAGS'
12540 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12541 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12542 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12545 # Source file extension for C test sources.
12548 # Object file extension for compiled C test sources.
12552 # Code to be used in simple compile tests
12553 lt_simple_compile_test_code="int some_variable = 0;"
12555 # Code to be used in simple link tests
12556 lt_simple_link_test_code='int main(){return(0);}'
12564 # If no C compiler was specified, use CC.
12567 # If no C compiler flags were specified, use CFLAGS.
12568 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12570 # Allow CC to be a program name with arguments.
12573 # Save the default compiler, since it gets overwritten when the other
12574 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
12575 compiler_DEFAULT=$CC
12577 # save warnings/boilerplate of simple test code
12578 ac_outfile=conftest.$ac_objext
12579 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12580 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12581 _lt_compiler_boilerplate=`cat conftest.err`
12584 ac_outfile=conftest.$ac_objext
12585 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12586 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12587 _lt_linker_boilerplate=`cat conftest.err`
12592 ## There is no encapsulation within the following macros, do not change
12593 ## the running order or otherwise move them around unless you know exactly
12594 ## what you are doing...
12595 if test -n "$compiler"; then
12597 lt_prog_compiler_no_builtin_flag=
12599 if test yes = "$GCC"; then
12600 case $cc_basename in
12602 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
12604 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
12607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12608 printf %s "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
12609 if test ${lt_cv_prog_compiler_rtti_exceptions+y}
12611 printf %s "(cached) " >&6
12613 lt_cv_prog_compiler_rtti_exceptions=no
12614 ac_outfile=conftest.$ac_objext
12615 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12616 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment
12617 # Insert the option either (1) after the last *FLAGS variable, or
12618 # (2) before a word containing "conftest.", or (3) at the end.
12619 # Note that $ac_compile itself does not contain backslashes and begins
12620 # with a dollar sign (not a hyphen), so the echo should work correctly.
12621 # The option is referenced via a variable to avoid confusing sed.
12622 lt_compile=`echo "$ac_compile" | $SED \
12623 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12624 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12625 -e 's:$: $lt_compiler_flag:'`
12626 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12627 (eval "$lt_compile" 2>conftest.err)
12629 cat conftest.err >&5
12630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12631 if (exit $ac_status) && test -s "$ac_outfile"; then
12632 # The compiler can only warn and ignore the option if not recognized
12633 # So say no if there are warnings other than the usual output.
12634 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12636 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12637 lt_cv_prog_compiler_rtti_exceptions=yes
12643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12644 printf "%s\n" "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
12646 if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
12647 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12659 lt_prog_compiler_wl=
12660 lt_prog_compiler_pic=
12661 lt_prog_compiler_static=
12664 if test yes = "$GCC"; then
12665 lt_prog_compiler_wl='-Wl,'
12666 lt_prog_compiler_static='-static'
12670 # All AIX code is PIC.
12671 if test ia64 = "$host_cpu"; then
12672 # AIX 5 now supports IA64 processor
12673 lt_prog_compiler_static='-Bstatic'
12675 lt_prog_compiler_pic='-fPIC'
12681 # see comment about AmigaOS4 .so support
12682 lt_prog_compiler_pic='-fPIC'
12685 # FIXME: we need at least 68020 code to build shared libraries, but
12686 # adding the '-m68020' flag to GCC prevents building anything better,
12688 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
12693 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12694 # PIC is the default for these OSes.
12697 mingw* | cygwin* | pw32* | os2* | cegcc*)
12698 # This hack is so that the source file can tell whether it is being
12699 # built for inclusion in a dll (and should export symbols for example).
12700 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12701 # (--disable-auto-import) libraries
12702 lt_prog_compiler_pic='-DDLL_EXPORT'
12705 lt_prog_compiler_static='$wl-static'
12710 darwin* | rhapsody*)
12711 # PIC is the default on this platform
12712 # Common symbols not allowed in MH_DYLIB files
12713 lt_prog_compiler_pic='-fno-common'
12717 # PIC is the default for Haiku.
12718 # The "-static" flag exists, but is broken.
12719 lt_prog_compiler_static=
12723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12725 # sets the default TLS model and affects inlining.
12731 lt_prog_compiler_pic='-fPIC'
12737 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12738 # Instead, we relocate shared libraries at runtime.
12742 # Just because we use GCC doesn't mean we suddenly get shared libraries
12743 # on systems that don't support them.
12744 lt_prog_compiler_can_build_shared=no
12749 # QNX uses GNU C++, but need to define -shared option too, otherwise
12750 # it will coredump.
12751 lt_prog_compiler_pic='-fPIC -shared'
12755 if test -d /usr/nec; then
12756 lt_prog_compiler_pic=-Kconform_pic
12761 lt_prog_compiler_pic='-fPIC'
12765 case $cc_basename in
12766 nvcc*) # Cuda Compiler Driver 2.2
12767 lt_prog_compiler_wl='-Xlinker '
12768 if test -n "$lt_prog_compiler_pic"; then
12769 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
12774 # PORTME Check for flag to pass linker flags through the system compiler.
12777 lt_prog_compiler_wl='-Wl,'
12778 if test ia64 = "$host_cpu"; then
12779 # AIX 5 now supports IA64 processor
12780 lt_prog_compiler_static='-Bstatic'
12782 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
12786 darwin* | rhapsody*)
12787 # PIC is the default on this platform
12788 # Common symbols not allowed in MH_DYLIB files
12789 lt_prog_compiler_pic='-fno-common'
12790 case $cc_basename in
12792 # NAG Fortran compiler
12793 lt_prog_compiler_wl='-Wl,-Wl,,'
12794 lt_prog_compiler_pic='-PIC'
12795 lt_prog_compiler_static='-Bstatic'
12800 mingw* | cygwin* | pw32* | os2* | cegcc*)
12801 # This hack is so that the source file can tell whether it is being
12802 # built for inclusion in a dll (and should export symbols for example).
12803 lt_prog_compiler_pic='-DDLL_EXPORT'
12806 lt_prog_compiler_static='$wl-static'
12811 hpux9* | hpux10* | hpux11*)
12812 lt_prog_compiler_wl='-Wl,'
12813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12814 # not for PA HP-UX.
12820 lt_prog_compiler_pic='+Z'
12823 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12824 lt_prog_compiler_static='$wl-a ${wl}archive'
12827 irix5* | irix6* | nonstopux*)
12828 lt_prog_compiler_wl='-Wl,'
12829 # PIC (with -KPIC) is the default.
12830 lt_prog_compiler_static='-non_shared'
12833 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12834 case $cc_basename in
12835 # old Intel for x86_64, which still supported -KPIC.
12837 lt_prog_compiler_wl='-Wl,'
12838 lt_prog_compiler_pic='-KPIC'
12839 lt_prog_compiler_static='-static'
12841 # flang / f18. f95 an alias for gfortran or flang on Debian
12842 flang* | f18* | f95*)
12843 lt_prog_compiler_wl='-Wl,'
12844 lt_prog_compiler_pic='-fPIC'
12845 lt_prog_compiler_static='-static'
12847 # icc used to be incompatible with GCC.
12848 # ICC 10 doesn't accept -KPIC any more.
12850 lt_prog_compiler_wl='-Wl,'
12851 lt_prog_compiler_pic='-fPIC'
12852 lt_prog_compiler_static='-static'
12854 # Lahey Fortran 8.1.
12856 lt_prog_compiler_wl='-Wl,'
12857 lt_prog_compiler_pic='--shared'
12858 lt_prog_compiler_static='--static'
12861 # NAG Fortran compiler
12862 lt_prog_compiler_wl='-Wl,-Wl,,'
12863 lt_prog_compiler_pic='-PIC'
12864 lt_prog_compiler_static='-Bstatic'
12867 # Fabrice Bellard et al's Tiny C Compiler
12868 lt_prog_compiler_wl='-Wl,'
12869 lt_prog_compiler_pic='-fPIC'
12870 lt_prog_compiler_static='-static'
12872 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12873 # Portland Group compilers (*not* the Pentium gcc compiler,
12874 # which looks to be a dead project)
12875 lt_prog_compiler_wl='-Wl,'
12876 lt_prog_compiler_pic='-fpic'
12877 lt_prog_compiler_static='-Bstatic'
12880 lt_prog_compiler_wl='-Wl,'
12881 # All Alpha code is PIC.
12882 lt_prog_compiler_static='-non_shared'
12884 xl* | bgxl* | bgf* | mpixl*)
12885 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12886 lt_prog_compiler_wl='-Wl,'
12887 lt_prog_compiler_pic='-qpic'
12888 lt_prog_compiler_static='-qstaticlink'
12891 case `$CC -V 2>&1 | $SED 5q` in
12892 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12893 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12894 lt_prog_compiler_pic='-KPIC'
12895 lt_prog_compiler_static='-Bstatic'
12896 lt_prog_compiler_wl=''
12898 *Sun\ F* | *Sun*Fortran*)
12899 lt_prog_compiler_pic='-KPIC'
12900 lt_prog_compiler_static='-Bstatic'
12901 lt_prog_compiler_wl='-Qoption ld '
12905 lt_prog_compiler_pic='-KPIC'
12906 lt_prog_compiler_static='-Bstatic'
12907 lt_prog_compiler_wl='-Wl,'
12909 *Intel*\ [CF]*Compiler*)
12910 lt_prog_compiler_wl='-Wl,'
12911 lt_prog_compiler_pic='-fPIC'
12912 lt_prog_compiler_static='-static'
12915 lt_prog_compiler_wl='-Wl,'
12916 lt_prog_compiler_pic='-fpic'
12917 lt_prog_compiler_static='-Bstatic'
12925 lt_prog_compiler_pic='-KPIC'
12926 lt_prog_compiler_static='-Bstatic'
12930 # QNX uses GNU C++, but need to define -shared option too, otherwise
12931 # it will coredump.
12932 lt_prog_compiler_pic='-fPIC -shared'
12935 osf3* | osf4* | osf5*)
12936 lt_prog_compiler_wl='-Wl,'
12937 # All OSF/1 code is PIC.
12938 lt_prog_compiler_static='-non_shared'
12942 lt_prog_compiler_static='-non_shared'
12946 lt_prog_compiler_pic='-KPIC'
12947 lt_prog_compiler_static='-Bstatic'
12948 case $cc_basename in
12949 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12950 lt_prog_compiler_wl='-Qoption ld ';;
12952 lt_prog_compiler_wl='-Wl,';;
12957 lt_prog_compiler_wl='-Qoption ld '
12958 lt_prog_compiler_pic='-PIC'
12959 lt_prog_compiler_static='-Bstatic'
12962 sysv4 | sysv4.2uw2* | sysv4.3*)
12963 lt_prog_compiler_wl='-Wl,'
12964 lt_prog_compiler_pic='-KPIC'
12965 lt_prog_compiler_static='-Bstatic'
12969 if test -d /usr/nec; then
12970 lt_prog_compiler_pic='-Kconform_pic'
12971 lt_prog_compiler_static='-Bstatic'
12975 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12976 lt_prog_compiler_wl='-Wl,'
12977 lt_prog_compiler_pic='-KPIC'
12978 lt_prog_compiler_static='-Bstatic'
12982 lt_prog_compiler_wl='-Wl,'
12983 lt_prog_compiler_can_build_shared=no
12987 lt_prog_compiler_pic='-pic'
12988 lt_prog_compiler_static='-Bstatic'
12992 lt_prog_compiler_can_build_shared=no
12998 # For platforms that do not support PIC, -DPIC is meaningless:
13000 lt_prog_compiler_pic=
13003 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
13007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13008 printf %s "checking for $compiler option to produce PIC... " >&6; }
13009 if test ${lt_cv_prog_compiler_pic+y}
13011 printf %s "(cached) " >&6
13013 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
13015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
13016 printf "%s\n" "$lt_cv_prog_compiler_pic" >&6; }
13017 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
13020 # Check to make sure the PIC flag actually works.
13022 if test -n "$lt_prog_compiler_pic"; then
13023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
13024 printf %s "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
13025 if test ${lt_cv_prog_compiler_pic_works+y}
13027 printf %s "(cached) " >&6
13029 lt_cv_prog_compiler_pic_works=no
13030 ac_outfile=conftest.$ac_objext
13031 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13032 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment
13033 # Insert the option either (1) after the last *FLAGS variable, or
13034 # (2) before a word containing "conftest.", or (3) at the end.
13035 # Note that $ac_compile itself does not contain backslashes and begins
13036 # with a dollar sign (not a hyphen), so the echo should work correctly.
13037 # The option is referenced via a variable to avoid confusing sed.
13038 lt_compile=`echo "$ac_compile" | $SED \
13039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13041 -e 's:$: $lt_compiler_flag:'`
13042 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13043 (eval "$lt_compile" 2>conftest.err)
13045 cat conftest.err >&5
13046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13047 if (exit $ac_status) && test -s "$ac_outfile"; then
13048 # The compiler can only warn and ignore the option if not recognized
13049 # So say no if there are warnings other than the usual output.
13050 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13051 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13052 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13053 lt_cv_prog_compiler_pic_works=yes
13059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
13060 printf "%s\n" "$lt_cv_prog_compiler_pic_works" >&6; }
13062 if test yes = "$lt_cv_prog_compiler_pic_works"; then
13063 case $lt_prog_compiler_pic in
13065 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
13068 lt_prog_compiler_pic=
13069 lt_prog_compiler_can_build_shared=no
13085 # Check to make sure the static flag actually works.
13087 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
13088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13089 printf %s "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13090 if test ${lt_cv_prog_compiler_static_works+y}
13092 printf %s "(cached) " >&6
13094 lt_cv_prog_compiler_static_works=no
13095 save_LDFLAGS=$LDFLAGS
13096 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13097 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13098 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13099 # The linker can only warn and ignore the option if not recognized
13100 # So say no if there are warnings
13101 if test -s conftest.err; then
13102 # Append any errors to the config.log.
13103 cat conftest.err 1>&5
13104 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13106 if diff conftest.exp conftest.er2 >/dev/null; then
13107 lt_cv_prog_compiler_static_works=yes
13110 lt_cv_prog_compiler_static_works=yes
13114 LDFLAGS=$save_LDFLAGS
13117 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
13118 printf "%s\n" "$lt_cv_prog_compiler_static_works" >&6; }
13120 if test yes = "$lt_cv_prog_compiler_static_works"; then
13123 lt_prog_compiler_static=
13132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13133 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13134 if test ${lt_cv_prog_compiler_c_o+y}
13136 printf %s "(cached) " >&6
13138 lt_cv_prog_compiler_c_o=no
13139 $RM -r conftest 2>/dev/null
13143 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13145 lt_compiler_flag="-o out/conftest2.$ac_objext"
13146 # Insert the option either (1) after the last *FLAGS variable, or
13147 # (2) before a word containing "conftest.", or (3) at the end.
13148 # Note that $ac_compile itself does not contain backslashes and begins
13149 # with a dollar sign (not a hyphen), so the echo should work correctly.
13150 lt_compile=`echo "$ac_compile" | $SED \
13151 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13153 -e 's:$: $lt_compiler_flag:'`
13154 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13155 (eval "$lt_compile" 2>out/conftest.err)
13157 cat out/conftest.err >&5
13158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13159 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13161 # The compiler can only warn and ignore the option if not recognized
13162 # So say no if there are warnings
13163 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13164 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13165 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13166 lt_cv_prog_compiler_c_o=yes
13171 # SGI C++ compiler will create directory out/ii_files/ for
13172 # template instantiation
13173 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13174 $RM out/* && rmdir out
13180 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13181 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13189 printf %s "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13190 if test ${lt_cv_prog_compiler_c_o+y}
13192 printf %s "(cached) " >&6
13194 lt_cv_prog_compiler_c_o=no
13195 $RM -r conftest 2>/dev/null
13199 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13201 lt_compiler_flag="-o out/conftest2.$ac_objext"
13202 # Insert the option either (1) after the last *FLAGS variable, or
13203 # (2) before a word containing "conftest.", or (3) at the end.
13204 # Note that $ac_compile itself does not contain backslashes and begins
13205 # with a dollar sign (not a hyphen), so the echo should work correctly.
13206 lt_compile=`echo "$ac_compile" | $SED \
13207 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13208 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13209 -e 's:$: $lt_compiler_flag:'`
13210 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13211 (eval "$lt_compile" 2>out/conftest.err)
13213 cat out/conftest.err >&5
13214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13215 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13217 # The compiler can only warn and ignore the option if not recognized
13218 # So say no if there are warnings
13219 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13220 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13221 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13222 lt_cv_prog_compiler_c_o=yes
13227 # SGI C++ compiler will create directory out/ii_files/ for
13228 # template instantiation
13229 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13230 $RM out/* && rmdir out
13236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
13237 printf "%s\n" "$lt_cv_prog_compiler_c_o" >&6; }
13242 hard_links=nottested
13243 if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
13244 # do not overwrite the value of need_locks provided by the user
13245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13246 printf %s "checking if we can lock with hard links... " >&6; }
13249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13251 ln conftest.a conftest.b 2>&5 || hard_links=no
13252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13254 printf "%s\n" "$hard_links" >&6; }
13255 if test no = "$hard_links"; then
13256 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
13257 printf "%s\n" "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
13269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13270 printf %s "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13273 allow_undefined_flag=
13274 always_export_symbols=no
13276 archive_expsym_cmds=
13277 compiler_needs_object=no
13278 enable_shared_with_static_runtimes=no
13279 export_dynamic_flag_spec=
13280 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13281 hardcode_automatic=no
13283 hardcode_direct_absolute=no
13284 hardcode_libdir_flag_spec=
13285 hardcode_libdir_separator=
13286 hardcode_minus_L=no
13287 hardcode_shlibpath_var=unsupported
13289 link_all_deplibs=unknown
13291 module_expsym_cmds=
13292 old_archive_from_new_cmds=
13293 old_archive_from_expsyms_cmds=
13294 thread_safe_flag_spec=
13295 whole_archive_flag_spec=
13296 # include_expsyms should be a list of space-separated symbols to be *always*
13297 # included in the symbol list
13299 # exclude_expsyms can be an extended regexp of symbols to exclude
13300 # it will be wrapped by ' (' and ')$', so one must not match beginning or
13301 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
13302 # as well as any symbol that contains 'd'.
13303 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13304 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13305 # platforms (ab)use it in PIC code, but their linkers get confused if
13306 # the symbol is explicitly referenced. Since portable code cannot
13307 # rely on this symbol name, it's probably fine to never include it in
13308 # preloaded symbol tables.
13309 # Exclude shared library initialization/finalization symbols.
13310 extract_expsyms_cmds=
13313 cygwin* | mingw* | pw32* | cegcc*)
13314 # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time
13315 # When not using gcc, we currently assume that we are using
13316 # Microsoft Visual C++ or Intel C++ Compiler.
13317 if test yes != "$GCC"; then
13322 # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC)
13325 openbsd* | bitrig*)
13328 linux* | k*bsd*-gnu | gnu*)
13329 link_all_deplibs=no
13335 # On some targets, GNU ld is compatible enough with the native linker
13336 # that we're better off using the native interface for both.
13337 lt_use_gnu_ld_interface=no
13338 if test yes = "$with_gnu_ld"; then
13341 # The AIX port of GNU ld has always aspired to compatibility
13342 # with the native linker. However, as the warning in the GNU ld
13343 # block says, versions before 2.19.5* couldn't really create working
13344 # shared libraries, regardless of the interface used.
13345 case `$LD -v 2>&1` in
13346 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13347 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13348 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13350 lt_use_gnu_ld_interface=yes
13355 lt_use_gnu_ld_interface=yes
13360 if test yes = "$lt_use_gnu_ld_interface"; then
13361 # If archive_cmds runs LD, not CC, wlarc should be empty
13364 # Set some defaults for GNU ld with shared library support. These
13365 # are reset later if shared libraries are not supported. Putting them
13366 # here allows them to be overridden if necessary.
13367 runpath_var=LD_RUN_PATH
13368 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13369 export_dynamic_flag_spec='$wl--export-dynamic'
13370 # ancient GNU ld didn't support --whole-archive et. al.
13371 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13372 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
13374 whole_archive_flag_spec=
13376 supports_anon_versioning=no
13377 case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in
13378 *GNU\ gold*) supports_anon_versioning=yes ;;
13379 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13380 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13381 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13382 *\ 2.11.*) ;; # other 2.11 versions
13383 *) supports_anon_versioning=yes ;;
13386 # See if GNU ld supports shared libraries.
13389 # On AIX/PPC, the GNU linker is very broken
13390 if test ia64 != "$host_cpu"; then
13394 *** Warning: the GNU linker, at least up to release 2.19, is reported
13395 *** to be unable to reliably create shared libraries on AIX.
13396 *** Therefore, libtool is disabling shared libraries support. If you
13397 *** really care for shared libraries, you may want to install binutils
13398 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13399 *** You will then need to restart the configuration process.
13408 # see comment about AmigaOS4 .so support
13409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13410 archive_expsym_cmds=''
13413 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)'
13414 hardcode_libdir_flag_spec='-L$libdir'
13415 hardcode_minus_L=yes
13421 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13422 allow_undefined_flag=unsupported
13423 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13424 # support --undefined. This deserves some investigation. FIXME
13425 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13431 cygwin* | mingw* | pw32* | cegcc*)
13432 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
13433 # as there is no search path for DLLs.
13434 hardcode_libdir_flag_spec='-L$libdir'
13435 export_dynamic_flag_spec='$wl--export-all-symbols'
13436 allow_undefined_flag=unsupported
13437 always_export_symbols=no
13438 enable_shared_with_static_runtimes=yes
13439 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'
13440 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13442 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13443 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13444 # If the export-symbols file already is a .def file, use it as
13445 # is; otherwise, prepend EXPORTS...
13446 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13447 cp $export_symbols $output_objdir/$soname.def;
13449 echo EXPORTS > $output_objdir/$soname.def;
13450 cat $export_symbols >> $output_objdir/$soname.def;
13452 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13459 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13460 link_all_deplibs=yes
13464 hardcode_libdir_flag_spec='-L$libdir'
13465 hardcode_minus_L=yes
13466 allow_undefined_flag=unsupported
13468 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13469 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13470 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13471 $ECHO EXPORTS >> $output_objdir/$libname.def~
13472 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13473 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13474 emximp -o $lib $output_objdir/$libname.def'
13475 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13476 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13477 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13478 $ECHO EXPORTS >> $output_objdir/$libname.def~
13479 prefix_cmds="$SED"~
13480 if test EXPORTS = "`$SED 1q $export_symbols`"; then
13481 prefix_cmds="$prefix_cmds -e 1d";
13483 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13484 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13485 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13486 emximp -o $lib $output_objdir/$libname.def'
13487 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13488 enable_shared_with_static_runtimes=yes
13494 hardcode_shlibpath_var=no
13495 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13496 export_dynamic_flag_spec='$wl-E'
13497 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13498 # Instead, shared libraries are loaded at an image base (0x10000000 by
13499 # default) and relocated if they conflict, which is a slow very memory
13500 # consuming and fragmenting process. To avoid this, we pick a random,
13501 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13502 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13503 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13504 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'
13507 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13509 if test linux-dietlibc = "$host_os"; then
13510 case $cc_basename in
13511 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13514 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13515 && test no = "$tmp_diet"
13517 tmp_addflag=' $pic_flag'
13518 tmp_sharedflag='-shared'
13519 case $cc_basename,$host_cpu in
13520 pgcc*) # Portland Group C compiler
13521 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'
13522 tmp_addflag=' $pic_flag'
13524 pgf77* | pgf90* | pgf95* | pgfortran*)
13525 # Portland Group f77 and f90 compilers
13526 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'
13527 tmp_addflag=' $pic_flag -Mnomain' ;;
13528 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13529 tmp_addflag=' -i_dynamic' ;;
13530 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13531 tmp_addflag=' -i_dynamic -nofor_main' ;;
13532 ifc* | ifort*) # Intel Fortran compiler
13533 tmp_addflag=' -nofor_main' ;;
13534 lf95*) # Lahey Fortran 8.1
13535 whole_archive_flag_spec=
13536 tmp_sharedflag='--shared' ;;
13537 nagfor*) # NAGFOR 5.3
13538 tmp_sharedflag='-Wl,-shared' ;;
13539 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13540 tmp_sharedflag='-qmkshrobj'
13542 nvcc*) # Cuda Compiler Driver 2.2
13543 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'
13544 compiler_needs_object=yes
13547 case `$CC -V 2>&1 | $SED 5q` in
13548 *Sun\ C*) # Sun C 5.9
13549 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'
13550 compiler_needs_object=yes
13551 tmp_sharedflag='-G' ;;
13552 *Sun\ F*) # Sun Fortran 8.3
13553 tmp_sharedflag='-G' ;;
13555 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13557 if test yes = "$supports_anon_versioning"; then
13558 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13559 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13560 echo "local: *; };" >> $output_objdir/$libname.ver~
13561 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
13564 case $cc_basename in
13566 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13567 export_dynamic_flag_spec='-rdynamic'
13569 xlf* | bgf* | bgxlf* | mpixlf*)
13570 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13571 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
13572 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13573 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13574 if test yes = "$supports_anon_versioning"; then
13575 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
13576 cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13577 echo "local: *; };" >> $output_objdir/$libname.ver~
13578 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13587 netbsd* | netbsdelf*-gnu)
13588 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13589 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13592 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13593 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13598 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13602 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13603 *** create shared libraries on Solaris systems. Therefore, libtool
13604 *** is disabling shared libraries support. We urge you to upgrade GNU
13605 *** binutils to release 2.9.1 or newer. Another option is to modify
13606 *** your PATH or compiler configuration so that the native linker is
13607 *** used, and then restart.
13610 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13611 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13612 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13618 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13619 case `$LD -v 2>&1` in
13620 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13624 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
13625 *** reliably create shared libraries on SCO systems. Therefore, libtool
13626 *** is disabling shared libraries support. We urge you to upgrade GNU
13627 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13628 *** your PATH or compiler configuration so that the native linker is
13629 *** used, and then restart.
13634 # For security reasons, it is highly recommended that you always
13635 # use absolute paths for naming shared libraries, and exclude the
13636 # DT_RUNPATH tag from executables and libraries. But doing so
13637 # requires that you compile everything twice, which is a pain.
13638 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13639 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13641 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13650 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13652 hardcode_direct=yes
13653 hardcode_shlibpath_var=no
13657 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13658 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13659 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
13666 if test no = "$ld_shlibs"; then
13668 hardcode_libdir_flag_spec=
13669 export_dynamic_flag_spec=
13670 whole_archive_flag_spec=
13673 # PORTME fill in a description of your system's linker (not GNU ld)
13676 allow_undefined_flag=unsupported
13677 always_export_symbols=yes
13678 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'
13679 # Note: this linker hardcodes the directories in LIBPATH if there
13680 # are no directories specified by -L.
13681 hardcode_minus_L=yes
13682 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
13683 # Neither direct hardcoding nor static linking is supported with a
13685 hardcode_direct=unsupported
13690 if test ia64 = "$host_cpu"; then
13691 # On IA64, the linker does run time linking by default, so we don't
13692 # have to do anything special.
13693 aix_use_runtimelinking=no
13694 exp_sym_flag='-Bexport'
13697 # If we're using GNU nm, then we don't want the "-C" option.
13698 # -C means demangle to GNU nm, but means don't demangle to AIX nm.
13699 # Without the "-l" option, or with the "-B" option, AIX nm treats
13700 # weak defined symbols like other global defined symbols, whereas
13701 # GNU nm marks them as "W".
13702 # While the 'weak' keyword is ignored in the Export File, we need
13703 # it in the Import File for the 'aix-soname' feature, so we have
13704 # to replace the "-B" option with "-P" for AIX nm.
13705 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13706 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'
13708 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 == "L") || (\$ 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'
13710 aix_use_runtimelinking=no
13712 # Test if we are trying to use run time linking or normal
13713 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13714 # have runtime linking enabled, and use it for executables.
13715 # For shared libraries, we enable/disable runtime linking
13716 # depending on the kind of the shared library created -
13717 # when "with_aix_soname,aix_use_runtimelinking" is:
13718 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables
13719 # "aix,yes" lib.so shared, rtl:yes, for executables
13720 # lib.a static archive
13721 # "both,no" lib.so.V(shr.o) shared, rtl:yes
13722 # lib.a(lib.so.V) shared, rtl:no, for executables
13723 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
13724 # lib.a(lib.so.V) shared, rtl:no
13725 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables
13726 # lib.a static archive
13727 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13728 for ld_flag in $LDFLAGS; do
13729 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
13730 aix_use_runtimelinking=yes
13734 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
13735 # With aix-soname=svr4, we create the lib.so.V shared archives only,
13736 # so we don't have lib.a shared libs to link our executables.
13737 # We have to force runtime linking in this case.
13738 aix_use_runtimelinking=yes
13739 LDFLAGS="$LDFLAGS -Wl,-brtl"
13744 exp_sym_flag='-bexport'
13745 no_entry_flag='-bnoentry'
13748 # When large executables or shared objects are built, AIX ld can
13749 # have problems creating the table of contents. If linking a library
13750 # or program results in "error TOC overflow" add -mminimal-toc to
13751 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13752 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13755 hardcode_direct=yes
13756 hardcode_direct_absolute=yes
13757 hardcode_libdir_separator=':'
13758 link_all_deplibs=yes
13759 file_list_spec='$wl-f,'
13760 case $with_aix_soname,$aix_use_runtimelinking in
13761 aix,*) ;; # traditional, no import file
13762 svr4,* | *,yes) # use import file
13763 # The Import File defines what to hardcode.
13765 hardcode_direct_absolute=no
13769 if test yes = "$GCC"; then
13770 case $host_os in aix4.[012]|aix4.[012].*)
13771 # We only want to do this on AIX 4.2 and lower, the check
13772 # below for broken collect2 doesn't work under 4.3+
13773 collect2name=`$CC -print-prog-name=collect2`
13774 if test -f "$collect2name" &&
13775 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13777 # We have reworked collect2
13780 # We have old collect2
13781 hardcode_direct=unsupported
13782 # It fails to find uninstalled libraries when the uninstalled
13783 # path is not listed in the libpath. Setting hardcode_minus_L
13784 # to unsupported forces relinking
13785 hardcode_minus_L=yes
13786 hardcode_libdir_flag_spec='-L$libdir'
13787 hardcode_libdir_separator=
13791 shared_flag='-shared'
13792 if test yes = "$aix_use_runtimelinking"; then
13793 shared_flag="$shared_flag "'$wl-G'
13795 # Need to ensure runtime linking is disabled for the traditional
13796 # shared library, or the linker may eventually find shared libraries
13797 # /with/ Import File - we do not want to mix them.
13798 shared_flag_aix='-shared'
13799 shared_flag_svr4='-shared $wl-G'
13802 if test ia64 = "$host_cpu"; then
13803 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13804 # chokes on -Wl,-G. The following line is correct:
13807 if test yes = "$aix_use_runtimelinking"; then
13808 shared_flag='$wl-G'
13810 shared_flag='$wl-bM:SRE'
13812 shared_flag_aix='$wl-bM:SRE'
13813 shared_flag_svr4='$wl-G'
13817 export_dynamic_flag_spec='$wl-bexpall'
13818 # It seems that -bexpall does not export symbols beginning with
13819 # underscore (_), so it is better to generate a list of symbols to export.
13820 always_export_symbols=yes
13821 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
13822 # Warning - without using the other runtime loading flags (-brtl),
13823 # -berok will link without error, but may produce a broken library.
13824 allow_undefined_flag='-berok'
13825 # Determine the default libpath from the value encoded in an
13826 # empty executable.
13827 if test set = "${lt_cv_aix_libpath+set}"; then
13828 aix_libpath=$lt_cv_aix_libpath
13830 if test ${lt_cv_aix_libpath_+y}
13832 printf %s "(cached) " >&6
13834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13835 /* end confdefs.h. */
13844 if ac_fn_c_try_link "$LINENO"
13847 lt_aix_libpath_sed='
13848 /Import File Strings/,/^$/ {
13850 s/^0 *\([^ ]*\) *$/\1/
13854 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13855 # Check for a 64-bit object if we didn't find anything.
13856 if test -z "$lt_cv_aix_libpath_"; then
13857 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13860 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13861 conftest$ac_exeext conftest.$ac_ext
13862 if test -z "$lt_cv_aix_libpath_"; then
13863 lt_cv_aix_libpath_=/usr/lib:/lib
13868 aix_libpath=$lt_cv_aix_libpath_
13871 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13872 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
13874 if test ia64 = "$host_cpu"; then
13875 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
13876 allow_undefined_flag="-z nodefs"
13877 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"
13879 # Determine the default libpath from the value encoded in an
13880 # empty executable.
13881 if test set = "${lt_cv_aix_libpath+set}"; then
13882 aix_libpath=$lt_cv_aix_libpath
13884 if test ${lt_cv_aix_libpath_+y}
13886 printf %s "(cached) " >&6
13888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13889 /* end confdefs.h. */
13898 if ac_fn_c_try_link "$LINENO"
13901 lt_aix_libpath_sed='
13902 /Import File Strings/,/^$/ {
13904 s/^0 *\([^ ]*\) *$/\1/
13908 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13909 # Check for a 64-bit object if we didn't find anything.
13910 if test -z "$lt_cv_aix_libpath_"; then
13911 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13914 rm -f core conftest.err conftest.$ac_objext conftest.beam \
13915 conftest$ac_exeext conftest.$ac_ext
13916 if test -z "$lt_cv_aix_libpath_"; then
13917 lt_cv_aix_libpath_=/usr/lib:/lib
13922 aix_libpath=$lt_cv_aix_libpath_
13925 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
13926 # Warning - without using the other run time loading flags,
13927 # -berok will link without error, but may produce a broken library.
13928 no_undefined_flag=' $wl-bernotok'
13929 allow_undefined_flag=' $wl-berok'
13930 if test yes = "$with_gnu_ld"; then
13931 # We only use this code for GNU lds that support --whole-archive.
13932 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
13934 # Exported symbols can be pulled into shared objects from archives
13935 whole_archive_flag_spec='$convenience'
13937 archive_cmds_need_lc=yes
13938 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
13939 # -brtl affects multiple linker settings, -berok does not and is overridden later
13940 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
13941 if test svr4 != "$with_aix_soname"; then
13942 # This is similar to how AIX traditionally builds its shared libraries.
13943 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'
13945 if test aix != "$with_aix_soname"; then
13946 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'
13948 # used by -dlpreopen to get the symbols
13949 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir'
13951 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
13959 # see comment about AmigaOS4 .so support
13960 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
13961 archive_expsym_cmds=''
13964 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)'
13965 hardcode_libdir_flag_spec='-L$libdir'
13966 hardcode_minus_L=yes
13972 export_dynamic_flag_spec=-rdynamic
13975 cygwin* | mingw* | pw32* | cegcc*)
13976 # When not using gcc, we currently assume that we are using
13977 # Microsoft Visual C++ or Intel C++ Compiler.
13978 # hardcode_libdir_flag_spec is actually meaningless, as there is
13979 # no search path for DLLs.
13980 case $cc_basename in
13982 # Native MSVC or ICC
13983 hardcode_libdir_flag_spec=' '
13984 allow_undefined_flag=unsupported
13985 always_export_symbols=yes
13987 # Tell ltmain to make .lib files, not .a files.
13989 # Tell ltmain to make .dll files, not .so files.
13991 # FIXME: Setting linknames here is a bad hack.
13992 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
13993 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then
13994 cp "$export_symbols" "$output_objdir/$soname.def";
13995 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
13997 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
13999 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14001 # The linker will not automatically build a static lib if we build a DLL.
14002 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
14003 enable_shared_with_static_runtimes=yes
14004 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14005 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14007 old_postinstall_cmds='chmod 644 $oldlib'
14008 postlink_cmds='lt_outputfile="@OUTPUT@"~
14009 lt_tool_outputfile="@TOOL_OUTPUT@"~
14010 case $lt_outputfile in
14013 lt_outputfile=$lt_outputfile.exe
14014 lt_tool_outputfile=$lt_tool_outputfile.exe
14017 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
14018 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14019 $RM "$lt_outputfile.manifest";
14023 # Assume MSVC and ICC wrapper
14024 hardcode_libdir_flag_spec=' '
14025 allow_undefined_flag=unsupported
14026 # Tell ltmain to make .lib files, not .a files.
14028 # Tell ltmain to make .dll files, not .so files.
14030 # FIXME: Setting linknames here is a bad hack.
14031 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14032 # The linker will automatically build a .lib file if we build a DLL.
14033 old_archive_from_new_cmds='true'
14034 # FIXME: Should let the user specify the lib program.
14035 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
14036 enable_shared_with_static_runtimes=yes
14041 darwin* | rhapsody*)
14044 archive_cmds_need_lc=no
14046 hardcode_automatic=yes
14047 hardcode_shlibpath_var=unsupported
14048 if test yes = "$lt_cv_ld_force_load"; then
14049 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\"`'
14052 whole_archive_flag_spec=''
14054 link_all_deplibs=yes
14055 allow_undefined_flag=$_lt_dar_allow_undefined
14056 case $cc_basename in
14057 ifort*|nagfor*) _lt_dar_can_shared=yes ;;
14058 *) _lt_dar_can_shared=$GCC ;;
14060 if test yes = "$_lt_dar_can_shared"; then
14061 output_verbose_link_cmd=func_echo_all
14062 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
14063 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
14064 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"
14065 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"
14074 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14075 hardcode_libdir_flag_spec='-L$libdir'
14076 hardcode_shlibpath_var=no
14079 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14080 # support. Future versions do this automatically, but an explicit c++rt0.o
14081 # does not break anything, and helps significantly (at the cost of a little
14084 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14085 hardcode_libdir_flag_spec='-R$libdir'
14086 hardcode_direct=yes
14087 hardcode_shlibpath_var=no
14090 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14092 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14093 hardcode_direct=yes
14094 hardcode_minus_L=yes
14095 hardcode_shlibpath_var=no
14098 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14099 freebsd* | dragonfly* | midnightbsd*)
14100 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14101 hardcode_libdir_flag_spec='-R$libdir'
14102 hardcode_direct=yes
14103 hardcode_shlibpath_var=no
14107 if test yes = "$GCC"; then
14108 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14110 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
14112 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14113 hardcode_libdir_separator=:
14114 hardcode_direct=yes
14116 # hardcode_minus_L: Not really in the search PATH,
14117 # but as the default location of the library.
14118 hardcode_minus_L=yes
14119 export_dynamic_flag_spec='$wl-E'
14123 if test yes,no = "$GCC,$with_gnu_ld"; then
14124 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14126 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14128 if test no = "$with_gnu_ld"; then
14129 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14130 hardcode_libdir_separator=:
14131 hardcode_direct=yes
14132 hardcode_direct_absolute=yes
14133 export_dynamic_flag_spec='$wl-E'
14134 # hardcode_minus_L: Not really in the search PATH,
14135 # but as the default location of the library.
14136 hardcode_minus_L=yes
14141 if test yes,no = "$GCC,$with_gnu_ld"; then
14144 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14147 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14150 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14156 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14159 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14163 # Older versions of the 11.00 compiler do not understand -b yet
14164 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
14165 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
14166 printf %s "checking if $CC understands -b... " >&6; }
14167 if test ${lt_cv_prog_compiler__b+y}
14169 printf %s "(cached) " >&6
14171 lt_cv_prog_compiler__b=no
14172 save_LDFLAGS=$LDFLAGS
14173 LDFLAGS="$LDFLAGS -b"
14174 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14175 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14176 # The linker can only warn and ignore the option if not recognized
14177 # So say no if there are warnings
14178 if test -s conftest.err; then
14179 # Append any errors to the config.log.
14180 cat conftest.err 1>&5
14181 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14182 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14183 if diff conftest.exp conftest.er2 >/dev/null; then
14184 lt_cv_prog_compiler__b=yes
14187 lt_cv_prog_compiler__b=yes
14191 LDFLAGS=$save_LDFLAGS
14194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
14195 printf "%s\n" "$lt_cv_prog_compiler__b" >&6; }
14197 if test yes = "$lt_cv_prog_compiler__b"; then
14198 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14200 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14206 if test no = "$with_gnu_ld"; then
14207 hardcode_libdir_flag_spec='$wl+b $wl$libdir'
14208 hardcode_libdir_separator=:
14213 hardcode_shlibpath_var=no
14216 hardcode_direct=yes
14217 hardcode_direct_absolute=yes
14218 export_dynamic_flag_spec='$wl-E'
14220 # hardcode_minus_L: Not really in the search PATH,
14221 # but as the default location of the library.
14222 hardcode_minus_L=yes
14228 irix5* | irix6* | nonstopux*)
14229 if test yes = "$GCC"; then
14230 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'
14231 # Try to use the -exported_symbol ld option, if it does not
14232 # work, assume that -exports_file does not work either and
14233 # implicitly export all symbols.
14234 # This should be the same for all languages, so no per-tag cache variable.
14235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14236 printf %s "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14237 if test ${lt_cv_irix_exported_symbol+y}
14239 printf %s "(cached) " >&6
14241 save_LDFLAGS=$LDFLAGS
14242 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14245 int foo (void) { return 0; }
14247 if ac_fn_c_try_link "$LINENO"
14249 lt_cv_irix_exported_symbol=yes
14251 lt_cv_irix_exported_symbol=no
14253 rm -f core conftest.err conftest.$ac_objext conftest.beam \
14254 conftest$ac_exeext conftest.$ac_ext
14255 LDFLAGS=$save_LDFLAGS
14257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14258 printf "%s\n" "$lt_cv_irix_exported_symbol" >&6; }
14259 if test yes = "$lt_cv_irix_exported_symbol"; then
14260 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'
14262 link_all_deplibs=no
14264 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'
14265 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'
14267 archive_cmds_need_lc='no'
14268 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14269 hardcode_libdir_separator=:
14271 link_all_deplibs=yes
14275 case $cc_basename in
14277 # Fabrice Bellard et al's Tiny C Compiler
14279 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14280 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14285 netbsd* | netbsdelf*-gnu)
14286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14287 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14289 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14291 hardcode_libdir_flag_spec='-R$libdir'
14292 hardcode_direct=yes
14293 hardcode_shlibpath_var=no
14297 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14298 hardcode_direct=yes
14299 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14300 hardcode_libdir_separator=:
14301 hardcode_shlibpath_var=no
14307 openbsd* | bitrig*)
14308 if test -f /usr/libexec/ld.so; then
14309 hardcode_direct=yes
14310 hardcode_shlibpath_var=no
14311 hardcode_direct_absolute=yes
14312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14313 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14314 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
14315 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14316 export_dynamic_flag_spec='$wl-E'
14318 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14319 hardcode_libdir_flag_spec='$wl-rpath,$libdir'
14327 hardcode_libdir_flag_spec='-L$libdir'
14328 hardcode_minus_L=yes
14329 allow_undefined_flag=unsupported
14331 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14332 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14333 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14334 $ECHO EXPORTS >> $output_objdir/$libname.def~
14335 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
14336 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14337 emximp -o $lib $output_objdir/$libname.def'
14338 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
14339 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
14340 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
14341 $ECHO EXPORTS >> $output_objdir/$libname.def~
14342 prefix_cmds="$SED"~
14343 if test EXPORTS = "`$SED 1q $export_symbols`"; then
14344 prefix_cmds="$prefix_cmds -e 1d";
14346 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
14347 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
14348 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
14349 emximp -o $lib $output_objdir/$libname.def'
14350 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
14351 enable_shared_with_static_runtimes=yes
14356 if test yes = "$GCC"; then
14357 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14358 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'
14360 allow_undefined_flag=' -expect_unresolved \*'
14361 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'
14363 archive_cmds_need_lc='no'
14364 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14365 hardcode_libdir_separator=:
14368 osf4* | osf5*) # as osf3* with the addition of -msym flag
14369 if test yes = "$GCC"; then
14370 allow_undefined_flag=' $wl-expect_unresolved $wl\*'
14371 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'
14372 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
14374 allow_undefined_flag=' -expect_unresolved \*'
14375 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'
14376 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~
14377 $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'
14379 # Both c and cxx compiler support -rpath directly
14380 hardcode_libdir_flag_spec='-rpath $libdir'
14382 archive_cmds_need_lc='no'
14383 hardcode_libdir_separator=:
14387 no_undefined_flag=' -z defs'
14388 if test yes = "$GCC"; then
14390 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
14391 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14392 $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'
14394 case `$CC -V 2>&1` in
14397 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
14398 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14399 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14403 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14404 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14405 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14409 hardcode_libdir_flag_spec='-R$libdir'
14410 hardcode_shlibpath_var=no
14412 solaris2.[0-5] | solaris2.[0-5].*) ;;
14414 # The compiler driver will combine and reorder linker options,
14415 # but understands '-z linker_flag'. GCC discards it without '$wl',
14416 # but is careful enough not to reorder.
14417 # Supported since Solaris 2.6 (maybe 2.5.1?)
14418 if test yes = "$GCC"; then
14419 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
14421 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
14425 link_all_deplibs=yes
14429 if test sequent = "$host_vendor"; then
14430 # Use $CC to link under sequent, because it throws in some extra .o
14431 # files that make .init and .fini sections work.
14432 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14434 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14436 hardcode_libdir_flag_spec='-L$libdir'
14437 hardcode_direct=yes
14438 hardcode_minus_L=yes
14439 hardcode_shlibpath_var=no
14443 case $host_vendor in
14445 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14446 hardcode_direct=yes # is this really true???
14449 ## LD is ld it makes a PLAMLIB
14450 ## CC just makes a GrossModule.
14451 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14452 reload_cmds='$CC -r -o $output$reload_objs'
14456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14457 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
14460 runpath_var='LD_RUN_PATH'
14461 hardcode_shlibpath_var=no
14465 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14466 hardcode_shlibpath_var=no
14467 export_dynamic_flag_spec='-Bexport'
14471 if test -d /usr/nec; then
14472 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14473 hardcode_shlibpath_var=no
14474 runpath_var=LD_RUN_PATH
14475 hardcode_runpath_var=yes
14480 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14481 no_undefined_flag='$wl-z,text'
14482 archive_cmds_need_lc=no
14483 hardcode_shlibpath_var=no
14484 runpath_var='LD_RUN_PATH'
14486 if test yes = "$GCC"; then
14487 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14488 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14490 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14491 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14495 sysv5* | sco3.2v5* | sco5v6*)
14496 # Note: We CANNOT use -z defs as we might desire, because we do not
14497 # link with -lc, and that would cause any symbols used from libc to
14498 # always be unresolved, which means just about no library would
14499 # ever link correctly. If we're not using GNU ld we use -z text
14500 # though, which does catch some bad symbols but isn't as heavy-handed
14502 no_undefined_flag='$wl-z,text'
14503 allow_undefined_flag='$wl-z,nodefs'
14504 archive_cmds_need_lc=no
14505 hardcode_shlibpath_var=no
14506 hardcode_libdir_flag_spec='$wl-R,$libdir'
14507 hardcode_libdir_separator=':'
14508 link_all_deplibs=yes
14509 export_dynamic_flag_spec='$wl-Bexport'
14510 runpath_var='LD_RUN_PATH'
14512 if test yes = "$GCC"; then
14513 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14514 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14516 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14517 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14522 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14523 hardcode_libdir_flag_spec='-L$libdir'
14524 hardcode_shlibpath_var=no
14532 if test sni = "$host_vendor"; then
14534 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14535 export_dynamic_flag_spec='$wl-Blargedynsym'
14541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
14542 printf "%s\n" "$ld_shlibs" >&6; }
14543 test no = "$ld_shlibs" && can_build_shared=no
14545 with_gnu_ld=$with_gnu_ld
14562 # Do we need to explicitly link libc?
14564 case "x$archive_cmds_need_lc" in
14566 # Assume -lc should be added
14567 archive_cmds_need_lc=yes
14569 if test yes,yes = "$GCC,$enable_shared"; then
14570 case $archive_cmds in
14572 # FIXME: we may have to deal with multi-command sequences.
14575 # Test whether the compiler implicitly links with -lc since on some
14576 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14577 # to ld, don't add -lc before -lgcc.
14578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14579 printf %s "checking whether -lc should be explicitly linked in... " >&6; }
14580 if test ${lt_cv_archive_cmds_need_lc+y}
14582 printf %s "(cached) " >&6
14585 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14588 (eval $ac_compile) 2>&5
14590 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14591 test $ac_status = 0; } 2>conftest.err; then
14594 libobjs=conftest.$ac_objext
14596 wl=$lt_prog_compiler_wl
14597 pic_flag=$lt_prog_compiler_pic
14603 lt_save_allow_undefined_flag=$allow_undefined_flag
14604 allow_undefined_flag=
14605 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14606 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14608 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14609 test $ac_status = 0; }
14611 lt_cv_archive_cmds_need_lc=no
14613 lt_cv_archive_cmds_need_lc=yes
14615 allow_undefined_flag=$lt_save_allow_undefined_flag
14617 cat conftest.err 1>&5
14622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
14623 printf "%s\n" "$lt_cv_archive_cmds_need_lc" >&6; }
14624 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
14782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14783 printf %s "checking dynamic linker characteristics... " >&6; }
14785 if test yes = "$GCC"; then
14787 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
14788 *) lt_awk_arg='/^libraries:/' ;;
14791 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
14792 *) lt_sed_strip_eq='s|=/|/|g' ;;
14794 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
14795 case $lt_search_path_spec in
14797 # if the path contains ";" then we assume it to be the separator
14798 # otherwise default to the standard path separator (i.e. ":") - it is
14799 # assumed that no part of a normal pathname contains ";" but that should
14800 # okay in the real world where ";" in dirpaths is itself problematic.
14801 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
14804 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
14807 # Ok, now we have the path, separated by spaces, we can step through it
14808 # and add multilib dir if necessary...
14809 lt_tmp_lt_search_path_spec=
14810 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
14811 # ...but if some path component already ends with the multilib dir we assume
14812 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
14813 case "$lt_multi_os_dir; $lt_search_path_spec " in
14814 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
14818 for lt_sys_path in $lt_search_path_spec; do
14819 if test -d "$lt_sys_path$lt_multi_os_dir"; then
14820 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
14821 elif test -n "$lt_multi_os_dir"; then
14822 test -d "$lt_sys_path" && \
14823 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
14826 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
14827 BEGIN {RS = " "; FS = "/|\n";} {
14830 for (lt_i = NF; lt_i > 0; lt_i--) {
14831 if ($lt_i != "" && $lt_i != ".") {
14832 if ($lt_i == "..") {
14835 if (lt_count == 0) {
14836 lt_foo = "/" $lt_i lt_foo;
14843 if (lt_foo != "") { lt_freq[lt_foo]++; }
14844 if (lt_freq[lt_foo] == 1) { print lt_foo; }
14846 # AWK program above erroneously prepends '/' to C:/dos/paths
14849 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
14850 $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
14852 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
14854 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14856 library_names_spec=
14857 libname_spec='lib$name'
14861 postuninstall_cmds=
14865 shlibpath_overrides_runpath=unknown
14867 dynamic_linker="$host_os ld.so"
14868 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14869 need_lib_prefix=unknown
14870 hardcode_into_libs=no
14872 # when you set need_version to no, make sure it does not cause -set_version
14873 # flags to be left without arguments
14874 need_version=unknown
14880 version_type=linux # correct to gnu/linux during the next big refactor
14881 library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
14882 shlibpath_var=LIBPATH
14884 # AIX 3 has no versioning support, so we append a major version to the name.
14885 soname_spec='$libname$release$shared_ext$major'
14889 version_type=linux # correct to gnu/linux during the next big refactor
14892 hardcode_into_libs=yes
14893 if test ia64 = "$host_cpu"; then
14894 # AIX 5 supports IA64
14895 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
14896 shlibpath_var=LD_LIBRARY_PATH
14898 # With GCC up to 2.95.x, collect2 would create an import file
14899 # for dependence libraries. The import file would start with
14900 # the line '#! .'. This would cause the generated library to
14901 # depend on '.', always an invalid library. This was fixed in
14902 # development snapshots of GCC prior to 3.0.
14904 aix4 | aix4.[01] | aix4.[01].*)
14905 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14907 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
14910 can_build_shared=no
14914 # Using Import Files as archive members, it is possible to support
14915 # filename-based versioning of shared library archives on AIX. While
14916 # this would work for both with and without runtime linking, it will
14917 # prevent static linking of such archives. So we do filename-based
14918 # shared library versioning with .so extension only, which is used
14919 # when both runtime linking and shared linking is enabled.
14920 # Unfortunately, runtime linking may impact performance, so we do
14921 # not want this to be the default eventually. Also, we use the
14922 # versioned .so libs for executables only if there is the -brtl
14923 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
14924 # To allow for filename-based versioning support, we need to create
14925 # libNAME.so.V as an archive file, containing:
14926 # *) an Import File, referring to the versioned filename of the
14927 # archive as well as the shared archive member, telling the
14928 # bitwidth (32 or 64) of that shared object, and providing the
14929 # list of exported symbols of that shared object, eventually
14930 # decorated with the 'weak' keyword
14931 # *) the shared object with the F_LOADONLY flag set, to really avoid
14932 # it being seen by the linker.
14933 # At run time we better use the real file rather than another symlink,
14934 # but for link time we create the symlink libNAME.so -> libNAME.so.V
14936 case $with_aix_soname,$aix_use_runtimelinking in
14937 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
14938 # soname into executable. Probably we can add versioning support to
14939 # collect2, so additional links can be useful in future.
14940 aix,yes) # traditional libtool
14941 dynamic_linker='AIX unversionable lib.so'
14942 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14943 # instead of lib<name>.a to let people know that these are not
14944 # typical AIX shared libraries.
14945 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14947 aix,no) # traditional AIX only
14948 dynamic_linker='AIX lib.a(lib.so.V)'
14949 # We preserve .a as extension for shared libraries through AIX4.2
14950 # and later when we are not doing run time linking.
14951 library_names_spec='$libname$release.a $libname.a'
14952 soname_spec='$libname$release$shared_ext$major'
14954 svr4,*) # full svr4 only
14955 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
14956 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14957 # We do not specify a path in Import Files, so LIBPATH fires.
14958 shlibpath_overrides_runpath=yes
14960 *,yes) # both, prefer svr4
14961 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
14962 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
14963 # unpreferred sharedlib libNAME.a needs extra handling
14964 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"'
14965 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"'
14966 # We do not specify a path in Import Files, so LIBPATH fires.
14967 shlibpath_overrides_runpath=yes
14969 *,no) # both, prefer aix
14970 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
14971 library_names_spec='$libname$release.a $libname.a'
14972 soname_spec='$libname$release$shared_ext$major'
14973 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
14974 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)'
14975 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"'
14978 shlibpath_var=LIBPATH
14985 # Since July 2007 AmigaOS4 officially supports .so libraries.
14986 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14987 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14990 library_names_spec='$libname.ixlibrary $libname.a'
14991 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14992 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'
14998 library_names_spec='$libname$shared_ext'
14999 dynamic_linker="$host_os ld.so"
15000 shlibpath_var=LIBRARY_PATH
15004 version_type=linux # correct to gnu/linux during the next big refactor
15006 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15007 soname_spec='$libname$release$shared_ext$major'
15008 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15009 shlibpath_var=LD_LIBRARY_PATH
15010 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15011 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15012 # the default ld.so.conf also contains /usr/contrib/lib and
15013 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15014 # libtool to hard-code these into programs
15017 cygwin* | mingw* | pw32* | cegcc*)
15018 version_type=windows
15023 case $GCC,$cc_basename in
15026 library_names_spec='$libname.dll.a'
15027 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15028 postinstall_cmds='base_file=`basename \$file`~
15029 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15030 dldir=$destdir/`dirname \$dlpath`~
15031 test -d \$dldir || mkdir -p \$dldir~
15032 $install_prog $dir/$dlname \$dldir/$dlname~
15033 chmod a+x \$dldir/$dlname~
15034 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15035 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15037 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15038 dlpath=$dir/\$dldll~
15040 shlibpath_overrides_runpath=yes
15044 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15045 soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15047 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
15050 # MinGW DLLs use traditional 'lib' prefix
15051 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15054 # pw32 DLLs use 'pw' prefix rather than 'lib'
15055 library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15058 dynamic_linker='Win32 ld.exe'
15062 # Native MSVC or ICC
15063 libname_spec='$name'
15064 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
15065 library_names_spec='$libname.dll.lib'
15069 sys_lib_search_path_spec=
15072 for lt_path in $LIB
15075 # Let DOS variable expansion print the short 8.3 style file name.
15076 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15077 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15080 # Convert to MSYS style.
15081 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15084 # Convert to unix form, then to dos form, then back to unix form
15085 # but this time dos style (no spaces!) so that the unix form looks
15086 # like /cygdrive/c/PROGRA~1:/cygdr...
15087 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15088 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15089 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15092 sys_lib_search_path_spec=$LIB
15093 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15094 # It is most probably a Windows format PATH.
15095 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15097 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15099 # FIXME: find the short name or the path components, as spaces are
15100 # common. (e.g. "Program Files" -> "PROGRA~1")
15104 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15105 postinstall_cmds='base_file=`basename \$file`~
15106 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
15107 dldir=$destdir/`dirname \$dlpath`~
15108 test -d \$dldir || mkdir -p \$dldir~
15109 $install_prog $dir/$dlname \$dldir/$dlname'
15110 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15111 dlpath=$dir/\$dldll~
15113 shlibpath_overrides_runpath=yes
15114 dynamic_linker='Win32 link.exe'
15118 # Assume MSVC and ICC wrapper
15119 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
15120 dynamic_linker='Win32 ld.exe'
15123 # FIXME: first we should search . and the directory the executable is in
15127 darwin* | rhapsody*)
15128 dynamic_linker="$host_os dyld"
15129 version_type=darwin
15132 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
15133 soname_spec='$libname$release$major$shared_ext'
15134 shlibpath_overrides_runpath=yes
15135 shlibpath_var=DYLD_LIBRARY_PATH
15136 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15138 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
15139 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15143 version_type=linux # correct to gnu/linux during the next big refactor
15146 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15147 soname_spec='$libname$release$shared_ext$major'
15148 shlibpath_var=LD_LIBRARY_PATH
15151 freebsd* | dragonfly* | midnightbsd*)
15152 # DragonFly does not have aout. When/if they implement a new
15153 # versioning mechanism, adjust this.
15154 if test -x /usr/bin/objformat; then
15155 objformat=`/usr/bin/objformat`
15158 freebsd[23].*) objformat=aout ;;
15159 *) objformat=elf ;;
15162 version_type=freebsd-$objformat
15163 case $version_type in
15165 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15166 soname_spec='$libname$release$shared_ext$major'
15171 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15175 shlibpath_var=LD_LIBRARY_PATH
15178 shlibpath_overrides_runpath=yes
15180 freebsd3.[01]* | freebsdelf3.[01]*)
15181 shlibpath_overrides_runpath=yes
15182 hardcode_into_libs=yes
15184 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15185 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15186 shlibpath_overrides_runpath=no
15187 hardcode_into_libs=yes
15189 *) # from 4.6 on, and DragonFly
15190 shlibpath_overrides_runpath=yes
15191 hardcode_into_libs=yes
15197 version_type=linux # correct to gnu/linux during the next big refactor
15200 dynamic_linker="$host_os runtime_loader"
15201 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15202 soname_spec='$libname$release$shared_ext$major'
15203 shlibpath_var=LIBRARY_PATH
15204 shlibpath_overrides_runpath=no
15205 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15206 hardcode_into_libs=yes
15209 hpux9* | hpux10* | hpux11*)
15210 # Give a soname corresponding to the major version so that dld.sl refuses to
15211 # link against other versions.
15218 hardcode_into_libs=yes
15219 dynamic_linker="$host_os dld.so"
15220 shlibpath_var=LD_LIBRARY_PATH
15221 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15222 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15223 soname_spec='$libname$release$shared_ext$major'
15224 if test 32 = "$HPUX_IA64_MODE"; then
15225 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15226 sys_lib_dlsearch_path_spec=/usr/lib/hpux32
15228 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15229 sys_lib_dlsearch_path_spec=/usr/lib/hpux64
15234 hardcode_into_libs=yes
15235 dynamic_linker="$host_os dld.sl"
15236 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15237 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15239 soname_spec='$libname$release$shared_ext$major'
15240 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15241 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15245 dynamic_linker="$host_os dld.sl"
15246 shlibpath_var=SHLIB_PATH
15247 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15248 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15249 soname_spec='$libname$release$shared_ext$major'
15252 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15253 postinstall_cmds='chmod 555 $lib'
15254 # or fails outright, so override atomically:
15255 install_override_mode=555
15259 version_type=linux # correct to gnu/linux during the next big refactor
15262 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15263 soname_spec='$libname$release$shared_ext$major'
15264 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 shlibpath_overrides_runpath=no
15267 hardcode_into_libs=yes
15270 irix5* | irix6* | nonstopux*)
15272 nonstopux*) version_type=nonstopux ;;
15274 if test yes = "$lt_cv_prog_gnu_ld"; then
15275 version_type=linux # correct to gnu/linux during the next big refactor
15282 soname_spec='$libname$release$shared_ext$major'
15283 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
15285 irix5* | nonstopux*)
15286 libsuff= shlibsuff=
15289 case $LD in # libtool.m4 will add one of these switches to LD
15290 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15291 libsuff= shlibsuff= libmagic=32-bit;;
15292 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15293 libsuff=32 shlibsuff=N32 libmagic=N32;;
15294 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15295 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15296 *) libsuff= shlibsuff= libmagic=never-match;;
15300 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15301 shlibpath_overrides_runpath=no
15302 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
15303 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
15304 hardcode_into_libs=yes
15307 # No shared lib support for Linux oldld, aout, or coff.
15308 linux*oldld* | linux*aout* | linux*coff*)
15313 version_type=none # Android doesn't support versioned libraries.
15316 library_names_spec='$libname$release$shared_ext'
15317 soname_spec='$libname$release$shared_ext'
15319 shlibpath_var=LD_LIBRARY_PATH
15320 shlibpath_overrides_runpath=yes
15322 # This implies no fast_install, which is unacceptable.
15323 # Some rework will be needed to allow for fast_install
15324 # before this can be enabled.
15325 hardcode_into_libs=yes
15327 dynamic_linker='Android linker'
15328 # Don't embed -rpath directories since the linker doesn't support them.
15329 hardcode_libdir_flag_spec='-L$libdir'
15332 # This must be glibc/ELF.
15333 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
15334 version_type=linux # correct to gnu/linux during the next big refactor
15337 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15338 soname_spec='$libname$release$shared_ext$major'
15339 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15340 shlibpath_var=LD_LIBRARY_PATH
15341 shlibpath_overrides_runpath=no
15343 # Some binutils ld are patched to set DT_RUNPATH
15344 if test ${lt_cv_shlibpath_overrides_runpath+y}
15346 printf %s "(cached) " >&6
15348 lt_cv_shlibpath_overrides_runpath=no
15349 save_LDFLAGS=$LDFLAGS
15350 save_libdir=$libdir
15351 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
15352 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
15353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15354 /* end confdefs.h. */
15363 if ac_fn_c_try_link "$LINENO"
15365 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null
15367 lt_cv_shlibpath_overrides_runpath=yes
15370 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15371 conftest$ac_exeext conftest.$ac_ext
15372 LDFLAGS=$save_LDFLAGS
15373 libdir=$save_libdir
15377 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15379 # This implies no fast_install, which is unacceptable.
15380 # Some rework will be needed to allow for fast_install
15381 # before this can be enabled.
15382 hardcode_into_libs=yes
15384 # Ideally, we could use ldconfig to report *all* directores which are
15385 # searched for libraries, however this is still not possible. Aside from not
15386 # being certain /sbin/ldconfig is available, command
15387 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
15388 # even though it is searched at run-time. Try to do the best guess by
15389 # appending ld.so.conf contents (and includes) to the search path.
15390 if test -f /etc/ld.so.conf; then
15391 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' ' '`
15392 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15395 # We used to test for /lib/ld.so.1 and disable shared libraries on
15396 # powerpc, because MkLinux only supported shared libraries with the
15397 # GNU dynamic linker. Since this was broken with cross compilers,
15398 # most powerpc-linux boxes support dynamic linking these days and
15399 # people can always --disable-shared, the test was removed, and we
15400 # assume the GNU/Linux dynamic linker is in use.
15401 dynamic_linker='GNU/Linux ld.so'
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=no
15412 hardcode_into_libs=yes
15413 dynamic_linker='NetBSD ld.elf_so'
15420 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15421 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15423 dynamic_linker='NetBSD (a.out) ld.so'
15425 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15426 soname_spec='$libname$release$shared_ext$major'
15427 dynamic_linker='NetBSD ld.elf_so'
15429 shlibpath_var=LD_LIBRARY_PATH
15430 shlibpath_overrides_runpath=yes
15431 hardcode_into_libs=yes
15435 version_type=linux # correct to gnu/linux during the next big refactor
15436 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15437 shlibpath_var=LD_LIBRARY_PATH
15438 shlibpath_overrides_runpath=yes
15445 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15446 soname_spec='$libname$release$shared_ext$major'
15447 shlibpath_var=LD_LIBRARY_PATH
15448 shlibpath_overrides_runpath=no
15449 hardcode_into_libs=yes
15450 dynamic_linker='ldqnx.so'
15453 openbsd* | bitrig*)
15455 sys_lib_dlsearch_path_spec=/usr/lib
15457 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
15462 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15464 shlibpath_var=LD_LIBRARY_PATH
15465 shlibpath_overrides_runpath=yes
15469 libname_spec='$name'
15470 version_type=windows
15474 # OS/2 can only load a DLL with a base name of 8 characters or less.
15475 soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
15476 v=$($ECHO $release$versuffix | tr -d .-);
15477 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
15478 $ECHO $n$v`$shared_ext'
15479 library_names_spec='${libname}_dll.$libext'
15480 dynamic_linker='OS/2 ld.exe'
15481 shlibpath_var=BEGINLIBPATH
15482 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15484 postinstall_cmds='base_file=`basename \$file`~
15485 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
15486 dldir=$destdir/`dirname \$dlpath`~
15487 test -d \$dldir || mkdir -p \$dldir~
15488 $install_prog $dir/$dlname \$dldir/$dlname~
15489 chmod a+x \$dldir/$dlname~
15490 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15491 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15493 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
15494 dlpath=$dir/\$dldll~
15498 osf3* | osf4* | osf5*)
15502 soname_spec='$libname$release$shared_ext$major'
15503 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15504 shlibpath_var=LD_LIBRARY_PATH
15505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15514 version_type=linux # correct to gnu/linux during the next big refactor
15517 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15518 soname_spec='$libname$release$shared_ext$major'
15519 shlibpath_var=LD_LIBRARY_PATH
15520 shlibpath_overrides_runpath=yes
15521 hardcode_into_libs=yes
15522 # ldd complains unless libraries are executable
15523 postinstall_cmds='chmod +x $lib'
15528 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
15529 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15530 shlibpath_var=LD_LIBRARY_PATH
15531 shlibpath_overrides_runpath=yes
15532 if test yes = "$with_gnu_ld"; then
15539 version_type=linux # correct to gnu/linux during the next big refactor
15540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15541 soname_spec='$libname$release$shared_ext$major'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 case $host_vendor in
15545 shlibpath_overrides_runpath=no
15547 runpath_var=LD_RUN_PATH
15555 shlibpath_overrides_runpath=no
15556 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15562 if test -d /usr/nec; then
15563 version_type=linux # correct to gnu/linux during the next big refactor
15564 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
15565 soname_spec='$libname$shared_ext.$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15570 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15574 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
15575 soname_spec='$libname$release$shared_ext$major'
15576 shlibpath_var=LD_LIBRARY_PATH
15577 shlibpath_overrides_runpath=yes
15578 hardcode_into_libs=yes
15579 if test yes = "$with_gnu_ld"; then
15580 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15582 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15585 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15589 sys_lib_dlsearch_path_spec='/usr/lib'
15593 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15594 version_type=linux # correct to gnu/linux during the next big refactor
15597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15598 shlibpath_var=LD_LIBRARY_PATH
15599 shlibpath_overrides_runpath=no
15600 hardcode_into_libs=yes
15604 version_type=linux # correct to gnu/linux during the next big refactor
15605 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
15606 soname_spec='$libname$release$shared_ext$major'
15607 shlibpath_var=LD_LIBRARY_PATH
15614 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15615 printf "%s\n" "$dynamic_linker" >&6; }
15616 test no = "$dynamic_linker" && can_build_shared=no
15618 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15619 if test yes = "$GCC"; then
15620 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15623 if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
15624 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
15627 if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
15628 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
15631 # remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
15632 configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
15634 # ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
15635 func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
15637 # to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
15638 configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
15736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15737 printf %s "checking how to hardcode library paths into programs... " >&6; }
15739 if test -n "$hardcode_libdir_flag_spec" ||
15740 test -n "$runpath_var" ||
15741 test yes = "$hardcode_automatic"; then
15743 # We can hardcode non-existent directories.
15744 if test no != "$hardcode_direct" &&
15745 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15746 # have to relink, otherwise we might link with an installed library
15747 # when we should be linking with a yet-to-be-installed one
15748 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
15749 test no != "$hardcode_minus_L"; then
15750 # Linking always hardcodes the temporary library directory.
15751 hardcode_action=relink
15753 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15754 hardcode_action=immediate
15757 # We cannot hardcode anything, or else we can only hardcode existing
15759 hardcode_action=unsupported
15761 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
15762 printf "%s\n" "$hardcode_action" >&6; }
15764 if test relink = "$hardcode_action" ||
15765 test yes = "$inherit_rpath"; then
15766 # Fast installation is not supported
15767 enable_fast_install=no
15768 elif test yes = "$shlibpath_overrides_runpath" ||
15769 test no = "$enable_shared"; then
15770 # Fast installation is not necessary
15771 enable_fast_install=needless
15779 if test yes != "$enable_dlopen"; then
15780 enable_dlopen=unknown
15781 enable_dlopen_self=unknown
15782 enable_dlopen_self_static=unknown
15789 lt_cv_dlopen=load_add_on
15791 lt_cv_dlopen_self=yes
15794 mingw* | pw32* | cegcc*)
15795 lt_cv_dlopen=LoadLibrary
15800 lt_cv_dlopen=dlopen
15805 # if libdl is installed we need to link against it
15806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15807 printf %s "checking for dlopen in -ldl... " >&6; }
15808 if test ${ac_cv_lib_dl_dlopen+y}
15810 printf %s "(cached) " >&6
15812 ac_check_lib_save_LIBS=$LIBS
15814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15815 /* end confdefs.h. */
15829 if ac_fn_c_try_link "$LINENO"
15831 ac_cv_lib_dl_dlopen=yes
15833 ac_cv_lib_dl_dlopen=no
15835 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15836 conftest$ac_exeext conftest.$ac_ext
15837 LIBS=$ac_check_lib_save_LIBS
15839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15840 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15841 if test "x$ac_cv_lib_dl_dlopen" = xyes
15843 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15848 lt_cv_dlopen_self=yes
15855 # Don't try to run any link tests for TPF. We know it's impossible
15856 # because TPF is a cross-compiler, and we know how we open DSOs.
15857 lt_cv_dlopen=dlopen
15859 lt_cv_dlopen_self=no
15863 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
15864 if test "x$ac_cv_func_shl_load" = xyes
15866 lt_cv_dlopen=shl_load
15868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
15869 printf %s "checking for shl_load in -ldld... " >&6; }
15870 if test ${ac_cv_lib_dld_shl_load+y}
15872 printf %s "(cached) " >&6
15874 ac_check_lib_save_LIBS=$LIBS
15876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15877 /* end confdefs.h. */
15886 return shl_load ();
15891 if ac_fn_c_try_link "$LINENO"
15893 ac_cv_lib_dld_shl_load=yes
15895 ac_cv_lib_dld_shl_load=no
15897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15898 conftest$ac_exeext conftest.$ac_ext
15899 LIBS=$ac_check_lib_save_LIBS
15901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
15902 printf "%s\n" "$ac_cv_lib_dld_shl_load" >&6; }
15903 if test "x$ac_cv_lib_dld_shl_load" = xyes
15905 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
15907 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
15908 if test "x$ac_cv_func_dlopen" = xyes
15910 lt_cv_dlopen=dlopen
15912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
15913 printf %s "checking for dlopen in -ldl... " >&6; }
15914 if test ${ac_cv_lib_dl_dlopen+y}
15916 printf %s "(cached) " >&6
15918 ac_check_lib_save_LIBS=$LIBS
15920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15921 /* end confdefs.h. */
15935 if ac_fn_c_try_link "$LINENO"
15937 ac_cv_lib_dl_dlopen=yes
15939 ac_cv_lib_dl_dlopen=no
15941 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15942 conftest$ac_exeext conftest.$ac_ext
15943 LIBS=$ac_check_lib_save_LIBS
15945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
15946 printf "%s\n" "$ac_cv_lib_dl_dlopen" >&6; }
15947 if test "x$ac_cv_lib_dl_dlopen" = xyes
15949 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
15951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
15952 printf %s "checking for dlopen in -lsvld... " >&6; }
15953 if test ${ac_cv_lib_svld_dlopen+y}
15955 printf %s "(cached) " >&6
15957 ac_check_lib_save_LIBS=$LIBS
15958 LIBS="-lsvld $LIBS"
15959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15960 /* end confdefs.h. */
15974 if ac_fn_c_try_link "$LINENO"
15976 ac_cv_lib_svld_dlopen=yes
15978 ac_cv_lib_svld_dlopen=no
15980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
15981 conftest$ac_exeext conftest.$ac_ext
15982 LIBS=$ac_check_lib_save_LIBS
15984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
15985 printf "%s\n" "$ac_cv_lib_svld_dlopen" >&6; }
15986 if test "x$ac_cv_lib_svld_dlopen" = xyes
15988 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
15990 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
15991 printf %s "checking for dld_link in -ldld... " >&6; }
15992 if test ${ac_cv_lib_dld_dld_link+y}
15994 printf %s "(cached) " >&6
15996 ac_check_lib_save_LIBS=$LIBS
15998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15999 /* end confdefs.h. */
16008 return dld_link ();
16013 if ac_fn_c_try_link "$LINENO"
16015 ac_cv_lib_dld_dld_link=yes
16017 ac_cv_lib_dld_dld_link=no
16019 rm -f core conftest.err conftest.$ac_objext conftest.beam \
16020 conftest$ac_exeext conftest.$ac_ext
16021 LIBS=$ac_check_lib_save_LIBS
16023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
16024 printf "%s\n" "$ac_cv_lib_dld_dld_link" >&6; }
16025 if test "x$ac_cv_lib_dld_dld_link" = xyes
16027 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
16048 if test no = "$lt_cv_dlopen"; then
16054 case $lt_cv_dlopen in
16056 save_CPPFLAGS=$CPPFLAGS
16057 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
16059 save_LDFLAGS=$LDFLAGS
16060 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
16063 LIBS="$lt_cv_dlopen_libs $LIBS"
16065 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
16066 printf %s "checking whether a program can dlopen itself... " >&6; }
16067 if test ${lt_cv_dlopen_self+y}
16069 printf %s "(cached) " >&6
16071 if test yes = "$cross_compiling"; then :
16072 lt_cv_dlopen_self=cross
16074 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16075 lt_status=$lt_dlunknown
16076 cat > conftest.$ac_ext <<_LT_EOF
16077 #line $LINENO "configure"
16078 #include "confdefs.h"
16087 # define LT_DLGLOBAL RTLD_GLOBAL
16090 # define LT_DLGLOBAL DL_GLOBAL
16092 # define LT_DLGLOBAL 0
16096 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16097 find out it does not work in some platform. */
16098 #ifndef LT_DLLAZY_OR_NOW
16100 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16103 # define LT_DLLAZY_OR_NOW DL_LAZY
16106 # define LT_DLLAZY_OR_NOW RTLD_NOW
16109 # define LT_DLLAZY_OR_NOW DL_NOW
16111 # define LT_DLLAZY_OR_NOW 0
16118 /* When -fvisibility=hidden is used, assume the code has been annotated
16119 correspondingly for the symbols needed. */
16120 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16121 int fnord () __attribute__((visibility("default")));
16124 int fnord () { return 42; }
16127 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16128 int status = $lt_dlunknown;
16132 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16135 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16136 else puts (dlerror ());
16138 /* dlclose (self); */
16146 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16147 (eval $ac_link) 2>&5
16149 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16150 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16151 (./conftest; exit; ) >&5 2>/dev/null
16153 case x$lt_status in
16154 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
16155 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
16156 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
16159 # compilation failed
16160 lt_cv_dlopen_self=no
16167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
16168 printf "%s\n" "$lt_cv_dlopen_self" >&6; }
16170 if test yes = "$lt_cv_dlopen_self"; then
16171 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
16172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
16173 printf %s "checking whether a statically linked program can dlopen itself... " >&6; }
16174 if test ${lt_cv_dlopen_self_static+y}
16176 printf %s "(cached) " >&6
16178 if test yes = "$cross_compiling"; then :
16179 lt_cv_dlopen_self_static=cross
16181 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
16182 lt_status=$lt_dlunknown
16183 cat > conftest.$ac_ext <<_LT_EOF
16184 #line $LINENO "configure"
16185 #include "confdefs.h"
16194 # define LT_DLGLOBAL RTLD_GLOBAL
16197 # define LT_DLGLOBAL DL_GLOBAL
16199 # define LT_DLGLOBAL 0
16203 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
16204 find out it does not work in some platform. */
16205 #ifndef LT_DLLAZY_OR_NOW
16207 # define LT_DLLAZY_OR_NOW RTLD_LAZY
16210 # define LT_DLLAZY_OR_NOW DL_LAZY
16213 # define LT_DLLAZY_OR_NOW RTLD_NOW
16216 # define LT_DLLAZY_OR_NOW DL_NOW
16218 # define LT_DLLAZY_OR_NOW 0
16225 /* When -fvisibility=hidden is used, assume the code has been annotated
16226 correspondingly for the symbols needed. */
16227 #if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
16228 int fnord () __attribute__((visibility("default")));
16231 int fnord () { return 42; }
16234 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
16235 int status = $lt_dlunknown;
16239 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
16242 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
16243 else puts (dlerror ());
16245 /* dlclose (self); */
16253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
16254 (eval $ac_link) 2>&5
16256 printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16257 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
16258 (./conftest; exit; ) >&5 2>/dev/null
16260 case x$lt_status in
16261 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
16262 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
16263 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
16266 # compilation failed
16267 lt_cv_dlopen_self_static=no
16274 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
16275 printf "%s\n" "$lt_cv_dlopen_self_static" >&6; }
16278 CPPFLAGS=$save_CPPFLAGS
16279 LDFLAGS=$save_LDFLAGS
16284 case $lt_cv_dlopen_self in
16285 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
16286 *) enable_dlopen_self=unknown ;;
16289 case $lt_cv_dlopen_self_static in
16290 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
16291 *) enable_dlopen_self_static=unknown ;;
16313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
16314 printf %s "checking whether stripping libraries is possible... " >&6; }
16315 if test -z "$STRIP"; then
16316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16317 printf "%s\n" "no" >&6; }
16319 if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
16320 old_striplib="$STRIP --strip-debug"
16321 striplib="$STRIP --strip-unneeded"
16322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16323 printf "%s\n" "yes" >&6; }
16327 # FIXME - insert some real tests, host_os isn't really good enough
16328 striplib="$STRIP -x"
16329 old_striplib="$STRIP -S"
16330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16331 printf "%s\n" "yes" >&6; }
16334 if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then
16335 old_striplib="$STRIP --strip-debug"
16336 striplib="$STRIP --strip-unneeded"
16337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16338 printf "%s\n" "yes" >&6; }
16340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16341 printf "%s\n" "no" >&6; }
16345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16346 printf "%s\n" "no" >&6; }
16363 # Report what library types will actually be built
16364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16365 printf %s "checking if libtool supports shared libraries... " >&6; }
16366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16367 printf "%s\n" "$can_build_shared" >&6; }
16369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16370 printf %s "checking whether to build shared libraries... " >&6; }
16371 test no = "$can_build_shared" && enable_shared=no
16373 # On AIX, shared libraries and static libraries use the same namespace, and
16374 # are all built from PIC.
16377 test yes = "$enable_shared" && enable_static=no
16378 if test -n "$RANLIB"; then
16379 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16380 postinstall_cmds='$RANLIB $lib'
16385 if test ia64 != "$host_cpu"; then
16386 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
16387 yes,aix,yes) ;; # shared object as lib.so file only
16388 yes,svr4,*) ;; # shared object as lib.so archive member only
16389 yes,*) enable_static=no ;; # shared object in lib.a archive as well
16394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16395 printf "%s\n" "$enable_shared" >&6; }
16397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16398 printf %s "checking whether to build static libraries... " >&6; }
16399 # Make sure either enable_shared or enable_static is yes.
16400 test yes = "$enable_shared" || enable_static=yes
16401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16402 printf "%s\n" "$enable_static" >&6; }
16409 ac_cpp='$CPP $CPPFLAGS'
16410 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16411 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16412 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16430 ac_config_commands="$ac_config_commands libtool"
16435 # Only expand once:
16438 ## --------------------- ##
16439 ## End of libtool code ##
16440 ## --------------------- ##
16443 # Verify if finally libtool shared libraries will be built
16446 case "x$enable_shared" in # ((
16448 xc_lt_build_shared=$enable_shared
16451 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
16456 # Verify if finally libtool static libraries will be built
16459 case "x$enable_static" in # ((
16461 xc_lt_build_static=$enable_static
16464 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
16469 # Verify if libtool shared libraries should be linked using flag -version-info
16472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
16473 printf %s "checking whether to build shared libraries with -version-info... " >&6; }
16474 xc_lt_shlib_use_version_info='yes'
16475 if test "x$version_type" = 'xnone'; then
16476 xc_lt_shlib_use_version_info='no'
16478 case $host_os in # (
16480 xc_lt_shlib_use_version_info='yes'
16483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
16484 printf "%s\n" "$xc_lt_shlib_use_version_info" >&6; }
16487 # Verify if libtool shared libraries should be linked using flag -no-undefined
16490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
16491 printf %s "checking whether to build shared libraries with -no-undefined... " >&6; }
16492 xc_lt_shlib_use_no_undefined='no'
16493 if test "x$allow_undefined" = 'xno'; then
16494 xc_lt_shlib_use_no_undefined='yes'
16495 elif test "x$allow_undefined_flag" = 'xunsupported'; then
16496 xc_lt_shlib_use_no_undefined='yes'
16498 case $host_os in # (
16499 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
16500 xc_lt_shlib_use_no_undefined='yes'
16503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
16504 printf "%s\n" "$xc_lt_shlib_use_no_undefined" >&6; }
16507 # Verify if libtool shared libraries should be linked using flag -mimpure-text
16510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
16511 printf %s "checking whether to build shared libraries with -mimpure-text... " >&6; }
16512 xc_lt_shlib_use_mimpure_text='no'
16513 case $host_os in # (
16515 if test "x$GCC" = 'xyes'; then
16516 xc_lt_shlib_use_mimpure_text='yes'
16520 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
16521 printf "%s\n" "$xc_lt_shlib_use_mimpure_text" >&6; }
16524 # Find out whether libtool libraries would be built with PIC
16527 case "x$pic_mode" in # ((((
16529 xc_lt_build_shared_with_pic='yes'
16530 xc_lt_build_static_with_pic='no'
16533 xc_lt_build_shared_with_pic='yes'
16534 xc_lt_build_static_with_pic='yes'
16537 xc_lt_build_shared_with_pic='no'
16538 xc_lt_build_static_with_pic='no'
16541 xc_lt_build_shared_with_pic='unknown'
16542 xc_lt_build_static_with_pic='unknown'
16543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
16544 printf "%s\n" "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
16547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
16548 printf %s "checking whether to build shared libraries with PIC... " >&6; }
16549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
16550 printf "%s\n" "$xc_lt_build_shared_with_pic" >&6; }
16551 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
16552 printf %s "checking whether to build static libraries with PIC... " >&6; }
16553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
16554 printf "%s\n" "$xc_lt_build_static_with_pic" >&6; }
16557 # Verify if libtool shared libraries will be built while static not built
16560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
16561 printf %s "checking whether to build shared libraries only... " >&6; }
16562 if test "$xc_lt_build_shared" = 'yes' &&
16563 test "$xc_lt_build_static" = 'no'; then
16564 xc_lt_build_shared_only='yes'
16566 xc_lt_build_shared_only='no'
16568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
16569 printf "%s\n" "$xc_lt_build_shared_only" >&6; }
16572 # Verify if libtool static libraries will be built while shared not built
16575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
16576 printf %s "checking whether to build static libraries only... " >&6; }
16577 if test "$xc_lt_build_static" = 'yes' &&
16578 test "$xc_lt_build_shared" = 'no'; then
16579 xc_lt_build_static_only='yes'
16581 xc_lt_build_static_only='no'
16583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
16584 printf "%s\n" "$xc_lt_build_static_only" >&6; }
16589 if test -n "$ac_tool_prefix"; then
16590 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
16591 set dummy ${ac_tool_prefix}windres; ac_word=$2
16592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16593 printf %s "checking for $ac_word... " >&6; }
16594 if test ${ac_cv_prog_RC+y}
16596 printf %s "(cached) " >&6
16598 if test -n "$RC"; then
16599 ac_cv_prog_RC="$RC" # Let the user override the test.
16601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16602 for as_dir in $PATH
16605 case $as_dir in #(((
16608 *) as_dir=$as_dir/ ;;
16610 for ac_exec_ext in '' $ac_executable_extensions; do
16611 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16612 ac_cv_prog_RC="${ac_tool_prefix}windres"
16613 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16623 if test -n "$RC"; then
16624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
16625 printf "%s\n" "$RC" >&6; }
16627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16628 printf "%s\n" "no" >&6; }
16633 if test -z "$ac_cv_prog_RC"; then
16635 # Extract the first word of "windres", so it can be a program name with args.
16636 set dummy windres; ac_word=$2
16637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16638 printf %s "checking for $ac_word... " >&6; }
16639 if test ${ac_cv_prog_ac_ct_RC+y}
16641 printf %s "(cached) " >&6
16643 if test -n "$ac_ct_RC"; then
16644 ac_cv_prog_ac_ct_RC="$ac_ct_RC" # Let the user override the test.
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $PATH
16650 case $as_dir in #(((
16653 *) as_dir=$as_dir/ ;;
16655 for ac_exec_ext in '' $ac_executable_extensions; do
16656 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
16657 ac_cv_prog_ac_ct_RC="windres"
16658 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
16667 ac_ct_RC=$ac_cv_prog_ac_ct_RC
16668 if test -n "$ac_ct_RC"; then
16669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RC" >&5
16670 printf "%s\n" "$ac_ct_RC" >&6; }
16672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
16673 printf "%s\n" "no" >&6; }
16676 if test "x$ac_ct_RC" = x; then
16679 case $cross_compiling:$ac_tool_warned in
16681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16682 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16683 ac_tool_warned=yes ;;
16688 RC="$ac_cv_prog_RC"
16694 # Source file extension for RC test sources.
16697 # Object file extension for compiled RC test sources.
16701 # Code to be used in simple compile tests
16702 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
16704 # Code to be used in simple link tests
16705 lt_simple_link_test_code=$lt_simple_compile_test_code
16707 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16714 # If no C compiler was specified, use CC.
16717 # If no C compiler flags were specified, use CFLAGS.
16718 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16720 # Allow CC to be a program name with arguments.
16724 # save warnings/boilerplate of simple test code
16725 ac_outfile=conftest.$ac_objext
16726 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16727 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16728 _lt_compiler_boilerplate=`cat conftest.err`
16731 ac_outfile=conftest.$ac_objext
16732 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16733 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16734 _lt_linker_boilerplate=`cat conftest.err`
16738 # Allow CC to be a program name with arguments.
16740 lt_save_CFLAGS=$CFLAGS
16747 func_cc_basename $compiler
16748 cc_basename=$func_cc_basename_result
16750 lt_cv_prog_compiler_c_o_RC=yes
16752 if test -n "$compiler"; then
16761 ac_cpp='$CPP $CPPFLAGS'
16762 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16763 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16764 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16767 CFLAGS=$lt_save_CFLAGS
16771 # Automake conditionals based on libtool related checks
16774 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
16775 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
16776 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
16778 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
16779 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
16782 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
16783 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
16784 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
16786 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
16787 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
16790 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
16791 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
16792 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
16794 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
16795 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
16800 # Due to libtool and automake machinery limitations of not allowing
16801 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
16802 # inclusion of these in shared or static libraries, we are forced to
16803 # build using separate configure runs for shared and static libraries
16804 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
16805 # to compile objects for each kind of library. Notice that relying on
16806 # the '-DPIC' CFLAG that libtool provides is not valid given that the
16807 # user might for example choose to build static libraries with PIC.
16811 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
16812 # targeting a static library and not building its shared counterpart.
16815 if test "x$xc_lt_build_static_only" = 'xyes'; then
16816 USE_CPPFLAG_CURL_STATICLIB_TRUE=
16817 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
16819 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
16820 USE_CPPFLAG_CURL_STATICLIB_FALSE=
16825 # Make staticlib CPPFLAG variable and its definition visible in output
16826 # files unconditionally, providing an empty definition unless strictly
16827 # targeting a static library and not building its shared counterpart.
16830 CPPFLAG_CURL_STATICLIB=
16831 if test "x$xc_lt_build_static_only" = 'xyes'; then
16832 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
16837 # Determine whether all dependent libraries must be specified when linking
16838 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
16840 REQUIRE_LIB_DEPS=no
16842 REQUIRE_LIB_DEPS=yes
16845 if test x$REQUIRE_LIB_DEPS = xyes; then
16846 USE_EXPLICIT_LIB_DEPS_TRUE=
16847 USE_EXPLICIT_LIB_DEPS_FALSE='#'
16849 USE_EXPLICIT_LIB_DEPS_TRUE='#'
16850 USE_EXPLICIT_LIB_DEPS_FALSE=
16854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16855 printf %s "checking for inline... " >&6; }
16856 if test ${ac_cv_c_inline+y}
16858 printf %s "(cached) " >&6
16861 for ac_kw in inline __inline__ __inline; do
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16864 #ifndef __cplusplus
16866 static $ac_kw foo_t static_foo (void) {return 0; }
16867 $ac_kw foo_t foo (void) {return 0; }
16871 if ac_fn_c_try_compile "$LINENO"
16873 ac_cv_c_inline=$ac_kw
16875 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
16876 test "$ac_cv_c_inline" != no && break
16880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16881 printf "%s\n" "$ac_cv_c_inline" >&6; }
16883 case $ac_cv_c_inline in
16886 case $ac_cv_c_inline in
16888 *) ac_val=$ac_cv_c_inline;;
16890 cat >>confdefs.h <<_ACEOF
16891 #ifndef __cplusplus
16892 #define inline $ac_val
16901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P is needed" >&5
16902 printf %s "checking if cpp -P is needed... " >&6; }
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16910 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16911 $EGREP "TEST.*TEST" >/dev/null 2>&1
16919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp" >&5
16920 printf "%s\n" "$cpp" >&6; }
16922 if test "x$cpp" = "xyes"; then
16923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if cpp -P works" >&5
16924 printf %s "checking if cpp -P works... " >&6; }
16925 OLDCPPFLAGS=$CPPFLAGS
16926 CPPFLAGS="$CPPFLAGS -P"
16927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16928 /* end confdefs.h. */
16934 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16935 $EGREP "TEST.*TEST" >/dev/null 2>&1
16943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cpp_p" >&5
16944 printf "%s\n" "$cpp_p" >&6; }
16946 if test "x$cpp_p" = "xno"; then
16947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: failed to figure out cpp -P alternative" >&5
16948 printf "%s\n" "$as_me: WARNING: failed to figure out cpp -P alternative" >&2;}
16955 CPPFLAGS=$OLDCPPFLAGS
16963 compiler_id="unknown"
16966 flags_dbg_yes="unknown"
16967 flags_opt_all="unknown"
16968 flags_opt_yes="unknown"
16969 flags_opt_off="unknown"
16971 flags_prefer_cppflags="no"
16974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
16975 printf %s "checking if compiler is DEC/Compaq/HP 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 __DECC
16998 if ac_fn_c_try_cpp "$LINENO"
17001 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17002 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17003 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17004 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17005 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
17010 rm -f conftest.err conftest.i conftest.$ac_ext
17011 if test -z "$tmp_exp"; then
17012 curl_cv_have_def___DECC=no
17015 curl_cv_have_def___DECC=yes
17016 curl_cv_def___DECC=$tmp_exp
17019 CPPFLAGS=$OLDCPPFLAGS
17022 OLDCPPFLAGS=$CPPFLAGS
17023 # CPPPFLAG comes from CURL_CPP_P
17024 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17025 if test -z "$SED"; then
17026 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17028 if test -z "$GREP"; then
17029 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17034 /* end confdefs.h. */
17038 CURL_DEF_TOKEN __DECC_VER
17043 if ac_fn_c_try_cpp "$LINENO"
17046 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17047 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17048 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17049 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17050 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
17055 rm -f conftest.err conftest.i conftest.$ac_ext
17056 if test -z "$tmp_exp"; then
17057 curl_cv_have_def___DECC_VER=no
17060 curl_cv_have_def___DECC_VER=yes
17061 curl_cv_def___DECC_VER=$tmp_exp
17064 CPPFLAGS=$OLDCPPFLAGS
17066 if test "$curl_cv_have_def___DECC" = "yes" &&
17067 test "$curl_cv_have_def___DECC_VER" = "yes"; then
17068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17069 printf "%s\n" "yes" >&6; }
17070 compiler_id="DEC_C"
17071 flags_dbg_yes="-g2"
17072 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
17073 flags_opt_yes="-O1"
17074 flags_opt_off="-O0"
17076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17077 printf "%s\n" "no" >&6; }
17081 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
17082 printf %s "checking if compiler is HP-UX C... " >&6; }
17084 OLDCPPFLAGS=$CPPFLAGS
17085 # CPPPFLAG comes from CURL_CPP_P
17086 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17087 if test -z "$SED"; then
17088 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17090 if test -z "$GREP"; then
17091 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17100 CURL_DEF_TOKEN __HP_cc
17105 if ac_fn_c_try_cpp "$LINENO"
17108 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17109 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17110 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17111 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17112 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
17117 rm -f conftest.err conftest.i conftest.$ac_ext
17118 if test -z "$tmp_exp"; then
17119 curl_cv_have_def___HP_cc=no
17122 curl_cv_have_def___HP_cc=yes
17123 curl_cv_def___HP_cc=$tmp_exp
17126 CPPFLAGS=$OLDCPPFLAGS
17128 if test "$curl_cv_have_def___HP_cc" = "yes"; then
17129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17130 printf "%s\n" "yes" >&6; }
17131 compiler_id="HP_UX_C"
17133 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
17134 flags_opt_yes="+O2"
17135 flags_opt_off="+O0"
17137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17138 printf "%s\n" "no" >&6; }
17142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
17143 printf %s "checking if compiler is IBM C... " >&6; }
17145 OLDCPPFLAGS=$CPPFLAGS
17146 # CPPPFLAG comes from CURL_CPP_P
17147 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17148 if test -z "$SED"; then
17149 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17151 if test -z "$GREP"; then
17152 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17157 /* end confdefs.h. */
17161 CURL_DEF_TOKEN __IBMC__
17166 if ac_fn_c_try_cpp "$LINENO"
17169 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17170 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17171 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17172 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17173 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
17178 rm -f conftest.err conftest.i conftest.$ac_ext
17179 if test -z "$tmp_exp"; then
17180 curl_cv_have_def___IBMC__=no
17183 curl_cv_have_def___IBMC__=yes
17184 curl_cv_def___IBMC__=$tmp_exp
17187 CPPFLAGS=$OLDCPPFLAGS
17189 if test "$curl_cv_have_def___IBMC__" = "yes"; then
17190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17191 printf "%s\n" "yes" >&6; }
17192 compiler_id="IBM_C"
17194 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
17195 flags_opt_all="$flags_opt_all -qnooptimize"
17196 flags_opt_all="$flags_opt_all -qoptimize=0"
17197 flags_opt_all="$flags_opt_all -qoptimize=1"
17198 flags_opt_all="$flags_opt_all -qoptimize=2"
17199 flags_opt_all="$flags_opt_all -qoptimize=3"
17200 flags_opt_all="$flags_opt_all -qoptimize=4"
17201 flags_opt_all="$flags_opt_all -qoptimize=5"
17202 flags_opt_yes="-O2"
17203 flags_opt_off="-qnooptimize"
17204 flags_prefer_cppflags="yes"
17206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17207 printf "%s\n" "no" >&6; }
17211 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
17212 printf %s "checking if compiler is Intel C... " >&6; }
17214 OLDCPPFLAGS=$CPPFLAGS
17215 # CPPPFLAG comes from CURL_CPP_P
17216 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17217 if test -z "$SED"; then
17218 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17220 if test -z "$GREP"; then
17221 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17226 /* end confdefs.h. */
17229 #ifdef __INTEL_COMPILER
17230 CURL_DEF_TOKEN __INTEL_COMPILER
17235 if ac_fn_c_try_cpp "$LINENO"
17238 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17239 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17240 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17241 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17242 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
17247 rm -f conftest.err conftest.i conftest.$ac_ext
17248 if test -z "$tmp_exp"; then
17249 curl_cv_have_def___INTEL_COMPILER=no
17252 curl_cv_have_def___INTEL_COMPILER=yes
17253 curl_cv_def___INTEL_COMPILER=$tmp_exp
17256 CPPFLAGS=$OLDCPPFLAGS
17258 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
17259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17260 printf "%s\n" "yes" >&6; }
17261 compiler_num="$curl_cv_def___INTEL_COMPILER"
17263 OLDCPPFLAGS=$CPPFLAGS
17264 # CPPPFLAG comes from CURL_CPP_P
17265 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17266 if test -z "$SED"; then
17267 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17269 if test -z "$GREP"; then
17270 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17275 /* end confdefs.h. */
17279 CURL_DEF_TOKEN __unix__
17284 if ac_fn_c_try_cpp "$LINENO"
17287 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17288 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17289 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17290 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17291 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
17296 rm -f conftest.err conftest.i conftest.$ac_ext
17297 if test -z "$tmp_exp"; then
17298 curl_cv_have_def___unix__=no
17301 curl_cv_have_def___unix__=yes
17302 curl_cv_def___unix__=$tmp_exp
17305 CPPFLAGS=$OLDCPPFLAGS
17307 if test "$curl_cv_have_def___unix__" = "yes"; then
17308 compiler_id="INTEL_UNIX_C"
17310 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
17311 flags_opt_yes="-O2"
17312 flags_opt_off="-O0"
17314 compiler_id="INTEL_WINDOWS_C"
17315 flags_dbg_yes="/Zi /Oy-"
17316 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
17317 flags_opt_yes="/O2"
17318 flags_opt_off="/Od"
17321 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17322 printf "%s\n" "no" >&6; }
17326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
17327 printf %s "checking if compiler is clang... " >&6; }
17329 OLDCPPFLAGS=$CPPFLAGS
17330 # CPPPFLAG comes from CURL_CPP_P
17331 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17332 if test -z "$SED"; then
17333 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17335 if test -z "$GREP"; then
17336 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17341 /* end confdefs.h. */
17345 CURL_DEF_TOKEN __clang__
17350 if ac_fn_c_try_cpp "$LINENO"
17353 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17354 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17355 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17356 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17357 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
17362 rm -f conftest.err conftest.i conftest.$ac_ext
17363 if test -z "$tmp_exp"; then
17364 curl_cv_have_def___clang__=no
17367 curl_cv_have_def___clang__=yes
17368 curl_cv_def___clang__=$tmp_exp
17371 CPPFLAGS=$OLDCPPFLAGS
17373 if test "$curl_cv_have_def___clang__" = "yes"; then
17374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17375 printf "%s\n" "yes" >&6; }
17376 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is xlclang" >&5
17377 printf %s "checking if compiler is xlclang... " >&6; }
17379 OLDCPPFLAGS=$CPPFLAGS
17380 # CPPPFLAG comes from CURL_CPP_P
17381 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17382 if test -z "$SED"; then
17383 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17385 if test -z "$GREP"; then
17386 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17391 /* end confdefs.h. */
17395 CURL_DEF_TOKEN __ibmxl__
17400 if ac_fn_c_try_cpp "$LINENO"
17403 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17404 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17405 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17406 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17407 if test -z "$tmp_exp" || test "$tmp_exp" = "__ibmxl__"; then
17412 rm -f conftest.err conftest.i conftest.$ac_ext
17413 if test -z "$tmp_exp"; then
17414 curl_cv_have_def___ibmxl__=no
17417 curl_cv_have_def___ibmxl__=yes
17418 curl_cv_def___ibmxl__=$tmp_exp
17421 CPPFLAGS=$OLDCPPFLAGS
17423 if test "$curl_cv_have_def___ibmxl__" = "yes" ; then
17424 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17425 printf "%s\n" "yes" >&6; }
17426 compiler_id="XLCLANG"
17428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17429 printf "%s\n" "no" >&6; }
17430 compiler_id="CLANG"
17432 fullclangver=`$CC -v 2>&1 | grep version`
17433 clangver=`echo $fullclangver | grep "based on LLVM " | "$SED" 's/.*(based on LLVM \([0-9]*\.[0-9]*\).*)/\1/'`
17434 if test -z "$clangver"; then
17435 if echo $fullclangver | grep "Apple LLVM version " >/dev/null; then
17438 clangver=`echo $fullclangver | "$SED" 's/.*version \([0-9]*\.[0-9]*\).*/\1/'`
17441 clangvhi=`echo $clangver | cut -d . -f1`
17442 clangvlo=`echo $clangver | cut -d . -f2`
17443 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
17445 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
17446 flags_opt_yes="-O2"
17447 flags_opt_off="-O0"
17449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17450 printf "%s\n" "no" >&6; }
17454 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
17455 printf %s "checking if compiler is GNU C... " >&6; }
17457 OLDCPPFLAGS=$CPPFLAGS
17458 # CPPPFLAG comes from CURL_CPP_P
17459 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17460 if test -z "$SED"; then
17461 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17463 if test -z "$GREP"; then
17464 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17473 CURL_DEF_TOKEN __GNUC__
17478 if ac_fn_c_try_cpp "$LINENO"
17481 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17482 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17483 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17484 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17485 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17490 rm -f conftest.err conftest.i conftest.$ac_ext
17491 if test -z "$tmp_exp"; then
17492 curl_cv_have_def___GNUC__=no
17495 curl_cv_have_def___GNUC__=yes
17496 curl_cv_def___GNUC__=$tmp_exp
17499 CPPFLAGS=$OLDCPPFLAGS
17501 if test "$curl_cv_have_def___GNUC__" = "yes" &&
17502 test "$compiler_id" = "unknown"; then
17503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17504 printf "%s\n" "yes" >&6; }
17505 compiler_id="GNU_C"
17506 gccver=`$CC -dumpversion`
17507 gccvhi=`echo $gccver | cut -d . -f1`
17508 gccvlo=`echo $gccver | cut -d . -f2`
17509 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
17511 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os -Og -Ofast"
17512 flags_opt_yes="-O2"
17513 flags_opt_off="-O0"
17515 OLDCPPFLAGS=$CPPFLAGS
17516 # CPPPFLAG comes from CURL_CPP_P
17517 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17518 if test -z "$SED"; then
17519 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17521 if test -z "$GREP"; then
17522 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17531 CURL_DEF_TOKEN _WIN32
17536 if ac_fn_c_try_cpp "$LINENO"
17539 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17540 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17541 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17542 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17543 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
17548 rm -f conftest.err conftest.i conftest.$ac_ext
17549 if test -z "$tmp_exp"; then
17550 curl_cv_have_def__WIN32=no
17553 curl_cv_have_def__WIN32=yes
17554 curl_cv_def__WIN32=$tmp_exp
17557 CPPFLAGS=$OLDCPPFLAGS
17560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17561 printf "%s\n" "no" >&6; }
17565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
17566 printf %s "checking if compiler is LCC... " >&6; }
17568 OLDCPPFLAGS=$CPPFLAGS
17569 # CPPPFLAG comes from CURL_CPP_P
17570 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17571 if test -z "$SED"; then
17572 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17574 if test -z "$GREP"; then
17575 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17584 CURL_DEF_TOKEN __LCC__
17589 if ac_fn_c_try_cpp "$LINENO"
17592 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17593 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17594 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17595 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17596 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
17601 rm -f conftest.err conftest.i conftest.$ac_ext
17602 if test -z "$tmp_exp"; then
17603 curl_cv_have_def___LCC__=no
17606 curl_cv_have_def___LCC__=yes
17607 curl_cv_def___LCC__=$tmp_exp
17610 CPPFLAGS=$OLDCPPFLAGS
17612 if test "$curl_cv_have_def___LCC__" = "yes"; then
17613 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17614 printf "%s\n" "yes" >&6; }
17621 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17622 printf "%s\n" "no" >&6; }
17626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
17627 printf %s "checking if compiler is SGI MIPSpro C... " >&6; }
17629 OLDCPPFLAGS=$CPPFLAGS
17630 # CPPPFLAG comes from CURL_CPP_P
17631 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17632 if test -z "$SED"; then
17633 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17635 if test -z "$GREP"; then
17636 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17641 /* end confdefs.h. */
17645 CURL_DEF_TOKEN __GNUC__
17650 if ac_fn_c_try_cpp "$LINENO"
17653 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17654 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17655 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17656 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17657 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17662 rm -f conftest.err conftest.i conftest.$ac_ext
17663 if test -z "$tmp_exp"; then
17664 curl_cv_have_def___GNUC__=no
17667 curl_cv_have_def___GNUC__=yes
17668 curl_cv_def___GNUC__=$tmp_exp
17671 CPPFLAGS=$OLDCPPFLAGS
17674 OLDCPPFLAGS=$CPPFLAGS
17675 # CPPPFLAG comes from CURL_CPP_P
17676 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17677 if test -z "$SED"; then
17678 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17680 if test -z "$GREP"; then
17681 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17686 /* end confdefs.h. */
17689 #ifdef _COMPILER_VERSION
17690 CURL_DEF_TOKEN _COMPILER_VERSION
17695 if ac_fn_c_try_cpp "$LINENO"
17698 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17699 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17700 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17701 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17702 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
17707 rm -f conftest.err conftest.i conftest.$ac_ext
17708 if test -z "$tmp_exp"; then
17709 curl_cv_have_def__COMPILER_VERSION=no
17712 curl_cv_have_def__COMPILER_VERSION=yes
17713 curl_cv_def__COMPILER_VERSION=$tmp_exp
17716 CPPFLAGS=$OLDCPPFLAGS
17719 OLDCPPFLAGS=$CPPFLAGS
17720 # CPPPFLAG comes from CURL_CPP_P
17721 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17722 if test -z "$SED"; then
17723 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17725 if test -z "$GREP"; then
17726 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17731 /* end confdefs.h. */
17734 #ifdef _SGI_COMPILER_VERSION
17735 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
17740 if ac_fn_c_try_cpp "$LINENO"
17743 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17744 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17745 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17746 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17747 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
17752 rm -f conftest.err conftest.i conftest.$ac_ext
17753 if test -z "$tmp_exp"; then
17754 curl_cv_have_def__SGI_COMPILER_VERSION=no
17757 curl_cv_have_def__SGI_COMPILER_VERSION=yes
17758 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
17761 CPPFLAGS=$OLDCPPFLAGS
17763 if test "$curl_cv_have_def___GNUC__" = "no" &&
17764 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
17765 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
17766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17767 printf "%s\n" "yes" >&6; }
17768 compiler_id="SGI_MIPSPRO_C"
17770 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17771 flags_opt_yes="-O2"
17772 flags_opt_off="-O0"
17774 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775 printf "%s\n" "no" >&6; }
17779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
17780 printf %s "checking if compiler is SGI MIPS C... " >&6; }
17782 OLDCPPFLAGS=$CPPFLAGS
17783 # CPPPFLAG comes from CURL_CPP_P
17784 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17785 if test -z "$SED"; then
17786 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17788 if test -z "$GREP"; then
17789 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17794 /* end confdefs.h. */
17798 CURL_DEF_TOKEN __GNUC__
17803 if ac_fn_c_try_cpp "$LINENO"
17806 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17807 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17808 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17809 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17810 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
17815 rm -f conftest.err conftest.i conftest.$ac_ext
17816 if test -z "$tmp_exp"; then
17817 curl_cv_have_def___GNUC__=no
17820 curl_cv_have_def___GNUC__=yes
17821 curl_cv_def___GNUC__=$tmp_exp
17824 CPPFLAGS=$OLDCPPFLAGS
17827 OLDCPPFLAGS=$CPPFLAGS
17828 # CPPPFLAG comes from CURL_CPP_P
17829 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17830 if test -z "$SED"; then
17831 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17833 if test -z "$GREP"; then
17834 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17843 CURL_DEF_TOKEN __sgi
17848 if ac_fn_c_try_cpp "$LINENO"
17851 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17852 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17853 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17854 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17855 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
17860 rm -f conftest.err conftest.i conftest.$ac_ext
17861 if test -z "$tmp_exp"; then
17862 curl_cv_have_def___sgi=no
17865 curl_cv_have_def___sgi=yes
17866 curl_cv_def___sgi=$tmp_exp
17869 CPPFLAGS=$OLDCPPFLAGS
17871 if test "$curl_cv_have_def___GNUC__" = "no" &&
17872 test "$curl_cv_have_def___sgi" = "yes" &&
17873 test "$compiler_id" = "unknown"; then
17874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17875 printf "%s\n" "yes" >&6; }
17876 compiler_id="SGI_MIPS_C"
17878 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
17879 flags_opt_yes="-O2"
17880 flags_opt_off="-O0"
17882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17883 printf "%s\n" "no" >&6; }
17887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
17888 printf %s "checking if compiler is SunPro C... " >&6; }
17890 OLDCPPFLAGS=$CPPFLAGS
17891 # CPPPFLAG comes from CURL_CPP_P
17892 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17893 if test -z "$SED"; then
17894 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17896 if test -z "$GREP"; then
17897 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17902 /* end confdefs.h. */
17906 CURL_DEF_TOKEN __SUNPRO_C
17911 if ac_fn_c_try_cpp "$LINENO"
17914 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17915 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17916 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17917 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17918 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
17923 rm -f conftest.err conftest.i conftest.$ac_ext
17924 if test -z "$tmp_exp"; then
17925 curl_cv_have_def___SUNPRO_C=no
17928 curl_cv_have_def___SUNPRO_C=yes
17929 curl_cv_def___SUNPRO_C=$tmp_exp
17932 CPPFLAGS=$OLDCPPFLAGS
17934 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
17935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17936 printf "%s\n" "yes" >&6; }
17937 compiler_id="SUNPRO_C"
17939 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
17940 flags_opt_yes="-xO2"
17943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
17944 printf "%s\n" "no" >&6; }
17948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
17949 printf %s "checking if compiler is Tiny C... " >&6; }
17951 OLDCPPFLAGS=$CPPFLAGS
17952 # CPPPFLAG comes from CURL_CPP_P
17953 CPPFLAGS="$CPPFLAGS $CPPPFLAG"
17954 if test -z "$SED"; then
17955 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
17957 if test -z "$GREP"; then
17958 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
17962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17963 /* end confdefs.h. */
17967 CURL_DEF_TOKEN __TINYC__
17972 if ac_fn_c_try_cpp "$LINENO"
17975 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
17976 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
17977 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
17978 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
17979 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
17984 rm -f conftest.err conftest.i conftest.$ac_ext
17985 if test -z "$tmp_exp"; then
17986 curl_cv_have_def___TINYC__=no
17989 curl_cv_have_def___TINYC__=yes
17990 curl_cv_def___TINYC__=$tmp_exp
17993 CPPFLAGS=$OLDCPPFLAGS
17995 if test "$curl_cv_have_def___TINYC__" = "yes"; then
17996 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17997 printf "%s\n" "yes" >&6; }
17998 compiler_id="TINY_C"
18004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18005 printf "%s\n" "no" >&6; }
18009 if test "$compiler_id" = "unknown"; then
18012 *** Warning: This configure script does not have information about the
18013 *** compiler you are using, relative to the flags required to enable or
18014 *** disable generation of debug info, optimization options or warnings.
18016 *** Whatever settings are present in CFLAGS will be used for this run.
18018 *** If you wish to help the curl project to better support your compiler
18019 *** you can report this and the required info on the libcurl development
18020 *** mailing list: https://lists.haxx.selistinfo/curl-library/
18028 eval _sqz_input=\$$1
18029 for _sqz_token in $_sqz_input; do
18030 if test -z "$_sqz_result"; then
18031 _sqz_result="$_sqz_token"
18033 _sqz_result="$_sqz_result $_sqz_token"
18036 eval $1=\$_sqz_result
18042 if test "$compiler_id" != "unknown"; then
18044 tmp_save_CPPFLAGS="$CPPFLAGS"
18045 tmp_save_CFLAGS="$CFLAGS"
18049 case "$compiler_id" in
18053 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
18054 tmp_CFLAGS="$tmp_CFLAGS -Wno-pointer-bool-conversion"
18059 tmp_CFLAGS="$tmp_CFLAGS -std1"
18060 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
18061 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
18062 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
18067 if test "$compiler_num" -ge "295"; then
18068 tmp_CFLAGS="$tmp_CFLAGS -Werror-implicit-function-declaration"
18074 tmp_CFLAGS="$tmp_CFLAGS -z"
18075 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
18080 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
18081 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
18082 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
18087 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
18088 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-error 140,147,165,266"
18089 tmp_CPPFLAGS="$tmp_CPPFLAGS -diag-disable 279,981,1025,1469,2259"
18094 tmp_CFLAGS="$tmp_CFLAGS"
18099 tmp_CFLAGS="$tmp_CFLAGS -n"
18104 tmp_CFLAGS="$tmp_CFLAGS"
18109 tmp_CFLAGS="$tmp_CFLAGS"
18114 tmp_CFLAGS="$tmp_CFLAGS"
18119 tmp_CFLAGS="$tmp_CFLAGS"
18124 squeeze tmp_CPPFLAGS
18127 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
18128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
18129 printf %s "checking if compiler accepts some basic options... " >&6; }
18130 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
18131 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
18135 tmp_compiler_works="unknown"
18136 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18137 /* end confdefs.h. */
18152 if ac_fn_c_try_compile "$LINENO"
18155 tmp_compiler_works="yes"
18159 tmp_compiler_works="no"
18161 sed 's/^/cc-fail: /' conftest.err >&6
18165 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18166 if test "$tmp_compiler_works" = "yes"; then
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18183 if ac_fn_c_try_link "$LINENO"
18186 tmp_compiler_works="yes"
18190 tmp_compiler_works="no"
18192 sed 's/^/link-fail: /' conftest.err >&6
18196 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18197 conftest$ac_exeext conftest.$ac_ext
18199 if test "x$cross_compiling" != "xyes" &&
18200 test "$tmp_compiler_works" = "yes"; then
18204 if test "$cross_compiling" = yes
18206 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18207 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18208 as_fn_error $? "cannot run test program while cross compiling
18209 See \`config.log' for more details" "$LINENO" 5; }
18211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18212 /* end confdefs.h. */
18216 # include <stdlib.h>
18230 if ac_fn_c_try_run "$LINENO"
18232 tmp_compiler_works="yes"
18235 tmp_compiler_works="no"
18237 echo "run-fail: test program exited with status $ac_status" >&6
18241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18242 conftest.$ac_objext conftest.beam conftest.$ac_ext
18247 old=$LD_LIBRARY_PATH
18248 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18249 export LD_LIBRARY_PATH
18250 if test "$cross_compiling" = yes
18252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18254 as_fn_error $? "cannot run test program while cross compiling
18255 See \`config.log' for more details" "$LINENO" 5; }
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18262 # include <stdlib.h>
18276 if ac_fn_c_try_run "$LINENO"
18278 tmp_compiler_works="yes"
18281 tmp_compiler_works="no"
18283 echo "run-fail: test program exited with status $ac_status" >&6
18287 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18288 conftest.$ac_objext conftest.beam conftest.$ac_ext
18291 LD_LIBRARY_PATH=$old # restore
18296 if test "$tmp_compiler_works" = "yes"; then
18298 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18299 printf "%s\n" "yes" >&6; }
18300 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18301 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
18305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18306 printf "%s\n" "no" >&6; }
18307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
18308 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
18309 CPPFLAGS="$tmp_save_CPPFLAGS"
18310 CFLAGS="$tmp_save_CFLAGS"
18320 if test "$compiler_id" != "unknown"; then
18322 tmp_save_CFLAGS="$CFLAGS"
18323 tmp_save_CPPFLAGS="$CPPFLAGS"
18326 tmp_CFLAGS="$CFLAGS"
18327 tmp_CPPFLAGS="$CPPFLAGS"
18329 if test "$want_debug" = "yes"; then
18330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
18331 printf %s "checking if compiler accepts debug enabling options... " >&6; }
18332 tmp_options="$flags_dbg_yes"
18335 if test "$flags_prefer_cppflags" = "yes"; then
18336 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18337 CFLAGS="$tmp_CFLAGS"
18339 CPPFLAGS="$tmp_CPPFLAGS"
18340 CFLAGS="$tmp_CFLAGS $tmp_options"
18348 if test "$compiler_id" != "unknown"; then
18350 tmp_save_CFLAGS="$CFLAGS"
18351 tmp_save_CPPFLAGS="$CPPFLAGS"
18354 tmp_CFLAGS="$CFLAGS"
18355 tmp_CPPFLAGS="$CPPFLAGS"
18356 honor_optimize_option="yes"
18359 if test "$want_optimize" = "assume_no" ||
18360 test "$want_optimize" = "assume_yes"; then
18361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
18362 printf %s "checking if compiler optimizer assumed setting might be used... " >&6; }
18365 ac_var_match_word="no"
18366 for word1 in $tmp_CFLAGS; do
18367 for word2 in $flags_opt_all; do
18368 if test "$word1" = "$word2"; then
18369 ac_var_match_word="yes"
18374 if test "$ac_var_match_word" = "yes"; then
18376 honor_optimize_option="no"
18383 ac_var_match_word="no"
18384 for word1 in $tmp_CPPFLAGS; do
18385 for word2 in $flags_opt_all; do
18386 if test "$word1" = "$word2"; then
18387 ac_var_match_word="yes"
18392 if test "$ac_var_match_word" = "yes"; then
18394 honor_optimize_option="no"
18399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
18400 printf "%s\n" "$honor_optimize_option" >&6; }
18401 if test "$honor_optimize_option" = "yes"; then
18402 if test "$want_optimize" = "assume_yes"; then
18403 want_optimize="yes"
18405 if test "$want_optimize" = "assume_no"; then
18411 if test "$honor_optimize_option" = "yes"; then
18414 for word1 in $tmp_CFLAGS; do
18415 ac_var_strip_word="no"
18416 for word2 in $flags_opt_all; do
18417 if test "$word1" = "$word2"; then
18418 ac_var_strip_word="yes"
18421 if test "$ac_var_strip_word" = "no"; then
18422 ac_var_stripped="$ac_var_stripped $word1"
18425 tmp_CFLAGS="$ac_var_stripped"
18430 for word1 in $tmp_CPPFLAGS; do
18431 ac_var_strip_word="no"
18432 for word2 in $flags_opt_all; do
18433 if test "$word1" = "$word2"; then
18434 ac_var_strip_word="yes"
18437 if test "$ac_var_strip_word" = "no"; then
18438 ac_var_stripped="$ac_var_stripped $word1"
18441 tmp_CPPFLAGS="$ac_var_stripped"
18442 squeeze tmp_CPPFLAGS
18444 if test "$want_optimize" = "yes"; then
18445 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
18446 printf %s "checking if compiler accepts optimizer enabling options... " >&6; }
18447 tmp_options="$flags_opt_yes"
18449 if test "$want_optimize" = "no"; then
18450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
18451 printf %s "checking if compiler accepts optimizer disabling options... " >&6; }
18452 tmp_options="$flags_opt_off"
18454 if test "$flags_prefer_cppflags" = "yes"; then
18455 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
18456 CFLAGS="$tmp_CFLAGS"
18458 CPPFLAGS="$tmp_CPPFLAGS"
18459 CFLAGS="$tmp_CFLAGS $tmp_options"
18464 tmp_compiler_works="unknown"
18465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18466 /* end confdefs.h. */
18481 if ac_fn_c_try_compile "$LINENO"
18484 tmp_compiler_works="yes"
18488 tmp_compiler_works="no"
18490 sed 's/^/cc-fail: /' conftest.err >&6
18494 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
18495 if test "$tmp_compiler_works" = "yes"; then
18496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18497 /* end confdefs.h. */
18512 if ac_fn_c_try_link "$LINENO"
18515 tmp_compiler_works="yes"
18519 tmp_compiler_works="no"
18521 sed 's/^/link-fail: /' conftest.err >&6
18525 rm -f core conftest.err conftest.$ac_objext conftest.beam \
18526 conftest$ac_exeext conftest.$ac_ext
18528 if test "x$cross_compiling" != "xyes" &&
18529 test "$tmp_compiler_works" = "yes"; then
18533 if test "$cross_compiling" = yes
18535 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18536 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18537 as_fn_error $? "cannot run test program while cross compiling
18538 See \`config.log' for more details" "$LINENO" 5; }
18540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18541 /* end confdefs.h. */
18545 # include <stdlib.h>
18559 if ac_fn_c_try_run "$LINENO"
18561 tmp_compiler_works="yes"
18564 tmp_compiler_works="no"
18566 echo "run-fail: test program exited with status $ac_status" >&6
18570 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18571 conftest.$ac_objext conftest.beam conftest.$ac_ext
18576 old=$LD_LIBRARY_PATH
18577 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
18578 export LD_LIBRARY_PATH
18579 if test "$cross_compiling" = yes
18581 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18582 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
18583 as_fn_error $? "cannot run test program while cross compiling
18584 See \`config.log' for more details" "$LINENO" 5; }
18586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18587 /* end confdefs.h. */
18591 # include <stdlib.h>
18605 if ac_fn_c_try_run "$LINENO"
18607 tmp_compiler_works="yes"
18610 tmp_compiler_works="no"
18612 echo "run-fail: test program exited with status $ac_status" >&6
18616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18617 conftest.$ac_objext conftest.beam conftest.$ac_ext
18620 LD_LIBRARY_PATH=$old # restore
18625 if test "$tmp_compiler_works" = "yes"; then
18627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18628 printf "%s\n" "yes" >&6; }
18629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
18630 printf "%s\n" "$as_me: compiler options added: $tmp_options" >&6;}
18634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
18635 printf "%s\n" "no" >&6; }
18636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
18637 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
18638 CPPFLAGS="$tmp_save_CPPFLAGS"
18639 CFLAGS="$tmp_save_CFLAGS"
18649 if test "$compiler_id" != "unknown"; then
18651 tmp_save_CPPFLAGS="$CPPFLAGS"
18652 tmp_save_CFLAGS="$CFLAGS"
18656 case "$compiler_id" in
18660 if test "$want_warnings" = "yes"; then
18661 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
18663 ac_var_added_warnings=""
18664 for warning in all extra; do
18666 ac_var_match_word="no"
18667 for word1 in $CFLAGS; do
18668 for word2 in -Wno-$warning -W$warning; do
18669 if test "$word1" = "$word2"; then
18670 ac_var_match_word="yes"
18675 if test "$ac_var_match_word" = "no"; then
18676 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18679 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18683 ac_var_added_warnings=""
18684 for warning in pointer-arith write-strings; do
18686 ac_var_match_word="no"
18687 for word1 in $CFLAGS; do
18688 for word2 in -Wno-$warning -W$warning; do
18689 if test "$word1" = "$word2"; then
18690 ac_var_match_word="yes"
18695 if test "$ac_var_match_word" = "no"; then
18696 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18699 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18703 ac_var_added_warnings=""
18704 for warning in shadow; do
18706 ac_var_match_word="no"
18707 for word1 in $CFLAGS; do
18708 for word2 in -Wno-$warning -W$warning; do
18709 if test "$word1" = "$word2"; then
18710 ac_var_match_word="yes"
18715 if test "$ac_var_match_word" = "no"; then
18716 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18719 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18723 ac_var_added_warnings=""
18724 for warning in inline nested-externs; do
18726 ac_var_match_word="no"
18727 for word1 in $CFLAGS; do
18728 for word2 in -Wno-$warning -W$warning; do
18729 if test "$word1" = "$word2"; then
18730 ac_var_match_word="yes"
18735 if test "$ac_var_match_word" = "no"; then
18736 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18739 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18743 ac_var_added_warnings=""
18744 for warning in missing-declarations; do
18746 ac_var_match_word="no"
18747 for word1 in $CFLAGS; do
18748 for word2 in -Wno-$warning -W$warning; do
18749 if test "$word1" = "$word2"; then
18750 ac_var_match_word="yes"
18755 if test "$ac_var_match_word" = "no"; then
18756 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18759 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18763 ac_var_added_warnings=""
18764 for warning in missing-prototypes; do
18766 ac_var_match_word="no"
18767 for word1 in $CFLAGS; do
18768 for word2 in -Wno-$warning -W$warning; do
18769 if test "$word1" = "$word2"; then
18770 ac_var_match_word="yes"
18775 if test "$ac_var_match_word" = "no"; then
18776 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18779 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18782 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
18784 ac_var_added_warnings=""
18785 for warning in float-equal; do
18787 ac_var_match_word="no"
18788 for word1 in $CFLAGS; do
18789 for word2 in -Wno-$warning -W$warning; do
18790 if test "$word1" = "$word2"; then
18791 ac_var_match_word="yes"
18796 if test "$ac_var_match_word" = "no"; then
18797 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18800 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18804 ac_var_added_warnings=""
18805 for warning in no-multichar sign-compare; do
18807 ac_var_match_word="no"
18808 for word1 in $CFLAGS; do
18809 for word2 in -Wno-$warning -W$warning; do
18810 if test "$word1" = "$word2"; then
18811 ac_var_match_word="yes"
18816 if test "$ac_var_match_word" = "no"; then
18817 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18820 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18824 ac_var_added_warnings=""
18825 for warning in undef; do
18827 ac_var_match_word="no"
18828 for word1 in $CFLAGS; do
18829 for word2 in -Wno-$warning -W$warning; do
18830 if test "$word1" = "$word2"; then
18831 ac_var_match_word="yes"
18836 if test "$ac_var_match_word" = "no"; then
18837 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18840 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18843 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
18845 ac_var_added_warnings=""
18846 for warning in endif-labels strict-prototypes; do
18848 ac_var_match_word="no"
18849 for word1 in $CFLAGS; do
18850 for word2 in -Wno-$warning -W$warning; do
18851 if test "$word1" = "$word2"; then
18852 ac_var_match_word="yes"
18857 if test "$ac_var_match_word" = "no"; then
18858 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18861 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18865 ac_var_added_warnings=""
18866 for warning in declaration-after-statement; do
18868 ac_var_match_word="no"
18869 for word1 in $CFLAGS; do
18870 for word2 in -Wno-$warning -W$warning; do
18871 if test "$word1" = "$word2"; then
18872 ac_var_match_word="yes"
18877 if test "$ac_var_match_word" = "no"; then
18878 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18881 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18885 ac_var_added_warnings=""
18886 for warning in cast-align; do
18888 ac_var_match_word="no"
18889 for word1 in $CFLAGS; do
18890 for word2 in -Wno-$warning -W$warning; do
18891 if test "$word1" = "$word2"; then
18892 ac_var_match_word="yes"
18897 if test "$ac_var_match_word" = "no"; then
18898 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18901 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18904 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
18906 ac_var_added_warnings=""
18907 for warning in shorten-64-to-32; do
18909 ac_var_match_word="no"
18910 for word1 in $CFLAGS; do
18911 for word2 in -Wno-$warning -W$warning; do
18912 if test "$word1" = "$word2"; then
18913 ac_var_match_word="yes"
18918 if test "$ac_var_match_word" = "no"; then
18919 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18922 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18926 if test "$compiler_num" -ge "101"; then
18928 ac_var_added_warnings=""
18929 for warning in unused; do
18931 ac_var_match_word="no"
18932 for word1 in $CFLAGS; do
18933 for word2 in -Wno-$warning -W$warning; do
18934 if test "$word1" = "$word2"; then
18935 ac_var_match_word="yes"
18940 if test "$ac_var_match_word" = "no"; then
18941 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18944 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18949 if test "$compiler_num" -ge "208"; then
18951 ac_var_added_warnings=""
18952 for warning in vla; do
18954 ac_var_match_word="no"
18955 for word1 in $CFLAGS; do
18956 for word2 in -Wno-$warning -W$warning; do
18957 if test "$word1" = "$word2"; then
18958 ac_var_match_word="yes"
18963 if test "$ac_var_match_word" = "no"; then
18964 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18967 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18972 if test "$compiler_num" -ge "209"; then
18974 ac_var_added_warnings=""
18975 for warning in shift-sign-overflow; do
18977 ac_var_match_word="no"
18978 for word1 in $CFLAGS; do
18979 for word2 in -Wno-$warning -W$warning; do
18980 if test "$word1" = "$word2"; then
18981 ac_var_match_word="yes"
18986 if test "$ac_var_match_word" = "no"; then
18987 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
18990 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
18995 if test "$compiler_num" -ge "302"; then
19001 ac_var_added_warnings=""
19002 for warning in missing-variable-declarations; do
19004 ac_var_match_word="no"
19005 for word1 in $CFLAGS; do
19006 for word2 in -Wno-$warning -W$warning; do
19007 if test "$word1" = "$word2"; then
19008 ac_var_match_word="yes"
19013 if test "$ac_var_match_word" = "no"; then
19014 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19017 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19024 if test "$compiler_num" -ge "306"; then
19026 ac_var_added_warnings=""
19027 for warning in double-promotion; do
19029 ac_var_match_word="no"
19030 for word1 in $CFLAGS; do
19031 for word2 in -Wno-$warning -W$warning; do
19032 if test "$word1" = "$word2"; then
19033 ac_var_match_word="yes"
19038 if test "$ac_var_match_word" = "no"; then
19039 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19042 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19047 if test "$compiler_num" -ge "309"; then
19049 ac_var_added_warnings=""
19050 for warning in comma; do
19052 ac_var_match_word="no"
19053 for word1 in $CFLAGS; do
19054 for word2 in -Wno-$warning -W$warning; do
19055 if test "$word1" = "$word2"; then
19056 ac_var_match_word="yes"
19061 if test "$ac_var_match_word" = "no"; then
19062 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19065 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19068 # avoid the varargs warning, fixed in 4.0
19069 # https://bugs.llvm.org/show_bug.cgi?id=29140
19070 if test "$compiler_num" -lt "400"; then
19071 tmp_CFLAGS="$tmp_CFLAGS -Wno-varargs"
19074 if test "$compiler_num" -ge "700"; then
19076 ac_var_added_warnings=""
19077 for warning in assign-enum; do
19079 ac_var_match_word="no"
19080 for word1 in $CFLAGS; do
19081 for word2 in -Wno-$warning -W$warning; do
19082 if test "$word1" = "$word2"; then
19083 ac_var_match_word="yes"
19088 if test "$ac_var_match_word" = "no"; then
19089 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19092 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19096 ac_var_added_warnings=""
19097 for warning in extra-semi-stmt; do
19099 ac_var_match_word="no"
19100 for word1 in $CFLAGS; do
19101 for word2 in -Wno-$warning -W$warning; do
19102 if test "$word1" = "$word2"; then
19103 ac_var_match_word="yes"
19108 if test "$ac_var_match_word" = "no"; then
19109 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19112 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19121 if test "$want_warnings" = "yes"; then
19122 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
19128 if test "$want_warnings" = "yes"; then
19129 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
19131 if test "x$cross_compiling" != "xyes" ||
19132 test "$compiler_num" -ge "300"; then
19133 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
19137 ac_var_added_warnings=""
19138 for warning in all; do
19140 ac_var_match_word="no"
19141 for word1 in $CFLAGS; do
19142 for word2 in -Wno-$warning -W$warning; do
19143 if test "$word1" = "$word2"; then
19144 ac_var_match_word="yes"
19149 if test "$ac_var_match_word" = "no"; then
19150 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19153 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19156 tmp_CFLAGS="$tmp_CFLAGS -W"
19158 if test "$compiler_num" -ge "104"; then
19160 ac_var_added_warnings=""
19161 for warning in pointer-arith write-strings; do
19163 ac_var_match_word="no"
19164 for word1 in $CFLAGS; do
19165 for word2 in -Wno-$warning -W$warning; do
19166 if test "$word1" = "$word2"; then
19167 ac_var_match_word="yes"
19172 if test "$ac_var_match_word" = "no"; then
19173 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19176 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19179 if test "x$cross_compiling" != "xyes" ||
19180 test "$compiler_num" -ge "300"; then
19182 ac_var_added_warnings=""
19183 for warning in unused shadow; do
19185 ac_var_match_word="no"
19186 for word1 in $CFLAGS; do
19187 for word2 in -Wno-$warning -W$warning; do
19188 if test "$word1" = "$word2"; then
19189 ac_var_match_word="yes"
19194 if test "$ac_var_match_word" = "no"; then
19195 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19198 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19204 if test "$compiler_num" -ge "207"; then
19206 ac_var_added_warnings=""
19207 for warning in inline nested-externs; do
19209 ac_var_match_word="no"
19210 for word1 in $CFLAGS; do
19211 for word2 in -Wno-$warning -W$warning; do
19212 if test "$word1" = "$word2"; then
19213 ac_var_match_word="yes"
19218 if test "$ac_var_match_word" = "no"; then
19219 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19222 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19225 if test "x$cross_compiling" != "xyes" ||
19226 test "$compiler_num" -ge "300"; then
19228 ac_var_added_warnings=""
19229 for warning in missing-declarations; do
19231 ac_var_match_word="no"
19232 for word1 in $CFLAGS; do
19233 for word2 in -Wno-$warning -W$warning; do
19234 if test "$word1" = "$word2"; then
19235 ac_var_match_word="yes"
19240 if test "$ac_var_match_word" = "no"; then
19241 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19244 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19248 ac_var_added_warnings=""
19249 for warning in missing-prototypes; do
19251 ac_var_match_word="no"
19252 for word1 in $CFLAGS; do
19253 for word2 in -Wno-$warning -W$warning; do
19254 if test "$word1" = "$word2"; then
19255 ac_var_match_word="yes"
19260 if test "$ac_var_match_word" = "no"; then
19261 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19264 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19270 if test "$compiler_num" -ge "295"; then
19271 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
19273 ac_var_added_warnings=""
19274 for warning in bad-function-cast; do
19276 ac_var_match_word="no"
19277 for word1 in $CFLAGS; do
19278 for word2 in -Wno-$warning -W$warning; do
19279 if test "$word1" = "$word2"; then
19280 ac_var_match_word="yes"
19285 if test "$ac_var_match_word" = "no"; then
19286 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19289 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19294 if test "$compiler_num" -ge "296"; then
19296 ac_var_added_warnings=""
19297 for warning in float-equal; do
19299 ac_var_match_word="no"
19300 for word1 in $CFLAGS; do
19301 for word2 in -Wno-$warning -W$warning; do
19302 if test "$word1" = "$word2"; then
19303 ac_var_match_word="yes"
19308 if test "$ac_var_match_word" = "no"; then
19309 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19312 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19315 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar"
19317 ac_var_added_warnings=""
19318 for warning in sign-compare; do
19320 ac_var_match_word="no"
19321 for word1 in $CFLAGS; do
19322 for word2 in -Wno-$warning -W$warning; do
19323 if test "$word1" = "$word2"; then
19324 ac_var_match_word="yes"
19329 if test "$ac_var_match_word" = "no"; then
19330 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19333 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19337 ac_var_added_warnings=""
19338 for warning in undef; do
19340 ac_var_match_word="no"
19341 for word1 in $CFLAGS; do
19342 for word2 in -Wno-$warning -W$warning; do
19343 if test "$word1" = "$word2"; then
19344 ac_var_match_word="yes"
19349 if test "$ac_var_match_word" = "no"; then
19350 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19353 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19358 if test "$compiler_num" -ge "297"; then
19359 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
19362 if test "$compiler_num" -ge "300"; then
19363 tmp_CFLAGS="$tmp_CFLAGS"
19366 if test "$compiler_num" -ge "303"; then
19368 ac_var_added_warnings=""
19369 for warning in endif-labels strict-prototypes; do
19371 ac_var_match_word="no"
19372 for word1 in $CFLAGS; do
19373 for word2 in -Wno-$warning -W$warning; do
19374 if test "$word1" = "$word2"; then
19375 ac_var_match_word="yes"
19380 if test "$ac_var_match_word" = "no"; then
19381 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19384 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19389 if test "$compiler_num" -ge "304"; then
19391 ac_var_added_warnings=""
19392 for warning in declaration-after-statement; do
19394 ac_var_match_word="no"
19395 for word1 in $CFLAGS; do
19396 for word2 in -Wno-$warning -W$warning; do
19397 if test "$word1" = "$word2"; then
19398 ac_var_match_word="yes"
19403 if test "$ac_var_match_word" = "no"; then
19404 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19407 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19411 ac_var_added_warnings=""
19412 for warning in old-style-definition; do
19414 ac_var_match_word="no"
19415 for word1 in $CFLAGS; do
19416 for word2 in -Wno-$warning -W$warning; do
19417 if test "$word1" = "$word2"; then
19418 ac_var_match_word="yes"
19423 if test "$ac_var_match_word" = "no"; then
19424 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19427 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19432 if test "$compiler_num" -ge "400"; then
19433 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
19436 if test "$compiler_num" -ge "402"; then
19438 ac_var_added_warnings=""
19439 for warning in cast-align; do
19441 ac_var_match_word="no"
19442 for word1 in $CFLAGS; do
19443 for word2 in -Wno-$warning -W$warning; do
19444 if test "$word1" = "$word2"; then
19445 ac_var_match_word="yes"
19450 if test "$ac_var_match_word" = "no"; then
19451 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19454 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19459 if test "$compiler_num" -ge "403"; then
19461 ac_var_added_warnings=""
19462 for warning in type-limits old-style-declaration; do
19464 ac_var_match_word="no"
19465 for word1 in $CFLAGS; do
19466 for word2 in -Wno-$warning -W$warning; do
19467 if test "$word1" = "$word2"; then
19468 ac_var_match_word="yes"
19473 if test "$ac_var_match_word" = "no"; then
19474 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19477 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19481 ac_var_added_warnings=""
19482 for warning in missing-parameter-type empty-body; do
19484 ac_var_match_word="no"
19485 for word1 in $CFLAGS; do
19486 for word2 in -Wno-$warning -W$warning; do
19487 if test "$word1" = "$word2"; then
19488 ac_var_match_word="yes"
19493 if test "$ac_var_match_word" = "no"; then
19494 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19497 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19501 ac_var_added_warnings=""
19502 for warning in clobbered ignored-qualifiers; do
19504 ac_var_match_word="no"
19505 for word1 in $CFLAGS; do
19506 for word2 in -Wno-$warning -W$warning; do
19507 if test "$word1" = "$word2"; then
19508 ac_var_match_word="yes"
19513 if test "$ac_var_match_word" = "no"; then
19514 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19517 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19521 ac_var_added_warnings=""
19522 for warning in conversion; do
19524 ac_var_match_word="no"
19525 for word1 in $CFLAGS; do
19526 for word2 in -Wno-$warning -W$warning; do
19527 if test "$word1" = "$word2"; then
19528 ac_var_match_word="yes"
19533 if test "$ac_var_match_word" = "no"; then
19534 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19537 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19540 tmp_CFLAGS="$tmp_CFLAGS -Wno-sign-conversion"
19542 ac_var_added_warnings=""
19543 for warning in vla; do
19545 ac_var_match_word="no"
19546 for word1 in $CFLAGS; do
19547 for word2 in -Wno-$warning -W$warning; do
19548 if test "$word1" = "$word2"; then
19549 ac_var_match_word="yes"
19554 if test "$ac_var_match_word" = "no"; then
19555 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19558 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19561 tmp_CFLAGS="$tmp_CFLAGS -ftree-vrp"
19564 if test "$compiler_num" -ge "405"; then
19565 if test "$curl_cv_have_def__WIN32" = "yes"; then
19566 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
19570 if test "$compiler_num" -ge "406"; then
19572 ac_var_added_warnings=""
19573 for warning in double-promotion; do
19575 ac_var_match_word="no"
19576 for word1 in $CFLAGS; do
19577 for word2 in -Wno-$warning -W$warning; do
19578 if test "$word1" = "$word2"; then
19579 ac_var_match_word="yes"
19584 if test "$ac_var_match_word" = "no"; then
19585 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19588 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19593 if test "$compiler_num" -ge "408"; then
19594 tmp_CFLAGS="$tmp_CFLAGS -Wformat=2"
19597 if test "$compiler_num" -ge "500"; then
19598 tmp_CFLAGS="$tmp_CFLAGS -Warray-bounds=2"
19601 if test "$compiler_num" -ge "600"; then
19603 ac_var_added_warnings=""
19604 for warning in shift-negative-value; do
19606 ac_var_match_word="no"
19607 for word1 in $CFLAGS; do
19608 for word2 in -Wno-$warning -W$warning; do
19609 if test "$word1" = "$word2"; then
19610 ac_var_match_word="yes"
19615 if test "$ac_var_match_word" = "no"; then
19616 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19619 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19622 tmp_CFLAGS="$tmp_CFLAGS -Wshift-overflow=2"
19624 ac_var_added_warnings=""
19625 for warning in null-dereference; do
19627 ac_var_match_word="no"
19628 for word1 in $CFLAGS; do
19629 for word2 in -Wno-$warning -W$warning; do
19630 if test "$word1" = "$word2"; then
19631 ac_var_match_word="yes"
19636 if test "$ac_var_match_word" = "no"; then
19637 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19640 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19643 tmp_CFLAGS="$tmp_CFLAGS -fdelete-null-pointer-checks"
19645 ac_var_added_warnings=""
19646 for warning in duplicated-cond; do
19648 ac_var_match_word="no"
19649 for word1 in $CFLAGS; do
19650 for word2 in -Wno-$warning -W$warning; do
19651 if test "$word1" = "$word2"; then
19652 ac_var_match_word="yes"
19657 if test "$ac_var_match_word" = "no"; then
19658 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19661 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19665 ac_var_added_warnings=""
19666 for warning in unused-const-variable; do
19668 ac_var_match_word="no"
19669 for word1 in $CFLAGS; do
19670 for word2 in -Wno-$warning -W$warning; do
19671 if test "$word1" = "$word2"; then
19672 ac_var_match_word="yes"
19677 if test "$ac_var_match_word" = "no"; then
19678 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19681 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19686 if test "$compiler_num" -ge "700"; then
19688 ac_var_added_warnings=""
19689 for warning in duplicated-branches; do
19691 ac_var_match_word="no"
19692 for word1 in $CFLAGS; do
19693 for word2 in -Wno-$warning -W$warning; do
19694 if test "$word1" = "$word2"; then
19695 ac_var_match_word="yes"
19700 if test "$ac_var_match_word" = "no"; then
19701 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19704 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19708 ac_var_added_warnings=""
19709 for warning in restrict; do
19711 ac_var_match_word="no"
19712 for word1 in $CFLAGS; do
19713 for word2 in -Wno-$warning -W$warning; do
19714 if test "$word1" = "$word2"; then
19715 ac_var_match_word="yes"
19720 if test "$ac_var_match_word" = "no"; then
19721 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19724 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19728 ac_var_added_warnings=""
19729 for warning in alloc-zero; do
19731 ac_var_match_word="no"
19732 for word1 in $CFLAGS; do
19733 for word2 in -Wno-$warning -W$warning; do
19734 if test "$word1" = "$word2"; then
19735 ac_var_match_word="yes"
19740 if test "$ac_var_match_word" = "no"; then
19741 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19744 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19747 tmp_CFLAGS="$tmp_CFLAGS -Wformat-overflow=2"
19748 tmp_CFLAGS="$tmp_CFLAGS -Wformat-truncation=2"
19749 if test "$compiler_num" -lt "1200"; then
19750 tmp_CFLAGS="$tmp_CFLAGS -Wimplicit-fallthrough=4"
19754 if test "$compiler_num" -ge "1000"; then
19756 ac_var_added_warnings=""
19757 for warning in arith-conversion; do
19759 ac_var_match_word="no"
19760 for word1 in $CFLAGS; do
19761 for word2 in -Wno-$warning -W$warning; do
19762 if test "$word1" = "$word2"; then
19763 ac_var_match_word="yes"
19768 if test "$ac_var_match_word" = "no"; then
19769 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19772 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19776 ac_var_added_warnings=""
19777 for warning in enum-conversion; do
19779 ac_var_match_word="no"
19780 for word1 in $CFLAGS; do
19781 for word2 in -Wno-$warning -W$warning; do
19782 if test "$word1" = "$word2"; then
19783 ac_var_match_word="yes"
19788 if test "$ac_var_match_word" = "no"; then
19789 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19792 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19799 if test "$compiler_num" -ge "300"; then
19800 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
19802 if test "x$cross_compiling" = "xyes"; then
19803 if test "$compiler_num" -ge "104"; then
19804 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
19806 if test "$compiler_num" -ge "207"; then
19807 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
19808 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
19816 if test "$want_warnings" = "yes"; then
19817 tmp_CFLAGS="$tmp_CFLAGS +w1"
19823 tmp_CFLAGS="$tmp_CFLAGS"
19828 if test "$want_warnings" = "yes"; then
19829 if test "$compiler_num" -gt "600"; then
19830 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
19831 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
19832 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
19833 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
19834 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
19835 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
19836 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
19837 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
19838 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
19839 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
19840 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
19843 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
19844 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
19845 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
19850 tmp_CFLAGS="$tmp_CFLAGS"
19855 if test "$want_warnings" = "yes"; then
19856 tmp_CFLAGS="$tmp_CFLAGS"
19862 if test "$want_warnings" = "yes"; then
19863 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19869 if test "$want_warnings" = "yes"; then
19870 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
19871 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
19877 if test "$want_warnings" = "yes"; then
19878 tmp_CFLAGS="$tmp_CFLAGS -v"
19884 if test "$want_warnings" = "yes"; then
19886 ac_var_added_warnings=""
19887 for warning in all; do
19889 ac_var_match_word="no"
19890 for word1 in $CFLAGS; do
19891 for word2 in -Wno-$warning -W$warning; do
19892 if test "$word1" = "$word2"; then
19893 ac_var_match_word="yes"
19898 if test "$ac_var_match_word" = "no"; then
19899 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19902 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19906 ac_var_added_warnings=""
19907 for warning in write-strings; do
19909 ac_var_match_word="no"
19910 for word1 in $CFLAGS; do
19911 for word2 in -Wno-$warning -W$warning; do
19912 if test "$word1" = "$word2"; then
19913 ac_var_match_word="yes"
19918 if test "$ac_var_match_word" = "no"; then
19919 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19922 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19926 ac_var_added_warnings=""
19927 for warning in unsupported; do
19929 ac_var_match_word="no"
19930 for word1 in $CFLAGS; do
19931 for word2 in -Wno-$warning -W$warning; do
19932 if test "$word1" = "$word2"; then
19933 ac_var_match_word="yes"
19938 if test "$ac_var_match_word" = "no"; then
19939 ac_var_added_warnings="$ac_var_added_warnings -W$warning"
19942 tmp_CFLAGS="$tmp_CFLAGS $ac_var_added_warnings"
19950 squeeze tmp_CPPFLAGS
19953 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
19954 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
19955 printf %s "checking if compiler accepts strict warning options... " >&6; }
19956 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
19957 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
19961 tmp_compiler_works="unknown"
19962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19963 /* end confdefs.h. */
19978 if ac_fn_c_try_compile "$LINENO"
19981 tmp_compiler_works="yes"
19985 tmp_compiler_works="no"
19987 sed 's/^/cc-fail: /' conftest.err >&6
19991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
19992 if test "$tmp_compiler_works" = "yes"; then
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
20009 if ac_fn_c_try_link "$LINENO"
20012 tmp_compiler_works="yes"
20016 tmp_compiler_works="no"
20018 sed 's/^/link-fail: /' conftest.err >&6
20022 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20023 conftest$ac_exeext conftest.$ac_ext
20025 if test "x$cross_compiling" != "xyes" &&
20026 test "$tmp_compiler_works" = "yes"; then
20030 if test "$cross_compiling" = yes
20032 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20033 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20034 as_fn_error $? "cannot run test program while cross compiling
20035 See \`config.log' for more details" "$LINENO" 5; }
20037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20038 /* end confdefs.h. */
20042 # include <stdlib.h>
20056 if ac_fn_c_try_run "$LINENO"
20058 tmp_compiler_works="yes"
20061 tmp_compiler_works="no"
20063 echo "run-fail: test program exited with status $ac_status" >&6
20067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20068 conftest.$ac_objext conftest.beam conftest.$ac_ext
20073 old=$LD_LIBRARY_PATH
20074 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
20075 export LD_LIBRARY_PATH
20076 if test "$cross_compiling" = yes
20078 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
20080 as_fn_error $? "cannot run test program while cross compiling
20081 See \`config.log' for more details" "$LINENO" 5; }
20083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20084 /* end confdefs.h. */
20088 # include <stdlib.h>
20102 if ac_fn_c_try_run "$LINENO"
20104 tmp_compiler_works="yes"
20107 tmp_compiler_works="no"
20109 echo "run-fail: test program exited with status $ac_status" >&6
20113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20114 conftest.$ac_objext conftest.beam conftest.$ac_ext
20117 LD_LIBRARY_PATH=$old # restore
20122 if test "$tmp_compiler_works" = "yes"; then
20124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20125 printf "%s\n" "yes" >&6; }
20126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20127 printf "%s\n" "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
20131 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20132 printf "%s\n" "no" >&6; }
20133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
20134 printf "%s\n" "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
20135 CPPFLAGS="$tmp_save_CPPFLAGS"
20136 CFLAGS="$tmp_save_CFLAGS"
20145 if test "$compiler_id" = "INTEL_UNIX_C"; then
20147 if test "$compiler_num" -ge "1000"; then
20148 CFLAGS="$CFLAGS -shared-intel"
20149 elif test "$compiler_num" -ge "900"; then
20150 CFLAGS="$CFLAGS -i-dynamic"
20155 CURL_CFLAG_EXTRAS=""
20156 if test X"$want_werror" = Xyes; then
20157 CURL_CFLAG_EXTRAS="-Werror"
20158 if test "$compiler_id" = "GNU_C"; then
20159 if test "$compiler_num" -ge "500"; then
20160 CURL_CFLAG_EXTRAS="$CURL_CFLAG_EXTRAS -pedantic-errors"
20167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
20168 printf %s "checking if compiler halts on compilation errors... " >&6; }
20169 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20170 /* end confdefs.h. */
20177 force compilation error
20184 if ac_fn_c_try_compile "$LINENO"
20187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20188 printf "%s\n" "no" >&6; }
20189 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
20193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20194 printf "%s\n" "yes" >&6; }
20197 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
20201 printf %s "checking if compiler halts on negative sized arrays... " >&6; }
20202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20203 /* end confdefs.h. */
20206 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
20218 if ac_fn_c_try_compile "$LINENO"
20221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20222 printf "%s\n" "no" >&6; }
20223 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
20227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20228 printf "%s\n" "yes" >&6; }
20231 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20234 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
20235 printf %s "checking if compiler halts on function prototype mismatch... " >&6; }
20236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20237 /* end confdefs.h. */
20240 # include <stdlib.h>
20254 int j = rand(i[0]);
20263 if ac_fn_c_try_compile "$LINENO"
20266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20267 printf "%s\n" "no" >&6; }
20268 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
20272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20273 printf "%s\n" "yes" >&6; }
20276 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
20280 printf %s "checking if compiler supports hiding library internal symbols... " >&6; }
20281 supports_symbol_hiding="no"
20282 symbol_hiding_CFLAGS=""
20283 symbol_hiding_EXTERN=""
20286 case "$compiler_id" in
20288 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20289 tmp_CFLAGS="-fvisibility=hidden"
20290 supports_symbol_hiding="yes"
20293 if test "$compiler_num" -ge "304"; then
20294 if $CC --help --verbose 2>/dev/null | grep fvisibility= >/dev/null ; then
20295 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20296 tmp_CFLAGS="-fvisibility=hidden"
20297 supports_symbol_hiding="yes"
20302 if test "$compiler_num" -ge "900"; then
20303 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
20304 tmp_save_CFLAGS="$CFLAGS"
20305 CFLAGS="$CFLAGS -fvisibility=hidden"
20306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20307 /* end confdefs.h. */
20310 # include <stdio.h>
20315 printf("icc fvisibility bug test");
20322 if ac_fn_c_try_link "$LINENO"
20325 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
20326 tmp_CFLAGS="-fvisibility=hidden"
20327 supports_symbol_hiding="yes"
20330 rm -f core conftest.err conftest.$ac_objext conftest.beam \
20331 conftest$ac_exeext conftest.$ac_ext
20332 CFLAGS="$tmp_save_CFLAGS"
20337 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
20338 tmp_EXTERN="__global"
20339 tmp_CFLAGS="-xldscope=hidden"
20340 supports_symbol_hiding="yes"
20344 if test "$supports_symbol_hiding" = "yes"; then
20345 tmp_save_CFLAGS="$CFLAGS"
20346 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20352 $tmp_EXTERN char *dummy(char *buff);
20353 char *dummy(char *buff)
20365 char *r = dummy(&b[0]);
20374 if ac_fn_c_try_compile "$LINENO"
20377 supports_symbol_hiding="yes"
20378 if test -f conftest.err; then
20379 grep 'visibility' conftest.err >/dev/null
20380 if test "$?" -eq "0"; then
20381 supports_symbol_hiding="no"
20387 supports_symbol_hiding="no"
20389 sed 's/^/cc-src: /' conftest.$ac_ext >&6
20390 sed 's/^/cc-err: /' conftest.err >&6
20394 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20395 CFLAGS="$tmp_save_CFLAGS"
20397 if test "$supports_symbol_hiding" = "yes"; then
20398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20399 printf "%s\n" "yes" >&6; }
20400 symbol_hiding_CFLAGS="$tmp_CFLAGS"
20401 symbol_hiding_EXTERN="$tmp_EXTERN"
20403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20404 printf "%s\n" "no" >&6; }
20409 supports_curldebug="unknown"
20410 if test "$want_curldebug" = "yes"; then
20411 if test "x$enable_shared" != "xno" &&
20412 test "x$enable_shared" != "xyes"; then
20413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
20414 printf "%s\n" "$as_me: WARNING: unknown enable_shared setting." >&2;}
20415 supports_curldebug="no"
20417 if test "x$enable_static" != "xno" &&
20418 test "x$enable_static" != "xyes"; then
20419 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
20420 printf "%s\n" "$as_me: WARNING: unknown enable_static setting." >&2;}
20421 supports_curldebug="no"
20423 if test "$supports_curldebug" != "no"; then
20424 if test "$enable_shared" = "yes" &&
20425 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
20426 supports_curldebug="no"
20427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
20428 printf "%s\n" "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
20433 if test "$want_curldebug" = "yes"; then
20434 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
20435 printf %s "checking if curl debug memory tracking can be enabled... " >&6; }
20436 test "$supports_curldebug" = "no" || supports_curldebug="yes"
20437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
20438 printf "%s\n" "$supports_curldebug" >&6; }
20439 if test "$supports_curldebug" = "no"; then
20440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
20441 printf "%s\n" "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
20442 want_curldebug="no"
20446 if test x$want_curldebug = xyes; then
20448 CURLDEBUG_FALSE='#'
20455 supports_unittests=yes
20456 # cross-compilation of unit tests static library/programs fails when
20457 # libcurl shared library is built. This might be due to a libtool or
20458 # automake issue. In this case we disable unit tests.
20459 if test "x$cross_compiling" != "xno" &&
20460 test "x$enable_shared" != "xno"; then
20461 supports_unittests=no
20464 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
20465 # a problem related with OpenSSL headers and library versions not matching.
20466 # Disable unit tests while time to further investigate this is found.
20469 if test "$compiler_id" = "GNU_C"; then
20470 supports_unittests=no
20475 # All AIX autobuilds fails unit tests linking against unittests library
20476 # due to unittests library being built with no symbols or members. Libtool ?
20477 # Disable unit tests while time to further investigate this is found.
20480 supports_unittests=no
20484 if test "x$want_debug" = "xyes" &&
20485 test "x$supports_unittests" = "xyes"; then
20490 if test x$want_unittests = xyes; then
20491 BUILD_UNITTESTS_TRUE=
20492 BUILD_UNITTESTS_FALSE='#'
20494 BUILD_UNITTESTS_TRUE='#'
20495 BUILD_UNITTESTS_FALSE=
20499 # For original MinGW (ie not MinGW-w64) define the Windows minimum supported OS
20500 # version to Windows XP (0x501) if it hasn't already been defined by the user.
20501 # Without this override original MinGW defaults the version to Windows NT 4.0.
20502 # Note original MinGW sets _WIN32_WINNT if not defined to whatever WINVER is.
20505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if MinGW minimum supported OS should be set to XP" >&5
20506 printf %s "checking if MinGW minimum supported OS should be set to XP... " >&6; }
20507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20508 /* end confdefs.h. */
20511 #include <_mingw.h>
20516 #if defined(__MINGW64_VERSION_MAJOR) || \
20517 defined(WINVER) || \
20518 defined(_WIN32_WINNT)
20527 if ac_fn_c_try_compile "$LINENO"
20530 CPPFLAGS="$CPPFLAGS -DWINVER=0x501"
20531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20532 printf "%s\n" "yes" >&6; }
20536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20537 printf "%s\n" "no" >&6; }
20540 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20544 # Detect original MinGW (not MinGW-w64)
20545 curl_mingw_original=no
20548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking using original MinGW (not MinGW-w64)" >&5
20549 printf %s "checking using original MinGW (not MinGW-w64)... " >&6; }
20550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20551 /* end confdefs.h. */
20554 #include <_mingw.h>
20559 #if defined(__MINGW64_VERSION_MAJOR)
20568 if ac_fn_c_try_compile "$LINENO"
20571 curl_mingw_original=yes
20572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20573 printf "%s\n" "yes" >&6; }
20577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
20578 printf "%s\n" "no" >&6; }
20581 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
20589 printf %s "checking for windows.h... " >&6; }
20590 if test ${curl_cv_header_windows_h+y}
20592 printf %s "(cached) " >&6
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20600 #ifndef WIN32_LEAN_AND_MEAN
20601 #define WIN32_LEAN_AND_MEAN
20603 #include <windows.h>
20608 #if defined(__CYGWIN__) || defined(__CEGCC__)
20609 HAVE_WINDOWS_H shall not be defined.
20611 int dummy=2*WINVER;
20619 if ac_fn_c_try_compile "$LINENO"
20622 curl_cv_header_windows_h="yes"
20626 curl_cv_header_windows_h="no"
20629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20632 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
20633 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
20634 case "$curl_cv_header_windows_h" in
20637 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
20643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
20644 printf %s "checking whether build target is a native Windows one... " >&6; }
20645 if test ${curl_cv_native_windows+y}
20647 printf %s "(cached) " >&6
20650 if test "$curl_cv_header_windows_h" = "no"; then
20651 curl_cv_native_windows="no"
20653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20654 /* end confdefs.h. */
20661 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
20662 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
20665 Not a native Windows build target.
20673 if ac_fn_c_try_compile "$LINENO"
20676 curl_cv_native_windows="yes"
20680 curl_cv_native_windows="no"
20683 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_native_windows" >&5
20688 printf "%s\n" "$curl_cv_native_windows" >&6; }
20689 if test "x$curl_cv_native_windows" = xyes; then
20690 DOING_NATIVE_WINDOWS_TRUE=
20691 DOING_NATIVE_WINDOWS_FALSE='#'
20693 DOING_NATIVE_WINDOWS_TRUE='#'
20694 DOING_NATIVE_WINDOWS_FALSE=
20698 case X-"$curl_cv_native_windows" in
20701 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
20702 printf %s "checking for winsock2.h... " >&6; }
20703 if test ${curl_cv_header_winsock2_h+y}
20705 printf %s "(cached) " >&6
20708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20709 /* end confdefs.h. */
20713 #ifndef WIN32_LEAN_AND_MEAN
20714 #define WIN32_LEAN_AND_MEAN
20716 #include <windows.h>
20717 #include <winsock2.h>
20722 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20723 HAVE_WINSOCK2_H shall not be defined.
20725 int dummy=2*IPPROTO_ESP;
20733 if ac_fn_c_try_compile "$LINENO"
20736 curl_cv_header_winsock2_h="yes"
20740 curl_cv_header_winsock2_h="no"
20743 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
20747 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
20748 case "$curl_cv_header_winsock2_h" in
20751 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
20757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
20758 printf %s "checking for ws2tcpip.h... " >&6; }
20759 if test ${curl_cv_header_ws2tcpip_h+y}
20761 printf %s "(cached) " >&6
20764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20765 /* end confdefs.h. */
20769 #ifndef WIN32_LEAN_AND_MEAN
20770 #define WIN32_LEAN_AND_MEAN
20772 #include <windows.h>
20773 #include <winsock2.h>
20774 #include <ws2tcpip.h>
20779 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
20780 HAVE_WS2TCPIP_H shall not be defined.
20782 int dummy=2*IP_PKTINFO;
20790 if ac_fn_c_try_compile "$LINENO"
20793 curl_cv_header_ws2tcpip_h="yes"
20797 curl_cv_header_ws2tcpip_h="no"
20800 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
20804 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
20805 case "$curl_cv_header_ws2tcpip_h" in
20808 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
20814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wincrypt.h" >&5
20815 printf %s "checking for wincrypt.h... " >&6; }
20816 if test ${curl_cv_header_wincrypt_h+y}
20818 printf %s "(cached) " >&6
20821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20826 #ifndef WIN32_LEAN_AND_MEAN
20827 #define WIN32_LEAN_AND_MEAN
20829 #include <windows.h>
20830 #include <wincrypt.h>
20835 int dummy=2*PROV_RSA_FULL;
20842 if ac_fn_c_try_compile "$LINENO"
20845 curl_cv_header_wincrypt_h="yes"
20849 curl_cv_header_wincrypt_h="no"
20852 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_wincrypt_h" >&5
20856 printf "%s\n" "$curl_cv_header_wincrypt_h" >&6; }
20857 case "$curl_cv_header_wincrypt_h" in
20860 printf "%s\n" "#define HAVE_WINCRYPT_H 1" >>confdefs.h
20866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
20867 printf %s "checking for winldap.h... " >&6; }
20868 if test ${curl_cv_header_winldap_h+y}
20870 printf %s "(cached) " >&6
20873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20874 /* end confdefs.h. */
20878 #ifdef HAVE_WINDOWS_H
20879 #ifndef WIN32_LEAN_AND_MEAN
20880 #define WIN32_LEAN_AND_MEAN
20882 #include <windows.h>
20884 #include <winldap.h>
20889 #if defined(__CYGWIN__) || defined(__CEGCC__)
20890 HAVE_WINLDAP_H shall not be defined.
20892 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20893 ULONG res = ldap_unbind(ldp);
20901 if ac_fn_c_try_compile "$LINENO"
20904 curl_cv_header_winldap_h="yes"
20908 curl_cv_header_winldap_h="no"
20911 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winldap_h" >&5
20915 printf "%s\n" "$curl_cv_header_winldap_h" >&6; }
20916 case "$curl_cv_header_winldap_h" in
20919 printf "%s\n" "#define HAVE_WINLDAP_H 1" >>confdefs.h
20926 curl_cv_header_winsock2_h="no"
20927 curl_cv_header_ws2tcpip_h="no"
20928 curl_cv_header_wincrypt_h="no"
20929 curl_cv_header_winldap_h="no"
20933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
20934 printf %s "checking whether build target supports WIN32 file API... " >&6; }
20935 curl_win32_file_api="no"
20936 if test "$curl_cv_header_windows_h" = "yes"; then
20937 if test x"$enable_largefile" != "xno"; then
20938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20939 /* end confdefs.h. */
20946 #if !defined(_WIN32_WCE) && \
20947 (defined(__MINGW32__) || \
20948 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
20951 WIN32 large file API not supported.
20959 if ac_fn_c_try_compile "$LINENO"
20962 curl_win32_file_api="win32_large_files"
20965 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20967 if test "$curl_win32_file_api" = "no"; then
20968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20969 /* end confdefs.h. */
20976 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
20979 WIN32 small file API not supported.
20987 if ac_fn_c_try_compile "$LINENO"
20990 curl_win32_file_api="win32_small_files"
20993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
20996 case "$curl_win32_file_api" in
20998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
20999 printf "%s\n" "yes (large file enabled)" >&6; }
21001 printf "%s\n" "#define USE_WIN32_LARGE_FILES 1" >>confdefs.h
21003 USE_WIN32_LARGE_FILES=1
21007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
21008 printf "%s\n" "yes (large file disabled)" >&6; }
21010 printf "%s\n" "#define USE_WIN32_SMALL_FILES 1" >>confdefs.h
21012 USE_WIN32_SMALL_FILES=1
21016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21017 printf "%s\n" "no" >&6; }
21022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 crypto API" >&5
21023 printf %s "checking whether build target supports WIN32 crypto API... " >&6; }
21024 curl_win32_crypto_api="no"
21025 if test "$curl_cv_header_wincrypt_h" = "yes"; then
21026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21027 /* end confdefs.h. */
21031 #ifndef WIN32_LEAN_AND_MEAN
21032 #define WIN32_LEAN_AND_MEAN
21034 #include <windows.h>
21035 #include <wincrypt.h>
21040 HCRYPTPROV hCryptProv;
21041 if(CryptAcquireContext(&hCryptProv, NULL, NULL, PROV_RSA_FULL,
21042 CRYPT_VERIFYCONTEXT | CRYPT_SILENT)) {
21043 CryptReleaseContext(hCryptProv, 0);
21051 if ac_fn_c_try_compile "$LINENO"
21054 curl_win32_crypto_api="yes"
21057 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21059 case "$curl_win32_crypto_api" in
21061 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21062 printf "%s\n" "yes" >&6; }
21064 printf "%s\n" "#define USE_WIN32_CRYPTO 1" >>confdefs.h
21070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21071 printf "%s\n" "no" >&6; }
21085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for good-to-use Darwin CFLAGS" >&5
21086 printf %s "checking for good-to-use Darwin CFLAGS... " >&6; }
21087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_cflags" >&5
21088 printf "%s\n" "$tst_cflags" >&6; };
21090 if test "$tst_cflags" = "yes"; then
21092 CFLAGS="$CFLAGS -Werror=partial-availability"
21093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -Werror=partial-availability" >&5
21094 printf %s "checking whether $CC accepts -Werror=partial-availability... " >&6; }
21095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21096 /* end confdefs.h. */
21105 if ac_fn_c_try_compile "$LINENO"
21107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21108 printf "%s\n" "yes" >&6; }
21110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21111 printf "%s\n" "no" >&6; }
21114 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to link macOS CoreFoundation and SystemConfiguration framework" >&5
21120 printf %s "checking whether to link macOS CoreFoundation and SystemConfiguration framework... " >&6; }
21123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21124 /* end confdefs.h. */
21127 #include <TargetConditionals.h>
21132 #if (TARGET_OS_OSX)
21143 if ac_fn_c_try_compile "$LINENO"
21146 build_for_macos="yes"
21150 build_for_macos="no"
21153 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21154 if test "x$build_for_macos" != xno; then
21155 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21156 printf "%s\n" "yes" >&6; }
21157 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework SystemConfiguration"
21159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21160 printf "%s\n" "no" >&6; }
21164 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21165 printf "%s\n" "no" >&6; }
21169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking to see if the compiler supports __builtin_available()" >&5
21170 printf %s "checking to see if the compiler supports __builtin_available()... " >&6; }
21171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21172 /* end confdefs.h. */
21175 #include <stdlib.h>
21180 if (__builtin_available(macOS 10.8, iOS 5.0, *)) {}
21187 if ac_fn_c_try_compile "$LINENO"
21190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21191 printf "%s\n" "yes" >&6; }
21193 printf "%s\n" "#define HAVE_BUILTIN_AVAILABLE 1" >>confdefs.h
21198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21199 printf "%s\n" "no" >&6; }
21202 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
21205 if test "$curl_cv_native_windows" = "yes"; then
21207 OS_WINDOWS_FALSE='#'
21209 OS_WINDOWS_TRUE='#'
21214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
21215 printf %s "checking whether to support http... " >&6; }
21216 # Check whether --enable-http was given.
21217 if test ${enable_http+y}
21219 enableval=$enable_http; case "$enableval" in
21221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21222 printf "%s\n" "no" >&6; }
21224 printf "%s\n" "#define CURL_DISABLE_HTTP 1" >>confdefs.h
21227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
21228 printf "%s\n" "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
21229 CURL_DISABLE_HTTP=1
21232 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21234 CURL_DISABLE_RTSP=1
21237 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
21240 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
21242 curl_h1_msg="no (--enable-http, --with-hyper)"
21243 curl_altsvc_msg="no";
21244 curl_hsts_msg="no (--enable-hsts)";
21248 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21249 printf "%s\n" "yes" >&6; }
21253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21254 printf "%s\n" "yes" >&6; }
21258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
21259 printf %s "checking whether to support ftp... " >&6; }
21260 # Check whether --enable-ftp was given.
21261 if test ${enable_ftp+y}
21263 enableval=$enable_ftp; case "$enableval" in
21265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21266 printf "%s\n" "no" >&6; }
21268 printf "%s\n" "#define CURL_DISABLE_FTP 1" >>confdefs.h
21273 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21274 printf "%s\n" "yes" >&6; }
21278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21279 printf "%s\n" "yes" >&6; }
21283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
21284 printf %s "checking whether to support file... " >&6; }
21285 # Check whether --enable-file was given.
21286 if test ${enable_file+y}
21288 enableval=$enable_file; case "$enableval" in
21290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21291 printf "%s\n" "no" >&6; }
21293 printf "%s\n" "#define CURL_DISABLE_FILE 1" >>confdefs.h
21295 CURL_DISABLE_FILE=1
21298 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21299 printf "%s\n" "yes" >&6; }
21303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21304 printf "%s\n" "yes" >&6; }
21308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
21309 printf %s "checking whether to support ldap... " >&6; }
21310 # Check whether --enable-ldap was given.
21311 if test ${enable_ldap+y}
21313 enableval=$enable_ldap; case "$enableval" in
21315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21316 printf "%s\n" "no" >&6; }
21318 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
21320 CURL_DISABLE_LDAP=1
21324 ldap_askedfor="yes"
21325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21326 printf "%s\n" "yes" >&6; }
21329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21330 printf "%s\n" "yes" >&6; }
21335 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21336 printf "%s\n" "yes" >&6; }
21340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
21341 printf %s "checking whether to support ldaps... " >&6; }
21342 # Check whether --enable-ldaps was given.
21343 if test ${enable_ldaps+y}
21345 enableval=$enable_ldaps; case "$enableval" in
21347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 printf "%s\n" "no" >&6; }
21350 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21352 CURL_DISABLE_LDAPS=1
21355 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21356 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
21357 printf "%s\n" "LDAP needs to be enabled to support LDAPS" >&6; }
21359 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21361 CURL_DISABLE_LDAPS=1
21364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21365 printf "%s\n" "yes" >&6; }
21367 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21376 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
21377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21378 printf "%s\n" "no" >&6; }
21380 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
21382 CURL_DISABLE_LDAPS=1
21385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21386 printf "%s\n" "yes" >&6; }
21388 printf "%s\n" "#define HAVE_LDAP_SSL 1" >>confdefs.h
21401 # Check whether --with-hyper was given.
21402 if test ${with_hyper+y}
21404 withval=$with_hyper; OPT_HYPER=$withval
21407 case "$OPT_HYPER" in
21412 want_hyper="default"
21417 want_hyper_path="$withval"
21421 if test X"$want_hyper" != Xno; then
21422 if test "x$disable_http" = "xyes"; then
21423 as_fn_error $? "--with-hyper is not compatible with --disable-http" "$LINENO" 5
21426 CLEANLDFLAGS="$LDFLAGS"
21427 CLEANCPPFLAGS="$CPPFLAGS"
21431 if test -n "$PKG_CONFIG"; then
21432 PKGCONFIG="$PKG_CONFIG"
21434 if test -n "$ac_tool_prefix"; then
21435 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21436 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21438 printf %s "checking for $ac_word... " >&6; }
21439 if test ${ac_cv_path_PKGCONFIG+y}
21441 printf %s "(cached) " >&6
21445 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21449 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21450 for as_dir in $as_dummy
21453 case $as_dir in #(((
21456 *) as_dir=$as_dir/ ;;
21458 for ac_exec_ext in '' $ac_executable_extensions; do
21459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21460 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21471 PKGCONFIG=$ac_cv_path_PKGCONFIG
21472 if test -n "$PKGCONFIG"; then
21473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21474 printf "%s\n" "$PKGCONFIG" >&6; }
21476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21477 printf "%s\n" "no" >&6; }
21482 if test -z "$ac_cv_path_PKGCONFIG"; then
21483 ac_pt_PKGCONFIG=$PKGCONFIG
21484 # Extract the first word of "pkg-config", so it can be a program name with args.
21485 set dummy pkg-config; ac_word=$2
21486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21487 printf %s "checking for $ac_word... " >&6; }
21488 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
21490 printf %s "(cached) " >&6
21492 case $ac_pt_PKGCONFIG in
21494 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21498 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21499 for as_dir in $as_dummy
21502 case $as_dir in #(((
21505 *) as_dir=$as_dir/ ;;
21507 for ac_exec_ext in '' $ac_executable_extensions; do
21508 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
21509 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
21510 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
21520 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21521 if test -n "$ac_pt_PKGCONFIG"; then
21522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21523 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
21525 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21526 printf "%s\n" "no" >&6; }
21529 if test "x$ac_pt_PKGCONFIG" = x; then
21532 case $cross_compiling:$ac_tool_warned in
21534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21535 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21536 ac_tool_warned=yes ;;
21538 PKGCONFIG=$ac_pt_PKGCONFIG
21541 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21546 if test "x$PKGCONFIG" != "xno"; then
21547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper options with pkg-config" >&5
21548 printf %s "checking for hyper options with pkg-config... " >&6; }
21550 if test -n "$want_hyper_path"; then
21551 PKG_CONFIG_LIBDIR="$want_hyper_path"
21552 export PKG_CONFIG_LIBDIR
21554 $PKGCONFIG --exists hyper >/dev/null 2>&1 && echo 1`
21556 if test -z "$itexists"; then
21558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21559 printf "%s\n" "no" >&6; }
21561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
21562 printf "%s\n" "found" >&6; }
21567 if test "$PKGCONFIG" != "no" ; then
21569 if test -n "$want_hyper_path"; then
21570 PKG_CONFIG_LIBDIR="$want_hyper_path"
21571 export PKG_CONFIG_LIBDIR
21574 $PKGCONFIG --libs-only-l hyper`
21576 if test -n "$want_hyper_path"; then
21577 PKG_CONFIG_LIBDIR="$want_hyper_path"
21578 export PKG_CONFIG_LIBDIR
21580 $PKGCONFIG --cflags-only-I hyper`
21582 if test -n "$want_hyper_path"; then
21583 PKG_CONFIG_LIBDIR="$want_hyper_path"
21584 export PKG_CONFIG_LIBDIR
21587 $PKGCONFIG --libs-only-L hyper`
21589 LIB_HYPER="-lhyper -ldl -lpthread -lm"
21590 if test X"$want_hyper" != Xdefault; then
21591 CPP_HYPER=-I"$want_hyper_path/capi/include"
21592 LD_HYPER="-L$want_hyper_path/target/release -L$want_hyper_path/target/debug"
21595 if test -n "$LIB_HYPER"; then
21596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_HYPER" >&5
21597 printf "%s\n" "$as_me: -l is $LIB_HYPER" >&6;}
21598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_HYPER" >&5
21599 printf "%s\n" "$as_me: -I is $CPP_HYPER" >&6;}
21600 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_HYPER" >&5
21601 printf "%s\n" "$as_me: -L is $LD_HYPER" >&6;}
21603 LDFLAGS="$LDFLAGS $LD_HYPER"
21604 CPPFLAGS="$CPPFLAGS $CPP_HYPER"
21605 LIBS="$LIB_HYPER $LIBS"
21607 if test "x$cross_compiling" != "xyes"; then
21608 DIR_HYPER=`echo $LD_HYPER | $SED -e 's/^-L//' -e 's/ -L/:/g'`
21611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for hyper_io_new in -lhyper" >&5
21612 printf %s "checking for hyper_io_new in -lhyper... " >&6; }
21613 if test ${ac_cv_lib_hyper_hyper_io_new+y}
21615 printf %s "(cached) " >&6
21617 ac_check_lib_save_LIBS=$LIBS
21618 LIBS="-lhyper $LIBS"
21619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21620 /* end confdefs.h. */
21626 char hyper_io_new ();
21629 return hyper_io_new ();
21634 if ac_fn_c_try_link "$LINENO"
21636 ac_cv_lib_hyper_hyper_io_new=yes
21638 ac_cv_lib_hyper_hyper_io_new=no
21640 rm -f core conftest.err conftest.$ac_objext conftest.beam \
21641 conftest$ac_exeext conftest.$ac_ext
21642 LIBS=$ac_check_lib_save_LIBS
21644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hyper_hyper_io_new" >&5
21645 printf "%s\n" "$ac_cv_lib_hyper_hyper_io_new" >&6; }
21646 if test "x$ac_cv_lib_hyper_hyper_io_new" = xyes
21649 for ac_header in hyper.h
21651 ac_fn_c_check_header_compile "$LINENO" "hyper.h" "ac_cv_header_hyper_h" "$ac_includes_default"
21652 if test "x$ac_cv_header_hyper_h" = xyes
21654 printf "%s\n" "#define HAVE_HYPER_H 1" >>confdefs.h
21655 experimental="$experimental Hyper"
21656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Hyper support is experimental" >&5
21657 printf "%s\n" "$as_me: Hyper support is experimental" >&6;}
21658 curl_h1_msg="enabled (Hyper)"
21659 curl_h2_msg=$curl_h1_msg
21662 printf "%s\n" "#define USE_HYPER 1" >>confdefs.h
21666 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_HYPER"
21667 export CURL_LIBRARY_PATH
21668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&5
21669 printf "%s\n" "$as_me: Added $DIR_HYPER to CURL_LIBRARY_PATH" >&6;}
21675 for d in `echo $DIR_HYPER | $SED -e 's/:/ /'`; do
21676 if test -f "$d/libhyper.a"; then
21677 as_fn_error $? "hyper was found in $d but was probably built with wrong flags. See docs/HYPER.md." "$LINENO" 5
21680 as_fn_error $? "--with-hyper but hyper was not found. See docs/HYPER.md." "$LINENO" 5
21687 if test X"$want_hyper" != Xno; then
21688 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Disable RTSP support with hyper" >&5
21689 printf "%s\n" "$as_me: Disable RTSP support with hyper" >&6;}
21691 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21693 CURL_DISABLE_RTSP=1
21698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
21699 printf %s "checking whether to support rtsp... " >&6; }
21700 # Check whether --enable-rtsp was given.
21701 if test ${enable_rtsp+y}
21703 enableval=$enable_rtsp; case "$enableval" in
21705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21706 printf "%s\n" "no" >&6; }
21708 printf "%s\n" "#define CURL_DISABLE_RTSP 1" >>confdefs.h
21710 CURL_DISABLE_RTSP=1
21714 if test x$CURL_DISABLE_HTTP = x1 ; then
21715 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
21717 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21718 printf "%s\n" "yes" >&6; }
21719 curl_rtsp_msg="enabled"
21724 if test "x$CURL_DISABLE_HTTP" != "x1"; then
21725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21726 printf "%s\n" "yes" >&6; }
21727 curl_rtsp_msg="enabled"
21729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21730 printf "%s\n" "no" >&6; }
21737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
21738 printf %s "checking whether to support proxies... " >&6; }
21739 # Check whether --enable-proxy was given.
21740 if test ${enable_proxy+y}
21742 enableval=$enable_proxy; case "$enableval" in
21744 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21745 printf "%s\n" "no" >&6; }
21747 printf "%s\n" "#define CURL_DISABLE_PROXY 1" >>confdefs.h
21749 CURL_DISABLE_PROXY=1
21753 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21754 printf "%s\n" "yes" >&6; }
21758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21759 printf "%s\n" "yes" >&6; }
21764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
21765 printf %s "checking whether to support dict... " >&6; }
21766 # Check whether --enable-dict was given.
21767 if test ${enable_dict+y}
21769 enableval=$enable_dict; case "$enableval" in
21771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21772 printf "%s\n" "no" >&6; }
21774 printf "%s\n" "#define CURL_DISABLE_DICT 1" >>confdefs.h
21776 CURL_DISABLE_DICT=1
21779 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21780 printf "%s\n" "yes" >&6; }
21784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21785 printf "%s\n" "yes" >&6; }
21789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
21790 printf %s "checking whether to support telnet... " >&6; }
21791 # Check whether --enable-telnet was given.
21792 if test ${enable_telnet+y}
21794 enableval=$enable_telnet; case "$enableval" in
21796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21797 printf "%s\n" "no" >&6; }
21799 printf "%s\n" "#define CURL_DISABLE_TELNET 1" >>confdefs.h
21801 CURL_DISABLE_TELNET=1
21804 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21805 printf "%s\n" "yes" >&6; }
21809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21810 printf "%s\n" "yes" >&6; }
21814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
21815 printf %s "checking whether to support tftp... " >&6; }
21816 # Check whether --enable-tftp was given.
21817 if test ${enable_tftp+y}
21819 enableval=$enable_tftp; case "$enableval" in
21821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21822 printf "%s\n" "no" >&6; }
21824 printf "%s\n" "#define CURL_DISABLE_TFTP 1" >>confdefs.h
21826 CURL_DISABLE_TFTP=1
21829 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21830 printf "%s\n" "yes" >&6; }
21834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21835 printf "%s\n" "yes" >&6; }
21840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
21841 printf %s "checking whether to support pop3... " >&6; }
21842 # Check whether --enable-pop3 was given.
21843 if test ${enable_pop3+y}
21845 enableval=$enable_pop3; case "$enableval" in
21847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21848 printf "%s\n" "no" >&6; }
21850 printf "%s\n" "#define CURL_DISABLE_POP3 1" >>confdefs.h
21852 CURL_DISABLE_POP3=1
21855 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21856 printf "%s\n" "yes" >&6; }
21860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21861 printf "%s\n" "yes" >&6; }
21867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
21868 printf %s "checking whether to support imap... " >&6; }
21869 # Check whether --enable-imap was given.
21870 if test ${enable_imap+y}
21872 enableval=$enable_imap; case "$enableval" in
21874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 printf "%s\n" "no" >&6; }
21877 printf "%s\n" "#define CURL_DISABLE_IMAP 1" >>confdefs.h
21879 CURL_DISABLE_IMAP=1
21882 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21883 printf "%s\n" "yes" >&6; }
21887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21888 printf "%s\n" "yes" >&6; }
21894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
21895 printf %s "checking whether to support smb... " >&6; }
21896 # Check whether --enable-smb was given.
21897 if test ${enable_smb+y}
21899 enableval=$enable_smb; case "$enableval" in
21901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21902 printf "%s\n" "no" >&6; }
21904 printf "%s\n" "#define CURL_DISABLE_SMB 1" >>confdefs.h
21909 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21910 printf "%s\n" "yes" >&6; }
21914 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21915 printf "%s\n" "yes" >&6; }
21920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
21921 printf %s "checking whether to support smtp... " >&6; }
21922 # Check whether --enable-smtp was given.
21923 if test ${enable_smtp+y}
21925 enableval=$enable_smtp; case "$enableval" in
21927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21928 printf "%s\n" "no" >&6; }
21930 printf "%s\n" "#define CURL_DISABLE_SMTP 1" >>confdefs.h
21932 CURL_DISABLE_SMTP=1
21935 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21936 printf "%s\n" "yes" >&6; }
21940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21941 printf "%s\n" "yes" >&6; }
21946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
21947 printf %s "checking whether to support gopher... " >&6; }
21948 # Check whether --enable-gopher was given.
21949 if test ${enable_gopher+y}
21951 enableval=$enable_gopher; case "$enableval" in
21953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21954 printf "%s\n" "no" >&6; }
21956 printf "%s\n" "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
21958 CURL_DISABLE_GOPHER=1
21961 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21962 printf "%s\n" "yes" >&6; }
21966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21967 printf "%s\n" "yes" >&6; }
21972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support mqtt" >&5
21973 printf %s "checking whether to support mqtt... " >&6; }
21974 # Check whether --enable-mqtt was given.
21975 if test ${enable_mqtt+y}
21977 enableval=$enable_mqtt; case "$enableval" in
21979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21980 printf "%s\n" "no" >&6; }
21982 printf "%s\n" "#define CURL_DISABLE_MQTT 1" >>confdefs.h
21984 CURL_DISABLE_MQTT=1
21987 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21988 printf "%s\n" "yes" >&6; }
21992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
21993 printf "%s\n" "no" >&6; }
21999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
22000 printf %s "checking whether to provide built-in manual... " >&6; }
22001 # Check whether --enable-manual was given.
22002 if test ${enable_manual+y}
22004 enableval=$enable_manual; case "$enableval" in
22006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22007 printf "%s\n" "no" >&6; }
22009 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22010 printf "%s\n" "yes" >&6; }
22015 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22016 printf "%s\n" "yes" >&6; }
22022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
22023 printf %s "checking whether to enable generation of C code... " >&6; }
22024 # Check whether --enable-libcurl_option was given.
22025 if test ${enable_libcurl_option+y}
22027 enableval=$enable_libcurl_option; case "$enableval" in
22029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22030 printf "%s\n" "no" >&6; }
22032 printf "%s\n" "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
22034 curl_libcurl_msg="no"
22036 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22037 printf "%s\n" "yes" >&6; }
22041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22042 printf "%s\n" "yes" >&6; }
22048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
22049 printf %s "checking whether to use libgcc... " >&6; }
22050 # Check whether --enable-libgcc was given.
22051 if test ${enable_libgcc+y}
22053 enableval=$enable_libgcc; case "$enableval" in
22056 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22057 printf "%s\n" "yes" >&6; }
22059 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22060 printf "%s\n" "no" >&6; }
22064 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22065 printf "%s\n" "no" >&6; }
22071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
22072 printf %s "checking if X/Open network library is required... " >&6; }
22073 tst_lib_xnet_required="no"
22074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22075 /* end confdefs.h. */
22080 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
22082 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
22085 force compilation error
22091 if ac_fn_c_try_compile "$LINENO"
22094 tst_lib_xnet_required="yes"
22095 LIBS="-lxnet $LIBS"
22098 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
22100 printf "%s\n" "$tst_lib_xnet_required" >&6; }
22103 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
22104 if test "x$ac_cv_func_gethostbyname" = xyes
22106 HAVE_GETHOSTBYNAME="1"
22109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
22110 printf %s "checking for gethostbyname in -lnsl... " >&6; }
22111 if test ${ac_cv_lib_nsl_gethostbyname+y}
22113 printf %s "(cached) " >&6
22115 ac_check_lib_save_LIBS=$LIBS
22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h. */
22124 char gethostbyname ();
22127 return gethostbyname ();
22132 if ac_fn_c_try_link "$LINENO"
22134 ac_cv_lib_nsl_gethostbyname=yes
22136 ac_cv_lib_nsl_gethostbyname=no
22138 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22139 conftest$ac_exeext conftest.$ac_ext
22140 LIBS=$ac_check_lib_save_LIBS
22142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
22143 printf "%s\n" "$ac_cv_lib_nsl_gethostbyname" >&6; }
22144 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
22146 HAVE_GETHOSTBYNAME="1"
22155 if test "$HAVE_GETHOSTBYNAME" != "1"
22157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
22158 printf %s "checking for gethostbyname in -lsocket... " >&6; }
22159 if test ${ac_cv_lib_socket_gethostbyname+y}
22161 printf %s "(cached) " >&6
22163 ac_check_lib_save_LIBS=$LIBS
22164 LIBS="-lsocket $LIBS"
22165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22166 /* end confdefs.h. */
22172 char gethostbyname ();
22175 return gethostbyname ();
22180 if ac_fn_c_try_link "$LINENO"
22182 ac_cv_lib_socket_gethostbyname=yes
22184 ac_cv_lib_socket_gethostbyname=no
22186 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22187 conftest$ac_exeext conftest.$ac_ext
22188 LIBS=$ac_check_lib_save_LIBS
22190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
22191 printf "%s\n" "$ac_cv_lib_socket_gethostbyname" >&6; }
22192 if test "x$ac_cv_lib_socket_gethostbyname" = xyes
22194 HAVE_GETHOSTBYNAME="1"
22195 LIBS="-lsocket $LIBS"
22201 if test "$HAVE_GETHOSTBYNAME" != "1"
22203 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
22204 printf %s "checking for gethostbyname in -lwatt... " >&6; }
22205 if test ${ac_cv_lib_watt_gethostbyname+y}
22207 printf %s "(cached) " >&6
22209 ac_check_lib_save_LIBS=$LIBS
22210 LIBS="-lwatt $LIBS"
22211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22212 /* end confdefs.h. */
22218 char gethostbyname ();
22221 return gethostbyname ();
22226 if ac_fn_c_try_link "$LINENO"
22228 ac_cv_lib_watt_gethostbyname=yes
22230 ac_cv_lib_watt_gethostbyname=no
22232 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22233 conftest$ac_exeext conftest.$ac_ext
22234 LIBS=$ac_check_lib_save_LIBS
22236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
22237 printf "%s\n" "$ac_cv_lib_watt_gethostbyname" >&6; }
22238 if test "x$ac_cv_lib_watt_gethostbyname" = xyes
22240 HAVE_GETHOSTBYNAME="1"
22241 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
22242 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
22243 LIBS="-lwatt $LIBS"
22249 if test "$HAVE_GETHOSTBYNAME" != "1"
22251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
22252 printf %s "checking for gethostbyname with both nsl and socket libs... " >&6; }
22253 my_ac_save_LIBS=$LIBS
22254 LIBS="-lnsl -lsocket $LIBS"
22255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22256 /* end confdefs.h. */
22270 if ac_fn_c_try_link "$LINENO"
22273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22274 printf "%s\n" "yes" >&6; }
22275 HAVE_GETHOSTBYNAME="1"
22279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22280 printf "%s\n" "no" >&6; }
22281 LIBS=$my_ac_save_LIBS
22284 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22285 conftest$ac_exeext conftest.$ac_ext
22288 if test "$HAVE_GETHOSTBYNAME" != "1"
22290 if test "$curl_cv_header_windows_h" = "yes"; then
22291 if test "$curl_cv_header_winsock2_h" = "yes"; then
22292 winsock_LIB="-lws2_32"
22294 if test ! -z "$winsock_LIB"; then
22295 my_ac_save_LIBS=$LIBS
22296 LIBS="$winsock_LIB $LIBS"
22297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
22298 printf %s "checking for gethostbyname in $winsock_LIB... " >&6; }
22299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22300 /* end confdefs.h. */
22303 #ifdef HAVE_WINDOWS_H
22304 #ifndef WIN32_LEAN_AND_MEAN
22305 #define WIN32_LEAN_AND_MEAN
22307 #include <windows.h>
22308 #ifdef HAVE_WINSOCK2_H
22309 #include <winsock2.h>
22316 gethostbyname("www.dummysite.com");
22323 if ac_fn_c_try_link "$LINENO"
22326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22327 printf "%s\n" "yes" >&6; }
22328 HAVE_GETHOSTBYNAME="1"
22332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22333 printf "%s\n" "no" >&6; }
22335 LIBS=$my_ac_save_LIBS
22338 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22339 conftest$ac_exeext conftest.$ac_ext
22344 if test "$HAVE_GETHOSTBYNAME" != "1"
22346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
22347 printf %s "checking for gethostbyname for Minix 3... " >&6; }
22348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22349 /* end confdefs.h. */
22352 /* Older Minix versions may need <net/gen/netdb.h> here instead */
22358 gethostbyname("www.dummysite.com");
22365 if ac_fn_c_try_link "$LINENO"
22368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22369 printf "%s\n" "yes" >&6; }
22370 HAVE_GETHOSTBYNAME="1"
22374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22375 printf "%s\n" "no" >&6; }
22378 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22379 conftest$ac_exeext conftest.$ac_ext
22382 if test "$HAVE_GETHOSTBYNAME" != "1"
22384 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
22385 printf %s "checking for gethostbyname for eCos... " >&6; }
22386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22387 /* end confdefs.h. */
22396 gethostbyname("www.dummysite.com");
22403 if ac_fn_c_try_link "$LINENO"
22406 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22407 printf "%s\n" "yes" >&6; }
22408 HAVE_GETHOSTBYNAME="1"
22412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22413 printf "%s\n" "no" >&6; }
22416 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22417 conftest$ac_exeext conftest.$ac_ext
22420 if test "$HAVE_GETHOSTBYNAME" != "1" -o "${with_amissl+set}" = set
22422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for AmigaOS bsdsocket.library" >&5
22423 printf %s "checking for gethostbyname for AmigaOS bsdsocket.library... " >&6; }
22424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22425 /* end confdefs.h. */
22428 #define __USE_INLINE__
22429 #include <proto/bsdsocket.h>
22430 #ifdef __amigaos4__
22431 struct SocketIFace *ISocket = NULL;
22433 struct Library *SocketBase = NULL;
22439 gethostbyname("www.dummysite.com");
22446 if ac_fn_c_try_link "$LINENO"
22449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22450 printf "%s\n" "yes" >&6; }
22451 HAVE_GETHOSTBYNAME="1"
22452 HAVE_PROTO_BSDSOCKET_H="1"
22454 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22456 HAVE_PROTO_BSDSOCKET_H=1
22461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22462 printf "%s\n" "no" >&6; }
22465 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22466 conftest$ac_exeext conftest.$ac_ext
22469 if test "$HAVE_GETHOSTBYNAME" != "1"
22471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
22472 printf %s "checking for gethostbyname in -lnetwork... " >&6; }
22473 if test ${ac_cv_lib_network_gethostbyname+y}
22475 printf %s "(cached) " >&6
22477 ac_check_lib_save_LIBS=$LIBS
22478 LIBS="-lnetwork $LIBS"
22479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22480 /* end confdefs.h. */
22486 char gethostbyname ();
22489 return gethostbyname ();
22494 if ac_fn_c_try_link "$LINENO"
22496 ac_cv_lib_network_gethostbyname=yes
22498 ac_cv_lib_network_gethostbyname=no
22500 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22501 conftest$ac_exeext conftest.$ac_ext
22502 LIBS=$ac_check_lib_save_LIBS
22504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
22505 printf "%s\n" "$ac_cv_lib_network_gethostbyname" >&6; }
22506 if test "x$ac_cv_lib_network_gethostbyname" = xyes
22508 HAVE_GETHOSTBYNAME="1"
22509 LIBS="-lnetwork $LIBS"
22515 if test "$HAVE_GETHOSTBYNAME" != "1"; then
22516 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
22520 curl_includes_winsock2="\
22521 /* includes start */
22522 #ifdef HAVE_WINDOWS_H
22523 # ifndef WIN32_LEAN_AND_MEAN
22524 # define WIN32_LEAN_AND_MEAN
22526 # include <windows.h>
22527 # ifdef HAVE_WINSOCK2_H
22528 # include <winsock2.h>
22531 /* includes end */"
22533 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
22534 printf %s "checking for windows.h... " >&6; }
22535 if test ${curl_cv_header_windows_h+y}
22537 printf %s "(cached) " >&6
22540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22541 /* end confdefs.h. */
22545 #ifndef WIN32_LEAN_AND_MEAN
22546 #define WIN32_LEAN_AND_MEAN
22548 #include <windows.h>
22553 #if defined(__CYGWIN__) || defined(__CEGCC__)
22554 HAVE_WINDOWS_H shall not be defined.
22556 int dummy=2*WINVER;
22564 if ac_fn_c_try_compile "$LINENO"
22567 curl_cv_header_windows_h="yes"
22571 curl_cv_header_windows_h="no"
22574 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
22578 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
22579 case "$curl_cv_header_windows_h" in
22582 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
22588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
22589 printf %s "checking for winsock2.h... " >&6; }
22590 if test ${curl_cv_header_winsock2_h+y}
22592 printf %s "(cached) " >&6
22595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22596 /* end confdefs.h. */
22600 #ifndef WIN32_LEAN_AND_MEAN
22601 #define WIN32_LEAN_AND_MEAN
22603 #include <windows.h>
22604 #include <winsock2.h>
22609 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
22610 HAVE_WINSOCK2_H shall not be defined.
22612 int dummy=2*IPPROTO_ESP;
22620 if ac_fn_c_try_compile "$LINENO"
22623 curl_cv_header_winsock2_h="yes"
22627 curl_cv_header_winsock2_h="no"
22630 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
22634 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
22635 case "$curl_cv_header_winsock2_h" in
22638 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
22645 curl_includes_bsdsocket="\
22646 /* includes start */
22647 #if defined(HAVE_PROTO_BSDSOCKET_H)
22648 # define __NO_NET_API
22649 # define __USE_INLINE__
22650 # include <proto/bsdsocket.h>
22651 # ifdef HAVE_SYS_IOCTL_H
22652 # include <sys/ioctl.h>
22654 # ifdef __amigaos4__
22655 struct SocketIFace *ISocket = NULL;
22657 struct Library *SocketBase = NULL;
22659 # define select(a,b,c,d,e) WaitSelect(a,b,c,d,e,0)
22661 /* includes end */"
22662 ac_fn_c_check_header_compile "$LINENO" "proto/bsdsocket.h" "ac_cv_header_proto_bsdsocket_h" "$curl_includes_bsdsocket
22664 if test "x$ac_cv_header_proto_bsdsocket_h" = xyes
22666 printf "%s\n" "#define HAVE_PROTO_BSDSOCKET_H 1" >>confdefs.h
22672 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
22673 printf %s "checking for connect in libraries... " >&6; }
22674 tst_connect_save_LIBS="$LIBS"
22675 tst_connect_need_LIBS="unknown"
22676 for tst_lib in '' '-lsocket' ; do
22677 if test "$tst_connect_need_LIBS" = "unknown"; then
22678 LIBS="$tst_lib $tst_connect_save_LIBS"
22679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22680 /* end confdefs.h. */
22683 $curl_includes_winsock2
22684 $curl_includes_bsdsocket
22685 #if !defined(HAVE_WINDOWS_H) && !defined(HAVE_PROTO_BSDSOCKET_H)
22686 int connect(int, void*, int);
22692 if(0 != connect(0, 0, 0))
22700 if ac_fn_c_try_link "$LINENO"
22703 tst_connect_need_LIBS="$tst_lib"
22706 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22707 conftest$ac_exeext conftest.$ac_ext
22710 LIBS="$tst_connect_save_LIBS"
22712 case X-"$tst_connect_need_LIBS" in
22714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
22715 printf "%s\n" "cannot find connect" >&6; }
22716 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
22719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22720 printf "%s\n" "yes" >&6; }
22723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
22724 printf "%s\n" "$tst_connect_need_LIBS" >&6; }
22725 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
22730 CURL_NETWORK_LIBS=$LIBS
22733 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
22734 if test "x$ac_cv_header_sys_types_h" = xyes
22736 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
22739 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
22740 if test "x$ac_cv_header_sys_time_h" = xyes
22742 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
22746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
22747 printf %s "checking for monotonic clock_gettime... " >&6; }
22749 if test "x$dontwant_rt" = "xno" ; then
22750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22751 /* end confdefs.h. */
22754 #ifdef HAVE_SYS_TYPES_H
22755 #include <sys/types.h>
22757 #ifdef HAVE_SYS_TIME_H
22758 #include <sys/time.h>
22765 struct timespec ts;
22766 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22773 if ac_fn_c_try_compile "$LINENO"
22776 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22777 printf "%s\n" "yes" >&6; }
22778 curl_func_clock_gettime="yes"
22782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22783 printf "%s\n" "no" >&6; }
22784 curl_func_clock_gettime="no"
22787 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
22792 if test "$curl_func_clock_gettime" = "yes"; then
22794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
22795 printf %s "checking for clock_gettime in libraries... " >&6; }
22797 curl_cv_save_LIBS="$LIBS"
22798 curl_cv_gclk_LIBS="unknown"
22800 for x_xlibs in '' '-lrt' '-lposix4' ; do
22801 if test "$curl_cv_gclk_LIBS" = "unknown"; then
22802 if test -z "$x_xlibs"; then
22803 LIBS="$curl_cv_save_LIBS"
22805 LIBS="$x_xlibs $curl_cv_save_LIBS"
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h. */
22811 #ifdef HAVE_SYS_TYPES_H
22812 #include <sys/types.h>
22814 #ifdef HAVE_SYS_TIME_H
22815 #include <sys/time.h>
22822 struct timespec ts;
22823 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
22830 if ac_fn_c_try_link "$LINENO"
22833 curl_cv_gclk_LIBS="$x_xlibs"
22836 rm -f core conftest.err conftest.$ac_objext conftest.beam \
22837 conftest$ac_exeext conftest.$ac_ext
22841 LIBS="$curl_cv_save_LIBS"
22843 case X-"$curl_cv_gclk_LIBS" in
22845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
22846 printf "%s\n" "cannot find clock_gettime" >&6; }
22847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22848 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22849 curl_func_clock_gettime="no"
22852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
22853 printf "%s\n" "no additional lib required" >&6; }
22854 curl_func_clock_gettime="yes"
22857 if test -z "$curl_cv_save_LIBS"; then
22858 LIBS="$curl_cv_gclk_LIBS"
22860 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
22862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
22863 printf "%s\n" "$curl_cv_gclk_LIBS" >&6; }
22864 curl_func_clock_gettime="yes"
22868 if test "x$cross_compiling" != "xyes" &&
22869 test "$curl_func_clock_gettime" = "yes"; then
22870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
22871 printf %s "checking if monotonic clock_gettime works... " >&6; }
22875 if test "$cross_compiling" = yes
22877 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22878 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22879 as_fn_error $? "cannot run test program while cross compiling
22880 See \`config.log' for more details" "$LINENO" 5; }
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22886 #ifdef HAVE_STDLIB_H
22887 #include <stdlib.h>
22889 #ifdef HAVE_SYS_TYPES_H
22890 #include <sys/types.h>
22892 #ifdef HAVE_SYS_TIME_H
22893 #include <sys/time.h>
22900 struct timespec ts;
22901 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22911 if ac_fn_c_try_run "$LINENO"
22913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22914 printf "%s\n" "yes" >&6; }
22917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22918 printf "%s\n" "no" >&6; }
22919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22920 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22921 curl_func_clock_gettime="no"
22922 LIBS="$curl_cv_save_LIBS"
22925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22926 conftest.$ac_objext conftest.beam conftest.$ac_ext
22931 old=$LD_LIBRARY_PATH
22932 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
22933 export LD_LIBRARY_PATH
22934 if test "$cross_compiling" = yes
22936 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22937 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
22938 as_fn_error $? "cannot run test program while cross compiling
22939 See \`config.log' for more details" "$LINENO" 5; }
22941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22942 /* end confdefs.h. */
22945 #ifdef HAVE_STDLIB_H
22946 #include <stdlib.h>
22948 #ifdef HAVE_SYS_TYPES_H
22949 #include <sys/types.h>
22951 #ifdef HAVE_SYS_TIME_H
22952 #include <sys/time.h>
22959 struct timespec ts;
22960 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
22970 if ac_fn_c_try_run "$LINENO"
22972 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22973 printf "%s\n" "yes" >&6; }
22976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
22977 printf "%s\n" "no" >&6; }
22978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
22979 printf "%s\n" "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
22980 curl_func_clock_gettime="no"
22981 LIBS="$curl_cv_save_LIBS"
22984 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22985 conftest.$ac_objext conftest.beam conftest.$ac_ext
22988 LD_LIBRARY_PATH=$old # restore
22994 case "$curl_func_clock_gettime" in
22997 printf "%s\n" "#define HAVE_CLOCK_GETTIME_MONOTONIC 1" >>confdefs.h
23006 CURL_NETWORK_AND_TIME_LIBS=$LIBS
23010 clean_CPPFLAGS=$CPPFLAGS
23011 clean_LDFLAGS=$LDFLAGS
23015 # Check whether --with-zlib was given.
23016 if test ${with_zlib+y}
23018 withval=$with_zlib; OPT_ZLIB="$withval"
23022 if test "$OPT_ZLIB" = "no" ; then
23023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
23024 printf "%s\n" "$as_me: WARNING: zlib disabled" >&2;}
23026 if test "$OPT_ZLIB" = "yes" ; then
23030 if test -z "$OPT_ZLIB" ; then
23032 if test -n "$PKG_CONFIG"; then
23033 PKGCONFIG="$PKG_CONFIG"
23035 if test -n "$ac_tool_prefix"; then
23036 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23037 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23039 printf %s "checking for $ac_word... " >&6; }
23040 if test ${ac_cv_path_PKGCONFIG+y}
23042 printf %s "(cached) " >&6
23046 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23050 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23051 for as_dir in $as_dummy
23054 case $as_dir in #(((
23057 *) as_dir=$as_dir/ ;;
23059 for ac_exec_ext in '' $ac_executable_extensions; do
23060 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23061 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23062 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23072 PKGCONFIG=$ac_cv_path_PKGCONFIG
23073 if test -n "$PKGCONFIG"; then
23074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23075 printf "%s\n" "$PKGCONFIG" >&6; }
23077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23078 printf "%s\n" "no" >&6; }
23083 if test -z "$ac_cv_path_PKGCONFIG"; then
23084 ac_pt_PKGCONFIG=$PKGCONFIG
23085 # Extract the first word of "pkg-config", so it can be a program name with args.
23086 set dummy pkg-config; ac_word=$2
23087 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23088 printf %s "checking for $ac_word... " >&6; }
23089 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23091 printf %s "(cached) " >&6
23093 case $ac_pt_PKGCONFIG in
23095 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23099 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23100 for as_dir in $as_dummy
23103 case $as_dir in #(((
23106 *) as_dir=$as_dir/ ;;
23108 for ac_exec_ext in '' $ac_executable_extensions; do
23109 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23110 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23111 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23121 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23122 if test -n "$ac_pt_PKGCONFIG"; then
23123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23124 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23127 printf "%s\n" "no" >&6; }
23130 if test "x$ac_pt_PKGCONFIG" = x; then
23133 case $cross_compiling:$ac_tool_warned in
23135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23136 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23137 ac_tool_warned=yes ;;
23139 PKGCONFIG=$ac_pt_PKGCONFIG
23142 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23147 if test "x$PKGCONFIG" != "xno"; then
23148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for zlib options with pkg-config" >&5
23149 printf %s "checking for zlib options with pkg-config... " >&6; }
23151 if test -n ""; then
23152 PKG_CONFIG_LIBDIR=""
23153 export PKG_CONFIG_LIBDIR
23155 $PKGCONFIG --exists zlib >/dev/null 2>&1 && echo 1`
23157 if test -z "$itexists"; then
23159 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23160 printf "%s\n" "no" >&6; }
23162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23163 printf "%s\n" "found" >&6; }
23168 if test "$PKGCONFIG" != "no" ; then
23169 LIBS="`$PKGCONFIG --libs-only-l zlib` $LIBS"
23170 LDFLAGS="$LDFLAGS `$PKGCONFIG --libs-only-L zlib`"
23171 CPPFLAGS="$CPPFLAGS `$PKGCONFIG --cflags-only-I zlib`"
23176 if test -z "$HAVE_LIBZ"; then
23179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
23180 printf %s "checking for inflateEnd in -lz... " >&6; }
23181 if test ${ac_cv_lib_z_inflateEnd+y}
23183 printf %s "(cached) " >&6
23185 ac_check_lib_save_LIBS=$LIBS
23187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23188 /* end confdefs.h. */
23194 char inflateEnd ();
23197 return inflateEnd ();
23202 if ac_fn_c_try_link "$LINENO"
23204 ac_cv_lib_z_inflateEnd=yes
23206 ac_cv_lib_z_inflateEnd=no
23208 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23209 conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
23213 printf "%s\n" "$ac_cv_lib_z_inflateEnd" >&6; }
23214 if test "x$ac_cv_lib_z_inflateEnd" = xyes
23219 OPT_ZLIB="/usr/local"
23225 if test -n "$OPT_ZLIB"; then
23226 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
23227 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
23230 ac_fn_c_check_header_compile "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
23231 if test "x$ac_cv_header_zlib_h" = xyes
23235 if test "$HAVE_LIBZ" != "1"; then
23236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
23237 printf %s "checking for gzread in -lz... " >&6; }
23238 if test ${ac_cv_lib_z_gzread+y}
23240 printf %s "(cached) " >&6
23242 ac_check_lib_save_LIBS=$LIBS
23244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23245 /* end confdefs.h. */
23259 if ac_fn_c_try_link "$LINENO"
23261 ac_cv_lib_z_gzread=yes
23263 ac_cv_lib_z_gzread=no
23265 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23266 conftest$ac_exeext conftest.$ac_ext
23267 LIBS=$ac_check_lib_save_LIBS
23269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
23270 printf "%s\n" "$ac_cv_lib_z_gzread" >&6; }
23271 if test "x$ac_cv_lib_z_gzread" = xyes
23278 CPPFLAGS=$clean_CPPFLAGS
23279 LDFLAGS=$clean_LDFLAGS
23286 CPPFLAGS=$clean_CPPFLAGS
23287 LDFLAGS=$clean_LDFLAGS
23292 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
23294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
23295 printf "%s\n" "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
23297 CPPFLAGS=$clean_CPPFLAGS
23298 LDFLAGS=$clean_LDFLAGS
23300 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
23302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
23303 printf "%s\n" "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
23304 CPPFLAGS=$clean_CPPFLAGS
23305 LDFLAGS=$clean_LDFLAGS
23307 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
23311 printf "%s\n" "#define HAVE_LIBZ 1" >>confdefs.h
23315 LIBS="-lz $clean_LIBS"
23318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
23319 printf "%s\n" "$as_me: found both libz and libz.h header" >&6;}
23320 curl_zlib_msg="enabled"
23324 if test x"$AMFIXLIB" = x1; then
23326 HAVE_LIBZ_FALSE='#'
23338 # Check whether --with-brotli was given.
23339 if test ${with_brotli+y}
23341 withval=$with_brotli; OPT_BROTLI=$withval
23345 if test X"$OPT_BROTLI" != Xno; then
23346 CLEANLDFLAGS="$LDFLAGS"
23347 CLEANCPPFLAGS="$CPPFLAGS"
23350 case "$OPT_BROTLI" in
23353 if test -n "$PKG_CONFIG"; then
23354 PKGCONFIG="$PKG_CONFIG"
23356 if test -n "$ac_tool_prefix"; then
23357 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23358 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23359 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23360 printf %s "checking for $ac_word... " >&6; }
23361 if test ${ac_cv_path_PKGCONFIG+y}
23363 printf %s "(cached) " >&6
23367 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23371 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23372 for as_dir in $as_dummy
23375 case $as_dir in #(((
23378 *) as_dir=$as_dir/ ;;
23380 for ac_exec_ext in '' $ac_executable_extensions; do
23381 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23382 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23383 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23393 PKGCONFIG=$ac_cv_path_PKGCONFIG
23394 if test -n "$PKGCONFIG"; then
23395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23396 printf "%s\n" "$PKGCONFIG" >&6; }
23398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23399 printf "%s\n" "no" >&6; }
23404 if test -z "$ac_cv_path_PKGCONFIG"; then
23405 ac_pt_PKGCONFIG=$PKGCONFIG
23406 # Extract the first word of "pkg-config", so it can be a program name with args.
23407 set dummy pkg-config; ac_word=$2
23408 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23409 printf %s "checking for $ac_word... " >&6; }
23410 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23412 printf %s "(cached) " >&6
23414 case $ac_pt_PKGCONFIG in
23416 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23420 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23421 for as_dir in $as_dummy
23424 case $as_dir in #(((
23427 *) as_dir=$as_dir/ ;;
23429 for ac_exec_ext in '' $ac_executable_extensions; do
23430 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23431 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23432 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23442 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23443 if test -n "$ac_pt_PKGCONFIG"; then
23444 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23445 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23448 printf "%s\n" "no" >&6; }
23451 if test "x$ac_pt_PKGCONFIG" = x; then
23454 case $cross_compiling:$ac_tool_warned in
23456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23457 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23458 ac_tool_warned=yes ;;
23460 PKGCONFIG=$ac_pt_PKGCONFIG
23463 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23468 if test "x$PKGCONFIG" != "xno"; then
23469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbrotlidec options with pkg-config" >&5
23470 printf %s "checking for libbrotlidec options with pkg-config... " >&6; }
23472 if test -n ""; then
23473 PKG_CONFIG_LIBDIR=""
23474 export PKG_CONFIG_LIBDIR
23476 $PKGCONFIG --exists libbrotlidec >/dev/null 2>&1 && echo 1`
23478 if test -z "$itexists"; then
23480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23481 printf "%s\n" "no" >&6; }
23483 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23484 printf "%s\n" "found" >&6; }
23489 if test "$PKGCONFIG" != "no" ; then
23490 LIB_BROTLI=`$PKGCONFIG --libs-only-l libbrotlidec`
23491 LD_BROTLI=`$PKGCONFIG --libs-only-L libbrotlidec`
23492 CPP_BROTLI=`$PKGCONFIG --cflags-only-I libbrotlidec`
23493 version=`$PKGCONFIG --modversion libbrotlidec`
23494 DIR_BROTLI=`echo $LD_BROTLI | $SED -e 's/^-L//'`
23501 PREFIX_BROTLI=$OPT_BROTLI
23505 if test -n "$PREFIX_BROTLI"; then
23506 LIB_BROTLI="-lbrotlidec"
23507 LD_BROTLI=-L${PREFIX_BROTLI}/lib$libsuff
23508 CPP_BROTLI=-I${PREFIX_BROTLI}/include
23509 DIR_BROTLI=${PREFIX_BROTLI}/lib$libsuff
23512 LDFLAGS="$LDFLAGS $LD_BROTLI"
23513 CPPFLAGS="$CPPFLAGS $CPP_BROTLI"
23514 LIBS="$LIB_BROTLI $LIBS"
23516 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BrotliDecoderDecompress in -lbrotlidec" >&5
23517 printf %s "checking for BrotliDecoderDecompress in -lbrotlidec... " >&6; }
23518 if test ${ac_cv_lib_brotlidec_BrotliDecoderDecompress+y}
23520 printf %s "(cached) " >&6
23522 ac_check_lib_save_LIBS=$LIBS
23523 LIBS="-lbrotlidec $LIBS"
23524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23525 /* end confdefs.h. */
23531 char BrotliDecoderDecompress ();
23534 return BrotliDecoderDecompress ();
23539 if ac_fn_c_try_link "$LINENO"
23541 ac_cv_lib_brotlidec_BrotliDecoderDecompress=yes
23543 ac_cv_lib_brotlidec_BrotliDecoderDecompress=no
23545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23546 conftest$ac_exeext conftest.$ac_ext
23547 LIBS=$ac_check_lib_save_LIBS
23549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&5
23550 printf "%s\n" "$ac_cv_lib_brotlidec_BrotliDecoderDecompress" >&6; }
23551 if test "x$ac_cv_lib_brotlidec_BrotliDecoderDecompress" = xyes
23553 printf "%s\n" "#define HAVE_LIBBROTLIDEC 1" >>confdefs.h
23555 LIBS="-lbrotlidec $LIBS"
23560 for ac_header in brotli/decode.h
23562 ac_fn_c_check_header_compile "$LINENO" "brotli/decode.h" "ac_cv_header_brotli_decode_h" "$ac_includes_default"
23563 if test "x$ac_cv_header_brotli_decode_h" = xyes
23565 printf "%s\n" "#define HAVE_BROTLI_DECODE_H 1" >>confdefs.h
23566 curl_brotli_msg="enabled (libbrotlidec)"
23569 printf "%s\n" "#define HAVE_BROTLI 1" >>confdefs.h
23578 if test X"$OPT_BROTLI" != Xoff &&
23579 test "$HAVE_BROTLI" != "1"; then
23580 as_fn_error $? "BROTLI libs and/or directories were not found where specified!" "$LINENO" 5
23583 if test "$HAVE_BROTLI" = "1"; then
23584 if test -n "$DIR_BROTLI"; then
23586 if test "x$cross_compiling" != "xyes"; then
23587 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_BROTLI"
23588 export CURL_LIBRARY_PATH
23589 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&5
23590 printf "%s\n" "$as_me: Added $DIR_BROTLI to CURL_LIBRARY_PATH" >&6;}
23594 LDFLAGS=$CLEANLDFLAGS
23595 CPPFLAGS=$CLEANCPPFLAGS
23603 # Check whether --with-zstd was given.
23604 if test ${with_zstd+y}
23606 withval=$with_zstd; OPT_ZSTD=$withval
23610 if test X"$OPT_ZSTD" != Xno; then
23611 CLEANLDFLAGS="$LDFLAGS"
23612 CLEANCPPFLAGS="$CPPFLAGS"
23615 case "$OPT_ZSTD" in
23618 if test -n "$PKG_CONFIG"; then
23619 PKGCONFIG="$PKG_CONFIG"
23621 if test -n "$ac_tool_prefix"; then
23622 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23623 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23625 printf %s "checking for $ac_word... " >&6; }
23626 if test ${ac_cv_path_PKGCONFIG+y}
23628 printf %s "(cached) " >&6
23632 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23636 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23637 for as_dir in $as_dummy
23640 case $as_dir in #(((
23643 *) as_dir=$as_dir/ ;;
23645 for ac_exec_ext in '' $ac_executable_extensions; do
23646 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23647 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23648 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23658 PKGCONFIG=$ac_cv_path_PKGCONFIG
23659 if test -n "$PKGCONFIG"; then
23660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23661 printf "%s\n" "$PKGCONFIG" >&6; }
23663 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23664 printf "%s\n" "no" >&6; }
23669 if test -z "$ac_cv_path_PKGCONFIG"; then
23670 ac_pt_PKGCONFIG=$PKGCONFIG
23671 # Extract the first word of "pkg-config", so it can be a program name with args.
23672 set dummy pkg-config; ac_word=$2
23673 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23674 printf %s "checking for $ac_word... " >&6; }
23675 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
23677 printf %s "(cached) " >&6
23679 case $ac_pt_PKGCONFIG in
23681 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23685 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23686 for as_dir in $as_dummy
23689 case $as_dir in #(((
23692 *) as_dir=$as_dir/ ;;
23694 for ac_exec_ext in '' $ac_executable_extensions; do
23695 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
23696 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
23697 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
23707 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23708 if test -n "$ac_pt_PKGCONFIG"; then
23709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23710 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
23712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23713 printf "%s\n" "no" >&6; }
23716 if test "x$ac_pt_PKGCONFIG" = x; then
23719 case $cross_compiling:$ac_tool_warned in
23721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23722 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23723 ac_tool_warned=yes ;;
23725 PKGCONFIG=$ac_pt_PKGCONFIG
23728 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23733 if test "x$PKGCONFIG" != "xno"; then
23734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libzstd options with pkg-config" >&5
23735 printf %s "checking for libzstd options with pkg-config... " >&6; }
23737 if test -n ""; then
23738 PKG_CONFIG_LIBDIR=""
23739 export PKG_CONFIG_LIBDIR
23741 $PKGCONFIG --exists libzstd >/dev/null 2>&1 && echo 1`
23743 if test -z "$itexists"; then
23745 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
23746 printf "%s\n" "no" >&6; }
23748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
23749 printf "%s\n" "found" >&6; }
23754 if test "$PKGCONFIG" != "no" ; then
23755 LIB_ZSTD=`$PKGCONFIG --libs-only-l libzstd`
23756 LD_ZSTD=`$PKGCONFIG --libs-only-L libzstd`
23757 CPP_ZSTD=`$PKGCONFIG --cflags-only-I libzstd`
23758 version=`$PKGCONFIG --modversion libzstd`
23759 DIR_ZSTD=`echo $LD_ZSTD | $SED -e 's/-L//'`
23766 PREFIX_ZSTD=$OPT_ZSTD
23770 if test -n "$PREFIX_ZSTD"; then
23772 LD_ZSTD=-L${PREFIX_ZSTD}/lib$libsuff
23773 CPP_ZSTD=-I${PREFIX_ZSTD}/include
23774 DIR_ZSTD=${PREFIX_ZSTD}/lib$libsuff
23777 LDFLAGS="$LDFLAGS $LD_ZSTD"
23778 CPPFLAGS="$CPPFLAGS $CPP_ZSTD"
23779 LIBS="$LIB_ZSTD $LIBS"
23781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ZSTD_createDStream in -lzstd" >&5
23782 printf %s "checking for ZSTD_createDStream in -lzstd... " >&6; }
23783 if test ${ac_cv_lib_zstd_ZSTD_createDStream+y}
23785 printf %s "(cached) " >&6
23787 ac_check_lib_save_LIBS=$LIBS
23788 LIBS="-lzstd $LIBS"
23789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23790 /* end confdefs.h. */
23796 char ZSTD_createDStream ();
23799 return ZSTD_createDStream ();
23804 if ac_fn_c_try_link "$LINENO"
23806 ac_cv_lib_zstd_ZSTD_createDStream=yes
23808 ac_cv_lib_zstd_ZSTD_createDStream=no
23810 rm -f core conftest.err conftest.$ac_objext conftest.beam \
23811 conftest$ac_exeext conftest.$ac_ext
23812 LIBS=$ac_check_lib_save_LIBS
23814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_zstd_ZSTD_createDStream" >&5
23815 printf "%s\n" "$ac_cv_lib_zstd_ZSTD_createDStream" >&6; }
23816 if test "x$ac_cv_lib_zstd_ZSTD_createDStream" = xyes
23818 printf "%s\n" "#define HAVE_LIBZSTD 1" >>confdefs.h
23820 LIBS="-lzstd $LIBS"
23825 for ac_header in zstd.h
23827 ac_fn_c_check_header_compile "$LINENO" "zstd.h" "ac_cv_header_zstd_h" "$ac_includes_default"
23828 if test "x$ac_cv_header_zstd_h" = xyes
23830 printf "%s\n" "#define HAVE_ZSTD_H 1" >>confdefs.h
23831 curl_zstd_msg="enabled (libzstd)"
23834 printf "%s\n" "#define HAVE_ZSTD 1" >>confdefs.h
23843 if test X"$OPT_ZSTD" != Xoff &&
23844 test "$HAVE_ZSTD" != "1"; then
23845 as_fn_error $? "libzstd was not found where specified!" "$LINENO" 5
23848 if test "$HAVE_ZSTD" = "1"; then
23849 if test -n "$DIR_ZSTD"; then
23851 if test "x$cross_compiling" != "xyes"; then
23852 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_ZSTD"
23853 export CURL_LIBRARY_PATH
23854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&5
23855 printf "%s\n" "$as_me: Added $DIR_ZSTD to CURL_LIBRARY_PATH" >&6;}
23859 LDFLAGS=$CLEANLDFLAGS
23860 CPPFLAGS=$CLEANCPPFLAGS
23868 # Check whether --with-ldap-lib was given.
23869 if test ${with_ldap_lib+y}
23871 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
23877 # Check whether --with-lber-lib was given.
23878 if test ${with_lber_lib+y}
23880 withval=$with_lber_lib; LBERLIBNAME="$withval"
23884 if test x$CURL_DISABLE_LDAP != x1 ; then
23887 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
23888 printf %s "checking for lber.h... " >&6; }
23889 if test ${curl_cv_header_lber_h+y}
23891 printf %s "(cached) " >&6
23894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23895 /* end confdefs.h. */
23899 #ifdef HAVE_WINDOWS_H
23900 #ifndef WIN32_LEAN_AND_MEAN
23901 #define WIN32_LEAN_AND_MEAN
23903 #include <windows.h>
23905 #ifdef HAVE_SYS_TYPES_H
23906 #include <sys/types.h>
23910 #define NULL (void *)0
23917 BerValue *bvp = NULL;
23918 BerElement *bep = ber_init(bvp);
23926 if ac_fn_c_try_compile "$LINENO"
23929 curl_cv_header_lber_h="yes"
23933 curl_cv_header_lber_h="no"
23936 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_lber_h" >&5
23940 printf "%s\n" "$curl_cv_header_lber_h" >&6; }
23941 if test "$curl_cv_header_lber_h" = "yes"; then
23943 printf "%s\n" "#define HAVE_LBER_H 1" >>confdefs.h
23946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23947 /* end confdefs.h. */
23951 #ifdef HAVE_WINDOWS_H
23952 #ifndef WIN32_LEAN_AND_MEAN
23953 #define WIN32_LEAN_AND_MEAN
23955 #include <windows.h>
23957 #ifdef HAVE_SYS_TYPES_H
23958 #include <sys/types.h>
23962 #define NULL (void *)0
23964 #ifndef LDAP_DEPRECATED
23965 #define LDAP_DEPRECATED 1
23972 BerValue *bvp = NULL;
23973 BerElement *bep = ber_init(bvp);
23981 if ac_fn_c_try_compile "$LINENO"
23984 curl_cv_need_header_lber_h="no"
23988 curl_cv_need_header_lber_h="yes"
23991 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
23993 case "$curl_cv_need_header_lber_h" in
23996 printf "%s\n" "#define NEED_LBER_H 1" >>confdefs.h
24003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
24004 printf %s "checking for ldap.h... " >&6; }
24005 if test ${curl_cv_header_ldap_h+y}
24007 printf %s "(cached) " >&6
24010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24011 /* end confdefs.h. */
24015 #ifdef HAVE_WINDOWS_H
24016 #ifndef WIN32_LEAN_AND_MEAN
24017 #define WIN32_LEAN_AND_MEAN
24019 #include <windows.h>
24021 #ifdef HAVE_SYS_TYPES_H
24022 #include <sys/types.h>
24025 #ifndef LDAP_DEPRECATED
24026 #define LDAP_DEPRECATED 1
24036 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24037 int res = ldap_unbind(ldp);
24044 if ac_fn_c_try_compile "$LINENO"
24047 curl_cv_header_ldap_h="yes"
24051 curl_cv_header_ldap_h="no"
24054 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24057 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_h" >&5
24058 printf "%s\n" "$curl_cv_header_ldap_h" >&6; }
24059 case "$curl_cv_header_ldap_h" in
24062 printf "%s\n" "#define HAVE_LDAP_H 1" >>confdefs.h
24068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
24069 printf %s "checking for ldap_ssl.h... " >&6; }
24070 if test ${curl_cv_header_ldap_ssl_h+y}
24072 printf %s "(cached) " >&6
24075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24076 /* end confdefs.h. */
24080 #ifdef HAVE_WINDOWS_H
24081 #ifndef WIN32_LEAN_AND_MEAN
24082 #define WIN32_LEAN_AND_MEAN
24084 #include <windows.h>
24086 #ifdef HAVE_SYS_TYPES_H
24087 #include <sys/types.h>
24090 #ifndef LDAP_DEPRECATED
24091 #define LDAP_DEPRECATED 1
24099 #include <ldap_ssl.h>
24104 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
24111 if ac_fn_c_try_compile "$LINENO"
24114 curl_cv_header_ldap_ssl_h="yes"
24118 curl_cv_header_ldap_ssl_h="no"
24121 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ldap_ssl_h" >&5
24125 printf "%s\n" "$curl_cv_header_ldap_ssl_h" >&6; }
24126 case "$curl_cv_header_ldap_ssl_h" in
24129 printf "%s\n" "#define HAVE_LDAP_SSL_H 1" >>confdefs.h
24135 if test -z "$LDAPLIBNAME" ; then
24136 if test "$curl_cv_native_windows" = "yes"; then
24137 LDAPLIBNAME="wldap32"
24142 if test "$LDAPLIBNAME" ; then
24143 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LDAPLIBNAME"""_ldap_init" | $as_tr_sh`
24144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
24145 printf %s "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
24146 if eval test \${$as_ac_Lib+y}
24148 printf %s "(cached) " >&6
24150 ac_check_lib_save_LIBS=$LIBS
24151 LIBS="-l"$LDAPLIBNAME" $LIBS"
24152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24153 /* end confdefs.h. */
24162 return ldap_init ();
24167 if ac_fn_c_try_link "$LINENO"
24169 eval "$as_ac_Lib=yes"
24171 eval "$as_ac_Lib=no"
24173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24174 conftest$ac_exeext conftest.$ac_ext
24175 LIBS=$ac_check_lib_save_LIBS
24177 eval ac_res=\$$as_ac_Lib
24178 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24179 printf "%s\n" "$ac_res" >&6; }
24180 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24182 cat >>confdefs.h <<_ACEOF
24183 #define `printf "%s\n" "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
24186 LIBS="-l"$LDAPLIBNAME" $LIBS"
24190 if test -n "$ldap_askedfor"; then
24191 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
24194 printf "%s\n" "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
24196 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24198 CURL_DISABLE_LDAP=1
24201 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24203 CURL_DISABLE_LDAPS=1
24210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
24211 printf %s "checking for LDAP libraries... " >&6; }
24217 curl_cv_save_LIBS="$LIBS"
24218 curl_cv_ldap_LIBS="unknown"
24220 for x_nlibs in '' "$u_libs" \
24224 '-lldapssl -lldapx -lldapsdk' \
24225 '-lldapsdk -lldapx -lldapssl' \
24226 '-lldap -llber -lssl -lcrypto' ; do
24228 if test "$curl_cv_ldap_LIBS" = "unknown"; then
24229 if test -z "$x_nlibs"; then
24230 LIBS="$curl_cv_save_LIBS"
24232 LIBS="$x_nlibs $curl_cv_save_LIBS"
24234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24235 /* end confdefs.h. */
24239 #ifdef HAVE_WINDOWS_H
24240 #ifndef WIN32_LEAN_AND_MEAN
24241 #define WIN32_LEAN_AND_MEAN
24243 #include <windows.h>
24245 #ifdef HAVE_SYS_TYPES_H
24246 #include <sys/types.h>
24250 #define NULL (void *)0
24252 #ifndef LDAP_DEPRECATED
24253 #define LDAP_DEPRECATED 1
24265 BerValue *bvp = NULL;
24266 BerElement *bep = ber_init(bvp);
24267 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
24268 int res = ldap_unbind(ldp);
24276 if ac_fn_c_try_link "$LINENO"
24279 curl_cv_ldap_LIBS="$x_nlibs"
24282 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24283 conftest$ac_exeext conftest.$ac_ext
24287 LIBS="$curl_cv_save_LIBS"
24289 case X-"$curl_cv_ldap_LIBS" in
24291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
24292 printf "%s\n" "cannot find LDAP libraries" >&6; }
24295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
24296 printf "%s\n" "no additional lib required" >&6; }
24299 if test -z "$curl_cv_save_LIBS"; then
24300 LIBS="$curl_cv_ldap_LIBS"
24302 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
24304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
24305 printf "%s\n" "$curl_cv_ldap_LIBS" >&6; }
24310 case X-"$curl_cv_ldap_LIBS" in
24312 if test -n "$ldap_askedfor"; then
24313 as_fn_error $? "couldn't detect the LDAP libraries" "$LINENO" 5
24315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
24316 printf "%s\n" "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
24318 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24320 CURL_DISABLE_LDAP=1
24323 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24325 CURL_DISABLE_LDAPS=1
24332 if test x$CURL_DISABLE_LDAP != x1 ; then
24334 if test "$LBERLIBNAME" ; then
24335 if test "$LBERLIBNAME" != "no" ; then
24336 as_ac_Lib=`printf "%s\n" "ac_cv_lib_"$LBERLIBNAME"""_ber_free" | $as_tr_sh`
24337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
24338 printf %s "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
24339 if eval test \${$as_ac_Lib+y}
24341 printf %s "(cached) " >&6
24343 ac_check_lib_save_LIBS=$LIBS
24344 LIBS="-l"$LBERLIBNAME" $LIBS"
24345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24346 /* end confdefs.h. */
24355 return ber_free ();
24360 if ac_fn_c_try_link "$LINENO"
24362 eval "$as_ac_Lib=yes"
24364 eval "$as_ac_Lib=no"
24366 rm -f core conftest.err conftest.$ac_objext conftest.beam \
24367 conftest$ac_exeext conftest.$ac_ext
24368 LIBS=$ac_check_lib_save_LIBS
24370 eval ac_res=\$$as_ac_Lib
24371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
24372 printf "%s\n" "$ac_res" >&6; }
24373 if eval test \"x\$"$as_ac_Lib"\" = x"yes"
24375 cat >>confdefs.h <<_ACEOF
24376 #define `printf "%s\n" "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
24379 LIBS="-l"$LBERLIBNAME" $LIBS"
24383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
24384 printf "%s\n" "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
24386 printf "%s\n" "#define CURL_DISABLE_LDAP 1" >>confdefs.h
24388 CURL_DISABLE_LDAP=1
24391 printf "%s\n" "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
24393 CURL_DISABLE_LDAPS=1
24401 if test x$CURL_DISABLE_LDAP != x1 ; then
24402 ac_fn_c_check_func "$LINENO" "ldap_url_parse" "ac_cv_func_ldap_url_parse"
24403 if test "x$ac_cv_func_ldap_url_parse" = xyes
24405 printf "%s\n" "#define HAVE_LDAP_URL_PARSE 1" >>confdefs.h
24410 if test "$LDAPLIBNAME" = "wldap32"; then
24411 curl_ldap_msg="enabled (winldap)"
24413 printf "%s\n" "#define USE_WIN32_LDAP 1" >>confdefs.h
24416 curl_ldap_msg="enabled (OpenLDAP)"
24417 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
24419 printf "%s\n" "#define USE_OPENLDAP 1" >>confdefs.h
24427 if test x$CURL_DISABLE_LDAPS != x1 ; then
24428 curl_ldaps_msg="enabled"
24432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
24433 printf %s "checking whether to enable IPv6... " >&6; }
24434 # Check whether --enable-ipv6 was given.
24435 if test ${enable_ipv6+y}
24437 enableval=$enable_ipv6; case "$enableval" in
24439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 printf "%s\n" "no" >&6; }
24443 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24444 printf "%s\n" "yes" >&6; }
24449 if test "$cross_compiling" = yes
24451 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24452 printf "%s\n" "yes" >&6; }
24456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24457 /* end confdefs.h. */
24459 /* are AF_INET6 and sockaddr_in6 available? */
24460 #include <sys/types.h>
24461 #ifdef HAVE_WINSOCK2_H
24462 #include <winsock2.h>
24463 #include <ws2tcpip.h>
24465 #include <sys/socket.h>
24466 #include <netinet/in.h>
24467 #if defined (__TANDEM)
24468 # include <netinet/in6.h>
24471 #include <stdlib.h> /* for exit() */
24474 struct sockaddr_in6 s;
24476 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
24484 if ac_fn_c_try_run "$LINENO"
24486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24487 printf "%s\n" "yes" >&6; }
24490 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24491 printf "%s\n" "no" >&6; }
24494 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24495 conftest.$ac_objext conftest.beam conftest.$ac_ext
24501 if test "$ipv6" = yes; then
24502 curl_ipv6_msg="enabled"
24504 printf "%s\n" "#define ENABLE_IPV6 1" >>confdefs.h
24509 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
24510 printf %s "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
24511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24512 /* end confdefs.h. */
24514 #include <sys/types.h>
24515 #ifdef HAVE_WINSOCK2_H
24516 #include <winsock2.h>
24517 #include <ws2tcpip.h>
24519 #include <netinet/in.h>
24520 #if defined (__TANDEM)
24521 # include <netinet/in6.h>
24528 struct sockaddr_in6 s;
24529 s.sin6_scope_id = 0;
24535 if ac_fn_c_try_compile "$LINENO"
24538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24539 printf "%s\n" "yes" >&6; }
24541 printf "%s\n" "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
24546 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24547 printf "%s\n" "no" >&6; }
24550 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
24554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
24555 printf %s "checking if argv can be written to... " >&6; }
24559 if test "$cross_compiling" = yes
24561 curl_cv_writable_argv=cross
24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24565 /* end confdefs.h. */
24567 int main(int argc, char **argv)
24571 return (argv[0][0] == ' ')?0:1;
24575 if ac_fn_c_try_run "$LINENO"
24577 curl_cv_writable_argv=yes
24580 curl_cv_writable_argv=no
24583 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24584 conftest.$ac_objext conftest.beam conftest.$ac_ext
24589 old=$LD_LIBRARY_PATH
24590 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
24591 export LD_LIBRARY_PATH
24592 if test "$cross_compiling" = yes
24594 curl_cv_writable_argv=cross
24597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24598 /* end confdefs.h. */
24600 int main(int argc, char **argv)
24604 return (argv[0][0] == ' ')?0:1;
24608 if ac_fn_c_try_run "$LINENO"
24610 curl_cv_writable_argv=yes
24613 curl_cv_writable_argv=no
24616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24617 conftest.$ac_objext conftest.beam conftest.$ac_ext
24620 LD_LIBRARY_PATH=$old # restore
24624 case $curl_cv_writable_argv in
24627 printf "%s\n" "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
24629 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24630 printf "%s\n" "yes" >&6; }
24633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24634 printf "%s\n" "no" >&6; }
24637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24638 printf "%s\n" "no" >&6; }
24639 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
24640 printf "%s\n" "$as_me: WARNING: the previous check could not be made default was used" >&2;}
24648 # Check whether --with-gssapi-includes was given.
24649 if test ${with_gssapi_includes+y}
24651 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
24658 # Check whether --with-gssapi-libs was given.
24659 if test ${with_gssapi_libs+y}
24661 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
24668 # Check whether --with-gssapi was given.
24669 if test ${with_gssapi+y}
24671 withval=$with_gssapi;
24672 GSSAPI_ROOT="$withval"
24673 if test x"$GSSAPI_ROOT" != xno; then
24675 if test x"$GSSAPI_ROOT" = xyes; then
24683 : ${KRB5CONFIG:="$GSSAPI_ROOT/bin/krb5-config"}
24685 save_CPPFLAGS="$CPPFLAGS"
24686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
24687 printf %s "checking if GSS-API support is requested... " >&6; }
24688 if test x"$want_gss" = xyes; then
24689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24690 printf "%s\n" "yes" >&6; }
24692 if test $GSSAPI_ROOT != "/usr"; then
24694 if test -n "$PKG_CONFIG"; then
24695 PKGCONFIG="$PKG_CONFIG"
24697 if test -n "$ac_tool_prefix"; then
24698 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24699 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24700 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24701 printf %s "checking for $ac_word... " >&6; }
24702 if test ${ac_cv_path_PKGCONFIG+y}
24704 printf %s "(cached) " >&6
24708 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24712 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24713 for as_dir in $as_dummy
24716 case $as_dir in #(((
24719 *) as_dir=$as_dir/ ;;
24721 for ac_exec_ext in '' $ac_executable_extensions; do
24722 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24723 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24724 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24734 PKGCONFIG=$ac_cv_path_PKGCONFIG
24735 if test -n "$PKGCONFIG"; then
24736 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24737 printf "%s\n" "$PKGCONFIG" >&6; }
24739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24740 printf "%s\n" "no" >&6; }
24745 if test -z "$ac_cv_path_PKGCONFIG"; then
24746 ac_pt_PKGCONFIG=$PKGCONFIG
24747 # Extract the first word of "pkg-config", so it can be a program name with args.
24748 set dummy pkg-config; ac_word=$2
24749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24750 printf %s "checking for $ac_word... " >&6; }
24751 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24753 printf %s "(cached) " >&6
24755 case $ac_pt_PKGCONFIG in
24757 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24761 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24762 for as_dir in $as_dummy
24765 case $as_dir in #(((
24768 *) as_dir=$as_dir/ ;;
24770 for ac_exec_ext in '' $ac_executable_extensions; do
24771 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24772 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24773 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24783 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24784 if test -n "$ac_pt_PKGCONFIG"; then
24785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24786 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24789 printf "%s\n" "no" >&6; }
24792 if test "x$ac_pt_PKGCONFIG" = x; then
24795 case $cross_compiling:$ac_tool_warned in
24797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24798 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24799 ac_tool_warned=yes ;;
24801 PKGCONFIG=$ac_pt_PKGCONFIG
24804 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24809 if test "x$PKGCONFIG" != "xno"; then
24810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24811 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24813 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
24814 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
24815 export PKG_CONFIG_LIBDIR
24817 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24819 if test -z "$itexists"; then
24821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24822 printf "%s\n" "no" >&6; }
24824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24825 printf "%s\n" "found" >&6; }
24831 if test -n "$PKG_CONFIG"; then
24832 PKGCONFIG="$PKG_CONFIG"
24834 if test -n "$ac_tool_prefix"; then
24835 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24836 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24838 printf %s "checking for $ac_word... " >&6; }
24839 if test ${ac_cv_path_PKGCONFIG+y}
24841 printf %s "(cached) " >&6
24845 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24849 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24850 for as_dir in $as_dummy
24853 case $as_dir in #(((
24856 *) as_dir=$as_dir/ ;;
24858 for ac_exec_ext in '' $ac_executable_extensions; do
24859 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24860 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24861 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24871 PKGCONFIG=$ac_cv_path_PKGCONFIG
24872 if test -n "$PKGCONFIG"; then
24873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24874 printf "%s\n" "$PKGCONFIG" >&6; }
24876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24877 printf "%s\n" "no" >&6; }
24882 if test -z "$ac_cv_path_PKGCONFIG"; then
24883 ac_pt_PKGCONFIG=$PKGCONFIG
24884 # Extract the first word of "pkg-config", so it can be a program name with args.
24885 set dummy pkg-config; ac_word=$2
24886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24887 printf %s "checking for $ac_word... " >&6; }
24888 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
24890 printf %s "(cached) " >&6
24892 case $ac_pt_PKGCONFIG in
24894 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24898 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24899 for as_dir in $as_dummy
24902 case $as_dir in #(((
24905 *) as_dir=$as_dir/ ;;
24907 for ac_exec_ext in '' $ac_executable_extensions; do
24908 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
24909 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
24910 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
24920 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24921 if test -n "$ac_pt_PKGCONFIG"; then
24922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24923 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
24925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24926 printf "%s\n" "no" >&6; }
24929 if test "x$ac_pt_PKGCONFIG" = x; then
24932 case $cross_compiling:$ac_tool_warned in
24934 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24935 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24936 ac_tool_warned=yes ;;
24938 PKGCONFIG=$ac_pt_PKGCONFIG
24941 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24946 if test "x$PKGCONFIG" != "xno"; then
24947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
24948 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
24950 if test -n ""; then
24951 PKG_CONFIG_LIBDIR=""
24952 export PKG_CONFIG_LIBDIR
24954 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
24956 if test -z "$itexists"; then
24958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
24959 printf "%s\n" "no" >&6; }
24961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
24962 printf "%s\n" "found" >&6; }
24967 if test -z "$GSSAPI_INCS"; then
24968 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
24969 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
24970 elif test "$PKGCONFIG" != "no" ; then
24971 GSSAPI_INCS=`$PKGCONFIG --cflags mit-krb5-gssapi`
24972 elif test -f "$KRB5CONFIG"; then
24973 GSSAPI_INCS=`$KRB5CONFIG --cflags gssapi`
24974 elif test "$GSSAPI_ROOT" != "yes"; then
24975 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
24979 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
24981 ac_fn_c_check_header_compile "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
24982 if test "x$ac_cv_header_gss_h" = xyes
24986 printf "%s\n" "#define HAVE_GSSGNU 1" >>confdefs.h
24992 for ac_header in gssapi/gssapi.h
24994 ac_fn_c_check_header_compile "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
24995 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes
24997 printf "%s\n" "#define HAVE_GSSAPI_GSSAPI_H 1" >>confdefs.h
25004 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
25006 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
25007 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
25008 $ac_includes_default
25009 #ifdef HAVE_GSSAPI_GSSAPI_H
25010 #include <gssapi/gssapi.h>
25014 if eval test \"x\$"$as_ac_Header"\" = x"yes"
25016 cat >>confdefs.h <<_ACEOF
25017 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
25025 if test "x$not_mit" = "x1"; then
25026 ac_fn_c_check_header_compile "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
25027 if test "x$ac_cv_header_gssapi_h" = xyes
25031 printf "%s\n" "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
25037 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
25038 printf "%s\n" "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
25045 printf "%s\n" "#define HAVE_GSSMIT 1" >>confdefs.h
25047 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
25048 printf %s "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
25049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25050 /* end confdefs.h. */
25053 #include <gssapi/gssapi.h>
25054 #include <gssapi/gssapi_generic.h>
25055 #include <gssapi/gssapi_krb5.h>
25063 GSS_C_NT_HOSTBASED_SERVICE,
25071 if ac_fn_c_try_compile "$LINENO"
25074 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25075 printf "%s\n" "yes" >&6; }
25079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25080 printf "%s\n" "no" >&6; }
25082 printf "%s\n" "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
25086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25094 printf "%s\n" "no" >&6; }
25096 if test x"$want_gss" = xyes; then
25098 printf "%s\n" "#define HAVE_GSSAPI 1" >>confdefs.h
25101 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
25103 if test -n "$gnu_gss"; then
25104 curl_gss_msg="enabled (GNU GSS)"
25105 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25107 elif test -z "$GSSAPI_LIB_DIR"; then
25110 LIBS="-lgssapi_krb5 -lresolv $LIBS"
25113 if test $GSSAPI_ROOT != "/usr"; then
25115 if test -n "$PKG_CONFIG"; then
25116 PKGCONFIG="$PKG_CONFIG"
25118 if test -n "$ac_tool_prefix"; then
25119 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25120 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25122 printf %s "checking for $ac_word... " >&6; }
25123 if test ${ac_cv_path_PKGCONFIG+y}
25125 printf %s "(cached) " >&6
25129 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25133 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25134 for as_dir in $as_dummy
25137 case $as_dir in #(((
25140 *) as_dir=$as_dir/ ;;
25142 for ac_exec_ext in '' $ac_executable_extensions; do
25143 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25144 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25145 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25155 PKGCONFIG=$ac_cv_path_PKGCONFIG
25156 if test -n "$PKGCONFIG"; then
25157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25158 printf "%s\n" "$PKGCONFIG" >&6; }
25160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25161 printf "%s\n" "no" >&6; }
25166 if test -z "$ac_cv_path_PKGCONFIG"; then
25167 ac_pt_PKGCONFIG=$PKGCONFIG
25168 # Extract the first word of "pkg-config", so it can be a program name with args.
25169 set dummy pkg-config; ac_word=$2
25170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25171 printf %s "checking for $ac_word... " >&6; }
25172 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25174 printf %s "(cached) " >&6
25176 case $ac_pt_PKGCONFIG in
25178 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25182 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25183 for as_dir in $as_dummy
25186 case $as_dir in #(((
25189 *) as_dir=$as_dir/ ;;
25191 for ac_exec_ext in '' $ac_executable_extensions; do
25192 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25193 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25194 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25204 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25205 if test -n "$ac_pt_PKGCONFIG"; then
25206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25207 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25210 printf "%s\n" "no" >&6; }
25213 if test "x$ac_pt_PKGCONFIG" = x; then
25216 case $cross_compiling:$ac_tool_warned in
25218 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25219 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25220 ac_tool_warned=yes ;;
25222 PKGCONFIG=$ac_pt_PKGCONFIG
25225 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25230 if test "x$PKGCONFIG" != "xno"; then
25231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25232 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25234 if test -n "$GSSAPI_ROOT/lib/pkgconfig"; then
25235 PKG_CONFIG_LIBDIR="$GSSAPI_ROOT/lib/pkgconfig"
25236 export PKG_CONFIG_LIBDIR
25238 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25240 if test -z "$itexists"; then
25242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25243 printf "%s\n" "no" >&6; }
25245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25246 printf "%s\n" "found" >&6; }
25252 if test -n "$PKG_CONFIG"; then
25253 PKGCONFIG="$PKG_CONFIG"
25255 if test -n "$ac_tool_prefix"; then
25256 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25257 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25259 printf %s "checking for $ac_word... " >&6; }
25260 if test ${ac_cv_path_PKGCONFIG+y}
25262 printf %s "(cached) " >&6
25266 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25270 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25271 for as_dir in $as_dummy
25274 case $as_dir in #(((
25277 *) as_dir=$as_dir/ ;;
25279 for ac_exec_ext in '' $ac_executable_extensions; do
25280 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25281 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25282 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25292 PKGCONFIG=$ac_cv_path_PKGCONFIG
25293 if test -n "$PKGCONFIG"; then
25294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25295 printf "%s\n" "$PKGCONFIG" >&6; }
25297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25298 printf "%s\n" "no" >&6; }
25303 if test -z "$ac_cv_path_PKGCONFIG"; then
25304 ac_pt_PKGCONFIG=$PKGCONFIG
25305 # Extract the first word of "pkg-config", so it can be a program name with args.
25306 set dummy pkg-config; ac_word=$2
25307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25308 printf %s "checking for $ac_word... " >&6; }
25309 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25311 printf %s "(cached) " >&6
25313 case $ac_pt_PKGCONFIG in
25315 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25319 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25320 for as_dir in $as_dummy
25323 case $as_dir in #(((
25326 *) as_dir=$as_dir/ ;;
25328 for ac_exec_ext in '' $ac_executable_extensions; do
25329 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25330 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25331 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25341 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25342 if test -n "$ac_pt_PKGCONFIG"; then
25343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25344 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25347 printf "%s\n" "no" >&6; }
25350 if test "x$ac_pt_PKGCONFIG" = x; then
25353 case $cross_compiling:$ac_tool_warned in
25355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25356 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25357 ac_tool_warned=yes ;;
25359 PKGCONFIG=$ac_pt_PKGCONFIG
25362 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25367 if test "x$PKGCONFIG" != "xno"; then
25368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mit-krb5-gssapi options with pkg-config" >&5
25369 printf %s "checking for mit-krb5-gssapi options with pkg-config... " >&6; }
25371 if test -n ""; then
25372 PKG_CONFIG_LIBDIR=""
25373 export PKG_CONFIG_LIBDIR
25375 $PKGCONFIG --exists mit-krb5-gssapi >/dev/null 2>&1 && echo 1`
25377 if test -z "$itexists"; then
25379 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25380 printf "%s\n" "no" >&6; }
25382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25383 printf "%s\n" "found" >&6; }
25388 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
25389 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
25390 LIBS="$gss_libs $LIBS"
25391 elif test "$PKGCONFIG" != "no" ; then
25392 gss_libs=`$PKGCONFIG --libs mit-krb5-gssapi`
25393 LIBS="$gss_libs $LIBS"
25394 elif test -f "$KRB5CONFIG"; then
25395 gss_libs=`$KRB5CONFIG --libs gssapi`
25396 LIBS="$gss_libs $LIBS"
25403 gss_libname="gssapi"
25407 if test "$GSSAPI_ROOT" != "yes"; then
25408 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
25409 LIBS="-l$gss_libname $LIBS"
25411 LIBS="-l$gss_libname $LIBS"
25417 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
25423 LIBS="-lgssapi $LIBS"
25428 CPPFLAGS="$save_CPPFLAGS"
25431 if test x"$want_gss" = xyes; then
25432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if we can link against GSS-API library" >&5
25433 printf %s "checking if we can link against GSS-API library... " >&6; }
25434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25435 /* end confdefs.h. */
25438 #define gss_init_sec_context innocuous_gss_init_sec_context
25440 # include <limits.h>
25442 # include <assert.h>
25444 #undef gss_init_sec_context
25448 char gss_init_sec_context ();
25449 #if defined __stub_gss_init_sec_context || defined __stub___gss_init_sec_context
25455 return gss_init_sec_context ();
25461 if ac_fn_c_try_link "$LINENO"
25464 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25465 printf "%s\n" "yes" >&6; }
25469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25470 printf "%s\n" "no" >&6; }
25471 as_fn_error $? "--with-gssapi was specified, but a GSS-API library was not found." "$LINENO" 5
25474 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25475 conftest$ac_exeext conftest.$ac_ext
25478 build_libstubgss=no
25479 if test x"$want_gss" = "xyes"; then
25480 build_libstubgss=yes
25483 if test "x$build_libstubgss" = "xyes"; then
25484 BUILD_STUB_GSS_TRUE=
25485 BUILD_STUB_GSS_FALSE='#'
25487 BUILD_STUB_GSS_TRUE='#'
25488 BUILD_STUB_GSS_FALSE=
25493 DEFAULT_SSL_BACKEND=no
25494 VALID_DEFAULT_SSL_BACKEND=
25496 # Check whether --with-default-ssl-backend was given.
25497 if test ${with_default_ssl_backend+y}
25499 withval=$with_default_ssl_backend; DEFAULT_SSL_BACKEND=$withval
25502 case "$DEFAULT_SSL_BACKEND" in
25506 as_fn_error $? "The name of the default SSL backend is required." "$LINENO" 5
25510 VALID_DEFAULT_SSL_BACKEND=no
25515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS" >&5
25516 printf %s "checking whether to enable Windows native SSL/TLS... " >&6; }
25517 if test "x$OPT_SCHANNEL" != xno; then
25519 if test "x$OPT_SCHANNEL" != "xno" &&
25520 test "x$curl_cv_native_windows" = "xyes"; then
25521 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25522 printf "%s\n" "yes" >&6; }
25524 printf "%s\n" "#define USE_SCHANNEL 1" >>confdefs.h
25529 test schannel != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25531 # --with-schannel implies --enable-sspi
25533 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
25537 curl_sspi_msg="enabled"
25539 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25540 printf "%s\n" "no" >&6; }
25542 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25544 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25545 printf "%s\n" "no" >&6; }
25549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Secure Transport" >&5
25550 printf %s "checking whether to enable Secure Transport... " >&6; }
25551 if test "x$OPT_SECURETRANSPORT" != xno; then
25552 if test "x$OPT_SECURETRANSPORT" != "xno" &&
25553 (test "x$cross_compiling" != "xno" || test -d "/System/Library/Frameworks/Security.framework"); then
25554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25555 printf "%s\n" "yes" >&6; }
25557 printf "%s\n" "#define USE_SECTRANSP 1" >>confdefs.h
25561 ssl_msg="Secure Transport"
25562 test secure-transport != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25563 SECURETRANSPORT_ENABLED=1
25564 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
25566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25567 printf "%s\n" "no" >&6; }
25569 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25572 printf "%s\n" "no" >&6; }
25577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Amiga native SSL/TLS (AmiSSL v5)" >&5
25578 printf %s "checking whether to enable Amiga native SSL/TLS (AmiSSL v5)... " >&6; }
25579 if test "$HAVE_PROTO_BSDSOCKET_H" = "1"; then
25580 if test "x$OPT_AMISSL" != xno; then
25582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25583 /* end confdefs.h. */
25586 #include <libraries/amisslmaster.h>
25587 #include <openssl/opensslv.h>
25592 #if defined(AMISSL_CURRENT_VERSION) && (AMISSL_CURRENT_VERSION >= AMISSL_V303) && \
25593 defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3) && \
25594 defined(PROTO_AMISSL_H)
25597 #error not AmiSSL v5 / OpenSSL 3
25605 if ac_fn_c_try_compile "$LINENO"
25608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25609 printf "%s\n" "yes" >&6; }
25611 test amissl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
25614 # Use AmiSSL's built-in ca bundle
25615 check_for_ca_bundle=1
25616 with_ca_fallback=yes
25617 LIBS="-lamisslstubs -lamisslauto $LIBS"
25619 printf "%s\n" "#define USE_AMISSL 1" >>confdefs.h
25622 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
25625 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
25627 ac_fn_c_check_header_compile "$LINENO" "openssl/x509.h" "ac_cv_header_openssl_x509_h" "$ac_includes_default"
25628 if test "x$ac_cv_header_openssl_x509_h" = xyes
25630 printf "%s\n" "#define HAVE_OPENSSL_X509_H 1" >>confdefs.h
25633 ac_fn_c_check_header_compile "$LINENO" "openssl/rsa.h" "ac_cv_header_openssl_rsa_h" "$ac_includes_default"
25634 if test "x$ac_cv_header_openssl_rsa_h" = xyes
25636 printf "%s\n" "#define HAVE_OPENSSL_RSA_H 1" >>confdefs.h
25639 ac_fn_c_check_header_compile "$LINENO" "openssl/crypto.h" "ac_cv_header_openssl_crypto_h" "$ac_includes_default"
25640 if test "x$ac_cv_header_openssl_crypto_h" = xyes
25642 printf "%s\n" "#define HAVE_OPENSSL_CRYPTO_H 1" >>confdefs.h
25645 ac_fn_c_check_header_compile "$LINENO" "openssl/pem.h" "ac_cv_header_openssl_pem_h" "$ac_includes_default"
25646 if test "x$ac_cv_header_openssl_pem_h" = xyes
25648 printf "%s\n" "#define HAVE_OPENSSL_PEM_H 1" >>confdefs.h
25651 ac_fn_c_check_header_compile "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
25652 if test "x$ac_cv_header_openssl_ssl_h" = xyes
25654 printf "%s\n" "#define HAVE_OPENSSL_SSL_H 1" >>confdefs.h
25657 ac_fn_c_check_header_compile "$LINENO" "openssl/err.h" "ac_cv_header_openssl_err_h" "$ac_includes_default"
25658 if test "x$ac_cv_header_openssl_err_h" = xyes
25660 printf "%s\n" "#define HAVE_OPENSSL_ERR_H 1" >>confdefs.h
25664 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
25668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25669 printf "%s\n" "no" >&6; }
25672 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
25673 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
25675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25676 printf "%s\n" "no" >&6; }
25679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25680 printf "%s\n" "no" >&6; }
25685 if test "x$OPT_OPENSSL" != xno; then
25688 CLEANLDFLAGS="$LDFLAGS"
25689 CLEANCPPFLAGS="$CPPFLAGS"
25693 *-*-msys* | *-*-mingw*)
25694 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
25695 printf %s "checking for gdi32... " >&6; }
25696 my_ac_save_LIBS=$LIBS
25697 LIBS="-lgdi32 $LIBS"
25698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699 /* end confdefs.h. */
25701 #include <windef.h>
25702 #include <wingdi.h>
25713 if ac_fn_c_try_link "$LINENO"
25715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25716 printf "%s\n" "yes" >&6; }
25718 LIBS=$my_ac_save_LIBS
25719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25720 printf "%s\n" "no" >&6; }
25723 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25724 conftest$ac_exeext conftest.$ac_ext
25728 case "$OPT_OPENSSL" in
25735 PREFIX_OPENSSL=$OPT_OPENSSL
25737 OPENSSL_PCDIR="$OPT_OPENSSL/lib/pkgconfig"
25738 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
25739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
25740 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
25744 if test "$PKGTEST" != "yes"; then
25745 # try lib64 instead
25746 OPENSSL_PCDIR="$OPT_OPENSSL/lib64/pkgconfig"
25747 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
25748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
25749 printf "%s\n" "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
25754 if test "$PKGTEST" != "yes"; then
25755 if test ! -f "$PREFIX_OPENSSL/include/openssl/ssl.h"; then
25756 as_fn_error $? "$PREFIX_OPENSSL is a bad --with-openssl prefix!" "$LINENO" 5
25760 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
25761 if test "$PREFIX_OPENSSL" != "/usr" ; then
25762 SSL_LDFLAGS="-L$LIB_OPENSSL"
25763 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
25765 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
25769 if test "$PKGTEST" = "yes"; then
25772 if test -n "$PKG_CONFIG"; then
25773 PKGCONFIG="$PKG_CONFIG"
25775 if test -n "$ac_tool_prefix"; then
25776 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25777 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25779 printf %s "checking for $ac_word... " >&6; }
25780 if test ${ac_cv_path_PKGCONFIG+y}
25782 printf %s "(cached) " >&6
25786 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25790 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25791 for as_dir in $as_dummy
25794 case $as_dir in #(((
25797 *) as_dir=$as_dir/ ;;
25799 for ac_exec_ext in '' $ac_executable_extensions; do
25800 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25801 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25802 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25812 PKGCONFIG=$ac_cv_path_PKGCONFIG
25813 if test -n "$PKGCONFIG"; then
25814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25815 printf "%s\n" "$PKGCONFIG" >&6; }
25817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25818 printf "%s\n" "no" >&6; }
25823 if test -z "$ac_cv_path_PKGCONFIG"; then
25824 ac_pt_PKGCONFIG=$PKGCONFIG
25825 # Extract the first word of "pkg-config", so it can be a program name with args.
25826 set dummy pkg-config; ac_word=$2
25827 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25828 printf %s "checking for $ac_word... " >&6; }
25829 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
25831 printf %s "(cached) " >&6
25833 case $ac_pt_PKGCONFIG in
25835 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25839 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25840 for as_dir in $as_dummy
25843 case $as_dir in #(((
25846 *) as_dir=$as_dir/ ;;
25848 for ac_exec_ext in '' $ac_executable_extensions; do
25849 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
25850 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
25851 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
25861 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25862 if test -n "$ac_pt_PKGCONFIG"; then
25863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25864 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
25866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25867 printf "%s\n" "no" >&6; }
25870 if test "x$ac_pt_PKGCONFIG" = x; then
25873 case $cross_compiling:$ac_tool_warned in
25875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25876 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25877 ac_tool_warned=yes ;;
25879 PKGCONFIG=$ac_pt_PKGCONFIG
25882 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25887 if test "x$PKGCONFIG" != "xno"; then
25888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
25889 printf %s "checking for openssl options with pkg-config... " >&6; }
25891 if test -n "$OPENSSL_PCDIR"; then
25892 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25893 export PKG_CONFIG_LIBDIR
25895 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
25897 if test -z "$itexists"; then
25899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
25900 printf "%s\n" "no" >&6; }
25902 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
25903 printf "%s\n" "found" >&6; }
25908 if test "$PKGCONFIG" != "no" ; then
25910 if test -n "$OPENSSL_PCDIR"; then
25911 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25912 export PKG_CONFIG_LIBDIR
25914 $PKGCONFIG --libs-only-l --libs-only-other openssl 2>/dev/null`
25917 if test -n "$OPENSSL_PCDIR"; then
25918 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25919 export PKG_CONFIG_LIBDIR
25921 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
25924 if test -n "$OPENSSL_PCDIR"; then
25925 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
25926 export PKG_CONFIG_LIBDIR
25928 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
25931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
25932 printf "%s\n" "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
25933 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
25934 printf "%s\n" "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
25935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
25936 printf "%s\n" "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
25938 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/^-L//'`
25940 LIBS="$SSL_LIBS $LIBS"
25944 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
25945 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
25947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Update in -lcrypto" >&5
25948 printf %s "checking for HMAC_Update in -lcrypto... " >&6; }
25949 if test ${ac_cv_lib_crypto_HMAC_Update+y}
25951 printf %s "(cached) " >&6
25953 ac_check_lib_save_LIBS=$LIBS
25954 LIBS="-lcrypto $LIBS"
25955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25956 /* end confdefs.h. */
25962 char HMAC_Update ();
25965 return HMAC_Update ();
25970 if ac_fn_c_try_link "$LINENO"
25972 ac_cv_lib_crypto_HMAC_Update=yes
25974 ac_cv_lib_crypto_HMAC_Update=no
25976 rm -f core conftest.err conftest.$ac_objext conftest.beam \
25977 conftest$ac_exeext conftest.$ac_ext
25978 LIBS=$ac_check_lib_save_LIBS
25980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Update" >&5
25981 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Update" >&6; }
25982 if test "x$ac_cv_lib_crypto_HMAC_Update" = xyes
25986 LIBS="-lcrypto $LIBS"
25990 if test -n "$LIB_OPENSSL" ; then
25991 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
25993 if test "$PKGCONFIG" = "no" -a -n "$PREFIX_OPENSSL" ; then
25994 # only set this if pkg-config wasn't used
25995 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
25997 # Linking previously failed, try extra paths from --with-openssl or
25998 # pkg-config. Use a different function name to avoid reusing the earlier
26000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for HMAC_Init_ex in -lcrypto" >&5
26001 printf %s "checking for HMAC_Init_ex in -lcrypto... " >&6; }
26002 if test ${ac_cv_lib_crypto_HMAC_Init_ex+y}
26004 printf %s "(cached) " >&6
26006 ac_check_lib_save_LIBS=$LIBS
26007 LIBS="-lcrypto $LIBS"
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h. */
26015 char HMAC_Init_ex ();
26018 return HMAC_Init_ex ();
26023 if ac_fn_c_try_link "$LINENO"
26025 ac_cv_lib_crypto_HMAC_Init_ex=yes
26027 ac_cv_lib_crypto_HMAC_Init_ex=no
26029 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26030 conftest$ac_exeext conftest.$ac_ext
26031 LIBS=$ac_check_lib_save_LIBS
26033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_HMAC_Init_ex" >&5
26034 printf "%s\n" "$ac_cv_lib_crypto_HMAC_Init_ex" >&6; }
26035 if test "x$ac_cv_lib_crypto_HMAC_Init_ex" = xyes
26039 LIBS="-lcrypto $LIBS"
26043 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl" >&5
26044 printf %s "checking OpenSSL linking with -ldl... " >&6; }
26045 LIBS="-lcrypto $CLEANLIBS -ldl"
26046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26047 /* end confdefs.h. */
26049 #include <openssl/err.h>
26060 if ac_fn_c_try_link "$LINENO"
26063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26064 printf "%s\n" "yes" >&6; }
26069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26070 printf "%s\n" "no" >&6; }
26072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking OpenSSL linking with -ldl and -lpthread" >&5
26073 printf %s "checking OpenSSL linking with -ldl and -lpthread... " >&6; }
26074 LIBS="-lcrypto $CLEANLIBS -ldl -lpthread"
26075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26076 /* end confdefs.h. */
26079 #include <openssl/err.h>
26090 if ac_fn_c_try_link "$LINENO"
26093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26094 printf "%s\n" "yes" >&6; }
26099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26100 printf "%s\n" "no" >&6; }
26101 LDFLAGS="$CLEANLDFLAGS"
26102 CPPFLAGS="$CLEANCPPFLAGS"
26107 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26108 conftest$ac_exeext conftest.$ac_ext
26112 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26113 conftest$ac_exeext conftest.$ac_ext
26122 if test X"$HAVECRYPTO" = X"yes"; then
26124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26125 printf %s "checking for SSL_connect in -lssl... " >&6; }
26126 if test ${ac_cv_lib_ssl_SSL_connect+y}
26128 printf %s "(cached) " >&6
26130 ac_check_lib_save_LIBS=$LIBS
26132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26133 /* end confdefs.h. */
26139 char SSL_connect ();
26142 return SSL_connect ();
26147 if ac_fn_c_try_link "$LINENO"
26149 ac_cv_lib_ssl_SSL_connect=yes
26151 ac_cv_lib_ssl_SSL_connect=no
26153 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26154 conftest$ac_exeext conftest.$ac_ext
26155 LIBS=$ac_check_lib_save_LIBS
26157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26158 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26159 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26161 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26168 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
26170 printf %s "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
26172 LIBS="-lRSAglue -lrsaref $LIBS"
26173 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
26174 printf %s "checking for SSL_connect in -lssl... " >&6; }
26175 if test ${ac_cv_lib_ssl_SSL_connect+y}
26177 printf %s "(cached) " >&6
26179 ac_check_lib_save_LIBS=$LIBS
26181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26182 /* end confdefs.h. */
26188 char SSL_connect ();
26191 return SSL_connect ();
26196 if ac_fn_c_try_link "$LINENO"
26198 ac_cv_lib_ssl_SSL_connect=yes
26200 ac_cv_lib_ssl_SSL_connect=no
26202 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26203 conftest$ac_exeext conftest.$ac_ext
26204 LIBS=$ac_check_lib_save_LIBS
26206 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
26207 printf "%s\n" "$ac_cv_lib_ssl_SSL_connect" >&6; }
26208 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes
26210 printf "%s\n" "#define HAVE_LIBSSL 1" >>confdefs.h
26216 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
26217 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26218 printf "%s\n" "no" >&6; }
26221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26222 printf "%s\n" "yes" >&6; }
26227 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h openssl/pem.h openssl/ssl.h openssl/err.h
26229 as_ac_Header=`printf "%s\n" "ac_cv_header_$ac_header" | $as_tr_sh`
26230 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26231 if eval test \"x\$"$as_ac_Header"\" = x"yes"
26233 cat >>confdefs.h <<_ACEOF
26234 #define `printf "%s\n" "HAVE_$ac_header" | $as_tr_cpp` 1
26237 test openssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26240 printf "%s\n" "#define USE_OPENSSL 1" >>confdefs.h
26246 if test $ac_cv_header_openssl_x509_h = no; then
26247 ac_fn_c_check_header_compile "$LINENO" "x509.h" "ac_cv_header_x509_h" "$ac_includes_default"
26248 if test "x$ac_cv_header_x509_h" = xyes
26250 printf "%s\n" "#define HAVE_X509_H 1" >>confdefs.h
26253 ac_fn_c_check_header_compile "$LINENO" "rsa.h" "ac_cv_header_rsa_h" "$ac_includes_default"
26254 if test "x$ac_cv_header_rsa_h" = xyes
26256 printf "%s\n" "#define HAVE_RSA_H 1" >>confdefs.h
26259 ac_fn_c_check_header_compile "$LINENO" "crypto.h" "ac_cv_header_crypto_h" "$ac_includes_default"
26260 if test "x$ac_cv_header_crypto_h" = xyes
26262 printf "%s\n" "#define HAVE_CRYPTO_H 1" >>confdefs.h
26265 ac_fn_c_check_header_compile "$LINENO" "pem.h" "ac_cv_header_pem_h" "$ac_includes_default"
26266 if test "x$ac_cv_header_pem_h" = xyes
26268 printf "%s\n" "#define HAVE_PEM_H 1" >>confdefs.h
26271 ac_fn_c_check_header_compile "$LINENO" "ssl.h" "ac_cv_header_ssl_h" "$ac_includes_default"
26272 if test "x$ac_cv_header_ssl_h" = xyes
26274 printf "%s\n" "#define HAVE_SSL_H 1" >>confdefs.h
26277 ac_fn_c_check_header_compile "$LINENO" "err.h" "ac_cv_header_err_h" "$ac_includes_default"
26278 if test "x$ac_cv_header_err_h" = xyes
26280 printf "%s\n" "#define HAVE_ERR_H 1" >>confdefs.h
26285 if test $ac_cv_header_x509_h = yes &&
26286 test $ac_cv_header_crypto_h = yes &&
26287 test $ac_cv_header_ssl_h = yes; then
26294 if test X"$OPENSSL_ENABLED" != X"1"; then
26298 if test X"$OPT_OPENSSL" != Xoff &&
26299 test "$OPENSSL_ENABLED" != "1"; then
26300 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
26304 if test X"$OPENSSL_ENABLED" = X"1"; then
26306 ac_fn_c_check_func "$LINENO" "RAND_egd" "ac_cv_func_RAND_egd"
26307 if test "x$ac_cv_func_RAND_egd" = xyes
26309 printf "%s\n" "#define HAVE_RAND_EGD 1" >>confdefs.h
26314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for BoringSSL" >&5
26315 printf %s "checking for BoringSSL... " >&6; }
26316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317 /* end confdefs.h. */
26320 #include <openssl/base.h>
26325 #ifndef OPENSSL_IS_BORINGSSL
26326 #error not boringssl
26334 if ac_fn_c_try_compile "$LINENO"
26337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26338 printf "%s\n" "yes" >&6; }
26340 printf "%s\n" "#define HAVE_BORINGSSL 1" >>confdefs.h
26342 ssl_msg="BoringSSL"
26346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26347 printf "%s\n" "no" >&6; }
26350 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26352 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libressl" >&5
26353 printf %s "checking for libressl... " >&6; }
26354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26355 /* end confdefs.h. */
26358 #include <openssl/opensslv.h>
26363 int dummy = LIBRESSL_VERSION_NUMBER;
26370 if ac_fn_c_try_compile "$LINENO"
26373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26374 printf "%s\n" "yes" >&6; }
26376 printf "%s\n" "#define HAVE_LIBRESSL 1" >>confdefs.h
26382 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26383 printf "%s\n" "no" >&6; }
26386 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26388 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for OpenSSL >= v3" >&5
26389 printf %s "checking for OpenSSL >= v3... " >&6; }
26390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26391 /* end confdefs.h. */
26394 #include <openssl/opensslv.h>
26399 #if defined(OPENSSL_VERSION_MAJOR) && (OPENSSL_VERSION_MAJOR >= 3)
26402 #error older than 3
26410 if ac_fn_c_try_compile "$LINENO"
26413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26414 printf "%s\n" "yes" >&6; }
26416 printf "%s\n" "#define HAVE_OPENSSL3 1" >>confdefs.h
26418 CPPFLAGS="$CPPFLAGS -DOPENSSL_SUPPRESS_DEPRECATED"
26419 ssl_msg="OpenSSL v3+"
26423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26424 printf "%s\n" "no" >&6; }
26427 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
26430 if test "$OPENSSL_ENABLED" = "1"; then
26431 if test -n "$LIB_OPENSSL"; then
26432 if test "x$cross_compiling" != "xyes"; then
26433 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$LIB_OPENSSL"
26434 export CURL_LIBRARY_PATH
26435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&5
26436 printf "%s\n" "$as_me: Added $LIB_OPENSSL to CURL_LIBRARY_PATH" >&6;}
26439 check_for_ca_bundle=1
26442 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26445 if test X"$OPT_OPENSSL" != Xno &&
26446 test "$OPENSSL_ENABLED" != "1"; then
26447 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPT_OPENSSL: $OPT_OPENSSL" >&5
26448 printf "%s\n" "$as_me: OPT_OPENSSL: $OPT_OPENSSL" >&6;}
26449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&5
26450 printf "%s\n" "$as_me: OPENSSL_ENABLED: $OPENSSL_ENABLED" >&6;}
26451 as_fn_error $? "--with-openssl was given but OpenSSL could not be detected" "$LINENO" 5
26455 if test X"$OPENSSL_ENABLED" = X"1"; then
26457 # Check whether --with-egd-socket was given.
26458 if test ${with_egd_socket+y}
26460 withval=$with_egd_socket; EGD_SOCKET="$withval"
26464 if test -n "$EGD_SOCKET" ; then
26466 printf "%s\n" "#define EGD_SOCKET \"$EGD_SOCKET\"" >>confdefs.h
26471 # Check whether --with-random was given.
26472 if test ${with_random+y}
26474 withval=$with_random; RANDOM_FILE="$withval"
26477 if test x$cross_compiling != xyes; then
26478 as_ac_File=`printf "%s\n" "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
26479 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
26480 printf %s "checking for \"/dev/urandom\"... " >&6; }
26481 if eval test \${$as_ac_File+y}
26483 printf %s "(cached) " >&6
26485 test "$cross_compiling" = yes &&
26486 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
26487 if test -r ""/dev/urandom""; then
26488 eval "$as_ac_File=yes"
26490 eval "$as_ac_File=no"
26493 eval ac_res=\$$as_ac_File
26494 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
26495 printf "%s\n" "$ac_res" >&6; }
26496 if eval test \"x\$"$as_ac_File"\" = x"yes"
26498 RANDOM_FILE="/dev/urandom"
26502 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
26503 printf "%s\n" "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
26509 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
26512 printf "%s\n" "#define RANDOM_FILE \"$RANDOM_FILE\"" >>confdefs.h
26517 if test "$OPENSSL_ENABLED" = "1"; then
26518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SRP support in OpenSSL" >&5
26519 printf %s "checking for SRP support in OpenSSL... " >&6; }
26520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26521 /* end confdefs.h. */
26524 #include <openssl/ssl.h>
26529 SSL_CTX_set_srp_username(NULL, "");
26530 SSL_CTX_set_srp_password(NULL, "");
26537 if ac_fn_c_try_link "$LINENO"
26540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26541 printf "%s\n" "yes" >&6; }
26543 printf "%s\n" "#define HAVE_OPENSSL_SRP 1" >>confdefs.h
26550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26551 printf "%s\n" "no" >&6; }
26554 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26555 conftest$ac_exeext conftest.$ac_ext
26558 if test X"$OPENSSL_ENABLED" = X"1"; then
26559 # Check whether --enable-openssl-auto-load-config was given.
26560 if test ${enable_openssl_auto_load_config+y}
26562 enableval=$enable_openssl_auto_load_config; if test X"$enableval" = X"no"; then
26563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: automatic loading of OpenSSL configuration disabled" >&5
26564 printf "%s\n" "$as_me: automatic loading of OpenSSL configuration disabled" >&6;}
26566 printf "%s\n" "#define CURL_DISABLE_OPENSSL_AUTO_LOAD_CONFIG 1" >>confdefs.h
26576 if test "x$OPT_GNUTLS" != xno; then
26579 if test X"$OPT_GNUTLS" != Xno; then
26587 if test "x$OPT_GNUTLS" = "xyes"; then
26589 if test -n "$PKG_CONFIG"; then
26590 PKGCONFIG="$PKG_CONFIG"
26592 if test -n "$ac_tool_prefix"; then
26593 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
26594 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
26595 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26596 printf %s "checking for $ac_word... " >&6; }
26597 if test ${ac_cv_path_PKGCONFIG+y}
26599 printf %s "(cached) " >&6
26603 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
26606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26607 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26608 for as_dir in $as_dummy
26611 case $as_dir in #(((
26614 *) as_dir=$as_dir/ ;;
26616 for ac_exec_ext in '' $ac_executable_extensions; do
26617 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26618 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26619 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26629 PKGCONFIG=$ac_cv_path_PKGCONFIG
26630 if test -n "$PKGCONFIG"; then
26631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
26632 printf "%s\n" "$PKGCONFIG" >&6; }
26634 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26635 printf "%s\n" "no" >&6; }
26640 if test -z "$ac_cv_path_PKGCONFIG"; then
26641 ac_pt_PKGCONFIG=$PKGCONFIG
26642 # Extract the first word of "pkg-config", so it can be a program name with args.
26643 set dummy pkg-config; ac_word=$2
26644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
26645 printf %s "checking for $ac_word... " >&6; }
26646 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
26648 printf %s "(cached) " >&6
26650 case $ac_pt_PKGCONFIG in
26652 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
26655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26656 as_dummy="$PATH:/usr/bin:/usr/local/bin"
26657 for as_dir in $as_dummy
26660 case $as_dir in #(((
26663 *) as_dir=$as_dir/ ;;
26665 for ac_exec_ext in '' $ac_executable_extensions; do
26666 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
26667 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
26668 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
26678 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
26679 if test -n "$ac_pt_PKGCONFIG"; then
26680 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
26681 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
26683 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26684 printf "%s\n" "no" >&6; }
26687 if test "x$ac_pt_PKGCONFIG" = x; then
26690 case $cross_compiling:$ac_tool_warned in
26692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
26693 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26694 ac_tool_warned=yes ;;
26696 PKGCONFIG=$ac_pt_PKGCONFIG
26699 PKGCONFIG="$ac_cv_path_PKGCONFIG"
26704 if test "x$PKGCONFIG" != "xno"; then
26705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
26706 printf %s "checking for gnutls options with pkg-config... " >&6; }
26708 if test -n ""; then
26709 PKG_CONFIG_LIBDIR=""
26710 export PKG_CONFIG_LIBDIR
26712 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
26714 if test -z "$itexists"; then
26716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
26717 printf "%s\n" "no" >&6; }
26719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
26720 printf "%s\n" "found" >&6; }
26725 if test "$PKGCONFIG" != "no" ; then
26726 addlib=`$PKGCONFIG --libs-only-l gnutls`
26727 addld=`$PKGCONFIG --libs-only-L gnutls`
26728 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
26729 version=`$PKGCONFIG --modversion gnutls`
26730 gtlslib=`echo $addld | $SED -e 's/^-L//'`
26732 check=`libgnutls-config --version 2>/dev/null`
26733 if test -n "$check"; then
26734 addlib=`libgnutls-config --libs`
26735 addcflags=`libgnutls-config --cflags`
26736 version=`libgnutls-config --version`
26737 gtlslib=`libgnutls-config --prefix`/lib$libsuff
26741 cfg=$OPT_GNUTLS/bin/libgnutls-config
26742 check=`$cfg --version 2>/dev/null`
26743 if test -n "$check"; then
26744 addlib=`$cfg --libs`
26745 addcflags=`$cfg --cflags`
26746 version=`$cfg --version`
26747 gtlslib=`$cfg --prefix`/lib$libsuff
26750 addld=-L$OPT_GNUTLS/lib$libsuff
26751 addcflags=-I$OPT_GNUTLS/include
26752 version="" # we just don't know
26753 gtlslib=$OPT_GNUTLS/lib$libsuff
26757 if test -z "$version"; then
26761 if test -n "$addlib"; then
26764 CLEANCPPFLAGS="$CPPFLAGS"
26765 CLEANLDFLAGS="$LDFLAGS"
26767 LIBS="$addlib $LIBS"
26768 LDFLAGS="$LDFLAGS $addld"
26769 if test "$addcflags" != "-I/usr/include"; then
26770 CPPFLAGS="$CPPFLAGS $addcflags"
26773 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_x509_crt_get_dn2 in -lgnutls" >&5
26774 printf %s "checking for gnutls_x509_crt_get_dn2 in -lgnutls... " >&6; }
26775 if test ${ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2+y}
26777 printf %s "(cached) " >&6
26779 ac_check_lib_save_LIBS=$LIBS
26780 LIBS="-lgnutls $LIBS"
26781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26782 /* end confdefs.h. */
26788 char gnutls_x509_crt_get_dn2 ();
26791 return gnutls_x509_crt_get_dn2 ();
26796 if ac_fn_c_try_link "$LINENO"
26798 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=yes
26800 ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2=no
26802 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26803 conftest$ac_exeext conftest.$ac_ext
26804 LIBS=$ac_check_lib_save_LIBS
26806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&5
26807 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" >&6; }
26808 if test "x$ac_cv_lib_gnutls_gnutls_x509_crt_get_dn2" = xyes
26812 printf "%s\n" "#define USE_GNUTLS 1" >>confdefs.h
26819 test gnutls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
26824 CPPFLAGS="$CLEANCPPFLAGS"
26829 if test "x$USE_GNUTLS" = "xyes"; then
26830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
26831 printf "%s\n" "$as_me: detected GnuTLS version $version" >&6;}
26832 check_for_ca_bundle=1
26833 if test -n "$gtlslib"; then
26834 if test "x$cross_compiling" != "xyes"; then
26835 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$gtlslib"
26836 export CURL_LIBRARY_PATH
26837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $gtlslib to CURL_LIBRARY_PATH" >&5
26838 printf "%s\n" "$as_me: Added $gtlslib to CURL_LIBRARY_PATH" >&6;}
26846 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
26850 if test "$GNUTLS_ENABLED" = "1"; then
26852 # First check if we can detect either crypto library via transitive linking
26853 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
26854 printf %s "checking for nettle_MD5Init in -lgnutls... " >&6; }
26855 if test ${ac_cv_lib_gnutls_nettle_MD5Init+y}
26857 printf %s "(cached) " >&6
26859 ac_check_lib_save_LIBS=$LIBS
26860 LIBS="-lgnutls $LIBS"
26861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26862 /* end confdefs.h. */
26868 char nettle_MD5Init ();
26871 return nettle_MD5Init ();
26876 if ac_fn_c_try_link "$LINENO"
26878 ac_cv_lib_gnutls_nettle_MD5Init=yes
26880 ac_cv_lib_gnutls_nettle_MD5Init=no
26882 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26883 conftest$ac_exeext conftest.$ac_ext
26884 LIBS=$ac_check_lib_save_LIBS
26886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
26887 printf "%s\n" "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
26888 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes
26890 USE_GNUTLS_NETTLE=1
26894 # If not, try linking directly to both of them to see if they are available
26895 if test "$USE_GNUTLS_NETTLE" = ""; then
26896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
26897 printf %s "checking for nettle_MD5Init in -lnettle... " >&6; }
26898 if test ${ac_cv_lib_nettle_nettle_MD5Init+y}
26900 printf %s "(cached) " >&6
26902 ac_check_lib_save_LIBS=$LIBS
26903 LIBS="-lnettle $LIBS"
26904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26905 /* end confdefs.h. */
26911 char nettle_MD5Init ();
26914 return nettle_MD5Init ();
26919 if ac_fn_c_try_link "$LINENO"
26921 ac_cv_lib_nettle_nettle_MD5Init=yes
26923 ac_cv_lib_nettle_nettle_MD5Init=no
26925 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26926 conftest$ac_exeext conftest.$ac_ext
26927 LIBS=$ac_check_lib_save_LIBS
26929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
26930 printf "%s\n" "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
26931 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes
26933 USE_GNUTLS_NETTLE=1
26937 if test "$USE_GNUTLS_NETTLE" = ""; then
26938 as_fn_error $? "GnuTLS found, but nettle was not found" "$LINENO" 5
26940 LIBS="-lnettle $LIBS"
26943 if test "$GNUTLS_ENABLED" = "1"; then
26944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
26945 printf %s "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
26946 if test ${ac_cv_lib_gnutls_gnutls_srp_verifier+y}
26948 printf %s "(cached) " >&6
26950 ac_check_lib_save_LIBS=$LIBS
26951 LIBS="-lgnutls $LIBS"
26952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26953 /* end confdefs.h. */
26959 char gnutls_srp_verifier ();
26962 return gnutls_srp_verifier ();
26967 if ac_fn_c_try_link "$LINENO"
26969 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
26971 ac_cv_lib_gnutls_gnutls_srp_verifier=no
26973 rm -f core conftest.err conftest.$ac_objext conftest.beam \
26974 conftest$ac_exeext conftest.$ac_ext
26975 LIBS=$ac_check_lib_save_LIBS
26977 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
26978 printf "%s\n" "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
26979 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes
26983 printf "%s\n" "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
26995 if test "x$OPT_MBEDTLS" != xno; then
26996 _cppflags=$CPPFLAGS
27000 if test X"$OPT_MBEDTLS" != Xno; then
27002 if test "$OPT_MBEDTLS" = "yes"; then
27006 if test -z "$OPT_MBEDTLS" ; then
27008 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_havege_init in -lmbedtls" >&5
27009 printf %s "checking for mbedtls_havege_init in -lmbedtls... " >&6; }
27010 if test ${ac_cv_lib_mbedtls_mbedtls_havege_init+y}
27012 printf %s "(cached) " >&6
27014 ac_check_lib_save_LIBS=$LIBS
27015 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27017 /* end confdefs.h. */
27023 char mbedtls_havege_init ();
27026 return mbedtls_havege_init ();
27031 if ac_fn_c_try_link "$LINENO"
27033 ac_cv_lib_mbedtls_mbedtls_havege_init=yes
27035 ac_cv_lib_mbedtls_mbedtls_havege_init=no
27037 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27038 conftest$ac_exeext conftest.$ac_ext
27039 LIBS=$ac_check_lib_save_LIBS
27041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_havege_init" >&5
27042 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_havege_init" >&6; }
27043 if test "x$ac_cv_lib_mbedtls_mbedtls_havege_init" = xyes
27047 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27054 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27065 if test "x$USE_MBEDTLS" != "xyes"; then
27066 addld=-L$OPT_MBEDTLS/lib$libsuff
27067 addcflags=-I$OPT_MBEDTLS/include
27068 mbedtlslib=$OPT_MBEDTLS/lib$libsuff
27070 LDFLAGS="$LDFLAGS $addld"
27071 if test "$addcflags" != "-I/usr/include"; then
27072 CPPFLAGS="$CPPFLAGS $addcflags"
27075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for mbedtls_ssl_init in -lmbedtls" >&5
27076 printf %s "checking for mbedtls_ssl_init in -lmbedtls... " >&6; }
27077 if test ${ac_cv_lib_mbedtls_mbedtls_ssl_init+y}
27079 printf %s "(cached) " >&6
27081 ac_check_lib_save_LIBS=$LIBS
27082 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27084 /* end confdefs.h. */
27090 char mbedtls_ssl_init ();
27093 return mbedtls_ssl_init ();
27098 if ac_fn_c_try_link "$LINENO"
27100 ac_cv_lib_mbedtls_mbedtls_ssl_init=yes
27102 ac_cv_lib_mbedtls_mbedtls_ssl_init=no
27104 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27105 conftest$ac_exeext conftest.$ac_ext
27106 LIBS=$ac_check_lib_save_LIBS
27108 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mbedtls_mbedtls_ssl_init" >&5
27109 printf "%s\n" "$ac_cv_lib_mbedtls_mbedtls_ssl_init" >&6; }
27110 if test "x$ac_cv_lib_mbedtls_mbedtls_ssl_init" = xyes
27114 printf "%s\n" "#define USE_MBEDTLS 1" >>confdefs.h
27121 test mbedtls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27125 CPPFLAGS=$_cppflags
27132 if test "x$USE_MBEDTLS" = "xyes"; then
27133 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected mbedTLS" >&5
27134 printf "%s\n" "$as_me: detected mbedTLS" >&6;}
27135 check_for_ca_bundle=1
27137 LIBS="-lmbedtls -lmbedx509 -lmbedcrypto $LIBS"
27139 if test -n "$mbedtlslib"; then
27140 if test "x$cross_compiling" != "xyes"; then
27141 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$mbedtlslib"
27142 export CURL_LIBRARY_PATH
27143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $mbedtlslib to CURL_LIBRARY_PATH" >&5
27144 printf "%s\n" "$as_me: Added $mbedtlslib to CURL_LIBRARY_PATH" >&6;}
27150 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27156 case "$OPT_WOLFSSL" in
27161 wolfpkg="$withval/lib/pkgconfig"
27165 if test "x$OPT_WOLFSSL" != xno; then
27166 _cppflags=$CPPFLAGS
27171 if test X"$OPT_WOLFSSL" != Xno; then
27173 if test "$OPT_WOLFSSL" = "yes"; then
27178 if test -n "$PKG_CONFIG"; then
27179 PKGCONFIG="$PKG_CONFIG"
27181 if test -n "$ac_tool_prefix"; then
27182 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27183 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27184 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27185 printf %s "checking for $ac_word... " >&6; }
27186 if test ${ac_cv_path_PKGCONFIG+y}
27188 printf %s "(cached) " >&6
27192 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27196 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27197 for as_dir in $as_dummy
27200 case $as_dir in #(((
27203 *) as_dir=$as_dir/ ;;
27205 for ac_exec_ext in '' $ac_executable_extensions; do
27206 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27207 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27208 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27218 PKGCONFIG=$ac_cv_path_PKGCONFIG
27219 if test -n "$PKGCONFIG"; then
27220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27221 printf "%s\n" "$PKGCONFIG" >&6; }
27223 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27224 printf "%s\n" "no" >&6; }
27229 if test -z "$ac_cv_path_PKGCONFIG"; then
27230 ac_pt_PKGCONFIG=$PKGCONFIG
27231 # Extract the first word of "pkg-config", so it can be a program name with args.
27232 set dummy pkg-config; ac_word=$2
27233 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27234 printf %s "checking for $ac_word... " >&6; }
27235 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27237 printf %s "(cached) " >&6
27239 case $ac_pt_PKGCONFIG in
27241 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27245 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27246 for as_dir in $as_dummy
27249 case $as_dir in #(((
27252 *) as_dir=$as_dir/ ;;
27254 for ac_exec_ext in '' $ac_executable_extensions; do
27255 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27256 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27257 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27267 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27268 if test -n "$ac_pt_PKGCONFIG"; then
27269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27270 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27273 printf "%s\n" "no" >&6; }
27276 if test "x$ac_pt_PKGCONFIG" = x; then
27279 case $cross_compiling:$ac_tool_warned in
27281 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27282 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27283 ac_tool_warned=yes ;;
27285 PKGCONFIG=$ac_pt_PKGCONFIG
27288 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27293 if test "x$PKGCONFIG" != "xno"; then
27294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfssl options with pkg-config" >&5
27295 printf %s "checking for wolfssl options with pkg-config... " >&6; }
27297 if test -n "$wolfpkg"; then
27298 PKG_CONFIG_LIBDIR="$wolfpkg"
27299 export PKG_CONFIG_LIBDIR
27301 $PKGCONFIG --exists wolfssl >/dev/null 2>&1 && echo 1`
27303 if test -z "$itexists"; then
27305 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27306 printf "%s\n" "no" >&6; }
27308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27309 printf "%s\n" "found" >&6; }
27313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Check dir $wolfpkg" >&5
27314 printf "%s\n" "$as_me: Check dir $wolfpkg" >&6;}
27319 if test "$PKGCONFIG" != "no" ; then
27321 if test -n "$wolfpkg"; then
27322 PKG_CONFIG_LIBDIR="$wolfpkg"
27323 export PKG_CONFIG_LIBDIR
27326 $PKGCONFIG --libs-only-l wolfssl`
27328 if test -n "$wolfpkg"; then
27329 PKG_CONFIG_LIBDIR="$wolfpkg"
27330 export PKG_CONFIG_LIBDIR
27333 $PKGCONFIG --libs-only-L wolfssl`
27335 if test -n "$wolfpkg"; then
27336 PKG_CONFIG_LIBDIR="$wolfpkg"
27337 export PKG_CONFIG_LIBDIR
27340 $PKGCONFIG --cflags-only-I wolfssl`
27342 if test -n "$wolfpkg"; then
27343 PKG_CONFIG_LIBDIR="$wolfpkg"
27344 export PKG_CONFIG_LIBDIR
27347 $PKGCONFIG --modversion wolfssl`
27348 wolfssllibpath=`echo $addld | $SED -e 's/^-L//'`
27351 if test -n "$OPT_WOLFSSL"; then
27352 addld=-L$OPT_WOLFSSL/lib$libsuff
27353 addcflags=-I$OPT_WOLFSSL/include
27354 wolfssllibpath=$OPT_WOLFSSL/lib$libsuff
27358 if test "x$USE_WOLFSSL" != "xyes"; then
27360 LDFLAGS="$LDFLAGS $addld"
27361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addld to LDFLAGS" >&5
27362 printf "%s\n" "$as_me: Add $addld to LDFLAGS" >&6;}
27363 if test "$addcflags" != "-I/usr/include"; then
27364 CPPFLAGS="$CPPFLAGS $addcflags"
27365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addcflags to CPPFLAGS" >&5
27366 printf "%s\n" "$as_me: Add $addcflags to CPPFLAGS" >&6;}
27369 my_ac_save_LIBS="$LIBS"
27370 LIBS="$addlib $LIBS"
27371 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Add $addlib to LIBS" >&5
27372 printf "%s\n" "$as_me: Add $addlib to LIBS" >&6;}
27374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSL_Init in -lwolfssl" >&5
27375 printf %s "checking for wolfSSL_Init in -lwolfssl... " >&6; }
27376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27377 /* end confdefs.h. */
27380 /* These aren't needed for detection and confuse WolfSSL.
27381 They are set up properly later if it is detected. */
27383 #undef SIZEOF_LONG_LONG
27384 #include <wolfssl/options.h>
27385 #include <wolfssl/ssl.h>
27390 return wolfSSL_Init();
27397 if ac_fn_c_try_link "$LINENO"
27400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27401 printf "%s\n" "yes" >&6; }
27403 printf "%s\n" "#define USE_WOLFSSL 1" >>confdefs.h
27410 test wolfssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27414 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27415 printf "%s\n" "no" >&6; }
27416 CPPFLAGS=$_cppflags
27421 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27422 conftest$ac_exeext conftest.$ac_ext
27423 LIBS="$my_ac_save_LIBS"
27426 if test "x$USE_WOLFSSL" = "xyes"; then
27427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected wolfSSL" >&5
27428 printf "%s\n" "$as_me: detected wolfSSL" >&6;}
27429 check_for_ca_bundle=1
27433 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
27434 printf %s "checking size of long long... " >&6; }
27436 for typesize in 8 4 2 16 1; do
27437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27438 /* end confdefs.h. */
27440 #include <sys/types.h>
27447 case (sizeof(long long) == $typesize):;
27454 if ac_fn_c_try_compile "$LINENO"
27462 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
27463 if test $r -gt 0; then
27467 if test $r -eq 0; then
27468 as_fn_error $? "Failed to find size of long long" "$LINENO" 5
27470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
27471 printf "%s\n" "$r" >&6; }
27472 tname=$(echo "ac_cv_sizeof_long long" | tr A-Z a-z | tr " " "_")
27476 printf "%s\n" "#define SIZEOF_LONG_LONG $r" >>confdefs.h
27481 LIBS="$addlib -lm $LIBS"
27483 ac_fn_c_check_func "$LINENO" "wolfSSL_get_peer_certificate" "ac_cv_func_wolfSSL_get_peer_certificate"
27484 if test "x$ac_cv_func_wolfSSL_get_peer_certificate" = xyes
27486 printf "%s\n" "#define HAVE_WOLFSSL_GET_PEER_CERTIFICATE 1" >>confdefs.h
27489 ac_fn_c_check_func "$LINENO" "wolfSSL_UseALPN" "ac_cv_func_wolfSSL_UseALPN"
27490 if test "x$ac_cv_func_wolfSSL_UseALPN" = xyes
27492 printf "%s\n" "#define HAVE_WOLFSSL_USEALPN 1" >>confdefs.h
27497 ac_fn_c_check_func "$LINENO" "wolfSSL_DES_ecb_encrypt" "ac_cv_func_wolfSSL_DES_ecb_encrypt"
27498 if test "x$ac_cv_func_wolfSSL_DES_ecb_encrypt" = xyes
27502 printf "%s\n" "#define HAVE_WOLFSSL_DES_ECB_ENCRYPT 1" >>confdefs.h
27510 if test -n "$wolfssllibpath"; then
27511 if test "x$cross_compiling" != "xyes"; then
27512 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$wolfssllibpath"
27513 export CURL_LIBRARY_PATH
27514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&5
27515 printf "%s\n" "$as_me: Added $wolfssllibpath to CURL_LIBRARY_PATH" >&6;}
27519 as_fn_error $? "--with-wolfssl but wolfSSL was not found or doesn't work" "$LINENO" 5
27523 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27529 if test "x$OPT_BEARSSL" != xno; then
27530 _cppflags=$CPPFLAGS
27534 if test X"$OPT_BEARSSL" != Xno; then
27536 if test "$OPT_BEARSSL" = "yes"; then
27540 if test -z "$OPT_BEARSSL" ; then
27542 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27543 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27544 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27546 printf %s "(cached) " >&6
27548 ac_check_lib_save_LIBS=$LIBS
27549 LIBS="-lbearssl -lbearssl $LIBS"
27550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h. */
27557 char br_ssl_client_init_full ();
27560 return br_ssl_client_init_full ();
27565 if ac_fn_c_try_link "$LINENO"
27567 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27569 ac_cv_lib_bearssl_br_ssl_client_init_full=no
27571 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27572 conftest$ac_exeext conftest.$ac_ext
27573 LIBS=$ac_check_lib_save_LIBS
27575 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27576 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27577 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27581 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27588 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27599 if test "x$USE_BEARSSL" != "xyes"; then
27600 addld=-L$OPT_BEARSSL/lib$libsuff
27601 addcflags=-I$OPT_BEARSSL/include
27602 bearssllib=$OPT_BEARSSL/lib$libsuff
27604 LDFLAGS="$LDFLAGS $addld"
27605 if test "$addcflags" != "-I/usr/include"; then
27606 CPPFLAGS="$CPPFLAGS $addcflags"
27609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for br_ssl_client_init_full in -lbearssl" >&5
27610 printf %s "checking for br_ssl_client_init_full in -lbearssl... " >&6; }
27611 if test ${ac_cv_lib_bearssl_br_ssl_client_init_full+y}
27613 printf %s "(cached) " >&6
27615 ac_check_lib_save_LIBS=$LIBS
27616 LIBS="-lbearssl -lbearssl $LIBS"
27617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27618 /* end confdefs.h. */
27624 char br_ssl_client_init_full ();
27627 return br_ssl_client_init_full ();
27632 if ac_fn_c_try_link "$LINENO"
27634 ac_cv_lib_bearssl_br_ssl_client_init_full=yes
27636 ac_cv_lib_bearssl_br_ssl_client_init_full=no
27638 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27639 conftest$ac_exeext conftest.$ac_ext
27640 LIBS=$ac_check_lib_save_LIBS
27642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bearssl_br_ssl_client_init_full" >&5
27643 printf "%s\n" "$ac_cv_lib_bearssl_br_ssl_client_init_full" >&6; }
27644 if test "x$ac_cv_lib_bearssl_br_ssl_client_init_full" = xyes
27648 printf "%s\n" "#define USE_BEARSSL 1" >>confdefs.h
27655 test bearssl != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27659 CPPFLAGS=$_cppflags
27666 if test "x$USE_BEARSSL" = "xyes"; then
27667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected BearSSL" >&5
27668 printf "%s\n" "$as_me: detected BearSSL" >&6;}
27669 check_for_ca_bundle=1
27671 LIBS="-lbearssl $LIBS"
27673 if test -n "$bearssllib"; then
27674 if test "x$cross_compiling" != "xyes"; then
27675 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$bearssllib"
27676 export CURL_LIBRARY_PATH
27677 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $bearssllib to CURL_LIBRARY_PATH" >&5
27678 printf "%s\n" "$as_me: Added $bearssllib to CURL_LIBRARY_PATH" >&6;}
27684 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27689 if test "x$OPT_RUSTLS" != xno; then
27690 _cppflags=$CPPFLAGS
27694 if test X"$OPT_RUSTLS" != Xno; then
27696 if test "$OPT_RUSTLS" = "yes"; then
27700 if test -z "$OPT_RUSTLS" ; then
27702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_client_session_read in -lrustls" >&5
27703 printf %s "checking for rustls_client_session_read in -lrustls... " >&6; }
27704 if test ${ac_cv_lib_rustls_rustls_client_session_read+y}
27706 printf %s "(cached) " >&6
27708 ac_check_lib_save_LIBS=$LIBS
27709 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27711 /* end confdefs.h. */
27717 char rustls_client_session_read ();
27720 return rustls_client_session_read ();
27725 if ac_fn_c_try_link "$LINENO"
27727 ac_cv_lib_rustls_rustls_client_session_read=yes
27729 ac_cv_lib_rustls_rustls_client_session_read=no
27731 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27732 conftest$ac_exeext conftest.$ac_ext
27733 LIBS=$ac_check_lib_save_LIBS
27735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_client_session_read" >&5
27736 printf "%s\n" "$ac_cv_lib_rustls_rustls_client_session_read" >&6; }
27737 if test "x$ac_cv_lib_rustls_rustls_client_session_read" = xyes
27741 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27748 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27754 if test "x$USE_RUSTLS" != "xyes"; then
27755 addld=-L$OPT_RUSTLS/lib$libsuff
27756 addcflags=-I$OPT_RUSTLS/include
27757 rustlslib=$OPT_RUSTLS/lib$libsuff
27759 LDFLAGS="$LDFLAGS $addld"
27760 if test "$addcflags" != "-I/usr/include"; then
27761 CPPFLAGS="$CPPFLAGS $addcflags"
27764 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for rustls_connection_read in -lrustls" >&5
27765 printf %s "checking for rustls_connection_read in -lrustls... " >&6; }
27766 if test ${ac_cv_lib_rustls_rustls_connection_read+y}
27768 printf %s "(cached) " >&6
27770 ac_check_lib_save_LIBS=$LIBS
27771 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27773 /* end confdefs.h. */
27779 char rustls_connection_read ();
27782 return rustls_connection_read ();
27787 if ac_fn_c_try_link "$LINENO"
27789 ac_cv_lib_rustls_rustls_connection_read=yes
27791 ac_cv_lib_rustls_rustls_connection_read=no
27793 rm -f core conftest.err conftest.$ac_objext conftest.beam \
27794 conftest$ac_exeext conftest.$ac_ext
27795 LIBS=$ac_check_lib_save_LIBS
27797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rustls_rustls_connection_read" >&5
27798 printf "%s\n" "$ac_cv_lib_rustls_rustls_connection_read" >&6; }
27799 if test "x$ac_cv_lib_rustls_rustls_connection_read" = xyes
27803 printf "%s\n" "#define USE_RUSTLS 1" >>confdefs.h
27810 test rustls != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
27813 as_fn_error $? "--with-rustls was specified but could not find rustls." "$LINENO" 5
27818 if test "x$USE_RUSTLS" = "xyes"; then
27819 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected rustls" >&5
27820 printf "%s\n" "$as_me: detected rustls" >&6;}
27821 check_for_ca_bundle=1
27823 LIBS="-lrustls -lpthread -ldl -lm $LIBS"
27825 if test -n "$rustlslib"; then
27826 if test "x$cross_compiling" != "xyes"; then
27827 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$rustlslib"
27828 export CURL_LIBRARY_PATH
27829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $rustlslib to CURL_LIBRARY_PATH" >&5
27830 printf "%s\n" "$as_me: Added $rustlslib to CURL_LIBRARY_PATH" >&6;}
27836 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
27840 if test "x$OPT_NSS" != xno; then
27843 if test X"$OPT_NSS" != Xno; then
27851 if test "x$OPT_NSS" = "xyes"; then
27854 if test -n "$PKG_CONFIG"; then
27855 PKGCONFIG="$PKG_CONFIG"
27857 if test -n "$ac_tool_prefix"; then
27858 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
27859 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
27860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27861 printf %s "checking for $ac_word... " >&6; }
27862 if test ${ac_cv_path_PKGCONFIG+y}
27864 printf %s "(cached) " >&6
27868 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
27871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27872 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27873 for as_dir in $as_dummy
27876 case $as_dir in #(((
27879 *) as_dir=$as_dir/ ;;
27881 for ac_exec_ext in '' $ac_executable_extensions; do
27882 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27883 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27884 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27894 PKGCONFIG=$ac_cv_path_PKGCONFIG
27895 if test -n "$PKGCONFIG"; then
27896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
27897 printf "%s\n" "$PKGCONFIG" >&6; }
27899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27900 printf "%s\n" "no" >&6; }
27905 if test -z "$ac_cv_path_PKGCONFIG"; then
27906 ac_pt_PKGCONFIG=$PKGCONFIG
27907 # Extract the first word of "pkg-config", so it can be a program name with args.
27908 set dummy pkg-config; ac_word=$2
27909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
27910 printf %s "checking for $ac_word... " >&6; }
27911 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
27913 printf %s "(cached) " >&6
27915 case $ac_pt_PKGCONFIG in
27917 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
27920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27921 as_dummy="$PATH:/usr/bin:/usr/local/bin"
27922 for as_dir in $as_dummy
27925 case $as_dir in #(((
27928 *) as_dir=$as_dir/ ;;
27930 for ac_exec_ext in '' $ac_executable_extensions; do
27931 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
27932 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
27933 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
27943 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
27944 if test -n "$ac_pt_PKGCONFIG"; then
27945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
27946 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
27948 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27949 printf "%s\n" "no" >&6; }
27952 if test "x$ac_pt_PKGCONFIG" = x; then
27955 case $cross_compiling:$ac_tool_warned in
27957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
27958 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
27959 ac_tool_warned=yes ;;
27961 PKGCONFIG=$ac_pt_PKGCONFIG
27964 PKGCONFIG="$ac_cv_path_PKGCONFIG"
27969 if test "x$PKGCONFIG" != "xno"; then
27970 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
27971 printf %s "checking for nss options with pkg-config... " >&6; }
27973 if test -n ""; then
27974 PKG_CONFIG_LIBDIR=""
27975 export PKG_CONFIG_LIBDIR
27977 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
27979 if test -z "$itexists"; then
27981 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
27982 printf "%s\n" "no" >&6; }
27984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
27985 printf "%s\n" "found" >&6; }
27990 if test "$PKGCONFIG" != "no" ; then
27991 addlib=`$PKGCONFIG --libs nss`
27992 addcflags=`$PKGCONFIG --cflags nss`
27993 version=`$PKGCONFIG --modversion nss`
27994 nssprefix=`$PKGCONFIG --variable=prefix nss`
27997 check=`nss-config --version 2>/dev/null`
27998 if test -n "$check"; then
27999 addlib=`nss-config --libs`
28000 addcflags=`nss-config --cflags`
28001 version=`nss-config --version`
28002 nssprefix=`nss-config --prefix`
28010 NSS_PCDIR="$OPT_NSS/lib/pkgconfig"
28011 if test -f "$NSS_PCDIR/nss.pc"; then
28013 if test -n "$PKG_CONFIG"; then
28014 PKGCONFIG="$PKG_CONFIG"
28016 if test -n "$ac_tool_prefix"; then
28017 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28018 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28019 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28020 printf %s "checking for $ac_word... " >&6; }
28021 if test ${ac_cv_path_PKGCONFIG+y}
28023 printf %s "(cached) " >&6
28027 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28031 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28032 for as_dir in $as_dummy
28035 case $as_dir in #(((
28038 *) as_dir=$as_dir/ ;;
28040 for ac_exec_ext in '' $ac_executable_extensions; do
28041 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28042 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28043 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28053 PKGCONFIG=$ac_cv_path_PKGCONFIG
28054 if test -n "$PKGCONFIG"; then
28055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28056 printf "%s\n" "$PKGCONFIG" >&6; }
28058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28059 printf "%s\n" "no" >&6; }
28064 if test -z "$ac_cv_path_PKGCONFIG"; then
28065 ac_pt_PKGCONFIG=$PKGCONFIG
28066 # Extract the first word of "pkg-config", so it can be a program name with args.
28067 set dummy pkg-config; ac_word=$2
28068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28069 printf %s "checking for $ac_word... " >&6; }
28070 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28072 printf %s "(cached) " >&6
28074 case $ac_pt_PKGCONFIG in
28076 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28080 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28081 for as_dir in $as_dummy
28084 case $as_dir in #(((
28087 *) as_dir=$as_dir/ ;;
28089 for ac_exec_ext in '' $ac_executable_extensions; do
28090 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28091 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28092 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28102 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28103 if test -n "$ac_pt_PKGCONFIG"; then
28104 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28105 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28108 printf "%s\n" "no" >&6; }
28111 if test "x$ac_pt_PKGCONFIG" = x; then
28114 case $cross_compiling:$ac_tool_warned in
28116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28117 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28118 ac_tool_warned=yes ;;
28120 PKGCONFIG=$ac_pt_PKGCONFIG
28123 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28128 if test "x$PKGCONFIG" != "xno"; then
28129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
28130 printf %s "checking for nss options with pkg-config... " >&6; }
28132 if test -n "$NSS_PCDIR"; then
28133 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28134 export PKG_CONFIG_LIBDIR
28136 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
28138 if test -z "$itexists"; then
28140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28141 printf "%s\n" "no" >&6; }
28143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28144 printf "%s\n" "found" >&6; }
28148 if test "$PKGCONFIG" != "no" ; then
28150 if test -n "$NSS_PCDIR"; then
28151 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28152 export PKG_CONFIG_LIBDIR
28154 $PKGCONFIG --libs-only-L nss`
28156 if test -n "$NSS_PCDIR"; then
28157 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28158 export PKG_CONFIG_LIBDIR
28160 $PKGCONFIG --libs-only-l nss`
28162 if test -n "$NSS_PCDIR"; then
28163 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28164 export PKG_CONFIG_LIBDIR
28166 $PKGCONFIG --cflags nss`
28168 if test -n "$NSS_PCDIR"; then
28169 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28170 export PKG_CONFIG_LIBDIR
28172 $PKGCONFIG --modversion nss`
28174 if test -n "$NSS_PCDIR"; then
28175 PKG_CONFIG_LIBDIR="$NSS_PCDIR"
28176 export PKG_CONFIG_LIBDIR
28178 $PKGCONFIG --variable=prefix nss`
28183 if test -z "$addlib"; then
28184 # Without pkg-config, we'll kludge in some defaults
28185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Using hard-wired libraries and compilation flags for NSS." >&5
28186 printf "%s\n" "$as_me: WARNING: Using hard-wired libraries and compilation flags for NSS." >&2;}
28187 addld="-L$OPT_NSS/lib"
28188 addlib="-lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4"
28189 addcflags="-I$OPT_NSS/include"
28194 CLEANLDFLAGS="$LDFLAGS"
28196 CLEANCPPFLAGS="$CPPFLAGS"
28198 LDFLAGS="$addld $LDFLAGS"
28199 LIBS="$addlib $LIBS"
28200 if test "$addcflags" != "-I/usr/include"; then
28201 CPPFLAGS="$CPPFLAGS $addcflags"
28204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
28205 printf %s "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
28206 if test ${ac_cv_lib_nss3_SSL_VersionRangeSet+y}
28208 printf %s "(cached) " >&6
28210 ac_check_lib_save_LIBS=$LIBS
28211 LIBS="-lnss3 $LIBS"
28212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28213 /* end confdefs.h. */
28219 char SSL_VersionRangeSet ();
28222 return SSL_VersionRangeSet ();
28227 if ac_fn_c_try_link "$LINENO"
28229 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
28231 ac_cv_lib_nss3_SSL_VersionRangeSet=no
28233 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28234 conftest$ac_exeext conftest.$ac_ext
28235 LIBS=$ac_check_lib_save_LIBS
28237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
28238 printf "%s\n" "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
28239 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes
28243 printf "%s\n" "#define USE_NSS 1" >>confdefs.h
28250 test nss != "$DEFAULT_SSL_BACKEND" || VALID_DEFAULT_SSL_BACKEND=yes
28254 LDFLAGS="$CLEANLDFLAGS"
28256 CPPFLAGS="$CLEANCPPFLAGS"
28261 if test "x$USE_NSS" = "xyes"; then
28262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
28263 printf "%s\n" "$as_me: detected NSS version $version" >&6;}
28265 ac_fn_c_check_func "$LINENO" "PK11_CreateManagedGenericObject" "ac_cv_func_PK11_CreateManagedGenericObject"
28266 if test "x$ac_cv_func_PK11_CreateManagedGenericObject" = xyes
28270 printf "%s\n" "#define HAVE_PK11_CREATEMANAGEDGENERICOBJECT 1" >>confdefs.h
28279 if test "x$cross_compiling" != "xyes"; then
28280 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$nssprefix/lib$libsuff"
28281 export CURL_LIBRARY_PATH
28282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&5
28283 printf "%s\n" "$as_me: Added $nssprefix/lib$libsuff to CURL_LIBRARY_PATH" >&6;}
28288 test -z "$ssl_msg" || ssl_backends="${ssl_backends:+$ssl_backends, }$ssl_msg"
28293 if test "x$USE_WIN32_CRYPTO" = "x1" -o "x$USE_SCHANNEL" = "x1"; then
28294 LIBS="-ladvapi32 -lcrypt32 $LIBS"
28297 if test "x$curl_cv_native_windows" = "xyes" &&
28298 test "x$curl_mingw_original" = "xno"; then
28299 LIBS="-lbcrypt $LIBS"
28302 case "x$SSL_DISABLED$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$MBEDTLS_ENABLED$WOLFSSL_ENABLED$SCHANNEL_ENABLED$SECURETRANSPORT_ENABLED$BEARSSL_ENABLED$RUSTLS_ENABLED"
28305 as_fn_error $? "TLS not detected, you will not be able to use HTTPS, FTPS, NTLM and more.
28306 Use --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl or --with-rustls to address this." "$LINENO" 5
28309 # one SSL backend is enabled
28312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with one SSL backend" >&5
28313 printf "%s\n" "$as_me: built with one SSL backend" >&6;}
28316 # explicitly built without TLS
28319 as_fn_error $? "--without-ssl has been set together with an explicit option to use an ssl library
28320 (e.g. --with-openssl, --with-gnutls, --with-wolfssl, --with-mbedtls, --with-nss, --with-schannel, --with-secure-transport, --with-amissl, --with-bearssl, --with-rustls).
28321 Since these are conflicting parameters, verify which is the desired one and drop the other." "$LINENO" 5
28324 # more than one SSL backend is enabled
28328 CURL_WITH_MULTI_SSL="1"
28330 printf "%s\n" "#define CURL_WITH_MULTI_SSL 1" >>confdefs.h
28332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: built with multiple SSL backends" >&5
28333 printf "%s\n" "$as_me: built with multiple SSL backends" >&6;}
28337 if test -n "$ssl_backends"; then
28338 curl_ssl_msg="enabled ($ssl_backends)"
28341 if test no = "$VALID_DEFAULT_SSL_BACKEND"
28343 if test -n "$SSL_ENABLED"
28345 as_fn_error $? "Default SSL backend $DEFAULT_SSL_BACKEND not enabled!" "$LINENO" 5
28347 as_fn_error $? "Default SSL backend requires SSL!" "$LINENO" 5
28349 elif test yes = "$VALID_DEFAULT_SSL_BACKEND"
28352 printf "%s\n" "#define CURL_DEFAULT_SSL_BACKEND \"$DEFAULT_SSL_BACKEND\"" >>confdefs.h
28357 if test -n "$check_for_ca_bundle"; then
28360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
28361 printf %s "checking default CA cert bundle/path... " >&6; }
28364 # Check whether --with-ca-bundle was given.
28365 if test ${with_ca_bundle+y}
28367 withval=$with_ca_bundle;
28369 if test "x$want_ca" = "xyes"; then
28370 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
28378 # Check whether --with-ca-path was given.
28379 if test ${with_ca_path+y}
28381 withval=$with_ca_path;
28382 want_capath="$withval"
28383 if test "x$want_capath" = "xyes"; then
28384 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
28388 want_capath="unset"
28392 ca_warning=" (warning: certs not found)"
28393 capath_warning=" (warning: certs not found)"
28396 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
28397 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28399 capath="$want_capath"
28400 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
28403 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
28404 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1" -a "x$MBEDTLS_ENABLED" != "x1"; then
28405 as_fn_error $? "--with-ca-path only works with OpenSSL, GnuTLS or mbedTLS" "$LINENO" 5
28407 capath="$want_capath"
28412 if test "x$cross_compiling" != "xyes"; then
28413 if test "x$want_ca" = "xunset"; then
28414 if test "x$prefix" != xNONE; then
28415 cac="${prefix}/share/curl/curl-ca-bundle.crt"
28417 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
28420 for a in /etc/ssl/certs/ca-certificates.crt \
28421 /etc/pki/tls/certs/ca-bundle.crt \
28422 /usr/share/ssl/certs/ca-bundle.crt \
28423 /usr/local/share/certs/ca-root-nss.crt \
28424 /etc/ssl/cert.pem \
28426 if test -f "$a"; then
28432 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
28433 "x$OPENSSL_ENABLED" = "x1"; then
28434 check_capath="/etc/ssl/certs/"
28437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
28438 printf "%s\n" "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
28442 if test "x$ca" = "xno" || test -f "$ca"; then
28446 if test "x$capath" != "xno"; then
28447 check_capath="$capath"
28450 if test ! -z "$check_capath"; then
28451 for a in "$check_capath"; do
28452 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
28453 if test "x$capath" = "xno"; then
28462 if test "x$capath" = "xno"; then
28466 if test "x$ca" != "xno"; then
28467 CURL_CA_BUNDLE='"'$ca'"'
28469 printf "%s\n" "#define CURL_CA_BUNDLE \"$ca\"" >>confdefs.h
28472 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
28473 printf "%s\n" "$ca" >&6; }
28475 if test "x$capath" != "xno"; then
28476 CURL_CA_PATH="\"$capath\""
28478 printf "%s\n" "#define CURL_CA_PATH \"$capath\"" >>confdefs.h
28480 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
28481 printf "%s\n" "$capath (capath)" >&6; }
28483 if test "x$ca" = "xno" && test "x$capath" = "xno"; then
28484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28485 printf "%s\n" "no" >&6; }
28488 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use builtin CA store of SSL library" >&5
28489 printf %s "checking whether to use builtin CA store of SSL library... " >&6; }
28491 # Check whether --with-ca-fallback was given.
28492 if test ${with_ca_fallback+y}
28494 withval=$with_ca_fallback;
28495 if test "x$with_ca_fallback" != "xyes" -a "x$with_ca_fallback" != "xno"; then
28496 as_fn_error $? "--with-ca-fallback only allows yes or no as parameter" "$LINENO" 5
28500 with_ca_fallback="no"
28503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $with_ca_fallback" >&5
28504 printf "%s\n" "$with_ca_fallback" >&6; }
28505 if test "x$with_ca_fallback" = "xyes"; then
28506 if test "x$OPENSSL_ENABLED" != "x1" -a "x$GNUTLS_ENABLED" != "x1"; then
28507 as_fn_error $? "--with-ca-fallback only works with OpenSSL or GnuTLS" "$LINENO" 5
28510 printf "%s\n" "#define CURL_CA_FALLBACK 1" >>confdefs.h
28518 # Check whether --with-libpsl was given.
28519 if test ${with_libpsl+y}
28521 withval=$with_libpsl; with_libpsl=$withval
28526 if test $with_libpsl != "no"; then
28527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing psl_builtin" >&5
28528 printf %s "checking for library containing psl_builtin... " >&6; }
28529 if test ${ac_cv_search_psl_builtin+y}
28531 printf %s "(cached) " >&6
28533 ac_func_search_save_LIBS=$LIBS
28534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28535 /* end confdefs.h. */
28541 char psl_builtin ();
28544 return psl_builtin ();
28549 for ac_lib in '' psl
28551 if test -z "$ac_lib"; then
28552 ac_res="none required"
28555 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28557 if ac_fn_c_try_link "$LINENO"
28559 ac_cv_search_psl_builtin=$ac_res
28561 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28563 if test ${ac_cv_search_psl_builtin+y}
28568 if test ${ac_cv_search_psl_builtin+y}
28572 ac_cv_search_psl_builtin=no
28574 rm conftest.$ac_ext
28575 LIBS=$ac_func_search_save_LIBS
28577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_psl_builtin" >&5
28578 printf "%s\n" "$ac_cv_search_psl_builtin" >&6; }
28579 ac_res=$ac_cv_search_psl_builtin
28580 if test "$ac_res" != no
28582 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28583 curl_psl_msg="enabled";
28585 printf "%s\n" "#define USE_LIBPSL 1" >>confdefs.h
28589 curl_psl_msg="no (libpsl not found)";
28590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libpsl was not found" >&5
28591 printf "%s\n" "$as_me: WARNING: libpsl was not found" >&2;}
28597 if test "$curl_psl_msg" = "enabled"; then
28599 USE_LIBPSL_FALSE='#'
28601 USE_LIBPSL_TRUE='#'
28609 # Check whether --with-libgsasl was given.
28610 if test ${with_libgsasl+y}
28612 withval=$with_libgsasl; with_libgsasl=$withval
28617 if test $with_libgsasl != "no"; then
28618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for library containing gsasl_init" >&5
28619 printf %s "checking for library containing gsasl_init... " >&6; }
28620 if test ${ac_cv_search_gsasl_init+y}
28622 printf %s "(cached) " >&6
28624 ac_func_search_save_LIBS=$LIBS
28625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28626 /* end confdefs.h. */
28632 char gsasl_init ();
28635 return gsasl_init ();
28640 for ac_lib in '' gsasl
28642 if test -z "$ac_lib"; then
28643 ac_res="none required"
28646 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28648 if ac_fn_c_try_link "$LINENO"
28650 ac_cv_search_gsasl_init=$ac_res
28652 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28654 if test ${ac_cv_search_gsasl_init+y}
28659 if test ${ac_cv_search_gsasl_init+y}
28663 ac_cv_search_gsasl_init=no
28665 rm conftest.$ac_ext
28666 LIBS=$ac_func_search_save_LIBS
28668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gsasl_init" >&5
28669 printf "%s\n" "$ac_cv_search_gsasl_init" >&6; }
28670 ac_res=$ac_cv_search_gsasl_init
28671 if test "$ac_res" != no
28673 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
28674 curl_gsasl_msg="enabled";
28676 printf "%s\n" "#define USE_GSASL 1" >>confdefs.h
28680 curl_gsasl_msg="no (libgsasl not found)";
28681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: libgsasl was not found" >&5
28682 printf "%s\n" "$as_me: WARNING: libgsasl was not found" >&2;}
28688 if test "$curl_gsasl_msg" = "enabled"; then
28690 USE_GSASL_FALSE='#'
28698 # Check whether --with-libmetalink was given.
28699 if test ${with_libmetalink+y}
28701 withval=$with_libmetalink; as_fn_error $? "--with-libmetalink no longer works!" "$LINENO" 5
28708 # Check whether --with-libssh2 was given.
28709 if test ${with_libssh2+y}
28711 withval=$with_libssh2; OPT_LIBSSH2=$withval
28720 # Check whether --with-libssh was given.
28721 if test ${with_libssh+y}
28723 withval=$with_libssh; OPT_LIBSSH=$withval
28731 # Check whether --with-wolfssh was given.
28732 if test ${with_wolfssh+y}
28734 withval=$with_wolfssh; OPT_WOLFSSH=$withval
28740 if test X"$OPT_LIBSSH2" != Xno; then
28741 CLEANLDFLAGS="$LDFLAGS"
28742 CLEANCPPFLAGS="$CPPFLAGS"
28745 case "$OPT_LIBSSH2" in
28748 if test -n "$PKG_CONFIG"; then
28749 PKGCONFIG="$PKG_CONFIG"
28751 if test -n "$ac_tool_prefix"; then
28752 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
28753 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
28754 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28755 printf %s "checking for $ac_word... " >&6; }
28756 if test ${ac_cv_path_PKGCONFIG+y}
28758 printf %s "(cached) " >&6
28762 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
28765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28766 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28767 for as_dir in $as_dummy
28770 case $as_dir in #(((
28773 *) as_dir=$as_dir/ ;;
28775 for ac_exec_ext in '' $ac_executable_extensions; do
28776 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28777 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28778 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28788 PKGCONFIG=$ac_cv_path_PKGCONFIG
28789 if test -n "$PKGCONFIG"; then
28790 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
28791 printf "%s\n" "$PKGCONFIG" >&6; }
28793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28794 printf "%s\n" "no" >&6; }
28799 if test -z "$ac_cv_path_PKGCONFIG"; then
28800 ac_pt_PKGCONFIG=$PKGCONFIG
28801 # Extract the first word of "pkg-config", so it can be a program name with args.
28802 set dummy pkg-config; ac_word=$2
28803 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28804 printf %s "checking for $ac_word... " >&6; }
28805 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
28807 printf %s "(cached) " >&6
28809 case $ac_pt_PKGCONFIG in
28811 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
28814 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28815 as_dummy="$PATH:/usr/bin:/usr/local/bin"
28816 for as_dir in $as_dummy
28819 case $as_dir in #(((
28822 *) as_dir=$as_dir/ ;;
28824 for ac_exec_ext in '' $ac_executable_extensions; do
28825 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
28826 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
28827 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
28837 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
28838 if test -n "$ac_pt_PKGCONFIG"; then
28839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
28840 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
28842 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28843 printf "%s\n" "no" >&6; }
28846 if test "x$ac_pt_PKGCONFIG" = x; then
28849 case $cross_compiling:$ac_tool_warned in
28851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28852 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28853 ac_tool_warned=yes ;;
28855 PKGCONFIG=$ac_pt_PKGCONFIG
28858 PKGCONFIG="$ac_cv_path_PKGCONFIG"
28863 if test "x$PKGCONFIG" != "xno"; then
28864 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
28865 printf %s "checking for libssh2 options with pkg-config... " >&6; }
28867 if test -n ""; then
28868 PKG_CONFIG_LIBDIR=""
28869 export PKG_CONFIG_LIBDIR
28871 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
28873 if test -z "$itexists"; then
28875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
28876 printf "%s\n" "no" >&6; }
28878 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
28879 printf "%s\n" "found" >&6; }
28884 if test "$PKGCONFIG" != "no" ; then
28885 LIB_SSH2=`$PKGCONFIG --libs libssh2`
28886 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
28887 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
28888 version=`$PKGCONFIG --modversion libssh2`
28889 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/^-L//'`
28896 PREFIX_SSH2=$OPT_LIBSSH2
28900 if test -n "$PREFIX_SSH2"; then
28902 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
28903 CPP_SSH2=-I${PREFIX_SSH2}/include
28904 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
28907 LDFLAGS="$LDFLAGS $LD_SSH2"
28908 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
28909 LIBS="$LIB_SSH2 $LIBS"
28911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh2_session_block_directions in -lssh2" >&5
28912 printf %s "checking for libssh2_session_block_directions in -lssh2... " >&6; }
28913 if test ${ac_cv_lib_ssh2_libssh2_session_block_directions+y}
28915 printf %s "(cached) " >&6
28917 ac_check_lib_save_LIBS=$LIBS
28918 LIBS="-lssh2 $LIBS"
28919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28920 /* end confdefs.h. */
28926 char libssh2_session_block_directions ();
28929 return libssh2_session_block_directions ();
28934 if ac_fn_c_try_link "$LINENO"
28936 ac_cv_lib_ssh2_libssh2_session_block_directions=yes
28938 ac_cv_lib_ssh2_libssh2_session_block_directions=no
28940 rm -f core conftest.err conftest.$ac_objext conftest.beam \
28941 conftest$ac_exeext conftest.$ac_ext
28942 LIBS=$ac_check_lib_save_LIBS
28944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_session_block_directions" >&5
28945 printf "%s\n" "$ac_cv_lib_ssh2_libssh2_session_block_directions" >&6; }
28946 if test "x$ac_cv_lib_ssh2_libssh2_session_block_directions" = xyes
28948 printf "%s\n" "#define HAVE_LIBSSH2 1" >>confdefs.h
28950 LIBS="-lssh2 $LIBS"
28955 ac_fn_c_check_header_compile "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
28956 if test "x$ac_cv_header_libssh2_h" = xyes
28958 curl_ssh_msg="enabled (libSSH2)"
28961 printf "%s\n" "#define USE_LIBSSH2 1" >>confdefs.h
28969 if test X"$OPT_LIBSSH2" != Xoff &&
28970 test "$LIBSSH2_ENABLED" != "1"; then
28971 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
28974 if test "$LIBSSH2_ENABLED" = "1"; then
28975 if test -n "$DIR_SSH2"; then
28977 if test "x$cross_compiling" != "xyes"; then
28978 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH2"
28979 export CURL_LIBRARY_PATH
28980 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&5
28981 printf "%s\n" "$as_me: Added $DIR_SSH2 to CURL_LIBRARY_PATH" >&6;}
28985 LDFLAGS=$CLEANLDFLAGS
28986 CPPFLAGS=$CLEANCPPFLAGS
28989 elif test X"$OPT_LIBSSH" != Xno; then
28990 CLEANLDFLAGS="$LDFLAGS"
28991 CLEANCPPFLAGS="$CPPFLAGS"
28994 case "$OPT_LIBSSH" in
28997 if test -n "$PKG_CONFIG"; then
28998 PKGCONFIG="$PKG_CONFIG"
29000 if test -n "$ac_tool_prefix"; then
29001 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29002 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29003 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29004 printf %s "checking for $ac_word... " >&6; }
29005 if test ${ac_cv_path_PKGCONFIG+y}
29007 printf %s "(cached) " >&6
29011 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29015 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29016 for as_dir in $as_dummy
29019 case $as_dir in #(((
29022 *) as_dir=$as_dir/ ;;
29024 for ac_exec_ext in '' $ac_executable_extensions; do
29025 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29026 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29027 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29037 PKGCONFIG=$ac_cv_path_PKGCONFIG
29038 if test -n "$PKGCONFIG"; then
29039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29040 printf "%s\n" "$PKGCONFIG" >&6; }
29042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29043 printf "%s\n" "no" >&6; }
29048 if test -z "$ac_cv_path_PKGCONFIG"; then
29049 ac_pt_PKGCONFIG=$PKGCONFIG
29050 # Extract the first word of "pkg-config", so it can be a program name with args.
29051 set dummy pkg-config; ac_word=$2
29052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29053 printf %s "checking for $ac_word... " >&6; }
29054 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29056 printf %s "(cached) " >&6
29058 case $ac_pt_PKGCONFIG in
29060 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29064 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29065 for as_dir in $as_dummy
29068 case $as_dir in #(((
29071 *) as_dir=$as_dir/ ;;
29073 for ac_exec_ext in '' $ac_executable_extensions; do
29074 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29075 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29076 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29086 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29087 if test -n "$ac_pt_PKGCONFIG"; then
29088 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29089 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29091 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29092 printf "%s\n" "no" >&6; }
29095 if test "x$ac_pt_PKGCONFIG" = x; then
29098 case $cross_compiling:$ac_tool_warned in
29100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29101 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29102 ac_tool_warned=yes ;;
29104 PKGCONFIG=$ac_pt_PKGCONFIG
29107 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29112 if test "x$PKGCONFIG" != "xno"; then
29113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libssh options with pkg-config" >&5
29114 printf %s "checking for libssh options with pkg-config... " >&6; }
29116 if test -n ""; then
29117 PKG_CONFIG_LIBDIR=""
29118 export PKG_CONFIG_LIBDIR
29120 $PKGCONFIG --exists libssh >/dev/null 2>&1 && echo 1`
29122 if test -z "$itexists"; then
29124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29125 printf "%s\n" "no" >&6; }
29127 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29128 printf "%s\n" "found" >&6; }
29133 if test "$PKGCONFIG" != "no" ; then
29134 LIB_SSH=`$PKGCONFIG --libs-only-l libssh`
29135 LD_SSH=`$PKGCONFIG --libs-only-L libssh`
29136 CPP_SSH=`$PKGCONFIG --cflags-only-I libssh`
29137 version=`$PKGCONFIG --modversion libssh`
29138 DIR_SSH=`echo $LD_SSH | $SED -e 's/^-L//'`
29145 PREFIX_SSH=$OPT_LIBSSH
29149 if test -n "$PREFIX_SSH"; then
29151 LD_SSH=-L${PREFIX_SSH}/lib$libsuff
29152 CPP_SSH=-I${PREFIX_SSH}/include
29153 DIR_SSH=${PREFIX_SSH}/lib$libsuff
29156 LDFLAGS="$LDFLAGS $LD_SSH"
29157 CPPFLAGS="$CPPFLAGS $CPP_SSH"
29158 LIBS="$LIB_SSH $LIBS"
29160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ssh_new in -lssh" >&5
29161 printf %s "checking for ssh_new in -lssh... " >&6; }
29162 if test ${ac_cv_lib_ssh_ssh_new+y}
29164 printf %s "(cached) " >&6
29166 ac_check_lib_save_LIBS=$LIBS
29168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29169 /* end confdefs.h. */
29183 if ac_fn_c_try_link "$LINENO"
29185 ac_cv_lib_ssh_ssh_new=yes
29187 ac_cv_lib_ssh_ssh_new=no
29189 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29190 conftest$ac_exeext conftest.$ac_ext
29191 LIBS=$ac_check_lib_save_LIBS
29193 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh_ssh_new" >&5
29194 printf "%s\n" "$ac_cv_lib_ssh_ssh_new" >&6; }
29195 if test "x$ac_cv_lib_ssh_ssh_new" = xyes
29197 printf "%s\n" "#define HAVE_LIBSSH 1" >>confdefs.h
29204 ac_fn_c_check_header_compile "$LINENO" "libssh/libssh.h" "ac_cv_header_libssh_libssh_h" "$ac_includes_default"
29205 if test "x$ac_cv_header_libssh_libssh_h" = xyes
29207 curl_ssh_msg="enabled (libSSH)"
29210 printf "%s\n" "#define USE_LIBSSH 1" >>confdefs.h
29218 if test X"$OPT_LIBSSH" != Xoff &&
29219 test "$LIBSSH_ENABLED" != "1"; then
29220 as_fn_error $? "libSSH libs and/or directories were not found where specified!" "$LINENO" 5
29223 if test "$LIBSSH_ENABLED" = "1"; then
29224 if test -n "$DIR_SSH"; then
29226 if test "x$cross_compiling" != "xyes"; then
29227 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_SSH"
29228 export CURL_LIBRARY_PATH
29229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH to CURL_LIBRARY_PATH" >&5
29230 printf "%s\n" "$as_me: Added $DIR_SSH to CURL_LIBRARY_PATH" >&6;}
29234 LDFLAGS=$CLEANLDFLAGS
29235 CPPFLAGS=$CLEANCPPFLAGS
29238 elif test X"$OPT_WOLFSSH" != Xno; then
29239 CLEANLDFLAGS="$LDFLAGS"
29240 CLEANCPPFLAGS="$CPPFLAGS"
29244 if test "$OPT_WOLFSSH" != yes; then
29245 WOLFCONFIG="$OPT_WOLFSSH/bin/wolfssh-config"
29246 LDFLAGS="$LDFLAGS `$WOLFCONFIG --libs`"
29247 CPPFLAGS="$CPPFLAGS `$WOLFCONFIG --cflags`"
29250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for wolfSSH_Init in -lwolfssh" >&5
29251 printf %s "checking for wolfSSH_Init in -lwolfssh... " >&6; }
29252 if test ${ac_cv_lib_wolfssh_wolfSSH_Init+y}
29254 printf %s "(cached) " >&6
29256 ac_check_lib_save_LIBS=$LIBS
29257 LIBS="-lwolfssh $LIBS"
29258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29259 /* end confdefs.h. */
29265 char wolfSSH_Init ();
29268 return wolfSSH_Init ();
29273 if ac_fn_c_try_link "$LINENO"
29275 ac_cv_lib_wolfssh_wolfSSH_Init=yes
29277 ac_cv_lib_wolfssh_wolfSSH_Init=no
29279 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29280 conftest$ac_exeext conftest.$ac_ext
29281 LIBS=$ac_check_lib_save_LIBS
29283 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wolfssh_wolfSSH_Init" >&5
29284 printf "%s\n" "$ac_cv_lib_wolfssh_wolfSSH_Init" >&6; }
29285 if test "x$ac_cv_lib_wolfssh_wolfSSH_Init" = xyes
29287 printf "%s\n" "#define HAVE_LIBWOLFSSH 1" >>confdefs.h
29289 LIBS="-lwolfssh $LIBS"
29294 for ac_header in wolfssh/ssh.h
29296 ac_fn_c_check_header_compile "$LINENO" "wolfssh/ssh.h" "ac_cv_header_wolfssh_ssh_h" "$ac_includes_default"
29297 if test "x$ac_cv_header_wolfssh_ssh_h" = xyes
29299 printf "%s\n" "#define HAVE_WOLFSSH_SSH_H 1" >>confdefs.h
29300 curl_ssh_msg="enabled (wolfSSH)"
29303 printf "%s\n" "#define USE_WOLFSSH 1" >>confdefs.h
29317 # Check whether --with-librtmp was given.
29318 if test ${with_librtmp+y}
29320 withval=$with_librtmp; OPT_LIBRTMP=$withval
29324 if test X"$OPT_LIBRTMP" != Xno; then
29325 CLEANLDFLAGS="$LDFLAGS"
29326 CLEANCPPFLAGS="$CPPFLAGS"
29329 case "$OPT_LIBRTMP" in
29332 if test -n "$PKG_CONFIG"; then
29333 PKGCONFIG="$PKG_CONFIG"
29335 if test -n "$ac_tool_prefix"; then
29336 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29337 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29339 printf %s "checking for $ac_word... " >&6; }
29340 if test ${ac_cv_path_PKGCONFIG+y}
29342 printf %s "(cached) " >&6
29346 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29350 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29351 for as_dir in $as_dummy
29354 case $as_dir in #(((
29357 *) as_dir=$as_dir/ ;;
29359 for ac_exec_ext in '' $ac_executable_extensions; do
29360 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29361 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29362 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29372 PKGCONFIG=$ac_cv_path_PKGCONFIG
29373 if test -n "$PKGCONFIG"; then
29374 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29375 printf "%s\n" "$PKGCONFIG" >&6; }
29377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29378 printf "%s\n" "no" >&6; }
29383 if test -z "$ac_cv_path_PKGCONFIG"; then
29384 ac_pt_PKGCONFIG=$PKGCONFIG
29385 # Extract the first word of "pkg-config", so it can be a program name with args.
29386 set dummy pkg-config; ac_word=$2
29387 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29388 printf %s "checking for $ac_word... " >&6; }
29389 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29391 printf %s "(cached) " >&6
29393 case $ac_pt_PKGCONFIG in
29395 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29399 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29400 for as_dir in $as_dummy
29403 case $as_dir in #(((
29406 *) as_dir=$as_dir/ ;;
29408 for ac_exec_ext in '' $ac_executable_extensions; do
29409 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29410 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29411 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29421 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29422 if test -n "$ac_pt_PKGCONFIG"; then
29423 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29424 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29427 printf "%s\n" "no" >&6; }
29430 if test "x$ac_pt_PKGCONFIG" = x; then
29433 case $cross_compiling:$ac_tool_warned in
29435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29436 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29437 ac_tool_warned=yes ;;
29439 PKGCONFIG=$ac_pt_PKGCONFIG
29442 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29447 if test "x$PKGCONFIG" != "xno"; then
29448 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
29449 printf %s "checking for librtmp options with pkg-config... " >&6; }
29451 if test -n ""; then
29452 PKG_CONFIG_LIBDIR=""
29453 export PKG_CONFIG_LIBDIR
29455 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
29457 if test -z "$itexists"; then
29459 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29460 printf "%s\n" "no" >&6; }
29462 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29463 printf "%s\n" "found" >&6; }
29468 if test "$PKGCONFIG" != "no" ; then
29469 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
29470 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
29471 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
29472 version=`$PKGCONFIG --modversion librtmp`
29473 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/^-L//'`
29475 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
29484 PREFIX_RTMP=$OPT_LIBRTMP
29488 if test -n "$PREFIX_RTMP"; then
29489 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
29490 CPP_RTMP=-I${PREFIX_RTMP}/include
29491 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
29494 LDFLAGS="$LDFLAGS $LD_RTMP"
29495 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
29496 LIBS="$LIB_RTMP $LIBS"
29498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
29499 printf %s "checking for RTMP_Init in -lrtmp... " >&6; }
29500 if test ${ac_cv_lib_rtmp_RTMP_Init+y}
29502 printf %s "(cached) " >&6
29504 ac_check_lib_save_LIBS=$LIBS
29505 LIBS="-lrtmp $LIBS"
29506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29507 /* end confdefs.h. */
29516 return RTMP_Init ();
29521 if ac_fn_c_try_link "$LINENO"
29523 ac_cv_lib_rtmp_RTMP_Init=yes
29525 ac_cv_lib_rtmp_RTMP_Init=no
29527 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29528 conftest$ac_exeext conftest.$ac_ext
29529 LIBS=$ac_check_lib_save_LIBS
29531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
29532 printf "%s\n" "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
29533 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes
29536 for ac_header in librtmp/rtmp.h
29538 ac_fn_c_check_header_compile "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
29539 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes
29541 printf "%s\n" "#define HAVE_LIBRTMP_RTMP_H 1" >>confdefs.h
29542 curl_rtmp_msg="enabled (librtmp)"
29545 printf "%s\n" "#define USE_LIBRTMP 1" >>confdefs.h
29555 LDFLAGS=$CLEANLDFLAGS
29556 CPPFLAGS=$CLEANCPPFLAGS
29562 if test X"$OPT_LIBRTMP" != Xoff &&
29563 test "$LIBRTMP_ENABLED" != "1"; then
29564 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
29570 versioned_symbols_flavour=
29571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
29572 printf %s "checking whether versioned symbols are wanted... " >&6; }
29573 # Check whether --enable-versioned-symbols was given.
29574 if test ${enable_versioned_symbols+y}
29576 enableval=$enable_versioned_symbols; case "$enableval" in
29577 yes) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29578 printf "%s\n" "yes" >&6; }
29579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
29580 printf %s "checking if libraries can be versioned... " >&6; }
29581 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
29582 if test -z "$GLD"; then
29583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29584 printf "%s\n" "no" >&6; }
29585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
29586 printf "%s\n" "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
29588 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29589 printf "%s\n" "yes" >&6; }
29590 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
29591 versioned_symbols_flavour="MULTISSL_"
29592 elif test "x$OPENSSL_ENABLED" = "x1"; then
29593 versioned_symbols_flavour="OPENSSL_"
29594 elif test "x$GNUTLS_ENABLED" = "x1"; then
29595 versioned_symbols_flavour="GNUTLS_"
29596 elif test "x$NSS_ENABLED" = "x1"; then
29597 versioned_symbols_flavour="NSS_"
29598 elif test "x$WOLFSSL_ENABLED" = "x1"; then
29599 versioned_symbols_flavour="WOLFSSL_"
29600 elif test "x$SCHANNEL_ENABLED" = "x1"; then
29601 versioned_symbols_flavour="SCHANNEL_"
29602 elif test "x$SECURETRANSPORT_ENABLED" = "x1"; then
29603 versioned_symbols_flavour="SECURE_TRANSPORT_"
29605 versioned_symbols_flavour=""
29607 versioned_symbols="yes"
29611 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29612 printf "%s\n" "no" >&6; }
29618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29619 printf "%s\n" "no" >&6; }
29625 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
29627 if test "x$versioned_symbols" = 'xyes'; then
29628 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
29629 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
29631 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
29632 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
29636 CURL_PLIST_VERSION="$CURLVERSION"
29640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
29641 printf %s "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
29642 OPT_WINIDN="default"
29644 # Check whether --with-winidn was given.
29645 if test ${with_winidn+y}
29647 withval=$with_winidn; OPT_WINIDN=$withval
29650 case "$OPT_WINIDN" in
29653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29654 printf "%s\n" "no" >&6; }
29658 want_winidn_path="default"
29659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29660 printf "%s\n" "yes" >&6; }
29664 want_winidn_path="$withval"
29665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29666 printf "%s\n" "yes ($withval)" >&6; }
29670 if test "$want_winidn" = "yes"; then
29671 clean_CFLAGS="$CFLAGS"
29672 clean_CPPFLAGS="$CPPFLAGS"
29673 clean_LDFLAGS="$LDFLAGS"
29675 WINIDN_LIBS="-lnormaliz"
29678 if test "$want_winidn_path" != "default"; then
29679 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
29680 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
29681 WINIDN_DIR="$want_winidn_path/lib$libsuff"
29684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29685 /* end confdefs.h. */
29688 #include <windows.h>
29693 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
29702 if ac_fn_c_try_compile "$LINENO"
29708 CFLAGS=`echo $CFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29709 CFLAGS=`echo $CFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29710 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-DWINVER=[^ ]*//g'`
29711 CPPFLAGS=`echo $CPPFLAGS | $SED -e 's/-D_WIN32_WINNT=[^ ]*//g'`
29712 WINIDN_CPPFLAGS="$WINIDN_CPPFLAGS -DWINVER=0x0600"
29715 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
29717 CPPFLAGS="$CPPFLAGS $WINIDN_CPPFLAGS"
29718 LDFLAGS="$LDFLAGS $WINIDN_LDFLAGS"
29719 LIBS="$WINIDN_LIBS $LIBS"
29721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
29722 printf %s "checking if IdnToUnicode can be linked... " >&6; }
29723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29724 /* end confdefs.h. */
29727 #include <windows.h>
29732 IdnToUnicode(0, NULL, 0, NULL, 0);
29739 if ac_fn_c_try_link "$LINENO"
29742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29743 printf "%s\n" "yes" >&6; }
29744 tst_links_winidn="yes"
29748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29749 printf "%s\n" "no" >&6; }
29750 tst_links_winidn="no"
29753 rm -f core conftest.err conftest.$ac_objext conftest.beam \
29754 conftest$ac_exeext conftest.$ac_ext
29756 if test "$tst_links_winidn" = "yes"; then
29758 printf "%s\n" "#define USE_WIN32_IDN 1" >>confdefs.h
29761 printf "%s\n" "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
29765 curl_idn_msg="enabled (Windows-native)"
29767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
29768 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
29769 CFLAGS="$clean_CFLAGS"
29770 CPPFLAGS="$clean_CPPFLAGS"
29771 LDFLAGS="$clean_LDFLAGS"
29777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn2" >&5
29778 printf %s "checking whether to build with libidn2... " >&6; }
29781 # Check whether --with-libidn2 was given.
29782 if test ${with_libidn2+y}
29784 withval=$with_libidn2; OPT_IDN=$withval
29787 if test "x$tst_links_winidn" = "xyes"; then
29789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no (using winidn instead)" >&5
29790 printf "%s\n" "no (using winidn instead)" >&6; }
29795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29796 printf "%s\n" "no" >&6; }
29800 want_idn_path="default"
29801 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
29802 printf "%s\n" "(assumed) yes" >&6; }
29806 want_idn_path="default"
29807 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29808 printf "%s\n" "yes" >&6; }
29812 want_idn_path="$withval"
29813 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
29814 printf "%s\n" "yes ($withval)" >&6; }
29819 if test "$want_idn" = "yes"; then
29820 clean_CPPFLAGS="$CPPFLAGS"
29821 clean_LDFLAGS="$LDFLAGS"
29825 if test "$want_idn_path" != "default"; then
29826 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
29828 if test -n "$PKG_CONFIG"; then
29829 PKGCONFIG="$PKG_CONFIG"
29831 if test -n "$ac_tool_prefix"; then
29832 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29833 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29835 printf %s "checking for $ac_word... " >&6; }
29836 if test ${ac_cv_path_PKGCONFIG+y}
29838 printf %s "(cached) " >&6
29842 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
29845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29846 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29847 for as_dir in $as_dummy
29850 case $as_dir in #(((
29853 *) as_dir=$as_dir/ ;;
29855 for ac_exec_ext in '' $ac_executable_extensions; do
29856 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29857 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29858 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29868 PKGCONFIG=$ac_cv_path_PKGCONFIG
29869 if test -n "$PKGCONFIG"; then
29870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
29871 printf "%s\n" "$PKGCONFIG" >&6; }
29873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29874 printf "%s\n" "no" >&6; }
29879 if test -z "$ac_cv_path_PKGCONFIG"; then
29880 ac_pt_PKGCONFIG=$PKGCONFIG
29881 # Extract the first word of "pkg-config", so it can be a program name with args.
29882 set dummy pkg-config; ac_word=$2
29883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29884 printf %s "checking for $ac_word... " >&6; }
29885 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
29887 printf %s "(cached) " >&6
29889 case $ac_pt_PKGCONFIG in
29891 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
29894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29895 as_dummy="$PATH:/usr/bin:/usr/local/bin"
29896 for as_dir in $as_dummy
29899 case $as_dir in #(((
29902 *) as_dir=$as_dir/ ;;
29904 for ac_exec_ext in '' $ac_executable_extensions; do
29905 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
29906 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
29907 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
29917 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
29918 if test -n "$ac_pt_PKGCONFIG"; then
29919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
29920 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
29922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29923 printf "%s\n" "no" >&6; }
29926 if test "x$ac_pt_PKGCONFIG" = x; then
29929 case $cross_compiling:$ac_tool_warned in
29931 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
29932 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
29933 ac_tool_warned=yes ;;
29935 PKGCONFIG=$ac_pt_PKGCONFIG
29938 PKGCONFIG="$ac_cv_path_PKGCONFIG"
29943 if test "x$PKGCONFIG" != "xno"; then
29944 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
29945 printf %s "checking for libidn2 options with pkg-config... " >&6; }
29947 if test -n "$IDN_PCDIR"; then
29948 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29949 export PKG_CONFIG_LIBDIR
29951 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
29953 if test -z "$itexists"; then
29955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
29956 printf "%s\n" "no" >&6; }
29958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
29959 printf "%s\n" "found" >&6; }
29963 if test "$PKGCONFIG" != "no"; then
29965 if test -n "$IDN_PCDIR"; then
29966 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29967 export PKG_CONFIG_LIBDIR
29969 $PKGCONFIG --libs-only-l libidn2 2>/dev/null`
29971 if test -n "$IDN_PCDIR"; then
29972 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29973 export PKG_CONFIG_LIBDIR
29975 $PKGCONFIG --libs-only-L libidn2 2>/dev/null`
29977 if test -n "$IDN_PCDIR"; then
29978 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
29979 export PKG_CONFIG_LIBDIR
29981 $PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
29982 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
29985 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
29986 IDN_CPPFLAGS="-I$want_idn_path/include"
29987 IDN_DIR="$want_idn_path/lib$libsuff"
29991 if test -n "$PKG_CONFIG"; then
29992 PKGCONFIG="$PKG_CONFIG"
29994 if test -n "$ac_tool_prefix"; then
29995 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
29996 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
29997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29998 printf %s "checking for $ac_word... " >&6; }
29999 if test ${ac_cv_path_PKGCONFIG+y}
30001 printf %s "(cached) " >&6
30005 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30009 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30010 for as_dir in $as_dummy
30013 case $as_dir in #(((
30016 *) as_dir=$as_dir/ ;;
30018 for ac_exec_ext in '' $ac_executable_extensions; do
30019 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30020 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30021 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30031 PKGCONFIG=$ac_cv_path_PKGCONFIG
30032 if test -n "$PKGCONFIG"; then
30033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30034 printf "%s\n" "$PKGCONFIG" >&6; }
30036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30037 printf "%s\n" "no" >&6; }
30042 if test -z "$ac_cv_path_PKGCONFIG"; then
30043 ac_pt_PKGCONFIG=$PKGCONFIG
30044 # Extract the first word of "pkg-config", so it can be a program name with args.
30045 set dummy pkg-config; ac_word=$2
30046 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30047 printf %s "checking for $ac_word... " >&6; }
30048 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30050 printf %s "(cached) " >&6
30052 case $ac_pt_PKGCONFIG in
30054 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30058 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30059 for as_dir in $as_dummy
30062 case $as_dir in #(((
30065 *) as_dir=$as_dir/ ;;
30067 for ac_exec_ext in '' $ac_executable_extensions; do
30068 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30069 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30070 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30080 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30081 if test -n "$ac_pt_PKGCONFIG"; then
30082 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30083 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30086 printf "%s\n" "no" >&6; }
30089 if test "x$ac_pt_PKGCONFIG" = x; then
30092 case $cross_compiling:$ac_tool_warned in
30094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30095 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30096 ac_tool_warned=yes ;;
30098 PKGCONFIG=$ac_pt_PKGCONFIG
30101 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30106 if test "x$PKGCONFIG" != "xno"; then
30107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libidn2 options with pkg-config" >&5
30108 printf %s "checking for libidn2 options with pkg-config... " >&6; }
30110 if test -n ""; then
30111 PKG_CONFIG_LIBDIR=""
30112 export PKG_CONFIG_LIBDIR
30114 $PKGCONFIG --exists libidn2 >/dev/null 2>&1 && echo 1`
30116 if test -z "$itexists"; then
30118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30119 printf "%s\n" "no" >&6; }
30121 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30122 printf "%s\n" "found" >&6; }
30126 if test "$PKGCONFIG" != "no"; then
30127 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn2 2>/dev/null`
30128 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn2 2>/dev/null`
30129 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn2 2>/dev/null`
30130 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/^-L//'`
30136 if test "$PKGCONFIG" != "no"; then
30137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
30138 printf "%s\n" "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30140 printf "%s\n" "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30141 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30142 printf "%s\n" "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30143 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
30144 printf "%s\n" "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
30146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
30147 printf "%s\n" "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
30148 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
30149 printf "%s\n" "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
30150 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
30151 printf "%s\n" "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
30152 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
30153 printf "%s\n" "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
30156 CPPFLAGS="$CPPFLAGS $IDN_CPPFLAGS"
30157 LDFLAGS="$LDFLAGS $IDN_LDFLAGS"
30158 LIBS="$IDN_LIBS $LIBS"
30160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if idn2_lookup_ul can be linked" >&5
30161 printf %s "checking if idn2_lookup_ul can be linked... " >&6; }
30162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30163 /* end confdefs.h. */
30166 #define idn2_lookup_ul innocuous_idn2_lookup_ul
30168 # include <limits.h>
30170 # include <assert.h>
30172 #undef idn2_lookup_ul
30176 char idn2_lookup_ul ();
30177 #if defined __stub_idn2_lookup_ul || defined __stub___idn2_lookup_ul
30183 return idn2_lookup_ul ();
30189 if ac_fn_c_try_link "$LINENO"
30192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30193 printf "%s\n" "yes" >&6; }
30194 tst_links_libidn="yes"
30198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30199 printf "%s\n" "no" >&6; }
30200 tst_links_libidn="no"
30203 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30204 conftest$ac_exeext conftest.$ac_ext
30206 ac_fn_c_check_header_compile "$LINENO" "idn2.h" "ac_cv_header_idn2_h" "$ac_includes_default"
30207 if test "x$ac_cv_header_idn2_h" = xyes
30209 printf "%s\n" "#define HAVE_IDN2_H 1" >>confdefs.h
30214 if test "$tst_links_libidn" = "yes"; then
30216 printf "%s\n" "#define HAVE_LIBIDN2 1" >>confdefs.h
30221 curl_idn_msg="enabled (libidn2)"
30222 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
30223 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$IDN_DIR"
30224 export CURL_LIBRARY_PATH
30225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to CURL_LIBRARY_PATH" >&5
30226 printf "%s\n" "$as_me: Added $IDN_DIR to CURL_LIBRARY_PATH" >&6;}
30229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
30230 printf "%s\n" "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
30231 CPPFLAGS="$clean_CPPFLAGS"
30232 LDFLAGS="$clean_LDFLAGS"
30240 if test "x$disable_http" = "xyes" -o X"$want_hyper" != Xno; then
30241 # without HTTP or with Hyper, nghttp2 is no use
30246 # Check whether --with-nghttp2 was given.
30247 if test ${with_nghttp2+y}
30249 withval=$with_nghttp2; OPT_H2=$withval
30257 want_nghttp2="default"
30258 want_nghttp2_path=""
30259 want_nghttp2_pkg_config_path=""
30263 want_nghttp2_path="$withval"
30264 want_nghttp2_pkg_config_path="$withval/lib/pkgconfig"
30268 if test X"$want_nghttp2" != Xno; then
30269 CLEANLDFLAGS="$LDFLAGS"
30270 CLEANCPPFLAGS="$CPPFLAGS"
30274 if test -n "$PKG_CONFIG"; then
30275 PKGCONFIG="$PKG_CONFIG"
30277 if test -n "$ac_tool_prefix"; then
30278 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30279 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30281 printf %s "checking for $ac_word... " >&6; }
30282 if test ${ac_cv_path_PKGCONFIG+y}
30284 printf %s "(cached) " >&6
30288 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30292 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30293 for as_dir in $as_dummy
30296 case $as_dir in #(((
30299 *) as_dir=$as_dir/ ;;
30301 for ac_exec_ext in '' $ac_executable_extensions; do
30302 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30303 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30304 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30314 PKGCONFIG=$ac_cv_path_PKGCONFIG
30315 if test -n "$PKGCONFIG"; then
30316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30317 printf "%s\n" "$PKGCONFIG" >&6; }
30319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30320 printf "%s\n" "no" >&6; }
30325 if test -z "$ac_cv_path_PKGCONFIG"; then
30326 ac_pt_PKGCONFIG=$PKGCONFIG
30327 # Extract the first word of "pkg-config", so it can be a program name with args.
30328 set dummy pkg-config; ac_word=$2
30329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30330 printf %s "checking for $ac_word... " >&6; }
30331 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30333 printf %s "(cached) " >&6
30335 case $ac_pt_PKGCONFIG in
30337 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30341 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30342 for as_dir in $as_dummy
30345 case $as_dir in #(((
30348 *) as_dir=$as_dir/ ;;
30350 for ac_exec_ext in '' $ac_executable_extensions; do
30351 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30352 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30353 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30363 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30364 if test -n "$ac_pt_PKGCONFIG"; then
30365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30366 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30368 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30369 printf "%s\n" "no" >&6; }
30372 if test "x$ac_pt_PKGCONFIG" = x; then
30375 case $cross_compiling:$ac_tool_warned in
30377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30378 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30379 ac_tool_warned=yes ;;
30381 PKGCONFIG=$ac_pt_PKGCONFIG
30384 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30389 if test "x$PKGCONFIG" != "xno"; then
30390 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
30391 printf %s "checking for libnghttp2 options with pkg-config... " >&6; }
30393 if test -n "$want_nghttp2_pkg_config_path"; then
30394 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30395 export PKG_CONFIG_LIBDIR
30397 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
30399 if test -z "$itexists"; then
30401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30402 printf "%s\n" "no" >&6; }
30404 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30405 printf "%s\n" "found" >&6; }
30410 if test "$PKGCONFIG" != "no" ; then
30412 if test -n "$want_nghttp2_pkg_config_path"; then
30413 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30414 export PKG_CONFIG_LIBDIR
30417 $PKGCONFIG --libs-only-l libnghttp2`
30418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
30419 printf "%s\n" "$as_me: -l is $LIB_H2" >&6;}
30422 if test -n "$want_nghttp2_pkg_config_path"; then
30423 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30424 export PKG_CONFIG_LIBDIR
30426 $PKGCONFIG --cflags-only-I libnghttp2`
30427 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
30428 printf "%s\n" "$as_me: -I is $CPP_H2" >&6;}
30431 if test -n "$want_nghttp2_pkg_config_path"; then
30432 PKG_CONFIG_LIBDIR="$want_nghttp2_pkg_config_path"
30433 export PKG_CONFIG_LIBDIR
30436 $PKGCONFIG --libs-only-L libnghttp2`
30437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
30438 printf "%s\n" "$as_me: -L is $LD_H2" >&6;}
30440 DIR_H2=`echo $LD_H2 | $SED -e 's/^-L//'`
30441 elif test x"$want_nghttp2_path" != x; then
30443 LD_H2=-L${want_nghttp2_path}/lib$libsuff
30444 CPP_H2=-I${want_nghttp2_path}/include
30445 DIR_H2=${want_nghttp2_path}/lib$libsuff
30446 elif test X"$want_nghttp2" != Xdefault; then
30447 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
30450 LDFLAGS="$LDFLAGS $LD_H2"
30451 CPPFLAGS="$CPPFLAGS $CPP_H2"
30452 LIBS="$LIB_H2 $LIBS"
30454 # use nghttp2_session_set_local_window_size to require nghttp2
30456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_set_local_window_size in -lnghttp2" >&5
30457 printf %s "checking for nghttp2_session_set_local_window_size in -lnghttp2... " >&6; }
30458 if test ${ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size+y}
30460 printf %s "(cached) " >&6
30462 ac_check_lib_save_LIBS=$LIBS
30463 LIBS="-lnghttp2 $LIBS"
30464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30465 /* end confdefs.h. */
30471 char nghttp2_session_set_local_window_size ();
30474 return nghttp2_session_set_local_window_size ();
30479 if ac_fn_c_try_link "$LINENO"
30481 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=yes
30483 ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size=no
30485 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30486 conftest$ac_exeext conftest.$ac_ext
30487 LIBS=$ac_check_lib_save_LIBS
30489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&5
30490 printf "%s\n" "$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" >&6; }
30491 if test "x$ac_cv_lib_nghttp2_nghttp2_session_set_local_window_size" = xyes
30494 for ac_header in nghttp2/nghttp2.h
30496 ac_fn_c_check_header_compile "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
30497 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes
30499 printf "%s\n" "#define HAVE_NGHTTP2_NGHTTP2_H 1" >>confdefs.h
30500 curl_h2_msg="enabled (nghttp2)"
30503 printf "%s\n" "#define USE_NGHTTP2 1" >>confdefs.h
30512 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_H2"
30513 export CURL_LIBRARY_PATH
30514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_H2 to CURL_LIBRARY_PATH" >&5
30515 printf "%s\n" "$as_me: Added $DIR_H2 to CURL_LIBRARY_PATH" >&6;}
30518 LDFLAGS=$CLEANLDFLAGS
30519 CPPFLAGS=$CLEANCPPFLAGS
30529 if test "x$disable_http" = "xyes"; then
30530 # without HTTP, ngtcp2 is no use
30535 # Check whether --with-ngtcp2 was given.
30536 if test ${with_ngtcp2+y}
30538 withval=$with_ngtcp2; OPT_TCP2=$withval
30541 case "$OPT_TCP2" in
30546 want_tcp2="default"
30551 want_tcp2_path="$withval/lib/pkgconfig"
30555 curl_tcp2_msg="no (--with-ngtcp2)"
30556 if test X"$want_tcp2" != Xno; then
30557 CLEANLDFLAGS="$LDFLAGS"
30558 CLEANCPPFLAGS="$CPPFLAGS"
30562 if test -n "$PKG_CONFIG"; then
30563 PKGCONFIG="$PKG_CONFIG"
30565 if test -n "$ac_tool_prefix"; then
30566 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30567 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30568 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30569 printf %s "checking for $ac_word... " >&6; }
30570 if test ${ac_cv_path_PKGCONFIG+y}
30572 printf %s "(cached) " >&6
30576 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30580 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30581 for as_dir in $as_dummy
30584 case $as_dir in #(((
30587 *) as_dir=$as_dir/ ;;
30589 for ac_exec_ext in '' $ac_executable_extensions; do
30590 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30591 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30592 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30602 PKGCONFIG=$ac_cv_path_PKGCONFIG
30603 if test -n "$PKGCONFIG"; then
30604 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30605 printf "%s\n" "$PKGCONFIG" >&6; }
30607 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30608 printf "%s\n" "no" >&6; }
30613 if test -z "$ac_cv_path_PKGCONFIG"; then
30614 ac_pt_PKGCONFIG=$PKGCONFIG
30615 # Extract the first word of "pkg-config", so it can be a program name with args.
30616 set dummy pkg-config; ac_word=$2
30617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30618 printf %s "checking for $ac_word... " >&6; }
30619 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30621 printf %s "(cached) " >&6
30623 case $ac_pt_PKGCONFIG in
30625 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30629 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30630 for as_dir in $as_dummy
30633 case $as_dir in #(((
30636 *) as_dir=$as_dir/ ;;
30638 for ac_exec_ext in '' $ac_executable_extensions; do
30639 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30640 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30641 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30651 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30652 if test -n "$ac_pt_PKGCONFIG"; then
30653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30654 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30656 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30657 printf "%s\n" "no" >&6; }
30660 if test "x$ac_pt_PKGCONFIG" = x; then
30663 case $cross_compiling:$ac_tool_warned in
30665 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30666 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30667 ac_tool_warned=yes ;;
30669 PKGCONFIG=$ac_pt_PKGCONFIG
30672 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30677 if test "x$PKGCONFIG" != "xno"; then
30678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2 options with pkg-config" >&5
30679 printf %s "checking for libngtcp2 options with pkg-config... " >&6; }
30681 if test -n "$want_tcp2_path"; then
30682 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30683 export PKG_CONFIG_LIBDIR
30685 $PKGCONFIG --exists libngtcp2 >/dev/null 2>&1 && echo 1`
30687 if test -z "$itexists"; then
30689 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30690 printf "%s\n" "no" >&6; }
30692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30693 printf "%s\n" "found" >&6; }
30698 if test "$PKGCONFIG" != "no" ; then
30700 if test -n "$want_tcp2_path"; then
30701 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30702 export PKG_CONFIG_LIBDIR
30705 $PKGCONFIG --libs-only-l libngtcp2`
30706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_TCP2" >&5
30707 printf "%s\n" "$as_me: -l is $LIB_TCP2" >&6;}
30710 if test -n "$want_tcp2_path"; then
30711 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30712 export PKG_CONFIG_LIBDIR
30714 $PKGCONFIG --cflags-only-I libngtcp2`
30715 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_TCP2" >&5
30716 printf "%s\n" "$as_me: -I is $CPP_TCP2" >&6;}
30719 if test -n "$want_tcp2_path"; then
30720 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30721 export PKG_CONFIG_LIBDIR
30724 $PKGCONFIG --libs-only-L libngtcp2`
30725 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_TCP2" >&5
30726 printf "%s\n" "$as_me: -L is $LD_TCP2" >&6;}
30728 LDFLAGS="$LDFLAGS $LD_TCP2"
30729 CPPFLAGS="$CPPFLAGS $CPP_TCP2"
30730 LIBS="$LIB_TCP2 $LIBS"
30732 if test "x$cross_compiling" != "xyes"; then
30733 DIR_TCP2=`echo $LD_TCP2 | $SED -e 's/^-L//'`
30735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_conn_client_new_versioned in -lngtcp2" >&5
30736 printf %s "checking for ngtcp2_conn_client_new_versioned in -lngtcp2... " >&6; }
30737 if test ${ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned+y}
30739 printf %s "(cached) " >&6
30741 ac_check_lib_save_LIBS=$LIBS
30742 LIBS="-lngtcp2 $LIBS"
30743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30744 /* end confdefs.h. */
30750 char ngtcp2_conn_client_new_versioned ();
30753 return ngtcp2_conn_client_new_versioned ();
30758 if ac_fn_c_try_link "$LINENO"
30760 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=yes
30762 ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned=no
30764 rm -f core conftest.err conftest.$ac_objext conftest.beam \
30765 conftest$ac_exeext conftest.$ac_ext
30766 LIBS=$ac_check_lib_save_LIBS
30768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&5
30769 printf "%s\n" "$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" >&6; }
30770 if test "x$ac_cv_lib_ngtcp2_ngtcp2_conn_client_new_versioned" = xyes
30773 for ac_header in ngtcp2/ngtcp2.h
30775 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2.h" "ac_cv_header_ngtcp2_ngtcp2_h" "$ac_includes_default"
30776 if test "x$ac_cv_header_ngtcp2_ngtcp2_h" = xyes
30778 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_H 1" >>confdefs.h
30781 printf "%s\n" "#define USE_NGTCP2 1" >>confdefs.h
30785 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_TCP2"
30786 export CURL_LIBRARY_PATH
30787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&5
30788 printf "%s\n" "$as_me: Added $DIR_TCP2 to CURL_LIBRARY_PATH" >&6;}
30795 LDFLAGS=$CLEANLDFLAGS
30796 CPPFLAGS=$CLEANCPPFLAGS
30803 if test X"$want_tcp2" != Xdefault; then
30804 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2 pkg-config file." "$LINENO" 5
30810 if test "x$NGTCP2_ENABLED" = "x1" -a "x$OPENSSL_ENABLED" = "x1"; then
30811 CLEANLDFLAGS="$LDFLAGS"
30812 CLEANCPPFLAGS="$CPPFLAGS"
30816 if test -n "$PKG_CONFIG"; then
30817 PKGCONFIG="$PKG_CONFIG"
30819 if test -n "$ac_tool_prefix"; then
30820 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
30821 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
30822 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30823 printf %s "checking for $ac_word... " >&6; }
30824 if test ${ac_cv_path_PKGCONFIG+y}
30826 printf %s "(cached) " >&6
30830 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
30833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30834 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30835 for as_dir in $as_dummy
30838 case $as_dir in #(((
30841 *) as_dir=$as_dir/ ;;
30843 for ac_exec_ext in '' $ac_executable_extensions; do
30844 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30845 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30846 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30856 PKGCONFIG=$ac_cv_path_PKGCONFIG
30857 if test -n "$PKGCONFIG"; then
30858 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
30859 printf "%s\n" "$PKGCONFIG" >&6; }
30861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30862 printf "%s\n" "no" >&6; }
30867 if test -z "$ac_cv_path_PKGCONFIG"; then
30868 ac_pt_PKGCONFIG=$PKGCONFIG
30869 # Extract the first word of "pkg-config", so it can be a program name with args.
30870 set dummy pkg-config; ac_word=$2
30871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
30872 printf %s "checking for $ac_word... " >&6; }
30873 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
30875 printf %s "(cached) " >&6
30877 case $ac_pt_PKGCONFIG in
30879 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
30882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30883 as_dummy="$PATH:/usr/bin:/usr/local/bin"
30884 for as_dir in $as_dummy
30887 case $as_dir in #(((
30890 *) as_dir=$as_dir/ ;;
30892 for ac_exec_ext in '' $ac_executable_extensions; do
30893 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
30894 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
30895 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
30905 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
30906 if test -n "$ac_pt_PKGCONFIG"; then
30907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
30908 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
30910 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30911 printf "%s\n" "no" >&6; }
30914 if test "x$ac_pt_PKGCONFIG" = x; then
30917 case $cross_compiling:$ac_tool_warned in
30919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
30920 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
30921 ac_tool_warned=yes ;;
30923 PKGCONFIG=$ac_pt_PKGCONFIG
30926 PKGCONFIG="$ac_cv_path_PKGCONFIG"
30931 if test "x$PKGCONFIG" != "xno"; then
30932 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_openssl options with pkg-config" >&5
30933 printf %s "checking for libngtcp2_crypto_openssl options with pkg-config... " >&6; }
30935 if test -n "$want_tcp2_path"; then
30936 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30937 export PKG_CONFIG_LIBDIR
30939 $PKGCONFIG --exists libngtcp2_crypto_openssl >/dev/null 2>&1 && echo 1`
30941 if test -z "$itexists"; then
30943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
30944 printf "%s\n" "no" >&6; }
30946 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
30947 printf "%s\n" "found" >&6; }
30952 if test "$PKGCONFIG" != "no" ; then
30953 LIB_NGTCP2_CRYPTO_OPENSSL=`
30954 if test -n "$want_tcp2_path"; then
30955 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30956 export PKG_CONFIG_LIBDIR
30959 $PKGCONFIG --libs-only-l libngtcp2_crypto_openssl`
30960 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&5
30961 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_OPENSSL" >&6;}
30963 CPP_NGTCP2_CRYPTO_OPENSSL=`
30964 if test -n "$want_tcp2_path"; then
30965 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30966 export PKG_CONFIG_LIBDIR
30968 $PKGCONFIG --cflags-only-I libngtcp2_crypto_openssl`
30969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&5
30970 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_OPENSSL" >&6;}
30972 LD_NGTCP2_CRYPTO_OPENSSL=`
30973 if test -n "$want_tcp2_path"; then
30974 PKG_CONFIG_LIBDIR="$want_tcp2_path"
30975 export PKG_CONFIG_LIBDIR
30978 $PKGCONFIG --libs-only-L libngtcp2_crypto_openssl`
30979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&5
30980 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_OPENSSL" >&6;}
30982 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_OPENSSL"
30983 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_OPENSSL"
30984 LIBS="$LIB_NGTCP2_CRYPTO_OPENSSL $LIBS"
30986 if test "x$cross_compiling" != "xyes"; then
30987 DIR_NGTCP2_CRYPTO_OPENSSL=`echo $LD_NGTCP2_CRYPTO_OPENSSL | $SED -e 's/^-L//'`
30989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl" >&5
30990 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_openssl... " >&6; }
30991 if test ${ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb+y}
30993 printf %s "(cached) " >&6
30995 ac_check_lib_save_LIBS=$LIBS
30996 LIBS="-lngtcp2_crypto_openssl $LIBS"
30997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30998 /* end confdefs.h. */
31004 char ngtcp2_crypto_recv_client_initial_cb ();
31007 return ngtcp2_crypto_recv_client_initial_cb ();
31012 if ac_fn_c_try_link "$LINENO"
31014 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=yes
31016 ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb=no
31018 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31019 conftest$ac_exeext conftest.$ac_ext
31020 LIBS=$ac_check_lib_save_LIBS
31022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31023 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31024 if test "x$ac_cv_lib_ngtcp2_crypto_openssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31027 for ac_header in ngtcp2/ngtcp2_crypto.h
31029 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31030 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31032 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31035 printf "%s\n" "#define USE_NGTCP2_CRYPTO_OPENSSL 1" >>confdefs.h
31037 USE_NGTCP2_CRYPTO_OPENSSL=1
31039 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_OPENSSL"
31040 export CURL_LIBRARY_PATH
31041 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&5
31042 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_OPENSSL to CURL_LIBRARY_PATH" >&6;}
31049 LDFLAGS=$CLEANLDFLAGS
31050 CPPFLAGS=$CLEANCPPFLAGS
31057 if test X"$want_tcp2" != Xdefault; then
31058 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_openssl pkg-config file." "$LINENO" 5
31063 if test "x$NGTCP2_ENABLED" = "x1" -a "x$GNUTLS_ENABLED" = "x1"; then
31064 CLEANLDFLAGS="$LDFLAGS"
31065 CLEANCPPFLAGS="$CPPFLAGS"
31069 if test -n "$PKG_CONFIG"; then
31070 PKGCONFIG="$PKG_CONFIG"
31072 if test -n "$ac_tool_prefix"; then
31073 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31074 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31075 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31076 printf %s "checking for $ac_word... " >&6; }
31077 if test ${ac_cv_path_PKGCONFIG+y}
31079 printf %s "(cached) " >&6
31083 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31087 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31088 for as_dir in $as_dummy
31091 case $as_dir in #(((
31094 *) as_dir=$as_dir/ ;;
31096 for ac_exec_ext in '' $ac_executable_extensions; do
31097 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31098 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31099 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31109 PKGCONFIG=$ac_cv_path_PKGCONFIG
31110 if test -n "$PKGCONFIG"; then
31111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31112 printf "%s\n" "$PKGCONFIG" >&6; }
31114 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31115 printf "%s\n" "no" >&6; }
31120 if test -z "$ac_cv_path_PKGCONFIG"; then
31121 ac_pt_PKGCONFIG=$PKGCONFIG
31122 # Extract the first word of "pkg-config", so it can be a program name with args.
31123 set dummy pkg-config; ac_word=$2
31124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31125 printf %s "checking for $ac_word... " >&6; }
31126 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31128 printf %s "(cached) " >&6
31130 case $ac_pt_PKGCONFIG in
31132 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31136 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31137 for as_dir in $as_dummy
31140 case $as_dir in #(((
31143 *) as_dir=$as_dir/ ;;
31145 for ac_exec_ext in '' $ac_executable_extensions; do
31146 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31147 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31148 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31158 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31159 if test -n "$ac_pt_PKGCONFIG"; then
31160 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31161 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31164 printf "%s\n" "no" >&6; }
31167 if test "x$ac_pt_PKGCONFIG" = x; then
31170 case $cross_compiling:$ac_tool_warned in
31172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31173 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31174 ac_tool_warned=yes ;;
31176 PKGCONFIG=$ac_pt_PKGCONFIG
31179 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31184 if test "x$PKGCONFIG" != "xno"; then
31185 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_gnutls options with pkg-config" >&5
31186 printf %s "checking for libngtcp2_crypto_gnutls options with pkg-config... " >&6; }
31188 if test -n "$want_tcp2_path"; then
31189 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31190 export PKG_CONFIG_LIBDIR
31192 $PKGCONFIG --exists libngtcp2_crypto_gnutls >/dev/null 2>&1 && echo 1`
31194 if test -z "$itexists"; then
31196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31197 printf "%s\n" "no" >&6; }
31199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31200 printf "%s\n" "found" >&6; }
31205 if test "$PKGCONFIG" != "no" ; then
31206 LIB_NGTCP2_CRYPTO_GNUTLS=`
31207 if test -n "$want_tcp2_path"; then
31208 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31209 export PKG_CONFIG_LIBDIR
31212 $PKGCONFIG --libs-only-l libngtcp2_crypto_gnutls`
31213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&5
31214 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_GNUTLS" >&6;}
31216 CPP_NGTCP2_CRYPTO_GNUTLS=`
31217 if test -n "$want_tcp2_path"; then
31218 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31219 export PKG_CONFIG_LIBDIR
31221 $PKGCONFIG --cflags-only-I libngtcp2_crypto_gnutls`
31222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&5
31223 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_GNUTLS" >&6;}
31225 LD_NGTCP2_CRYPTO_GNUTLS=`
31226 if test -n "$want_tcp2_path"; then
31227 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31228 export PKG_CONFIG_LIBDIR
31231 $PKGCONFIG --libs-only-L libngtcp2_crypto_gnutls`
31232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&5
31233 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_GNUTLS" >&6;}
31235 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_GNUTLS"
31236 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_GNUTLS"
31237 LIBS="$LIB_NGTCP2_CRYPTO_GNUTLS $LIBS"
31239 if test "x$cross_compiling" != "xyes"; then
31240 DIR_NGTCP2_CRYPTO_GNUTLS=`echo $LD_NGTCP2_CRYPTO_GNUTLS | $SED -e 's/^-L//'`
31242 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls" >&5
31243 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_gnutls... " >&6; }
31244 if test ${ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb+y}
31246 printf %s "(cached) " >&6
31248 ac_check_lib_save_LIBS=$LIBS
31249 LIBS="-lngtcp2_crypto_gnutls $LIBS"
31250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31251 /* end confdefs.h. */
31257 char ngtcp2_crypto_recv_client_initial_cb ();
31260 return ngtcp2_crypto_recv_client_initial_cb ();
31265 if ac_fn_c_try_link "$LINENO"
31267 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=yes
31269 ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb=no
31271 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31272 conftest$ac_exeext conftest.$ac_ext
31273 LIBS=$ac_check_lib_save_LIBS
31275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&5
31276 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31277 if test "x$ac_cv_lib_ngtcp2_crypto_gnutls_ngtcp2_crypto_recv_client_initial_cb" = xyes
31280 for ac_header in ngtcp2/ngtcp2_crypto.h
31282 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31283 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31285 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31288 printf "%s\n" "#define USE_NGTCP2_CRYPTO_GNUTLS 1" >>confdefs.h
31290 USE_NGTCP2_CRYPTO_GNUTLS=1
31292 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_GNUTLS"
31293 export CURL_LIBRARY_PATH
31294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&5
31295 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_GNUTLS to CURL_LIBRARY_PATH" >&6;}
31302 LDFLAGS=$CLEANLDFLAGS
31303 CPPFLAGS=$CLEANCPPFLAGS
31310 if test X"$want_tcp2" != Xdefault; then
31311 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_gnutls pkg-config file." "$LINENO" 5
31316 if test "x$NGTCP2_ENABLED" = "x1" -a "x$WOLFSSL_ENABLED" = "x1"; then
31317 CLEANLDFLAGS="$LDFLAGS"
31318 CLEANCPPFLAGS="$CPPFLAGS"
31322 if test -n "$PKG_CONFIG"; then
31323 PKGCONFIG="$PKG_CONFIG"
31325 if test -n "$ac_tool_prefix"; then
31326 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31327 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31328 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31329 printf %s "checking for $ac_word... " >&6; }
31330 if test ${ac_cv_path_PKGCONFIG+y}
31332 printf %s "(cached) " >&6
31336 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31339 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31340 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31341 for as_dir in $as_dummy
31344 case $as_dir in #(((
31347 *) as_dir=$as_dir/ ;;
31349 for ac_exec_ext in '' $ac_executable_extensions; do
31350 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31351 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31352 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31362 PKGCONFIG=$ac_cv_path_PKGCONFIG
31363 if test -n "$PKGCONFIG"; then
31364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31365 printf "%s\n" "$PKGCONFIG" >&6; }
31367 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31368 printf "%s\n" "no" >&6; }
31373 if test -z "$ac_cv_path_PKGCONFIG"; then
31374 ac_pt_PKGCONFIG=$PKGCONFIG
31375 # Extract the first word of "pkg-config", so it can be a program name with args.
31376 set dummy pkg-config; ac_word=$2
31377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31378 printf %s "checking for $ac_word... " >&6; }
31379 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31381 printf %s "(cached) " >&6
31383 case $ac_pt_PKGCONFIG in
31385 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31389 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31390 for as_dir in $as_dummy
31393 case $as_dir in #(((
31396 *) as_dir=$as_dir/ ;;
31398 for ac_exec_ext in '' $ac_executable_extensions; do
31399 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31400 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31401 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31411 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31412 if test -n "$ac_pt_PKGCONFIG"; then
31413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31414 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31416 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31417 printf "%s\n" "no" >&6; }
31420 if test "x$ac_pt_PKGCONFIG" = x; then
31423 case $cross_compiling:$ac_tool_warned in
31425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31426 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31427 ac_tool_warned=yes ;;
31429 PKGCONFIG=$ac_pt_PKGCONFIG
31432 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31437 if test "x$PKGCONFIG" != "xno"; then
31438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libngtcp2_crypto_wolfssl options with pkg-config" >&5
31439 printf %s "checking for libngtcp2_crypto_wolfssl options with pkg-config... " >&6; }
31441 if test -n "$want_tcp2_path"; then
31442 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31443 export PKG_CONFIG_LIBDIR
31445 $PKGCONFIG --exists libngtcp2_crypto_wolfssl >/dev/null 2>&1 && echo 1`
31447 if test -z "$itexists"; then
31449 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31450 printf "%s\n" "no" >&6; }
31452 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31453 printf "%s\n" "found" >&6; }
31458 if test "$PKGCONFIG" != "no" ; then
31459 LIB_NGTCP2_CRYPTO_WOLFSSL=`
31460 if test -n "$want_tcp2_path"; then
31461 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31462 export PKG_CONFIG_LIBDIR
31465 $PKGCONFIG --libs-only-l libngtcp2_crypto_wolfssl`
31466 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&5
31467 printf "%s\n" "$as_me: -l is $LIB_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31469 CPP_NGTCP2_CRYPTO_WOLFSSL=`
31470 if test -n "$want_tcp2_path"; then
31471 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31472 export PKG_CONFIG_LIBDIR
31474 $PKGCONFIG --cflags-only-I libngtcp2_crypto_wolfssl`
31475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&5
31476 printf "%s\n" "$as_me: -I is $CPP_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31478 LD_NGTCP2_CRYPTO_WOLFSSL=`
31479 if test -n "$want_tcp2_path"; then
31480 PKG_CONFIG_LIBDIR="$want_tcp2_path"
31481 export PKG_CONFIG_LIBDIR
31484 $PKGCONFIG --libs-only-L libngtcp2_crypto_wolfssl`
31485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&5
31486 printf "%s\n" "$as_me: -L is $LD_NGTCP2_CRYPTO_WOLFSSL" >&6;}
31488 LDFLAGS="$LDFLAGS $LD_NGTCP2_CRYPTO_WOLFSSL"
31489 CPPFLAGS="$CPPFLAGS $CPP_NGTCP2_CRYPTO_WOLFSSL"
31490 LIBS="$LIB_NGTCP2_CRYPTO_WOLFSSL $LIBS"
31492 if test "x$cross_compiling" != "xyes"; then
31493 DIR_NGTCP2_CRYPTO_WOLFSSL=`echo $LD_NGTCP2_CRYPTO_WOLFSSL | $SED -e 's/^-L//'`
31495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl" >&5
31496 printf %s "checking for ngtcp2_crypto_recv_client_initial_cb in -lngtcp2_crypto_wolfssl... " >&6; }
31497 if test ${ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb+y}
31499 printf %s "(cached) " >&6
31501 ac_check_lib_save_LIBS=$LIBS
31502 LIBS="-lngtcp2_crypto_wolfssl $LIBS"
31503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31504 /* end confdefs.h. */
31510 char ngtcp2_crypto_recv_client_initial_cb ();
31513 return ngtcp2_crypto_recv_client_initial_cb ();
31518 if ac_fn_c_try_link "$LINENO"
31520 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=yes
31522 ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb=no
31524 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31525 conftest$ac_exeext conftest.$ac_ext
31526 LIBS=$ac_check_lib_save_LIBS
31528 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&5
31529 printf "%s\n" "$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" >&6; }
31530 if test "x$ac_cv_lib_ngtcp2_crypto_wolfssl_ngtcp2_crypto_recv_client_initial_cb" = xyes
31533 for ac_header in ngtcp2/ngtcp2_crypto.h
31535 ac_fn_c_check_header_compile "$LINENO" "ngtcp2/ngtcp2_crypto.h" "ac_cv_header_ngtcp2_ngtcp2_crypto_h" "$ac_includes_default"
31536 if test "x$ac_cv_header_ngtcp2_ngtcp2_crypto_h" = xyes
31538 printf "%s\n" "#define HAVE_NGTCP2_NGTCP2_CRYPTO_H 1" >>confdefs.h
31541 printf "%s\n" "#define USE_NGTCP2_CRYPTO_WOLFSSL 1" >>confdefs.h
31543 USE_NGTCP2_CRYPTO_WOLFSSL=1
31545 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGTCP2_CRYPTO_WOLFSSL"
31546 export CURL_LIBRARY_PATH
31547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&5
31548 printf "%s\n" "$as_me: Added $DIR_NGTCP2_CRYPTO_WOLFSSL to CURL_LIBRARY_PATH" >&6;}
31555 LDFLAGS=$CLEANLDFLAGS
31556 CPPFLAGS=$CLEANCPPFLAGS
31563 if test X"$want_tcp2" != Xdefault; then
31564 as_fn_error $? "--with-ngtcp2 was specified but could not find ngtcp2_crypto_wolfssl pkg-config file." "$LINENO" 5
31572 if test "x$NGTCP2_ENABLED" = "x"; then
31573 # without ngtcp2, nghttp3 is of no use for us
31578 # Check whether --with-nghttp3 was given.
31579 if test ${with_nghttp3+y}
31581 withval=$with_nghttp3; OPT_NGHTTP3=$withval
31584 case "$OPT_NGHTTP3" in
31589 want_nghttp3="default"
31590 want_nghttp3_path=""
31594 want_nghttp3_path="$withval/lib/pkgconfig"
31598 curl_http3_msg="no (--with-nghttp3)"
31599 if test X"$want_nghttp3" != Xno; then
31600 CLEANLDFLAGS="$LDFLAGS"
31601 CLEANCPPFLAGS="$CPPFLAGS"
31605 if test -n "$PKG_CONFIG"; then
31606 PKGCONFIG="$PKG_CONFIG"
31608 if test -n "$ac_tool_prefix"; then
31609 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31610 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31611 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31612 printf %s "checking for $ac_word... " >&6; }
31613 if test ${ac_cv_path_PKGCONFIG+y}
31615 printf %s "(cached) " >&6
31619 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31623 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31624 for as_dir in $as_dummy
31627 case $as_dir in #(((
31630 *) as_dir=$as_dir/ ;;
31632 for ac_exec_ext in '' $ac_executable_extensions; do
31633 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31634 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31635 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31645 PKGCONFIG=$ac_cv_path_PKGCONFIG
31646 if test -n "$PKGCONFIG"; then
31647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31648 printf "%s\n" "$PKGCONFIG" >&6; }
31650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31651 printf "%s\n" "no" >&6; }
31656 if test -z "$ac_cv_path_PKGCONFIG"; then
31657 ac_pt_PKGCONFIG=$PKGCONFIG
31658 # Extract the first word of "pkg-config", so it can be a program name with args.
31659 set dummy pkg-config; ac_word=$2
31660 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31661 printf %s "checking for $ac_word... " >&6; }
31662 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31664 printf %s "(cached) " >&6
31666 case $ac_pt_PKGCONFIG in
31668 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31672 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31673 for as_dir in $as_dummy
31676 case $as_dir in #(((
31679 *) as_dir=$as_dir/ ;;
31681 for ac_exec_ext in '' $ac_executable_extensions; do
31682 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31683 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31684 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31694 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31695 if test -n "$ac_pt_PKGCONFIG"; then
31696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31697 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31700 printf "%s\n" "no" >&6; }
31703 if test "x$ac_pt_PKGCONFIG" = x; then
31706 case $cross_compiling:$ac_tool_warned in
31708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31709 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31710 ac_tool_warned=yes ;;
31712 PKGCONFIG=$ac_pt_PKGCONFIG
31715 PKGCONFIG="$ac_cv_path_PKGCONFIG"
31720 if test "x$PKGCONFIG" != "xno"; then
31721 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libnghttp3 options with pkg-config" >&5
31722 printf %s "checking for libnghttp3 options with pkg-config... " >&6; }
31724 if test -n "$want_nghttp3_path"; then
31725 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31726 export PKG_CONFIG_LIBDIR
31728 $PKGCONFIG --exists libnghttp3 >/dev/null 2>&1 && echo 1`
31730 if test -z "$itexists"; then
31732 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31733 printf "%s\n" "no" >&6; }
31735 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
31736 printf "%s\n" "found" >&6; }
31741 if test "$PKGCONFIG" != "no" ; then
31743 if test -n "$want_nghttp3_path"; then
31744 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31745 export PKG_CONFIG_LIBDIR
31748 $PKGCONFIG --libs-only-l libnghttp3`
31749 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_NGHTTP3" >&5
31750 printf "%s\n" "$as_me: -l is $LIB_NGHTTP3" >&6;}
31753 if test -n "$want_nghttp3_path"; then
31754 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31755 export PKG_CONFIG_LIBDIR
31757 $PKGCONFIG --cflags-only-I libnghttp3`
31758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_NGHTTP3" >&5
31759 printf "%s\n" "$as_me: -I is $CPP_NGHTTP3" >&6;}
31762 if test -n "$want_nghttp3_path"; then
31763 PKG_CONFIG_LIBDIR="$want_nghttp3_path"
31764 export PKG_CONFIG_LIBDIR
31767 $PKGCONFIG --libs-only-L libnghttp3`
31768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_NGHTTP3" >&5
31769 printf "%s\n" "$as_me: -L is $LD_NGHTTP3" >&6;}
31771 LDFLAGS="$LDFLAGS $LD_NGHTTP3"
31772 CPPFLAGS="$CPPFLAGS $CPP_NGHTTP3"
31773 LIBS="$LIB_NGHTTP3 $LIBS"
31775 if test "x$cross_compiling" != "xyes"; then
31776 DIR_NGHTTP3=`echo $LD_NGHTTP3 | $SED -e 's/^-L//'`
31778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nghttp3_conn_client_new_versioned in -lnghttp3" >&5
31779 printf %s "checking for nghttp3_conn_client_new_versioned in -lnghttp3... " >&6; }
31780 if test ${ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned+y}
31782 printf %s "(cached) " >&6
31784 ac_check_lib_save_LIBS=$LIBS
31785 LIBS="-lnghttp3 $LIBS"
31786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31787 /* end confdefs.h. */
31793 char nghttp3_conn_client_new_versioned ();
31796 return nghttp3_conn_client_new_versioned ();
31801 if ac_fn_c_try_link "$LINENO"
31803 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=yes
31805 ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned=no
31807 rm -f core conftest.err conftest.$ac_objext conftest.beam \
31808 conftest$ac_exeext conftest.$ac_ext
31809 LIBS=$ac_check_lib_save_LIBS
31811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&5
31812 printf "%s\n" "$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" >&6; }
31813 if test "x$ac_cv_lib_nghttp3_nghttp3_conn_client_new_versioned" = xyes
31816 for ac_header in nghttp3/nghttp3.h
31818 ac_fn_c_check_header_compile "$LINENO" "nghttp3/nghttp3.h" "ac_cv_header_nghttp3_nghttp3_h" "$ac_includes_default"
31819 if test "x$ac_cv_header_nghttp3_nghttp3_h" = xyes
31821 printf "%s\n" "#define HAVE_NGHTTP3_NGHTTP3_H 1" >>confdefs.h
31822 curl_h3_msg="enabled (ngtcp2 + nghttp3)"
31825 printf "%s\n" "#define USE_NGHTTP3 1" >>confdefs.h
31829 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_NGHTTP3"
31830 export CURL_LIBRARY_PATH
31831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&5
31832 printf "%s\n" "$as_me: Added $DIR_NGHTTP3 to CURL_LIBRARY_PATH" >&6;}
31833 experimental="$experimental HTTP3"
31840 LDFLAGS=$CLEANLDFLAGS
31841 CPPFLAGS=$CLEANCPPFLAGS
31848 if test X"$want_nghttp3" != Xdefault; then
31849 as_fn_error $? "--with-nghttp3 was specified but could not find nghttp3 pkg-config file." "$LINENO" 5
31858 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
31859 # without HTTP or with ngtcp2, quiche is no use
31864 # Check whether --with-quiche was given.
31865 if test ${with_quiche+y}
31867 withval=$with_quiche; OPT_QUICHE=$withval
31870 case "$OPT_QUICHE" in
31875 want_quiche="default"
31876 want_quiche_path=""
31880 want_quiche_path="$withval"
31884 if test X"$want_quiche" != Xno; then
31886 if test "$NGHTTP3_ENABLED" = 1; then
31887 as_fn_error $? "--with-quiche and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
31890 CLEANLDFLAGS="$LDFLAGS"
31891 CLEANCPPFLAGS="$CPPFLAGS"
31895 if test -n "$PKG_CONFIG"; then
31896 PKGCONFIG="$PKG_CONFIG"
31898 if test -n "$ac_tool_prefix"; then
31899 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
31900 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
31901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31902 printf %s "checking for $ac_word... " >&6; }
31903 if test ${ac_cv_path_PKGCONFIG+y}
31905 printf %s "(cached) " >&6
31909 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
31912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31913 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31914 for as_dir in $as_dummy
31917 case $as_dir in #(((
31920 *) as_dir=$as_dir/ ;;
31922 for ac_exec_ext in '' $ac_executable_extensions; do
31923 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31924 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31925 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31935 PKGCONFIG=$ac_cv_path_PKGCONFIG
31936 if test -n "$PKGCONFIG"; then
31937 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
31938 printf "%s\n" "$PKGCONFIG" >&6; }
31940 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31941 printf "%s\n" "no" >&6; }
31946 if test -z "$ac_cv_path_PKGCONFIG"; then
31947 ac_pt_PKGCONFIG=$PKGCONFIG
31948 # Extract the first word of "pkg-config", so it can be a program name with args.
31949 set dummy pkg-config; ac_word=$2
31950 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31951 printf %s "checking for $ac_word... " >&6; }
31952 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
31954 printf %s "(cached) " >&6
31956 case $ac_pt_PKGCONFIG in
31958 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
31961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31962 as_dummy="$PATH:/usr/bin:/usr/local/bin"
31963 for as_dir in $as_dummy
31966 case $as_dir in #(((
31969 *) as_dir=$as_dir/ ;;
31971 for ac_exec_ext in '' $ac_executable_extensions; do
31972 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
31973 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
31974 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
31984 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
31985 if test -n "$ac_pt_PKGCONFIG"; then
31986 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
31987 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
31989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
31990 printf "%s\n" "no" >&6; }
31993 if test "x$ac_pt_PKGCONFIG" = x; then
31996 case $cross_compiling:$ac_tool_warned in
31998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
31999 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32000 ac_tool_warned=yes ;;
32002 PKGCONFIG=$ac_pt_PKGCONFIG
32005 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32010 if test "x$PKGCONFIG" != "xno"; then
32011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche options with pkg-config" >&5
32012 printf %s "checking for quiche options with pkg-config... " >&6; }
32014 if test -n "$want_quiche_path"; then
32015 PKG_CONFIG_LIBDIR="$want_quiche_path"
32016 export PKG_CONFIG_LIBDIR
32018 $PKGCONFIG --exists quiche >/dev/null 2>&1 && echo 1`
32020 if test -z "$itexists"; then
32022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32023 printf "%s\n" "no" >&6; }
32025 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32026 printf "%s\n" "found" >&6; }
32031 if test "$PKGCONFIG" != "no" ; then
32033 if test -n "$want_quiche_path"; then
32034 PKG_CONFIG_LIBDIR="$want_quiche_path"
32035 export PKG_CONFIG_LIBDIR
32038 $PKGCONFIG --libs-only-l quiche`
32039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -l is $LIB_QUICHE" >&5
32040 printf "%s\n" "$as_me: -l is $LIB_QUICHE" >&6;}
32043 if test -n "$want_quiche_path"; then
32044 PKG_CONFIG_LIBDIR="$want_quiche_path"
32045 export PKG_CONFIG_LIBDIR
32047 $PKGCONFIG --cflags-only-I quiche`
32048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -I is $CPP_QUICHE" >&5
32049 printf "%s\n" "$as_me: -I is $CPP_QUICHE" >&6;}
32052 if test -n "$want_quiche_path"; then
32053 PKG_CONFIG_LIBDIR="$want_quiche_path"
32054 export PKG_CONFIG_LIBDIR
32057 $PKGCONFIG --libs-only-L quiche`
32058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: -L is $LD_QUICHE" >&5
32059 printf "%s\n" "$as_me: -L is $LD_QUICHE" >&6;}
32061 LDFLAGS="$LDFLAGS $LD_QUICHE"
32062 CPPFLAGS="$CPPFLAGS $CPP_QUICHE"
32063 LIBS="$LIB_QUICHE $LIBS"
32065 if test "x$cross_compiling" != "xyes"; then
32066 DIR_QUICHE=`echo $LD_QUICHE | $SED -e 's/^-L//'`
32068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for quiche_connect in -lquiche" >&5
32069 printf %s "checking for quiche_connect in -lquiche... " >&6; }
32070 if test ${ac_cv_lib_quiche_quiche_connect+y}
32072 printf %s "(cached) " >&6
32074 ac_check_lib_save_LIBS=$LIBS
32075 LIBS="-lquiche $LIBS"
32076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32077 /* end confdefs.h. */
32083 char quiche_connect ();
32086 return quiche_connect ();
32091 if ac_fn_c_try_link "$LINENO"
32093 ac_cv_lib_quiche_quiche_connect=yes
32095 ac_cv_lib_quiche_quiche_connect=no
32097 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32098 conftest$ac_exeext conftest.$ac_ext
32099 LIBS=$ac_check_lib_save_LIBS
32101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_quiche_quiche_connect" >&5
32102 printf "%s\n" "$ac_cv_lib_quiche_quiche_connect" >&6; }
32103 if test "x$ac_cv_lib_quiche_quiche_connect" = xyes
32106 for ac_header in quiche.h
32108 ac_fn_c_check_header_compile "$LINENO" "quiche.h" "ac_cv_header_quiche_h" "
32109 $ac_includes_default
32110 #include <sys/socket.h>
32114 if test "x$ac_cv_header_quiche_h" = xyes
32116 printf "%s\n" "#define HAVE_QUICHE_H 1" >>confdefs.h
32117 experimental="$experimental HTTP3"
32118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: HTTP3 support is experimental" >&5
32119 printf "%s\n" "$as_me: HTTP3 support is experimental" >&6;}
32120 curl_h3_msg="enabled (quiche)"
32123 printf "%s\n" "#define USE_QUICHE 1" >>confdefs.h
32127 ac_fn_c_check_func "$LINENO" "quiche_conn_set_qlog_fd" "ac_cv_func_quiche_conn_set_qlog_fd"
32128 if test "x$ac_cv_func_quiche_conn_set_qlog_fd" = xyes
32130 printf "%s\n" "#define HAVE_QUICHE_CONN_SET_QLOG_FD 1" >>confdefs.h
32134 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_QUICHE"
32135 export CURL_LIBRARY_PATH
32136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&5
32137 printf "%s\n" "$as_me: Added $DIR_QUICHE to CURL_LIBRARY_PATH" >&6;}
32143 as_fn_error $? "couldn't use quiche" "$LINENO" 5
32148 if test X"$want_quiche" != Xdefault; then
32149 as_fn_error $? "--with-quiche was specified but could not find quiche pkg-config file." "$LINENO" 5
32157 if test "x$disable_http" = "xyes" -o "x$USE_NGTCP" = "x1"; then
32158 # without HTTP or with ngtcp2, msh3 is no use
32163 # Check whether --with-msh3 was given.
32164 if test ${with_msh3+y}
32166 withval=$with_msh3; OPT_MSH3=$withval
32169 case "$OPT_MSH3" in
32174 want_msh3="default"
32179 want_msh3_path="$withval"
32183 if test X"$want_msh3" != Xno; then
32185 if test "$NGHTTP3_ENABLED" = 1; then
32186 as_fn_error $? "--with-msh3 and --with-ngtcp2 are mutually exclusive" "$LINENO" 5
32189 CLEANLDFLAGS="$LDFLAGS"
32190 CLEANCPPFLAGS="$CPPFLAGS"
32193 if test -n "$want_msh3_path"; then
32194 LD_MSH3="-L$want_msh3_path/lib"
32195 CPP_MSH3="-I$want_msh3_path/include"
32196 DIR_MSH3="$want_msh3_path/lib"
32197 LDFLAGS="$LDFLAGS $LD_MSH3"
32198 CPPFLAGS="$CPPFLAGS $CPP_MSH3"
32200 LIBS="-lmsh3 $LIBS"
32202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MsH3ApiOpen in -lmsh3" >&5
32203 printf %s "checking for MsH3ApiOpen in -lmsh3... " >&6; }
32204 if test ${ac_cv_lib_msh3_MsH3ApiOpen+y}
32206 printf %s "(cached) " >&6
32208 ac_check_lib_save_LIBS=$LIBS
32209 LIBS="-lmsh3 $LIBS"
32210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32211 /* end confdefs.h. */
32217 char MsH3ApiOpen ();
32220 return MsH3ApiOpen ();
32225 if ac_fn_c_try_link "$LINENO"
32227 ac_cv_lib_msh3_MsH3ApiOpen=yes
32229 ac_cv_lib_msh3_MsH3ApiOpen=no
32231 rm -f core conftest.err conftest.$ac_objext conftest.beam \
32232 conftest$ac_exeext conftest.$ac_ext
32233 LIBS=$ac_check_lib_save_LIBS
32235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_msh3_MsH3ApiOpen" >&5
32236 printf "%s\n" "$ac_cv_lib_msh3_MsH3ApiOpen" >&6; }
32237 if test "x$ac_cv_lib_msh3_MsH3ApiOpen" = xyes
32240 for ac_header in msh3.h
32242 ac_fn_c_check_header_compile "$LINENO" "msh3.h" "ac_cv_header_msh3_h" "$ac_includes_default"
32243 if test "x$ac_cv_header_msh3_h" = xyes
32245 printf "%s\n" "#define HAVE_MSH3_H 1" >>confdefs.h
32246 curl_h3_msg="enabled (msh3)"
32249 printf "%s\n" "#define USE_MSH3 1" >>confdefs.h
32253 CURL_LIBRARY_PATH="$CURL_LIBRARY_PATH:$DIR_MSH3"
32254 export CURL_LIBRARY_PATH
32255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&5
32256 printf "%s\n" "$as_me: Added $DIR_MSH3 to CURL_LIBRARY_PATH" >&6;}
32258 experimental="$experimental HTTP3"
32265 LDFLAGS=$CLEANLDFLAGS
32266 CPPFLAGS=$CLEANCPPFLAGS
32274 OPT_ZSH_FPATH=default
32276 # Check whether --with-zsh-functions-dir was given.
32277 if test ${with_zsh_functions_dir+y}
32279 withval=$with_zsh_functions_dir; OPT_ZSH_FPATH=$withval
32282 case "$OPT_ZSH_FPATH" in
32286 ZSH_FUNCTIONS_DIR="$datarootdir/zsh/site-functions"
32290 ZSH_FUNCTIONS_DIR="$withval"
32296 OPT_FISH_FPATH=default
32298 # Check whether --with-fish-functions-dir was given.
32299 if test ${with_fish_functions_dir+y}
32301 withval=$with_fish_functions_dir; OPT_FISH_FPATH=$withval
32304 case "$OPT_FISH_FPATH" in
32309 if test -n "$PKG_CONFIG"; then
32310 PKGCONFIG="$PKG_CONFIG"
32312 if test -n "$ac_tool_prefix"; then
32313 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
32314 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
32315 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32316 printf %s "checking for $ac_word... " >&6; }
32317 if test ${ac_cv_path_PKGCONFIG+y}
32319 printf %s "(cached) " >&6
32323 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
32326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32327 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32328 for as_dir in $as_dummy
32331 case $as_dir in #(((
32334 *) as_dir=$as_dir/ ;;
32336 for ac_exec_ext in '' $ac_executable_extensions; do
32337 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32338 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32339 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32349 PKGCONFIG=$ac_cv_path_PKGCONFIG
32350 if test -n "$PKGCONFIG"; then
32351 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
32352 printf "%s\n" "$PKGCONFIG" >&6; }
32354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32355 printf "%s\n" "no" >&6; }
32360 if test -z "$ac_cv_path_PKGCONFIG"; then
32361 ac_pt_PKGCONFIG=$PKGCONFIG
32362 # Extract the first word of "pkg-config", so it can be a program name with args.
32363 set dummy pkg-config; ac_word=$2
32364 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32365 printf %s "checking for $ac_word... " >&6; }
32366 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
32368 printf %s "(cached) " >&6
32370 case $ac_pt_PKGCONFIG in
32372 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
32375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32376 as_dummy="$PATH:/usr/bin:/usr/local/bin"
32377 for as_dir in $as_dummy
32380 case $as_dir in #(((
32383 *) as_dir=$as_dir/ ;;
32385 for ac_exec_ext in '' $ac_executable_extensions; do
32386 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
32387 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
32388 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
32398 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
32399 if test -n "$ac_pt_PKGCONFIG"; then
32400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
32401 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
32403 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32404 printf "%s\n" "no" >&6; }
32407 if test "x$ac_pt_PKGCONFIG" = x; then
32410 case $cross_compiling:$ac_tool_warned in
32412 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
32413 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
32414 ac_tool_warned=yes ;;
32416 PKGCONFIG=$ac_pt_PKGCONFIG
32419 PKGCONFIG="$ac_cv_path_PKGCONFIG"
32424 if test "x$PKGCONFIG" != "xno"; then
32425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for fish options with pkg-config" >&5
32426 printf %s "checking for fish options with pkg-config... " >&6; }
32428 if test -n ""; then
32429 PKG_CONFIG_LIBDIR=""
32430 export PKG_CONFIG_LIBDIR
32432 $PKGCONFIG --exists fish >/dev/null 2>&1 && echo 1`
32434 if test -z "$itexists"; then
32436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
32437 printf "%s\n" "no" >&6; }
32439 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
32440 printf "%s\n" "found" >&6; }
32444 if test "$PKGCONFIG" != "no" ; then
32445 FISH_FUNCTIONS_DIR="$($PKGCONFIG --variable completionsdir fish)"
32447 FISH_FUNCTIONS_DIR="$datarootdir/fish/vendor_completions.d"
32452 FISH_FUNCTIONS_DIR="$withval"
32457 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "
32458 #ifdef HAVE_SYS_TYPES_H
32459 #include <sys/types.h>
32461 #ifdef HAVE_SYS_TIME_H
32462 #include <sys/time.h>
32464 #ifdef HAVE_SYS_SELECT_H
32465 #include <sys/select.h>
32466 #elif defined(HAVE_UNISTD_H)
32467 #include <unistd.h>
32469 #ifdef HAVE_SYS_SOCKET_H
32470 #include <sys/socket.h>
32472 #ifdef HAVE_NETINET_IN_H
32473 #include <netinet/in.h>
32475 #ifdef HAVE_NETINET_IN6_H
32476 #include <netinet/in6.h>
32478 #ifdef HAVE_SYS_UN_H
32479 #include <sys/un.h>
32484 if test "x$ac_cv_header_sys_types_h" = xyes
32486 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
32489 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "
32490 #ifdef HAVE_SYS_TYPES_H
32491 #include <sys/types.h>
32493 #ifdef HAVE_SYS_TIME_H
32494 #include <sys/time.h>
32496 #ifdef HAVE_SYS_SELECT_H
32497 #include <sys/select.h>
32498 #elif defined(HAVE_UNISTD_H)
32499 #include <unistd.h>
32501 #ifdef HAVE_SYS_SOCKET_H
32502 #include <sys/socket.h>
32504 #ifdef HAVE_NETINET_IN_H
32505 #include <netinet/in.h>
32507 #ifdef HAVE_NETINET_IN6_H
32508 #include <netinet/in6.h>
32510 #ifdef HAVE_SYS_UN_H
32511 #include <sys/un.h>
32516 if test "x$ac_cv_header_sys_time_h" = xyes
32518 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
32521 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "
32522 #ifdef HAVE_SYS_TYPES_H
32523 #include <sys/types.h>
32525 #ifdef HAVE_SYS_TIME_H
32526 #include <sys/time.h>
32528 #ifdef HAVE_SYS_SELECT_H
32529 #include <sys/select.h>
32530 #elif defined(HAVE_UNISTD_H)
32531 #include <unistd.h>
32533 #ifdef HAVE_SYS_SOCKET_H
32534 #include <sys/socket.h>
32536 #ifdef HAVE_NETINET_IN_H
32537 #include <netinet/in.h>
32539 #ifdef HAVE_NETINET_IN6_H
32540 #include <netinet/in6.h>
32542 #ifdef HAVE_SYS_UN_H
32543 #include <sys/un.h>
32548 if test "x$ac_cv_header_sys_select_h" = xyes
32550 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
32553 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "
32554 #ifdef HAVE_SYS_TYPES_H
32555 #include <sys/types.h>
32557 #ifdef HAVE_SYS_TIME_H
32558 #include <sys/time.h>
32560 #ifdef HAVE_SYS_SELECT_H
32561 #include <sys/select.h>
32562 #elif defined(HAVE_UNISTD_H)
32563 #include <unistd.h>
32565 #ifdef HAVE_SYS_SOCKET_H
32566 #include <sys/socket.h>
32568 #ifdef HAVE_NETINET_IN_H
32569 #include <netinet/in.h>
32571 #ifdef HAVE_NETINET_IN6_H
32572 #include <netinet/in6.h>
32574 #ifdef HAVE_SYS_UN_H
32575 #include <sys/un.h>
32580 if test "x$ac_cv_header_sys_socket_h" = xyes
32582 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
32585 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "
32586 #ifdef HAVE_SYS_TYPES_H
32587 #include <sys/types.h>
32589 #ifdef HAVE_SYS_TIME_H
32590 #include <sys/time.h>
32592 #ifdef HAVE_SYS_SELECT_H
32593 #include <sys/select.h>
32594 #elif defined(HAVE_UNISTD_H)
32595 #include <unistd.h>
32597 #ifdef HAVE_SYS_SOCKET_H
32598 #include <sys/socket.h>
32600 #ifdef HAVE_NETINET_IN_H
32601 #include <netinet/in.h>
32603 #ifdef HAVE_NETINET_IN6_H
32604 #include <netinet/in6.h>
32606 #ifdef HAVE_SYS_UN_H
32607 #include <sys/un.h>
32612 if test "x$ac_cv_header_sys_ioctl_h" = xyes
32614 printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
32617 ac_fn_c_check_header_compile "$LINENO" "sys/uio.h" "ac_cv_header_sys_uio_h" "
32618 #ifdef HAVE_SYS_TYPES_H
32619 #include <sys/types.h>
32621 #ifdef HAVE_SYS_TIME_H
32622 #include <sys/time.h>
32624 #ifdef HAVE_SYS_SELECT_H
32625 #include <sys/select.h>
32626 #elif defined(HAVE_UNISTD_H)
32627 #include <unistd.h>
32629 #ifdef HAVE_SYS_SOCKET_H
32630 #include <sys/socket.h>
32632 #ifdef HAVE_NETINET_IN_H
32633 #include <netinet/in.h>
32635 #ifdef HAVE_NETINET_IN6_H
32636 #include <netinet/in6.h>
32638 #ifdef HAVE_SYS_UN_H
32639 #include <sys/un.h>
32644 if test "x$ac_cv_header_sys_uio_h" = xyes
32646 printf "%s\n" "#define HAVE_SYS_UIO_H 1" >>confdefs.h
32649 ac_fn_c_check_header_compile "$LINENO" "assert.h" "ac_cv_header_assert_h" "
32650 #ifdef HAVE_SYS_TYPES_H
32651 #include <sys/types.h>
32653 #ifdef HAVE_SYS_TIME_H
32654 #include <sys/time.h>
32656 #ifdef HAVE_SYS_SELECT_H
32657 #include <sys/select.h>
32658 #elif defined(HAVE_UNISTD_H)
32659 #include <unistd.h>
32661 #ifdef HAVE_SYS_SOCKET_H
32662 #include <sys/socket.h>
32664 #ifdef HAVE_NETINET_IN_H
32665 #include <netinet/in.h>
32667 #ifdef HAVE_NETINET_IN6_H
32668 #include <netinet/in6.h>
32670 #ifdef HAVE_SYS_UN_H
32671 #include <sys/un.h>
32676 if test "x$ac_cv_header_assert_h" = xyes
32678 printf "%s\n" "#define HAVE_ASSERT_H 1" >>confdefs.h
32681 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "
32682 #ifdef HAVE_SYS_TYPES_H
32683 #include <sys/types.h>
32685 #ifdef HAVE_SYS_TIME_H
32686 #include <sys/time.h>
32688 #ifdef HAVE_SYS_SELECT_H
32689 #include <sys/select.h>
32690 #elif defined(HAVE_UNISTD_H)
32691 #include <unistd.h>
32693 #ifdef HAVE_SYS_SOCKET_H
32694 #include <sys/socket.h>
32696 #ifdef HAVE_NETINET_IN_H
32697 #include <netinet/in.h>
32699 #ifdef HAVE_NETINET_IN6_H
32700 #include <netinet/in6.h>
32702 #ifdef HAVE_SYS_UN_H
32703 #include <sys/un.h>
32708 if test "x$ac_cv_header_unistd_h" = xyes
32710 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
32713 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "
32714 #ifdef HAVE_SYS_TYPES_H
32715 #include <sys/types.h>
32717 #ifdef HAVE_SYS_TIME_H
32718 #include <sys/time.h>
32720 #ifdef HAVE_SYS_SELECT_H
32721 #include <sys/select.h>
32722 #elif defined(HAVE_UNISTD_H)
32723 #include <unistd.h>
32725 #ifdef HAVE_SYS_SOCKET_H
32726 #include <sys/socket.h>
32728 #ifdef HAVE_NETINET_IN_H
32729 #include <netinet/in.h>
32731 #ifdef HAVE_NETINET_IN6_H
32732 #include <netinet/in6.h>
32734 #ifdef HAVE_SYS_UN_H
32735 #include <sys/un.h>
32740 if test "x$ac_cv_header_stdlib_h" = xyes
32742 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
32745 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "
32746 #ifdef HAVE_SYS_TYPES_H
32747 #include <sys/types.h>
32749 #ifdef HAVE_SYS_TIME_H
32750 #include <sys/time.h>
32752 #ifdef HAVE_SYS_SELECT_H
32753 #include <sys/select.h>
32754 #elif defined(HAVE_UNISTD_H)
32755 #include <unistd.h>
32757 #ifdef HAVE_SYS_SOCKET_H
32758 #include <sys/socket.h>
32760 #ifdef HAVE_NETINET_IN_H
32761 #include <netinet/in.h>
32763 #ifdef HAVE_NETINET_IN6_H
32764 #include <netinet/in6.h>
32766 #ifdef HAVE_SYS_UN_H
32767 #include <sys/un.h>
32772 if test "x$ac_cv_header_arpa_inet_h" = xyes
32774 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
32777 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
32778 #ifdef HAVE_SYS_TYPES_H
32779 #include <sys/types.h>
32781 #ifdef HAVE_SYS_TIME_H
32782 #include <sys/time.h>
32784 #ifdef HAVE_SYS_SELECT_H
32785 #include <sys/select.h>
32786 #elif defined(HAVE_UNISTD_H)
32787 #include <unistd.h>
32789 #ifdef HAVE_SYS_SOCKET_H
32790 #include <sys/socket.h>
32792 #ifdef HAVE_NETINET_IN_H
32793 #include <netinet/in.h>
32795 #ifdef HAVE_NETINET_IN6_H
32796 #include <netinet/in6.h>
32798 #ifdef HAVE_SYS_UN_H
32799 #include <sys/un.h>
32804 if test "x$ac_cv_header_net_if_h" = xyes
32806 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
32809 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "
32810 #ifdef HAVE_SYS_TYPES_H
32811 #include <sys/types.h>
32813 #ifdef HAVE_SYS_TIME_H
32814 #include <sys/time.h>
32816 #ifdef HAVE_SYS_SELECT_H
32817 #include <sys/select.h>
32818 #elif defined(HAVE_UNISTD_H)
32819 #include <unistd.h>
32821 #ifdef HAVE_SYS_SOCKET_H
32822 #include <sys/socket.h>
32824 #ifdef HAVE_NETINET_IN_H
32825 #include <netinet/in.h>
32827 #ifdef HAVE_NETINET_IN6_H
32828 #include <netinet/in6.h>
32830 #ifdef HAVE_SYS_UN_H
32831 #include <sys/un.h>
32836 if test "x$ac_cv_header_netinet_in_h" = xyes
32838 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
32841 ac_fn_c_check_header_compile "$LINENO" "netinet/in6.h" "ac_cv_header_netinet_in6_h" "
32842 #ifdef HAVE_SYS_TYPES_H
32843 #include <sys/types.h>
32845 #ifdef HAVE_SYS_TIME_H
32846 #include <sys/time.h>
32848 #ifdef HAVE_SYS_SELECT_H
32849 #include <sys/select.h>
32850 #elif defined(HAVE_UNISTD_H)
32851 #include <unistd.h>
32853 #ifdef HAVE_SYS_SOCKET_H
32854 #include <sys/socket.h>
32856 #ifdef HAVE_NETINET_IN_H
32857 #include <netinet/in.h>
32859 #ifdef HAVE_NETINET_IN6_H
32860 #include <netinet/in6.h>
32862 #ifdef HAVE_SYS_UN_H
32863 #include <sys/un.h>
32868 if test "x$ac_cv_header_netinet_in6_h" = xyes
32870 printf "%s\n" "#define HAVE_NETINET_IN6_H 1" >>confdefs.h
32873 ac_fn_c_check_header_compile "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "
32874 #ifdef HAVE_SYS_TYPES_H
32875 #include <sys/types.h>
32877 #ifdef HAVE_SYS_TIME_H
32878 #include <sys/time.h>
32880 #ifdef HAVE_SYS_SELECT_H
32881 #include <sys/select.h>
32882 #elif defined(HAVE_UNISTD_H)
32883 #include <unistd.h>
32885 #ifdef HAVE_SYS_SOCKET_H
32886 #include <sys/socket.h>
32888 #ifdef HAVE_NETINET_IN_H
32889 #include <netinet/in.h>
32891 #ifdef HAVE_NETINET_IN6_H
32892 #include <netinet/in6.h>
32894 #ifdef HAVE_SYS_UN_H
32895 #include <sys/un.h>
32900 if test "x$ac_cv_header_sys_un_h" = xyes
32902 printf "%s\n" "#define HAVE_SYS_UN_H 1" >>confdefs.h
32905 ac_fn_c_check_header_compile "$LINENO" "linux/tcp.h" "ac_cv_header_linux_tcp_h" "
32906 #ifdef HAVE_SYS_TYPES_H
32907 #include <sys/types.h>
32909 #ifdef HAVE_SYS_TIME_H
32910 #include <sys/time.h>
32912 #ifdef HAVE_SYS_SELECT_H
32913 #include <sys/select.h>
32914 #elif defined(HAVE_UNISTD_H)
32915 #include <unistd.h>
32917 #ifdef HAVE_SYS_SOCKET_H
32918 #include <sys/socket.h>
32920 #ifdef HAVE_NETINET_IN_H
32921 #include <netinet/in.h>
32923 #ifdef HAVE_NETINET_IN6_H
32924 #include <netinet/in6.h>
32926 #ifdef HAVE_SYS_UN_H
32927 #include <sys/un.h>
32932 if test "x$ac_cv_header_linux_tcp_h" = xyes
32934 printf "%s\n" "#define HAVE_LINUX_TCP_H 1" >>confdefs.h
32937 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "
32938 #ifdef HAVE_SYS_TYPES_H
32939 #include <sys/types.h>
32941 #ifdef HAVE_SYS_TIME_H
32942 #include <sys/time.h>
32944 #ifdef HAVE_SYS_SELECT_H
32945 #include <sys/select.h>
32946 #elif defined(HAVE_UNISTD_H)
32947 #include <unistd.h>
32949 #ifdef HAVE_SYS_SOCKET_H
32950 #include <sys/socket.h>
32952 #ifdef HAVE_NETINET_IN_H
32953 #include <netinet/in.h>
32955 #ifdef HAVE_NETINET_IN6_H
32956 #include <netinet/in6.h>
32958 #ifdef HAVE_SYS_UN_H
32959 #include <sys/un.h>
32964 if test "x$ac_cv_header_netinet_tcp_h" = xyes
32966 printf "%s\n" "#define HAVE_NETINET_TCP_H 1" >>confdefs.h
32969 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "
32970 #ifdef HAVE_SYS_TYPES_H
32971 #include <sys/types.h>
32973 #ifdef HAVE_SYS_TIME_H
32974 #include <sys/time.h>
32976 #ifdef HAVE_SYS_SELECT_H
32977 #include <sys/select.h>
32978 #elif defined(HAVE_UNISTD_H)
32979 #include <unistd.h>
32981 #ifdef HAVE_SYS_SOCKET_H
32982 #include <sys/socket.h>
32984 #ifdef HAVE_NETINET_IN_H
32985 #include <netinet/in.h>
32987 #ifdef HAVE_NETINET_IN6_H
32988 #include <netinet/in6.h>
32990 #ifdef HAVE_SYS_UN_H
32991 #include <sys/un.h>
32996 if test "x$ac_cv_header_netinet_udp_h" = xyes
32998 printf "%s\n" "#define HAVE_NETINET_UDP_H 1" >>confdefs.h
33001 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "
33002 #ifdef HAVE_SYS_TYPES_H
33003 #include <sys/types.h>
33005 #ifdef HAVE_SYS_TIME_H
33006 #include <sys/time.h>
33008 #ifdef HAVE_SYS_SELECT_H
33009 #include <sys/select.h>
33010 #elif defined(HAVE_UNISTD_H)
33011 #include <unistd.h>
33013 #ifdef HAVE_SYS_SOCKET_H
33014 #include <sys/socket.h>
33016 #ifdef HAVE_NETINET_IN_H
33017 #include <netinet/in.h>
33019 #ifdef HAVE_NETINET_IN6_H
33020 #include <netinet/in6.h>
33022 #ifdef HAVE_SYS_UN_H
33023 #include <sys/un.h>
33028 if test "x$ac_cv_header_netdb_h" = xyes
33030 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
33033 ac_fn_c_check_header_compile "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "
33034 #ifdef HAVE_SYS_TYPES_H
33035 #include <sys/types.h>
33037 #ifdef HAVE_SYS_TIME_H
33038 #include <sys/time.h>
33040 #ifdef HAVE_SYS_SELECT_H
33041 #include <sys/select.h>
33042 #elif defined(HAVE_UNISTD_H)
33043 #include <unistd.h>
33045 #ifdef HAVE_SYS_SOCKET_H
33046 #include <sys/socket.h>
33048 #ifdef HAVE_NETINET_IN_H
33049 #include <netinet/in.h>
33051 #ifdef HAVE_NETINET_IN6_H
33052 #include <netinet/in6.h>
33054 #ifdef HAVE_SYS_UN_H
33055 #include <sys/un.h>
33060 if test "x$ac_cv_header_sys_sockio_h" = xyes
33062 printf "%s\n" "#define HAVE_SYS_SOCKIO_H 1" >>confdefs.h
33065 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "
33066 #ifdef HAVE_SYS_TYPES_H
33067 #include <sys/types.h>
33069 #ifdef HAVE_SYS_TIME_H
33070 #include <sys/time.h>
33072 #ifdef HAVE_SYS_SELECT_H
33073 #include <sys/select.h>
33074 #elif defined(HAVE_UNISTD_H)
33075 #include <unistd.h>
33077 #ifdef HAVE_SYS_SOCKET_H
33078 #include <sys/socket.h>
33080 #ifdef HAVE_NETINET_IN_H
33081 #include <netinet/in.h>
33083 #ifdef HAVE_NETINET_IN6_H
33084 #include <netinet/in6.h>
33086 #ifdef HAVE_SYS_UN_H
33087 #include <sys/un.h>
33092 if test "x$ac_cv_header_sys_stat_h" = xyes
33094 printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
33097 ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "
33098 #ifdef HAVE_SYS_TYPES_H
33099 #include <sys/types.h>
33101 #ifdef HAVE_SYS_TIME_H
33102 #include <sys/time.h>
33104 #ifdef HAVE_SYS_SELECT_H
33105 #include <sys/select.h>
33106 #elif defined(HAVE_UNISTD_H)
33107 #include <unistd.h>
33109 #ifdef HAVE_SYS_SOCKET_H
33110 #include <sys/socket.h>
33112 #ifdef HAVE_NETINET_IN_H
33113 #include <netinet/in.h>
33115 #ifdef HAVE_NETINET_IN6_H
33116 #include <netinet/in6.h>
33118 #ifdef HAVE_SYS_UN_H
33119 #include <sys/un.h>
33124 if test "x$ac_cv_header_sys_param_h" = xyes
33126 printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
33129 ac_fn_c_check_header_compile "$LINENO" "termios.h" "ac_cv_header_termios_h" "
33130 #ifdef HAVE_SYS_TYPES_H
33131 #include <sys/types.h>
33133 #ifdef HAVE_SYS_TIME_H
33134 #include <sys/time.h>
33136 #ifdef HAVE_SYS_SELECT_H
33137 #include <sys/select.h>
33138 #elif defined(HAVE_UNISTD_H)
33139 #include <unistd.h>
33141 #ifdef HAVE_SYS_SOCKET_H
33142 #include <sys/socket.h>
33144 #ifdef HAVE_NETINET_IN_H
33145 #include <netinet/in.h>
33147 #ifdef HAVE_NETINET_IN6_H
33148 #include <netinet/in6.h>
33150 #ifdef HAVE_SYS_UN_H
33151 #include <sys/un.h>
33156 if test "x$ac_cv_header_termios_h" = xyes
33158 printf "%s\n" "#define HAVE_TERMIOS_H 1" >>confdefs.h
33161 ac_fn_c_check_header_compile "$LINENO" "termio.h" "ac_cv_header_termio_h" "
33162 #ifdef HAVE_SYS_TYPES_H
33163 #include <sys/types.h>
33165 #ifdef HAVE_SYS_TIME_H
33166 #include <sys/time.h>
33168 #ifdef HAVE_SYS_SELECT_H
33169 #include <sys/select.h>
33170 #elif defined(HAVE_UNISTD_H)
33171 #include <unistd.h>
33173 #ifdef HAVE_SYS_SOCKET_H
33174 #include <sys/socket.h>
33176 #ifdef HAVE_NETINET_IN_H
33177 #include <netinet/in.h>
33179 #ifdef HAVE_NETINET_IN6_H
33180 #include <netinet/in6.h>
33182 #ifdef HAVE_SYS_UN_H
33183 #include <sys/un.h>
33188 if test "x$ac_cv_header_termio_h" = xyes
33190 printf "%s\n" "#define HAVE_TERMIO_H 1" >>confdefs.h
33193 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "
33194 #ifdef HAVE_SYS_TYPES_H
33195 #include <sys/types.h>
33197 #ifdef HAVE_SYS_TIME_H
33198 #include <sys/time.h>
33200 #ifdef HAVE_SYS_SELECT_H
33201 #include <sys/select.h>
33202 #elif defined(HAVE_UNISTD_H)
33203 #include <unistd.h>
33205 #ifdef HAVE_SYS_SOCKET_H
33206 #include <sys/socket.h>
33208 #ifdef HAVE_NETINET_IN_H
33209 #include <netinet/in.h>
33211 #ifdef HAVE_NETINET_IN6_H
33212 #include <netinet/in6.h>
33214 #ifdef HAVE_SYS_UN_H
33215 #include <sys/un.h>
33220 if test "x$ac_cv_header_fcntl_h" = xyes
33222 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
33225 ac_fn_c_check_header_compile "$LINENO" "io.h" "ac_cv_header_io_h" "
33226 #ifdef HAVE_SYS_TYPES_H
33227 #include <sys/types.h>
33229 #ifdef HAVE_SYS_TIME_H
33230 #include <sys/time.h>
33232 #ifdef HAVE_SYS_SELECT_H
33233 #include <sys/select.h>
33234 #elif defined(HAVE_UNISTD_H)
33235 #include <unistd.h>
33237 #ifdef HAVE_SYS_SOCKET_H
33238 #include <sys/socket.h>
33240 #ifdef HAVE_NETINET_IN_H
33241 #include <netinet/in.h>
33243 #ifdef HAVE_NETINET_IN6_H
33244 #include <netinet/in6.h>
33246 #ifdef HAVE_SYS_UN_H
33247 #include <sys/un.h>
33252 if test "x$ac_cv_header_io_h" = xyes
33254 printf "%s\n" "#define HAVE_IO_H 1" >>confdefs.h
33257 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "
33258 #ifdef HAVE_SYS_TYPES_H
33259 #include <sys/types.h>
33261 #ifdef HAVE_SYS_TIME_H
33262 #include <sys/time.h>
33264 #ifdef HAVE_SYS_SELECT_H
33265 #include <sys/select.h>
33266 #elif defined(HAVE_UNISTD_H)
33267 #include <unistd.h>
33269 #ifdef HAVE_SYS_SOCKET_H
33270 #include <sys/socket.h>
33272 #ifdef HAVE_NETINET_IN_H
33273 #include <netinet/in.h>
33275 #ifdef HAVE_NETINET_IN6_H
33276 #include <netinet/in6.h>
33278 #ifdef HAVE_SYS_UN_H
33279 #include <sys/un.h>
33284 if test "x$ac_cv_header_pwd_h" = xyes
33286 printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
33289 ac_fn_c_check_header_compile "$LINENO" "utime.h" "ac_cv_header_utime_h" "
33290 #ifdef HAVE_SYS_TYPES_H
33291 #include <sys/types.h>
33293 #ifdef HAVE_SYS_TIME_H
33294 #include <sys/time.h>
33296 #ifdef HAVE_SYS_SELECT_H
33297 #include <sys/select.h>
33298 #elif defined(HAVE_UNISTD_H)
33299 #include <unistd.h>
33301 #ifdef HAVE_SYS_SOCKET_H
33302 #include <sys/socket.h>
33304 #ifdef HAVE_NETINET_IN_H
33305 #include <netinet/in.h>
33307 #ifdef HAVE_NETINET_IN6_H
33308 #include <netinet/in6.h>
33310 #ifdef HAVE_SYS_UN_H
33311 #include <sys/un.h>
33316 if test "x$ac_cv_header_utime_h" = xyes
33318 printf "%s\n" "#define HAVE_UTIME_H 1" >>confdefs.h
33321 ac_fn_c_check_header_compile "$LINENO" "sys/utime.h" "ac_cv_header_sys_utime_h" "
33322 #ifdef HAVE_SYS_TYPES_H
33323 #include <sys/types.h>
33325 #ifdef HAVE_SYS_TIME_H
33326 #include <sys/time.h>
33328 #ifdef HAVE_SYS_SELECT_H
33329 #include <sys/select.h>
33330 #elif defined(HAVE_UNISTD_H)
33331 #include <unistd.h>
33333 #ifdef HAVE_SYS_SOCKET_H
33334 #include <sys/socket.h>
33336 #ifdef HAVE_NETINET_IN_H
33337 #include <netinet/in.h>
33339 #ifdef HAVE_NETINET_IN6_H
33340 #include <netinet/in6.h>
33342 #ifdef HAVE_SYS_UN_H
33343 #include <sys/un.h>
33348 if test "x$ac_cv_header_sys_utime_h" = xyes
33350 printf "%s\n" "#define HAVE_SYS_UTIME_H 1" >>confdefs.h
33353 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "
33354 #ifdef HAVE_SYS_TYPES_H
33355 #include <sys/types.h>
33357 #ifdef HAVE_SYS_TIME_H
33358 #include <sys/time.h>
33360 #ifdef HAVE_SYS_SELECT_H
33361 #include <sys/select.h>
33362 #elif defined(HAVE_UNISTD_H)
33363 #include <unistd.h>
33365 #ifdef HAVE_SYS_SOCKET_H
33366 #include <sys/socket.h>
33368 #ifdef HAVE_NETINET_IN_H
33369 #include <netinet/in.h>
33371 #ifdef HAVE_NETINET_IN6_H
33372 #include <netinet/in6.h>
33374 #ifdef HAVE_SYS_UN_H
33375 #include <sys/un.h>
33380 if test "x$ac_cv_header_sys_poll_h" = xyes
33382 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
33385 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "
33386 #ifdef HAVE_SYS_TYPES_H
33387 #include <sys/types.h>
33389 #ifdef HAVE_SYS_TIME_H
33390 #include <sys/time.h>
33392 #ifdef HAVE_SYS_SELECT_H
33393 #include <sys/select.h>
33394 #elif defined(HAVE_UNISTD_H)
33395 #include <unistd.h>
33397 #ifdef HAVE_SYS_SOCKET_H
33398 #include <sys/socket.h>
33400 #ifdef HAVE_NETINET_IN_H
33401 #include <netinet/in.h>
33403 #ifdef HAVE_NETINET_IN6_H
33404 #include <netinet/in6.h>
33406 #ifdef HAVE_SYS_UN_H
33407 #include <sys/un.h>
33412 if test "x$ac_cv_header_poll_h" = xyes
33414 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
33417 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "
33418 #ifdef HAVE_SYS_TYPES_H
33419 #include <sys/types.h>
33421 #ifdef HAVE_SYS_TIME_H
33422 #include <sys/time.h>
33424 #ifdef HAVE_SYS_SELECT_H
33425 #include <sys/select.h>
33426 #elif defined(HAVE_UNISTD_H)
33427 #include <unistd.h>
33429 #ifdef HAVE_SYS_SOCKET_H
33430 #include <sys/socket.h>
33432 #ifdef HAVE_NETINET_IN_H
33433 #include <netinet/in.h>
33435 #ifdef HAVE_NETINET_IN6_H
33436 #include <netinet/in6.h>
33438 #ifdef HAVE_SYS_UN_H
33439 #include <sys/un.h>
33444 if test "x$ac_cv_header_socket_h" = xyes
33446 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
33449 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "
33450 #ifdef HAVE_SYS_TYPES_H
33451 #include <sys/types.h>
33453 #ifdef HAVE_SYS_TIME_H
33454 #include <sys/time.h>
33456 #ifdef HAVE_SYS_SELECT_H
33457 #include <sys/select.h>
33458 #elif defined(HAVE_UNISTD_H)
33459 #include <unistd.h>
33461 #ifdef HAVE_SYS_SOCKET_H
33462 #include <sys/socket.h>
33464 #ifdef HAVE_NETINET_IN_H
33465 #include <netinet/in.h>
33467 #ifdef HAVE_NETINET_IN6_H
33468 #include <netinet/in6.h>
33470 #ifdef HAVE_SYS_UN_H
33471 #include <sys/un.h>
33476 if test "x$ac_cv_header_sys_resource_h" = xyes
33478 printf "%s\n" "#define HAVE_SYS_RESOURCE_H 1" >>confdefs.h
33481 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "
33482 #ifdef HAVE_SYS_TYPES_H
33483 #include <sys/types.h>
33485 #ifdef HAVE_SYS_TIME_H
33486 #include <sys/time.h>
33488 #ifdef HAVE_SYS_SELECT_H
33489 #include <sys/select.h>
33490 #elif defined(HAVE_UNISTD_H)
33491 #include <unistd.h>
33493 #ifdef HAVE_SYS_SOCKET_H
33494 #include <sys/socket.h>
33496 #ifdef HAVE_NETINET_IN_H
33497 #include <netinet/in.h>
33499 #ifdef HAVE_NETINET_IN6_H
33500 #include <netinet/in6.h>
33502 #ifdef HAVE_SYS_UN_H
33503 #include <sys/un.h>
33508 if test "x$ac_cv_header_libgen_h" = xyes
33510 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
33513 ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "
33514 #ifdef HAVE_SYS_TYPES_H
33515 #include <sys/types.h>
33517 #ifdef HAVE_SYS_TIME_H
33518 #include <sys/time.h>
33520 #ifdef HAVE_SYS_SELECT_H
33521 #include <sys/select.h>
33522 #elif defined(HAVE_UNISTD_H)
33523 #include <unistd.h>
33525 #ifdef HAVE_SYS_SOCKET_H
33526 #include <sys/socket.h>
33528 #ifdef HAVE_NETINET_IN_H
33529 #include <netinet/in.h>
33531 #ifdef HAVE_NETINET_IN6_H
33532 #include <netinet/in6.h>
33534 #ifdef HAVE_SYS_UN_H
33535 #include <sys/un.h>
33540 if test "x$ac_cv_header_locale_h" = xyes
33542 printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
33545 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "
33546 #ifdef HAVE_SYS_TYPES_H
33547 #include <sys/types.h>
33549 #ifdef HAVE_SYS_TIME_H
33550 #include <sys/time.h>
33552 #ifdef HAVE_SYS_SELECT_H
33553 #include <sys/select.h>
33554 #elif defined(HAVE_UNISTD_H)
33555 #include <unistd.h>
33557 #ifdef HAVE_SYS_SOCKET_H
33558 #include <sys/socket.h>
33560 #ifdef HAVE_NETINET_IN_H
33561 #include <netinet/in.h>
33563 #ifdef HAVE_NETINET_IN6_H
33564 #include <netinet/in6.h>
33566 #ifdef HAVE_SYS_UN_H
33567 #include <sys/un.h>
33572 if test "x$ac_cv_header_errno_h" = xyes
33574 printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
33577 ac_fn_c_check_header_compile "$LINENO" "stdbool.h" "ac_cv_header_stdbool_h" "
33578 #ifdef HAVE_SYS_TYPES_H
33579 #include <sys/types.h>
33581 #ifdef HAVE_SYS_TIME_H
33582 #include <sys/time.h>
33584 #ifdef HAVE_SYS_SELECT_H
33585 #include <sys/select.h>
33586 #elif defined(HAVE_UNISTD_H)
33587 #include <unistd.h>
33589 #ifdef HAVE_SYS_SOCKET_H
33590 #include <sys/socket.h>
33592 #ifdef HAVE_NETINET_IN_H
33593 #include <netinet/in.h>
33595 #ifdef HAVE_NETINET_IN6_H
33596 #include <netinet/in6.h>
33598 #ifdef HAVE_SYS_UN_H
33599 #include <sys/un.h>
33604 if test "x$ac_cv_header_stdbool_h" = xyes
33606 printf "%s\n" "#define HAVE_STDBOOL_H 1" >>confdefs.h
33609 ac_fn_c_check_header_compile "$LINENO" "arpa/tftp.h" "ac_cv_header_arpa_tftp_h" "
33610 #ifdef HAVE_SYS_TYPES_H
33611 #include <sys/types.h>
33613 #ifdef HAVE_SYS_TIME_H
33614 #include <sys/time.h>
33616 #ifdef HAVE_SYS_SELECT_H
33617 #include <sys/select.h>
33618 #elif defined(HAVE_UNISTD_H)
33619 #include <unistd.h>
33621 #ifdef HAVE_SYS_SOCKET_H
33622 #include <sys/socket.h>
33624 #ifdef HAVE_NETINET_IN_H
33625 #include <netinet/in.h>
33627 #ifdef HAVE_NETINET_IN6_H
33628 #include <netinet/in6.h>
33630 #ifdef HAVE_SYS_UN_H
33631 #include <sys/un.h>
33636 if test "x$ac_cv_header_arpa_tftp_h" = xyes
33638 printf "%s\n" "#define HAVE_ARPA_TFTP_H 1" >>confdefs.h
33641 ac_fn_c_check_header_compile "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "
33642 #ifdef HAVE_SYS_TYPES_H
33643 #include <sys/types.h>
33645 #ifdef HAVE_SYS_TIME_H
33646 #include <sys/time.h>
33648 #ifdef HAVE_SYS_SELECT_H
33649 #include <sys/select.h>
33650 #elif defined(HAVE_UNISTD_H)
33651 #include <unistd.h>
33653 #ifdef HAVE_SYS_SOCKET_H
33654 #include <sys/socket.h>
33656 #ifdef HAVE_NETINET_IN_H
33657 #include <netinet/in.h>
33659 #ifdef HAVE_NETINET_IN6_H
33660 #include <netinet/in6.h>
33662 #ifdef HAVE_SYS_UN_H
33663 #include <sys/un.h>
33668 if test "x$ac_cv_header_sys_filio_h" = xyes
33670 printf "%s\n" "#define HAVE_SYS_FILIO_H 1" >>confdefs.h
33673 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "
33674 #ifdef HAVE_SYS_TYPES_H
33675 #include <sys/types.h>
33677 #ifdef HAVE_SYS_TIME_H
33678 #include <sys/time.h>
33680 #ifdef HAVE_SYS_SELECT_H
33681 #include <sys/select.h>
33682 #elif defined(HAVE_UNISTD_H)
33683 #include <unistd.h>
33685 #ifdef HAVE_SYS_SOCKET_H
33686 #include <sys/socket.h>
33688 #ifdef HAVE_NETINET_IN_H
33689 #include <netinet/in.h>
33691 #ifdef HAVE_NETINET_IN6_H
33692 #include <netinet/in6.h>
33694 #ifdef HAVE_SYS_UN_H
33695 #include <sys/un.h>
33700 if test "x$ac_cv_header_sys_wait_h" = xyes
33702 printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
33705 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "
33706 #ifdef HAVE_SYS_TYPES_H
33707 #include <sys/types.h>
33709 #ifdef HAVE_SYS_TIME_H
33710 #include <sys/time.h>
33712 #ifdef HAVE_SYS_SELECT_H
33713 #include <sys/select.h>
33714 #elif defined(HAVE_UNISTD_H)
33715 #include <unistd.h>
33717 #ifdef HAVE_SYS_SOCKET_H
33718 #include <sys/socket.h>
33720 #ifdef HAVE_NETINET_IN_H
33721 #include <netinet/in.h>
33723 #ifdef HAVE_NETINET_IN6_H
33724 #include <netinet/in6.h>
33726 #ifdef HAVE_SYS_UN_H
33727 #include <sys/un.h>
33732 if test "x$ac_cv_header_setjmp_h" = xyes
33734 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
33740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
33741 printf %s "checking for an ANSI C-conforming const... " >&6; }
33742 if test ${ac_cv_c_const+y}
33744 printf %s "(cached) " >&6
33746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33747 /* end confdefs.h. */
33752 #ifndef __cplusplus
33753 /* Ultrix mips cc rejects this sort of thing. */
33754 typedef int charset[2];
33755 const charset cs = { 0, 0 };
33756 /* SunOS 4.1.1 cc rejects this. */
33757 char const *const *pcpcc;
33759 /* NEC SVR4.0.2 mips cc rejects this. */
33760 struct point {int x, y;};
33761 static struct point const zero = {0,0};
33762 /* IBM XL C 1.02.0.0 rejects this.
33763 It does not let you subtract one const X* pointer from another in
33764 an arm of an if-expression whose if-part is not a constant
33766 const char *g = "string";
33767 pcpcc = &g + (g ? g-g : 0);
33768 /* HPUX 7.0 cc rejects these. */
33770 ppc = (char**) pcpcc;
33771 pcpcc = (char const *const *) ppc;
33772 { /* SCO 3.2v4 cc rejects this sort of thing. */
33775 char const *s = 0 ? (char *) 0 : (char const *) 0;
33780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
33781 int x[] = {25, 17};
33782 const int *foo = &x[0];
33785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
33786 typedef const int *iptr;
33790 { /* IBM XL C 1.02.0.0 rejects this sort of thing, saying
33791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
33792 struct s { int j; const int *ap[3]; } bx;
33793 struct s *b = &bx; b->j = 5;
33795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
33796 const int foo = 10;
33797 if (!foo) return 0;
33799 return !cs[0] && !zero.x;
33806 if ac_fn_c_try_compile "$LINENO"
33812 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
33815 printf "%s\n" "$ac_cv_c_const" >&6; }
33816 if test $ac_cv_c_const = no; then
33818 printf "%s\n" "#define const /**/" >>confdefs.h
33823 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
33824 printf %s "checking for compiler support of C99 variadic macro style... " >&6; }
33825 if test ${curl_cv_variadic_macros_c99+y}
33827 printf %s "(cached) " >&6
33830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33831 /* end confdefs.h. */
33834 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
33835 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
33836 int fun3(int arg1, int arg2, int arg3);
33837 int fun2(int arg1, int arg2);
33838 int fun3(int arg1, int arg2, int arg3)
33839 { return arg1 + arg2 + arg3; }
33840 int fun2(int arg1, int arg2)
33841 { return arg1 + arg2; }
33846 int res3 = c99_vmacro3(1, 2, 3);
33847 int res2 = c99_vmacro2(1, 2);
33854 if ac_fn_c_try_compile "$LINENO"
33857 curl_cv_variadic_macros_c99="yes"
33861 curl_cv_variadic_macros_c99="no"
33864 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
33868 printf "%s\n" "$curl_cv_variadic_macros_c99" >&6; }
33869 case "$curl_cv_variadic_macros_c99" in
33872 printf "%s\n" "#define HAVE_VARIADIC_MACROS_C99 1" >>confdefs.h
33876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
33877 printf %s "checking for compiler support of old gcc variadic macro style... " >&6; }
33878 if test ${curl_cv_variadic_macros_gcc+y}
33880 printf %s "(cached) " >&6
33883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33884 /* end confdefs.h. */
33887 #define gcc_vmacro3(first, args...) fun3(first, args)
33888 #define gcc_vmacro2(first, args...) fun2(first, args)
33889 int fun3(int arg1, int arg2, int arg3);
33890 int fun2(int arg1, int arg2);
33891 int fun3(int arg1, int arg2, int arg3)
33892 { return arg1 + arg2 + arg3; }
33893 int fun2(int arg1, int arg2)
33894 { return arg1 + arg2; }
33899 int res3 = gcc_vmacro3(1, 2, 3);
33900 int res2 = gcc_vmacro2(1, 2);
33907 if ac_fn_c_try_compile "$LINENO"
33910 curl_cv_variadic_macros_gcc="yes"
33914 curl_cv_variadic_macros_gcc="no"
33917 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
33920 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
33921 printf "%s\n" "$curl_cv_variadic_macros_gcc" >&6; }
33922 case "$curl_cv_variadic_macros_gcc" in
33925 printf "%s\n" "#define HAVE_VARIADIC_MACROS_GCC 1" >>confdefs.h
33930 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
33931 if test "x$ac_cv_type_size_t" = xyes
33936 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
33942 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
33943 if test "x$ac_cv_header_sys_types_h" = xyes
33945 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
33948 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
33949 if test "x$ac_cv_header_sys_time_h" = xyes
33951 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
33954 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
33955 if test "x$ac_cv_header_sys_socket_h" = xyes
33957 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
33961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
33962 printf %s "checking for struct timeval... " >&6; }
33963 if test ${curl_cv_struct_timeval+y}
33965 printf %s "(cached) " >&6
33968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33969 /* end confdefs.h. */
33973 #ifdef HAVE_WINDOWS_H
33974 #ifndef WIN32_LEAN_AND_MEAN
33975 #define WIN32_LEAN_AND_MEAN
33977 #include <windows.h>
33978 #ifdef HAVE_WINSOCK2_H
33979 #include <winsock2.h>
33982 #ifdef HAVE_SYS_TYPES_H
33983 #include <sys/types.h>
33985 #ifdef HAVE_SYS_TIME_H
33986 #include <sys/time.h>
33989 #ifdef HAVE_SYS_SOCKET_H
33990 #include <sys/socket.h>
34005 if ac_fn_c_try_compile "$LINENO"
34008 curl_cv_struct_timeval="yes"
34012 curl_cv_struct_timeval="no"
34015 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34018 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_struct_timeval" >&5
34019 printf "%s\n" "$curl_cv_struct_timeval" >&6; }
34020 case "$curl_cv_struct_timeval" in
34023 printf "%s\n" "#define HAVE_STRUCT_TIMEVAL 1" >>confdefs.h
34030 if test "x$cross_compiling" != xyes; then
34032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
34033 printf %s "checking run-time libs availability... " >&6; }
34037 if test "$cross_compiling" = yes
34039 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34040 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34041 as_fn_error $? "cannot run test program while cross compiling
34042 See \`config.log' for more details" "$LINENO" 5; }
34044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34045 /* end confdefs.h. */
34053 if ac_fn_c_try_run "$LINENO"
34055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34056 printf "%s\n" "fine" >&6; }
34058 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34059 printf "%s\n" "failed" >&6; }
34060 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34063 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34064 conftest.$ac_objext conftest.beam conftest.$ac_ext
34069 old=$LD_LIBRARY_PATH
34070 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34071 export LD_LIBRARY_PATH
34072 if test "$cross_compiling" = yes
34074 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34075 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
34076 as_fn_error $? "cannot run test program while cross compiling
34077 See \`config.log' for more details" "$LINENO" 5; }
34079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34080 /* end confdefs.h. */
34088 if ac_fn_c_try_run "$LINENO"
34090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: fine" >&5
34091 printf "%s\n" "fine" >&6; }
34093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
34094 printf "%s\n" "failed" >&6; }
34095 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
34098 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34099 conftest.$ac_objext conftest.beam conftest.$ac_ext
34102 LD_LIBRARY_PATH=$old # restore
34112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
34113 printf %s "checking size of size_t... " >&6; }
34115 for typesize in 8 4 2 16 1; do
34116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34117 /* end confdefs.h. */
34119 #include <sys/types.h>
34126 case (sizeof(size_t) == $typesize):;
34133 if ac_fn_c_try_compile "$LINENO"
34141 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34142 if test $r -gt 0; then
34146 if test $r -eq 0; then
34147 as_fn_error $? "Failed to find size of size_t" "$LINENO" 5
34149 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34150 printf "%s\n" "$r" >&6; }
34151 tname=$(echo "ac_cv_sizeof_size_t" | tr A-Z a-z | tr " " "_")
34155 printf "%s\n" "#define SIZEOF_SIZE_T $r" >>confdefs.h
34161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
34162 printf %s "checking size of long... " >&6; }
34164 for typesize in 8 4 2 16 1; do
34165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34166 /* end confdefs.h. */
34168 #include <sys/types.h>
34175 case (sizeof(long) == $typesize):;
34182 if ac_fn_c_try_compile "$LINENO"
34190 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34191 if test $r -gt 0; then
34195 if test $r -eq 0; then
34196 as_fn_error $? "Failed to find size of long" "$LINENO" 5
34198 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34199 printf "%s\n" "$r" >&6; }
34200 tname=$(echo "ac_cv_sizeof_long" | tr A-Z a-z | tr " " "_")
34204 printf "%s\n" "#define SIZEOF_LONG $r" >>confdefs.h
34210 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
34211 printf %s "checking size of int... " >&6; }
34213 for typesize in 8 4 2 16 1; do
34214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34215 /* end confdefs.h. */
34217 #include <sys/types.h>
34224 case (sizeof(int) == $typesize):;
34231 if ac_fn_c_try_compile "$LINENO"
34239 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34240 if test $r -gt 0; then
34244 if test $r -eq 0; then
34245 as_fn_error $? "Failed to find size of int" "$LINENO" 5
34247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34248 printf "%s\n" "$r" >&6; }
34249 tname=$(echo "ac_cv_sizeof_int" | tr A-Z a-z | tr " " "_")
34253 printf "%s\n" "#define SIZEOF_INT $r" >>confdefs.h
34259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
34260 printf %s "checking size of time_t... " >&6; }
34262 for typesize in 8 4 2 16 1; do
34263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34264 /* end confdefs.h. */
34266 #include <sys/types.h>
34273 case (sizeof(time_t) == $typesize):;
34280 if ac_fn_c_try_compile "$LINENO"
34288 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34289 if test $r -gt 0; then
34293 if test $r -eq 0; then
34294 as_fn_error $? "Failed to find size of time_t" "$LINENO" 5
34296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34297 printf "%s\n" "$r" >&6; }
34298 tname=$(echo "ac_cv_sizeof_time_t" | tr A-Z a-z | tr " " "_")
34302 printf "%s\n" "#define SIZEOF_TIME_T $r" >>confdefs.h
34308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
34309 printf %s "checking size of off_t... " >&6; }
34311 for typesize in 8 4 2 16 1; do
34312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34313 /* end confdefs.h. */
34315 #include <sys/types.h>
34322 case (sizeof(off_t) == $typesize):;
34329 if ac_fn_c_try_compile "$LINENO"
34337 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34338 if test $r -gt 0; then
34342 if test $r -eq 0; then
34343 as_fn_error $? "Failed to find size of off_t" "$LINENO" 5
34345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34346 printf "%s\n" "$r" >&6; }
34347 tname=$(echo "ac_cv_sizeof_off_t" | tr A-Z a-z | tr " " "_")
34351 printf "%s\n" "#define SIZEOF_OFF_T $r" >>confdefs.h
34357 CPPFLAGS="-I$srcdir/include $CPPFLAGS"
34360 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
34361 printf %s "checking size of curl_off_t... " >&6; }
34363 for typesize in 8 4 2 16 1; do
34364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34365 /* end confdefs.h. */
34367 #include <sys/types.h>
34369 #include <curl/system.h>
34376 case (sizeof(curl_off_t) == $typesize):;
34383 if ac_fn_c_try_compile "$LINENO"
34391 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34392 if test $r -gt 0; then
34396 if test $r -eq 0; then
34397 as_fn_error $? "Failed to find size of curl_off_t" "$LINENO" 5
34399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $r" >&5
34400 printf "%s\n" "$r" >&6; }
34401 tname=$(echo "ac_cv_sizeof_curl_off_t" | tr A-Z a-z | tr " " "_")
34405 printf "%s\n" "#define SIZEOF_CURL_OFF_T $r" >>confdefs.h
34411 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
34412 if test "x$ac_cv_type_long_long" = xyes
34415 printf "%s\n" "#define HAVE_LONGLONG 1" >>confdefs.h
34423 if test ${ac_cv_sizeof_curl_off_t} -lt 8; then
34425 # Check whether --with-n64-deprecated was given.
34426 if test ${with_n64_deprecated+y}
34428 withval=$with_n64_deprecated; if test X"$withval" != Xno; then
34429 OPT_N64_AWARE=$withval
34434 if test -z "$OPT_N64_AWARE"; then
34435 as_fn_error $? "support for systems without 64 bit curl_off_t is deprecated, use --with-n64-deprecated until then" "$LINENO" 5
34439 # check for ssize_t
34440 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
34441 if test "x$ac_cv_type_ssize_t" = xyes
34446 printf "%s\n" "#define ssize_t int" >>confdefs.h
34451 # check for bool type
34452 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
34453 #ifdef HAVE_SYS_TYPES_H
34454 #include <sys/types.h>
34456 #ifdef HAVE_STDBOOL_H
34457 #include <stdbool.h>
34461 if test "x$ac_cv_type_bool" = xyes
34465 printf "%s\n" "#define HAVE_BOOL_T 1" >>confdefs.h
34471 # check for sa_family_t
34472 ac_fn_c_check_type "$LINENO" "sa_family_t" "ac_cv_type_sa_family_t" "
34473 #ifdef HAVE_SYS_SOCKET_H
34474 #include <sys/socket.h>
34478 if test "x$ac_cv_type_sa_family_t" = xyes
34481 printf "%s\n" "#define CURL_SA_FAMILY_T sa_family_t" >>confdefs.h
34485 # The windows name?
34486 ac_fn_c_check_type "$LINENO" "ADDRESS_FAMILY" "ac_cv_type_ADDRESS_FAMILY" "
34487 #ifdef HAVE_SYS_SOCKET_H
34488 #include <sys/socket.h>
34492 if test "x$ac_cv_type_ADDRESS_FAMILY" = xyes
34495 printf "%s\n" "#define CURL_SA_FAMILY_T ADDRESS_FAMILY" >>confdefs.h
34499 printf "%s\n" "#define CURL_SA_FAMILY_T unsigned short" >>confdefs.h
34507 # check for suseconds_t
34508 ac_fn_c_check_type "$LINENO" "suseconds_t" "ac_cv_type_suseconds_t" "
34509 #ifdef HAVE_SYS_TYPES_H
34510 #include <sys/types.h>
34512 #ifdef HAVE_SYS_TIME_H
34513 #include <sys/time.h>
34517 if test "x$ac_cv_type_suseconds_t" = xyes
34521 printf "%s\n" "#define HAVE_SUSECONDS_T 1" >>confdefs.h
34527 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if time_t is unsigned" >&5
34528 printf %s "checking if time_t is unsigned... " >&6; }
34532 if test "$cross_compiling" = yes
34534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34535 printf "%s\n" "no" >&6; }
34538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34539 /* end confdefs.h. */
34542 #include <limits.h>
34547 if ac_fn_c_try_run "$LINENO"
34549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34550 printf "%s\n" "yes" >&6; }
34552 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34557 printf "%s\n" "no" >&6; }
34560 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34561 conftest.$ac_objext conftest.beam conftest.$ac_ext
34566 old=$LD_LIBRARY_PATH
34567 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
34568 export LD_LIBRARY_PATH
34569 if test "$cross_compiling" = yes
34571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34572 printf "%s\n" "no" >&6; }
34575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34576 /* end confdefs.h. */
34579 #include <limits.h>
34584 if ac_fn_c_try_run "$LINENO"
34586 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34587 printf "%s\n" "yes" >&6; }
34589 printf "%s\n" "#define HAVE_TIME_T_UNSIGNED 1" >>confdefs.h
34593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34594 printf "%s\n" "no" >&6; }
34597 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34598 conftest.$ac_objext conftest.beam conftest.$ac_ext
34601 LD_LIBRARY_PATH=$old # restore
34607 curl_includes_poll="\
34608 /* includes start */
34609 #ifdef HAVE_SYS_TYPES_H
34610 # include <sys/types.h>
34615 #ifdef HAVE_SYS_POLL_H
34616 # include <sys/poll.h>
34618 /* includes end */"
34619 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_poll
34621 if test "x$ac_cv_header_sys_types_h" = xyes
34623 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34626 ac_fn_c_check_header_compile "$LINENO" "poll.h" "ac_cv_header_poll_h" "$curl_includes_poll
34628 if test "x$ac_cv_header_poll_h" = xyes
34630 printf "%s\n" "#define HAVE_POLL_H 1" >>confdefs.h
34633 ac_fn_c_check_header_compile "$LINENO" "sys/poll.h" "ac_cv_header_sys_poll_h" "$curl_includes_poll
34635 if test "x$ac_cv_header_sys_poll_h" = xyes
34637 printf "%s\n" "#define HAVE_SYS_POLL_H 1" >>confdefs.h
34644 tst_poll_events_macro_defined="unknown"
34646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34647 /* end confdefs.h. */
34650 $curl_includes_poll
34655 #if defined(events) || defined(revents)
34658 force compilation error
34666 if ac_fn_c_try_compile "$LINENO"
34669 tst_poll_events_macro_defined="yes"
34673 tst_poll_events_macro_defined="no"
34676 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
34678 if test "$tst_poll_events_macro_defined" = "yes"; then
34679 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
34681 cat >>confdefs.h <<_EOF
34682 #define CURL_PULL_SYS_POLL_H 1
34691 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
34693 #ifdef HAVE_WINDOWS_H
34694 #ifndef WIN32_LEAN_AND_MEAN
34695 #define WIN32_LEAN_AND_MEAN
34697 #include <windows.h>
34698 #ifdef HAVE_WINSOCK2_H
34699 #include <winsock2.h>
34702 #ifdef HAVE_SYS_TYPES_H
34703 #include <sys/types.h>
34705 #ifdef HAVE_SYS_SOCKET_H
34706 #include <sys/socket.h>
34708 #ifdef HAVE_NETINET_IN_H
34709 #include <netinet/in.h>
34711 #ifdef HAVE_ARPA_INET_H
34712 #include <arpa/inet.h>
34717 if test "x$ac_cv_type_in_addr_t" = xyes
34722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
34723 printf %s "checking for in_addr_t equivalent... " >&6; }
34724 if test ${curl_cv_in_addr_t_equiv+y}
34726 printf %s "(cached) " >&6
34729 curl_cv_in_addr_t_equiv="unknown"
34730 for t in "unsigned long" int size_t unsigned long; do
34731 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
34732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34733 /* end confdefs.h. */
34737 #ifdef HAVE_WINDOWS_H
34738 #ifndef WIN32_LEAN_AND_MEAN
34739 #define WIN32_LEAN_AND_MEAN
34741 #include <windows.h>
34742 #ifdef HAVE_WINSOCK2_H
34743 #include <winsock2.h>
34746 #ifdef HAVE_SYS_TYPES_H
34747 #include <sys/types.h>
34749 #ifdef HAVE_SYS_SOCKET_H
34750 #include <sys/socket.h>
34752 #ifdef HAVE_NETINET_IN_H
34753 #include <netinet/in.h>
34755 #ifdef HAVE_ARPA_INET_H
34756 #include <arpa/inet.h>
34763 $t data = inet_addr ("1.2.3.4");
34770 if ac_fn_c_try_link "$LINENO"
34773 curl_cv_in_addr_t_equiv="$t"
34776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34777 conftest$ac_exeext conftest.$ac_ext
34782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
34783 printf "%s\n" "$curl_cv_in_addr_t_equiv" >&6; }
34784 case "$curl_cv_in_addr_t_equiv" in
34786 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
34790 printf "%s\n" "#define in_addr_t $curl_cv_in_addr_t_equiv" >>confdefs.h
34800 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
34802 #ifdef HAVE_WINDOWS_H
34803 #ifndef WIN32_LEAN_AND_MEAN
34804 #define WIN32_LEAN_AND_MEAN
34806 #include <windows.h>
34807 #ifdef HAVE_WINSOCK2_H
34808 #include <winsock2.h>
34811 #ifdef HAVE_SYS_TYPES_H
34812 #include <sys/types.h>
34814 #ifdef HAVE_SYS_SOCKET_H
34815 #include <sys/socket.h>
34817 #ifdef HAVE_NETINET_IN_H
34818 #include <netinet/in.h>
34820 #ifdef HAVE_ARPA_INET_H
34821 #include <arpa/inet.h>
34826 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes
34829 printf "%s\n" "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
34836 ac_fn_c_check_header_compile "$LINENO" "sys/select.h" "ac_cv_header_sys_select_h" "$ac_includes_default"
34837 if test "x$ac_cv_header_sys_select_h" = xyes
34839 printf "%s\n" "#define HAVE_SYS_SELECT_H 1" >>confdefs.h
34842 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34843 if test "x$ac_cv_header_sys_socket_h" = xyes
34845 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for select" >&5
34851 printf %s "checking for select... " >&6; }
34852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34853 /* end confdefs.h. */
34857 #ifdef HAVE_WINDOWS_H
34858 #ifndef WIN32_LEAN_AND_MEAN
34859 #define WIN32_LEAN_AND_MEAN
34861 #include <windows.h>
34862 #ifdef HAVE_WINSOCK2_H
34863 #include <winsock2.h>
34866 #ifdef HAVE_SYS_TYPES_H
34867 #include <sys/types.h>
34869 #ifdef HAVE_SYS_TIME_H
34870 #include <sys/time.h>
34873 #ifndef HAVE_WINDOWS_H
34874 #ifdef HAVE_SYS_SELECT_H
34875 #include <sys/select.h>
34876 #elif defined(HAVE_UNISTD_H)
34877 #include <unistd.h>
34879 #ifdef HAVE_SYS_SOCKET_H
34880 #include <sys/socket.h>
34882 $curl_includes_bsdsocket
34888 select(0, 0, 0, 0, 0);
34895 if ac_fn_c_try_link "$LINENO"
34898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34899 printf "%s\n" "yes" >&6; }
34900 curl_cv_select="yes"
34904 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34905 printf "%s\n" "no" >&6; }
34906 curl_cv_select="no"
34909 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34910 conftest$ac_exeext conftest.$ac_ext
34912 if test "$curl_cv_select" = "yes"; then
34914 printf "%s\n" "#define HAVE_SELECT 1" >>confdefs.h
34916 curl_cv_func_select="yes"
34921 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34922 if test "x$ac_cv_header_sys_types_h" = xyes
34924 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
34927 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
34928 if test "x$ac_cv_header_sys_socket_h" = xyes
34930 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
34935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
34936 printf %s "checking for recv... " >&6; }
34937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34938 /* end confdefs.h. */
34942 #ifdef HAVE_WINDOWS_H
34943 #ifndef WIN32_LEAN_AND_MEAN
34944 #define WIN32_LEAN_AND_MEAN
34946 #include <windows.h>
34947 #ifdef HAVE_WINSOCK2_H
34948 #include <winsock2.h>
34951 $curl_includes_bsdsocket
34952 #ifdef HAVE_SYS_TYPES_H
34953 #include <sys/types.h>
34955 #ifdef HAVE_SYS_SOCKET_H
34956 #include <sys/socket.h>
34970 if ac_fn_c_try_link "$LINENO"
34973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34974 printf "%s\n" "yes" >&6; }
34979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
34980 printf "%s\n" "no" >&6; }
34984 rm -f core conftest.err conftest.$ac_objext conftest.beam \
34985 conftest$ac_exeext conftest.$ac_ext
34987 if test "$curl_cv_recv" = "yes"; then
34989 printf "%s\n" "#define HAVE_RECV 1" >>confdefs.h
34991 curl_cv_func_recv="yes"
34993 as_fn_error $? "Unable to link function recv" "$LINENO" 5
34997 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
34998 if test "x$ac_cv_header_sys_types_h" = xyes
35000 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35003 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35004 if test "x$ac_cv_header_sys_socket_h" = xyes
35006 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for send" >&5
35012 printf %s "checking for send... " >&6; }
35013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35014 /* end confdefs.h. */
35018 #ifdef HAVE_WINDOWS_H
35019 #ifndef WIN32_LEAN_AND_MEAN
35020 #define WIN32_LEAN_AND_MEAN
35022 #include <windows.h>
35023 #ifdef HAVE_WINSOCK2_H
35024 #include <winsock2.h>
35027 $curl_includes_bsdsocket
35028 #ifdef HAVE_SYS_TYPES_H
35029 #include <sys/types.h>
35031 #ifdef HAVE_SYS_SOCKET_H
35032 #include <sys/socket.h>
35046 if ac_fn_c_try_link "$LINENO"
35049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35050 printf "%s\n" "yes" >&6; }
35055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35056 printf "%s\n" "no" >&6; }
35060 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35061 conftest$ac_exeext conftest.$ac_ext
35063 if test "$curl_cv_send" = "yes"; then
35065 printf "%s\n" "#define HAVE_SEND 1" >>confdefs.h
35067 curl_cv_func_send="yes"
35069 as_fn_error $? "Unable to link function send" "$LINENO" 5
35073 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
35074 if test "x$ac_cv_header_sys_types_h" = xyes
35076 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35079 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$ac_includes_default"
35080 if test "x$ac_cv_header_sys_socket_h" = xyes
35082 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
35087 printf %s "checking for MSG_NOSIGNAL... " >&6; }
35088 if test ${curl_cv_msg_nosignal+y}
35090 printf %s "(cached) " >&6
35093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35094 /* end confdefs.h. */
35098 #ifdef HAVE_WINDOWS_H
35099 #ifndef WIN32_LEAN_AND_MEAN
35100 #define WIN32_LEAN_AND_MEAN
35102 #include <windows.h>
35103 #ifdef HAVE_WINSOCK2_H
35104 #include <winsock2.h>
35107 #ifdef HAVE_SYS_TYPES_H
35108 #include <sys/types.h>
35110 #ifdef HAVE_SYS_SOCKET_H
35111 #include <sys/socket.h>
35118 int flag=MSG_NOSIGNAL;
35125 if ac_fn_c_try_compile "$LINENO"
35128 curl_cv_msg_nosignal="yes"
35132 curl_cv_msg_nosignal="no"
35135 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_msg_nosignal" >&5
35139 printf "%s\n" "$curl_cv_msg_nosignal" >&6; }
35140 case "$curl_cv_msg_nosignal" in
35143 printf "%s\n" "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
35150 curl_includes_unistd="\
35151 /* includes start */
35152 #ifdef HAVE_SYS_TYPES_H
35153 # include <sys/types.h>
35155 #ifdef HAVE_UNISTD_H
35156 # include <unistd.h>
35158 /* includes end */"
35159 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_unistd
35161 if test "x$ac_cv_header_sys_types_h" = xyes
35163 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35166 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_unistd
35168 if test "x$ac_cv_header_unistd_h" = xyes
35170 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
35177 tst_links_alarm="unknown"
35178 tst_proto_alarm="unknown"
35179 tst_compi_alarm="unknown"
35180 tst_allow_alarm="unknown"
35182 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
35183 printf %s "checking if alarm can be linked... " >&6; }
35184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35185 /* end confdefs.h. */
35188 #define alarm innocuous_alarm
35190 # include <limits.h>
35192 # include <assert.h>
35199 #if defined __stub_alarm || defined __stub___alarm
35211 if ac_fn_c_try_link "$LINENO"
35214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35215 printf "%s\n" "yes" >&6; }
35216 tst_links_alarm="yes"
35220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35221 printf "%s\n" "no" >&6; }
35222 tst_links_alarm="no"
35225 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35226 conftest$ac_exeext conftest.$ac_ext
35228 if test "$tst_links_alarm" = "yes"; then
35229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
35230 printf %s "checking if alarm is prototyped... " >&6; }
35231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35232 /* end confdefs.h. */
35234 $curl_includes_unistd
35237 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35238 $EGREP "alarm" >/dev/null 2>&1
35241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35242 printf "%s\n" "yes" >&6; }
35243 tst_proto_alarm="yes"
35247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35248 printf "%s\n" "no" >&6; }
35249 tst_proto_alarm="no"
35256 if test "$tst_proto_alarm" = "yes"; then
35257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
35258 printf %s "checking if alarm is compilable... " >&6; }
35259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35260 /* end confdefs.h. */
35263 $curl_includes_unistd
35276 if ac_fn_c_try_compile "$LINENO"
35279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35280 printf "%s\n" "yes" >&6; }
35281 tst_compi_alarm="yes"
35285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35286 printf "%s\n" "no" >&6; }
35287 tst_compi_alarm="no"
35290 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35293 if test "$tst_compi_alarm" = "yes"; then
35294 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
35295 printf %s "checking if alarm usage allowed... " >&6; }
35296 if test "x$curl_disallow_alarm" != "xyes"; then
35297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35298 printf "%s\n" "yes" >&6; }
35299 tst_allow_alarm="yes"
35301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35302 printf "%s\n" "no" >&6; }
35303 tst_allow_alarm="no"
35307 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
35308 printf %s "checking if alarm might be used... " >&6; }
35309 if test "$tst_links_alarm" = "yes" &&
35310 test "$tst_proto_alarm" = "yes" &&
35311 test "$tst_compi_alarm" = "yes" &&
35312 test "$tst_allow_alarm" = "yes"; then
35313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35314 printf "%s\n" "yes" >&6; }
35316 printf "%s\n" "#define HAVE_ALARM 1" >>confdefs.h
35318 curl_cv_func_alarm="yes"
35320 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35321 printf "%s\n" "no" >&6; }
35322 curl_cv_func_alarm="no"
35326 curl_includes_string="\
35327 /* includes start */
35328 #ifdef HAVE_SYS_TYPES_H
35329 # include <sys/types.h>
35331 #ifdef HAVE_STRING_H
35332 # include <string.h>
35334 #ifdef HAVE_STRINGS_H
35335 # include <strings.h>
35337 /* includes end */"
35338 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_string
35340 if test "x$ac_cv_header_sys_types_h" = xyes
35342 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35345 ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$curl_includes_string
35347 if test "x$ac_cv_header_string_h" = xyes
35349 printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h
35352 ac_fn_c_check_header_compile "$LINENO" "strings.h" "ac_cv_header_strings_h" "$curl_includes_string
35354 if test "x$ac_cv_header_strings_h" = xyes
35356 printf "%s\n" "#define HAVE_STRINGS_H 1" >>confdefs.h
35362 curl_includes_libgen="\
35363 /* includes start */
35364 #ifdef HAVE_SYS_TYPES_H
35365 # include <sys/types.h>
35367 #ifdef HAVE_LIBGEN_H
35368 # include <libgen.h>
35370 /* includes end */"
35371 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_libgen
35373 if test "x$ac_cv_header_sys_types_h" = xyes
35375 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35378 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$curl_includes_libgen
35380 if test "x$ac_cv_header_libgen_h" = xyes
35382 printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
35389 tst_links_basename="unknown"
35390 tst_proto_basename="unknown"
35391 tst_compi_basename="unknown"
35392 tst_allow_basename="unknown"
35394 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
35395 printf %s "checking if basename can be linked... " >&6; }
35396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35397 /* end confdefs.h. */
35400 #define basename innocuous_basename
35402 # include <limits.h>
35404 # include <assert.h>
35411 #if defined __stub_basename || defined __stub___basename
35417 return basename ();
35423 if ac_fn_c_try_link "$LINENO"
35426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35427 printf "%s\n" "yes" >&6; }
35428 tst_links_basename="yes"
35432 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35433 printf "%s\n" "no" >&6; }
35434 tst_links_basename="no"
35437 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35438 conftest$ac_exeext conftest.$ac_ext
35440 if test "$tst_links_basename" = "yes"; then
35441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
35442 printf %s "checking if basename is prototyped... " >&6; }
35443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35444 /* end confdefs.h. */
35446 $curl_includes_string
35447 $curl_includes_libgen
35448 $curl_includes_unistd
35451 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35452 $EGREP "basename" >/dev/null 2>&1
35455 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35456 printf "%s\n" "yes" >&6; }
35457 tst_proto_basename="yes"
35461 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35462 printf "%s\n" "no" >&6; }
35463 tst_proto_basename="no"
35470 if test "$tst_proto_basename" = "yes"; then
35471 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
35472 printf %s "checking if basename is compilable... " >&6; }
35473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35474 /* end confdefs.h. */
35477 $curl_includes_string
35478 $curl_includes_libgen
35479 $curl_includes_unistd
35484 if(0 != basename(0))
35492 if ac_fn_c_try_compile "$LINENO"
35495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496 printf "%s\n" "yes" >&6; }
35497 tst_compi_basename="yes"
35501 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35502 printf "%s\n" "no" >&6; }
35503 tst_compi_basename="no"
35506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35509 if test "$tst_compi_basename" = "yes"; then
35510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
35511 printf %s "checking if basename usage allowed... " >&6; }
35512 if test "x$curl_disallow_basename" != "xyes"; then
35513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35514 printf "%s\n" "yes" >&6; }
35515 tst_allow_basename="yes"
35517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35518 printf "%s\n" "no" >&6; }
35519 tst_allow_basename="no"
35523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
35524 printf %s "checking if basename might be used... " >&6; }
35525 if test "$tst_links_basename" = "yes" &&
35526 test "$tst_proto_basename" = "yes" &&
35527 test "$tst_compi_basename" = "yes" &&
35528 test "$tst_allow_basename" = "yes"; then
35529 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35530 printf "%s\n" "yes" >&6; }
35532 printf "%s\n" "#define HAVE_BASENAME 1" >>confdefs.h
35534 curl_cv_func_basename="yes"
35536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35537 printf "%s\n" "no" >&6; }
35538 curl_cv_func_basename="no"
35542 curl_includes_socket="\
35543 /* includes start */
35544 #ifdef HAVE_SYS_TYPES_H
35545 # include <sys/types.h>
35547 #ifdef HAVE_SOCKET_H
35548 # include <socket.h>
35550 /* includes end */"
35551 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_socket
35553 if test "x$ac_cv_header_sys_types_h" = xyes
35555 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35558 ac_fn_c_check_header_compile "$LINENO" "socket.h" "ac_cv_header_socket_h" "$curl_includes_socket
35560 if test "x$ac_cv_header_socket_h" = xyes
35562 printf "%s\n" "#define HAVE_SOCKET_H 1" >>confdefs.h
35569 tst_links_closesocket="unknown"
35570 tst_proto_closesocket="unknown"
35571 tst_compi_closesocket="unknown"
35572 tst_allow_closesocket="unknown"
35574 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
35575 printf %s "checking if closesocket can be linked... " >&6; }
35576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35577 /* end confdefs.h. */
35580 $curl_includes_winsock2
35581 $curl_includes_socket
35586 if(0 != closesocket(0))
35594 if ac_fn_c_try_link "$LINENO"
35597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35598 printf "%s\n" "yes" >&6; }
35599 tst_links_closesocket="yes"
35603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35604 printf "%s\n" "no" >&6; }
35605 tst_links_closesocket="no"
35608 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35609 conftest$ac_exeext conftest.$ac_ext
35611 if test "$tst_links_closesocket" = "yes"; then
35612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
35613 printf %s "checking if closesocket is prototyped... " >&6; }
35614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35615 /* end confdefs.h. */
35617 $curl_includes_winsock2
35618 $curl_includes_socket
35621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35622 $EGREP "closesocket" >/dev/null 2>&1
35625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35626 printf "%s\n" "yes" >&6; }
35627 tst_proto_closesocket="yes"
35631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35632 printf "%s\n" "no" >&6; }
35633 tst_proto_closesocket="no"
35640 if test "$tst_proto_closesocket" = "yes"; then
35641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
35642 printf %s "checking if closesocket is compilable... " >&6; }
35643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35644 /* end confdefs.h. */
35647 $curl_includes_winsock2
35648 $curl_includes_socket
35653 if(0 != closesocket(0))
35661 if ac_fn_c_try_compile "$LINENO"
35664 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35665 printf "%s\n" "yes" >&6; }
35666 tst_compi_closesocket="yes"
35670 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35671 printf "%s\n" "no" >&6; }
35672 tst_compi_closesocket="no"
35675 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35678 if test "$tst_compi_closesocket" = "yes"; then
35679 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
35680 printf %s "checking if closesocket usage allowed... " >&6; }
35681 if test "x$curl_disallow_closesocket" != "xyes"; then
35682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35683 printf "%s\n" "yes" >&6; }
35684 tst_allow_closesocket="yes"
35686 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35687 printf "%s\n" "no" >&6; }
35688 tst_allow_closesocket="no"
35692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
35693 printf %s "checking if closesocket might be used... " >&6; }
35694 if test "$tst_links_closesocket" = "yes" &&
35695 test "$tst_proto_closesocket" = "yes" &&
35696 test "$tst_compi_closesocket" = "yes" &&
35697 test "$tst_allow_closesocket" = "yes"; then
35698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35699 printf "%s\n" "yes" >&6; }
35701 printf "%s\n" "#define HAVE_CLOSESOCKET 1" >>confdefs.h
35703 curl_cv_func_closesocket="yes"
35705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35706 printf "%s\n" "no" >&6; }
35707 curl_cv_func_closesocket="no"
35711 curl_includes_sys_socket="\
35712 /* includes start */
35713 #ifdef HAVE_SYS_TYPES_H
35714 # include <sys/types.h>
35716 #ifdef HAVE_SYS_SOCKET_H
35717 # include <sys/socket.h>
35719 /* includes end */"
35720 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_socket
35722 if test "x$ac_cv_header_sys_types_h" = xyes
35724 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
35727 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_sys_socket
35729 if test "x$ac_cv_header_sys_socket_h" = xyes
35731 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
35738 tst_links_closesocket_camel="unknown"
35739 tst_proto_closesocket_camel="unknown"
35740 tst_compi_closesocket_camel="unknown"
35741 tst_allow_closesocket_camel="unknown"
35743 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
35744 printf %s "checking if CloseSocket can be linked... " >&6; }
35745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35746 /* end confdefs.h. */
35749 $curl_includes_bsdsocket
35750 $curl_includes_sys_socket
35755 if(0 != CloseSocket(0))
35763 if ac_fn_c_try_link "$LINENO"
35766 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35767 printf "%s\n" "yes" >&6; }
35768 tst_links_closesocket_camel="yes"
35772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35773 printf "%s\n" "no" >&6; }
35774 tst_links_closesocket_camel="no"
35777 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35778 conftest$ac_exeext conftest.$ac_ext
35780 if test "$tst_links_closesocket_camel" = "yes"; then
35781 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
35782 printf %s "checking if CloseSocket is prototyped... " >&6; }
35783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35784 /* end confdefs.h. */
35786 $curl_includes_bsdsocket
35787 $curl_includes_sys_socket
35790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35791 $EGREP "CloseSocket" >/dev/null 2>&1
35794 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35795 printf "%s\n" "yes" >&6; }
35796 tst_proto_closesocket_camel="yes"
35800 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35801 printf "%s\n" "no" >&6; }
35802 tst_proto_closesocket_camel="no"
35809 if test "$tst_proto_closesocket_camel" = "yes"; then
35810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
35811 printf %s "checking if CloseSocket is compilable... " >&6; }
35812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35813 /* end confdefs.h. */
35816 $curl_includes_bsdsocket
35817 $curl_includes_sys_socket
35822 if(0 != CloseSocket(0))
35830 if ac_fn_c_try_compile "$LINENO"
35833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35834 printf "%s\n" "yes" >&6; }
35835 tst_compi_closesocket_camel="yes"
35839 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35840 printf "%s\n" "no" >&6; }
35841 tst_compi_closesocket_camel="no"
35844 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35847 if test "$tst_compi_closesocket_camel" = "yes"; then
35848 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
35849 printf %s "checking if CloseSocket usage allowed... " >&6; }
35850 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
35851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35852 printf "%s\n" "yes" >&6; }
35853 tst_allow_closesocket_camel="yes"
35855 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35856 printf "%s\n" "no" >&6; }
35857 tst_allow_closesocket_camel="no"
35861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
35862 printf %s "checking if CloseSocket might be used... " >&6; }
35863 if test "$tst_links_closesocket_camel" = "yes" &&
35864 test "$tst_proto_closesocket_camel" = "yes" &&
35865 test "$tst_compi_closesocket_camel" = "yes" &&
35866 test "$tst_allow_closesocket_camel" = "yes"; then
35867 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35868 printf "%s\n" "yes" >&6; }
35870 printf "%s\n" "#define HAVE_CLOSESOCKET_CAMEL 1" >>confdefs.h
35872 curl_cv_func_closesocket_camel="yes"
35874 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35875 printf "%s\n" "no" >&6; }
35876 curl_cv_func_closesocket_camel="no"
35881 tst_links_connect="unknown"
35882 tst_proto_connect="unknown"
35883 tst_compi_connect="unknown"
35884 tst_allow_connect="unknown"
35886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
35887 printf %s "checking if connect can be linked... " >&6; }
35888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35889 /* end confdefs.h. */
35892 $curl_includes_winsock2
35893 $curl_includes_bsdsocket
35894 $curl_includes_sys_socket
35895 $curl_includes_socket
35900 if(0 != connect(0, 0, 0))
35908 if ac_fn_c_try_link "$LINENO"
35911 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35912 printf "%s\n" "yes" >&6; }
35913 tst_links_connect="yes"
35917 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35918 printf "%s\n" "no" >&6; }
35919 tst_links_connect="no"
35922 rm -f core conftest.err conftest.$ac_objext conftest.beam \
35923 conftest$ac_exeext conftest.$ac_ext
35925 if test "$tst_links_connect" = "yes"; then
35926 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
35927 printf %s "checking if connect is prototyped... " >&6; }
35928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35929 /* end confdefs.h. */
35931 $curl_includes_winsock2
35932 $curl_includes_bsdsocket
35933 $curl_includes_sys_socket
35934 $curl_includes_socket
35937 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35938 $EGREP "connect" >/dev/null 2>&1
35941 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35942 printf "%s\n" "yes" >&6; }
35943 tst_proto_connect="yes"
35947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35948 printf "%s\n" "no" >&6; }
35949 tst_proto_connect="no"
35956 if test "$tst_proto_connect" = "yes"; then
35957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
35958 printf %s "checking if connect is compilable... " >&6; }
35959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35960 /* end confdefs.h. */
35963 $curl_includes_winsock2
35964 $curl_includes_bsdsocket
35965 $curl_includes_sys_socket
35966 $curl_includes_socket
35971 if(0 != connect(0, 0, 0))
35979 if ac_fn_c_try_compile "$LINENO"
35982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35983 printf "%s\n" "yes" >&6; }
35984 tst_compi_connect="yes"
35988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
35989 printf "%s\n" "no" >&6; }
35990 tst_compi_connect="no"
35993 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
35996 if test "$tst_compi_connect" = "yes"; then
35997 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
35998 printf %s "checking if connect usage allowed... " >&6; }
35999 if test "x$curl_disallow_connect" != "xyes"; then
36000 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36001 printf "%s\n" "yes" >&6; }
36002 tst_allow_connect="yes"
36004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36005 printf "%s\n" "no" >&6; }
36006 tst_allow_connect="no"
36010 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
36011 printf %s "checking if connect might be used... " >&6; }
36012 if test "$tst_links_connect" = "yes" &&
36013 test "$tst_proto_connect" = "yes" &&
36014 test "$tst_compi_connect" = "yes" &&
36015 test "$tst_allow_connect" = "yes"; then
36016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36017 printf "%s\n" "yes" >&6; }
36019 printf "%s\n" "#define HAVE_CONNECT 1" >>confdefs.h
36021 curl_cv_func_connect="yes"
36023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36024 printf "%s\n" "no" >&6; }
36025 curl_cv_func_connect="no"
36029 curl_includes_fcntl="\
36030 /* includes start */
36031 #ifdef HAVE_SYS_TYPES_H
36032 # include <sys/types.h>
36034 #ifdef HAVE_UNISTD_H
36035 # include <unistd.h>
36037 #ifdef HAVE_FCNTL_H
36038 # include <fcntl.h>
36040 /* includes end */"
36041 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_fcntl
36043 if test "x$ac_cv_header_sys_types_h" = xyes
36045 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36048 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$curl_includes_fcntl
36050 if test "x$ac_cv_header_unistd_h" = xyes
36052 printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
36055 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$curl_includes_fcntl
36057 if test "x$ac_cv_header_fcntl_h" = xyes
36059 printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
36066 tst_links_fcntl="unknown"
36067 tst_proto_fcntl="unknown"
36068 tst_compi_fcntl="unknown"
36069 tst_allow_fcntl="unknown"
36071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
36072 printf %s "checking if fcntl can be linked... " >&6; }
36073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36074 /* end confdefs.h. */
36077 #define fcntl innocuous_fcntl
36079 # include <limits.h>
36081 # include <assert.h>
36088 #if defined __stub_fcntl || defined __stub___fcntl
36100 if ac_fn_c_try_link "$LINENO"
36103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36104 printf "%s\n" "yes" >&6; }
36105 tst_links_fcntl="yes"
36109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36110 printf "%s\n" "no" >&6; }
36111 tst_links_fcntl="no"
36114 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36115 conftest$ac_exeext conftest.$ac_ext
36117 if test "$tst_links_fcntl" = "yes"; then
36118 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
36119 printf %s "checking if fcntl is prototyped... " >&6; }
36120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36121 /* end confdefs.h. */
36123 $curl_includes_fcntl
36126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36127 $EGREP "fcntl" >/dev/null 2>&1
36130 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36131 printf "%s\n" "yes" >&6; }
36132 tst_proto_fcntl="yes"
36136 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36137 printf "%s\n" "no" >&6; }
36138 tst_proto_fcntl="no"
36145 if test "$tst_proto_fcntl" = "yes"; then
36146 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
36147 printf %s "checking if fcntl is compilable... " >&6; }
36148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36149 /* end confdefs.h. */
36152 $curl_includes_fcntl
36157 if(0 != fcntl(0, 0, 0))
36165 if ac_fn_c_try_compile "$LINENO"
36168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36169 printf "%s\n" "yes" >&6; }
36170 tst_compi_fcntl="yes"
36174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36175 printf "%s\n" "no" >&6; }
36176 tst_compi_fcntl="no"
36179 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36182 if test "$tst_compi_fcntl" = "yes"; then
36183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
36184 printf %s "checking if fcntl usage allowed... " >&6; }
36185 if test "x$curl_disallow_fcntl" != "xyes"; then
36186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36187 printf "%s\n" "yes" >&6; }
36188 tst_allow_fcntl="yes"
36190 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36191 printf "%s\n" "no" >&6; }
36192 tst_allow_fcntl="no"
36196 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
36197 printf %s "checking if fcntl might be used... " >&6; }
36198 if test "$tst_links_fcntl" = "yes" &&
36199 test "$tst_proto_fcntl" = "yes" &&
36200 test "$tst_compi_fcntl" = "yes" &&
36201 test "$tst_allow_fcntl" = "yes"; then
36202 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36203 printf "%s\n" "yes" >&6; }
36205 printf "%s\n" "#define HAVE_FCNTL 1" >>confdefs.h
36207 curl_cv_func_fcntl="yes"
36210 tst_compi_fcntl_o_nonblock="unknown"
36211 tst_allow_fcntl_o_nonblock="unknown"
36215 curl_disallow_fcntl_o_nonblock="yes"
36219 if test "$curl_cv_func_fcntl" = "yes"; then
36220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
36221 printf %s "checking if fcntl O_NONBLOCK is compilable... " >&6; }
36222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36223 /* end confdefs.h. */
36226 $curl_includes_fcntl
36232 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
36240 if ac_fn_c_try_compile "$LINENO"
36243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36244 printf "%s\n" "yes" >&6; }
36245 tst_compi_fcntl_o_nonblock="yes"
36249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36250 printf "%s\n" "no" >&6; }
36251 tst_compi_fcntl_o_nonblock="no"
36254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36257 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
36258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
36259 printf %s "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
36260 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
36261 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36262 printf "%s\n" "yes" >&6; }
36263 tst_allow_fcntl_o_nonblock="yes"
36265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36266 printf "%s\n" "no" >&6; }
36267 tst_allow_fcntl_o_nonblock="no"
36271 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
36272 printf %s "checking if fcntl O_NONBLOCK might be used... " >&6; }
36273 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
36274 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
36275 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36276 printf "%s\n" "yes" >&6; }
36278 printf "%s\n" "#define HAVE_FCNTL_O_NONBLOCK 1" >>confdefs.h
36280 curl_cv_func_fcntl_o_nonblock="yes"
36282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36283 printf "%s\n" "no" >&6; }
36284 curl_cv_func_fcntl_o_nonblock="no"
36288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36289 printf "%s\n" "no" >&6; }
36290 curl_cv_func_fcntl="no"
36294 curl_includes_ws2tcpip="\
36295 /* includes start */
36296 #ifdef HAVE_WINDOWS_H
36297 # ifndef WIN32_LEAN_AND_MEAN
36298 # define WIN32_LEAN_AND_MEAN
36300 # include <windows.h>
36301 # ifdef HAVE_WINSOCK2_H
36302 # include <winsock2.h>
36303 # ifdef HAVE_WS2TCPIP_H
36304 # include <ws2tcpip.h>
36308 /* includes end */"
36310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
36311 printf %s "checking for windows.h... " >&6; }
36312 if test ${curl_cv_header_windows_h+y}
36314 printf %s "(cached) " >&6
36317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36318 /* end confdefs.h. */
36322 #ifndef WIN32_LEAN_AND_MEAN
36323 #define WIN32_LEAN_AND_MEAN
36325 #include <windows.h>
36330 #if defined(__CYGWIN__) || defined(__CEGCC__)
36331 HAVE_WINDOWS_H shall not be defined.
36333 int dummy=2*WINVER;
36341 if ac_fn_c_try_compile "$LINENO"
36344 curl_cv_header_windows_h="yes"
36348 curl_cv_header_windows_h="no"
36351 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36354 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_windows_h" >&5
36355 printf "%s\n" "$curl_cv_header_windows_h" >&6; }
36356 case "$curl_cv_header_windows_h" in
36359 printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h
36365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
36366 printf %s "checking for winsock2.h... " >&6; }
36367 if test ${curl_cv_header_winsock2_h+y}
36369 printf %s "(cached) " >&6
36372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36373 /* end confdefs.h. */
36377 #ifndef WIN32_LEAN_AND_MEAN
36378 #define WIN32_LEAN_AND_MEAN
36380 #include <windows.h>
36381 #include <winsock2.h>
36386 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36387 HAVE_WINSOCK2_H shall not be defined.
36389 int dummy=2*IPPROTO_ESP;
36397 if ac_fn_c_try_compile "$LINENO"
36400 curl_cv_header_winsock2_h="yes"
36404 curl_cv_header_winsock2_h="no"
36407 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_winsock2_h" >&5
36411 printf "%s\n" "$curl_cv_header_winsock2_h" >&6; }
36412 case "$curl_cv_header_winsock2_h" in
36415 printf "%s\n" "#define HAVE_WINSOCK2_H 1" >>confdefs.h
36421 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
36422 printf %s "checking for ws2tcpip.h... " >&6; }
36423 if test ${curl_cv_header_ws2tcpip_h+y}
36425 printf %s "(cached) " >&6
36428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36429 /* end confdefs.h. */
36433 #ifndef WIN32_LEAN_AND_MEAN
36434 #define WIN32_LEAN_AND_MEAN
36436 #include <windows.h>
36437 #include <winsock2.h>
36438 #include <ws2tcpip.h>
36443 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
36444 HAVE_WS2TCPIP_H shall not be defined.
36446 int dummy=2*IP_PKTINFO;
36454 if ac_fn_c_try_compile "$LINENO"
36457 curl_cv_header_ws2tcpip_h="yes"
36461 curl_cv_header_ws2tcpip_h="no"
36464 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $curl_cv_header_ws2tcpip_h" >&5
36468 printf "%s\n" "$curl_cv_header_ws2tcpip_h" >&6; }
36469 case "$curl_cv_header_ws2tcpip_h" in
36472 printf "%s\n" "#define HAVE_WS2TCPIP_H 1" >>confdefs.h
36479 curl_includes_netdb="\
36480 /* includes start */
36481 #ifdef HAVE_SYS_TYPES_H
36482 # include <sys/types.h>
36484 #ifdef HAVE_NETDB_H
36485 # include <netdb.h>
36487 /* includes end */"
36488 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_netdb
36490 if test "x$ac_cv_header_sys_types_h" = xyes
36492 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36495 ac_fn_c_check_header_compile "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$curl_includes_netdb
36497 if test "x$ac_cv_header_netdb_h" = xyes
36499 printf "%s\n" "#define HAVE_NETDB_H 1" >>confdefs.h
36506 tst_links_freeaddrinfo="unknown"
36507 tst_proto_freeaddrinfo="unknown"
36508 tst_compi_freeaddrinfo="unknown"
36509 tst_allow_freeaddrinfo="unknown"
36511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
36512 printf %s "checking if freeaddrinfo can be linked... " >&6; }
36513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36514 /* end confdefs.h. */
36517 $curl_includes_ws2tcpip
36518 $curl_includes_sys_socket
36519 $curl_includes_netdb
36531 if ac_fn_c_try_link "$LINENO"
36534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36535 printf "%s\n" "yes" >&6; }
36536 tst_links_freeaddrinfo="yes"
36540 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36541 printf "%s\n" "no" >&6; }
36542 tst_links_freeaddrinfo="no"
36545 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36546 conftest$ac_exeext conftest.$ac_ext
36548 if test "$tst_links_freeaddrinfo" = "yes"; then
36549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
36550 printf %s "checking if freeaddrinfo is prototyped... " >&6; }
36551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36552 /* end confdefs.h. */
36554 $curl_includes_ws2tcpip
36555 $curl_includes_sys_socket
36556 $curl_includes_netdb
36559 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36560 $EGREP "freeaddrinfo" >/dev/null 2>&1
36563 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36564 printf "%s\n" "yes" >&6; }
36565 tst_proto_freeaddrinfo="yes"
36569 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36570 printf "%s\n" "no" >&6; }
36571 tst_proto_freeaddrinfo="no"
36578 if test "$tst_proto_freeaddrinfo" = "yes"; then
36579 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
36580 printf %s "checking if freeaddrinfo is compilable... " >&6; }
36581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36582 /* end confdefs.h. */
36585 $curl_includes_ws2tcpip
36586 $curl_includes_sys_socket
36587 $curl_includes_netdb
36599 if ac_fn_c_try_compile "$LINENO"
36602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36603 printf "%s\n" "yes" >&6; }
36604 tst_compi_freeaddrinfo="yes"
36608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36609 printf "%s\n" "no" >&6; }
36610 tst_compi_freeaddrinfo="no"
36613 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36616 if test "$tst_compi_freeaddrinfo" = "yes"; then
36617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
36618 printf %s "checking if freeaddrinfo usage allowed... " >&6; }
36619 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
36620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36621 printf "%s\n" "yes" >&6; }
36622 tst_allow_freeaddrinfo="yes"
36624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36625 printf "%s\n" "no" >&6; }
36626 tst_allow_freeaddrinfo="no"
36630 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
36631 printf %s "checking if freeaddrinfo might be used... " >&6; }
36632 if test "$tst_links_freeaddrinfo" = "yes" &&
36633 test "$tst_proto_freeaddrinfo" = "yes" &&
36634 test "$tst_compi_freeaddrinfo" = "yes" &&
36635 test "$tst_allow_freeaddrinfo" = "yes"; then
36636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36637 printf "%s\n" "yes" >&6; }
36639 printf "%s\n" "#define HAVE_FREEADDRINFO 1" >>confdefs.h
36641 curl_cv_func_freeaddrinfo="yes"
36643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36644 printf "%s\n" "no" >&6; }
36645 curl_cv_func_freeaddrinfo="no"
36649 curl_includes_sys_xattr="\
36650 /* includes start */
36651 #ifdef HAVE_SYS_TYPES_H
36652 # include <sys/types.h>
36654 #ifdef HAVE_SYS_XATTR_H
36655 # include <sys/xattr.h>
36657 /* includes end */"
36658 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_sys_xattr
36660 if test "x$ac_cv_header_sys_types_h" = xyes
36662 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
36665 ac_fn_c_check_header_compile "$LINENO" "sys/xattr.h" "ac_cv_header_sys_xattr_h" "$curl_includes_sys_xattr
36667 if test "x$ac_cv_header_sys_xattr_h" = xyes
36669 printf "%s\n" "#define HAVE_SYS_XATTR_H 1" >>confdefs.h
36676 tst_links_fsetxattr="unknown"
36677 tst_proto_fsetxattr="unknown"
36678 tst_compi_fsetxattr="unknown"
36679 tst_allow_fsetxattr="unknown"
36680 tst_nargs_fsetxattr="unknown"
36682 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
36683 printf %s "checking if fsetxattr can be linked... " >&6; }
36684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36685 /* end confdefs.h. */
36688 #define fsetxattr innocuous_fsetxattr
36690 # include <limits.h>
36692 # include <assert.h>
36699 #if defined __stub_fsetxattr || defined __stub___fsetxattr
36705 return fsetxattr ();
36711 if ac_fn_c_try_link "$LINENO"
36714 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36715 printf "%s\n" "yes" >&6; }
36716 tst_links_fsetxattr="yes"
36720 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36721 printf "%s\n" "no" >&6; }
36722 tst_links_fsetxattr="no"
36725 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36726 conftest$ac_exeext conftest.$ac_ext
36728 if test "$tst_links_fsetxattr" = "yes"; then
36729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
36730 printf %s "checking if fsetxattr is prototyped... " >&6; }
36731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36732 /* end confdefs.h. */
36734 $curl_includes_sys_xattr
36737 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36738 $EGREP "fsetxattr" >/dev/null 2>&1
36741 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36742 printf "%s\n" "yes" >&6; }
36743 tst_proto_fsetxattr="yes"
36747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36748 printf "%s\n" "no" >&6; }
36749 tst_proto_fsetxattr="no"
36756 if test "$tst_proto_fsetxattr" = "yes"; then
36757 if test "$tst_nargs_fsetxattr" = "unknown"; then
36758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
36759 printf %s "checking if fsetxattr takes 5 args.... " >&6; }
36760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36761 /* end confdefs.h. */
36764 $curl_includes_sys_xattr
36769 if(0 != fsetxattr(0, 0, 0, 0, 0))
36777 if ac_fn_c_try_compile "$LINENO"
36780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36781 printf "%s\n" "yes" >&6; }
36782 tst_compi_fsetxattr="yes"
36783 tst_nargs_fsetxattr="5"
36787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36788 printf "%s\n" "no" >&6; }
36789 tst_compi_fsetxattr="no"
36792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36794 if test "$tst_nargs_fsetxattr" = "unknown"; then
36795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
36796 printf %s "checking if fsetxattr takes 6 args.... " >&6; }
36797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36798 /* end confdefs.h. */
36801 $curl_includes_sys_xattr
36806 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
36814 if ac_fn_c_try_compile "$LINENO"
36817 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36818 printf "%s\n" "yes" >&6; }
36819 tst_compi_fsetxattr="yes"
36820 tst_nargs_fsetxattr="6"
36824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36825 printf "%s\n" "no" >&6; }
36826 tst_compi_fsetxattr="no"
36829 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
36831 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
36832 printf %s "checking if fsetxattr is compilable... " >&6; }
36833 if test "$tst_compi_fsetxattr" = "yes"; then
36834 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36835 printf "%s\n" "yes" >&6; }
36837 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36838 printf "%s\n" "no" >&6; }
36842 if test "$tst_compi_fsetxattr" = "yes"; then
36843 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
36844 printf %s "checking if fsetxattr usage allowed... " >&6; }
36845 if test "x$curl_disallow_fsetxattr" != "xyes"; then
36846 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36847 printf "%s\n" "yes" >&6; }
36848 tst_allow_fsetxattr="yes"
36850 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36851 printf "%s\n" "no" >&6; }
36852 tst_allow_fsetxattr="no"
36856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
36857 printf %s "checking if fsetxattr might be used... " >&6; }
36858 if test "$tst_links_fsetxattr" = "yes" &&
36859 test "$tst_proto_fsetxattr" = "yes" &&
36860 test "$tst_compi_fsetxattr" = "yes" &&
36861 test "$tst_allow_fsetxattr" = "yes"; then
36862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36863 printf "%s\n" "yes" >&6; }
36865 printf "%s\n" "#define HAVE_FSETXATTR 1" >>confdefs.h
36868 if test "$tst_nargs_fsetxattr" -eq "5"; then
36870 printf "%s\n" "#define HAVE_FSETXATTR_5 1" >>confdefs.h
36872 elif test "$tst_nargs_fsetxattr" -eq "6"; then
36874 printf "%s\n" "#define HAVE_FSETXATTR_6 1" >>confdefs.h
36878 curl_cv_func_fsetxattr="yes"
36880 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36881 printf "%s\n" "no" >&6; }
36882 curl_cv_func_fsetxattr="no"
36887 tst_links_ftruncate="unknown"
36888 tst_proto_ftruncate="unknown"
36889 tst_compi_ftruncate="unknown"
36890 tst_allow_ftruncate="unknown"
36892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
36893 printf %s "checking if ftruncate can be linked... " >&6; }
36894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36895 /* end confdefs.h. */
36898 #define ftruncate innocuous_ftruncate
36900 # include <limits.h>
36902 # include <assert.h>
36909 #if defined __stub_ftruncate || defined __stub___ftruncate
36915 return ftruncate ();
36921 if ac_fn_c_try_link "$LINENO"
36924 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36925 printf "%s\n" "yes" >&6; }
36926 tst_links_ftruncate="yes"
36930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36931 printf "%s\n" "no" >&6; }
36932 tst_links_ftruncate="no"
36935 rm -f core conftest.err conftest.$ac_objext conftest.beam \
36936 conftest$ac_exeext conftest.$ac_ext
36938 if test "$tst_links_ftruncate" = "yes"; then
36939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
36940 printf %s "checking if ftruncate is prototyped... " >&6; }
36941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36942 /* end confdefs.h. */
36944 $curl_includes_unistd
36947 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36948 $EGREP "ftruncate" >/dev/null 2>&1
36951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36952 printf "%s\n" "yes" >&6; }
36953 tst_proto_ftruncate="yes"
36957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36958 printf "%s\n" "no" >&6; }
36959 tst_proto_ftruncate="no"
36966 if test "$tst_proto_ftruncate" = "yes"; then
36967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
36968 printf %s "checking if ftruncate is compilable... " >&6; }
36969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36970 /* end confdefs.h. */
36973 $curl_includes_unistd
36978 if(0 != ftruncate(0, 0))
36986 if ac_fn_c_try_compile "$LINENO"
36989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36990 printf "%s\n" "yes" >&6; }
36991 tst_compi_ftruncate="yes"
36995 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
36996 printf "%s\n" "no" >&6; }
36997 tst_compi_ftruncate="no"
37000 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37003 if test "$tst_compi_ftruncate" = "yes"; then
37004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
37005 printf %s "checking if ftruncate usage allowed... " >&6; }
37006 if test "x$curl_disallow_ftruncate" != "xyes"; then
37007 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37008 printf "%s\n" "yes" >&6; }
37009 tst_allow_ftruncate="yes"
37011 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37012 printf "%s\n" "no" >&6; }
37013 tst_allow_ftruncate="no"
37017 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
37018 printf %s "checking if ftruncate might be used... " >&6; }
37019 if test "$tst_links_ftruncate" = "yes" &&
37020 test "$tst_proto_ftruncate" = "yes" &&
37021 test "$tst_compi_ftruncate" = "yes" &&
37022 test "$tst_allow_ftruncate" = "yes"; then
37023 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37024 printf "%s\n" "yes" >&6; }
37026 printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h
37028 curl_cv_func_ftruncate="yes"
37030 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37031 printf "%s\n" "no" >&6; }
37032 curl_cv_func_ftruncate="no"
37036 curl_includes_stdlib="\
37037 /* includes start */
37038 #ifdef HAVE_SYS_TYPES_H
37039 # include <sys/types.h>
37041 #ifdef HAVE_STDLIB_H
37042 # include <stdlib.h>
37044 /* includes end */"
37045 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_stdlib
37047 if test "x$ac_cv_header_sys_types_h" = xyes
37049 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
37052 ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$curl_includes_stdlib
37054 if test "x$ac_cv_header_stdlib_h" = xyes
37056 printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h
37063 tst_links_getaddrinfo="unknown"
37064 tst_proto_getaddrinfo="unknown"
37065 tst_compi_getaddrinfo="unknown"
37066 tst_works_getaddrinfo="unknown"
37067 tst_allow_getaddrinfo="unknown"
37068 tst_tsafe_getaddrinfo="unknown"
37070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
37071 printf %s "checking if getaddrinfo can be linked... " >&6; }
37072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37073 /* end confdefs.h. */
37076 $curl_includes_ws2tcpip
37077 $curl_includes_sys_socket
37078 $curl_includes_netdb
37083 if(0 != getaddrinfo(0, 0, 0, 0))
37091 if ac_fn_c_try_link "$LINENO"
37094 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37095 printf "%s\n" "yes" >&6; }
37096 tst_links_getaddrinfo="yes"
37100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37101 printf "%s\n" "no" >&6; }
37102 tst_links_getaddrinfo="no"
37105 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37106 conftest$ac_exeext conftest.$ac_ext
37108 if test "$tst_links_getaddrinfo" = "yes"; then
37109 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
37110 printf %s "checking if getaddrinfo is prototyped... " >&6; }
37111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37112 /* end confdefs.h. */
37114 $curl_includes_ws2tcpip
37115 $curl_includes_sys_socket
37116 $curl_includes_netdb
37119 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37120 $EGREP "getaddrinfo" >/dev/null 2>&1
37123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37124 printf "%s\n" "yes" >&6; }
37125 tst_proto_getaddrinfo="yes"
37129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37130 printf "%s\n" "no" >&6; }
37131 tst_proto_getaddrinfo="no"
37138 if test "$tst_proto_getaddrinfo" = "yes"; then
37139 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
37140 printf %s "checking if getaddrinfo is compilable... " >&6; }
37141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37142 /* end confdefs.h. */
37145 $curl_includes_ws2tcpip
37146 $curl_includes_sys_socket
37147 $curl_includes_netdb
37152 if(0 != getaddrinfo(0, 0, 0, 0))
37160 if ac_fn_c_try_compile "$LINENO"
37163 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37164 printf "%s\n" "yes" >&6; }
37165 tst_compi_getaddrinfo="yes"
37169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37170 printf "%s\n" "no" >&6; }
37171 tst_compi_getaddrinfo="no"
37174 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37177 if test "x$cross_compiling" != "xyes" &&
37178 test "$tst_compi_getaddrinfo" = "yes"; then
37179 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
37180 printf %s "checking if getaddrinfo seems to work... " >&6; }
37184 if test "$cross_compiling" = yes
37186 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37187 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37188 as_fn_error $? "cannot run test program while cross compiling
37189 See \`config.log' for more details" "$LINENO" 5; }
37191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37192 /* end confdefs.h. */
37195 $curl_includes_ws2tcpip
37196 $curl_includes_stdlib
37197 $curl_includes_string
37198 $curl_includes_sys_socket
37199 $curl_includes_netdb
37204 struct addrinfo hints;
37205 struct addrinfo *ai = 0;
37208 #ifdef HAVE_WINSOCK2_H
37210 if (WSAStartup(MAKEWORD(2,2), &wsa))
37214 memset(&hints, 0, sizeof(hints));
37215 hints.ai_flags = AI_NUMERICHOST;
37216 hints.ai_family = AF_UNSPEC;
37217 hints.ai_socktype = SOCK_STREAM;
37218 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37220 exit(1); /* fail */
37229 if ac_fn_c_try_run "$LINENO"
37231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37232 printf "%s\n" "yes" >&6; }
37233 tst_works_getaddrinfo="yes"
37236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37237 printf "%s\n" "no" >&6; }
37238 tst_works_getaddrinfo="no"
37241 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37242 conftest.$ac_objext conftest.beam conftest.$ac_ext
37247 old=$LD_LIBRARY_PATH
37248 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
37249 export LD_LIBRARY_PATH
37250 if test "$cross_compiling" = yes
37252 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
37253 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
37254 as_fn_error $? "cannot run test program while cross compiling
37255 See \`config.log' for more details" "$LINENO" 5; }
37257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37258 /* end confdefs.h. */
37261 $curl_includes_ws2tcpip
37262 $curl_includes_stdlib
37263 $curl_includes_string
37264 $curl_includes_sys_socket
37265 $curl_includes_netdb
37270 struct addrinfo hints;
37271 struct addrinfo *ai = 0;
37274 #ifdef HAVE_WINSOCK2_H
37276 if (WSAStartup(MAKEWORD(2,2), &wsa))
37280 memset(&hints, 0, sizeof(hints));
37281 hints.ai_flags = AI_NUMERICHOST;
37282 hints.ai_family = AF_UNSPEC;
37283 hints.ai_socktype = SOCK_STREAM;
37284 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
37286 exit(1); /* fail */
37295 if ac_fn_c_try_run "$LINENO"
37297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37298 printf "%s\n" "yes" >&6; }
37299 tst_works_getaddrinfo="yes"
37302 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37303 printf "%s\n" "no" >&6; }
37304 tst_works_getaddrinfo="no"
37307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
37308 conftest.$ac_objext conftest.beam conftest.$ac_ext
37311 LD_LIBRARY_PATH=$old # restore
37317 if test "$tst_compi_getaddrinfo" = "yes" &&
37318 test "$tst_works_getaddrinfo" != "no"; then
37319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
37320 printf %s "checking if getaddrinfo usage allowed... " >&6; }
37321 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
37322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37323 printf "%s\n" "yes" >&6; }
37324 tst_allow_getaddrinfo="yes"
37326 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37327 printf "%s\n" "no" >&6; }
37328 tst_allow_getaddrinfo="no"
37332 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
37333 printf %s "checking if getaddrinfo might be used... " >&6; }
37334 if test "$tst_links_getaddrinfo" = "yes" &&
37335 test "$tst_proto_getaddrinfo" = "yes" &&
37336 test "$tst_compi_getaddrinfo" = "yes" &&
37337 test "$tst_allow_getaddrinfo" = "yes" &&
37338 test "$tst_works_getaddrinfo" != "no"; then
37339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37340 printf "%s\n" "yes" >&6; }
37342 printf "%s\n" "#define HAVE_GETADDRINFO 1" >>confdefs.h
37344 curl_cv_func_getaddrinfo="yes"
37346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37347 printf "%s\n" "no" >&6; }
37348 curl_cv_func_getaddrinfo="no"
37349 curl_cv_func_getaddrinfo_threadsafe="no"
37352 if test "$curl_cv_func_getaddrinfo" = "yes"; then
37353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
37354 printf %s "checking if getaddrinfo is threadsafe... " >&6; }
37356 aix[1234].* | aix5.[01].*)
37357 tst_tsafe_getaddrinfo="no"
37360 tst_tsafe_getaddrinfo="yes"
37363 tst_tsafe_getaddrinfo="no"
37366 tst_tsafe_getaddrinfo="yes"
37368 freebsd[1234].* | freebsd5.[1234]*)
37369 tst_tsafe_getaddrinfo="no"
37372 tst_tsafe_getaddrinfo="yes"
37374 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
37375 tst_tsafe_getaddrinfo="no"
37378 tst_tsafe_getaddrinfo="yes"
37381 tst_tsafe_getaddrinfo="yes"
37384 tst_tsafe_getaddrinfo="no"
37387 tst_tsafe_getaddrinfo="yes"
37390 tst_tsafe_getaddrinfo="no"
37393 tst_tsafe_getaddrinfo="yes"
37396 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
37397 test "$curl_cv_native_windows" = "yes"; then
37398 tst_tsafe_getaddrinfo="yes"
37400 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
37403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37404 /* end confdefs.h. */
37407 $curl_includes_sys_socket
37408 $curl_includes_netdb
37415 force compilation error
37421 if ac_fn_c_try_compile "$LINENO"
37424 tst_symbol_defined="yes"
37428 tst_symbol_defined="no"
37431 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37432 if test "$tst_symbol_defined" = "yes"; then
37433 curl_cv_have_def_h_errno=yes
37436 curl_cv_have_def_h_errno=no
37440 if test "$curl_cv_have_def_h_errno" = "yes"; then
37441 tst_h_errno_macro="yes"
37443 tst_h_errno_macro="no"
37445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37446 /* end confdefs.h. */
37449 $curl_includes_sys_socket
37450 $curl_includes_netdb
37464 if ac_fn_c_try_compile "$LINENO"
37467 tst_h_errno_modifiable_lvalue="yes"
37471 tst_h_errno_modifiable_lvalue="no"
37474 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37476 /* end confdefs.h. */
37483 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
37485 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
37488 force compilation error
37496 if ac_fn_c_try_compile "$LINENO"
37499 tst_h_errno_sbs_issue_7="yes"
37503 tst_h_errno_sbs_issue_7="no"
37506 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37507 if test "$tst_h_errno_macro" = "no" &&
37508 test "$tst_h_errno_modifiable_lvalue" = "no" &&
37509 test "$tst_h_errno_sbs_issue_7" = "no"; then
37510 tst_tsafe_getaddrinfo="no"
37512 tst_tsafe_getaddrinfo="yes"
37515 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
37516 printf "%s\n" "$tst_tsafe_getaddrinfo" >&6; }
37517 if test "$tst_tsafe_getaddrinfo" = "yes"; then
37519 printf "%s\n" "#define HAVE_GETADDRINFO_THREADSAFE 1" >>confdefs.h
37521 curl_cv_func_getaddrinfo_threadsafe="yes"
37523 curl_cv_func_getaddrinfo_threadsafe="no"
37529 tst_links_gethostbyname="unknown"
37530 tst_proto_gethostbyname="unknown"
37531 tst_compi_gethostbyname="unknown"
37532 tst_allow_gethostbyname="unknown"
37534 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
37535 printf %s "checking if gethostbyname can be linked... " >&6; }
37536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37537 /* end confdefs.h. */
37540 $curl_includes_winsock2
37541 $curl_includes_bsdsocket
37542 $curl_includes_netdb
37547 if(0 != gethostbyname(0))
37555 if ac_fn_c_try_link "$LINENO"
37558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37559 printf "%s\n" "yes" >&6; }
37560 tst_links_gethostbyname="yes"
37564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37565 printf "%s\n" "no" >&6; }
37566 tst_links_gethostbyname="no"
37569 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37570 conftest$ac_exeext conftest.$ac_ext
37572 if test "$tst_links_gethostbyname" = "yes"; then
37573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
37574 printf %s "checking if gethostbyname is prototyped... " >&6; }
37575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37576 /* end confdefs.h. */
37578 $curl_includes_winsock2
37579 $curl_includes_bsdsocket
37580 $curl_includes_netdb
37583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37584 $EGREP "gethostbyname" >/dev/null 2>&1
37587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37588 printf "%s\n" "yes" >&6; }
37589 tst_proto_gethostbyname="yes"
37593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37594 printf "%s\n" "no" >&6; }
37595 tst_proto_gethostbyname="no"
37602 if test "$tst_proto_gethostbyname" = "yes"; then
37603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
37604 printf %s "checking if gethostbyname is compilable... " >&6; }
37605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37606 /* end confdefs.h. */
37609 $curl_includes_winsock2
37610 $curl_includes_bsdsocket
37611 $curl_includes_netdb
37616 if(0 != gethostbyname(0))
37624 if ac_fn_c_try_compile "$LINENO"
37627 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37628 printf "%s\n" "yes" >&6; }
37629 tst_compi_gethostbyname="yes"
37633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37634 printf "%s\n" "no" >&6; }
37635 tst_compi_gethostbyname="no"
37638 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37641 if test "$tst_compi_gethostbyname" = "yes"; then
37642 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
37643 printf %s "checking if gethostbyname usage allowed... " >&6; }
37644 if test "x$curl_disallow_gethostbyname" != "xyes"; then
37645 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37646 printf "%s\n" "yes" >&6; }
37647 tst_allow_gethostbyname="yes"
37649 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37650 printf "%s\n" "no" >&6; }
37651 tst_allow_gethostbyname="no"
37655 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
37656 printf %s "checking if gethostbyname might be used... " >&6; }
37657 if test "$tst_links_gethostbyname" = "yes" &&
37658 test "$tst_proto_gethostbyname" = "yes" &&
37659 test "$tst_compi_gethostbyname" = "yes" &&
37660 test "$tst_allow_gethostbyname" = "yes"; then
37661 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37662 printf "%s\n" "yes" >&6; }
37664 printf "%s\n" "#define HAVE_GETHOSTBYNAME 1" >>confdefs.h
37666 curl_cv_func_gethostbyname="yes"
37668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37669 printf "%s\n" "no" >&6; }
37670 curl_cv_func_gethostbyname="no"
37675 tst_links_gethostbyname_r="unknown"
37676 tst_proto_gethostbyname_r="unknown"
37677 tst_compi_gethostbyname_r="unknown"
37678 tst_allow_gethostbyname_r="unknown"
37679 tst_nargs_gethostbyname_r="unknown"
37681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
37682 printf %s "checking if gethostbyname_r can be linked... " >&6; }
37683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37684 /* end confdefs.h. */
37687 #define gethostbyname_r innocuous_gethostbyname_r
37689 # include <limits.h>
37691 # include <assert.h>
37693 #undef gethostbyname_r
37697 char gethostbyname_r ();
37698 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
37704 return gethostbyname_r ();
37710 if ac_fn_c_try_link "$LINENO"
37713 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37714 printf "%s\n" "yes" >&6; }
37715 tst_links_gethostbyname_r="yes"
37719 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37720 printf "%s\n" "no" >&6; }
37721 tst_links_gethostbyname_r="no"
37724 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37725 conftest$ac_exeext conftest.$ac_ext
37727 if test "$tst_links_gethostbyname_r" = "yes"; then
37728 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
37729 printf %s "checking if gethostbyname_r is prototyped... " >&6; }
37730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37731 /* end confdefs.h. */
37733 $curl_includes_netdb
37736 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37737 $EGREP "gethostbyname_r" >/dev/null 2>&1
37740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37741 printf "%s\n" "yes" >&6; }
37742 tst_proto_gethostbyname_r="yes"
37746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37747 printf "%s\n" "no" >&6; }
37748 tst_proto_gethostbyname_r="no"
37755 if test "$tst_proto_gethostbyname_r" = "yes"; then
37756 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
37758 printf %s "checking if gethostbyname_r takes 3 args.... " >&6; }
37759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37760 /* end confdefs.h. */
37763 $curl_includes_netdb
37764 $curl_includes_bsdsocket
37769 if(0 != gethostbyname_r(0, 0, 0))
37777 if ac_fn_c_try_compile "$LINENO"
37780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37781 printf "%s\n" "yes" >&6; }
37782 tst_compi_gethostbyname_r="yes"
37783 tst_nargs_gethostbyname_r="3"
37787 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37788 printf "%s\n" "no" >&6; }
37789 tst_compi_gethostbyname_r="no"
37792 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37794 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37795 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
37796 printf %s "checking if gethostbyname_r takes 5 args.... " >&6; }
37797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37798 /* end confdefs.h. */
37801 $curl_includes_netdb
37802 $curl_includes_bsdsocket
37807 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
37815 if ac_fn_c_try_compile "$LINENO"
37818 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37819 printf "%s\n" "yes" >&6; }
37820 tst_compi_gethostbyname_r="yes"
37821 tst_nargs_gethostbyname_r="5"
37825 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37826 printf "%s\n" "no" >&6; }
37827 tst_compi_gethostbyname_r="no"
37830 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37832 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
37833 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
37834 printf %s "checking if gethostbyname_r takes 6 args.... " >&6; }
37835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37836 /* end confdefs.h. */
37839 $curl_includes_netdb
37840 $curl_includes_bsdsocket
37845 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
37853 if ac_fn_c_try_compile "$LINENO"
37856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37857 printf "%s\n" "yes" >&6; }
37858 tst_compi_gethostbyname_r="yes"
37859 tst_nargs_gethostbyname_r="6"
37863 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37864 printf "%s\n" "no" >&6; }
37865 tst_compi_gethostbyname_r="no"
37868 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
37870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
37871 printf %s "checking if gethostbyname_r is compilable... " >&6; }
37872 if test "$tst_compi_gethostbyname_r" = "yes"; then
37873 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37874 printf "%s\n" "yes" >&6; }
37876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37877 printf "%s\n" "no" >&6; }
37881 if test "$tst_compi_gethostbyname_r" = "yes"; then
37882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
37883 printf %s "checking if gethostbyname_r usage allowed... " >&6; }
37884 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
37885 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37886 printf "%s\n" "yes" >&6; }
37887 tst_allow_gethostbyname_r="yes"
37889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37890 printf "%s\n" "no" >&6; }
37891 tst_allow_gethostbyname_r="no"
37895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
37896 printf %s "checking if gethostbyname_r might be used... " >&6; }
37897 if test "$tst_links_gethostbyname_r" = "yes" &&
37898 test "$tst_proto_gethostbyname_r" = "yes" &&
37899 test "$tst_compi_gethostbyname_r" = "yes" &&
37900 test "$tst_allow_gethostbyname_r" = "yes"; then
37901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37902 printf "%s\n" "yes" >&6; }
37904 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R 1" >>confdefs.h
37907 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
37909 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
37911 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
37913 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
37915 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
37917 printf "%s\n" "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
37921 curl_cv_func_gethostbyname_r="yes"
37923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37924 printf "%s\n" "no" >&6; }
37925 curl_cv_func_gethostbyname_r="no"
37929 curl_preprocess_callconv="\
37930 /* preprocess start */
37931 #ifdef HAVE_WINDOWS_H
37932 # define FUNCALLCONV __stdcall
37934 # define FUNCALLCONV
37936 /* preprocess end */"
37940 tst_links_gethostname="unknown"
37941 tst_proto_gethostname="unknown"
37942 tst_compi_gethostname="unknown"
37943 tst_allow_gethostname="unknown"
37945 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
37946 printf %s "checking if gethostname can be linked... " >&6; }
37947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37948 /* end confdefs.h. */
37951 $curl_includes_winsock2
37952 $curl_includes_unistd
37953 $curl_includes_bsdsocket
37958 if(0 != gethostname(0, 0))
37966 if ac_fn_c_try_link "$LINENO"
37969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37970 printf "%s\n" "yes" >&6; }
37971 tst_links_gethostname="yes"
37975 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
37976 printf "%s\n" "no" >&6; }
37977 tst_links_gethostname="no"
37980 rm -f core conftest.err conftest.$ac_objext conftest.beam \
37981 conftest$ac_exeext conftest.$ac_ext
37983 if test "$tst_links_gethostname" = "yes"; then
37984 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
37985 printf %s "checking if gethostname is prototyped... " >&6; }
37986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37987 /* end confdefs.h. */
37989 $curl_includes_winsock2
37990 $curl_includes_unistd
37991 $curl_includes_bsdsocket
37994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37995 $EGREP "gethostname" >/dev/null 2>&1
37998 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37999 printf "%s\n" "yes" >&6; }
38000 tst_proto_gethostname="yes"
38004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38005 printf "%s\n" "no" >&6; }
38006 tst_proto_gethostname="no"
38013 if test "$tst_proto_gethostname" = "yes"; then
38014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
38015 printf %s "checking if gethostname is compilable... " >&6; }
38016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38017 /* end confdefs.h. */
38020 $curl_includes_winsock2
38021 $curl_includes_unistd
38022 $curl_includes_bsdsocket
38027 if(0 != gethostname(0, 0))
38035 if ac_fn_c_try_compile "$LINENO"
38038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38039 printf "%s\n" "yes" >&6; }
38040 tst_compi_gethostname="yes"
38044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38045 printf "%s\n" "no" >&6; }
38046 tst_compi_gethostname="no"
38049 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38052 if test "$tst_compi_gethostname" = "yes"; then
38053 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
38054 printf %s "checking for gethostname arg 2 data type... " >&6; }
38055 tst_gethostname_type_arg2="unknown"
38056 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
38057 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
38058 if test "$tst_gethostname_type_arg2" = "unknown"; then
38059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38060 /* end confdefs.h. */
38063 $curl_includes_winsock2
38064 $curl_includes_unistd
38065 $curl_includes_bsdsocket
38066 $curl_preprocess_callconv
38067 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
38072 if(0 != gethostname(0, 0))
38080 if ac_fn_c_try_compile "$LINENO"
38083 tst_gethostname_type_arg2="$tst_arg2"
38086 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38090 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
38091 printf "%s\n" "$tst_gethostname_type_arg2" >&6; }
38092 if test "$tst_gethostname_type_arg2" != "unknown"; then
38094 printf "%s\n" "#define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2" >>confdefs.h
38099 if test "$tst_compi_gethostname" = "yes"; then
38100 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
38101 printf %s "checking if gethostname usage allowed... " >&6; }
38102 if test "x$curl_disallow_gethostname" != "xyes"; then
38103 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38104 printf "%s\n" "yes" >&6; }
38105 tst_allow_gethostname="yes"
38107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38108 printf "%s\n" "no" >&6; }
38109 tst_allow_gethostname="no"
38113 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
38114 printf %s "checking if gethostname might be used... " >&6; }
38115 if test "$tst_links_gethostname" = "yes" &&
38116 test "$tst_proto_gethostname" = "yes" &&
38117 test "$tst_compi_gethostname" = "yes" &&
38118 test "$tst_allow_gethostname" = "yes"; then
38119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38120 printf "%s\n" "yes" >&6; }
38122 printf "%s\n" "#define HAVE_GETHOSTNAME 1" >>confdefs.h
38124 curl_cv_func_gethostname="yes"
38126 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38127 printf "%s\n" "no" >&6; }
38128 curl_cv_func_gethostname="no"
38133 tst_links_getpeername="unknown"
38134 tst_proto_getpeername="unknown"
38135 tst_compi_getpeername="unknown"
38136 tst_allow_getpeername="unknown"
38138 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername can be linked" >&5
38139 printf %s "checking if getpeername can be linked... " >&6; }
38140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38141 /* end confdefs.h. */
38144 $curl_includes_winsock2
38145 $curl_includes_bsdsocket
38146 $curl_includes_sys_socket
38151 if(0 != getpeername(0, (void *)0, (void *)0))
38159 if ac_fn_c_try_link "$LINENO"
38162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38163 printf "%s\n" "yes" >&6; }
38164 tst_links_getpeername="yes"
38168 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38169 printf "%s\n" "no" >&6; }
38170 tst_links_getpeername="no"
38173 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38174 conftest$ac_exeext conftest.$ac_ext
38176 if test "$tst_links_getpeername" = "yes"; then
38177 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is prototyped" >&5
38178 printf %s "checking if getpeername is prototyped... " >&6; }
38179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38180 /* end confdefs.h. */
38182 $curl_includes_winsock2
38183 $curl_includes_bsdsocket
38184 $curl_includes_sys_socket
38187 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38188 $EGREP "getpeername" >/dev/null 2>&1
38191 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38192 printf "%s\n" "yes" >&6; }
38193 tst_proto_getpeername="yes"
38197 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38198 printf "%s\n" "no" >&6; }
38199 tst_proto_getpeername="no"
38206 if test "$tst_proto_getpeername" = "yes"; then
38207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername is compilable" >&5
38208 printf %s "checking if getpeername is compilable... " >&6; }
38209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38210 /* end confdefs.h. */
38213 $curl_includes_winsock2
38214 $curl_includes_bsdsocket
38215 $curl_includes_sys_socket
38220 if(0 != getpeername(0, (void *)0, (void *)0))
38228 if ac_fn_c_try_compile "$LINENO"
38231 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38232 printf "%s\n" "yes" >&6; }
38233 tst_compi_getpeername="yes"
38237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38238 printf "%s\n" "no" >&6; }
38239 tst_compi_getpeername="no"
38242 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38245 if test "$tst_compi_getpeername" = "yes"; then
38246 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername usage allowed" >&5
38247 printf %s "checking if getpeername usage allowed... " >&6; }
38248 if test "x$curl_disallow_getpeername" != "xyes"; then
38249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38250 printf "%s\n" "yes" >&6; }
38251 tst_allow_getpeername="yes"
38253 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38254 printf "%s\n" "no" >&6; }
38255 tst_allow_getpeername="no"
38259 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getpeername might be used" >&5
38260 printf %s "checking if getpeername might be used... " >&6; }
38261 if test "$tst_links_getpeername" = "yes" &&
38262 test "$tst_proto_getpeername" = "yes" &&
38263 test "$tst_compi_getpeername" = "yes" &&
38264 test "$tst_allow_getpeername" = "yes"; then
38265 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38266 printf "%s\n" "yes" >&6; }
38268 printf "%s\n" "#define HAVE_GETPEERNAME 1" >>confdefs.h
38270 curl_cv_func_getpeername="yes"
38272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38273 printf "%s\n" "no" >&6; }
38274 curl_cv_func_getpeername="no"
38279 tst_links_getsockname="unknown"
38280 tst_proto_getsockname="unknown"
38281 tst_compi_getsockname="unknown"
38282 tst_allow_getsockname="unknown"
38284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname can be linked" >&5
38285 printf %s "checking if getsockname can be linked... " >&6; }
38286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38287 /* end confdefs.h. */
38290 $curl_includes_winsock2
38291 $curl_includes_bsdsocket
38292 $curl_includes_sys_socket
38297 if(0 != getsockname(0, (void *)0, (void *)0))
38305 if ac_fn_c_try_link "$LINENO"
38308 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38309 printf "%s\n" "yes" >&6; }
38310 tst_links_getsockname="yes"
38314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38315 printf "%s\n" "no" >&6; }
38316 tst_links_getsockname="no"
38319 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38320 conftest$ac_exeext conftest.$ac_ext
38322 if test "$tst_links_getsockname" = "yes"; then
38323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is prototyped" >&5
38324 printf %s "checking if getsockname is prototyped... " >&6; }
38325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38326 /* end confdefs.h. */
38328 $curl_includes_winsock2
38329 $curl_includes_bsdsocket
38330 $curl_includes_sys_socket
38333 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38334 $EGREP "getsockname" >/dev/null 2>&1
38337 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38338 printf "%s\n" "yes" >&6; }
38339 tst_proto_getsockname="yes"
38343 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38344 printf "%s\n" "no" >&6; }
38345 tst_proto_getsockname="no"
38352 if test "$tst_proto_getsockname" = "yes"; then
38353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname is compilable" >&5
38354 printf %s "checking if getsockname is compilable... " >&6; }
38355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38356 /* end confdefs.h. */
38359 $curl_includes_winsock2
38360 $curl_includes_bsdsocket
38361 $curl_includes_sys_socket
38366 if(0 != getsockname(0, (void *)0, (void *)0))
38374 if ac_fn_c_try_compile "$LINENO"
38377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38378 printf "%s\n" "yes" >&6; }
38379 tst_compi_getsockname="yes"
38383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38384 printf "%s\n" "no" >&6; }
38385 tst_compi_getsockname="no"
38388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38391 if test "$tst_compi_getsockname" = "yes"; then
38392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname usage allowed" >&5
38393 printf %s "checking if getsockname usage allowed... " >&6; }
38394 if test "x$curl_disallow_getsockname" != "xyes"; then
38395 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38396 printf "%s\n" "yes" >&6; }
38397 tst_allow_getsockname="yes"
38399 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38400 printf "%s\n" "no" >&6; }
38401 tst_allow_getsockname="no"
38405 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getsockname might be used" >&5
38406 printf %s "checking if getsockname might be used... " >&6; }
38407 if test "$tst_links_getsockname" = "yes" &&
38408 test "$tst_proto_getsockname" = "yes" &&
38409 test "$tst_compi_getsockname" = "yes" &&
38410 test "$tst_allow_getsockname" = "yes"; then
38411 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38412 printf "%s\n" "yes" >&6; }
38414 printf "%s\n" "#define HAVE_GETSOCKNAME 1" >>confdefs.h
38416 curl_cv_func_getsockname="yes"
38418 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38419 printf "%s\n" "no" >&6; }
38420 curl_cv_func_getsockname="no"
38424 curl_includes_netif="\
38425 /* includes start */
38426 #ifdef HAVE_NET_IF_H
38427 # include <net/if.h>
38429 /* includes end */"
38430 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$curl_includes_netif
38432 if test "x$ac_cv_header_net_if_h" = xyes
38434 printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
38441 tst_links_if_nametoindex="unknown"
38442 tst_proto_if_nametoindex="unknown"
38443 tst_compi_if_nametoindex="unknown"
38444 tst_allow_if_nametoindex="unknown"
38446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex can be linked" >&5
38447 printf %s "checking if if_nametoindex can be linked... " >&6; }
38448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38449 /* end confdefs.h. */
38452 $curl_includes_winsock2
38453 $curl_includes_bsdsocket
38454 #include <net/if.h>
38459 if(0 != if_nametoindex(""))
38467 if ac_fn_c_try_link "$LINENO"
38470 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38471 printf "%s\n" "yes" >&6; }
38472 tst_links_if_nametoindex="yes"
38476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38477 printf "%s\n" "no" >&6; }
38478 tst_links_if_nametoindex="no"
38481 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38482 conftest$ac_exeext conftest.$ac_ext
38484 if test "$tst_links_if_nametoindex" = "yes"; then
38485 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is prototyped" >&5
38486 printf %s "checking if if_nametoindex is prototyped... " >&6; }
38487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38488 /* end confdefs.h. */
38490 $curl_includes_winsock2
38491 $curl_includes_netif
38494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38495 $EGREP "if_nametoindex" >/dev/null 2>&1
38498 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38499 printf "%s\n" "yes" >&6; }
38500 tst_proto_if_nametoindex="yes"
38504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38505 printf "%s\n" "no" >&6; }
38506 tst_proto_if_nametoindex="no"
38513 if test "$tst_proto_if_nametoindex" = "yes"; then
38514 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex is compilable" >&5
38515 printf %s "checking if if_nametoindex is compilable... " >&6; }
38516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38517 /* end confdefs.h. */
38520 $curl_includes_winsock2
38521 $curl_includes_netif
38526 if(0 != if_nametoindex(""))
38534 if ac_fn_c_try_compile "$LINENO"
38537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38538 printf "%s\n" "yes" >&6; }
38539 tst_compi_if_nametoindex="yes"
38543 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38544 printf "%s\n" "no" >&6; }
38545 tst_compi_if_nametoindex="no"
38548 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38551 if test "$tst_compi_if_nametoindex" = "yes"; then
38552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex usage allowed" >&5
38553 printf %s "checking if if_nametoindex usage allowed... " >&6; }
38554 if test "x$curl_disallow_if_nametoindex" != "xyes"; then
38555 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38556 printf "%s\n" "yes" >&6; }
38557 tst_allow_if_nametoindex="yes"
38559 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38560 printf "%s\n" "no" >&6; }
38561 tst_allow_if_nametoindex="no"
38565 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if if_nametoindex might be used" >&5
38566 printf %s "checking if if_nametoindex might be used... " >&6; }
38567 if test "$tst_links_if_nametoindex" = "yes" &&
38568 test "$tst_proto_if_nametoindex" = "yes" &&
38569 test "$tst_compi_if_nametoindex" = "yes" &&
38570 test "$tst_allow_if_nametoindex" = "yes"; then
38571 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38572 printf "%s\n" "yes" >&6; }
38574 printf "%s\n" "#define HAVE_IF_NAMETOINDEX 1" >>confdefs.h
38576 curl_cv_func_if_nametoindex="yes"
38578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38579 printf "%s\n" "no" >&6; }
38580 curl_cv_func_if_nametoindex="no"
38584 curl_includes_ifaddrs="\
38585 /* includes start */
38586 #ifdef HAVE_SYS_TYPES_H
38587 # include <sys/types.h>
38589 #ifdef HAVE_SYS_SOCKET_H
38590 # include <sys/socket.h>
38592 #ifdef HAVE_NETINET_IN_H
38593 # include <netinet/in.h>
38595 #ifdef HAVE_IFADDRS_H
38596 # include <ifaddrs.h>
38598 /* includes end */"
38599 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_ifaddrs
38601 if test "x$ac_cv_header_sys_types_h" = xyes
38603 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38606 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_ifaddrs
38608 if test "x$ac_cv_header_sys_socket_h" = xyes
38610 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
38613 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_ifaddrs
38615 if test "x$ac_cv_header_netinet_in_h" = xyes
38617 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
38620 ac_fn_c_check_header_compile "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$curl_includes_ifaddrs
38622 if test "x$ac_cv_header_ifaddrs_h" = xyes
38624 printf "%s\n" "#define HAVE_IFADDRS_H 1" >>confdefs.h
38631 tst_links_getifaddrs="unknown"
38632 tst_proto_getifaddrs="unknown"
38633 tst_compi_getifaddrs="unknown"
38634 tst_works_getifaddrs="unknown"
38635 tst_allow_getifaddrs="unknown"
38637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
38638 printf %s "checking if getifaddrs can be linked... " >&6; }
38639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38640 /* end confdefs.h. */
38643 #define getifaddrs innocuous_getifaddrs
38645 # include <limits.h>
38647 # include <assert.h>
38653 char getifaddrs ();
38654 #if defined __stub_getifaddrs || defined __stub___getifaddrs
38660 return getifaddrs ();
38666 if ac_fn_c_try_link "$LINENO"
38669 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38670 printf "%s\n" "yes" >&6; }
38671 tst_links_getifaddrs="yes"
38675 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38676 printf "%s\n" "no" >&6; }
38677 tst_links_getifaddrs="no"
38680 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38681 conftest$ac_exeext conftest.$ac_ext
38683 if test "$tst_links_getifaddrs" = "yes"; then
38684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
38685 printf %s "checking if getifaddrs is prototyped... " >&6; }
38686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38687 /* end confdefs.h. */
38689 $curl_includes_ifaddrs
38692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38693 $EGREP "getifaddrs" >/dev/null 2>&1
38696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38697 printf "%s\n" "yes" >&6; }
38698 tst_proto_getifaddrs="yes"
38702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38703 printf "%s\n" "no" >&6; }
38704 tst_proto_getifaddrs="no"
38711 if test "$tst_proto_getifaddrs" = "yes"; then
38712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
38713 printf %s "checking if getifaddrs is compilable... " >&6; }
38714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38715 /* end confdefs.h. */
38718 $curl_includes_ifaddrs
38723 if(0 != getifaddrs(0))
38731 if ac_fn_c_try_compile "$LINENO"
38734 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38735 printf "%s\n" "yes" >&6; }
38736 tst_compi_getifaddrs="yes"
38740 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38741 printf "%s\n" "no" >&6; }
38742 tst_compi_getifaddrs="no"
38745 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
38748 if test "x$cross_compiling" != "xyes" &&
38749 test "$tst_compi_getifaddrs" = "yes"; then
38750 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
38751 printf %s "checking if getifaddrs seems to work... " >&6; }
38755 if test "$cross_compiling" = yes
38757 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38758 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38759 as_fn_error $? "cannot run test program while cross compiling
38760 See \`config.log' for more details" "$LINENO" 5; }
38762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38763 /* end confdefs.h. */
38766 $curl_includes_stdlib
38767 $curl_includes_ifaddrs
38772 struct ifaddrs *ifa = 0;
38775 error = getifaddrs(&ifa);
38777 exit(1); /* fail */
38786 if ac_fn_c_try_run "$LINENO"
38788 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38789 printf "%s\n" "yes" >&6; }
38790 tst_works_getifaddrs="yes"
38793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38794 printf "%s\n" "no" >&6; }
38795 tst_works_getifaddrs="no"
38798 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38799 conftest.$ac_objext conftest.beam conftest.$ac_ext
38804 old=$LD_LIBRARY_PATH
38805 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
38806 export LD_LIBRARY_PATH
38807 if test "$cross_compiling" = yes
38809 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
38810 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
38811 as_fn_error $? "cannot run test program while cross compiling
38812 See \`config.log' for more details" "$LINENO" 5; }
38814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38815 /* end confdefs.h. */
38818 $curl_includes_stdlib
38819 $curl_includes_ifaddrs
38824 struct ifaddrs *ifa = 0;
38827 error = getifaddrs(&ifa);
38829 exit(1); /* fail */
38838 if ac_fn_c_try_run "$LINENO"
38840 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38841 printf "%s\n" "yes" >&6; }
38842 tst_works_getifaddrs="yes"
38845 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38846 printf "%s\n" "no" >&6; }
38847 tst_works_getifaddrs="no"
38850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38851 conftest.$ac_objext conftest.beam conftest.$ac_ext
38854 LD_LIBRARY_PATH=$old # restore
38860 if test "$tst_compi_getifaddrs" = "yes" &&
38861 test "$tst_works_getifaddrs" != "no"; then
38862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
38863 printf %s "checking if getifaddrs usage allowed... " >&6; }
38864 if test "x$curl_disallow_getifaddrs" != "xyes"; then
38865 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866 printf "%s\n" "yes" >&6; }
38867 tst_allow_getifaddrs="yes"
38869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38870 printf "%s\n" "no" >&6; }
38871 tst_allow_getifaddrs="no"
38875 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
38876 printf %s "checking if getifaddrs might be used... " >&6; }
38877 if test "$tst_links_getifaddrs" = "yes" &&
38878 test "$tst_proto_getifaddrs" = "yes" &&
38879 test "$tst_compi_getifaddrs" = "yes" &&
38880 test "$tst_allow_getifaddrs" = "yes" &&
38881 test "$tst_works_getifaddrs" != "no"; then
38882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38883 printf "%s\n" "yes" >&6; }
38885 printf "%s\n" "#define HAVE_GETIFADDRS 1" >>confdefs.h
38887 curl_cv_func_getifaddrs="yes"
38889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38890 printf "%s\n" "no" >&6; }
38891 curl_cv_func_getifaddrs="no"
38895 curl_includes_time="\
38896 /* includes start */
38897 #ifdef HAVE_SYS_TYPES_H
38898 # include <sys/types.h>
38900 #ifdef HAVE_SYS_TIME_H
38901 # include <sys/time.h>
38904 /* includes end */"
38905 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_time
38907 if test "x$ac_cv_header_sys_types_h" = xyes
38909 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
38912 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$curl_includes_time
38914 if test "x$ac_cv_header_sys_time_h" = xyes
38916 printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
38923 tst_links_gmtime_r="unknown"
38924 tst_proto_gmtime_r="unknown"
38925 tst_compi_gmtime_r="unknown"
38926 tst_works_gmtime_r="unknown"
38927 tst_allow_gmtime_r="unknown"
38929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
38930 printf %s "checking if gmtime_r can be linked... " >&6; }
38931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38932 /* end confdefs.h. */
38935 #define gmtime_r innocuous_gmtime_r
38937 # include <limits.h>
38939 # include <assert.h>
38946 #if defined __stub_gmtime_r || defined __stub___gmtime_r
38952 return gmtime_r ();
38958 if ac_fn_c_try_link "$LINENO"
38961 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38962 printf "%s\n" "yes" >&6; }
38963 tst_links_gmtime_r="yes"
38967 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38968 printf "%s\n" "no" >&6; }
38969 tst_links_gmtime_r="no"
38972 rm -f core conftest.err conftest.$ac_objext conftest.beam \
38973 conftest$ac_exeext conftest.$ac_ext
38975 if test "$tst_links_gmtime_r" = "yes"; then
38976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
38977 printf %s "checking if gmtime_r is prototyped... " >&6; }
38978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38979 /* end confdefs.h. */
38981 $curl_includes_time
38984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
38985 $EGREP "gmtime_r" >/dev/null 2>&1
38988 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38989 printf "%s\n" "yes" >&6; }
38990 tst_proto_gmtime_r="yes"
38994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
38995 printf "%s\n" "no" >&6; }
38996 tst_proto_gmtime_r="no"
39003 if test "$tst_proto_gmtime_r" = "yes"; then
39004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
39005 printf %s "checking if gmtime_r is compilable... " >&6; }
39006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39007 /* end confdefs.h. */
39010 $curl_includes_time
39015 if(0 != gmtime_r(0, 0))
39023 if ac_fn_c_try_compile "$LINENO"
39026 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39027 printf "%s\n" "yes" >&6; }
39028 tst_compi_gmtime_r="yes"
39032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39033 printf "%s\n" "no" >&6; }
39034 tst_compi_gmtime_r="no"
39037 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39040 if test "x$cross_compiling" != "xyes" &&
39041 test "$tst_compi_gmtime_r" = "yes"; then
39042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
39043 printf %s "checking if gmtime_r seems to work... " >&6; }
39047 if test "$cross_compiling" = yes
39049 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39050 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39051 as_fn_error $? "cannot run test program while cross compiling
39052 See \`config.log' for more details" "$LINENO" 5; }
39054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39055 /* end confdefs.h. */
39058 $curl_includes_stdlib
39059 $curl_includes_time
39064 time_t local = 1170352587;
39065 struct tm *gmt = 0;
39067 gmt = gmtime_r(&local, &result);
39078 if ac_fn_c_try_run "$LINENO"
39080 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39081 printf "%s\n" "yes" >&6; }
39082 tst_works_gmtime_r="yes"
39085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39086 printf "%s\n" "no" >&6; }
39087 tst_works_gmtime_r="no"
39090 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39091 conftest.$ac_objext conftest.beam conftest.$ac_ext
39096 old=$LD_LIBRARY_PATH
39097 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39098 export LD_LIBRARY_PATH
39099 if test "$cross_compiling" = yes
39101 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39102 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39103 as_fn_error $? "cannot run test program while cross compiling
39104 See \`config.log' for more details" "$LINENO" 5; }
39106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39107 /* end confdefs.h. */
39110 $curl_includes_stdlib
39111 $curl_includes_time
39116 time_t local = 1170352587;
39117 struct tm *gmt = 0;
39119 gmt = gmtime_r(&local, &result);
39130 if ac_fn_c_try_run "$LINENO"
39132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39133 printf "%s\n" "yes" >&6; }
39134 tst_works_gmtime_r="yes"
39137 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39138 printf "%s\n" "no" >&6; }
39139 tst_works_gmtime_r="no"
39142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39143 conftest.$ac_objext conftest.beam conftest.$ac_ext
39146 LD_LIBRARY_PATH=$old # restore
39152 if test "$tst_compi_gmtime_r" = "yes" &&
39153 test "$tst_works_gmtime_r" != "no"; then
39154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
39155 printf %s "checking if gmtime_r usage allowed... " >&6; }
39156 if test "x$curl_disallow_gmtime_r" != "xyes"; then
39157 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39158 printf "%s\n" "yes" >&6; }
39159 tst_allow_gmtime_r="yes"
39161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39162 printf "%s\n" "no" >&6; }
39163 tst_allow_gmtime_r="no"
39167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
39168 printf %s "checking if gmtime_r might be used... " >&6; }
39169 if test "$tst_links_gmtime_r" = "yes" &&
39170 test "$tst_proto_gmtime_r" = "yes" &&
39171 test "$tst_compi_gmtime_r" = "yes" &&
39172 test "$tst_allow_gmtime_r" = "yes" &&
39173 test "$tst_works_gmtime_r" != "no"; then
39174 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39175 printf "%s\n" "yes" >&6; }
39177 printf "%s\n" "#define HAVE_GMTIME_R 1" >>confdefs.h
39179 curl_cv_func_gmtime_r="yes"
39181 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39182 printf "%s\n" "no" >&6; }
39183 curl_cv_func_gmtime_r="no"
39187 curl_includes_arpa_inet="\
39188 /* includes start */
39189 #ifdef HAVE_SYS_TYPES_H
39190 # include <sys/types.h>
39192 #ifdef HAVE_SYS_SOCKET_H
39193 # include <sys/socket.h>
39195 #ifdef HAVE_NETINET_IN_H
39196 # include <netinet/in.h>
39198 #ifdef HAVE_ARPA_INET_H
39199 # include <arpa/inet.h>
39201 #ifdef HAVE_WINSOCK2_H
39202 #include <winsock2.h>
39203 #include <ws2tcpip.h>
39205 /* includes end */"
39206 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_arpa_inet
39208 if test "x$ac_cv_header_sys_types_h" = xyes
39210 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
39213 ac_fn_c_check_header_compile "$LINENO" "sys/socket.h" "ac_cv_header_sys_socket_h" "$curl_includes_arpa_inet
39215 if test "x$ac_cv_header_sys_socket_h" = xyes
39217 printf "%s\n" "#define HAVE_SYS_SOCKET_H 1" >>confdefs.h
39220 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "$curl_includes_arpa_inet
39222 if test "x$ac_cv_header_netinet_in_h" = xyes
39224 printf "%s\n" "#define HAVE_NETINET_IN_H 1" >>confdefs.h
39227 ac_fn_c_check_header_compile "$LINENO" "arpa/inet.h" "ac_cv_header_arpa_inet_h" "$curl_includes_arpa_inet
39229 if test "x$ac_cv_header_arpa_inet_h" = xyes
39231 printf "%s\n" "#define HAVE_ARPA_INET_H 1" >>confdefs.h
39238 tst_links_inet_ntop="unknown"
39239 tst_proto_inet_ntop="unknown"
39240 tst_compi_inet_ntop="unknown"
39241 tst_works_inet_ntop="unknown"
39242 tst_allow_inet_ntop="unknown"
39244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
39245 printf %s "checking if inet_ntop can be linked... " >&6; }
39246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39247 /* end confdefs.h. */
39250 #define inet_ntop innocuous_inet_ntop
39252 # include <limits.h>
39254 # include <assert.h>
39261 #if defined __stub_inet_ntop || defined __stub___inet_ntop
39267 return inet_ntop ();
39273 if ac_fn_c_try_link "$LINENO"
39276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39277 printf "%s\n" "yes" >&6; }
39278 tst_links_inet_ntop="yes"
39282 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39283 printf "%s\n" "no" >&6; }
39284 tst_links_inet_ntop="no"
39287 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39288 conftest$ac_exeext conftest.$ac_ext
39290 if test "$tst_links_inet_ntop" = "yes"; then
39291 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
39292 printf %s "checking if inet_ntop is prototyped... " >&6; }
39293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39294 /* end confdefs.h. */
39296 $curl_includes_arpa_inet
39299 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39300 $EGREP "inet_ntop" >/dev/null 2>&1
39303 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39304 printf "%s\n" "yes" >&6; }
39305 tst_proto_inet_ntop="yes"
39309 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39310 printf "%s\n" "no" >&6; }
39311 tst_proto_inet_ntop="no"
39318 if test "$tst_proto_inet_ntop" = "yes"; then
39319 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
39320 printf %s "checking if inet_ntop is compilable... " >&6; }
39321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39322 /* end confdefs.h. */
39325 $curl_includes_arpa_inet
39330 if(0 != inet_ntop(0, 0, 0, 0))
39338 if ac_fn_c_try_compile "$LINENO"
39341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39342 printf "%s\n" "yes" >&6; }
39343 tst_compi_inet_ntop="yes"
39347 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39348 printf "%s\n" "no" >&6; }
39349 tst_compi_inet_ntop="no"
39352 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39355 if test "x$cross_compiling" != "xyes" &&
39356 test "$tst_compi_inet_ntop" = "yes"; then
39357 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
39358 printf %s "checking if inet_ntop seems to work... " >&6; }
39362 if test "$cross_compiling" = yes
39364 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39365 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39366 as_fn_error $? "cannot run test program while cross compiling
39367 See \`config.log' for more details" "$LINENO" 5; }
39369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39370 /* end confdefs.h. */
39373 $curl_includes_stdlib
39374 $curl_includes_arpa_inet
39375 $curl_includes_string
39380 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39381 char ipv4res[sizeof "255.255.255.255"];
39382 unsigned char ipv6a[26];
39383 unsigned char ipv4a[5];
39394 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39396 exit(1); /* fail */
39397 if(ipv4ptr != ipv4res)
39398 exit(1); /* fail */
39400 exit(1); /* fail */
39401 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39402 exit(1); /* fail */
39405 memset(ipv6a, 0, sizeof(ipv6a));
39418 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39420 exit(1); /* fail */
39421 if(ipv6ptr != ipv6res)
39422 exit(1); /* fail */
39424 exit(1); /* fail */
39425 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39426 exit(1); /* fail */
39435 if ac_fn_c_try_run "$LINENO"
39437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39438 printf "%s\n" "yes" >&6; }
39439 tst_works_inet_ntop="yes"
39442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39443 printf "%s\n" "no" >&6; }
39444 tst_works_inet_ntop="no"
39447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39448 conftest.$ac_objext conftest.beam conftest.$ac_ext
39453 old=$LD_LIBRARY_PATH
39454 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39455 export LD_LIBRARY_PATH
39456 if test "$cross_compiling" = yes
39458 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39459 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39460 as_fn_error $? "cannot run test program while cross compiling
39461 See \`config.log' for more details" "$LINENO" 5; }
39463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39464 /* end confdefs.h. */
39467 $curl_includes_stdlib
39468 $curl_includes_arpa_inet
39469 $curl_includes_string
39474 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
39475 char ipv4res[sizeof "255.255.255.255"];
39476 unsigned char ipv6a[26];
39477 unsigned char ipv4a[5];
39488 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
39490 exit(1); /* fail */
39491 if(ipv4ptr != ipv4res)
39492 exit(1); /* fail */
39494 exit(1); /* fail */
39495 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
39496 exit(1); /* fail */
39499 memset(ipv6a, 0, sizeof(ipv6a));
39512 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
39514 exit(1); /* fail */
39515 if(ipv6ptr != ipv6res)
39516 exit(1); /* fail */
39518 exit(1); /* fail */
39519 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
39520 exit(1); /* fail */
39529 if ac_fn_c_try_run "$LINENO"
39531 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39532 printf "%s\n" "yes" >&6; }
39533 tst_works_inet_ntop="yes"
39536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39537 printf "%s\n" "no" >&6; }
39538 tst_works_inet_ntop="no"
39541 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39542 conftest.$ac_objext conftest.beam conftest.$ac_ext
39545 LD_LIBRARY_PATH=$old # restore
39551 if test "$tst_compi_inet_ntop" = "yes" &&
39552 test "$tst_works_inet_ntop" != "no"; then
39553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
39554 printf %s "checking if inet_ntop usage allowed... " >&6; }
39555 if test "x$curl_disallow_inet_ntop" != "xyes"; then
39556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39557 printf "%s\n" "yes" >&6; }
39558 tst_allow_inet_ntop="yes"
39560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39561 printf "%s\n" "no" >&6; }
39562 tst_allow_inet_ntop="no"
39566 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
39567 printf %s "checking if inet_ntop might be used... " >&6; }
39568 if test "$tst_links_inet_ntop" = "yes" &&
39569 test "$tst_proto_inet_ntop" = "yes" &&
39570 test "$tst_compi_inet_ntop" = "yes" &&
39571 test "$tst_allow_inet_ntop" = "yes" &&
39572 test "$tst_works_inet_ntop" != "no"; then
39573 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39574 printf "%s\n" "yes" >&6; }
39576 printf "%s\n" "#define HAVE_INET_NTOP 1" >>confdefs.h
39578 curl_cv_func_inet_ntop="yes"
39580 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39581 printf "%s\n" "no" >&6; }
39582 curl_cv_func_inet_ntop="no"
39587 tst_links_inet_pton="unknown"
39588 tst_proto_inet_pton="unknown"
39589 tst_compi_inet_pton="unknown"
39590 tst_works_inet_pton="unknown"
39591 tst_allow_inet_pton="unknown"
39593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
39594 printf %s "checking if inet_pton can be linked... " >&6; }
39595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39596 /* end confdefs.h. */
39599 #define inet_pton innocuous_inet_pton
39601 # include <limits.h>
39603 # include <assert.h>
39610 #if defined __stub_inet_pton || defined __stub___inet_pton
39616 return inet_pton ();
39622 if ac_fn_c_try_link "$LINENO"
39625 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39626 printf "%s\n" "yes" >&6; }
39627 tst_links_inet_pton="yes"
39631 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39632 printf "%s\n" "no" >&6; }
39633 tst_links_inet_pton="no"
39636 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39637 conftest$ac_exeext conftest.$ac_ext
39639 if test "$tst_links_inet_pton" = "yes"; then
39640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
39641 printf %s "checking if inet_pton is prototyped... " >&6; }
39642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39643 /* end confdefs.h. */
39645 $curl_includes_arpa_inet
39648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39649 $EGREP "inet_pton" >/dev/null 2>&1
39652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39653 printf "%s\n" "yes" >&6; }
39654 tst_proto_inet_pton="yes"
39658 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39659 printf "%s\n" "no" >&6; }
39660 tst_proto_inet_pton="no"
39667 if test "$tst_proto_inet_pton" = "yes"; then
39668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
39669 printf %s "checking if inet_pton is compilable... " >&6; }
39670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39671 /* end confdefs.h. */
39674 $curl_includes_arpa_inet
39679 if(0 != inet_pton(0, 0, 0))
39687 if ac_fn_c_try_compile "$LINENO"
39690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39691 printf "%s\n" "yes" >&6; }
39692 tst_compi_inet_pton="yes"
39696 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39697 printf "%s\n" "no" >&6; }
39698 tst_compi_inet_pton="no"
39701 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
39704 if test "x$cross_compiling" != "xyes" &&
39705 test "$tst_compi_inet_pton" = "yes"; then
39706 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
39707 printf %s "checking if inet_pton seems to work... " >&6; }
39711 if test "$cross_compiling" = yes
39713 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39714 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39715 as_fn_error $? "cannot run test program while cross compiling
39716 See \`config.log' for more details" "$LINENO" 5; }
39718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39719 /* end confdefs.h. */
39722 $curl_includes_stdlib
39723 $curl_includes_arpa_inet
39724 $curl_includes_string
39729 unsigned char ipv6a[16+1];
39730 unsigned char ipv4a[4+1];
39731 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39732 const char *ipv4src = "192.168.100.1";
39734 memset(ipv4a, 1, sizeof(ipv4a));
39735 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39736 exit(1); /* fail */
39738 if( (ipv4a[0] != 0xc0) ||
39739 (ipv4a[1] != 0xa8) ||
39740 (ipv4a[2] != 0x64) ||
39741 (ipv4a[3] != 0x01) ||
39742 (ipv4a[4] != 0x01) )
39743 exit(1); /* fail */
39745 memset(ipv6a, 1, sizeof(ipv6a));
39746 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39747 exit(1); /* fail */
39749 if( (ipv6a[0] != 0xfe) ||
39750 (ipv6a[1] != 0x80) ||
39751 (ipv6a[8] != 0x02) ||
39752 (ipv6a[9] != 0x14) ||
39753 (ipv6a[10] != 0x4f) ||
39754 (ipv6a[11] != 0xff) ||
39755 (ipv6a[12] != 0xfe) ||
39756 (ipv6a[13] != 0x0b) ||
39757 (ipv6a[14] != 0x76) ||
39758 (ipv6a[15] != 0xc8) ||
39759 (ipv6a[16] != 0x01) )
39760 exit(1); /* fail */
39762 if( (ipv6a[2] != 0x0) ||
39763 (ipv6a[3] != 0x0) ||
39764 (ipv6a[4] != 0x0) ||
39765 (ipv6a[5] != 0x0) ||
39766 (ipv6a[6] != 0x0) ||
39767 (ipv6a[7] != 0x0) )
39768 exit(1); /* fail */
39777 if ac_fn_c_try_run "$LINENO"
39779 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39780 printf "%s\n" "yes" >&6; }
39781 tst_works_inet_pton="yes"
39784 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39785 printf "%s\n" "no" >&6; }
39786 tst_works_inet_pton="no"
39789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39790 conftest.$ac_objext conftest.beam conftest.$ac_ext
39795 old=$LD_LIBRARY_PATH
39796 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
39797 export LD_LIBRARY_PATH
39798 if test "$cross_compiling" = yes
39800 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
39801 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
39802 as_fn_error $? "cannot run test program while cross compiling
39803 See \`config.log' for more details" "$LINENO" 5; }
39805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39806 /* end confdefs.h. */
39809 $curl_includes_stdlib
39810 $curl_includes_arpa_inet
39811 $curl_includes_string
39816 unsigned char ipv6a[16+1];
39817 unsigned char ipv4a[4+1];
39818 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
39819 const char *ipv4src = "192.168.100.1";
39821 memset(ipv4a, 1, sizeof(ipv4a));
39822 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
39823 exit(1); /* fail */
39825 if( (ipv4a[0] != 0xc0) ||
39826 (ipv4a[1] != 0xa8) ||
39827 (ipv4a[2] != 0x64) ||
39828 (ipv4a[3] != 0x01) ||
39829 (ipv4a[4] != 0x01) )
39830 exit(1); /* fail */
39832 memset(ipv6a, 1, sizeof(ipv6a));
39833 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
39834 exit(1); /* fail */
39836 if( (ipv6a[0] != 0xfe) ||
39837 (ipv6a[1] != 0x80) ||
39838 (ipv6a[8] != 0x02) ||
39839 (ipv6a[9] != 0x14) ||
39840 (ipv6a[10] != 0x4f) ||
39841 (ipv6a[11] != 0xff) ||
39842 (ipv6a[12] != 0xfe) ||
39843 (ipv6a[13] != 0x0b) ||
39844 (ipv6a[14] != 0x76) ||
39845 (ipv6a[15] != 0xc8) ||
39846 (ipv6a[16] != 0x01) )
39847 exit(1); /* fail */
39849 if( (ipv6a[2] != 0x0) ||
39850 (ipv6a[3] != 0x0) ||
39851 (ipv6a[4] != 0x0) ||
39852 (ipv6a[5] != 0x0) ||
39853 (ipv6a[6] != 0x0) ||
39854 (ipv6a[7] != 0x0) )
39855 exit(1); /* fail */
39864 if ac_fn_c_try_run "$LINENO"
39866 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39867 printf "%s\n" "yes" >&6; }
39868 tst_works_inet_pton="yes"
39871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39872 printf "%s\n" "no" >&6; }
39873 tst_works_inet_pton="no"
39876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
39877 conftest.$ac_objext conftest.beam conftest.$ac_ext
39880 LD_LIBRARY_PATH=$old # restore
39886 if test "$tst_compi_inet_pton" = "yes" &&
39887 test "$tst_works_inet_pton" != "no"; then
39888 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
39889 printf %s "checking if inet_pton usage allowed... " >&6; }
39890 if test "x$curl_disallow_inet_pton" != "xyes"; then
39891 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39892 printf "%s\n" "yes" >&6; }
39893 tst_allow_inet_pton="yes"
39895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39896 printf "%s\n" "no" >&6; }
39897 tst_allow_inet_pton="no"
39901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
39902 printf %s "checking if inet_pton might be used... " >&6; }
39903 if test "$tst_links_inet_pton" = "yes" &&
39904 test "$tst_proto_inet_pton" = "yes" &&
39905 test "$tst_compi_inet_pton" = "yes" &&
39906 test "$tst_allow_inet_pton" = "yes" &&
39907 test "$tst_works_inet_pton" != "no"; then
39908 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39909 printf "%s\n" "yes" >&6; }
39911 printf "%s\n" "#define HAVE_INET_PTON 1" >>confdefs.h
39913 curl_cv_func_inet_pton="yes"
39915 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39916 printf "%s\n" "no" >&6; }
39917 curl_cv_func_inet_pton="no"
39922 tst_links_ioctlsocket="unknown"
39923 tst_proto_ioctlsocket="unknown"
39924 tst_compi_ioctlsocket="unknown"
39925 tst_allow_ioctlsocket="unknown"
39927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
39928 printf %s "checking if ioctlsocket can be linked... " >&6; }
39929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39930 /* end confdefs.h. */
39933 $curl_includes_winsock2
39938 if(0 != ioctlsocket(0, 0, 0))
39946 if ac_fn_c_try_link "$LINENO"
39949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39950 printf "%s\n" "yes" >&6; }
39951 tst_links_ioctlsocket="yes"
39955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39956 printf "%s\n" "no" >&6; }
39957 tst_links_ioctlsocket="no"
39960 rm -f core conftest.err conftest.$ac_objext conftest.beam \
39961 conftest$ac_exeext conftest.$ac_ext
39963 if test "$tst_links_ioctlsocket" = "yes"; then
39964 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
39965 printf %s "checking if ioctlsocket is prototyped... " >&6; }
39966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39967 /* end confdefs.h. */
39969 $curl_includes_winsock2
39972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
39973 $EGREP "ioctlsocket" >/dev/null 2>&1
39976 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39977 printf "%s\n" "yes" >&6; }
39978 tst_proto_ioctlsocket="yes"
39982 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
39983 printf "%s\n" "no" >&6; }
39984 tst_proto_ioctlsocket="no"
39991 if test "$tst_proto_ioctlsocket" = "yes"; then
39992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
39993 printf %s "checking if ioctlsocket is compilable... " >&6; }
39994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
39995 /* end confdefs.h. */
39998 $curl_includes_winsock2
40003 if(0 != ioctlsocket(0, 0, 0))
40011 if ac_fn_c_try_compile "$LINENO"
40014 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40015 printf "%s\n" "yes" >&6; }
40016 tst_compi_ioctlsocket="yes"
40020 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40021 printf "%s\n" "no" >&6; }
40022 tst_compi_ioctlsocket="no"
40025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40028 if test "$tst_compi_ioctlsocket" = "yes"; then
40029 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
40030 printf %s "checking if ioctlsocket usage allowed... " >&6; }
40031 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
40032 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40033 printf "%s\n" "yes" >&6; }
40034 tst_allow_ioctlsocket="yes"
40036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40037 printf "%s\n" "no" >&6; }
40038 tst_allow_ioctlsocket="no"
40042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
40043 printf %s "checking if ioctlsocket might be used... " >&6; }
40044 if test "$tst_links_ioctlsocket" = "yes" &&
40045 test "$tst_proto_ioctlsocket" = "yes" &&
40046 test "$tst_compi_ioctlsocket" = "yes" &&
40047 test "$tst_allow_ioctlsocket" = "yes"; then
40048 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40049 printf "%s\n" "yes" >&6; }
40051 printf "%s\n" "#define HAVE_IOCTLSOCKET 1" >>confdefs.h
40053 curl_cv_func_ioctlsocket="yes"
40056 tst_compi_ioctlsocket_fionbio="unknown"
40057 tst_allow_ioctlsocket_fionbio="unknown"
40059 if test "$curl_cv_func_ioctlsocket" = "yes"; then
40060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
40061 printf %s "checking if ioctlsocket FIONBIO is compilable... " >&6; }
40062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40063 /* end confdefs.h. */
40066 $curl_includes_winsock2
40072 if(0 != ioctlsocket(0, FIONBIO, &flags))
40080 if ac_fn_c_try_compile "$LINENO"
40083 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40084 printf "%s\n" "yes" >&6; }
40085 tst_compi_ioctlsocket_fionbio="yes"
40089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40090 printf "%s\n" "no" >&6; }
40091 tst_compi_ioctlsocket_fionbio="no"
40094 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40097 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
40098 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
40099 printf %s "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
40100 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
40101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40102 printf "%s\n" "yes" >&6; }
40103 tst_allow_ioctlsocket_fionbio="yes"
40105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40106 printf "%s\n" "no" >&6; }
40107 tst_allow_ioctlsocket_fionbio="no"
40111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
40112 printf %s "checking if ioctlsocket FIONBIO might be used... " >&6; }
40113 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
40114 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
40115 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40116 printf "%s\n" "yes" >&6; }
40118 printf "%s\n" "#define HAVE_IOCTLSOCKET_FIONBIO 1" >>confdefs.h
40120 curl_cv_func_ioctlsocket_fionbio="yes"
40122 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40123 printf "%s\n" "no" >&6; }
40124 curl_cv_func_ioctlsocket_fionbio="no"
40128 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40129 printf "%s\n" "no" >&6; }
40130 curl_cv_func_ioctlsocket="no"
40135 tst_links_ioctlsocket_camel="unknown"
40136 tst_proto_ioctlsocket_camel="unknown"
40137 tst_compi_ioctlsocket_camel="unknown"
40138 tst_allow_ioctlsocket_camel="unknown"
40140 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
40141 printf %s "checking if IoctlSocket can be linked... " >&6; }
40142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40143 /* end confdefs.h. */
40146 $curl_includes_bsdsocket
40151 IoctlSocket(0, 0, 0);
40158 if ac_fn_c_try_link "$LINENO"
40161 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40162 printf "%s\n" "yes" >&6; }
40163 tst_links_ioctlsocket_camel="yes"
40167 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40168 printf "%s\n" "no" >&6; }
40169 tst_links_ioctlsocket_camel="no"
40172 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40173 conftest$ac_exeext conftest.$ac_ext
40175 if test "$tst_links_ioctlsocket_camel" = "yes"; then
40176 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
40177 printf %s "checking if IoctlSocket is prototyped... " >&6; }
40178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40179 /* end confdefs.h. */
40181 $curl_includes_bsdsocket
40184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40185 $EGREP "IoctlSocket" >/dev/null 2>&1
40188 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40189 printf "%s\n" "yes" >&6; }
40190 tst_proto_ioctlsocket_camel="yes"
40194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40195 printf "%s\n" "no" >&6; }
40196 tst_proto_ioctlsocket_camel="no"
40203 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
40204 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
40205 printf %s "checking if IoctlSocket is compilable... " >&6; }
40206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40207 /* end confdefs.h. */
40210 $curl_includes_bsdsocket
40215 if(0 != IoctlSocket(0, 0, 0))
40223 if ac_fn_c_try_compile "$LINENO"
40226 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40227 printf "%s\n" "yes" >&6; }
40228 tst_compi_ioctlsocket_camel="yes"
40232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40233 printf "%s\n" "no" >&6; }
40234 tst_compi_ioctlsocket_camel="no"
40237 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40240 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
40241 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
40242 printf %s "checking if IoctlSocket usage allowed... " >&6; }
40243 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
40244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40245 printf "%s\n" "yes" >&6; }
40246 tst_allow_ioctlsocket_camel="yes"
40248 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40249 printf "%s\n" "no" >&6; }
40250 tst_allow_ioctlsocket_camel="no"
40254 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
40255 printf %s "checking if IoctlSocket might be used... " >&6; }
40256 if test "$tst_links_ioctlsocket_camel" = "yes" &&
40257 test "$tst_proto_ioctlsocket_camel" = "yes" &&
40258 test "$tst_compi_ioctlsocket_camel" = "yes" &&
40259 test "$tst_allow_ioctlsocket_camel" = "yes"; then
40260 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40261 printf "%s\n" "yes" >&6; }
40263 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL 1" >>confdefs.h
40265 curl_cv_func_ioctlsocket_camel="yes"
40268 tst_compi_ioctlsocket_camel_fionbio="unknown"
40269 tst_allow_ioctlsocket_camel_fionbio="unknown"
40271 if test "$curl_cv_func_ioctlsocket_camel" = "yes"; then
40272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
40273 printf %s "checking if IoctlSocket FIONBIO is compilable... " >&6; }
40274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40275 /* end confdefs.h. */
40278 $curl_includes_bsdsocket
40284 if(0 != IoctlSocket(0, FIONBIO, &flags))
40292 if ac_fn_c_try_compile "$LINENO"
40295 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40296 printf "%s\n" "yes" >&6; }
40297 tst_compi_ioctlsocket_camel_fionbio="yes"
40301 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40302 printf "%s\n" "no" >&6; }
40303 tst_compi_ioctlsocket_camel_fionbio="no"
40306 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40309 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
40310 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
40311 printf %s "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
40312 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
40313 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40314 printf "%s\n" "yes" >&6; }
40315 tst_allow_ioctlsocket_camel_fionbio="yes"
40317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40318 printf "%s\n" "no" >&6; }
40319 tst_allow_ioctlsocket_camel_fionbio="no"
40323 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
40324 printf %s "checking if IoctlSocket FIONBIO might be used... " >&6; }
40325 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
40326 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
40327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40328 printf "%s\n" "yes" >&6; }
40330 printf "%s\n" "#define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1" >>confdefs.h
40332 curl_cv_func_ioctlsocket_camel_fionbio="yes"
40334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40335 printf "%s\n" "no" >&6; }
40336 curl_cv_func_ioctlsocket_camel_fionbio="no"
40340 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40341 printf "%s\n" "no" >&6; }
40342 curl_cv_func_ioctlsocket_camel="no"
40347 tst_links_memrchr="unknown"
40348 tst_macro_memrchr="unknown"
40349 tst_proto_memrchr="unknown"
40350 tst_compi_memrchr="unknown"
40351 tst_allow_memrchr="unknown"
40353 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
40354 printf %s "checking if memrchr can be linked... " >&6; }
40355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40356 /* end confdefs.h. */
40359 #define memrchr innocuous_memrchr
40361 # include <limits.h>
40363 # include <assert.h>
40370 #if defined __stub_memrchr || defined __stub___memrchr
40382 if ac_fn_c_try_link "$LINENO"
40385 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40386 printf "%s\n" "yes" >&6; }
40387 tst_links_memrchr="yes"
40391 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40392 printf "%s\n" "no" >&6; }
40393 tst_links_memrchr="no"
40396 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40397 conftest$ac_exeext conftest.$ac_ext
40399 if test "$tst_links_memrchr" = "no"; then
40400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
40401 printf %s "checking if memrchr seems a macro... " >&6; }
40402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40403 /* end confdefs.h. */
40406 $curl_includes_string
40411 if(0 != memrchr(0, 0, 0))
40419 if ac_fn_c_try_link "$LINENO"
40422 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40423 printf "%s\n" "yes" >&6; }
40424 tst_macro_memrchr="yes"
40428 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40429 printf "%s\n" "no" >&6; }
40430 tst_macro_memrchr="no"
40433 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40434 conftest$ac_exeext conftest.$ac_ext
40437 if test "$tst_links_memrchr" = "yes"; then
40438 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
40439 printf %s "checking if memrchr is prototyped... " >&6; }
40440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40441 /* end confdefs.h. */
40443 $curl_includes_string
40446 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40447 $EGREP "memrchr" >/dev/null 2>&1
40450 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40451 printf "%s\n" "yes" >&6; }
40452 tst_proto_memrchr="yes"
40456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40457 printf "%s\n" "no" >&6; }
40458 tst_proto_memrchr="no"
40465 if test "$tst_proto_memrchr" = "yes" ||
40466 test "$tst_macro_memrchr" = "yes"; then
40467 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
40468 printf %s "checking if memrchr is compilable... " >&6; }
40469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40470 /* end confdefs.h. */
40473 $curl_includes_string
40478 if(0 != memrchr(0, 0, 0))
40486 if ac_fn_c_try_compile "$LINENO"
40489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40490 printf "%s\n" "yes" >&6; }
40491 tst_compi_memrchr="yes"
40495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40496 printf "%s\n" "no" >&6; }
40497 tst_compi_memrchr="no"
40500 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40503 if test "$tst_compi_memrchr" = "yes"; then
40504 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
40505 printf %s "checking if memrchr usage allowed... " >&6; }
40506 if test "x$curl_disallow_memrchr" != "xyes"; then
40507 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40508 printf "%s\n" "yes" >&6; }
40509 tst_allow_memrchr="yes"
40511 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40512 printf "%s\n" "no" >&6; }
40513 tst_allow_memrchr="no"
40517 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
40518 printf %s "checking if memrchr might be used... " >&6; }
40519 if (test "$tst_proto_memrchr" = "yes" ||
40520 test "$tst_macro_memrchr" = "yes") &&
40521 test "$tst_compi_memrchr" = "yes" &&
40522 test "$tst_allow_memrchr" = "yes"; then
40523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40524 printf "%s\n" "yes" >&6; }
40526 printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h
40528 curl_cv_func_memrchr="yes"
40530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40531 printf "%s\n" "no" >&6; }
40532 curl_cv_func_memrchr="no"
40537 tst_links_poll="unknown"
40538 tst_proto_poll="unknown"
40539 tst_compi_poll="unknown"
40540 tst_works_poll="unknown"
40541 tst_allow_poll="unknown"
40545 curl_disallow_poll="yes"
40546 tst_compi_poll="no"
40550 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
40551 printf %s "checking if poll can be linked... " >&6; }
40552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40553 /* end confdefs.h. */
40556 $curl_includes_poll
40561 if(0 != poll(0, 0, 0))
40569 if ac_fn_c_try_link "$LINENO"
40572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40573 printf "%s\n" "yes" >&6; }
40574 tst_links_poll="yes"
40578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40579 printf "%s\n" "no" >&6; }
40580 tst_links_poll="no"
40583 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40584 conftest$ac_exeext conftest.$ac_ext
40586 if test "$tst_links_poll" = "yes"; then
40587 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
40588 printf %s "checking if poll is prototyped... " >&6; }
40589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40590 /* end confdefs.h. */
40592 $curl_includes_poll
40595 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40596 $EGREP "poll" >/dev/null 2>&1
40599 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40600 printf "%s\n" "yes" >&6; }
40601 tst_proto_poll="yes"
40605 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40606 printf "%s\n" "no" >&6; }
40607 tst_proto_poll="no"
40614 if test "$tst_proto_poll" = "yes"; then
40615 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
40616 printf %s "checking if poll is compilable... " >&6; }
40617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40618 /* end confdefs.h. */
40621 $curl_includes_poll
40626 if(0 != poll(0, 0, 0))
40634 if ac_fn_c_try_compile "$LINENO"
40637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40638 printf "%s\n" "yes" >&6; }
40639 tst_compi_poll="yes"
40643 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40644 printf "%s\n" "no" >&6; }
40645 tst_compi_poll="no"
40648 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40651 if test "x$cross_compiling" != "xyes" &&
40652 test "$tst_compi_poll" = "yes"; then
40653 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
40654 printf %s "checking if poll seems to work... " >&6; }
40658 if test "$cross_compiling" = yes
40660 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40661 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40662 as_fn_error $? "cannot run test program while cross compiling
40663 See \`config.log' for more details" "$LINENO" 5; }
40665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40666 /* end confdefs.h. */
40669 $curl_includes_stdlib
40670 $curl_includes_poll
40671 $curl_includes_time
40676 /* detect the original poll() breakage */
40677 if(0 != poll(0, 0, 10))
40678 exit(1); /* fail */
40680 /* detect the 10.12 poll() breakage */
40681 struct timeval before, after;
40685 gettimeofday(&before, NULL);
40686 rc = poll(NULL, 0, 500);
40687 gettimeofday(&after, NULL);
40689 us = (after.tv_sec - before.tv_sec) * 1000000 +
40690 (after.tv_usec - before.tv_usec);
40701 if ac_fn_c_try_run "$LINENO"
40703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40704 printf "%s\n" "yes" >&6; }
40705 tst_works_poll="yes"
40708 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40709 printf "%s\n" "no" >&6; }
40710 tst_works_poll="no"
40713 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40714 conftest.$ac_objext conftest.beam conftest.$ac_ext
40719 old=$LD_LIBRARY_PATH
40720 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
40721 export LD_LIBRARY_PATH
40722 if test "$cross_compiling" = yes
40724 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
40725 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
40726 as_fn_error $? "cannot run test program while cross compiling
40727 See \`config.log' for more details" "$LINENO" 5; }
40729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40730 /* end confdefs.h. */
40733 $curl_includes_stdlib
40734 $curl_includes_poll
40735 $curl_includes_time
40740 /* detect the original poll() breakage */
40741 if(0 != poll(0, 0, 10))
40742 exit(1); /* fail */
40744 /* detect the 10.12 poll() breakage */
40745 struct timeval before, after;
40749 gettimeofday(&before, NULL);
40750 rc = poll(NULL, 0, 500);
40751 gettimeofday(&after, NULL);
40753 us = (after.tv_sec - before.tv_sec) * 1000000 +
40754 (after.tv_usec - before.tv_usec);
40765 if ac_fn_c_try_run "$LINENO"
40767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40768 printf "%s\n" "yes" >&6; }
40769 tst_works_poll="yes"
40772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40773 printf "%s\n" "no" >&6; }
40774 tst_works_poll="no"
40777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
40778 conftest.$ac_objext conftest.beam conftest.$ac_ext
40781 LD_LIBRARY_PATH=$old # restore
40787 if test "$tst_compi_poll" = "yes" &&
40788 test "$tst_works_poll" != "no"; then
40789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
40790 printf %s "checking if poll usage allowed... " >&6; }
40791 if test "x$curl_disallow_poll" != "xyes"; then
40792 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40793 printf "%s\n" "yes" >&6; }
40794 tst_allow_poll="yes"
40796 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40797 printf "%s\n" "no" >&6; }
40798 tst_allow_poll="no"
40802 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
40803 printf %s "checking if poll might be used... " >&6; }
40804 if test "$tst_links_poll" = "yes" &&
40805 test "$tst_proto_poll" = "yes" &&
40806 test "$tst_compi_poll" = "yes" &&
40807 test "$tst_allow_poll" = "yes" &&
40808 test "$tst_works_poll" != "no"; then
40809 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40810 printf "%s\n" "yes" >&6; }
40812 printf "%s\n" "#define HAVE_POLL_FINE 1" >>confdefs.h
40814 curl_cv_func_poll="yes"
40816 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40817 printf "%s\n" "no" >&6; }
40818 curl_cv_func_poll="no"
40822 curl_includes_signal="\
40823 /* includes start */
40824 #ifdef HAVE_SYS_TYPES_H
40825 # include <sys/types.h>
40827 #ifdef HAVE_SIGNAL_H
40828 # include <signal.h>
40830 /* includes end */"
40831 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_signal
40833 if test "x$ac_cv_header_sys_types_h" = xyes
40835 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
40838 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$curl_includes_signal
40840 if test "x$ac_cv_header_signal_h" = xyes
40842 printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
40849 tst_links_sigaction="unknown"
40850 tst_proto_sigaction="unknown"
40851 tst_compi_sigaction="unknown"
40852 tst_allow_sigaction="unknown"
40854 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
40855 printf %s "checking if sigaction can be linked... " >&6; }
40856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40857 /* end confdefs.h. */
40860 #define sigaction innocuous_sigaction
40862 # include <limits.h>
40864 # include <assert.h>
40871 #if defined __stub_sigaction || defined __stub___sigaction
40877 return sigaction ();
40883 if ac_fn_c_try_link "$LINENO"
40886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40887 printf "%s\n" "yes" >&6; }
40888 tst_links_sigaction="yes"
40892 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40893 printf "%s\n" "no" >&6; }
40894 tst_links_sigaction="no"
40897 rm -f core conftest.err conftest.$ac_objext conftest.beam \
40898 conftest$ac_exeext conftest.$ac_ext
40900 if test "$tst_links_sigaction" = "yes"; then
40901 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
40902 printf %s "checking if sigaction is prototyped... " >&6; }
40903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40904 /* end confdefs.h. */
40906 $curl_includes_signal
40909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
40910 $EGREP "sigaction" >/dev/null 2>&1
40913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40914 printf "%s\n" "yes" >&6; }
40915 tst_proto_sigaction="yes"
40919 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40920 printf "%s\n" "no" >&6; }
40921 tst_proto_sigaction="no"
40928 if test "$tst_proto_sigaction" = "yes"; then
40929 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
40930 printf %s "checking if sigaction is compilable... " >&6; }
40931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
40932 /* end confdefs.h. */
40935 $curl_includes_signal
40940 if(0 != sigaction(0, 0, 0))
40948 if ac_fn_c_try_compile "$LINENO"
40951 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40952 printf "%s\n" "yes" >&6; }
40953 tst_compi_sigaction="yes"
40957 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40958 printf "%s\n" "no" >&6; }
40959 tst_compi_sigaction="no"
40962 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
40965 if test "$tst_compi_sigaction" = "yes"; then
40966 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
40967 printf %s "checking if sigaction usage allowed... " >&6; }
40968 if test "x$curl_disallow_sigaction" != "xyes"; then
40969 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40970 printf "%s\n" "yes" >&6; }
40971 tst_allow_sigaction="yes"
40973 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40974 printf "%s\n" "no" >&6; }
40975 tst_allow_sigaction="no"
40979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
40980 printf %s "checking if sigaction might be used... " >&6; }
40981 if test "$tst_links_sigaction" = "yes" &&
40982 test "$tst_proto_sigaction" = "yes" &&
40983 test "$tst_compi_sigaction" = "yes" &&
40984 test "$tst_allow_sigaction" = "yes"; then
40985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
40986 printf "%s\n" "yes" >&6; }
40988 printf "%s\n" "#define HAVE_SIGACTION 1" >>confdefs.h
40990 curl_cv_func_sigaction="yes"
40992 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
40993 printf "%s\n" "no" >&6; }
40994 curl_cv_func_sigaction="no"
40999 tst_links_siginterrupt="unknown"
41000 tst_proto_siginterrupt="unknown"
41001 tst_compi_siginterrupt="unknown"
41002 tst_allow_siginterrupt="unknown"
41004 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
41005 printf %s "checking if siginterrupt can be linked... " >&6; }
41006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41007 /* end confdefs.h. */
41010 #define siginterrupt innocuous_siginterrupt
41012 # include <limits.h>
41014 # include <assert.h>
41016 #undef siginterrupt
41020 char siginterrupt ();
41021 #if defined __stub_siginterrupt || defined __stub___siginterrupt
41027 return siginterrupt ();
41033 if ac_fn_c_try_link "$LINENO"
41036 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41037 printf "%s\n" "yes" >&6; }
41038 tst_links_siginterrupt="yes"
41042 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41043 printf "%s\n" "no" >&6; }
41044 tst_links_siginterrupt="no"
41047 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41048 conftest$ac_exeext conftest.$ac_ext
41050 if test "$tst_links_siginterrupt" = "yes"; then
41051 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
41052 printf %s "checking if siginterrupt is prototyped... " >&6; }
41053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41054 /* end confdefs.h. */
41056 $curl_includes_signal
41059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41060 $EGREP "siginterrupt" >/dev/null 2>&1
41063 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41064 printf "%s\n" "yes" >&6; }
41065 tst_proto_siginterrupt="yes"
41069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41070 printf "%s\n" "no" >&6; }
41071 tst_proto_siginterrupt="no"
41078 if test "$tst_proto_siginterrupt" = "yes"; then
41079 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
41080 printf %s "checking if siginterrupt is compilable... " >&6; }
41081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41082 /* end confdefs.h. */
41085 $curl_includes_signal
41090 if(0 != siginterrupt(0, 0))
41098 if ac_fn_c_try_compile "$LINENO"
41101 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41102 printf "%s\n" "yes" >&6; }
41103 tst_compi_siginterrupt="yes"
41107 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41108 printf "%s\n" "no" >&6; }
41109 tst_compi_siginterrupt="no"
41112 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41115 if test "$tst_compi_siginterrupt" = "yes"; then
41116 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
41117 printf %s "checking if siginterrupt usage allowed... " >&6; }
41118 if test "x$curl_disallow_siginterrupt" != "xyes"; then
41119 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41120 printf "%s\n" "yes" >&6; }
41121 tst_allow_siginterrupt="yes"
41123 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41124 printf "%s\n" "no" >&6; }
41125 tst_allow_siginterrupt="no"
41129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
41130 printf %s "checking if siginterrupt might be used... " >&6; }
41131 if test "$tst_links_siginterrupt" = "yes" &&
41132 test "$tst_proto_siginterrupt" = "yes" &&
41133 test "$tst_compi_siginterrupt" = "yes" &&
41134 test "$tst_allow_siginterrupt" = "yes"; then
41135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41136 printf "%s\n" "yes" >&6; }
41138 printf "%s\n" "#define HAVE_SIGINTERRUPT 1" >>confdefs.h
41140 curl_cv_func_siginterrupt="yes"
41142 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41143 printf "%s\n" "no" >&6; }
41144 curl_cv_func_siginterrupt="no"
41149 tst_links_signal="unknown"
41150 tst_proto_signal="unknown"
41151 tst_compi_signal="unknown"
41152 tst_allow_signal="unknown"
41154 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
41155 printf %s "checking if signal can be linked... " >&6; }
41156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41157 /* end confdefs.h. */
41160 #define signal innocuous_signal
41162 # include <limits.h>
41164 # include <assert.h>
41171 #if defined __stub_signal || defined __stub___signal
41183 if ac_fn_c_try_link "$LINENO"
41186 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41187 printf "%s\n" "yes" >&6; }
41188 tst_links_signal="yes"
41192 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41193 printf "%s\n" "no" >&6; }
41194 tst_links_signal="no"
41197 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41198 conftest$ac_exeext conftest.$ac_ext
41200 if test "$tst_links_signal" = "yes"; then
41201 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
41202 printf %s "checking if signal is prototyped... " >&6; }
41203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41204 /* end confdefs.h. */
41206 $curl_includes_signal
41209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41210 $EGREP "signal" >/dev/null 2>&1
41213 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41214 printf "%s\n" "yes" >&6; }
41215 tst_proto_signal="yes"
41219 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41220 printf "%s\n" "no" >&6; }
41221 tst_proto_signal="no"
41228 if test "$tst_proto_signal" = "yes"; then
41229 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
41230 printf %s "checking if signal is compilable... " >&6; }
41231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41232 /* end confdefs.h. */
41235 $curl_includes_signal
41240 if(0 != signal(0, 0))
41248 if ac_fn_c_try_compile "$LINENO"
41251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41252 printf "%s\n" "yes" >&6; }
41253 tst_compi_signal="yes"
41257 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41258 printf "%s\n" "no" >&6; }
41259 tst_compi_signal="no"
41262 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41265 if test "$tst_compi_signal" = "yes"; then
41266 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
41267 printf %s "checking if signal usage allowed... " >&6; }
41268 if test "x$curl_disallow_signal" != "xyes"; then
41269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41270 printf "%s\n" "yes" >&6; }
41271 tst_allow_signal="yes"
41273 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41274 printf "%s\n" "no" >&6; }
41275 tst_allow_signal="no"
41279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
41280 printf %s "checking if signal might be used... " >&6; }
41281 if test "$tst_links_signal" = "yes" &&
41282 test "$tst_proto_signal" = "yes" &&
41283 test "$tst_compi_signal" = "yes" &&
41284 test "$tst_allow_signal" = "yes"; then
41285 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41286 printf "%s\n" "yes" >&6; }
41288 printf "%s\n" "#define HAVE_SIGNAL 1" >>confdefs.h
41290 curl_cv_func_signal="yes"
41292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41293 printf "%s\n" "no" >&6; }
41294 curl_cv_func_signal="no"
41298 curl_includes_setjmp="\
41299 /* includes start */
41300 #ifdef HAVE_SYS_TYPES_H
41301 # include <sys/types.h>
41303 #ifdef HAVE_SETJMP_H
41304 # include <setjmp.h>
41306 /* includes end */"
41307 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$curl_includes_setjmp
41309 if test "x$ac_cv_header_sys_types_h" = xyes
41311 printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
41314 ac_fn_c_check_header_compile "$LINENO" "setjmp.h" "ac_cv_header_setjmp_h" "$curl_includes_setjmp
41316 if test "x$ac_cv_header_setjmp_h" = xyes
41318 printf "%s\n" "#define HAVE_SETJMP_H 1" >>confdefs.h
41325 tst_links_sigsetjmp="unknown"
41326 tst_macro_sigsetjmp="unknown"
41327 tst_proto_sigsetjmp="unknown"
41328 tst_compi_sigsetjmp="unknown"
41329 tst_allow_sigsetjmp="unknown"
41331 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
41332 printf %s "checking if sigsetjmp can be linked... " >&6; }
41333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41334 /* end confdefs.h. */
41337 #define sigsetjmp innocuous_sigsetjmp
41339 # include <limits.h>
41341 # include <assert.h>
41348 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
41354 return sigsetjmp ();
41360 if ac_fn_c_try_link "$LINENO"
41363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41364 printf "%s\n" "yes" >&6; }
41365 tst_links_sigsetjmp="yes"
41369 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41370 printf "%s\n" "no" >&6; }
41371 tst_links_sigsetjmp="no"
41374 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41375 conftest$ac_exeext conftest.$ac_ext
41377 if test "$tst_links_sigsetjmp" = "no"; then
41378 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
41379 printf %s "checking if sigsetjmp seems a macro... " >&6; }
41380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41381 /* end confdefs.h. */
41384 $curl_includes_setjmp
41390 if(0 != sigsetjmp(env, 0))
41398 if ac_fn_c_try_link "$LINENO"
41401 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41402 printf "%s\n" "yes" >&6; }
41403 tst_macro_sigsetjmp="yes"
41407 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41408 printf "%s\n" "no" >&6; }
41409 tst_macro_sigsetjmp="no"
41412 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41413 conftest$ac_exeext conftest.$ac_ext
41416 if test "$tst_links_sigsetjmp" = "yes"; then
41417 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
41418 printf %s "checking if sigsetjmp is prototyped... " >&6; }
41419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41420 /* end confdefs.h. */
41422 $curl_includes_setjmp
41425 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41426 $EGREP "sigsetjmp" >/dev/null 2>&1
41429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41430 printf "%s\n" "yes" >&6; }
41431 tst_proto_sigsetjmp="yes"
41435 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41436 printf "%s\n" "no" >&6; }
41437 tst_proto_sigsetjmp="no"
41444 if test "$tst_proto_sigsetjmp" = "yes" ||
41445 test "$tst_macro_sigsetjmp" = "yes"; then
41446 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
41447 printf %s "checking if sigsetjmp is compilable... " >&6; }
41448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41449 /* end confdefs.h. */
41452 $curl_includes_setjmp
41458 if(0 != sigsetjmp(env, 0))
41466 if ac_fn_c_try_compile "$LINENO"
41469 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41470 printf "%s\n" "yes" >&6; }
41471 tst_compi_sigsetjmp="yes"
41475 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41476 printf "%s\n" "no" >&6; }
41477 tst_compi_sigsetjmp="no"
41480 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41483 if test "$tst_compi_sigsetjmp" = "yes"; then
41484 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
41485 printf %s "checking if sigsetjmp usage allowed... " >&6; }
41486 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
41487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41488 printf "%s\n" "yes" >&6; }
41489 tst_allow_sigsetjmp="yes"
41491 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41492 printf "%s\n" "no" >&6; }
41493 tst_allow_sigsetjmp="no"
41497 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
41498 printf %s "checking if sigsetjmp might be used... " >&6; }
41499 if (test "$tst_proto_sigsetjmp" = "yes" ||
41500 test "$tst_macro_sigsetjmp" = "yes") &&
41501 test "$tst_compi_sigsetjmp" = "yes" &&
41502 test "$tst_allow_sigsetjmp" = "yes"; then
41503 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41504 printf "%s\n" "yes" >&6; }
41506 printf "%s\n" "#define HAVE_SIGSETJMP 1" >>confdefs.h
41508 curl_cv_func_sigsetjmp="yes"
41510 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41511 printf "%s\n" "no" >&6; }
41512 curl_cv_func_sigsetjmp="no"
41517 tst_links_socket="unknown"
41518 tst_proto_socket="unknown"
41519 tst_compi_socket="unknown"
41520 tst_allow_socket="unknown"
41522 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
41523 printf %s "checking if socket can be linked... " >&6; }
41524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41525 /* end confdefs.h. */
41528 $curl_includes_winsock2
41529 $curl_includes_bsdsocket
41530 $curl_includes_sys_socket
41531 $curl_includes_socket
41536 if(0 != socket(0, 0, 0))
41544 if ac_fn_c_try_link "$LINENO"
41547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41548 printf "%s\n" "yes" >&6; }
41549 tst_links_socket="yes"
41553 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41554 printf "%s\n" "no" >&6; }
41555 tst_links_socket="no"
41558 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41559 conftest$ac_exeext conftest.$ac_ext
41561 if test "$tst_links_socket" = "yes"; then
41562 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
41563 printf %s "checking if socket is prototyped... " >&6; }
41564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41565 /* end confdefs.h. */
41567 $curl_includes_winsock2
41568 $curl_includes_bsdsocket
41569 $curl_includes_sys_socket
41570 $curl_includes_socket
41573 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41574 $EGREP "socket" >/dev/null 2>&1
41577 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41578 printf "%s\n" "yes" >&6; }
41579 tst_proto_socket="yes"
41583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41584 printf "%s\n" "no" >&6; }
41585 tst_proto_socket="no"
41592 if test "$tst_proto_socket" = "yes"; then
41593 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
41594 printf %s "checking if socket is compilable... " >&6; }
41595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41596 /* end confdefs.h. */
41599 $curl_includes_winsock2
41600 $curl_includes_bsdsocket
41601 $curl_includes_sys_socket
41602 $curl_includes_socket
41607 if(0 != socket(0, 0, 0))
41615 if ac_fn_c_try_compile "$LINENO"
41618 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41619 printf "%s\n" "yes" >&6; }
41620 tst_compi_socket="yes"
41624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41625 printf "%s\n" "no" >&6; }
41626 tst_compi_socket="no"
41629 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41632 if test "$tst_compi_socket" = "yes"; then
41633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
41634 printf %s "checking if socket usage allowed... " >&6; }
41635 if test "x$curl_disallow_socket" != "xyes"; then
41636 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41637 printf "%s\n" "yes" >&6; }
41638 tst_allow_socket="yes"
41640 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41641 printf "%s\n" "no" >&6; }
41642 tst_allow_socket="no"
41646 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
41647 printf %s "checking if socket might be used... " >&6; }
41648 if test "$tst_links_socket" = "yes" &&
41649 test "$tst_proto_socket" = "yes" &&
41650 test "$tst_compi_socket" = "yes" &&
41651 test "$tst_allow_socket" = "yes"; then
41652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41653 printf "%s\n" "yes" >&6; }
41655 printf "%s\n" "#define HAVE_SOCKET 1" >>confdefs.h
41657 curl_cv_func_socket="yes"
41659 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41660 printf "%s\n" "no" >&6; }
41661 curl_cv_func_socket="no"
41666 tst_links_socketpair="unknown"
41667 tst_proto_socketpair="unknown"
41668 tst_compi_socketpair="unknown"
41669 tst_allow_socketpair="unknown"
41671 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
41672 printf %s "checking if socketpair can be linked... " >&6; }
41673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41674 /* end confdefs.h. */
41677 #define socketpair innocuous_socketpair
41679 # include <limits.h>
41681 # include <assert.h>
41687 char socketpair ();
41688 #if defined __stub_socketpair || defined __stub___socketpair
41694 return socketpair ();
41700 if ac_fn_c_try_link "$LINENO"
41703 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41704 printf "%s\n" "yes" >&6; }
41705 tst_links_socketpair="yes"
41709 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41710 printf "%s\n" "no" >&6; }
41711 tst_links_socketpair="no"
41714 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41715 conftest$ac_exeext conftest.$ac_ext
41717 if test "$tst_links_socketpair" = "yes"; then
41718 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
41719 printf %s "checking if socketpair is prototyped... " >&6; }
41720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41721 /* end confdefs.h. */
41723 $curl_includes_sys_socket
41724 $curl_includes_socket
41727 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41728 $EGREP "socketpair" >/dev/null 2>&1
41731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41732 printf "%s\n" "yes" >&6; }
41733 tst_proto_socketpair="yes"
41737 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41738 printf "%s\n" "no" >&6; }
41739 tst_proto_socketpair="no"
41746 if test "$tst_proto_socketpair" = "yes"; then
41747 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
41748 printf %s "checking if socketpair is compilable... " >&6; }
41749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41750 /* end confdefs.h. */
41753 $curl_includes_sys_socket
41754 $curl_includes_socket
41760 if(0 != socketpair(0, 0, 0, sv))
41768 if ac_fn_c_try_compile "$LINENO"
41771 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41772 printf "%s\n" "yes" >&6; }
41773 tst_compi_socketpair="yes"
41777 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41778 printf "%s\n" "no" >&6; }
41779 tst_compi_socketpair="no"
41782 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41785 if test "$tst_compi_socketpair" = "yes"; then
41786 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
41787 printf %s "checking if socketpair usage allowed... " >&6; }
41788 if test "x$curl_disallow_socketpair" != "xyes"; then
41789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41790 printf "%s\n" "yes" >&6; }
41791 tst_allow_socketpair="yes"
41793 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41794 printf "%s\n" "no" >&6; }
41795 tst_allow_socketpair="no"
41799 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
41800 printf %s "checking if socketpair might be used... " >&6; }
41801 if test "$tst_links_socketpair" = "yes" &&
41802 test "$tst_proto_socketpair" = "yes" &&
41803 test "$tst_compi_socketpair" = "yes" &&
41804 test "$tst_allow_socketpair" = "yes"; then
41805 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41806 printf "%s\n" "yes" >&6; }
41808 printf "%s\n" "#define HAVE_SOCKETPAIR 1" >>confdefs.h
41810 curl_cv_func_socketpair="yes"
41812 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41813 printf "%s\n" "no" >&6; }
41814 curl_cv_func_socketpair="no"
41819 tst_links_strcasecmp="unknown"
41820 tst_proto_strcasecmp="unknown"
41821 tst_compi_strcasecmp="unknown"
41822 tst_allow_strcasecmp="unknown"
41824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
41825 printf %s "checking if strcasecmp can be linked... " >&6; }
41826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41827 /* end confdefs.h. */
41830 #define strcasecmp innocuous_strcasecmp
41832 # include <limits.h>
41834 # include <assert.h>
41840 char strcasecmp ();
41841 #if defined __stub_strcasecmp || defined __stub___strcasecmp
41847 return strcasecmp ();
41853 if ac_fn_c_try_link "$LINENO"
41856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41857 printf "%s\n" "yes" >&6; }
41858 tst_links_strcasecmp="yes"
41862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41863 printf "%s\n" "no" >&6; }
41864 tst_links_strcasecmp="no"
41867 rm -f core conftest.err conftest.$ac_objext conftest.beam \
41868 conftest$ac_exeext conftest.$ac_ext
41870 if test "$tst_links_strcasecmp" = "yes"; then
41871 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
41872 printf %s "checking if strcasecmp is prototyped... " >&6; }
41873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41874 /* end confdefs.h. */
41876 $curl_includes_string
41879 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
41880 $EGREP "strcasecmp" >/dev/null 2>&1
41883 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41884 printf "%s\n" "yes" >&6; }
41885 tst_proto_strcasecmp="yes"
41889 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41890 printf "%s\n" "no" >&6; }
41891 tst_proto_strcasecmp="no"
41898 if test "$tst_proto_strcasecmp" = "yes"; then
41899 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
41900 printf %s "checking if strcasecmp is compilable... " >&6; }
41901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41902 /* end confdefs.h. */
41905 $curl_includes_string
41910 if(0 != strcasecmp(0, 0))
41918 if ac_fn_c_try_compile "$LINENO"
41921 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41922 printf "%s\n" "yes" >&6; }
41923 tst_compi_strcasecmp="yes"
41927 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41928 printf "%s\n" "no" >&6; }
41929 tst_compi_strcasecmp="no"
41932 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
41935 if test "$tst_compi_strcasecmp" = "yes"; then
41936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
41937 printf %s "checking if strcasecmp usage allowed... " >&6; }
41938 if test "x$curl_disallow_strcasecmp" != "xyes"; then
41939 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41940 printf "%s\n" "yes" >&6; }
41941 tst_allow_strcasecmp="yes"
41943 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41944 printf "%s\n" "no" >&6; }
41945 tst_allow_strcasecmp="no"
41949 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
41950 printf %s "checking if strcasecmp might be used... " >&6; }
41951 if test "$tst_links_strcasecmp" = "yes" &&
41952 test "$tst_proto_strcasecmp" = "yes" &&
41953 test "$tst_compi_strcasecmp" = "yes" &&
41954 test "$tst_allow_strcasecmp" = "yes"; then
41955 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
41956 printf "%s\n" "yes" >&6; }
41958 printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h
41960 curl_cv_func_strcasecmp="yes"
41962 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
41963 printf "%s\n" "no" >&6; }
41964 curl_cv_func_strcasecmp="no"
41969 tst_links_strcmpi="unknown"
41970 tst_proto_strcmpi="unknown"
41971 tst_compi_strcmpi="unknown"
41972 tst_allow_strcmpi="unknown"
41974 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
41975 printf %s "checking if strcmpi can be linked... " >&6; }
41976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
41977 /* end confdefs.h. */
41980 #define strcmpi innocuous_strcmpi
41982 # include <limits.h>
41984 # include <assert.h>
41991 #if defined __stub_strcmpi || defined __stub___strcmpi
42003 if ac_fn_c_try_link "$LINENO"
42006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42007 printf "%s\n" "yes" >&6; }
42008 tst_links_strcmpi="yes"
42012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42013 printf "%s\n" "no" >&6; }
42014 tst_links_strcmpi="no"
42017 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42018 conftest$ac_exeext conftest.$ac_ext
42020 if test "$tst_links_strcmpi" = "yes"; then
42021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
42022 printf %s "checking if strcmpi is prototyped... " >&6; }
42023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42024 /* end confdefs.h. */
42026 $curl_includes_string
42029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42030 $EGREP "strcmpi" >/dev/null 2>&1
42033 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42034 printf "%s\n" "yes" >&6; }
42035 tst_proto_strcmpi="yes"
42039 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42040 printf "%s\n" "no" >&6; }
42041 tst_proto_strcmpi="no"
42048 if test "$tst_proto_strcmpi" = "yes"; then
42049 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
42050 printf %s "checking if strcmpi is compilable... " >&6; }
42051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42052 /* end confdefs.h. */
42055 $curl_includes_string
42060 if(0 != strcmpi(0, 0))
42068 if ac_fn_c_try_compile "$LINENO"
42071 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42072 printf "%s\n" "yes" >&6; }
42073 tst_compi_strcmpi="yes"
42077 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42078 printf "%s\n" "no" >&6; }
42079 tst_compi_strcmpi="no"
42082 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42085 if test "$tst_compi_strcmpi" = "yes"; then
42086 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
42087 printf %s "checking if strcmpi usage allowed... " >&6; }
42088 if test "x$curl_disallow_strcmpi" != "xyes"; then
42089 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42090 printf "%s\n" "yes" >&6; }
42091 tst_allow_strcmpi="yes"
42093 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42094 printf "%s\n" "no" >&6; }
42095 tst_allow_strcmpi="no"
42099 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
42100 printf %s "checking if strcmpi might be used... " >&6; }
42101 if test "$tst_links_strcmpi" = "yes" &&
42102 test "$tst_proto_strcmpi" = "yes" &&
42103 test "$tst_compi_strcmpi" = "yes" &&
42104 test "$tst_allow_strcmpi" = "yes"; then
42105 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42106 printf "%s\n" "yes" >&6; }
42108 printf "%s\n" "#define HAVE_STRCMPI 1" >>confdefs.h
42110 curl_cv_func_strcmpi="yes"
42112 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42113 printf "%s\n" "no" >&6; }
42114 curl_cv_func_strcmpi="no"
42119 tst_links_strdup="unknown"
42120 tst_proto_strdup="unknown"
42121 tst_compi_strdup="unknown"
42122 tst_allow_strdup="unknown"
42124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
42125 printf %s "checking if strdup can be linked... " >&6; }
42126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42127 /* end confdefs.h. */
42130 #define strdup innocuous_strdup
42132 # include <limits.h>
42134 # include <assert.h>
42141 #if defined __stub_strdup || defined __stub___strdup
42153 if ac_fn_c_try_link "$LINENO"
42156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42157 printf "%s\n" "yes" >&6; }
42158 tst_links_strdup="yes"
42162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42163 printf "%s\n" "no" >&6; }
42164 tst_links_strdup="no"
42167 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42168 conftest$ac_exeext conftest.$ac_ext
42170 if test "$tst_links_strdup" = "yes"; then
42171 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
42172 printf %s "checking if strdup is prototyped... " >&6; }
42173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42174 /* end confdefs.h. */
42176 $curl_includes_string
42179 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42180 $EGREP "strdup" >/dev/null 2>&1
42183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42184 printf "%s\n" "yes" >&6; }
42185 tst_proto_strdup="yes"
42189 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42190 printf "%s\n" "no" >&6; }
42191 tst_proto_strdup="no"
42198 if test "$tst_proto_strdup" = "yes"; then
42199 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
42200 printf %s "checking if strdup is compilable... " >&6; }
42201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42202 /* end confdefs.h. */
42205 $curl_includes_string
42218 if ac_fn_c_try_compile "$LINENO"
42221 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42222 printf "%s\n" "yes" >&6; }
42223 tst_compi_strdup="yes"
42227 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42228 printf "%s\n" "no" >&6; }
42229 tst_compi_strdup="no"
42232 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42235 if test "$tst_compi_strdup" = "yes"; then
42236 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
42237 printf %s "checking if strdup usage allowed... " >&6; }
42238 if test "x$curl_disallow_strdup" != "xyes"; then
42239 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42240 printf "%s\n" "yes" >&6; }
42241 tst_allow_strdup="yes"
42243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42244 printf "%s\n" "no" >&6; }
42245 tst_allow_strdup="no"
42249 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
42250 printf %s "checking if strdup might be used... " >&6; }
42251 if test "$tst_links_strdup" = "yes" &&
42252 test "$tst_proto_strdup" = "yes" &&
42253 test "$tst_compi_strdup" = "yes" &&
42254 test "$tst_allow_strdup" = "yes"; then
42255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42256 printf "%s\n" "yes" >&6; }
42258 printf "%s\n" "#define HAVE_STRDUP 1" >>confdefs.h
42260 curl_cv_func_strdup="yes"
42262 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42263 printf "%s\n" "no" >&6; }
42264 curl_cv_func_strdup="no"
42269 tst_links_strerror_r="unknown"
42270 tst_proto_strerror_r="unknown"
42271 tst_compi_strerror_r="unknown"
42272 tst_glibc_strerror_r="unknown"
42273 tst_posix_strerror_r="unknown"
42274 tst_allow_strerror_r="unknown"
42275 tst_works_glibc_strerror_r="unknown"
42276 tst_works_posix_strerror_r="unknown"
42277 tst_glibc_strerror_r_type_arg3="unknown"
42278 tst_posix_strerror_r_type_arg3="unknown"
42280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
42281 printf %s "checking if strerror_r can be linked... " >&6; }
42282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42283 /* end confdefs.h. */
42286 #define strerror_r innocuous_strerror_r
42288 # include <limits.h>
42290 # include <assert.h>
42296 char strerror_r ();
42297 #if defined __stub_strerror_r || defined __stub___strerror_r
42303 return strerror_r ();
42309 if ac_fn_c_try_link "$LINENO"
42312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42313 printf "%s\n" "yes" >&6; }
42314 tst_links_strerror_r="yes"
42318 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42319 printf "%s\n" "no" >&6; }
42320 tst_links_strerror_r="no"
42323 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42324 conftest$ac_exeext conftest.$ac_ext
42326 if test "$tst_links_strerror_r" = "yes"; then
42327 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
42328 printf %s "checking if strerror_r is prototyped... " >&6; }
42329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42330 /* end confdefs.h. */
42332 $curl_includes_string
42335 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42336 $EGREP "strerror_r" >/dev/null 2>&1
42339 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42340 printf "%s\n" "yes" >&6; }
42341 tst_proto_strerror_r="yes"
42345 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42346 printf "%s\n" "no" >&6; }
42347 tst_proto_strerror_r="no"
42354 if test "$tst_proto_strerror_r" = "yes"; then
42355 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
42356 printf %s "checking if strerror_r is compilable... " >&6; }
42357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42358 /* end confdefs.h. */
42361 $curl_includes_string
42366 if(0 != strerror_r(0, 0, 0))
42374 if ac_fn_c_try_compile "$LINENO"
42377 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42378 printf "%s\n" "yes" >&6; }
42379 tst_compi_strerror_r="yes"
42383 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42384 printf "%s\n" "no" >&6; }
42385 tst_compi_strerror_r="no"
42388 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42391 if test "$tst_compi_strerror_r" = "yes"; then
42392 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
42393 printf %s "checking if strerror_r is glibc like... " >&6; }
42394 tst_glibc_strerror_r_type_arg3="unknown"
42395 for arg3 in 'size_t' 'int' 'unsigned int'; do
42396 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
42397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42398 /* end confdefs.h. */
42401 $curl_includes_string
42402 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
42407 if(0 != strerror_r(0, 0, 0))
42415 if ac_fn_c_try_compile "$LINENO"
42418 tst_glibc_strerror_r_type_arg3="$arg3"
42421 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42424 case "$tst_glibc_strerror_r_type_arg3" in
42426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42427 printf "%s\n" "no" >&6; }
42428 tst_glibc_strerror_r="no"
42431 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42432 printf "%s\n" "yes" >&6; }
42433 tst_glibc_strerror_r="yes"
42438 if test "x$cross_compiling" != "xyes" &&
42439 test "$tst_glibc_strerror_r" = "yes"; then
42440 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42441 printf %s "checking if strerror_r seems to work... " >&6; }
42445 if test "$cross_compiling" = yes
42447 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42448 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42449 as_fn_error $? "cannot run test program while cross compiling
42450 See \`config.log' for more details" "$LINENO" 5; }
42452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42453 /* end confdefs.h. */
42456 $curl_includes_stdlib
42457 $curl_includes_string
42458 # include <errno.h>
42466 string = strerror_r(EACCES, buffer, sizeof(buffer));
42468 exit(1); /* fail */
42470 exit(1); /* fail */
42479 if ac_fn_c_try_run "$LINENO"
42481 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42482 printf "%s\n" "yes" >&6; }
42483 tst_works_glibc_strerror_r="yes"
42486 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42487 printf "%s\n" "no" >&6; }
42488 tst_works_glibc_strerror_r="no"
42491 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42492 conftest.$ac_objext conftest.beam conftest.$ac_ext
42497 old=$LD_LIBRARY_PATH
42498 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42499 export LD_LIBRARY_PATH
42500 if test "$cross_compiling" = yes
42502 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42503 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42504 as_fn_error $? "cannot run test program while cross compiling
42505 See \`config.log' for more details" "$LINENO" 5; }
42507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42508 /* end confdefs.h. */
42511 $curl_includes_stdlib
42512 $curl_includes_string
42513 # include <errno.h>
42521 string = strerror_r(EACCES, buffer, sizeof(buffer));
42523 exit(1); /* fail */
42525 exit(1); /* fail */
42534 if ac_fn_c_try_run "$LINENO"
42536 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42537 printf "%s\n" "yes" >&6; }
42538 tst_works_glibc_strerror_r="yes"
42541 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42542 printf "%s\n" "no" >&6; }
42543 tst_works_glibc_strerror_r="no"
42546 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42547 conftest.$ac_objext conftest.beam conftest.$ac_ext
42550 LD_LIBRARY_PATH=$old # restore
42556 if test "$tst_compi_strerror_r" = "yes" &&
42557 test "$tst_works_glibc_strerror_r" != "yes"; then
42558 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
42559 printf %s "checking if strerror_r is POSIX like... " >&6; }
42560 tst_posix_strerror_r_type_arg3="unknown"
42561 for arg3 in 'size_t' 'int' 'unsigned int'; do
42562 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
42563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42564 /* end confdefs.h. */
42567 $curl_includes_string
42568 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
42573 if(0 != strerror_r(0, 0, 0))
42581 if ac_fn_c_try_compile "$LINENO"
42584 tst_posix_strerror_r_type_arg3="$arg3"
42587 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42590 case "$tst_posix_strerror_r_type_arg3" in
42592 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42593 printf "%s\n" "no" >&6; }
42594 tst_posix_strerror_r="no"
42597 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42598 printf "%s\n" "yes" >&6; }
42599 tst_posix_strerror_r="yes"
42604 if test "x$cross_compiling" != "xyes" &&
42605 test "$tst_posix_strerror_r" = "yes"; then
42606 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
42607 printf %s "checking if strerror_r seems to work... " >&6; }
42611 if test "$cross_compiling" = yes
42613 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42614 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42615 as_fn_error $? "cannot run test program while cross compiling
42616 See \`config.log' for more details" "$LINENO" 5; }
42618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42619 /* end confdefs.h. */
42622 $curl_includes_stdlib
42623 $curl_includes_string
42624 # include <errno.h>
42632 error = strerror_r(EACCES, buffer, sizeof(buffer));
42634 exit(1); /* fail */
42635 if(buffer[0] == '\0')
42636 exit(1); /* fail */
42645 if ac_fn_c_try_run "$LINENO"
42647 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42648 printf "%s\n" "yes" >&6; }
42649 tst_works_posix_strerror_r="yes"
42652 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42653 printf "%s\n" "no" >&6; }
42654 tst_works_posix_strerror_r="no"
42657 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42658 conftest.$ac_objext conftest.beam conftest.$ac_ext
42663 old=$LD_LIBRARY_PATH
42664 LD_LIBRARY_PATH=$CURL_LIBRARY_PATH:$old
42665 export LD_LIBRARY_PATH
42666 if test "$cross_compiling" = yes
42668 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
42669 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
42670 as_fn_error $? "cannot run test program while cross compiling
42671 See \`config.log' for more details" "$LINENO" 5; }
42673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42674 /* end confdefs.h. */
42677 $curl_includes_stdlib
42678 $curl_includes_string
42679 # include <errno.h>
42687 error = strerror_r(EACCES, buffer, sizeof(buffer));
42689 exit(1); /* fail */
42690 if(buffer[0] == '\0')
42691 exit(1); /* fail */
42700 if ac_fn_c_try_run "$LINENO"
42702 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42703 printf "%s\n" "yes" >&6; }
42704 tst_works_posix_strerror_r="yes"
42707 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42708 printf "%s\n" "no" >&6; }
42709 tst_works_posix_strerror_r="no"
42712 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
42713 conftest.$ac_objext conftest.beam conftest.$ac_ext
42716 LD_LIBRARY_PATH=$old # restore
42722 if test "$tst_works_glibc_strerror_r" = "yes"; then
42723 tst_posix_strerror_r="no"
42725 if test "$tst_works_posix_strerror_r" = "yes"; then
42726 tst_glibc_strerror_r="no"
42728 if test "$tst_glibc_strerror_r" = "yes" &&
42729 test "$tst_works_glibc_strerror_r" != "no" &&
42730 test "$tst_posix_strerror_r" != "yes"; then
42731 tst_allow_strerror_r="check"
42733 if test "$tst_posix_strerror_r" = "yes" &&
42734 test "$tst_works_posix_strerror_r" != "no" &&
42735 test "$tst_glibc_strerror_r" != "yes"; then
42736 tst_allow_strerror_r="check"
42738 if test "$tst_allow_strerror_r" = "check"; then
42739 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
42740 printf %s "checking if strerror_r usage allowed... " >&6; }
42741 if test "x$curl_disallow_strerror_r" != "xyes"; then
42742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42743 printf "%s\n" "yes" >&6; }
42744 tst_allow_strerror_r="yes"
42746 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42747 printf "%s\n" "no" >&6; }
42748 tst_allow_strerror_r="no"
42752 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
42753 printf %s "checking if strerror_r might be used... " >&6; }
42754 if test "$tst_links_strerror_r" = "yes" &&
42755 test "$tst_proto_strerror_r" = "yes" &&
42756 test "$tst_compi_strerror_r" = "yes" &&
42757 test "$tst_allow_strerror_r" = "yes"; then
42758 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42759 printf "%s\n" "yes" >&6; }
42760 if test "$tst_glibc_strerror_r" = "yes"; then
42762 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42765 printf "%s\n" "#define HAVE_GLIBC_STRERROR_R 1" >>confdefs.h
42768 if test "$tst_posix_strerror_r" = "yes"; then
42770 printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h
42773 printf "%s\n" "#define HAVE_POSIX_STRERROR_R 1" >>confdefs.h
42776 curl_cv_func_strerror_r="yes"
42778 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42779 printf "%s\n" "no" >&6; }
42780 curl_cv_func_strerror_r="no"
42783 if test "$tst_compi_strerror_r" = "yes" &&
42784 test "$tst_allow_strerror_r" = "unknown"; then
42785 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
42786 printf "%s\n" "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
42792 tst_links_stricmp="unknown"
42793 tst_proto_stricmp="unknown"
42794 tst_compi_stricmp="unknown"
42795 tst_allow_stricmp="unknown"
42797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
42798 printf %s "checking if stricmp can be linked... " >&6; }
42799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42800 /* end confdefs.h. */
42803 #define stricmp innocuous_stricmp
42805 # include <limits.h>
42807 # include <assert.h>
42814 #if defined __stub_stricmp || defined __stub___stricmp
42826 if ac_fn_c_try_link "$LINENO"
42829 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42830 printf "%s\n" "yes" >&6; }
42831 tst_links_stricmp="yes"
42835 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42836 printf "%s\n" "no" >&6; }
42837 tst_links_stricmp="no"
42840 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42841 conftest$ac_exeext conftest.$ac_ext
42843 if test "$tst_links_stricmp" = "yes"; then
42844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
42845 printf %s "checking if stricmp is prototyped... " >&6; }
42846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42847 /* end confdefs.h. */
42849 $curl_includes_string
42852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
42853 $EGREP "stricmp" >/dev/null 2>&1
42856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42857 printf "%s\n" "yes" >&6; }
42858 tst_proto_stricmp="yes"
42862 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42863 printf "%s\n" "no" >&6; }
42864 tst_proto_stricmp="no"
42871 if test "$tst_proto_stricmp" = "yes"; then
42872 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
42873 printf %s "checking if stricmp is compilable... " >&6; }
42874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42875 /* end confdefs.h. */
42878 $curl_includes_string
42883 if(0 != stricmp(0, 0))
42891 if ac_fn_c_try_compile "$LINENO"
42894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42895 printf "%s\n" "yes" >&6; }
42896 tst_compi_stricmp="yes"
42900 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42901 printf "%s\n" "no" >&6; }
42902 tst_compi_stricmp="no"
42905 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
42908 if test "$tst_compi_stricmp" = "yes"; then
42909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
42910 printf %s "checking if stricmp usage allowed... " >&6; }
42911 if test "x$curl_disallow_stricmp" != "xyes"; then
42912 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42913 printf "%s\n" "yes" >&6; }
42914 tst_allow_stricmp="yes"
42916 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42917 printf "%s\n" "no" >&6; }
42918 tst_allow_stricmp="no"
42922 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
42923 printf %s "checking if stricmp might be used... " >&6; }
42924 if test "$tst_links_stricmp" = "yes" &&
42925 test "$tst_proto_stricmp" = "yes" &&
42926 test "$tst_compi_stricmp" = "yes" &&
42927 test "$tst_allow_stricmp" = "yes"; then
42928 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42929 printf "%s\n" "yes" >&6; }
42931 printf "%s\n" "#define HAVE_STRICMP 1" >>confdefs.h
42933 curl_cv_func_stricmp="yes"
42935 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42936 printf "%s\n" "no" >&6; }
42937 curl_cv_func_stricmp="no"
42942 tst_links_strtok_r="unknown"
42943 tst_proto_strtok_r="unknown"
42944 tst_compi_strtok_r="unknown"
42945 tst_allow_strtok_r="unknown"
42947 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
42948 printf %s "checking if strtok_r can be linked... " >&6; }
42949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42950 /* end confdefs.h. */
42953 #define strtok_r innocuous_strtok_r
42955 # include <limits.h>
42957 # include <assert.h>
42964 #if defined __stub_strtok_r || defined __stub___strtok_r
42970 return strtok_r ();
42976 if ac_fn_c_try_link "$LINENO"
42979 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
42980 printf "%s\n" "yes" >&6; }
42981 tst_links_strtok_r="yes"
42985 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
42986 printf "%s\n" "no" >&6; }
42987 tst_links_strtok_r="no"
42990 rm -f core conftest.err conftest.$ac_objext conftest.beam \
42991 conftest$ac_exeext conftest.$ac_ext
42993 if test "$tst_links_strtok_r" = "yes"; then
42994 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
42995 printf %s "checking if strtok_r is prototyped... " >&6; }
42996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
42997 /* end confdefs.h. */
42999 $curl_includes_string
43002 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43003 $EGREP "strtok_r" >/dev/null 2>&1
43006 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43007 printf "%s\n" "yes" >&6; }
43008 tst_proto_strtok_r="yes"
43012 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43013 printf "%s\n" "no" >&6; }
43014 tst_proto_strtok_r="no"
43021 if test "$tst_proto_strtok_r" = "yes"; then
43022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
43023 printf %s "checking if strtok_r is compilable... " >&6; }
43024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43025 /* end confdefs.h. */
43028 $curl_includes_string
43033 if(0 != strtok_r(0, 0, 0))
43041 if ac_fn_c_try_compile "$LINENO"
43044 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43045 printf "%s\n" "yes" >&6; }
43046 tst_compi_strtok_r="yes"
43050 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43051 printf "%s\n" "no" >&6; }
43052 tst_compi_strtok_r="no"
43055 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43058 if test "$tst_compi_strtok_r" = "yes"; then
43059 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
43060 printf %s "checking if strtok_r usage allowed... " >&6; }
43061 if test "x$curl_disallow_strtok_r" != "xyes"; then
43062 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43063 printf "%s\n" "yes" >&6; }
43064 tst_allow_strtok_r="yes"
43066 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43067 printf "%s\n" "no" >&6; }
43068 tst_allow_strtok_r="no"
43072 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
43073 printf %s "checking if strtok_r might be used... " >&6; }
43074 if test "$tst_links_strtok_r" = "yes" &&
43075 test "$tst_proto_strtok_r" = "yes" &&
43076 test "$tst_compi_strtok_r" = "yes" &&
43077 test "$tst_allow_strtok_r" = "yes"; then
43078 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43079 printf "%s\n" "yes" >&6; }
43081 printf "%s\n" "#define HAVE_STRTOK_R 1" >>confdefs.h
43083 curl_cv_func_strtok_r="yes"
43085 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43086 printf "%s\n" "no" >&6; }
43087 curl_cv_func_strtok_r="no"
43092 tst_links_strtoll="unknown"
43093 tst_proto_strtoll="unknown"
43094 tst_compi_strtoll="unknown"
43095 tst_allow_strtoll="unknown"
43097 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
43098 printf %s "checking if strtoll can be linked... " >&6; }
43099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43100 /* end confdefs.h. */
43103 #define strtoll innocuous_strtoll
43105 # include <limits.h>
43107 # include <assert.h>
43114 #if defined __stub_strtoll || defined __stub___strtoll
43126 if ac_fn_c_try_link "$LINENO"
43129 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43130 printf "%s\n" "yes" >&6; }
43131 tst_links_strtoll="yes"
43135 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43136 printf "%s\n" "no" >&6; }
43137 tst_links_strtoll="no"
43140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43141 conftest$ac_exeext conftest.$ac_ext
43143 if test "$tst_links_strtoll" = "yes"; then
43144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
43145 printf %s "checking if strtoll is prototyped... " >&6; }
43146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43147 /* end confdefs.h. */
43149 $curl_includes_stdlib
43152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
43153 $EGREP "strtoll" >/dev/null 2>&1
43156 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43157 printf "%s\n" "yes" >&6; }
43158 tst_proto_strtoll="yes"
43162 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43163 printf "%s\n" "no" >&6; }
43164 tst_proto_strtoll="no"
43171 if test "$tst_proto_strtoll" = "yes"; then
43172 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
43173 printf %s "checking if strtoll is compilable... " >&6; }
43174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43175 /* end confdefs.h. */
43178 $curl_includes_stdlib
43183 if(0 != strtoll(0, 0, 0))
43191 if ac_fn_c_try_compile "$LINENO"
43194 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43195 printf "%s\n" "yes" >&6; }
43196 tst_compi_strtoll="yes"
43200 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43201 printf "%s\n" "no" >&6; }
43202 tst_compi_strtoll="no"
43205 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43208 if test "$tst_compi_strtoll" = "yes"; then
43209 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
43210 printf %s "checking if strtoll usage allowed... " >&6; }
43211 if test "x$curl_disallow_strtoll" != "xyes"; then
43212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43213 printf "%s\n" "yes" >&6; }
43214 tst_allow_strtoll="yes"
43216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43217 printf "%s\n" "no" >&6; }
43218 tst_allow_strtoll="no"
43222 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
43223 printf %s "checking if strtoll might be used... " >&6; }
43224 if test "$tst_links_strtoll" = "yes" &&
43225 test "$tst_proto_strtoll" = "yes" &&
43226 test "$tst_compi_strtoll" = "yes" &&
43227 test "$tst_allow_strtoll" = "yes"; then
43228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43229 printf "%s\n" "yes" >&6; }
43231 printf "%s\n" "#define HAVE_STRTOLL 1" >>confdefs.h
43233 curl_cv_func_strtoll="yes"
43235 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43236 printf "%s\n" "no" >&6; }
43237 curl_cv_func_strtoll="no"
43245 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
43246 printf "%s\n" "$as_me: skip check for pipe on msdosdjgpp" >&6;}
43250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC options needed to detect all undeclared functions" >&5
43251 printf %s "checking for $CC options needed to detect all undeclared functions... " >&6; }
43252 if test ${ac_cv_c_undeclared_builtin_options+y}
43254 printf %s "(cached) " >&6
43256 ac_save_CFLAGS=$CFLAGS
43257 ac_cv_c_undeclared_builtin_options='cannot detect'
43258 for ac_arg in '' -fno-builtin; do
43259 CFLAGS="$ac_save_CFLAGS $ac_arg"
43260 # This test program should *not* compile successfully.
43261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43262 /* end confdefs.h. */
43271 if ac_fn_c_try_compile "$LINENO"
43275 # This test program should compile successfully.
43276 # No library function is consistently available on
43277 # freestanding implementations, so test against a dummy
43278 # declaration. Include always-available headers on the
43279 # off chance that they somehow elicit warnings.
43280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43281 /* end confdefs.h. */
43283 #include <limits.h>
43284 #include <stdarg.h>
43285 #include <stddef.h>
43286 extern void ac_decl (int, char *);
43290 (void) ac_decl (0, (char *) 0);
43297 if ac_fn_c_try_compile "$LINENO"
43299 if test x"$ac_arg" = x
43301 ac_cv_c_undeclared_builtin_options='none needed'
43303 ac_cv_c_undeclared_builtin_options=$ac_arg
43307 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43309 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
43311 CFLAGS=$ac_save_CFLAGS
43314 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_undeclared_builtin_options" >&5
43315 printf "%s\n" "$ac_cv_c_undeclared_builtin_options" >&6; }
43316 case $ac_cv_c_undeclared_builtin_options in #(
43318 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
43319 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
43320 as_fn_error $? "cannot make $CC report undeclared builtins
43321 See \`config.log' for more details" "$LINENO" 5; } ;; #(
43323 ac_c_undeclared_builtin_options='' ;; #(
43325 ac_c_undeclared_builtin_options=$ac_cv_c_undeclared_builtin_options ;;
43328 ac_fn_check_decl "$LINENO" "getpwuid_r" "ac_cv_have_decl_getpwuid_r" "#include <pwd.h>
43329 #include <sys/types.h>
43330 " "$ac_c_undeclared_builtin_options" "CFLAGS"
43331 if test "x$ac_cv_have_decl_getpwuid_r" = xyes
43337 printf "%s\n" "#define HAVE_DECL_GETPWUID_R $ac_have_decl" >>confdefs.h
43338 if test $ac_have_decl = 1
43343 printf "%s\n" "#define HAVE_DECL_GETPWUID_R_MISSING 1" >>confdefs.h
43350 for ac_func in fnmatch fchmod geteuid getpass_r getppid getpwuid getpwuid_r getrlimit gettimeofday if_nametoindex mach_absolute_time pipe sched_yield sendmsg setlocale setmode setrlimit snprintf utime utimes
43352 as_ac_var=`printf "%s\n" "ac_cv_func_$ac_func" | $as_tr_sh`
43353 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
43354 if eval test \"x\$"$as_ac_var"\" = x"yes"
43356 cat >>confdefs.h <<_ACEOF
43357 #define `printf "%s\n" "HAVE_$ac_func" | $as_tr_cpp` 1
43364 eval skipcheck=\$skipcheck_$func
43365 if test "x$skipcheck" != "xyes"; then
43366 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
43367 printf %s "checking deeper for $func... " >&6; }
43368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43369 /* end confdefs.h. */
43383 if ac_fn_c_try_link "$LINENO"
43386 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43387 printf "%s\n" "yes" >&6; }
43388 eval "ac_cv_func_$func=yes"
43390 cat >>confdefs.h <<_ACEOF
43391 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
43397 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
43398 printf "%s\n" "but still no" >&6; }
43401 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43402 conftest$ac_exeext conftest.$ac_ext
43411 tst_method="unknown"
43413 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
43414 printf %s "checking how to set a socket into non-blocking mode... " >&6; }
43415 if test "x$curl_cv_func_fcntl_o_nonblock" = "xyes"; then
43416 tst_method="fcntl O_NONBLOCK"
43417 elif test "x$curl_cv_func_ioctl_fionbio" = "xyes"; then
43418 tst_method="ioctl FIONBIO"
43419 elif test "x$curl_cv_func_ioctlsocket_fionbio" = "xyes"; then
43420 tst_method="ioctlsocket FIONBIO"
43421 elif test "x$curl_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
43422 tst_method="IoctlSocket FIONBIO"
43423 elif test "x$curl_cv_func_setsockopt_so_nonblock" = "xyes"; then
43424 tst_method="setsockopt SO_NONBLOCK"
43426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
43427 printf "%s\n" "$tst_method" >&6; }
43428 if test "$tst_method" = "unknown"; then
43429 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
43430 printf "%s\n" "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
43435 # Extract the first word of "perl", so it can be a program name with args.
43436 set dummy perl; ac_word=$2
43437 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43438 printf %s "checking for $ac_word... " >&6; }
43439 if test ${ac_cv_path_PERL+y}
43441 printf %s "(cached) " >&6
43445 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
43448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43449 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
43450 for as_dir in $as_dummy
43453 case $as_dir in #(((
43456 *) as_dir=$as_dir/ ;;
43458 for ac_exec_ext in '' $ac_executable_extensions; do
43459 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43460 ac_cv_path_PERL="$as_dir$ac_word$ac_exec_ext"
43461 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43471 PERL=$ac_cv_path_PERL
43472 if test -n "$PERL"; then
43473 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
43474 printf "%s\n" "$PERL" >&6; }
43476 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43477 printf "%s\n" "no" >&6; }
43483 for ac_prog in gnroff nroff
43485 # Extract the first word of "$ac_prog", so it can be a program name with args.
43486 set dummy $ac_prog; ac_word=$2
43487 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43488 printf %s "checking for $ac_word... " >&6; }
43489 if test ${ac_cv_path_NROFF+y}
43491 printf %s "(cached) " >&6
43495 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
43498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43499 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
43500 for as_dir in $as_dummy
43503 case $as_dir in #(((
43506 *) as_dir=$as_dir/ ;;
43508 for ac_exec_ext in '' $ac_executable_extensions; do
43509 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43510 ac_cv_path_NROFF="$as_dir$ac_word$ac_exec_ext"
43511 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43521 NROFF=$ac_cv_path_NROFF
43522 if test -n "$NROFF"; then
43523 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
43524 printf "%s\n" "$NROFF" >&6; }
43526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43527 printf "%s\n" "no" >&6; }
43531 test -n "$NROFF" && break
43536 if test -n "$NROFF"; then
43538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
43539 printf %s "checking how to use *nroff to get plain text from man pages... " >&6; }
43541 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43542 if test -z "$mancheck"; then
43544 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
43545 if test -z "$mancheck"; then
43547 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: failed" >&5
43548 printf "%s\n" "failed" >&6; }
43549 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
43550 printf "%s\n" "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
43552 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43553 printf "%s\n" "$MANOPT" >&6; }
43556 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
43557 printf "%s\n" "$MANOPT" >&6; }
43562 if test -z "$MANOPT"
43564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
43565 printf "%s\n" "$as_me: WARNING: disabling built-in manual" >&2;}
43570 if test "$USE_MANUAL" = "1"; then
43572 printf "%s\n" "#define USE_MANUAL 1" >>confdefs.h
43574 curl_manual_msg="enabled"
43577 if test x"$USE_MANUAL" = x1; then
43579 USE_MANUAL_FALSE='#'
43581 USE_MANUAL_TRUE='#'
43588 if test "$want_ares" = "yes"; then
43589 clean_CPPFLAGS="$CPPFLAGS"
43590 clean_LDFLAGS="$LDFLAGS"
43592 configure_runpath=`pwd`
43593 if test -n "$want_ares_path"; then
43594 ARES_PCDIR="$want_ares_path/lib/pkgconfig"
43596 if test -n "$PKG_CONFIG"; then
43597 PKGCONFIG="$PKG_CONFIG"
43599 if test -n "$ac_tool_prefix"; then
43600 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43601 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43603 printf %s "checking for $ac_word... " >&6; }
43604 if test ${ac_cv_path_PKGCONFIG+y}
43606 printf %s "(cached) " >&6
43610 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43614 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43615 for as_dir in $as_dummy
43618 case $as_dir in #(((
43621 *) as_dir=$as_dir/ ;;
43623 for ac_exec_ext in '' $ac_executable_extensions; do
43624 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43625 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43626 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43636 PKGCONFIG=$ac_cv_path_PKGCONFIG
43637 if test -n "$PKGCONFIG"; then
43638 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43639 printf "%s\n" "$PKGCONFIG" >&6; }
43641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43642 printf "%s\n" "no" >&6; }
43647 if test -z "$ac_cv_path_PKGCONFIG"; then
43648 ac_pt_PKGCONFIG=$PKGCONFIG
43649 # Extract the first word of "pkg-config", so it can be a program name with args.
43650 set dummy pkg-config; ac_word=$2
43651 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43652 printf %s "checking for $ac_word... " >&6; }
43653 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43655 printf %s "(cached) " >&6
43657 case $ac_pt_PKGCONFIG in
43659 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43663 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43664 for as_dir in $as_dummy
43667 case $as_dir in #(((
43670 *) as_dir=$as_dir/ ;;
43672 for ac_exec_ext in '' $ac_executable_extensions; do
43673 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43674 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43675 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43685 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43686 if test -n "$ac_pt_PKGCONFIG"; then
43687 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43688 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43690 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43691 printf "%s\n" "no" >&6; }
43694 if test "x$ac_pt_PKGCONFIG" = x; then
43697 case $cross_compiling:$ac_tool_warned in
43699 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43700 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43701 ac_tool_warned=yes ;;
43703 PKGCONFIG=$ac_pt_PKGCONFIG
43706 PKGCONFIG="$ac_cv_path_PKGCONFIG"
43711 if test "x$PKGCONFIG" != "xno"; then
43712 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43713 printf %s "checking for libcares options with pkg-config... " >&6; }
43715 if test -n "$ARES_PCDIR"; then
43716 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43717 export PKG_CONFIG_LIBDIR
43719 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43721 if test -z "$itexists"; then
43723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43724 printf "%s\n" "no" >&6; }
43726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43727 printf "%s\n" "found" >&6; }
43731 if test "$PKGCONFIG" != "no" ; then
43733 if test -n "$ARES_PCDIR"; then
43734 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43735 export PKG_CONFIG_LIBDIR
43738 $PKGCONFIG --libs-only-l libcares`
43740 if test -n "$ARES_PCDIR"; then
43741 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43742 export PKG_CONFIG_LIBDIR
43745 $PKGCONFIG --libs-only-L libcares`
43747 if test -n "$ARES_PCDIR"; then
43748 PKG_CONFIG_LIBDIR="$ARES_PCDIR"
43749 export PKG_CONFIG_LIBDIR
43752 $PKGCONFIG --cflags-only-I libcares`
43753 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LIBS: \"$ares_LIBS\"" >&5
43754 printf "%s\n" "$as_me: pkg-config: ares LIBS: \"$ares_LIBS\"" >&6;}
43755 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&5
43756 printf "%s\n" "$as_me: pkg-config: ares LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43757 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43758 printf "%s\n" "$as_me: pkg-config: ares CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43760 ares_CPPFLAGS="-I$want_ares_path/include"
43761 ares_LDFLAGS="-L$want_ares_path/lib"
43762 ares_LIBS="-lcares"
43766 if test -n "$PKG_CONFIG"; then
43767 PKGCONFIG="$PKG_CONFIG"
43769 if test -n "$ac_tool_prefix"; then
43770 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
43771 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
43772 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43773 printf %s "checking for $ac_word... " >&6; }
43774 if test ${ac_cv_path_PKGCONFIG+y}
43776 printf %s "(cached) " >&6
43780 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
43783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43784 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43785 for as_dir in $as_dummy
43788 case $as_dir in #(((
43791 *) as_dir=$as_dir/ ;;
43793 for ac_exec_ext in '' $ac_executable_extensions; do
43794 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43795 ac_cv_path_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43796 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43806 PKGCONFIG=$ac_cv_path_PKGCONFIG
43807 if test -n "$PKGCONFIG"; then
43808 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
43809 printf "%s\n" "$PKGCONFIG" >&6; }
43811 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43812 printf "%s\n" "no" >&6; }
43817 if test -z "$ac_cv_path_PKGCONFIG"; then
43818 ac_pt_PKGCONFIG=$PKGCONFIG
43819 # Extract the first word of "pkg-config", so it can be a program name with args.
43820 set dummy pkg-config; ac_word=$2
43821 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
43822 printf %s "checking for $ac_word... " >&6; }
43823 if test ${ac_cv_path_ac_pt_PKGCONFIG+y}
43825 printf %s "(cached) " >&6
43827 case $ac_pt_PKGCONFIG in
43829 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
43832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
43833 as_dummy="$PATH:/usr/bin:/usr/local/bin"
43834 for as_dir in $as_dummy
43837 case $as_dir in #(((
43840 *) as_dir=$as_dir/ ;;
43842 for ac_exec_ext in '' $ac_executable_extensions; do
43843 if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
43844 ac_cv_path_ac_pt_PKGCONFIG="$as_dir$ac_word$ac_exec_ext"
43845 printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
43855 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
43856 if test -n "$ac_pt_PKGCONFIG"; then
43857 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
43858 printf "%s\n" "$ac_pt_PKGCONFIG" >&6; }
43860 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43861 printf "%s\n" "no" >&6; }
43864 if test "x$ac_pt_PKGCONFIG" = x; then
43867 case $cross_compiling:$ac_tool_warned in
43869 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
43870 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
43871 ac_tool_warned=yes ;;
43873 PKGCONFIG=$ac_pt_PKGCONFIG
43876 PKGCONFIG="$ac_cv_path_PKGCONFIG"
43881 if test "x$PKGCONFIG" != "xno"; then
43882 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcares options with pkg-config" >&5
43883 printf %s "checking for libcares options with pkg-config... " >&6; }
43885 if test -n ""; then
43886 PKG_CONFIG_LIBDIR=""
43887 export PKG_CONFIG_LIBDIR
43889 $PKGCONFIG --exists libcares >/dev/null 2>&1 && echo 1`
43891 if test -z "$itexists"; then
43893 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43894 printf "%s\n" "no" >&6; }
43896 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: found" >&5
43897 printf "%s\n" "found" >&6; }
43901 if test "$PKGCONFIG" != "no" ; then
43902 ares_LIBS=`$PKGCONFIG --libs-only-l libcares`
43903 ares_LDFLAGS=`$PKGCONFIG --libs-only-L libcares`
43904 ares_CPPFLAGS=`$PKGCONFIG --cflags-only-I libcares`
43905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&5
43906 printf "%s\n" "$as_me: pkg-config: ares_LIBS: \"$ares_LIBS\"" >&6;}
43907 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&5
43908 printf "%s\n" "$as_me: pkg-config: ares_LDFLAGS: \"$ares_LDFLAGS\"" >&6;}
43909 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&5
43910 printf "%s\n" "$as_me: pkg-config: ares_CPPFLAGS: \"$ares_CPPFLAGS\"" >&6;}
43914 ares_LIBS="-lcares"
43918 CPPFLAGS="$clean_CPPFLAGS $ares_CPPFLAGS"
43919 LDFLAGS="$clean_LDFLAGS $ares_LDFLAGS"
43920 LIBS="$ares_LIBS $clean_LIBS"
43923 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
43924 printf %s "checking that c-ares is good and recent enough... " >&6; }
43925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
43926 /* end confdefs.h. */
43930 /* set of dummy functions in case c-ares was built with debug */
43931 void curl_dofree() { }
43932 void curl_sclose() { }
43933 void curl_domalloc() { }
43934 void curl_docalloc() { }
43935 void curl_socket() { }
43940 ares_channel channel;
43941 ares_cancel(channel); /* added in 1.2.0 */
43942 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
43943 ares_dup(&channel, channel); /* added in 1.6.0 */
43950 if ac_fn_c_try_link "$LINENO"
43953 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
43954 printf "%s\n" "yes" >&6; }
43958 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
43959 printf "%s\n" "no" >&6; }
43960 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
43961 CPPFLAGS="$clean_CPPFLAGS"
43962 LDFLAGS="$clean_LDFLAGS"
43968 rm -f core conftest.err conftest.$ac_objext conftest.beam \
43969 conftest$ac_exeext conftest.$ac_ext
43971 if test "$want_ares" = "yes"; then
43973 printf "%s\n" "#define USE_ARES 1" >>confdefs.h
43977 curl_res_msg="c-ares"
43982 if test "x$curl_cv_native_windows" != "xyes" &&
43983 test "x$enable_shared" = "xyes"; then
43984 build_libhostname=yes
43986 build_libhostname=no
43988 if test x$build_libhostname = xyes; then
43989 BUILD_LIBHOSTNAME_TRUE=
43990 BUILD_LIBHOSTNAME_FALSE='#'
43992 BUILD_LIBHOSTNAME_TRUE='#'
43993 BUILD_LIBHOSTNAME_FALSE=
43997 if test "x$want_ares" != xyes; then
43999 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
44000 printf %s "checking whether to enable the threaded resolver... " >&6; }
44001 OPT_THRES="default"
44002 # Check whether --enable-threaded_resolver was given.
44003 if test ${enable_threaded_resolver+y}
44005 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
44008 case "$OPT_THRES" in
44016 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
44017 printf "%s\n" "$want_thres" >&6; }
44021 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use POSIX threads for threaded resolver" >&5
44022 printf %s "checking whether to use POSIX threads for threaded resolver... " >&6; }
44023 # Check whether --enable-pthreads was given.
44024 if test ${enable_pthreads+y}
44026 enableval=$enable_pthreads; case "$enableval" in
44027 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44028 printf "%s\n" "no" >&6; }
44031 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44032 printf "%s\n" "yes" >&6; }
44038 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44039 printf "%s\n" "auto" >&6; }
44046 if test "$want_pthreads" != "no"; then
44047 if test "$want_pthreads" = "yes" && test "$dontwant_rt" = "yes"; then
44048 as_fn_error $? "options --enable-pthreads and --disable-rt are mutually exclusive" "$LINENO" 5
44050 if test "$dontwant_rt" != "no"; then
44051 if test "$want_pthreads" = "yes"; then
44052 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-pthreads Ignored since librt is disabled." >&5
44053 printf "%s\n" "$as_me: WARNING: --enable-pthreads Ignored since librt is disabled." >&2;}
44059 if test "$want_pthreads" != "no" && test "$want_thres" != "yes"; then
44063 if test "$want_pthreads" != "no"; then
44064 ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
44065 if test "x$ac_cv_header_pthread_h" = xyes
44068 printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h
44070 save_CFLAGS="$CFLAGS"
44074 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
44075 if test "x$ac_cv_func_pthread_create" = xyes
44077 USE_THREADS_POSIX=1
44084 USE_THREADS_POSIX=""
44090 if test "$USE_THREADS_POSIX" != "1"
44092 # assign PTHREAD for pkg-config use
44093 PTHREAD=" -pthread"
44097 COMPILER_VERSION=`"$CC" -qversion 2>/dev/null`
44098 if test x"$COMPILER_VERSION" = "x"; then
44099 CFLAGS="$CFLAGS -pthread"
44101 CFLAGS="$CFLAGS -qthreaded"
44105 PTHREAD=" -lpthread"
44108 CFLAGS="$CFLAGS -pthread"
44111 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
44112 printf %s "checking for pthread_create in -lpthread... " >&6; }
44113 if test ${ac_cv_lib_pthread_pthread_create+y}
44115 printf %s "(cached) " >&6
44117 ac_check_lib_save_LIBS=$LIBS
44118 LIBS="-lpthread $LIBS"
44119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
44120 /* end confdefs.h. */
44126 char pthread_create ();
44129 return pthread_create ();
44134 if ac_fn_c_try_link "$LINENO"
44136 ac_cv_lib_pthread_pthread_create=yes
44138 ac_cv_lib_pthread_pthread_create=no
44140 rm -f core conftest.err conftest.$ac_objext conftest.beam \
44141 conftest$ac_exeext conftest.$ac_ext
44142 LIBS=$ac_check_lib_save_LIBS
44144 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
44145 printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; }
44146 if test "x$ac_cv_lib_pthread_pthread_create" = xyes
44148 USE_THREADS_POSIX=1
44150 CFLAGS="$save_CFLAGS"
44155 if test "x$USE_THREADS_POSIX" = "x1"
44158 printf "%s\n" "#define USE_THREADS_POSIX 1" >>confdefs.h
44160 curl_res_msg="POSIX threaded"
44167 if test "$want_thres" = "yes" && test "x$USE_THREADS_POSIX" != "x1"; then
44168 if test "$want_pthreads" = "yes"; then
44169 as_fn_error $? "--enable-pthreads but pthreads was not found" "$LINENO" 5
44171 if test "$curl_cv_native_windows" = "yes"; then
44172 USE_THREADS_WIN32=1
44174 printf "%s\n" "#define USE_THREADS_WIN32 1" >>confdefs.h
44176 curl_res_msg="Win32 threaded"
44178 as_fn_error $? "Threaded resolver enabled but no thread library found" "$LINENO" 5
44183 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking convert -I options to -isystem" >&5
44184 printf %s "checking convert -I options to -isystem... " >&6; }
44185 if test "$compiler_id" = "GNU_C" ||
44186 test "$compiler_id" = "CLANG"; then
44187 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44188 printf "%s\n" "yes" >&6; }
44189 tmp_has_include="no"
44190 tmp_chg_FLAGS="$CFLAGS"
44191 for word1 in $tmp_chg_FLAGS; do
44194 tmp_has_include="yes"
44198 if test "$tmp_has_include" = "yes"; then
44199 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44200 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44201 CFLAGS="$tmp_chg_FLAGS"
44204 tmp_has_include="no"
44205 tmp_chg_FLAGS="$CPPFLAGS"
44206 for word1 in $tmp_chg_FLAGS; do
44209 tmp_has_include="yes"
44213 if test "$tmp_has_include" = "yes"; then
44214 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
44215 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
44216 CPPFLAGS="$tmp_chg_FLAGS"
44220 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44221 printf "%s\n" "no" >&6; }
44225 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
44226 printf %s "checking whether to enable verbose strings... " >&6; }
44227 # Check whether --enable-verbose was given.
44228 if test ${enable_verbose+y}
44230 enableval=$enable_verbose; case "$enableval" in
44232 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44233 printf "%s\n" "no" >&6; }
44235 printf "%s\n" "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
44237 curl_verbose_msg="no"
44239 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44240 printf "%s\n" "yes" >&6; }
44244 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44245 printf "%s\n" "yes" >&6; }
44250 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
44251 printf %s "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
44252 # Check whether --enable-sspi was given.
44253 if test ${enable_sspi+y}
44255 enableval=$enable_sspi; case "$enableval" in
44257 if test "$curl_cv_native_windows" = "yes"; then
44258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44259 printf "%s\n" "yes" >&6; }
44261 printf "%s\n" "#define USE_WINDOWS_SSPI 1" >>confdefs.h
44265 curl_sspi_msg="enabled"
44267 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44268 printf "%s\n" "no" >&6; }
44269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
44270 printf "%s\n" "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
44274 if test "x$SCHANNEL_ENABLED" = "x1"; then
44275 # --with-schannel implies --enable-sspi
44276 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44277 printf "%s\n" "yes" >&6; }
44279 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44280 printf "%s\n" "no" >&6; }
44285 if test "x$SCHANNEL_ENABLED" = "x1"; then
44286 # --with-schannel implies --enable-sspi
44287 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44288 printf "%s\n" "yes" >&6; }
44290 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44291 printf "%s\n" "no" >&6; }
44297 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
44298 printf %s "checking whether to enable cryptographic authentication methods... " >&6; }
44299 # Check whether --enable-crypto-auth was given.
44300 if test ${enable_crypto_auth+y}
44302 enableval=$enable_crypto_auth; case "$enableval" in
44304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44305 printf "%s\n" "no" >&6; }
44307 printf "%s\n" "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
44309 CURL_DISABLE_CRYPTO_AUTH=1
44311 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44312 printf "%s\n" "yes" >&6; }
44316 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44317 printf "%s\n" "yes" >&6; }
44322 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support NTLM" >&5
44323 printf %s "checking whether to support NTLM... " >&6; }
44324 # Check whether --enable-ntlm was given.
44325 if test ${enable_ntlm+y}
44327 enableval=$enable_ntlm; case "$enableval" in
44329 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44330 printf "%s\n" "no" >&6; }
44332 printf "%s\n" "#define CURL_DISABLE_NTLM 1" >>confdefs.h
44334 CURL_DISABLE_NTLM=1
44336 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44337 printf "%s\n" "yes" >&6; }
44341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44342 printf "%s\n" "yes" >&6; }
44348 OPT_NTLM_WB="default"
44349 # Check whether --enable-ntlm-wb was given.
44350 if test ${enable_ntlm_wb+y}
44352 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
44355 want_ntlm_wb_file="/usr/bin/ntlm_auth"
44356 case "$OPT_NTLM_WB" in
44365 if test -n "$enableval" && test "$enableval" != "yes"; then
44366 want_ntlm_wb_file="$enableval"
44373 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
44374 printf %s "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
44375 if test "$curl_cv_native_windows" = "yes" ||
44376 test "x$SSL_ENABLED" = "x"; then
44377 want_ntlm_wb_file=""
44380 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
44381 printf "%s\n" "$want_ntlm_wb" >&6; }
44382 if test "$want_ntlm_wb" = "yes"; then
44384 printf "%s\n" "#define NTLM_WB_ENABLED 1" >>confdefs.h
44387 printf "%s\n" "#define NTLM_WB_FILE \"$want_ntlm_wb_file\"" >>confdefs.h
44393 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
44394 printf %s "checking whether to enable TLS-SRP authentication... " >&6; }
44395 # Check whether --enable-tls-srp was given.
44396 if test ${enable_tls_srp+y}
44398 enableval=$enable_tls_srp; case "$enableval" in
44400 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44401 printf "%s\n" "no" >&6; }
44404 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44405 printf "%s\n" "yes" >&6; }
44410 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44411 printf "%s\n" "yes" >&6; }
44417 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_OPENSSL_SRP" = "x1") ; then
44419 printf "%s\n" "#define USE_TLS_SRP 1" >>confdefs.h
44422 curl_tls_srp_msg="enabled"
44425 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
44426 printf %s "checking whether to enable Unix domain sockets... " >&6; }
44427 # Check whether --enable-unix-sockets was given.
44428 if test ${enable_unix_sockets+y}
44430 enableval=$enable_unix_sockets; case "$enableval" in
44431 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44432 printf "%s\n" "no" >&6; }
44433 want_unix_sockets=no
44435 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44436 printf "%s\n" "yes" >&6; }
44437 want_unix_sockets=yes
44442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: auto" >&5
44443 printf "%s\n" "auto" >&6; }
44444 want_unix_sockets=auto
44449 if test "x$want_unix_sockets" != "xno"; then
44450 if test "x$curl_cv_native_windows" = "xyes"; then
44453 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44455 curl_unix_sockets_msg="enabled"
44457 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
44458 #include <sys/un.h>
44461 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes
44465 printf "%s\n" "#define USE_UNIX_SOCKETS 1" >>confdefs.h
44469 curl_unix_sockets_msg="enabled"
44473 if test "x$want_unix_sockets" = "xyes"; then
44474 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
44482 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support cookies" >&5
44483 printf %s "checking whether to support cookies... " >&6; }
44484 # Check whether --enable-cookies was given.
44485 if test ${enable_cookies+y}
44487 enableval=$enable_cookies; case "$enableval" in
44489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44490 printf "%s\n" "no" >&6; }
44492 printf "%s\n" "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
44495 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44496 printf "%s\n" "yes" >&6; }
44500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44501 printf "%s\n" "yes" >&6; }
44506 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support socketpair" >&5
44507 printf %s "checking whether to support socketpair... " >&6; }
44508 # Check whether --enable-socketpair was given.
44509 if test ${enable_socketpair+y}
44511 enableval=$enable_socketpair; case "$enableval" in
44513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44514 printf "%s\n" "no" >&6; }
44516 printf "%s\n" "#define CURL_DISABLE_SOCKETPAIR 1" >>confdefs.h
44519 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44520 printf "%s\n" "yes" >&6; }
44524 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44525 printf "%s\n" "yes" >&6; }
44530 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HTTP authentication" >&5
44531 printf %s "checking whether to support HTTP authentication... " >&6; }
44532 # Check whether --enable-http-auth was given.
44533 if test ${enable_http_auth+y}
44535 enableval=$enable_http_auth; case "$enableval" in
44537 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44538 printf "%s\n" "no" >&6; }
44540 printf "%s\n" "#define CURL_DISABLE_HTTP_AUTH 1" >>confdefs.h
44543 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44544 printf "%s\n" "yes" >&6; }
44548 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44549 printf "%s\n" "yes" >&6; }
44554 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DoH" >&5
44555 printf %s "checking whether to support DoH... " >&6; }
44556 # Check whether --enable-doh was given.
44557 if test ${enable_doh+y}
44559 enableval=$enable_doh; case "$enableval" in
44561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44562 printf "%s\n" "no" >&6; }
44564 printf "%s\n" "#define CURL_DISABLE_DOH 1" >>confdefs.h
44567 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44568 printf "%s\n" "yes" >&6; }
44572 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44573 printf "%s\n" "yes" >&6; }
44578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support the MIME API" >&5
44579 printf %s "checking whether to support the MIME API... " >&6; }
44580 # Check whether --enable-mime was given.
44581 if test ${enable_mime+y}
44583 enableval=$enable_mime; case "$enableval" in
44585 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44586 printf "%s\n" "no" >&6; }
44588 printf "%s\n" "#define CURL_DISABLE_MIME 1" >>confdefs.h
44591 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44592 printf "%s\n" "yes" >&6; }
44596 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44597 printf "%s\n" "yes" >&6; }
44602 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support date parsing" >&5
44603 printf %s "checking whether to support date parsing... " >&6; }
44604 # Check whether --enable-dateparse was given.
44605 if test ${enable_dateparse+y}
44607 enableval=$enable_dateparse; case "$enableval" in
44609 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44610 printf "%s\n" "no" >&6; }
44612 printf "%s\n" "#define CURL_DISABLE_PARSEDATE 1" >>confdefs.h
44615 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44616 printf "%s\n" "yes" >&6; }
44620 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44621 printf "%s\n" "yes" >&6; }
44626 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support netrc parsing" >&5
44627 printf %s "checking whether to support netrc parsing... " >&6; }
44628 # Check whether --enable-netrc was given.
44629 if test ${enable_netrc+y}
44631 enableval=$enable_netrc; case "$enableval" in
44633 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44634 printf "%s\n" "no" >&6; }
44636 printf "%s\n" "#define CURL_DISABLE_NETRC 1" >>confdefs.h
44639 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44640 printf "%s\n" "yes" >&6; }
44644 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44645 printf "%s\n" "yes" >&6; }
44650 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support progress-meter" >&5
44651 printf %s "checking whether to support progress-meter... " >&6; }
44652 # Check whether --enable-progress-meter was given.
44653 if test ${enable_progress_meter+y}
44655 enableval=$enable_progress_meter; case "$enableval" in
44657 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44658 printf "%s\n" "no" >&6; }
44660 printf "%s\n" "#define CURL_DISABLE_PROGRESS_METER 1" >>confdefs.h
44663 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44664 printf "%s\n" "yes" >&6; }
44668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44669 printf "%s\n" "yes" >&6; }
44674 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support DNS shuffling" >&5
44675 printf %s "checking whether to support DNS shuffling... " >&6; }
44676 # Check whether --enable-dnsshuffle was given.
44677 if test ${enable_dnsshuffle+y}
44679 enableval=$enable_dnsshuffle; case "$enableval" in
44681 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44682 printf "%s\n" "no" >&6; }
44684 printf "%s\n" "#define CURL_DISABLE_SHUFFLE_DNS 1" >>confdefs.h
44687 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44688 printf "%s\n" "yes" >&6; }
44692 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44693 printf "%s\n" "yes" >&6; }
44698 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support curl_easy_option*" >&5
44699 printf %s "checking whether to support curl_easy_option*... " >&6; }
44700 # Check whether --enable-get-easy-options was given.
44701 if test ${enable_get_easy_options+y}
44703 enableval=$enable_get_easy_options; case "$enableval" in
44705 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44706 printf "%s\n" "no" >&6; }
44708 printf "%s\n" "#define CURL_DISABLE_GETOPTIONS 1" >>confdefs.h
44711 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44712 printf "%s\n" "yes" >&6; }
44716 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44717 printf "%s\n" "yes" >&6; }
44722 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support alt-svc" >&5
44723 printf %s "checking whether to support alt-svc... " >&6; }
44724 # Check whether --enable-alt-svc was given.
44725 if test ${enable_alt_svc+y}
44727 enableval=$enable_alt_svc; case "$enableval" in
44729 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44730 printf "%s\n" "no" >&6; }
44732 printf "%s\n" "#define CURL_DISABLE_ALTSVC 1" >>confdefs.h
44734 curl_altsvc_msg="no";
44737 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44738 printf "%s\n" "yes" >&6; }
44742 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44743 printf "%s\n" "yes" >&6; }
44748 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support headers-api" >&5
44749 printf %s "checking whether to support headers-api... " >&6; }
44750 # Check whether --enable-headers-api was given.
44751 if test ${enable_headers_api+y}
44753 enableval=$enable_headers_api; case "$enableval" in
44754 no) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44755 printf "%s\n" "no" >&6; }
44756 curl_headers_msg="no (--enable-headers-api)"
44758 printf "%s\n" "#define CURL_DISABLE_HEADERS_API 1" >>confdefs.h
44762 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44763 printf "%s\n" "yes" >&6; }
44767 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44768 printf "%s\n" "yes" >&6; }
44773 if test -n "$SSL_ENABLED"; then
44775 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support HSTS" >&5
44776 printf %s "checking whether to support HSTS... " >&6; }
44777 # Check whether --enable-hsts was given.
44778 if test ${enable_hsts+y}
44780 enableval=$enable_hsts; case "$enableval" in
44782 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44783 printf "%s\n" "no" >&6; }
44786 *) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44787 printf "%s\n" "yes" >&6; }
44791 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hsts" >&5
44792 printf "%s\n" "$hsts" >&6; }
44797 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: disables HSTS due to lack of SSL" >&5
44798 printf "%s\n" "$as_me: disables HSTS due to lack of SSL" >&6;}
44802 if test "x$hsts" != "xyes"; then
44803 curl_hsts_msg="no (--enable-hsts)";
44805 printf "%s\n" "#define CURL_DISABLE_HSTS 1" >>confdefs.h
44809 if test "x$want_ech" != "xno"; then
44810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ECH support is available" >&5
44811 printf %s "checking whether ECH support is available... " >&6; }
44816 if test "x$OPENSSL_ENABLED" = "x1"; then
44818 for ac_func in SSL_get_ech_status
44820 ac_fn_c_check_func "$LINENO" "SSL_get_ech_status" "ac_cv_func_SSL_get_ech_status"
44821 if test "x$ac_cv_func_SSL_get_ech_status" = xyes
44823 printf "%s\n" "#define HAVE_SSL_GET_ECH_STATUS 1" >>confdefs.h
44824 ECH_SUPPORT="ECH support available (OpenSSL with SSL_get_ech_status)"
44832 if test "x$ECH_ENABLED" = "x1"; then
44834 printf "%s\n" "#define USE_ECH 1" >>confdefs.h
44836 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ECH_SUPPORT" >&5
44837 printf "%s\n" "$ECH_SUPPORT" >&6; }
44838 experimental="$experimental ECH"
44840 as_fn_error $? "--enable-ech ignored: No ECH support found" "$LINENO" 5
44844 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to support WebSockets" >&5
44845 printf %s "checking whether to support WebSockets... " >&6; }
44846 # Check whether --enable-websockets was given.
44847 if test ${enable_websockets+y}
44849 enableval=$enable_websockets; case "$enableval" in
44851 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44852 printf "%s\n" "no" >&6; }
44855 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
44856 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44857 printf "%s\n" "yes" >&6; }
44858 curl_ws_msg="enabled"
44860 printf "%s\n" "#define USE_WEBSOCKETS 1" >>confdefs.h
44862 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WS"
44863 if test "x$SSL_ENABLED" = "x1"; then
44864 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS WSS"
44866 experimental="$experimental Websockets"
44868 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44869 printf "%s\n" "no" >&6; }
44870 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&5
44871 printf "%s\n" "$as_me: WARNING: Websockets disabled due to lack of >32 bit curl_off_t" >&2;}
44876 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44877 printf "%s\n" "no" >&6; }
44884 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
44885 printf %s "checking whether hiding of library internal symbols will actually happen... " >&6; }
44886 CFLAG_CURL_SYMBOL_HIDING=""
44887 doing_symbol_hiding="no"
44888 if test "$want_symbol_hiding" = "yes" &&
44889 test "$supports_symbol_hiding" = "yes"; then
44890 doing_symbol_hiding="yes"
44891 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
44893 printf "%s\n" "#define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN" >>confdefs.h
44895 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
44896 printf "%s\n" "yes" >&6; }
44898 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
44899 printf "%s\n" "no" >&6; }
44901 if test x$doing_symbol_hiding = xyes; then
44902 DOING_CURL_SYMBOL_HIDING_TRUE=
44903 DOING_CURL_SYMBOL_HIDING_FALSE='#'
44905 DOING_CURL_SYMBOL_HIDING_TRUE='#'
44906 DOING_CURL_SYMBOL_HIDING_FALSE=
44912 LIBCURL_LIBS="$LIBS$PTHREAD"
44921 if test x$cross_compiling = xyes; then
44922 CROSSCOMPILING_TRUE=
44923 CROSSCOMPILING_FALSE='#'
44925 CROSSCOMPILING_TRUE='#'
44926 CROSSCOMPILING_FALSE=
44930 ENABLE_SHARED="$enable_shared"
44933 ENABLE_STATIC="$enable_static"
44936 if test "x$enable_shared" = "xno"; then
44937 LIBCURL_NO_SHARED=$LIBCURL_LIBS
44944 if test "x$OPENSSL_ENABLED" = "x1"; then
44945 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44946 elif test -n "$SSL_ENABLED"; then
44947 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
44949 if test "x$IPV6_ENABLED" = "x1"; then
44950 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
44952 if test "x$USE_UNIX_SOCKETS" = "x1"; then
44953 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
44955 if test "x$HAVE_LIBZ" = "x1"; then
44956 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
44958 if test "x$HAVE_BROTLI" = "x1"; then
44959 SUPPORT_FEATURES="$SUPPORT_FEATURES brotli"
44961 if test "x$HAVE_ZSTD" = "x1"; then
44962 SUPPORT_FEATURES="$SUPPORT_FEATURES zstd"
44964 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1" \
44965 -o "x$USE_THREADS_WIN32" = "x1"; then
44966 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
44968 if test "x$IDN_ENABLED" = "x1"; then
44969 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
44971 if test "x$USE_WINDOWS_SSPI" = "x1"; then
44972 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
44975 if test "x$HAVE_GSSAPI" = "x1"; then
44976 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
44979 if test "x$curl_psl_msg" = "xenabled"; then
44980 SUPPORT_FEATURES="$SUPPORT_FEATURES PSL"
44983 if test "x$curl_gsasl_msg" = "xenabled"; then
44984 SUPPORT_FEATURES="$SUPPORT_FEATURES GSASL"
44987 if test "x$enable_altsvc" = "xyes"; then
44988 SUPPORT_FEATURES="$SUPPORT_FEATURES alt-svc"
44990 if test "x$hsts" = "xyes"; then
44991 SUPPORT_FEATURES="$SUPPORT_FEATURES HSTS"
44994 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
44995 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
44996 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
44999 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45000 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
45001 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
45004 use_curl_ntlm_core=no
45006 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
45007 "x$CURL_DISABLE_NTLM" != "x1"; then
45008 if test "x$OPENSSL_ENABLED" = "x1" -o "x$MBEDTLS_ENABLED" = "x1" \
45009 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
45010 -o "x$SECURETRANSPORT_ENABLED" = "x1" \
45011 -o "x$USE_WIN32_CRYPTO" = "x1" \
45012 -o "x$WOLFSSL_NTLM" = "x1"; then
45013 use_curl_ntlm_core=yes
45016 if test "x$use_curl_ntlm_core" = "xyes" \
45017 -o "x$USE_WINDOWS_SSPI" = "x1"; then
45018 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
45020 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
45021 "x$NTLM_WB_ENABLED" = "x1"; then
45022 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
45027 if test "x$USE_TLS_SRP" = "x1"; then
45028 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
45031 if test "x$USE_NGHTTP2" = "x1" -o "x$USE_HYPER" = "x1"; then
45032 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
45035 if test "x$USE_NGTCP2" = "x1" -o "x$USE_QUICHE" = "x1" \
45036 -o "x$USE_MSH3" = "x1"; then
45037 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP3"
45040 if test "x$CURL_WITH_MULTI_SSL" = "x1"; then
45041 SUPPORT_FEATURES="$SUPPORT_FEATURES MultiSSL"
45044 if test "x$https_proxy" != "xno"; then
45045 if test "x$OPENSSL_ENABLED" = "x1" -o "x$GNUTLS_ENABLED" = "x1" \
45046 -o "x$NSS_ENABLED" = "x1"; then
45047 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTPS-proxy"
45051 if test "x$ECH_ENABLED" = "x1"; then
45052 SUPPORT_FEATURES="$SUPPORT_FEATURES ECH"
45055 if test ${ac_cv_sizeof_curl_off_t} -gt 4; then
45056 if test ${ac_cv_sizeof_off_t} -gt 4 -o \
45057 "$curl_win32_file_api" = "win32_large_files"; then
45058 SUPPORT_FEATURES="$SUPPORT_FEATURES Largefile"
45062 if test "$tst_atomic" = "yes"; then
45063 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
45066 /* end confdefs.h. */
45069 #include <windows.h>
45074 #if (WINVER < 0x600) && (_WIN32_WINNT < 0x600)
45083 if ac_fn_c_try_compile "$LINENO"
45086 SUPPORT_FEATURES="$SUPPORT_FEATURES threadsafe"
45089 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
45092 SUPPORT_FEATURES=`echo $SUPPORT_FEATURES | tr ' ' '\012' | sort | tr '\012' ' '`
45095 if test "x$CURL_DISABLE_HTTP" != "x1"; then
45096 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
45097 if test "x$SSL_ENABLED" = "x1"; then
45098 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
45101 if test "x$CURL_DISABLE_FTP" != "x1"; then
45102 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
45103 if test "x$SSL_ENABLED" = "x1"; then
45104 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
45107 if test "x$CURL_DISABLE_FILE" != "x1"; then
45108 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
45110 if test "x$CURL_DISABLE_TELNET" != "x1"; then
45111 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
45113 if test "x$CURL_DISABLE_LDAP" != "x1"; then
45114 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
45115 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
45116 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
45117 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
45118 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
45122 if test "x$CURL_DISABLE_DICT" != "x1"; then
45123 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
45125 if test "x$CURL_DISABLE_TFTP" != "x1"; then
45126 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
45128 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
45129 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
45130 if test "x$SSL_ENABLED" = "x1"; then
45131 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHERS"
45134 if test "x$CURL_DISABLE_MQTT" != "x1"; then
45135 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS MQTT"
45137 if test "x$CURL_DISABLE_POP3" != "x1"; then
45138 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
45139 if test "x$SSL_ENABLED" = "x1"; then
45140 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
45143 if test "x$CURL_DISABLE_IMAP" != "x1"; then
45144 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
45145 if test "x$SSL_ENABLED" = "x1"; then
45146 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
45149 if test "x$CURL_DISABLE_SMB" != "x1" \
45150 -a "x$use_curl_ntlm_core" = "xyes"; then
45151 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
45152 if test "x$SSL_ENABLED" = "x1"; then
45153 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
45156 if test "x$CURL_DISABLE_SMTP" != "x1"; then
45157 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
45158 if test "x$SSL_ENABLED" = "x1"; then
45159 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
45162 if test "x$USE_LIBSSH2" = "x1"; then
45163 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45164 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45166 if test "x$USE_LIBSSH" = "x1"; then
45167 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
45168 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45170 if test "x$USE_WOLFSSH" = "x1"; then
45171 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
45173 if test "x$CURL_DISABLE_RTSP" != "x1"; then
45174 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
45176 if test "x$USE_LIBRTMP" = "x1"; then
45177 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
45180 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
45191 squeeze LIBCURL_LIBS
45192 squeeze CURL_NETWORK_LIBS
45193 squeeze CURL_NETWORK_AND_TIME_LIBS
45195 squeeze SUPPORT_FEATURES
45196 squeeze SUPPORT_PROTOCOLS
45201 for xc_word in $LIBS; do
45207 xc_bad_var_libs=yes
45211 if test $xc_bad_var_libs = yes; then
45212 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
45213 printf "%s\n" "$as_me: using LIBS: $LIBS" >&6;}
45214 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
45215 printf "%s\n" "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
45219 xc_bad_var_ldflags=no
45220 for xc_word in $LDFLAGS; do
45223 xc_bad_var_ldflags=yes
45226 xc_bad_var_ldflags=yes
45229 xc_bad_var_ldflags=yes
45232 xc_bad_var_ldflags=yes
45236 if test $xc_bad_var_ldflags = yes; then
45237 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
45238 printf "%s\n" "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
45239 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
45240 for xc_word in $LDFLAGS; do
45243 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45244 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45247 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45248 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45251 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45252 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45255 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45256 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45263 xc_bad_var_cppflags=no
45264 for xc_word in $CPPFLAGS; do
45267 xc_bad_var_cppflags=yes
45269 -L* | --library-path=*)
45270 xc_bad_var_cppflags=yes
45273 xc_bad_var_cppflags=yes
45277 if test $xc_bad_var_cppflags = yes; then
45278 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
45279 printf "%s\n" "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
45280 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
45281 for xc_word in $CPPFLAGS; do
45284 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45285 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45287 -L* | --library-path=*)
45288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45289 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45292 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45293 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45300 xc_bad_var_cflags=no
45301 for xc_word in $CFLAGS; do
45304 xc_bad_var_cflags=yes
45307 xc_bad_var_cflags=yes
45310 xc_bad_var_cflags=yes
45313 xc_bad_var_cflags=yes
45315 -L* | --library-path=*)
45316 xc_bad_var_cflags=yes
45319 xc_bad_var_cflags=yes
45323 if test $xc_bad_var_cflags = yes; then
45324 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
45325 printf "%s\n" "$as_me: using CFLAGS: $CFLAGS" >&6;}
45326 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
45327 for xc_word in $CFLAGS; do
45330 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
45331 printf "%s\n" "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
45334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
45335 printf "%s\n" "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
45338 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
45339 printf "%s\n" "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
45342 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
45343 printf "%s\n" "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
45345 -L* | --library-path=*)
45346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
45347 printf "%s\n" "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
45350 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
45351 printf "%s\n" "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
45357 if test $xc_bad_var_libs = yes ||
45358 test $xc_bad_var_cflags = yes ||
45359 test $xc_bad_var_ldflags = yes ||
45360 test $xc_bad_var_cppflags = yes; then
45361 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
45362 printf "%s\n" "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
45366 SSL_BACKENDS=${ssl_backends}
45369 if test "x$want_curldebug_assumed" = "xyes" &&
45370 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
45371 ac_configure_args="$ac_configure_args --enable-curldebug"
45374 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 lib/libcurl.plist tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/vms/Makefile curl-config libcurl.pc"
45376 cat >confcache <<\_ACEOF
45377 # This file is a shell script that caches the results of configure
45378 # tests run on this system so they can be shared between configure
45379 # scripts and configure runs, see configure's option --config-cache.
45380 # It is not useful on other systems. If it contains results you don't
45381 # want to keep, you may remove or edit it.
45383 # config.status only pays attention to the cache file if you give it
45384 # the --recheck option to rerun configure.
45386 # `ac_cv_env_foo' variables (set or unset) will be overridden when
45387 # loading this file, other *unset* `ac_cv_foo' will be assigned the
45388 # following values.
45392 # The following way of writing the cache mishandles newlines in values,
45393 # but we know of no workaround that is simple, portable, and efficient.
45394 # So, we kill variables containing newlines.
45395 # Ultrix sh set writes to stderr and can't be redirected directly,
45396 # and sets the high bit in the cache file unless we assign to the vars.
45398 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
45399 eval ac_val=\$$ac_var
45403 *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
45404 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
45407 _ | IFS | as_nl) ;; #(
45408 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
45409 *) { eval $ac_var=; unset $ac_var;} ;;
45415 case $as_nl`(ac_space=' '; set) 2>&1` in #(
45416 *${as_nl}ac_space=\ *)
45417 # `set' does not quote correctly, so add quotes: double-quote
45418 # substitution turns \\\\ into \\, and sed turns \\ into \.
45421 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
45424 # `set' quotes correctly as required by POSIX, so do not add quotes.
45425 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
45434 s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
45436 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
45438 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
45439 if test -w "$cache_file"; then
45440 if test "x$cache_file" != "x/dev/null"; then
45441 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
45442 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
45443 if test ! -f "$cache_file" || test -h "$cache_file"; then
45444 cat confcache >"$cache_file"
45446 case $cache_file in #(
45448 mv -f confcache "$cache_file"$$ &&
45449 mv -f "$cache_file"$$ "$cache_file" ;; #(
45451 mv -f confcache "$cache_file" ;;
45456 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
45457 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
45462 test "x$prefix" = xNONE && prefix=$ac_default_prefix
45463 # Let make expand exec_prefix.
45464 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
45466 DEFS=-DHAVE_CONFIG_H
45471 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
45472 # 1. Remove the extension, and $U if already installed.
45473 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
45474 ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
45475 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
45476 # will be set to the directory where LIBOBJS objects are built.
45477 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
45478 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
45480 LIBOBJS=$ac_libobjs
45482 LTLIBOBJS=$ac_ltlibobjs
45485 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
45486 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
45487 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45489 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
45490 printf %s "checking that generated files are newer than configure... " >&6; }
45491 if test -n "$am_sleep_pid"; then
45492 # Hide warnings about reused PIDs.
45493 wait $am_sleep_pid 2>/dev/null
45495 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: done" >&5
45496 printf "%s\n" "done" >&6; }
45497 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
45498 as_fn_error $? "conditional \"AMDEP\" was never defined.
45499 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45501 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
45502 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
45503 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45505 if test -n "$EXEEXT"; then
45507 am__EXEEXT_FALSE='#'
45509 am__EXEEXT_TRUE='#'
45513 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
45514 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
45515 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45517 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
45518 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
45519 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45521 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
45522 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
45523 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45525 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
45526 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
45527 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45529 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
45530 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
45531 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45533 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
45534 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
45535 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45537 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
45538 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
45539 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45541 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
45542 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
45543 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45545 if test -z "${OS_WINDOWS_TRUE}" && test -z "${OS_WINDOWS_FALSE}"; then
45546 as_fn_error $? "conditional \"OS_WINDOWS\" was never defined.
45547 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45549 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
45550 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
45551 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45553 if test -z "${BUILD_STUB_GSS_TRUE}" && test -z "${BUILD_STUB_GSS_FALSE}"; then
45554 as_fn_error $? "conditional \"BUILD_STUB_GSS\" was never defined.
45555 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45557 if test -z "${USE_LIBPSL_TRUE}" && test -z "${USE_LIBPSL_FALSE}"; then
45558 as_fn_error $? "conditional \"USE_LIBPSL\" was never defined.
45559 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45561 if test -z "${USE_GSASL_TRUE}" && test -z "${USE_GSASL_FALSE}"; then
45562 as_fn_error $? "conditional \"USE_GSASL\" was never defined.
45563 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45565 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
45566 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
45567 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45569 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
45570 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
45571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45573 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
45574 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
45575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45577 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
45578 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
45579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45581 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
45582 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
45583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
45586 : "${CONFIG_STATUS=./config.status}"
45588 ac_clean_files_save=$ac_clean_files
45589 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
45590 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
45591 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
45593 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
45595 # Generated by $as_me.
45596 # Run this file to recreate the current configuration.
45597 # Compiler output produced by configure, useful for debugging
45598 # configure, is in config.log if it exists.
45601 ac_cs_recheck=false
45604 SHELL=\${CONFIG_SHELL-$SHELL}
45607 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
45608 ## -------------------- ##
45609 ## M4sh Initialization. ##
45610 ## -------------------- ##
45612 # Be more Bourne compatible
45613 DUALCASE=1; export DUALCASE # for MKS sh
45615 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
45619 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
45620 # is contrary to our usage. Disable this feature.
45621 alias -g '${1+"$@"}'='"$@"'
45622 setopt NO_GLOB_SUBST
45624 case `(set -o) 2>/dev/null` in #(
45634 # Reset variables that may have inherited troublesome values from
45637 # IFS needs to be set, to space, tab, and newline, in precisely that order.
45638 # (If _AS_PATH_WALK were called with IFS unset, it would have the
45639 # side effect of setting IFS to empty, thus disabling word splitting.)
45640 # Quoting is to prevent editors from complaining about space-tab.
45650 # Ensure predictable behavior from utilities with locale-dependent output.
45656 # We cannot yet rely on "unset" to work, but we need these variables
45657 # to be unset--not just set to an empty or harmless value--now, to
45658 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh). This construct
45659 # also avoids known problems related to "unset" and subshell syntax
45660 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
45661 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
45662 do eval test \${$as_var+y} \
45663 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
45666 # Ensure that fds 0, 1, and 2 are open.
45667 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
45668 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
45669 if (exec 3>&2) ; then :; else exec 2>/dev/null; fi
45673 # Find who we are. Look in the path if we contain no directory separator.
45676 *[\\/]* ) as_myself=$0 ;;
45677 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
45678 for as_dir in $PATH
45681 case $as_dir in #(((
45684 *) as_dir=$as_dir/ ;;
45686 test -r "$as_dir$0" && as_myself=$as_dir$0 && break
45692 # We did not find ourselves, most probably we were run as `sh COMMAND'
45693 # in which case we are not to be found in the path.
45694 if test "x$as_myself" = x; then
45697 if test ! -f "$as_myself"; then
45698 printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
45704 # as_fn_error STATUS ERROR [LINENO LOG_FD]
45705 # ----------------------------------------
45706 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
45707 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
45708 # script with STATUS, using 1 if that was 0.
45711 as_status=$1; test $as_status -eq 0 && as_status=1
45713 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
45714 printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
45716 printf "%s\n" "$as_me: error: $2" >&2
45717 as_fn_exit $as_status
45722 # as_fn_set_status STATUS
45723 # -----------------------
45724 # Set $? to STATUS, without forking.
45725 as_fn_set_status ()
45728 } # as_fn_set_status
45730 # as_fn_exit STATUS
45731 # -----------------
45732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
45736 as_fn_set_status $1
45742 # Portably unset VAR.
45745 { eval $1=; unset $1;}
45747 as_unset=as_fn_unset
45749 # as_fn_append VAR VALUE
45750 # ----------------------
45751 # Append the text in VALUE to the end of the definition contained in VAR. Take
45752 # advantage of any shell optimizations that allow amortized linear growth over
45753 # repeated appends, instead of the typical quadratic growth present in naive
45755 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
45757 eval 'as_fn_append ()
45768 # as_fn_arith ARG...
45769 # ------------------
45770 # Perform arithmetic evaluation on the ARGs, and store the result in the
45771 # global $as_val. Take advantage of shells that can avoid forks. The arguments
45772 # must be portable across $(()) and expr.
45773 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
45775 eval 'as_fn_arith ()
45782 as_val=`expr "$@" || test $? -eq 1`
45787 if expr a : '\(a\)' >/dev/null 2>&1 &&
45788 test "X`expr 00001 : '.*\(...\)'`" = X001; then
45794 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
45795 as_basename=basename
45800 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
45806 as_me=`$as_basename -- "$0" ||
45807 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
45808 X"$0" : 'X\(//\)$' \| \
45809 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
45810 printf "%s\n" X/"$0" |
45811 sed '/^.*\/\([^/][^/]*\)\/*$/{
45825 # Avoid depending upon Character Ranges.
45826 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
45827 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
45828 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
45829 as_cr_digits='0123456789'
45830 as_cr_alnum=$as_cr_Letters$as_cr_digits
45833 # Determine whether it's possible to make 'echo' print without a newline.
45834 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
45835 # for compatibility with existing Makefiles.
45836 ECHO_C= ECHO_N= ECHO_T=
45837 case `echo -n x` in #(((((
45839 case `echo 'xy\c'` in
45840 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
45842 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
45849 # For backward compatibility with old third-party macros, we provide
45850 # the shell variables $as_echo and $as_echo_n. New code should use
45851 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
45852 as_echo='printf %s\n'
45853 as_echo_n='printf %s'
45855 rm -f conf$$ conf$$.exe conf$$.file
45856 if test -d conf$$.dir; then
45857 rm -f conf$$.dir/conf$$.file
45860 mkdir conf$$.dir 2>/dev/null
45862 if (echo >conf$$.file) 2>/dev/null; then
45863 if ln -s conf$$.file conf$$ 2>/dev/null; then
45865 # ... but there are two gotchas:
45866 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
45867 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
45868 # In both cases, we have to default to `cp -pR'.
45869 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
45871 elif ln conf$$.file conf$$ 2>/dev/null; then
45879 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
45880 rmdir conf$$.dir 2>/dev/null
45885 # Create "$as_dir" as a directory, including parents if necessary.
45890 -*) as_dir=./$as_dir;;
45892 test -d "$as_dir" || eval $as_mkdir_p || {
45896 *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
45897 *) as_qdir=$as_dir;;
45899 as_dirs="'$as_qdir' $as_dirs"
45900 as_dir=`$as_dirname -- "$as_dir" ||
45901 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
45902 X"$as_dir" : 'X\(//\)[^/]' \| \
45903 X"$as_dir" : 'X\(//\)$' \| \
45904 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
45905 printf "%s\n" X"$as_dir" |
45906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
45910 /^X\(\/\/\)[^/].*/{
45923 test -d "$as_dir" && break
45925 test -z "$as_dirs" || eval "mkdir $as_dirs"
45926 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
45930 if mkdir -p . 2>/dev/null; then
45931 as_mkdir_p='mkdir -p "$as_dir"'
45933 test -d ./-p && rmdir ./-p
45938 # as_fn_executable_p FILE
45939 # -----------------------
45940 # Test if FILE is an executable regular file.
45941 as_fn_executable_p ()
45943 test -f "$1" && test -x "$1"
45944 } # as_fn_executable_p
45945 as_test_x='test -x'
45946 as_executable_p=as_fn_executable_p
45948 # Sed expression to map a string onto a valid CPP name.
45949 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
45951 # Sed expression to map a string onto a valid variable name.
45952 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
45956 ## ----------------------------------- ##
45957 ## Main body of $CONFIG_STATUS script. ##
45958 ## ----------------------------------- ##
45960 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
45962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
45963 # Save the log message, to keep $0 and so on meaningful, and to
45964 # report actual input values of CONFIG_FILES etc. instead of their
45965 # values after options handling.
45967 This file was extended by curl $as_me -, which was
45968 generated by GNU Autoconf 2.71. Invocation command line was
45970 CONFIG_FILES = $CONFIG_FILES
45971 CONFIG_HEADERS = $CONFIG_HEADERS
45972 CONFIG_LINKS = $CONFIG_LINKS
45973 CONFIG_COMMANDS = $CONFIG_COMMANDS
45976 on `(hostname || uname -n) 2>/dev/null | sed 1q`
45981 case $ac_config_files in *"
45982 "*) set x $ac_config_files; shift; ac_config_files=$*;;
45985 case $ac_config_headers in *"
45986 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
45990 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
45991 # Files that config.status was made for.
45992 config_files="$ac_config_files"
45993 config_headers="$ac_config_headers"
45994 config_commands="$ac_config_commands"
45998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46000 \`$as_me' instantiates files and other configuration actions
46001 from templates according to the current configuration. Unless the files
46002 and actions are specified as TAGs, all are instantiated by default.
46004 Usage: $0 [OPTION]... [TAG]...
46006 -h, --help print this help, then exit
46007 -V, --version print version number and configuration settings, then exit
46008 --config print configuration, then exit
46009 -q, --quiet, --silent
46010 do not print progress messages
46011 -d, --debug don't remove temporary files
46012 --recheck update $as_me by reconfiguring in the same conditions
46013 --file=FILE[:TEMPLATE]
46014 instantiate the configuration file FILE
46015 --header=FILE[:TEMPLATE]
46016 instantiate the configuration header FILE
46018 Configuration files:
46021 Configuration headers:
46024 Configuration commands:
46027 Report bugs to <a suitable curl mailing list: https://curl.se/mail/>."
46030 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
46031 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
46032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46033 ac_cs_config='$ac_cs_config_escaped'
46035 curl config.status -
46036 configured by $0, generated by GNU Autoconf 2.71,
46037 with options \\"\$ac_cs_config\\"
46039 Copyright (C) 2021 Free Software Foundation, Inc.
46040 This config.status script is free software; the Free Software Foundation
46041 gives unlimited permission to copy, distribute and modify it."
46048 test -n "\$AWK" || AWK=awk
46051 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46052 # The default lists apply if the user does not specify any file.
46058 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46059 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
46063 ac_option=`expr "X$1" : 'X\([^=]*\)='`
46075 # Handling of the options.
46076 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
46078 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
46079 printf "%s\n" "$ac_cs_version"; exit ;;
46080 --config | --confi | --conf | --con | --co | --c )
46081 printf "%s\n" "$ac_cs_config"; exit ;;
46082 --debug | --debu | --deb | --de | --d | -d )
46084 --file | --fil | --fi | --f )
46087 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46088 '') as_fn_error $? "missing file argument" ;;
46090 as_fn_append CONFIG_FILES " '$ac_optarg'"
46091 ac_need_defaults=false;;
46092 --header | --heade | --head | --hea )
46095 *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
46097 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
46098 ac_need_defaults=false;;
46100 # Conflict between --help and --header
46101 as_fn_error $? "ambiguous option: \`$1'
46102 Try \`$0 --help' for more information.";;
46103 --help | --hel | -h )
46104 printf "%s\n" "$ac_cs_usage"; exit ;;
46105 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
46106 | -silent | --silent | --silen | --sile | --sil | --si | --s)
46109 # This is an error.
46110 -*) as_fn_error $? "unrecognized option: \`$1'
46111 Try \`$0 --help' for more information." ;;
46113 *) as_fn_append ac_config_targets " $1"
46114 ac_need_defaults=false ;;
46120 ac_configure_extra_args=
46122 if $ac_cs_silent; then
46124 ac_configure_extra_args="$ac_configure_extra_args --silent"
46128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46129 if \$ac_cs_recheck; then
46130 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
46132 \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
46133 CONFIG_SHELL='$SHELL'
46134 export CONFIG_SHELL
46139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46143 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
46144 ## Running $as_me. ##
46146 printf "%s\n" "$ac_log"
46150 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46154 AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
46157 # The HP-UX ksh and POSIX shell print the target directory to stdout
46158 # if CDPATH is set.
46159 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
46161 sed_quote_subst='$sed_quote_subst'
46162 double_quote_subst='$double_quote_subst'
46163 delay_variable_subst='$delay_variable_subst'
46164 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
46165 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
46166 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
46167 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
46168 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
46169 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
46170 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
46171 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
46172 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
46173 shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
46174 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
46175 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
46176 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
46177 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
46178 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
46179 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
46180 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
46181 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
46182 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
46183 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
46184 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
46185 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
46186 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
46187 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
46188 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
46189 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
46190 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
46191 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
46192 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
46193 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
46194 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
46195 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
46196 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
46197 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
46198 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
46199 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
46200 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
46201 FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`'
46202 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
46203 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
46204 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
46205 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
46206 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
46207 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
46208 lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`'
46209 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
46210 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
46211 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
46212 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
46213 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46214 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46215 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
46216 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
46217 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
46218 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
46219 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
46220 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
46221 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
46222 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
46223 lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
46224 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
46225 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"`'
46226 lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
46227 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
46228 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
46229 lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
46230 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
46231 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
46232 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
46233 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
46234 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
46235 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
46236 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
46237 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
46238 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
46239 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
46240 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
46241 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
46242 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
46243 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
46244 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
46245 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
46246 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46247 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
46248 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
46249 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
46250 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
46251 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
46252 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
46253 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
46254 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
46255 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46256 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
46257 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
46258 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
46259 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
46260 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
46261 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
46262 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
46263 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
46264 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
46265 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
46266 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
46267 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
46268 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
46269 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
46270 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
46271 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
46272 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
46273 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
46274 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
46275 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
46276 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
46277 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
46278 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
46279 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
46280 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
46281 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
46282 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
46283 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
46284 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
46285 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
46286 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
46287 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
46288 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
46289 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
46290 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
46291 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
46292 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
46293 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
46294 configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
46295 configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
46296 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
46297 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
46298 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
46299 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
46300 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
46301 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
46302 LD_RC='`$ECHO "$LD_RC" | $SED "$delay_single_quote_subst"`'
46303 reload_flag_RC='`$ECHO "$reload_flag_RC" | $SED "$delay_single_quote_subst"`'
46304 reload_cmds_RC='`$ECHO "$reload_cmds_RC" | $SED "$delay_single_quote_subst"`'
46305 old_archive_cmds_RC='`$ECHO "$old_archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46306 compiler_RC='`$ECHO "$compiler_RC" | $SED "$delay_single_quote_subst"`'
46307 GCC_RC='`$ECHO "$GCC_RC" | $SED "$delay_single_quote_subst"`'
46308 lt_prog_compiler_no_builtin_flag_RC='`$ECHO "$lt_prog_compiler_no_builtin_flag_RC" | $SED "$delay_single_quote_subst"`'
46309 lt_prog_compiler_pic_RC='`$ECHO "$lt_prog_compiler_pic_RC" | $SED "$delay_single_quote_subst"`'
46310 lt_prog_compiler_wl_RC='`$ECHO "$lt_prog_compiler_wl_RC" | $SED "$delay_single_quote_subst"`'
46311 lt_prog_compiler_static_RC='`$ECHO "$lt_prog_compiler_static_RC" | $SED "$delay_single_quote_subst"`'
46312 lt_cv_prog_compiler_c_o_RC='`$ECHO "$lt_cv_prog_compiler_c_o_RC" | $SED "$delay_single_quote_subst"`'
46313 archive_cmds_need_lc_RC='`$ECHO "$archive_cmds_need_lc_RC" | $SED "$delay_single_quote_subst"`'
46314 enable_shared_with_static_runtimes_RC='`$ECHO "$enable_shared_with_static_runtimes_RC" | $SED "$delay_single_quote_subst"`'
46315 export_dynamic_flag_spec_RC='`$ECHO "$export_dynamic_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46316 whole_archive_flag_spec_RC='`$ECHO "$whole_archive_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46317 compiler_needs_object_RC='`$ECHO "$compiler_needs_object_RC" | $SED "$delay_single_quote_subst"`'
46318 old_archive_from_new_cmds_RC='`$ECHO "$old_archive_from_new_cmds_RC" | $SED "$delay_single_quote_subst"`'
46319 old_archive_from_expsyms_cmds_RC='`$ECHO "$old_archive_from_expsyms_cmds_RC" | $SED "$delay_single_quote_subst"`'
46320 archive_cmds_RC='`$ECHO "$archive_cmds_RC" | $SED "$delay_single_quote_subst"`'
46321 archive_expsym_cmds_RC='`$ECHO "$archive_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46322 module_cmds_RC='`$ECHO "$module_cmds_RC" | $SED "$delay_single_quote_subst"`'
46323 module_expsym_cmds_RC='`$ECHO "$module_expsym_cmds_RC" | $SED "$delay_single_quote_subst"`'
46324 with_gnu_ld_RC='`$ECHO "$with_gnu_ld_RC" | $SED "$delay_single_quote_subst"`'
46325 allow_undefined_flag_RC='`$ECHO "$allow_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46326 no_undefined_flag_RC='`$ECHO "$no_undefined_flag_RC" | $SED "$delay_single_quote_subst"`'
46327 hardcode_libdir_flag_spec_RC='`$ECHO "$hardcode_libdir_flag_spec_RC" | $SED "$delay_single_quote_subst"`'
46328 hardcode_libdir_separator_RC='`$ECHO "$hardcode_libdir_separator_RC" | $SED "$delay_single_quote_subst"`'
46329 hardcode_direct_RC='`$ECHO "$hardcode_direct_RC" | $SED "$delay_single_quote_subst"`'
46330 hardcode_direct_absolute_RC='`$ECHO "$hardcode_direct_absolute_RC" | $SED "$delay_single_quote_subst"`'
46331 hardcode_minus_L_RC='`$ECHO "$hardcode_minus_L_RC" | $SED "$delay_single_quote_subst"`'
46332 hardcode_shlibpath_var_RC='`$ECHO "$hardcode_shlibpath_var_RC" | $SED "$delay_single_quote_subst"`'
46333 hardcode_automatic_RC='`$ECHO "$hardcode_automatic_RC" | $SED "$delay_single_quote_subst"`'
46334 inherit_rpath_RC='`$ECHO "$inherit_rpath_RC" | $SED "$delay_single_quote_subst"`'
46335 link_all_deplibs_RC='`$ECHO "$link_all_deplibs_RC" | $SED "$delay_single_quote_subst"`'
46336 always_export_symbols_RC='`$ECHO "$always_export_symbols_RC" | $SED "$delay_single_quote_subst"`'
46337 export_symbols_cmds_RC='`$ECHO "$export_symbols_cmds_RC" | $SED "$delay_single_quote_subst"`'
46338 exclude_expsyms_RC='`$ECHO "$exclude_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46339 include_expsyms_RC='`$ECHO "$include_expsyms_RC" | $SED "$delay_single_quote_subst"`'
46340 prelink_cmds_RC='`$ECHO "$prelink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46341 postlink_cmds_RC='`$ECHO "$postlink_cmds_RC" | $SED "$delay_single_quote_subst"`'
46342 file_list_spec_RC='`$ECHO "$file_list_spec_RC" | $SED "$delay_single_quote_subst"`'
46343 hardcode_action_RC='`$ECHO "$hardcode_action_RC" | $SED "$delay_single_quote_subst"`'
46346 LTCFLAGS='$LTCFLAGS'
46347 compiler='$compiler_DEFAULT'
46349 # A function that is used when there is no print builtin or printf.
46350 func_fallback_echo ()
46352 eval 'cat <<_LTECHO_EOF
46357 # Quote evaled strings.
46375 deplibs_check_method \
46379 sharedlib_from_linklib_cmd \
46381 archiver_list_spec \
46387 lt_cv_sys_global_symbol_pipe \
46388 lt_cv_sys_global_symbol_to_cdecl \
46389 lt_cv_sys_global_symbol_to_import \
46390 lt_cv_sys_global_symbol_to_c_name_address \
46391 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
46392 lt_cv_nm_interface \
46393 nm_file_list_spec \
46394 lt_cv_truncate_bin \
46395 lt_prog_compiler_no_builtin_flag \
46396 lt_prog_compiler_pic \
46397 lt_prog_compiler_wl \
46398 lt_prog_compiler_static \
46399 lt_cv_prog_compiler_c_o \
46408 export_dynamic_flag_spec \
46409 whole_archive_flag_spec \
46410 compiler_needs_object \
46412 allow_undefined_flag \
46413 no_undefined_flag \
46414 hardcode_libdir_flag_spec \
46415 hardcode_libdir_separator \
46419 variables_saved_for_relink \
46421 library_names_spec \
46423 install_override_mode \
46430 lt_prog_compiler_no_builtin_flag_RC \
46431 lt_prog_compiler_pic_RC \
46432 lt_prog_compiler_wl_RC \
46433 lt_prog_compiler_static_RC \
46434 lt_cv_prog_compiler_c_o_RC \
46435 export_dynamic_flag_spec_RC \
46436 whole_archive_flag_spec_RC \
46437 compiler_needs_object_RC \
46439 allow_undefined_flag_RC \
46440 no_undefined_flag_RC \
46441 hardcode_libdir_flag_spec_RC \
46442 hardcode_libdir_separator_RC \
46443 exclude_expsyms_RC \
46444 include_expsyms_RC \
46445 file_list_spec_RC; do
46446 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46447 *[\\\\\\\`\\"\\\$]*)
46448 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46451 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46456 # Double-quote double-evaled strings.
46457 for var in reload_cmds \
46458 old_postinstall_cmds \
46459 old_postuninstall_cmds \
46461 extract_expsyms_cmds \
46462 old_archive_from_new_cmds \
46463 old_archive_from_expsyms_cmds \
46465 archive_expsym_cmds \
46467 module_expsym_cmds \
46468 export_symbols_cmds \
46472 postuninstall_cmds \
46474 sys_lib_search_path_spec \
46475 configure_time_dlsearch_path \
46476 configure_time_lt_sys_library_path \
46478 old_archive_cmds_RC \
46479 old_archive_from_new_cmds_RC \
46480 old_archive_from_expsyms_cmds_RC \
46482 archive_expsym_cmds_RC \
46484 module_expsym_cmds_RC \
46485 export_symbols_cmds_RC \
46487 postlink_cmds_RC; do
46488 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
46489 *[\\\\\\\`\\"\\\$]*)
46490 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
46493 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
46498 ac_aux_dir='$ac_aux_dir'
46500 # See if we are running on zsh, and set the options that allow our
46501 # commands through without removal of \ escapes INIT.
46502 if test -n "\${ZSH_VERSION+set}"; then
46503 setopt NO_GLOB_SUBST
46519 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46521 # Handling of arguments.
46522 for ac_config_target in $ac_config_targets
46524 case $ac_config_target in
46525 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
46526 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
46527 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
46528 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
46529 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
46530 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
46531 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
46532 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
46533 "docs/cmdline-opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/cmdline-opts/Makefile" ;;
46534 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
46535 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
46536 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
46537 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
46538 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
46539 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
46540 "lib/libcurl.plist") CONFIG_FILES="$CONFIG_FILES lib/libcurl.plist" ;;
46541 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
46542 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
46543 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
46544 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
46545 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
46546 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
46547 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
46548 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
46549 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
46550 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
46551 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
46553 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
46558 # If the user did not use the arguments to specify the items to instantiate,
46559 # then the envvar interface is used. Set only those that are not.
46560 # We use the long form for the default assignment because of an extremely
46561 # bizarre bug on SunOS 4.1.3.
46562 if $ac_need_defaults; then
46563 test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
46564 test ${CONFIG_HEADERS+y} || CONFIG_HEADERS=$config_headers
46565 test ${CONFIG_COMMANDS+y} || CONFIG_COMMANDS=$config_commands
46568 # Have a temporary directory for convenience. Make it in the build tree
46569 # simply because there is no reason against having it here, and in addition,
46570 # creating and moving files from /tmp can sometimes cause problems.
46571 # Hook for its removal unless debugging.
46572 # Note that there is a small window in which the directory will not be cleaned:
46573 # after its creation but before its name has been assigned to `$tmp'.
46577 trap 'exit_status=$?
46578 : "${ac_tmp:=$tmp}"
46579 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
46581 trap 'as_fn_exit 1' 1 2 13 15
46583 # Create a (secure) tmp directory for tmp files.
46586 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
46590 tmp=./conf$$-$RANDOM
46591 (umask 077 && mkdir "$tmp")
46592 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
46595 # Set up the scripts for CONFIG_FILES section.
46596 # No need to generate them if there are no CONFIG_FILES.
46597 # This happens for instance with `./config.status config.h'.
46598 if test -n "$CONFIG_FILES"; then
46601 ac_cr=`echo X | tr X '\015'`
46602 # On cygwin, bash can eat \r inside `` if the user requested igncr.
46603 # But we know of no other shell where ac_cr would be empty at this
46604 # point, so we can use a bashism as a fallback.
46605 if test "x$ac_cr" = x; then
46606 eval ac_cr=\$\'\\r\'
46608 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
46609 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
46612 ac_cs_awk_cr=$ac_cr
46615 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
46620 echo "cat >conf$$subs.awk <<_ACEOF" &&
46621 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
46623 } >conf$$subs.sh ||
46624 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46625 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
46627 for ac_last_try in false false false false false :; do
46628 . ./conf$$subs.sh ||
46629 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46631 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
46632 if test $ac_delim_n = $ac_delim_num; then
46634 elif $ac_last_try; then
46635 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
46637 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46640 rm -f conf$$subs.sh
46642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46643 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
46647 s/^/S["/; s/!.*/"]=/
46657 s/\(.\{148\}\)..*/\1/
46659 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
46664 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46671 s/\(.\{148\}\)..*/\1/
46673 s/["\\]/\\&/g; s/^/"/; s/$/"/
46677 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
46682 ' <conf$$subs.awk | sed '
46687 ' >>$CONFIG_STATUS || ac_write_fail=1
46688 rm -f conf$$subs.awk
46689 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46691 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
46692 for (key in S) S_is_set[key] = 1
46698 nfields = split(line, field, "@")
46700 len = length(field[1])
46701 for (i = 2; i < nfields; i++) {
46703 keylen = length(key)
46704 if (S_is_set[key]) {
46706 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
46707 len += length(value) + length(field[++i])
46718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46719 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
46720 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
46723 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
46724 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
46727 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
46728 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
46729 # trailing colons and then remove the whole line if VPATH becomes empty
46730 # (actually we leave an empty line to preserve line numbers).
46731 if test "x$srcdir" = x.; then
46732 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
46750 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46751 fi # test -n "$CONFIG_FILES"
46753 # Set up the scripts for CONFIG_HEADERS section.
46754 # No need to generate them if there are no CONFIG_HEADERS.
46755 # This happens for instance with `./config.status Makefile'.
46756 if test -n "$CONFIG_HEADERS"; then
46757 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
46761 # Transform confdefs.h into an awk script `defines.awk', embedded as
46762 # here-document in config.status, that substitutes the proper values into
46763 # config.h.in to produce config.h.
46765 # Create a delimiter string that does not exist in confdefs.h, to ease
46766 # handling of long lines.
46768 for ac_last_try in false false :; do
46769 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
46770 if test -z "$ac_tt"; then
46772 elif $ac_last_try; then
46773 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
46775 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
46779 # For the awk script, D is an array of macro values keyed by name,
46780 # likewise P contains macro parameters if any. Preserve backslash
46781 # newline sequences.
46783 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
46785 s/.\{148\}/&'"$ac_delim"'/g
46788 s/^[ ]*#[ ]*define[ ][ ]*/ /
46795 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46797 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
46801 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
46802 D["\1"]=" \3\\\\\\n"\\/p
46804 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
46809 s/.\{148\}/&'"$ac_delim"'/g
46814 s/["\\]/\\&/g; s/^/"/; s/$/"/p
46817 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
46819 ' <confdefs.h | sed '
46820 s/'"$ac_delim"'/"\\\
46821 "/g' >>$CONFIG_STATUS || ac_write_fail=1
46823 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
46824 for (key in D) D_is_set[key] = 1
46827 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
46829 split(line, arg, " ")
46830 if (arg[1] == "#") {
46834 defundef = substr(arg[1], 2)
46837 split(mac1, mac2, "(") #)
46839 prefix = substr(line, 1, index(line, defundef) - 1)
46840 if (D_is_set[macro]) {
46841 # Preserve the white space surrounding the "#".
46842 print prefix "define", macro P[macro] D[macro]
46845 # Replace #undef with comments. This is necessary, for example,
46846 # in the case of _POSIX_SOURCE, which is predefined and required
46847 # on some systems where configure will not decide to define it.
46848 if (defundef == "undef") {
46849 print "/*", prefix defundef, macro, "*/"
46857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
46858 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
46859 fi # test -n "$CONFIG_HEADERS"
46862 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
46867 :[FHLC]) ac_mode=$ac_tag; continue;;
46869 case $ac_mode$ac_tag in
46871 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
46872 :[FH]-) ac_tag=-:-;;
46873 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
46890 -) ac_f="$ac_tmp/stdin";;
46891 *) # Look for the file first in the build tree, then in the source tree
46892 # (if the path is not absolute). The absolute path cannot be DOS-style,
46893 # because $ac_f cannot contain `:'.
46897 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
46899 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
46901 case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
46902 as_fn_append ac_file_inputs " '$ac_f'"
46905 # Let's still pretend it is `configure' which instantiates (i.e., don't
46906 # use $as_me), people would be surprised to read:
46907 # /* config.h. Generated by config.status. */
46908 configure_input='Generated from '`
46909 printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
46911 if test x"$ac_file" != x-; then
46912 configure_input="$ac_file. $configure_input"
46913 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
46914 printf "%s\n" "$as_me: creating $ac_file" >&6;}
46916 # Neutralize special characters interpreted by sed in replacement strings.
46917 case $configure_input in #(
46918 *\&* | *\|* | *\\* )
46919 ac_sed_conf_input=`printf "%s\n" "$configure_input" |
46920 sed 's/[\\\\&|]/\\\\&/g'`;; #(
46921 *) ac_sed_conf_input=$configure_input;;
46925 *:-:* | *:-) cat >"$ac_tmp/stdin" \
46926 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
46931 ac_dir=`$as_dirname -- "$ac_file" ||
46932 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
46933 X"$ac_file" : 'X\(//\)[^/]' \| \
46934 X"$ac_file" : 'X\(//\)$' \| \
46935 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
46936 printf "%s\n" X"$ac_file" |
46937 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
46941 /^X\(\/\/\)[^/].*/{
46954 as_dir="$ac_dir"; as_fn_mkdir_p
46958 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
46960 ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
46961 # A ".." for each directory in $ac_dir_suffix.
46962 ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
46963 case $ac_top_builddir_sub in
46964 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
46965 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
46968 ac_abs_top_builddir=$ac_pwd
46969 ac_abs_builddir=$ac_pwd$ac_dir_suffix
46970 # for backward compatibility:
46971 ac_top_builddir=$ac_top_build_prefix
46974 .) # We are building in place.
46976 ac_top_srcdir=$ac_top_builddir_sub
46977 ac_abs_top_srcdir=$ac_pwd ;;
46978 [\\/]* | ?:[\\/]* ) # Absolute name.
46979 ac_srcdir=$srcdir$ac_dir_suffix;
46980 ac_top_srcdir=$srcdir
46981 ac_abs_top_srcdir=$srcdir ;;
46982 *) # Relative name.
46983 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
46984 ac_top_srcdir=$ac_top_build_prefix$srcdir
46985 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
46987 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
46997 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
46998 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
47000 ac_MKDIR_P=$MKDIR_P
47002 [\\/$]* | ?:[\\/]* ) ;;
47003 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
47007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47008 # If the template does not know about datarootdir, expand it.
47009 # FIXME: This hack should be removed a few years after 2.60.
47010 ac_datarootdir_hack=; ac_datarootdir_seen=
47021 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
47022 *datarootdir*) ac_datarootdir_seen=yes;;
47023 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
47024 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
47025 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
47027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47028 ac_datarootdir_hack='
47029 s&@datadir@&$datadir&g
47030 s&@docdir@&$docdir&g
47031 s&@infodir@&$infodir&g
47032 s&@localedir@&$localedir&g
47033 s&@mandir@&$mandir&g
47034 s&\\\${datarootdir}&$datarootdir&g' ;;
47038 # Neutralize VPATH when `$srcdir' = `.'.
47039 # Shell code in configure.ac might set extrasub.
47040 # FIXME: do we really want to maintain this feature?
47041 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
47042 ac_sed_extra="$ac_vpsub
47045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
47047 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
47048 s|@configure_input@|$ac_sed_conf_input|;t t
47049 s&@top_builddir@&$ac_top_builddir_sub&;t t
47050 s&@top_build_prefix@&$ac_top_build_prefix&;t t
47051 s&@srcdir@&$ac_srcdir&;t t
47052 s&@abs_srcdir@&$ac_abs_srcdir&;t t
47053 s&@top_srcdir@&$ac_top_srcdir&;t t
47054 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
47055 s&@builddir@&$ac_builddir&;t t
47056 s&@abs_builddir@&$ac_abs_builddir&;t t
47057 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
47058 s&@INSTALL@&$ac_INSTALL&;t t
47059 s&@MKDIR_P@&$ac_MKDIR_P&;t t
47060 $ac_datarootdir_hack
47062 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
47063 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
47066 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
47067 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
47068 "$ac_tmp/out"`; test -z "$ac_out"; } &&
47069 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47070 which seems to be undefined. Please make sure it is defined" >&5
47071 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
47072 which seems to be undefined. Please make sure it is defined" >&2;}
47074 rm -f "$ac_tmp/stdin"
47076 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
47077 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
47079 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47085 if test x"$ac_file" != x-; then
47087 printf "%s\n" "/* $configure_input */" >&1 \
47088 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
47089 } >"$ac_tmp/config.h" \
47090 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47091 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
47092 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
47093 printf "%s\n" "$as_me: $ac_file is unchanged" >&6;}
47096 mv "$ac_tmp/config.h" "$ac_file" \
47097 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
47100 printf "%s\n" "/* $configure_input */" >&1 \
47101 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
47102 || as_fn_error $? "could not create -" "$LINENO" 5
47104 # Compute "$ac_file"'s index in $config_headers.
47107 for _am_header in $config_headers :; do
47108 case $_am_header in
47109 $_am_arg | $_am_arg:* )
47112 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
47115 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
47116 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47117 X"$_am_arg" : 'X\(//\)[^/]' \| \
47118 X"$_am_arg" : 'X\(//\)$' \| \
47119 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
47120 printf "%s\n" X"$_am_arg" |
47121 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47125 /^X\(\/\/\)[^/].*/{
47137 s/.*/./; q'`/stamp-h$_am_stamp_count
47140 :C) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
47141 printf "%s\n" "$as_me: executing $ac_file commands" >&6;}
47146 case $ac_file$ac_mode in
47147 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
47148 # Older Autoconf quotes --file arguments for eval, but not when files
47149 # are listed without --file. Let's play safe and only enable the eval
47150 # if we detect the quoting.
47151 # TODO: see whether this extra hack can be removed once we start
47152 # requiring Autoconf 2.70 or later.
47153 case $CONFIG_FILES in #(
47155 eval set x "$CONFIG_FILES" ;; #(
47157 set x $CONFIG_FILES ;; #(
47162 # Used to flag and report bootstrapping failures.
47166 # Strip MF so we end up with the name of the file.
47167 am_mf=`printf "%s\n" "$am_mf" | sed -e 's/:.*$//'`
47168 # Check whether this is an Automake generated Makefile which includes
47169 # dependency-tracking related rules and includes.
47170 # Grep'ing the whole file directly is not great: AIX grep has a line
47171 # limit of 2048, but all sed's we know have understand at least 4000.
47172 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
47174 am_dirpart=`$as_dirname -- "$am_mf" ||
47175 $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
47176 X"$am_mf" : 'X\(//\)[^/]' \| \
47177 X"$am_mf" : 'X\(//\)$' \| \
47178 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47179 printf "%s\n" X"$am_mf" |
47180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
47184 /^X\(\/\/\)[^/].*/{
47197 am_filepart=`$as_basename -- "$am_mf" ||
47198 $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
47199 X"$am_mf" : 'X\(//\)$' \| \
47200 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
47201 printf "%s\n" X/"$am_mf" |
47202 sed '/^.*\/\([^/][^/]*\)\/*$/{
47215 { echo "$as_me:$LINENO: cd "$am_dirpart" \
47216 && sed -e '/# am--include-marker/d' "$am_filepart" \
47217 | $MAKE -f - am--depfiles" >&5
47218 (cd "$am_dirpart" \
47219 && sed -e '/# am--include-marker/d' "$am_filepart" \
47220 | $MAKE -f - am--depfiles) >&5 2>&5
47222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
47223 (exit $ac_status); } || am_rc=$?
47225 if test $am_rc -ne 0; then
47226 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
47227 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
47228 as_fn_error $? "Something went wrong bootstrapping makefile fragments
47229 for automatic dependency tracking. If GNU make was not used, consider
47230 re-running the configure script with MAKE=\"gmake\" (or whatever is
47231 necessary). You can also try re-running configure with the
47232 '--disable-dependency-tracking' option to at least be able to build
47233 the package (albeit without support for automatic dependency tracking).
47234 See \`config.log' for more details" "$LINENO" 5; }
47236 { am_dirpart=; unset am_dirpart;}
47237 { am_filepart=; unset am_filepart;}
47238 { am_mf=; unset am_mf;}
47239 { am_rc=; unset am_rc;}
47240 rm -f conftest-deps.mk
47245 # See if we are running on zsh, and set the options that allow our
47246 # commands through without removal of \ escapes.
47247 if test -n "${ZSH_VERSION+set}"; then
47248 setopt NO_GLOB_SUBST
47252 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
47255 cat <<_LT_EOF >> "$cfgfile"
47257 # Generated automatically by $as_me ($PACKAGE) $VERSION
47258 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
47260 # Provide generalized library-building support services.
47261 # Written by Gordon Matzigkeit, 1996
47263 # Copyright (C) 2014 Free Software Foundation, Inc.
47264 # This is free software; see the source for copying conditions. There is NO
47265 # warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
47267 # GNU Libtool is free software; you can redistribute it and/or modify
47268 # it under the terms of the GNU General Public License as published by
47269 # the Free Software Foundation; either version 2 of of the License, or
47270 # (at your option) any later version.
47272 # As a special exception to the GNU General Public License, if you
47273 # distribute this file as part of a program or library that is built
47274 # using GNU Libtool, you may include this file under the same
47275 # distribution terms that you use for the rest of that program.
47277 # GNU Libtool is distributed in the hope that it will be useful, but
47278 # WITHOUT ANY WARRANTY; without even the implied warranty of
47279 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47280 # GNU General Public License for more details.
47282 # You should have received a copy of the GNU General Public License
47283 # along with this program. If not, see <http://www.gnu.org/licenses/>.
47286 # The names of the tagged configurations supported by this script.
47287 available_tags='RC '
47289 # Configured defaults for sys_lib_dlsearch_path munging.
47290 : \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
47292 # ### BEGIN LIBTOOL CONFIG
47294 # Which release of libtool.m4 was used?
47295 macro_version=$macro_version
47296 macro_revision=$macro_revision
47298 # Assembler program.
47301 # DLL creation program.
47302 DLLTOOL=$lt_DLLTOOL
47304 # Object dumper program.
47305 OBJDUMP=$lt_OBJDUMP
47307 # Whether or not to build shared libraries.
47308 build_libtool_libs=$enable_shared
47310 # Whether or not to build static libraries.
47311 build_old_libs=$enable_static
47313 # What type of objects to build.
47316 # Whether or not to optimize for fast installation.
47317 fast_install=$enable_fast_install
47319 # Shared archive member basename,for filename based shared library versioning on AIX.
47320 shared_archive_member_spec=$shared_archive_member_spec
47322 # Shell to use when invoking shell scripts.
47325 # An echo program that protects backslashes.
47328 # The PATH separator for the build system.
47329 PATH_SEPARATOR=$lt_PATH_SEPARATOR
47332 host_alias=$host_alias
47336 # The build system.
47337 build_alias=$build_alias
47341 # A sed program that does not truncate output.
47344 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
47345 Xsed="\$SED -e 1s/^X//"
47347 # A grep program that handles long lines.
47353 # A literal string matcher.
47356 # A BSD- or MS-compatible name lister.
47359 # Whether we need soft or hard links.
47362 # What is the maximum length of a command?
47363 max_cmd_len=$max_cmd_len
47365 # Object file suffix (normally "o").
47368 # Executable file suffix (normally "").
47371 # whether the shell understands "unset".
47374 # turn spaces into newlines.
47377 # turn newlines into spaces.
47380 # convert \$build file names to \$host format.
47381 to_host_file_cmd=$lt_cv_to_host_file_cmd
47383 # convert \$build files to toolchain format.
47384 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
47386 # A file(cmd) program that detects file types.
47387 FILECMD=$lt_FILECMD
47389 # Method to check whether dependent libraries are shared objects.
47390 deplibs_check_method=$lt_deplibs_check_method
47392 # Command to use when deplibs_check_method = "file_magic".
47393 file_magic_cmd=$lt_file_magic_cmd
47395 # How to find potential files when deplibs_check_method = "file_magic".
47396 file_magic_glob=$lt_file_magic_glob
47398 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
47399 want_nocaseglob=$lt_want_nocaseglob
47401 # Command to associate shared and link libraries.
47402 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
47407 # Flags to create an archive (by configure).
47408 lt_ar_flags=$lt_ar_flags
47410 # Flags to create an archive.
47411 AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"}
47413 # How to feed a file listing to the archiver.
47414 archiver_list_spec=$lt_archiver_list_spec
47416 # A symbol stripping program.
47419 # Commands used to install an old-style archive.
47421 old_postinstall_cmds=$lt_old_postinstall_cmds
47422 old_postuninstall_cmds=$lt_old_postuninstall_cmds
47424 # Whether to use a lock for old archive extraction.
47425 lock_old_archive_extraction=$lock_old_archive_extraction
47430 # LTCC compiler flags.
47431 LTCFLAGS=$lt_CFLAGS
47433 # Take the output of nm and produce a listing of raw symbols and C names.
47434 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
47436 # Transform the output of nm in a proper C declaration.
47437 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
47439 # Transform the output of nm into a list of symbols to manually relocate.
47440 global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
47442 # Transform the output of nm in a C name address pair.
47443 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
47445 # Transform the output of nm in a C name address pair when lib prefix is needed.
47446 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
47448 # The name lister interface.
47449 nm_interface=$lt_lt_cv_nm_interface
47451 # Specify filename containing input files for \$NM.
47452 nm_file_list_spec=$lt_nm_file_list_spec
47454 # The root where to search for dependent libraries,and where our libraries should be installed.
47455 lt_sysroot=$lt_sysroot
47457 # Command to truncate a binary pipe.
47458 lt_truncate_bin=$lt_lt_cv_truncate_bin
47460 # The name of the directory that contains temporary libtool files.
47463 # Used to examine libraries when file_magic_cmd begins with "file".
47464 MAGIC_CMD=$MAGIC_CMD
47466 # Must we lock files when doing compilation?
47467 need_locks=$lt_need_locks
47470 MANIFEST_TOOL=$lt_MANIFEST_TOOL
47472 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
47473 DSYMUTIL=$lt_DSYMUTIL
47475 # Tool to change global to local symbols on Mac OS X.
47478 # Tool to manipulate fat objects and archives on Mac OS X.
47481 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
47484 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
47485 OTOOL64=$lt_OTOOL64
47487 # Old archive suffix (normally "a").
47490 # Shared library suffix (normally ".so").
47491 shrext_cmds=$lt_shrext_cmds
47493 # The commands to extract the exported symbol list from a shared archive.
47494 extract_expsyms_cmds=$lt_extract_expsyms_cmds
47496 # Variables whose values should be saved in libtool wrapper scripts and
47497 # restored at link time.
47498 variables_saved_for_relink=$lt_variables_saved_for_relink
47500 # Do we need the "lib" prefix for modules?
47501 need_lib_prefix=$need_lib_prefix
47503 # Do we need a version for libraries?
47504 need_version=$need_version
47506 # Library versioning type.
47507 version_type=$version_type
47509 # Shared library runtime path variable.
47510 runpath_var=$runpath_var
47512 # Shared library path variable.
47513 shlibpath_var=$shlibpath_var
47515 # Is shlibpath searched before the hard-coded library search path?
47516 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
47518 # Format of library name prefix.
47519 libname_spec=$lt_libname_spec
47521 # List of archive names. First name is the real one, the rest are links.
47522 # The last name is the one that the linker finds with -lNAME
47523 library_names_spec=$lt_library_names_spec
47525 # The coded name of the library, if different from the real name.
47526 soname_spec=$lt_soname_spec
47528 # Permission mode override for installation of shared libraries.
47529 install_override_mode=$lt_install_override_mode
47531 # Command to use after installation of a shared archive.
47532 postinstall_cmds=$lt_postinstall_cmds
47534 # Command to use after uninstallation of a shared archive.
47535 postuninstall_cmds=$lt_postuninstall_cmds
47537 # Commands used to finish a libtool library installation in a directory.
47538 finish_cmds=$lt_finish_cmds
47540 # As "finish_cmds", except a single script fragment to be evaled but
47542 finish_eval=$lt_finish_eval
47544 # Whether we should hardcode library paths into libraries.
47545 hardcode_into_libs=$hardcode_into_libs
47547 # Compile-time system search path for libraries.
47548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
47550 # Detected run-time system search path for libraries.
47551 sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
47553 # Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
47554 configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
47556 # Whether dlopen is supported.
47557 dlopen_support=$enable_dlopen
47559 # Whether dlopen of programs is supported.
47560 dlopen_self=$enable_dlopen_self
47562 # Whether dlopen of statically linked programs is supported.
47563 dlopen_self_static=$enable_dlopen_self_static
47565 # Commands to strip libraries.
47566 old_striplib=$lt_old_striplib
47567 striplib=$lt_striplib
47570 # The linker used to build libraries.
47573 # How to create reloadable object files.
47574 reload_flag=$lt_reload_flag
47575 reload_cmds=$lt_reload_cmds
47577 # Commands used to build an old-style archive.
47578 old_archive_cmds=$lt_old_archive_cmds
47580 # A language specific compiler.
47583 # Is the compiler the GNU compiler?
47586 # Compiler flag to turn off builtin functions.
47587 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
47589 # Additional compiler flags for building library objects.
47590 pic_flag=$lt_lt_prog_compiler_pic
47592 # How to pass a linker flag through the compiler.
47593 wl=$lt_lt_prog_compiler_wl
47595 # Compiler flag to prevent dynamic linking.
47596 link_static_flag=$lt_lt_prog_compiler_static
47598 # Does compiler simultaneously support -c and -o options?
47599 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
47601 # Whether or not to add -lc for building shared libraries.
47602 build_libtool_need_lc=$archive_cmds_need_lc
47604 # Whether or not to disallow shared libs when runtime libs are static.
47605 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
47607 # Compiler flag to allow reflexive dlopens.
47608 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
47610 # Compiler flag to generate shared objects directly from archives.
47611 whole_archive_flag_spec=$lt_whole_archive_flag_spec
47613 # Whether the compiler copes with passing no objects directly.
47614 compiler_needs_object=$lt_compiler_needs_object
47616 # Create an old-style archive from a shared archive.
47617 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
47619 # Create a temporary old-style archive to link instead of a shared archive.
47620 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
47622 # Commands used to build a shared archive.
47623 archive_cmds=$lt_archive_cmds
47624 archive_expsym_cmds=$lt_archive_expsym_cmds
47626 # Commands used to build a loadable module if different from building
47627 # a shared archive.
47628 module_cmds=$lt_module_cmds
47629 module_expsym_cmds=$lt_module_expsym_cmds
47631 # Whether we are building with GNU ld or not.
47632 with_gnu_ld=$lt_with_gnu_ld
47634 # Flag that allows shared libraries with undefined symbols to be built.
47635 allow_undefined_flag=$lt_allow_undefined_flag
47637 # Flag that enforces no undefined symbols.
47638 no_undefined_flag=$lt_no_undefined_flag
47640 # Flag to hardcode \$libdir into a binary during linking.
47641 # This must work even if \$libdir does not exist
47642 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
47644 # Whether we need a single "-rpath" flag with a separated argument.
47645 hardcode_libdir_separator=$lt_hardcode_libdir_separator
47647 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47648 # DIR into the resulting binary.
47649 hardcode_direct=$hardcode_direct
47651 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47652 # DIR into the resulting binary and the resulting library dependency is
47653 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
47654 # library is relocated.
47655 hardcode_direct_absolute=$hardcode_direct_absolute
47657 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47658 # into the resulting binary.
47659 hardcode_minus_L=$hardcode_minus_L
47661 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47662 # into the resulting binary.
47663 hardcode_shlibpath_var=$hardcode_shlibpath_var
47665 # Set to "yes" if building a shared library automatically hardcodes DIR
47666 # into the library and all subsequent libraries and executables linked
47668 hardcode_automatic=$hardcode_automatic
47670 # Set to yes if linker adds runtime paths of dependent libraries
47671 # to runtime path list.
47672 inherit_rpath=$inherit_rpath
47674 # Whether libtool must link a program against all its dependency libraries.
47675 link_all_deplibs=$link_all_deplibs
47677 # Set to "yes" if exported symbols are required.
47678 always_export_symbols=$always_export_symbols
47680 # The commands to list exported symbols.
47681 export_symbols_cmds=$lt_export_symbols_cmds
47683 # Symbols that should not be listed in the preloaded symbols.
47684 exclude_expsyms=$lt_exclude_expsyms
47686 # Symbols that must always be exported.
47687 include_expsyms=$lt_include_expsyms
47689 # Commands necessary for linking programs (against libraries) with templates.
47690 prelink_cmds=$lt_prelink_cmds
47692 # Commands necessary for finishing linking programs.
47693 postlink_cmds=$lt_postlink_cmds
47695 # Specify filename containing input files.
47696 file_list_spec=$lt_file_list_spec
47698 # How to hardcode a shared library path into an executable.
47699 hardcode_action=$hardcode_action
47701 # ### END LIBTOOL CONFIG
47705 cat <<'_LT_EOF' >> "$cfgfile"
47707 # ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
47709 # func_munge_path_list VARIABLE PATH
47710 # -----------------------------------
47711 # VARIABLE is name of variable containing _space_ separated list of
47712 # directories to be munged by the contents of PATH, which is string
47715 # string "DIR[ DIR]" will be prepended to VARIABLE
47717 # string "DIR[ DIR]" will be appended to VARIABLE
47718 # "DIRP[:DIRP]::[DIRA:]DIRA"
47719 # string "DIRP[ DIRP]" will be prepended to VARIABLE and string
47720 # "DIRA[ DIRA]" will be appended to VARIABLE
47722 # VARIABLE will be replaced by "DIR[ DIR]"
47723 func_munge_path_list ()
47729 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
47732 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
47735 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
47736 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
47739 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
47745 # Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
47746 func_cc_basename ()
47748 for cc_temp in $*""; do
47750 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
47751 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
47756 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
47760 # ### END FUNCTIONS SHARED WITH CONFIGURE
47766 cat <<\_LT_EOF >> "$cfgfile"
47767 # AIX sometimes has problems with the GCC collect2 program. For some
47768 # reason, if we set the COLLECT_NAMES environment variable, the problems
47769 # vanish in a puff of smoke.
47770 if test set != "${COLLECT_NAMES+set}"; then
47772 export COLLECT_NAMES
47780 ltmain=$ac_aux_dir/ltmain.sh
47783 # We use sed instead of cat because bash on DJGPP gets confused if
47784 # if finds mixed CR/LF and LF-only lines. Since sed operates in
47785 # text mode, it properly converts lines to CR/LF. This bash problem
47786 # is reportedly fixed, but why not run on old versions too?
47787 $SED '$q' "$ltmain" >> "$cfgfile" \
47788 || (rm -f "$cfgfile"; exit 1)
47790 mv -f "$cfgfile" "$ofile" ||
47791 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
47795 cat <<_LT_EOF >> "$ofile"
47797 # ### BEGIN LIBTOOL TAG CONFIG: RC
47799 # The linker used to build libraries.
47802 # How to create reloadable object files.
47803 reload_flag=$lt_reload_flag_RC
47804 reload_cmds=$lt_reload_cmds_RC
47806 # Commands used to build an old-style archive.
47807 old_archive_cmds=$lt_old_archive_cmds_RC
47809 # A language specific compiler.
47812 # Is the compiler the GNU compiler?
47815 # Compiler flag to turn off builtin functions.
47816 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
47818 # Additional compiler flags for building library objects.
47819 pic_flag=$lt_lt_prog_compiler_pic_RC
47821 # How to pass a linker flag through the compiler.
47822 wl=$lt_lt_prog_compiler_wl_RC
47824 # Compiler flag to prevent dynamic linking.
47825 link_static_flag=$lt_lt_prog_compiler_static_RC
47827 # Does compiler simultaneously support -c and -o options?
47828 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
47830 # Whether or not to add -lc for building shared libraries.
47831 build_libtool_need_lc=$archive_cmds_need_lc_RC
47833 # Whether or not to disallow shared libs when runtime libs are static.
47834 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
47836 # Compiler flag to allow reflexive dlopens.
47837 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
47839 # Compiler flag to generate shared objects directly from archives.
47840 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
47842 # Whether the compiler copes with passing no objects directly.
47843 compiler_needs_object=$lt_compiler_needs_object_RC
47845 # Create an old-style archive from a shared archive.
47846 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
47848 # Create a temporary old-style archive to link instead of a shared archive.
47849 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
47851 # Commands used to build a shared archive.
47852 archive_cmds=$lt_archive_cmds_RC
47853 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
47855 # Commands used to build a loadable module if different from building
47856 # a shared archive.
47857 module_cmds=$lt_module_cmds_RC
47858 module_expsym_cmds=$lt_module_expsym_cmds_RC
47860 # Whether we are building with GNU ld or not.
47861 with_gnu_ld=$lt_with_gnu_ld_RC
47863 # Flag that allows shared libraries with undefined symbols to be built.
47864 allow_undefined_flag=$lt_allow_undefined_flag_RC
47866 # Flag that enforces no undefined symbols.
47867 no_undefined_flag=$lt_no_undefined_flag_RC
47869 # Flag to hardcode \$libdir into a binary during linking.
47870 # This must work even if \$libdir does not exist
47871 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
47873 # Whether we need a single "-rpath" flag with a separated argument.
47874 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
47876 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47877 # DIR into the resulting binary.
47878 hardcode_direct=$hardcode_direct_RC
47880 # Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
47881 # DIR into the resulting binary and the resulting library dependency is
47882 # "absolute",i.e impossible to change by setting \$shlibpath_var if the
47883 # library is relocated.
47884 hardcode_direct_absolute=$hardcode_direct_absolute_RC
47886 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
47887 # into the resulting binary.
47888 hardcode_minus_L=$hardcode_minus_L_RC
47890 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
47891 # into the resulting binary.
47892 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
47894 # Set to "yes" if building a shared library automatically hardcodes DIR
47895 # into the library and all subsequent libraries and executables linked
47897 hardcode_automatic=$hardcode_automatic_RC
47899 # Set to yes if linker adds runtime paths of dependent libraries
47900 # to runtime path list.
47901 inherit_rpath=$inherit_rpath_RC
47903 # Whether libtool must link a program against all its dependency libraries.
47904 link_all_deplibs=$link_all_deplibs_RC
47906 # Set to "yes" if exported symbols are required.
47907 always_export_symbols=$always_export_symbols_RC
47909 # The commands to list exported symbols.
47910 export_symbols_cmds=$lt_export_symbols_cmds_RC
47912 # Symbols that should not be listed in the preloaded symbols.
47913 exclude_expsyms=$lt_exclude_expsyms_RC
47915 # Symbols that must always be exported.
47916 include_expsyms=$lt_include_expsyms_RC
47918 # Commands necessary for linking programs (against libraries) with templates.
47919 prelink_cmds=$lt_prelink_cmds_RC
47921 # Commands necessary for finishing linking programs.
47922 postlink_cmds=$lt_postlink_cmds_RC
47924 # Specify filename containing input files.
47925 file_list_spec=$lt_file_list_spec_RC
47927 # How to hardcode a shared library path into an executable.
47928 hardcode_action=$hardcode_action_RC
47930 # ### END LIBTOOL TAG CONFIG: RC
47941 ac_clean_files=$ac_clean_files_save
47943 test $ac_write_fail = 0 ||
47944 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
47947 # configure is writing to config.log, and then calls config.status.
47948 # config.status does its own redirection, appending to config.log.
47949 # Unfortunately, on DOS this fails, as config.log is still kept open
47950 # by configure, so config.status won't be able to write to it; its
47951 # output is simply discarded. So we exec the FD to /dev/null,
47952 # effectively closing config.log, so it can be properly (re)opened and
47953 # appended to by config.status. When coming back to configure, we
47954 # need to make the FD available again.
47955 if test "$no_create" != yes; then
47957 ac_config_status_args=
47958 test "$silent" = yes &&
47959 ac_config_status_args="$ac_config_status_args --quiet"
47961 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
47963 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
47964 # would make configure fail if this is the last instruction.
47965 $ac_cs_success || as_fn_exit 1
47967 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
47968 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
47969 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
47974 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
47975 if test -z "$tmp_cpp"; then
47978 cat >./tests/configurehelp.pm <<_EOF
47979 # This is a generated file. Do not edit.
47981 package configurehelp;
47993 @ISA = qw(Exporter);
47999 \$Cpreprocessor = '$tmp_cpp';
48006 ## ---------------------------------- ##
48007 ## Start of distclean amending code ##
48008 ## ---------------------------------- ##
48010 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
48013 if test ! -f "$xc_subdir/Makefile"; then
48014 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
48018 # Fetch dependency tracking file list from Makefile include lines.
48020 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
48021 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
48023 # --disable-dependency-tracking might have been used, consequently
48024 # there is nothing to amend without a dependency tracking file list.
48026 if test $xc_cnt_words -gt 0; then
48028 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
48029 printf "%s\n" "$as_me: amending $xc_subdir/Makefile" >&6;}
48031 # Build Makefile specific patch hunk.
48033 xc_p="$xc_subdir/xc_patch.tmp"
48035 xc_rm_depfiles=`echo "$xc_inc_lines" \
48036 | $SED 's%include% -rm -f%' 2>/dev/null`
48038 xc_dep_subdirs=`echo "$xc_inc_lines" \
48039 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
48040 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
48043 echo "$xc_rm_depfiles" >$xc_p
48045 for xc_dep_dir in $xc_dep_subdirs; do
48046 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
48047 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
48048 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
48049 echo "${xc_tab}fi" >>$xc_p
48052 # Build Makefile patching sed scripts.
48054 xc_s1="$xc_subdir/xc_script_1.tmp"
48055 xc_s2="$xc_subdir/xc_script_2.tmp"
48056 xc_s3="$xc_subdir/xc_script_3.tmp"
48058 cat >$xc_s1 <<\_EOT
48059 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
48060 s/^.*(DEPDIR)/___xc_depdir_line___/
48062 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
48063 s/^.*(DEPDIR)/___xc_depdir_line___/
48067 cat >$xc_s2 <<\_EOT
48068 /___xc_depdir_line___$/{
48070 /___xc_depdir_line___$/D
48075 /^___xc_depdir_line___/{
48081 # Apply patch to Makefile and cleanup.
48083 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
48084 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
48085 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
48087 if test -f "$xc_subdir/Makefile.tmp3"; then
48088 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
48091 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
48092 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
48093 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
48095 test -f "$xc_p" && rm -f "$xc_p"
48096 test -f "$xc_s1" && rm -f "$xc_s1"
48097 test -f "$xc_s2" && rm -f "$xc_s2"
48098 test -f "$xc_s3" && rm -f "$xc_s3"
48104 ## -------------------------------- ##
48105 ## End of distclean amending code ##
48106 ## -------------------------------- ##
48110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
48112 Host setup: ${host}
48113 Install prefix: ${prefix}
48116 CPPFLAGS: ${CPPFLAGS}
48117 LDFLAGS: ${LDFLAGS}
48120 curl version: ${CURLVERSION}
48121 SSL: ${curl_ssl_msg}
48122 SSH: ${curl_ssh_msg}
48123 zlib: ${curl_zlib_msg}
48124 brotli: ${curl_brotli_msg}
48125 zstd: ${curl_zstd_msg}
48126 GSS-API: ${curl_gss_msg}
48127 GSASL: ${curl_gsasl_msg}
48128 TLS-SRP: ${curl_tls_srp_msg}
48129 resolver: ${curl_res_msg}
48130 IPv6: ${curl_ipv6_msg}
48131 Unix sockets: ${curl_unix_sockets_msg}
48132 IDN: ${curl_idn_msg}
48133 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
48134 Built-in manual: ${curl_manual_msg}
48135 --libcurl option: ${curl_libcurl_msg}
48136 Verbose errors: ${curl_verbose_msg}
48137 Code coverage: ${curl_coverage_msg}
48138 SSPI: ${curl_sspi_msg}
48139 ca cert bundle: ${ca}${ca_warning}
48140 ca cert path: ${capath}${capath_warning}
48141 ca fallback: ${with_ca_fallback}
48142 LDAP: ${curl_ldap_msg}
48143 LDAPS: ${curl_ldaps_msg}
48144 RTSP: ${curl_rtsp_msg}
48145 RTMP: ${curl_rtmp_msg}
48146 PSL: ${curl_psl_msg}
48147 Alt-svc: ${curl_altsvc_msg}
48148 Headers API: ${curl_headers_msg}
48149 HSTS: ${curl_hsts_msg}
48150 HTTP1: ${curl_h1_msg}
48151 HTTP2: ${curl_h2_msg}
48152 HTTP3: ${curl_h3_msg}
48153 ECH: ${curl_ech_msg}
48154 WebSockets: ${curl_ws_msg}
48155 Protocols: ${SUPPORT_PROTOCOLS}
48156 Features: ${SUPPORT_FEATURES}
48158 printf "%s\n" "$as_me: Configured to build curl/libcurl:
48160 Host setup: ${host}
48161 Install prefix: ${prefix}
48164 CPPFLAGS: ${CPPFLAGS}
48165 LDFLAGS: ${LDFLAGS}
48168 curl version: ${CURLVERSION}
48169 SSL: ${curl_ssl_msg}
48170 SSH: ${curl_ssh_msg}
48171 zlib: ${curl_zlib_msg}
48172 brotli: ${curl_brotli_msg}
48173 zstd: ${curl_zstd_msg}
48174 GSS-API: ${curl_gss_msg}
48175 GSASL: ${curl_gsasl_msg}
48176 TLS-SRP: ${curl_tls_srp_msg}
48177 resolver: ${curl_res_msg}
48178 IPv6: ${curl_ipv6_msg}
48179 Unix sockets: ${curl_unix_sockets_msg}
48180 IDN: ${curl_idn_msg}
48181 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
48182 Built-in manual: ${curl_manual_msg}
48183 --libcurl option: ${curl_libcurl_msg}
48184 Verbose errors: ${curl_verbose_msg}
48185 Code coverage: ${curl_coverage_msg}
48186 SSPI: ${curl_sspi_msg}
48187 ca cert bundle: ${ca}${ca_warning}
48188 ca cert path: ${capath}${capath_warning}
48189 ca fallback: ${with_ca_fallback}
48190 LDAP: ${curl_ldap_msg}
48191 LDAPS: ${curl_ldaps_msg}
48192 RTSP: ${curl_rtsp_msg}
48193 RTMP: ${curl_rtmp_msg}
48194 PSL: ${curl_psl_msg}
48195 Alt-svc: ${curl_altsvc_msg}
48196 Headers API: ${curl_headers_msg}
48197 HSTS: ${curl_hsts_msg}
48198 HTTP1: ${curl_h1_msg}
48199 HTTP2: ${curl_h2_msg}
48200 HTTP3: ${curl_h3_msg}
48201 ECH: ${curl_ech_msg}
48202 WebSockets: ${curl_ws_msg}
48203 Protocols: ${SUPPORT_PROTOCOLS}
48204 Features: ${SUPPORT_FEATURES}
48206 if test -n "$experimental"; then
48208 WARNING: $experimental enabled but marked EXPERIMENTAL. Use with caution!