2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for curl -.
5 # Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
14 # Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
15 # This configure script may be copied, distributed and modified under the
16 # terms of the curl license; see COPYING for more details
18 ## -------------------------------- ##
19 ## XC_CONFIGURE_PREAMBLE ver: 1.0 ##
20 ## -------------------------------- ##
22 xc_configure_preamble_ver_major='1'
23 xc_configure_preamble_ver_minor='0'
26 # Set IFS to space, tab and newline.
33 IFS="$xc_space$xc_tab$xc_newline"
36 # Set internationalization behavior variables.
47 # Some useful variables.
50 xc_msg_warn='configure: WARNING:'
51 xc_msg_abrt='Can not continue.'
52 xc_msg_err='configure: error:'
55 # Verify that 'echo' command is available, otherwise abort.
59 (`echo "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
60 case "x$xc_tst_str" in # ((
65 # Try built-in echo, and fail.
66 echo "$xc_msg_err 'echo' command not found. $xc_msg_abrt" >&2
72 # Verify that 'test' command is available, otherwise abort.
76 (`test -n "$xc_tst_str" >/dev/null 2>&1`) && xc_tst_str='success'
77 case "x$xc_tst_str" in # ((
82 echo "$xc_msg_err 'test' command not found. $xc_msg_abrt" >&2
88 # Verify that 'PATH' variable is set, otherwise abort.
92 (`test -n "$PATH" >/dev/null 2>&1`) && xc_tst_str='success'
93 case "x$xc_tst_str" in # ((
98 echo "$xc_msg_err 'PATH' variable not set. $xc_msg_abrt" >&2
104 # Verify that 'expr' command is available, otherwise abort.
108 xc_tst_str=`expr "$xc_tst_str" : '.*' 2>/dev/null`
109 case "x$xc_tst_str" in # ((
114 echo "$xc_msg_err 'expr' command not found. $xc_msg_abrt" >&2
120 # Verify that 'sed' utility is found within 'PATH', otherwise abort.
124 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
125 | sed -e 's:unknown:success:' 2>/dev/null`
126 case "x$xc_tst_str" in # ((
131 echo "$xc_msg_err 'sed' utility not found in 'PATH'. $xc_msg_abrt" >&2
137 # Verify that 'grep' utility is found within 'PATH', otherwise abort.
141 (`echo "$xc_tst_str" 2>/dev/null \
142 | grep 'unknown' >/dev/null 2>&1`) && xc_tst_str='success'
143 case "x$xc_tst_str" in # ((
148 echo "$xc_msg_err 'grep' utility not found in 'PATH'. $xc_msg_abrt" >&2
154 # Verify that 'tr' utility is found within 'PATH', otherwise abort.
157 xc_tst_str="${xc_tab}98s7u6c5c4e3s2s10"
158 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
159 | tr -d "0123456789$xc_tab" 2>/dev/null`
160 case "x$xc_tst_str" in # ((
165 echo "$xc_msg_err 'tr' utility not found in 'PATH'. $xc_msg_abrt" >&2
171 # Verify that 'wc' utility is found within 'PATH', otherwise abort.
174 xc_tst_str='unknown unknown unknown unknown'
175 xc_tst_str=`echo "$xc_tst_str" 2>/dev/null \
176 | wc -w 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null`
177 case "x$xc_tst_str" in # ((
182 echo "$xc_msg_err 'wc' utility not found in 'PATH'. $xc_msg_abrt" >&2
188 # Verify that 'cat' utility is found within 'PATH', otherwise abort.
192 xc_tst_str=`cat <<_EOT 2>/dev/null \
193 | wc -l 2>/dev/null | tr -d "$xc_space$xc_tab" 2>/dev/null
198 case "x$xc_tst_str" in # ((
203 echo "$xc_msg_err 'cat' utility not found in 'PATH'. $xc_msg_abrt" >&2
209 # Auto-detect and set 'PATH_SEPARATOR', unless it is already non-empty set.
212 # Directory count in 'PATH' when using a colon separator.
214 xc_tst_prev_IFS=$IFS; IFS=':'
215 for xc_tst_dir in $PATH; do
217 xc_tst_dirs_col="x$xc_tst_dirs_col"
220 xc_tst_dirs_col=`expr "$xc_tst_dirs_col" : '.*'`
222 # Directory count in 'PATH' when using a semicolon separator.
224 xc_tst_prev_IFS=$IFS; IFS=';'
225 for xc_tst_dir in $PATH; do
227 xc_tst_dirs_sem="x$xc_tst_dirs_sem"
230 xc_tst_dirs_sem=`expr "$xc_tst_dirs_sem" : '.*'`
232 if test $xc_tst_dirs_sem -eq $xc_tst_dirs_col; then
233 # When both counting methods give the same result we do not want to
234 # chose one over the other, and consider auto-detection not possible.
235 if test -z "$PATH_SEPARATOR"; then
236 # Stop dead until user provides 'PATH_SEPARATOR' definition.
237 echo "$xc_msg_err 'PATH_SEPARATOR' variable not set. $xc_msg_abrt" >&2
241 # Separator with the greater directory count is the auto-detected one.
242 if test $xc_tst_dirs_sem -gt $xc_tst_dirs_col; then
243 xc_tst_auto_separator=';'
245 xc_tst_auto_separator=':'
247 if test -z "$PATH_SEPARATOR"; then
248 # Simply use the auto-detected one when not already set.
249 PATH_SEPARATOR=$xc_tst_auto_separator
250 elif test "x$PATH_SEPARATOR" != "x$xc_tst_auto_separator"; then
251 echo "$xc_msg_warn 'PATH_SEPARATOR' does not match auto-detected one." >&2
254 xc_PATH_SEPARATOR=$PATH_SEPARATOR
256 xc_configure_preamble_result='yes'
259 ## -------------------- ##
260 ## M4sh Initialization. ##
261 ## -------------------- ##
263 # Be more Bourne compatible
264 DUALCASE=1; export DUALCASE # for MKS sh
265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
269 # is contrary to our usage. Disable this feature.
270 alias -g '${1+"$@"}'='"$@"'
273 case `(set -o) 2>/dev/null` in #(
285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
289 # Prefer a ksh shell builtin over an external printf program on Solaris,
290 # but without wasting forks for bash or zsh.
291 if test -z "$BASH_VERSION$ZSH_VERSION" \
292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
293 as_echo='print -r --'
294 as_echo_n='print -rn --'
295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
296 as_echo='printf %s\n'
297 as_echo_n='printf %s'
299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
301 as_echo_n='/usr/ucb/echo -n'
303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
308 expr "X$arg" : "X\\(.*\\)$as_nl";
309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
313 export as_echo_n_body
314 as_echo_n='sh -c $as_echo_n_body as_echo'
317 as_echo='sh -c $as_echo_body as_echo'
323 # We need space, tab and new line, in precisely that order. Quoting is
324 # there to prevent editors from complaining about space-tab.
325 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
326 # splitting by setting IFS to empty value.)
329 # Find who we are. Look in the path if we contain no directory separator.
332 *[\\/]* ) as_myself=$0 ;;
333 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
337 test -z "$as_dir" && as_dir=.
338 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
344 # We did not find ourselves, most probably we were run as `sh COMMAND'
345 # in which case we are not to be found in the path.
346 if test "x$as_myself" = x; then
349 if test ! -f "$as_myself"; then
350 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
354 # Unset variables that we do not need and which cause bugs (e.g. in
355 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
356 # suppresses any "Segmentation fault" message there. '((' could
357 # trigger a bug in pdksh 5.2.14.
358 for as_var in BASH_ENV ENV MAIL MAILPATH
359 do eval test x\${$as_var+set} = xset \
360 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
373 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
375 # Use a proper internal environment variable to ensure we don't fall
376 # into an infinite loop, continuously re-executing ourselves.
377 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
378 _as_can_reexec=no; export _as_can_reexec;
379 # We cannot yet assume a decent shell, so we have to provide a
380 # neutralization value for shells without unset; and this also
381 # works around shells that cannot unset nonexistent variables.
382 # Preserve -v and -x to the replacement shell.
385 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
387 *v*x* | *x*v* ) as_opts=-vx ;;
392 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
393 # Admittedly, this is quite paranoid, since all the known shells bail
394 # out after a failed `exec'.
395 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
398 # We don't want this to propagate to other subprocesses.
399 { _as_can_reexec=; unset _as_can_reexec;}
400 if test "x$CONFIG_SHELL" = x; then
401 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
404 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
405 # is contrary to our usage. Disable this feature.
406 alias -g '\${1+\"\$@\"}'='\"\$@\"'
409 case \`(set -o) 2>/dev/null\` in #(
417 as_required="as_fn_return () { (exit \$1); }
418 as_fn_success () { as_fn_return 0; }
419 as_fn_failure () { as_fn_return 1; }
420 as_fn_ret_success () { return 0; }
421 as_fn_ret_failure () { return 1; }
424 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
425 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
426 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
427 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
428 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
431 exitcode=1; echo positional parameters were not saved.
433 test x\$exitcode = x0 || exit 1
435 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
436 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
437 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
438 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
439 test \$(( 1 + 1 )) = 2 || exit 1
441 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
442 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
443 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
444 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
445 PATH=/empty FPATH=/empty; export PATH FPATH
446 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
447 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
448 if (eval "$as_required") 2>/dev/null; then :
453 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
458 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
461 test -z "$as_dir" && as_dir=.
465 for as_base in sh bash ksh sh5; do
466 # Try only shells that exist, to save several forks.
467 as_shell=$as_dir/$as_base
468 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
469 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
470 CONFIG_SHELL=$as_shell as_have_required=yes
471 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
479 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
480 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
481 CONFIG_SHELL=$SHELL as_have_required=yes
486 if test "x$CONFIG_SHELL" != x; then :
488 # We cannot yet assume a decent shell, so we have to provide a
489 # neutralization value for shells without unset; and this also
490 # works around shells that cannot unset nonexistent variables.
491 # Preserve -v and -x to the replacement shell.
494 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
496 *v*x* | *x*v* ) as_opts=-vx ;;
501 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
502 # Admittedly, this is quite paranoid, since all the known shells bail
503 # out after a failed `exec'.
504 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
508 if test x$as_have_required = xno; then :
509 $as_echo "$0: This script requires a shell more modern than all"
510 $as_echo "$0: the shells that I found on your system."
511 if test x${ZSH_VERSION+set} = xset ; then
512 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
513 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
515 $as_echo "$0: Please tell bug-autoconf@gnu.org and a suitable curl
516 $0: mailing list: http://curl.haxx.se/mail/ about your
517 $0: system, including any error possibly output before this
518 $0: message. Then install a modern shell, or manually run
519 $0: the script under such a shell if you do have one."
525 SHELL=${CONFIG_SHELL-/bin/sh}
527 # Unset more variables known to interfere with behavior of common tools.
528 CLICOLOR_FORCE= GREP_OPTIONS=
529 unset CLICOLOR_FORCE GREP_OPTIONS
531 ## --------------------- ##
532 ## M4sh Shell Functions. ##
533 ## --------------------- ##
536 # Portably unset VAR.
539 { eval $1=; unset $1;}
543 # as_fn_set_status STATUS
544 # -----------------------
545 # Set $? to STATUS, without forking.
553 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
563 # Create "$as_dir" as a directory, including parents if necessary.
568 -*) as_dir=./$as_dir;;
570 test -d "$as_dir" || eval $as_mkdir_p || {
574 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
577 as_dirs="'$as_qdir' $as_dirs"
578 as_dir=`$as_dirname -- "$as_dir" ||
579 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
580 X"$as_dir" : 'X\(//\)[^/]' \| \
581 X"$as_dir" : 'X\(//\)$' \| \
582 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
583 $as_echo X"$as_dir" |
584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
601 test -d "$as_dir" && break
603 test -z "$as_dirs" || eval "mkdir $as_dirs"
604 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
609 # as_fn_executable_p FILE
610 # -----------------------
611 # Test if FILE is an executable regular file.
612 as_fn_executable_p ()
614 test -f "$1" && test -x "$1"
615 } # as_fn_executable_p
616 # as_fn_append VAR VALUE
617 # ----------------------
618 # Append the text in VALUE to the end of the definition contained in VAR. Take
619 # advantage of any shell optimizations that allow amortized linear growth over
620 # repeated appends, instead of the typical quadratic growth present in naive
622 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
623 eval 'as_fn_append ()
636 # Perform arithmetic evaluation on the ARGs, and store the result in the
637 # global $as_val. Take advantage of shells that can avoid forks. The arguments
638 # must be portable across $(()) and expr.
639 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
647 as_val=`expr "$@" || test $? -eq 1`
652 # as_fn_error STATUS ERROR [LINENO LOG_FD]
653 # ----------------------------------------
654 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
655 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
656 # script with STATUS, using 1 if that was 0.
659 as_status=$1; test $as_status -eq 0 && as_status=1
661 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
662 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
664 $as_echo "$as_me: error: $2" >&2
665 as_fn_exit $as_status
668 if expr a : '\(a\)' >/dev/null 2>&1 &&
669 test "X`expr 00001 : '.*\(...\)'`" = X001; then
675 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
681 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
687 as_me=`$as_basename -- "$0" ||
688 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
689 X"$0" : 'X\(//\)$' \| \
690 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
692 sed '/^.*\/\([^/][^/]*\)\/*$/{
706 # Avoid depending upon Character Ranges.
707 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
708 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
709 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
710 as_cr_digits='0123456789'
711 as_cr_alnum=$as_cr_Letters$as_cr_digits
714 as_lineno_1=$LINENO as_lineno_1a=$LINENO
715 as_lineno_2=$LINENO as_lineno_2a=$LINENO
716 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
717 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
718 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
730 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
734 chmod +x "$as_me.lineno" ||
735 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
737 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
738 # already done that, so ensure we don't try to do so again and fall
739 # in an infinite loop. This has already happened in practice.
740 _as_can_reexec=no; export _as_can_reexec
741 # Don't try to exec as it changes $[0], causing all sort of problems
742 # (the dirname of $[0] is not the place where we might find the
743 # original and so on. Autoconf is especially sensitive to this).
745 # Exit status is that of the last command.
749 ECHO_C= ECHO_N= ECHO_T=
750 case `echo -n x` in #(((((
752 case `echo 'xy\c'` in
753 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
755 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
762 rm -f conf$$ conf$$.exe conf$$.file
763 if test -d conf$$.dir; then
764 rm -f conf$$.dir/conf$$.file
767 mkdir conf$$.dir 2>/dev/null
769 if (echo >conf$$.file) 2>/dev/null; then
770 if ln -s conf$$.file conf$$ 2>/dev/null; then
772 # ... but there are two gotchas:
773 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
774 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
775 # In both cases, we have to default to `cp -pR'.
776 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
778 elif ln conf$$.file conf$$ 2>/dev/null; then
786 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
787 rmdir conf$$.dir 2>/dev/null
789 if mkdir -p . 2>/dev/null; then
790 as_mkdir_p='mkdir -p "$as_dir"'
792 test -d ./-p && rmdir ./-p
797 as_executable_p=as_fn_executable_p
799 # Sed expression to map a string onto a valid CPP name.
800 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
802 # Sed expression to map a string onto a valid variable name.
803 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
805 SHELL=${CONFIG_SHELL-/bin/sh}
808 test -n "$DJDIR" || exec 7<&0 </dev/null
812 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
813 # so uname gets run too.
814 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
819 ac_default_prefix=/usr/local
821 ac_config_libobj_dir=.
828 # Identity of this package.
830 PACKAGE_TARNAME='curl'
832 PACKAGE_STRING='curl -'
833 PACKAGE_BUGREPORT='a suitable curl mailing list: http://curl.haxx.se/mail/'
836 ac_unique_file="lib/urldata.h"
837 # Factoring default headers for most tests.
838 ac_includes_default="\
840 #ifdef HAVE_SYS_TYPES_H
841 # include <sys/types.h>
843 #ifdef HAVE_SYS_STAT_H
844 # include <sys/stat.h>
850 # ifdef HAVE_STDLIB_H
855 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
860 #ifdef HAVE_STRINGS_H
861 # include <strings.h>
863 #ifdef HAVE_INTTYPES_H
864 # include <inttypes.h>
873 enable_option_checking=no
874 ac_subst_vars='am__EXEEXT_FALSE
885 CURL_NETWORK_AND_TIME_LIBS
890 CFLAG_CURL_SYMBOL_HIDING
891 DOING_CURL_SYMBOL_HIDING_FALSE
892 DOING_CURL_SYMBOL_HIDING_TRUE
894 BUILD_LIBHOSTNAME_FALSE
895 BUILD_LIBHOSTNAME_TRUE
896 USE_EMBEDDED_ARES_FALSE
897 USE_EMBEDDED_ARES_TRUE
908 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE
909 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE
910 CURL_LT_SHLIB_VERSIONED_FLAVOUR
954 DOING_NATIVE_WINDOWS_FALSE
955 DOING_NATIVE_WINDOWS_TRUE
956 BUILD_UNITTESTS_FALSE
960 USE_EXPLICIT_LIB_DEPS_FALSE
961 USE_EXPLICIT_LIB_DEPS_TRUE
963 CPPFLAG_CURL_STATICLIB
964 USE_CPPFLAG_CURL_STATICLIB_FALSE
965 USE_CPPFLAG_CURL_STATICLIB_TRUE
966 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE
967 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE
968 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE
969 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE
970 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE
971 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE
1004 AM_DEFAULT_VERBOSITY
1025 INSTALL_STRIP_PROGRAM
1056 MAINTAINER_MODE_FALSE
1057 MAINTAINER_MODE_TRUE
1085 program_transform_name
1098 enable_option_checking
1099 enable_maintainer_mode
1105 enable_symbol_hiding
1106 enable_hidden_symbols
1108 enable_dependency_tracking
1134 enable_libcurl_option
1140 with_gssapi_includes
1158 enable_versioned_symbols
1162 enable_threaded_resolver
1172 ac_precious_vars='build_alias
1181 ac_subdirs_all='ares'
1183 # Initialize some variables set by options.
1185 ac_init_version=false
1186 ac_unrecognized_opts=
1187 ac_unrecognized_sep=
1188 # The variables have the same names as the options, with
1189 # dashes changed to underlines.
1190 cache_file=/dev/null
1197 program_transform_name=s,x,x,
1205 # Installation directory options.
1206 # These are left unexpanded so users can "make install exec_prefix=/foo"
1207 # and all the variables that are supposed to be based on exec_prefix
1208 # by default will actually change.
1209 # Use braces instead of parens because sh, perl, etc. also accept them.
1210 # (The list follows the same order as the GNU Coding Standards.)
1211 bindir='${exec_prefix}/bin'
1212 sbindir='${exec_prefix}/sbin'
1213 libexecdir='${exec_prefix}/libexec'
1214 datarootdir='${prefix}/share'
1215 datadir='${datarootdir}'
1216 sysconfdir='${prefix}/etc'
1217 sharedstatedir='${prefix}/com'
1218 localstatedir='${prefix}/var'
1219 includedir='${prefix}/include'
1220 oldincludedir='/usr/include'
1221 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1222 infodir='${datarootdir}/info'
1227 libdir='${exec_prefix}/lib'
1228 localedir='${datarootdir}/locale'
1229 mandir='${datarootdir}/man'
1235 # If the previous option needs an argument, assign it.
1236 if test -n "$ac_prev"; then
1237 eval $ac_prev=\$ac_option
1243 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1248 # Accept the important Cygnus configure options, so we can diagnose typos.
1250 case $ac_dashdash$ac_option in
1254 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1256 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1257 bindir=$ac_optarg ;;
1259 -build | --build | --buil | --bui | --bu)
1260 ac_prev=build_alias ;;
1261 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1262 build_alias=$ac_optarg ;;
1264 -cache-file | --cache-file | --cache-fil | --cache-fi \
1265 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1266 ac_prev=cache_file ;;
1267 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1268 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1269 cache_file=$ac_optarg ;;
1271 --config-cache | -C)
1272 cache_file=config.cache ;;
1274 -datadir | --datadir | --datadi | --datad)
1276 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1277 datadir=$ac_optarg ;;
1279 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1280 | --dataroo | --dataro | --datar)
1281 ac_prev=datarootdir ;;
1282 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1283 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1284 datarootdir=$ac_optarg ;;
1286 -disable-* | --disable-*)
1287 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1288 # Reject names that are not valid shell variable names.
1289 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1290 as_fn_error $? "invalid feature name: $ac_useropt"
1291 ac_useropt_orig=$ac_useropt
1292 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1293 case $ac_user_opts in
1295 "enable_$ac_useropt"
1297 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1298 ac_unrecognized_sep=', ';;
1300 eval enable_$ac_useropt=no ;;
1302 -docdir | --docdir | --docdi | --doc | --do)
1304 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1305 docdir=$ac_optarg ;;
1307 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1309 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1310 dvidir=$ac_optarg ;;
1312 -enable-* | --enable-*)
1313 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1314 # Reject names that are not valid shell variable names.
1315 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1316 as_fn_error $? "invalid feature name: $ac_useropt"
1317 ac_useropt_orig=$ac_useropt
1318 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1319 case $ac_user_opts in
1321 "enable_$ac_useropt"
1323 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1324 ac_unrecognized_sep=', ';;
1326 eval enable_$ac_useropt=\$ac_optarg ;;
1328 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1329 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1330 | --exec | --exe | --ex)
1331 ac_prev=exec_prefix ;;
1332 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1333 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1334 | --exec=* | --exe=* | --ex=*)
1335 exec_prefix=$ac_optarg ;;
1337 -gas | --gas | --ga | --g)
1338 # Obsolete; use --with-gas.
1341 -help | --help | --hel | --he | -h)
1342 ac_init_help=long ;;
1343 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1344 ac_init_help=recursive ;;
1345 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1346 ac_init_help=short ;;
1348 -host | --host | --hos | --ho)
1349 ac_prev=host_alias ;;
1350 -host=* | --host=* | --hos=* | --ho=*)
1351 host_alias=$ac_optarg ;;
1353 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1355 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1357 htmldir=$ac_optarg ;;
1359 -includedir | --includedir | --includedi | --included | --include \
1360 | --includ | --inclu | --incl | --inc)
1361 ac_prev=includedir ;;
1362 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1363 | --includ=* | --inclu=* | --incl=* | --inc=*)
1364 includedir=$ac_optarg ;;
1366 -infodir | --infodir | --infodi | --infod | --info | --inf)
1368 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1369 infodir=$ac_optarg ;;
1371 -libdir | --libdir | --libdi | --libd)
1373 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1374 libdir=$ac_optarg ;;
1376 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1377 | --libexe | --libex | --libe)
1378 ac_prev=libexecdir ;;
1379 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1380 | --libexe=* | --libex=* | --libe=*)
1381 libexecdir=$ac_optarg ;;
1383 -localedir | --localedir | --localedi | --localed | --locale)
1384 ac_prev=localedir ;;
1385 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1386 localedir=$ac_optarg ;;
1388 -localstatedir | --localstatedir | --localstatedi | --localstated \
1389 | --localstate | --localstat | --localsta | --localst | --locals)
1390 ac_prev=localstatedir ;;
1391 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1392 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1393 localstatedir=$ac_optarg ;;
1395 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1397 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1398 mandir=$ac_optarg ;;
1400 -nfp | --nfp | --nf)
1401 # Obsolete; use --without-fp.
1404 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1405 | --no-cr | --no-c | -n)
1408 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1409 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1412 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1413 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1414 | --oldin | --oldi | --old | --ol | --o)
1415 ac_prev=oldincludedir ;;
1416 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1417 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1418 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1419 oldincludedir=$ac_optarg ;;
1421 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1423 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1424 prefix=$ac_optarg ;;
1426 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1427 | --program-pre | --program-pr | --program-p)
1428 ac_prev=program_prefix ;;
1429 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1430 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1431 program_prefix=$ac_optarg ;;
1433 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1434 | --program-suf | --program-su | --program-s)
1435 ac_prev=program_suffix ;;
1436 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1437 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1438 program_suffix=$ac_optarg ;;
1440 -program-transform-name | --program-transform-name \
1441 | --program-transform-nam | --program-transform-na \
1442 | --program-transform-n | --program-transform- \
1443 | --program-transform | --program-transfor \
1444 | --program-transfo | --program-transf \
1445 | --program-trans | --program-tran \
1446 | --progr-tra | --program-tr | --program-t)
1447 ac_prev=program_transform_name ;;
1448 -program-transform-name=* | --program-transform-name=* \
1449 | --program-transform-nam=* | --program-transform-na=* \
1450 | --program-transform-n=* | --program-transform-=* \
1451 | --program-transform=* | --program-transfor=* \
1452 | --program-transfo=* | --program-transf=* \
1453 | --program-trans=* | --program-tran=* \
1454 | --progr-tra=* | --program-tr=* | --program-t=*)
1455 program_transform_name=$ac_optarg ;;
1457 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1459 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1460 pdfdir=$ac_optarg ;;
1462 -psdir | --psdir | --psdi | --psd | --ps)
1464 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1467 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1468 | -silent | --silent | --silen | --sile | --sil)
1471 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1473 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1475 sbindir=$ac_optarg ;;
1477 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1478 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1479 | --sharedst | --shareds | --shared | --share | --shar \
1481 ac_prev=sharedstatedir ;;
1482 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1483 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1484 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1486 sharedstatedir=$ac_optarg ;;
1488 -site | --site | --sit)
1490 -site=* | --site=* | --sit=*)
1493 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1495 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1496 srcdir=$ac_optarg ;;
1498 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1499 | --syscon | --sysco | --sysc | --sys | --sy)
1500 ac_prev=sysconfdir ;;
1501 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1502 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1503 sysconfdir=$ac_optarg ;;
1505 -target | --target | --targe | --targ | --tar | --ta | --t)
1506 ac_prev=target_alias ;;
1507 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1508 target_alias=$ac_optarg ;;
1510 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1513 -version | --version | --versio | --versi | --vers | -V)
1514 ac_init_version=: ;;
1517 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1518 # Reject names that are not valid shell variable names.
1519 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1520 as_fn_error $? "invalid package name: $ac_useropt"
1521 ac_useropt_orig=$ac_useropt
1522 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1523 case $ac_user_opts in
1527 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1528 ac_unrecognized_sep=', ';;
1530 eval with_$ac_useropt=\$ac_optarg ;;
1532 -without-* | --without-*)
1533 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1534 # Reject names that are not valid shell variable names.
1535 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1536 as_fn_error $? "invalid package name: $ac_useropt"
1537 ac_useropt_orig=$ac_useropt
1538 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1539 case $ac_user_opts in
1543 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1544 ac_unrecognized_sep=', ';;
1546 eval with_$ac_useropt=no ;;
1549 # Obsolete; use --with-x.
1552 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1553 | --x-incl | --x-inc | --x-in | --x-i)
1554 ac_prev=x_includes ;;
1555 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1556 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1557 x_includes=$ac_optarg ;;
1559 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1560 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1561 ac_prev=x_libraries ;;
1562 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1563 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1564 x_libraries=$ac_optarg ;;
1566 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1567 Try \`$0 --help' for more information"
1571 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1572 # Reject names that are not valid shell variable names.
1573 case $ac_envvar in #(
1574 '' | [0-9]* | *[!_$as_cr_alnum]* )
1575 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1577 eval $ac_envvar=\$ac_optarg
1578 export $ac_envvar ;;
1581 # FIXME: should be removed in autoconf 3.0.
1582 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1583 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1584 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1585 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1591 if test -n "$ac_prev"; then
1592 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1593 as_fn_error $? "missing argument to $ac_option"
1596 if test -n "$ac_unrecognized_opts"; then
1597 case $enable_option_checking in
1599 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1600 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1604 # Check all directory arguments for consistency.
1605 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1606 datadir sysconfdir sharedstatedir localstatedir includedir \
1607 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1608 libdir localedir mandir
1610 eval ac_val=\$$ac_var
1611 # Remove trailing slashes.
1614 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1615 eval $ac_var=\$ac_val;;
1617 # Be sure to have absolute directory names.
1619 [\\/$]* | ?:[\\/]* ) continue;;
1620 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1622 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1625 # There might be people who depend on the old broken behavior: `$host'
1626 # used to hold the argument of --host etc.
1627 # FIXME: To remove some day.
1630 target=$target_alias
1632 # FIXME: To remove some day.
1633 if test "x$host_alias" != x; then
1634 if test "x$build_alias" = x; then
1635 cross_compiling=maybe
1636 elif test "x$build_alias" != "x$host_alias"; then
1642 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1644 test "$silent" = yes && exec 6>/dev/null
1647 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1648 ac_ls_di=`ls -di .` &&
1649 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1650 as_fn_error $? "working directory cannot be determined"
1651 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1652 as_fn_error $? "pwd does not report name of working directory"
1655 # Find the source files, if location was not specified.
1656 if test -z "$srcdir"; then
1657 ac_srcdir_defaulted=yes
1658 # Try the directory containing this script, then the parent directory.
1659 ac_confdir=`$as_dirname -- "$as_myself" ||
1660 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1661 X"$as_myself" : 'X\(//\)[^/]' \| \
1662 X"$as_myself" : 'X\(//\)$' \| \
1663 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1664 $as_echo X"$as_myself" |
1665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1683 if test ! -r "$srcdir/$ac_unique_file"; then
1687 ac_srcdir_defaulted=no
1689 if test ! -r "$srcdir/$ac_unique_file"; then
1690 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1691 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1693 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1695 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1697 # When building in place, set srcdir=.
1698 if test "$ac_abs_confdir" = "$ac_pwd"; then
1701 # Remove unnecessary trailing slashes from srcdir.
1702 # Double slashes in file names in object file debugging info
1703 # mess up M-x gdb in Emacs.
1705 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1707 for ac_var in $ac_precious_vars; do
1708 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1709 eval ac_env_${ac_var}_value=\$${ac_var}
1710 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1711 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1715 # Report the --help message.
1717 if test "$ac_init_help" = "long"; then
1718 # Omit some internal or obsolete options to make the list less imposing.
1719 # This message is too long to be a string in the A/UX 3.1 sh.
1721 \`configure' configures curl - to adapt to many kinds of systems.
1723 Usage: $0 [OPTION]... [VAR=VALUE]...
1725 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1726 VAR=VALUE. See below for descriptions of some of the useful variables.
1728 Defaults for the options are specified in brackets.
1731 -h, --help display this help and exit
1732 --help=short display options specific to this package
1733 --help=recursive display the short help of all the included packages
1734 -V, --version display version information and exit
1735 -q, --quiet, --silent do not print \`checking ...' messages
1736 --cache-file=FILE cache test results in FILE [disabled]
1737 -C, --config-cache alias for \`--cache-file=config.cache'
1738 -n, --no-create do not create output files
1739 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1741 Installation directories:
1742 --prefix=PREFIX install architecture-independent files in PREFIX
1743 [$ac_default_prefix]
1744 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1747 By default, \`make install' will install all the files in
1748 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1749 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1750 for instance \`--prefix=\$HOME'.
1752 For better control, use the options below.
1754 Fine tuning of the installation directories:
1755 --bindir=DIR user executables [EPREFIX/bin]
1756 --sbindir=DIR system admin executables [EPREFIX/sbin]
1757 --libexecdir=DIR program executables [EPREFIX/libexec]
1758 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1759 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1760 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1761 --libdir=DIR object code libraries [EPREFIX/lib]
1762 --includedir=DIR C header files [PREFIX/include]
1763 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1764 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1765 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1766 --infodir=DIR info documentation [DATAROOTDIR/info]
1767 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1768 --mandir=DIR man documentation [DATAROOTDIR/man]
1769 --docdir=DIR documentation root [DATAROOTDIR/doc/curl]
1770 --htmldir=DIR html documentation [DOCDIR]
1771 --dvidir=DIR dvi documentation [DOCDIR]
1772 --pdfdir=DIR pdf documentation [DOCDIR]
1773 --psdir=DIR ps documentation [DOCDIR]
1779 --program-prefix=PREFIX prepend PREFIX to installed program names
1780 --program-suffix=SUFFIX append SUFFIX to installed program names
1781 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1784 --build=BUILD configure for building on BUILD [guessed]
1785 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1789 if test -n "$ac_init_help"; then
1790 case $ac_init_help in
1791 short | recursive ) echo "Configuration of curl -:";;
1796 --disable-option-checking ignore unrecognized --enable/--with options
1797 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1798 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1799 --enable-maintainer-mode
1800 enable make rules and dependencies not useful (and
1801 sometimes confusing) to the casual installer
1802 --enable-debug Enable debug build options
1803 --disable-debug Disable debug build options
1804 --enable-optimize Enable compiler optimizations
1805 --disable-optimize Disable compiler optimizations
1806 --enable-warnings Enable strict compiler warnings
1807 --disable-warnings Disable strict compiler warnings
1808 --enable-werror Enable compiler warnings as errors
1809 --disable-werror Disable compiler warnings as errors
1810 --enable-curldebug Enable curl debug memory tracking
1811 --disable-curldebug Disable curl debug memory tracking
1812 --enable-symbol-hiding Enable hiding of library internal symbols
1813 --disable-symbol-hiding Disable hiding of library internal symbols
1814 --enable-hidden-symbols To be deprecated, use --enable-symbol-hiding
1815 --disable-hidden-symbols
1816 To be deprecated, use --disable-symbol-hiding
1817 --enable-ares[=PATH] Enable c-ares for DNS lookups
1818 --disable-ares Disable c-ares for DNS lookups
1819 --enable-dependency-tracking
1820 do not reject slow dependency extractors
1821 --disable-dependency-tracking
1822 speeds up one-time build
1823 --enable-silent-rules less verbose build output (undo: "make V=1")
1824 --disable-silent-rules verbose build output (undo: "make V=0")
1825 --disable-largefile omit support for large files
1826 --enable-shared[=PKGS] build shared libraries [default=yes]
1827 --enable-static[=PKGS] build static libraries [default=yes]
1828 --enable-fast-install[=PKGS]
1829 optimize for fast installation [default=yes]
1830 --disable-libtool-lock avoid locking (might break parallel builds)
1831 --enable-http Enable HTTP support
1832 --disable-http Disable HTTP support
1833 --enable-ftp Enable FTP support
1834 --disable-ftp Disable FTP support
1835 --enable-file Enable FILE support
1836 --disable-file Disable FILE support
1837 --enable-ldap Enable LDAP support
1838 --disable-ldap Disable LDAP support
1839 --enable-ldaps Enable LDAPS support
1840 --disable-ldaps Disable LDAPS support
1841 --enable-rtsp Enable RTSP support
1842 --disable-rtsp Disable RTSP support
1843 --enable-proxy Enable proxy support
1844 --disable-proxy Disable proxy support
1845 --enable-dict Enable DICT support
1846 --disable-dict Disable DICT support
1847 --enable-telnet Enable TELNET support
1848 --disable-telnet Disable TELNET support
1849 --enable-tftp Enable TFTP support
1850 --disable-tftp Disable TFTP support
1851 --enable-pop3 Enable POP3 support
1852 --disable-pop3 Disable POP3 support
1853 --enable-imap Enable IMAP support
1854 --disable-imap Disable IMAP support
1855 --enable-smb Enable SMB/CIFS support
1856 --disable-smb Disable SMB/CIFS support
1857 --enable-smtp Enable SMTP support
1858 --disable-smtp Disable SMTP support
1859 --enable-gopher Enable Gopher support
1860 --disable-gopher Disable Gopher support
1861 --enable-manual Enable built-in manual
1862 --disable-manual Disable built-in manual
1863 --enable-libcurl-option Enable --libcurl C code generation support
1864 --disable-libcurl-option
1865 Disable --libcurl C code generation support
1866 --enable-libgcc use libgcc when linking
1867 --enable-ipv6 Enable IPv6 (with IPv4) support
1868 --disable-ipv6 Disable IPv6 support
1869 --enable-versioned-symbols
1870 Enable versioned symbols in shared library
1871 --disable-versioned-symbols
1872 Disable versioned symbols in shared library
1873 --enable-threaded-resolver
1874 Enable threaded resolver
1875 --disable-threaded-resolver
1876 Disable threaded resolver
1877 --enable-verbose Enable verbose strings
1878 --disable-verbose Disable verbose strings
1879 --enable-sspi Enable SSPI
1880 --disable-sspi Disable SSPI
1881 --enable-crypto-auth Enable cryptographic authentication
1882 --disable-crypto-auth Disable cryptographic authentication
1883 --enable-ntlm-wb[=FILE] Enable NTLM delegation to winbind's ntlm_auth
1884 helper, where FILE is ntlm_auth's absolute filename
1885 (default: /usr/bin/ntlm_auth)
1886 --disable-ntlm-wb Disable NTLM delegation to winbind's ntlm_auth
1888 --enable-tls-srp Enable TLS-SRP authentication
1889 --disable-tls-srp Disable TLS-SRP authentication
1890 --enable-unix-sockets Enable Unix domain sockets
1891 --disable-unix-sockets Disable Unix domain sockets
1892 --enable-cookies Enable cookies support
1893 --disable-cookies Disable cookies support
1894 --enable-soname-bump Enable enforced SONAME bump
1895 --disable-soname-bump Disable enforced SONAME bump
1898 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1899 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1900 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1902 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1903 --with-sysroot=DIR Search for dependent libraries within DIR
1904 (or the compiler's sysroot if not specified).
1905 --with-zlib=PATH search for zlib in PATH
1906 --without-zlib disable use of zlib
1907 --with-ldap-lib=libname Specify name of ldap lib file
1908 --with-lber-lib=libname Specify name of lber lib file
1909 --with-gssapi-includes=DIR
1910 Specify location of GSS-API headers
1911 --with-gssapi-libs=DIR Specify location of GSS-API libs
1912 --with-gssapi=DIR Where to look for GSS-API
1913 --with-winssl enable Windows native SSL/TLS
1914 --without-winssl disable Windows native SSL/TLS
1915 --with-darwinssl enable iOS/Mac OS X native SSL/TLS
1916 --without-darwinssl disable iOS/Mac OS X native SSL/TLS
1917 --with-ssl=PATH Where to look for OpenSSL, PATH points to the SSL
1918 installation (default: /usr/local/ssl); when
1919 possible, set the PKG_CONFIG_PATH environment
1920 variable instead of using this option
1921 --without-ssl disable OpenSSL
1922 --with-egd-socket=FILE Entropy Gathering Daemon socket pathname
1923 --with-random=FILE read randomness from FILE (default=/dev/urandom)
1924 --with-gnutls=PATH where to look for GnuTLS, PATH points to the
1926 --without-gnutls disable GnuTLS detection
1927 --with-polarssl=PATH where to look for PolarSSL, PATH points to the
1929 --without-polarssl disable PolarSSL detection
1930 --with-cyassl=PATH where to look for CyaSSL, PATH points to the
1931 installation root (default: system lib default)
1932 --without-cyassl disable CyaSSL detection
1933 --with-nss=PATH where to look for NSS, PATH points to the
1935 --without-nss disable NSS detection
1936 --with-axtls=PATH Where to look for axTLS, PATH points to the axTLS
1937 installation prefix (default: /usr/local). Ignored
1938 if another SSL engine is selected.
1939 --without-axtls disable axTLS
1940 --with-ca-bundle=FILE File name to use as CA bundle
1941 --without-ca-bundle Don't use a default CA bundle
1942 --with-ca-path=DIRECTORY
1943 Directory to use as CA path
1944 --without-ca-path Don't use a default CA path
1945 --with-libmetalink=PATH where to look for libmetalink, PATH points to the
1947 --without-libmetalink disable libmetalink detection
1948 --with-libssh2=PATH Where to look for libssh2, PATH points to the
1949 LIBSSH2 installation; when possible, set the
1950 PKG_CONFIG_PATH environment variable instead of
1952 --without-libssh2 disable LIBSSH2
1953 --with-librtmp=PATH Where to look for librtmp, PATH points to the
1954 LIBRTMP installation; when possible, set the
1955 PKG_CONFIG_PATH environment variable instead of
1957 --without-librtmp disable LIBRTMP
1958 --with-winidn=PATH enable Windows native IDN
1959 --without-winidn disable Windows native IDN
1960 --with-libidn=PATH Enable libidn usage
1961 --without-libidn Disable libidn usage
1962 --with-nghttp2=PATH Enable nghttp2 usage
1963 --without-nghttp2 Disable nghttp2 usage
1965 Some influential environment variables:
1966 CC C compiler command
1967 CFLAGS C compiler flags
1968 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1969 nonstandard directory <lib dir>
1970 LIBS libraries to pass to the linker, e.g. -l<library>
1971 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1972 you have headers in a nonstandard directory <include dir>
1975 Use these variables to override the choices made by `configure' or to help
1976 it to find libraries and programs with nonstandard names/locations.
1978 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>.
1983 if test "$ac_init_help" = "recursive"; then
1984 # If there are subdirs, report their specific --help.
1985 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1986 test -d "$ac_dir" ||
1987 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1992 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1994 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1995 # A ".." for each directory in $ac_dir_suffix.
1996 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1997 case $ac_top_builddir_sub in
1998 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1999 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2002 ac_abs_top_builddir=$ac_pwd
2003 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2004 # for backward compatibility:
2005 ac_top_builddir=$ac_top_build_prefix
2008 .) # We are building in place.
2010 ac_top_srcdir=$ac_top_builddir_sub
2011 ac_abs_top_srcdir=$ac_pwd ;;
2012 [\\/]* | ?:[\\/]* ) # Absolute name.
2013 ac_srcdir=$srcdir$ac_dir_suffix;
2014 ac_top_srcdir=$srcdir
2015 ac_abs_top_srcdir=$srcdir ;;
2017 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2018 ac_top_srcdir=$ac_top_build_prefix$srcdir
2019 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2021 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2023 cd "$ac_dir" || { ac_status=$?; continue; }
2024 # Check for guested configure.
2025 if test -f "$ac_srcdir/configure.gnu"; then
2027 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2028 elif test -f "$ac_srcdir/configure"; then
2030 $SHELL "$ac_srcdir/configure" --help=recursive
2032 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2034 cd "$ac_pwd" || { ac_status=$?; break; }
2038 test -n "$ac_init_help" && exit $ac_status
2039 if $ac_init_version; then
2042 generated by GNU Autoconf 2.69
2044 Copyright (C) 2012 Free Software Foundation, Inc.
2045 This configure script is free software; the Free Software Foundation
2046 gives unlimited permission to copy, distribute and modify it.
2048 Copyright (c) 1998 - 2014 Daniel Stenberg, <daniel@haxx.se>
2049 This configure script may be copied, distributed and modified under the
2050 terms of the curl license; see COPYING for more details
2055 ## ------------------------ ##
2056 ## Autoconf initialization. ##
2057 ## ------------------------ ##
2059 # ac_fn_c_try_compile LINENO
2060 # --------------------------
2061 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2062 ac_fn_c_try_compile ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 rm -f conftest.$ac_objext
2066 if { { ac_try="$ac_compile"
2068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2069 *) ac_try_echo=$ac_try;;
2071 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2072 $as_echo "$ac_try_echo"; } >&5
2073 (eval "$ac_compile") 2>conftest.err
2075 if test -s conftest.err; then
2076 grep -v '^ *+' conftest.err >conftest.er1
2077 cat conftest.er1 >&5
2078 mv -f conftest.er1 conftest.err
2080 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2081 test $ac_status = 0; } && {
2082 test -z "$ac_c_werror_flag" ||
2083 test ! -s conftest.err
2084 } && test -s conftest.$ac_objext; then :
2087 $as_echo "$as_me: failed program was:" >&5
2088 sed 's/^/| /' conftest.$ac_ext >&5
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2095 } # ac_fn_c_try_compile
2097 # ac_fn_c_try_cpp LINENO
2098 # ----------------------
2099 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2102 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2103 if { { ac_try="$ac_cpp conftest.$ac_ext"
2105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2106 *) ac_try_echo=$ac_try;;
2108 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2109 $as_echo "$ac_try_echo"; } >&5
2110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2112 if test -s conftest.err; then
2113 grep -v '^ *+' conftest.err >conftest.er1
2114 cat conftest.er1 >&5
2115 mv -f conftest.er1 conftest.err
2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2118 test $ac_status = 0; } > conftest.i && {
2119 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2120 test ! -s conftest.err
2124 $as_echo "$as_me: failed program was:" >&5
2125 sed 's/^/| /' conftest.$ac_ext >&5
2129 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2130 as_fn_set_status $ac_retval
2134 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2135 # -------------------------------------------------------
2136 # Tests whether HEADER exists and can be compiled using the include files in
2137 # INCLUDES, setting the cache variable VAR accordingly.
2138 ac_fn_c_check_header_compile ()
2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2142 $as_echo_n "checking for $2... " >&6; }
2143 if eval \${$3+:} false; then :
2144 $as_echo_n "(cached) " >&6
2146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147 /* end confdefs.h. */
2151 if ac_fn_c_try_compile "$LINENO"; then :
2156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2160 $as_echo "$ac_res" >&6; }
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2163 } # ac_fn_c_check_header_compile
2165 # ac_fn_c_try_run LINENO
2166 # ----------------------
2167 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2168 # that executables *can* be run.
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 if { { ac_try="$ac_link"
2174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2175 *) ac_try_echo=$ac_try;;
2177 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2178 $as_echo "$ac_try_echo"; } >&5
2179 (eval "$ac_link") 2>&5
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2183 { { case "(($ac_try" in
2184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2185 *) ac_try_echo=$ac_try;;
2187 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2188 $as_echo "$ac_try_echo"; } >&5
2189 (eval "$ac_try") 2>&5
2191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2192 test $ac_status = 0; }; }; then :
2195 $as_echo "$as_me: program exited with status $ac_status" >&5
2196 $as_echo "$as_me: failed program was:" >&5
2197 sed 's/^/| /' conftest.$ac_ext >&5
2199 ac_retval=$ac_status
2201 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 as_fn_set_status $ac_retval
2207 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2208 # --------------------------------------------
2209 # Tries to find the compile-time value of EXPR in a program that includes
2210 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2212 ac_fn_c_compute_int ()
2214 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2215 if test "$cross_compiling" = yes; then
2216 # Depending upon the size, compute the lo and hi bounds.
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2222 static int test_array [1 - 2 * !(($2) >= 0)];
2224 return test_array [0];
2230 if ac_fn_c_try_compile "$LINENO"; then :
2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2234 /* end confdefs.h. */
2238 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2240 return test_array [0];
2246 if ac_fn_c_try_compile "$LINENO"; then :
2247 ac_hi=$ac_mid; break
2249 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2250 if test $ac_lo -le $ac_mid; then
2254 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2260 /* end confdefs.h. */
2264 static int test_array [1 - 2 * !(($2) < 0)];
2266 return test_array [0];
2272 if ac_fn_c_try_compile "$LINENO"; then :
2275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2276 /* end confdefs.h. */
2280 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2282 return test_array [0];
2288 if ac_fn_c_try_compile "$LINENO"; then :
2289 ac_lo=$ac_mid; break
2291 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2292 if test $ac_mid -le $ac_hi; then
2296 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2306 # Binary search between lo and hi bounds.
2307 while test "x$ac_lo" != "x$ac_hi"; do
2308 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2310 /* end confdefs.h. */
2314 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2316 return test_array [0];
2322 if ac_fn_c_try_compile "$LINENO"; then :
2325 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2330 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2335 /* end confdefs.h. */
2337 static long int longval () { return $2; }
2338 static unsigned long int ulongval () { return $2; }
2344 FILE *f = fopen ("conftest.val", "w");
2349 long int i = longval ();
2352 fprintf (f, "%ld", i);
2356 unsigned long int i = ulongval ();
2359 fprintf (f, "%lu", i);
2361 /* Do not output a trailing newline, as this causes \r\n confusion
2362 on some platforms. */
2363 return ferror (f) || fclose (f) != 0;
2369 if ac_fn_c_try_run "$LINENO"; then :
2370 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2375 conftest.$ac_objext conftest.beam conftest.$ac_ext
2379 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2380 as_fn_set_status $ac_retval
2382 } # ac_fn_c_compute_int
2384 # ac_fn_c_try_link LINENO
2385 # -----------------------
2386 # Try to link conftest.$ac_ext, and return whether this succeeded.
2389 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2390 rm -f conftest.$ac_objext conftest$ac_exeext
2391 if { { ac_try="$ac_link"
2393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2394 *) ac_try_echo=$ac_try;;
2396 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2397 $as_echo "$ac_try_echo"; } >&5
2398 (eval "$ac_link") 2>conftest.err
2400 if test -s conftest.err; then
2401 grep -v '^ *+' conftest.err >conftest.er1
2402 cat conftest.er1 >&5
2403 mv -f conftest.er1 conftest.err
2405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2406 test $ac_status = 0; } && {
2407 test -z "$ac_c_werror_flag" ||
2408 test ! -s conftest.err
2409 } && test -s conftest$ac_exeext && {
2410 test "$cross_compiling" = yes ||
2411 test -x conftest$ac_exeext
2415 $as_echo "$as_me: failed program was:" >&5
2416 sed 's/^/| /' conftest.$ac_ext >&5
2420 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2421 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2422 # interfere with the next link command; also delete a directory that is
2423 # left behind by Apple's compiler. We do this before executing the actions.
2424 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2425 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2426 as_fn_set_status $ac_retval
2428 } # ac_fn_c_try_link
2430 # ac_fn_c_check_func LINENO FUNC VAR
2431 # ----------------------------------
2432 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2433 ac_fn_c_check_func ()
2435 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2437 $as_echo_n "checking for $2... " >&6; }
2438 if eval \${$3+:} false; then :
2439 $as_echo_n "(cached) " >&6
2441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2442 /* end confdefs.h. */
2444 #define $2 innocuous_$2
2446 # include <limits.h>
2448 # include <assert.h>
2455 #if defined __stub_$2 || defined __stub___$2
2466 if ac_fn_c_try_link "$LINENO"; then :
2471 rm -f core conftest.err conftest.$ac_objext \
2472 conftest$ac_exeext conftest.$ac_ext
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2476 $as_echo "$ac_res" >&6; }
2477 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2479 } # ac_fn_c_check_func
2481 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2482 # -------------------------------------------------------
2483 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2484 # the include files in INCLUDES and setting the cache variable VAR
2486 ac_fn_c_check_header_mongrel ()
2488 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2489 if eval \${$3+:} false; then :
2490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2491 $as_echo_n "checking for $2... " >&6; }
2492 if eval \${$3+:} false; then :
2493 $as_echo_n "(cached) " >&6
2496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2497 $as_echo "$ac_res" >&6; }
2499 # Is the header compilable?
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2501 $as_echo_n "checking $2 usability... " >&6; }
2502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2503 /* end confdefs.h. */
2507 if ac_fn_c_try_compile "$LINENO"; then :
2508 ac_header_compiler=yes
2510 ac_header_compiler=no
2512 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2514 $as_echo "$ac_header_compiler" >&6; }
2516 # Is the header present?
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2518 $as_echo_n "checking $2 presence... " >&6; }
2519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2520 /* end confdefs.h. */
2523 if ac_fn_c_try_cpp "$LINENO"; then :
2524 ac_header_preproc=yes
2526 ac_header_preproc=no
2528 rm -f conftest.err conftest.i conftest.$ac_ext
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2530 $as_echo "$ac_header_preproc" >&6; }
2532 # So? What about this header?
2533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2536 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2538 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2542 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2544 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2546 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2548 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2550 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2551 ( $as_echo "## ---------------------------------------------------------------------- ##
2552 ## Report this to a suitable curl mailing list: http://curl.haxx.se/mail/ ##
2553 ## ---------------------------------------------------------------------- ##"
2554 ) | sed "s/^/$as_me: WARNING: /" >&2
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2558 $as_echo_n "checking for $2... " >&6; }
2559 if eval \${$3+:} false; then :
2560 $as_echo_n "(cached) " >&6
2562 eval "$3=\$ac_header_compiler"
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2566 $as_echo "$ac_res" >&6; }
2568 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2570 } # ac_fn_c_check_header_mongrel
2572 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2573 # -------------------------------------------
2574 # Tests whether TYPE exists after having included INCLUDES, setting cache
2575 # variable VAR accordingly.
2576 ac_fn_c_check_type ()
2578 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2580 $as_echo_n "checking for $2... " >&6; }
2581 if eval \${$3+:} false; then :
2582 $as_echo_n "(cached) " >&6
2585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2586 /* end confdefs.h. */
2596 if ac_fn_c_try_compile "$LINENO"; then :
2597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2598 /* end confdefs.h. */
2608 if ac_fn_c_try_compile "$LINENO"; then :
2613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2619 $as_echo "$ac_res" >&6; }
2620 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2622 } # ac_fn_c_check_type
2624 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2625 # ----------------------------------------------------
2626 # Tries to find if the field MEMBER exists in type AGGR, after including
2627 # INCLUDES, setting cache variable VAR accordingly.
2628 ac_fn_c_check_member ()
2630 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2632 $as_echo_n "checking for $2.$3... " >&6; }
2633 if eval \${$4+:} false; then :
2634 $as_echo_n "(cached) " >&6
2636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2637 /* end confdefs.h. */
2648 if ac_fn_c_try_compile "$LINENO"; then :
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2657 if (sizeof ac_aggr.$3)
2663 if ac_fn_c_try_compile "$LINENO"; then :
2668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2674 $as_echo "$ac_res" >&6; }
2675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677 } # ac_fn_c_check_member
2678 cat >config.log <<_ACEOF
2679 This file contains any messages produced by compilers while
2680 running configure, to aid debugging if configure makes a mistake.
2682 It was created by curl $as_me -, which was
2683 generated by GNU Autoconf 2.69. Invocation command line was
2695 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2696 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2697 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2698 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2699 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2701 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2702 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2704 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2705 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2706 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2707 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2708 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2709 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2710 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2718 test -z "$as_dir" && as_dir=.
2719 $as_echo "PATH: $as_dir"
2735 # Keep a trace of the command line.
2736 # Strip out --no-create and --no-recursion so they do not pile up.
2737 # Strip out --silent because we don't want to record it for future runs.
2738 # Also quote any args containing shell meta-characters.
2739 # Make two passes to allow for proper duplicate-argument suppression.
2743 ac_must_keep_next=false
2749 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2750 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2751 | -silent | --silent | --silen | --sile | --sil)
2754 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2757 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2759 as_fn_append ac_configure_args1 " '$ac_arg'"
2760 if test $ac_must_keep_next = true; then
2761 ac_must_keep_next=false # Got value, back to normal.
2764 *=* | --config-cache | -C | -disable-* | --disable-* \
2765 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2766 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2767 | -with-* | --with-* | -without-* | --without-* | --x)
2768 case "$ac_configure_args0 " in
2769 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2772 -* ) ac_must_keep_next=true ;;
2775 as_fn_append ac_configure_args " '$ac_arg'"
2780 { ac_configure_args0=; unset ac_configure_args0;}
2781 { ac_configure_args1=; unset ac_configure_args1;}
2783 # When interrupted or exit'd, cleanup temporary files, and complete
2784 # config.log. We remove comments because anyway the quotes in there
2785 # would cause problems or look ugly.
2786 # WARNING: Use '\'' to represent an apostrophe within the trap.
2787 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2788 trap 'exit_status=$?
2789 # Save into config.log some information that might help in debugging.
2793 $as_echo "## ---------------- ##
2794 ## Cache variables. ##
2795 ## ---------------- ##"
2797 # The following way of writing the cache mishandles newlines in values,
2799 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2800 eval ac_val=\$$ac_var
2804 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2805 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2808 _ | IFS | as_nl) ;; #(
2809 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2810 *) { eval $ac_var=; unset $ac_var;} ;;
2815 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2816 *${as_nl}ac_space=\ *)
2818 "s/'\''/'\''\\\\'\'''\''/g;
2819 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2822 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2829 $as_echo "## ----------------- ##
2830 ## Output variables. ##
2831 ## ----------------- ##"
2833 for ac_var in $ac_subst_vars
2835 eval ac_val=\$$ac_var
2837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2839 $as_echo "$ac_var='\''$ac_val'\''"
2843 if test -n "$ac_subst_files"; then
2844 $as_echo "## ------------------- ##
2845 ## File substitutions. ##
2846 ## ------------------- ##"
2848 for ac_var in $ac_subst_files
2850 eval ac_val=\$$ac_var
2852 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2854 $as_echo "$ac_var='\''$ac_val'\''"
2859 if test -s confdefs.h; then
2860 $as_echo "## ----------- ##
2867 test "$ac_signal" != 0 &&
2868 $as_echo "$as_me: caught signal $ac_signal"
2869 $as_echo "$as_me: exit $exit_status"
2871 rm -f core *.core core.conftest.* &&
2872 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2875 for ac_signal in 1 2 13 15; do
2876 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2880 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2881 rm -f -r conftest* confdefs.h
2883 $as_echo "/* confdefs.h */" > confdefs.h
2885 # Predefined preprocessor variables.
2887 cat >>confdefs.h <<_ACEOF
2888 #define PACKAGE_NAME "$PACKAGE_NAME"
2891 cat >>confdefs.h <<_ACEOF
2892 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2895 cat >>confdefs.h <<_ACEOF
2896 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2899 cat >>confdefs.h <<_ACEOF
2900 #define PACKAGE_STRING "$PACKAGE_STRING"
2903 cat >>confdefs.h <<_ACEOF
2904 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2907 cat >>confdefs.h <<_ACEOF
2908 #define PACKAGE_URL "$PACKAGE_URL"
2912 # Let the site file select an alternate cache file if it wants to.
2913 # Prefer an explicitly selected file to automatically selected ones.
2916 if test -n "$CONFIG_SITE"; then
2917 # We do not want a PATH search for config.site.
2918 case $CONFIG_SITE in #((
2919 -*) ac_site_file1=./$CONFIG_SITE;;
2920 */*) ac_site_file1=$CONFIG_SITE;;
2921 *) ac_site_file1=./$CONFIG_SITE;;
2923 elif test "x$prefix" != xNONE; then
2924 ac_site_file1=$prefix/share/config.site
2925 ac_site_file2=$prefix/etc/config.site
2927 ac_site_file1=$ac_default_prefix/share/config.site
2928 ac_site_file2=$ac_default_prefix/etc/config.site
2930 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2932 test "x$ac_site_file" = xNONE && continue
2933 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2935 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2936 sed 's/^/| /' "$ac_site_file" >&5
2938 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2940 as_fn_error $? "failed to load site script $ac_site_file
2941 See \`config.log' for more details" "$LINENO" 5; }
2945 if test -r "$cache_file"; then
2946 # Some versions of bash will fail to source /dev/null (special files
2947 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2948 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2950 $as_echo "$as_me: loading cache $cache_file" >&6;}
2952 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2953 *) . "./$cache_file";;
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2958 $as_echo "$as_me: creating cache $cache_file" >&6;}
2962 # Check that the precious variables saved in the cache have kept the same
2964 ac_cache_corrupted=false
2965 for ac_var in $ac_precious_vars; do
2966 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2967 eval ac_new_set=\$ac_env_${ac_var}_set
2968 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2969 eval ac_new_val=\$ac_env_${ac_var}_value
2970 case $ac_old_set,$ac_new_set in
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2973 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2974 ac_cache_corrupted=: ;;
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2977 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2978 ac_cache_corrupted=: ;;
2981 if test "x$ac_old_val" != "x$ac_new_val"; then
2982 # differences in whitespace do not lead to failure.
2983 ac_old_val_w=`echo x $ac_old_val`
2984 ac_new_val_w=`echo x $ac_new_val`
2985 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2987 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2988 ac_cache_corrupted=:
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2991 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2992 eval $ac_var=\$ac_old_val
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2995 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2997 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3000 # Pass precious variables to config.status.
3001 if test "$ac_new_set" = set; then
3003 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3004 *) ac_arg=$ac_var=$ac_new_val ;;
3006 case " $ac_configure_args " in
3007 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3008 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3012 if $ac_cache_corrupted; then
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3014 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3015 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3016 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3017 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3019 ## -------------------- ##
3020 ## Main body of script. ##
3021 ## -------------------- ##
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3035 # using curl-override.m4
3041 ac_config_headers="$ac_config_headers lib/curl_config.h include/curl/curlbuild.h"
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3046 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3047 # Check whether --enable-maintainer-mode was given.
3048 if test "${enable_maintainer_mode+set}" = set; then :
3049 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3051 USE_MAINTAINER_MODE=no
3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3055 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3056 if test $USE_MAINTAINER_MODE = yes; then
3057 MAINTAINER_MODE_TRUE=
3058 MAINTAINER_MODE_FALSE='#'
3060 MAINTAINER_MODE_TRUE='#'
3061 MAINTAINER_MODE_FALSE=
3064 MAINT=$MAINTAINER_MODE_TRUE
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debug build options" >&5
3070 $as_echo_n "checking whether to enable debug build options... " >&6; }
3071 OPT_DEBUG_BUILD="default"
3072 # Check whether --enable-debug was given.
3073 if test "${enable_debug+set}" = set; then :
3074 enableval=$enable_debug; OPT_DEBUG_BUILD=$enableval
3077 case "$OPT_DEBUG_BUILD" in
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_debug" >&5
3089 $as_echo "$want_debug" >&6; }
3092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler optimizer" >&5
3093 $as_echo_n "checking whether to enable compiler optimizer... " >&6; }
3094 OPT_COMPILER_OPTIMIZE="default"
3095 # Check whether --enable-optimize was given.
3096 if test "${enable_optimize+set}" = set; then :
3097 enableval=$enable_optimize; OPT_COMPILER_OPTIMIZE=$enableval
3100 case "$OPT_COMPILER_OPTIMIZE" in
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3104 $as_echo "no" >&6; }
3107 if test "$want_debug" = "yes"; then
3108 want_optimize="assume_no"
3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) no" >&5
3110 $as_echo "(assumed) no" >&6; }
3112 want_optimize="assume_yes"
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3114 $as_echo "(assumed) yes" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3120 $as_echo "yes" >&6; }
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable strict compiler warnings" >&5
3126 $as_echo_n "checking whether to enable strict compiler warnings... " >&6; }
3127 OPT_COMPILER_WARNINGS="default"
3128 # Check whether --enable-warnings was given.
3129 if test "${enable_warnings+set}" = set; then :
3130 enableval=$enable_warnings; OPT_COMPILER_WARNINGS=$enableval
3133 case "$OPT_COMPILER_WARNINGS" in
3138 want_warnings="$want_debug"
3144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_warnings" >&5
3145 $as_echo "$want_warnings" >&6; }
3148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable compiler warnings as errors" >&5
3149 $as_echo_n "checking whether to enable compiler warnings as errors... " >&6; }
3150 OPT_COMPILER_WERROR="default"
3151 # Check whether --enable-werror was given.
3152 if test "${enable_werror+set}" = set; then :
3153 enableval=$enable_werror; OPT_COMPILER_WERROR=$enableval
3156 case "$OPT_COMPILER_WERROR" in
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_werror" >&5
3168 $as_echo "$want_werror" >&6; }
3171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable curl debug memory tracking" >&5
3172 $as_echo_n "checking whether to enable curl debug memory tracking... " >&6; }
3173 OPT_CURLDEBUG_BUILD="default"
3174 # Check whether --enable-curldebug was given.
3175 if test "${enable_curldebug+set}" = set; then :
3176 enableval=$enable_curldebug; OPT_CURLDEBUG_BUILD=$enableval
3179 case "$OPT_CURLDEBUG_BUILD" in
3182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3183 $as_echo "no" >&6; }
3186 if test "$want_debug" = "yes"; then
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
3188 $as_echo "(assumed) yes" >&6; }
3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3191 $as_echo "no" >&6; }
3193 want_curldebug_assumed="yes"
3194 want_curldebug="$want_debug"
3197 want_curldebug="yes"
3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3199 $as_echo "yes" >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hiding of library internal symbols" >&5
3205 $as_echo_n "checking whether to enable hiding of library internal symbols... " >&6; }
3206 OPT_SYMBOL_HIDING="default"
3207 # Check whether --enable-symbol-hiding was given.
3208 if test "${enable_symbol_hiding+set}" = set; then :
3209 enableval=$enable_symbol_hiding; OPT_SYMBOL_HIDING=$enableval
3212 # Check whether --enable-hidden-symbols was given.
3213 if test "${enable_hidden_symbols+set}" = set; then :
3214 enableval=$enable_hidden_symbols; OPT_SYMBOL_HIDING=$enableval
3217 case "$OPT_SYMBOL_HIDING" in
3219 want_symbol_hiding="no"
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3221 $as_echo "no" >&6; }
3224 want_symbol_hiding="yes"
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3226 $as_echo "yes" >&6; }
3229 want_symbol_hiding="yes"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3231 $as_echo "yes" >&6; }
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable c-ares for DNS lookups" >&5
3237 $as_echo_n "checking whether to enable c-ares for DNS lookups... " >&6; }
3239 # Check whether --enable-ares was given.
3240 if test "${enable_ares+set}" = set; then :
3241 enableval=$enable_ares; OPT_ARES=$enableval
3253 if test -n "$enableval" && test "$enableval" != "yes"; then
3254 want_ares_path="$enableval"
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ares" >&5
3259 $as_echo "$want_ares" >&6; }
3263 # Check that 'XC_CONFIGURE_PREAMBLE' has already run.
3266 if test -z "$xc_configure_preamble_result"; then
3267 as_fn_error $? "xc_configure_preamble_result not set (internal problem)" "$LINENO" 5
3271 # Check that 'PATH_SEPARATOR' has already been set.
3274 if test -z "$xc_PATH_SEPARATOR"; then
3275 as_fn_error $? "xc_PATH_SEPARATOR not set (internal problem)" "$LINENO" 5
3277 if test -z "$PATH_SEPARATOR"; then
3278 as_fn_error $? "PATH_SEPARATOR not set (internal or config.site problem)" "$LINENO" 5
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path separator" >&5
3281 $as_echo_n "checking for path separator... " >&6; }
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_SEPARATOR" >&5
3283 $as_echo "$PATH_SEPARATOR" >&6; }
3284 if test "x$PATH_SEPARATOR" != "x$xc_PATH_SEPARATOR"; then
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for initial path separator" >&5
3286 $as_echo_n "checking for initial path separator... " >&6; }
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_PATH_SEPARATOR" >&5
3288 $as_echo "$xc_PATH_SEPARATOR" >&6; }
3289 as_fn_error $? "path separator mismatch (internal or config.site problem)" "$LINENO" 5
3294 # save the configure arguments
3296 CONFIGURE_OPTIONS="\"$ac_configure_args\""
3299 CURL_CFLAG_EXTRAS=""
3300 if test X"$want_werror" = Xyes; then
3301 CURL_CFLAG_EXTRAS="-Werror"
3305 if test -z "$SED"; then
3306 # Extract the first word of "sed", so it can be a program name with args.
3307 set dummy sed; ac_word=$2
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3309 $as_echo_n "checking for $ac_word... " >&6; }
3310 if ${ac_cv_path_SED+:} false; then :
3311 $as_echo_n "(cached) " >&6
3315 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3319 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3320 for as_dir in $as_dummy
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3334 test -z "$ac_cv_path_SED" && ac_cv_path_SED="not_found"
3339 if test -n "$SED"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
3341 $as_echo "$SED" >&6; }
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3348 if test -z "$SED" || test "$SED" = "not_found"; then
3349 as_fn_error $? "sed not found in PATH. Cannot continue without sed." "$LINENO" 5
3354 if test -z "$GREP"; then
3355 # Extract the first word of "grep", so it can be a program name with args.
3356 set dummy grep; ac_word=$2
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358 $as_echo_n "checking for $ac_word... " >&6; }
3359 if ${ac_cv_path_GREP+:} false; then :
3360 $as_echo_n "(cached) " >&6
3364 ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
3367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3368 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3369 for as_dir in $as_dummy
3372 test -z "$as_dir" && as_dir=.
3373 for ac_exec_ext in '' $ac_executable_extensions; do
3374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3375 ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
3376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3383 test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="not_found"
3387 GREP=$ac_cv_path_GREP
3388 if test -n "$GREP"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GREP" >&5
3390 $as_echo "$GREP" >&6; }
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 if test -z "$GREP" || test "$GREP" = "not_found"; then
3398 as_fn_error $? "grep not found in PATH. Cannot continue without grep." "$LINENO" 5
3403 if test -z "$EGREP"; then
3404 if echo a | ($GREP -E '(a|b)') >/dev/null 2>&1; then
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3406 $as_echo_n "checking for egrep... " >&6; }
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3409 $as_echo "$EGREP" >&6; }
3411 # Extract the first word of "egrep", so it can be a program name with args.
3412 set dummy egrep; ac_word=$2
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3414 $as_echo_n "checking for $ac_word... " >&6; }
3415 if ${ac_cv_path_EGREP+:} false; then :
3416 $as_echo_n "(cached) " >&6
3420 ac_cv_path_EGREP="$EGREP" # Let the user override the test with a path.
3423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3424 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3425 for as_dir in $as_dummy
3428 test -z "$as_dir" && as_dir=.
3429 for ac_exec_ext in '' $ac_executable_extensions; do
3430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3431 ac_cv_path_EGREP="$as_dir/$ac_word$ac_exec_ext"
3432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3439 test -z "$ac_cv_path_EGREP" && ac_cv_path_EGREP="not_found"
3443 EGREP=$ac_cv_path_EGREP
3444 if test -n "$EGREP"; then
3445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EGREP" >&5
3446 $as_echo "$EGREP" >&6; }
3448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3449 $as_echo "no" >&6; }
3455 if test -z "$EGREP" || test "$EGREP" = "not_found"; then
3456 as_fn_error $? "egrep not found in PATH. Cannot continue without egrep." "$LINENO" 5
3460 if test -z "$AR"; then
3461 if test -n "$ac_tool_prefix"; then
3462 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
3463 set dummy ${ac_tool_prefix}ar; ac_word=$2
3464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3465 $as_echo_n "checking for $ac_word... " >&6; }
3466 if ${ac_cv_path_AR+:} false; then :
3467 $as_echo_n "(cached) " >&6
3471 ac_cv_path_AR="$AR" # Let the user override the test with a path.
3474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3475 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3476 for as_dir in $as_dummy
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
3483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3494 if test -n "$AR"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3496 $as_echo "$AR" >&6; }
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3504 if test -z "$ac_cv_path_AR"; then
3506 # Extract the first word of "ar", so it can be a program name with args.
3507 set dummy ar; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if ${ac_cv_path_ac_pt_AR+:} false; then :
3511 $as_echo_n "(cached) " >&6
3515 ac_cv_path_ac_pt_AR="$ac_pt_AR" # Let the user override the test with a path.
3518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3519 as_dummy="$PATH:/usr/bin:/usr/local/bin"
3520 for as_dir in $as_dummy
3523 test -z "$as_dir" && as_dir=.
3524 for ac_exec_ext in '' $ac_executable_extensions; do
3525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3526 ac_cv_path_ac_pt_AR="$as_dir/$ac_word$ac_exec_ext"
3527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3537 ac_pt_AR=$ac_cv_path_ac_pt_AR
3538 if test -n "$ac_pt_AR"; then
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_AR" >&5
3540 $as_echo "$ac_pt_AR" >&6; }
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3543 $as_echo "no" >&6; }
3546 if test "x$ac_pt_AR" = x; then
3549 case $cross_compiling:$ac_tool_warned in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3552 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3553 ac_tool_warned=yes ;;
3561 if test -z "$AR" || test "$AR" = "not_found"; then
3562 as_fn_error $? "ar not found in PATH. Cannot continue without ar." "$LINENO" 5
3569 if test -f ${srcdir}/include/curl/curlbuild.h; then
3570 rm -f ${srcdir}/include/curl/curlbuild.h
3573 CURLVERSION=`$SED -ne 's/^#define LIBCURL_VERSION "\(.*\)"/\1/p' ${srcdir}/include/curl/curlver.h`
3575 xc_prog_cc_prev_IFS=$IFS
3576 xc_prog_cc_prev_LIBS=$LIBS
3577 xc_prog_cc_prev_CFLAGS=$CFLAGS
3578 xc_prog_cc_prev_LDFLAGS=$LDFLAGS
3579 xc_prog_cc_prev_CPPFLAGS=$CPPFLAGS
3584 for xc_word in $LIBS; do
3594 if test $xc_bad_var_libs = yes; then
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
3596 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
3597 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
3598 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
3602 xc_bad_var_ldflags=no
3603 for xc_word in $LDFLAGS; do
3606 xc_bad_var_ldflags=yes
3609 xc_bad_var_ldflags=yes
3612 xc_bad_var_ldflags=yes
3615 xc_bad_var_ldflags=yes
3619 if test $xc_bad_var_ldflags = yes; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
3621 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
3622 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
3623 for xc_word in $LDFLAGS; do
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3627 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3631 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3634 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3635 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3639 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3646 xc_bad_var_cppflags=no
3647 for xc_word in $CPPFLAGS; do
3650 xc_bad_var_cppflags=yes
3652 -L* | --library-path=*)
3653 xc_bad_var_cppflags=yes
3656 xc_bad_var_cppflags=yes
3660 if test $xc_bad_var_cppflags = yes; then
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
3662 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
3663 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
3664 for xc_word in $CPPFLAGS; do
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3668 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3670 -L* | --library-path=*)
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3672 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3676 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3683 xc_bad_var_cflags=no
3684 for xc_word in $CFLAGS; do
3687 xc_bad_var_cflags=yes
3690 xc_bad_var_cflags=yes
3693 xc_bad_var_cflags=yes
3696 xc_bad_var_cflags=yes
3698 -L* | --library-path=*)
3699 xc_bad_var_cflags=yes
3702 xc_bad_var_cflags=yes
3706 if test $xc_bad_var_cflags = yes; then
3707 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
3708 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
3709 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
3710 for xc_word in $CFLAGS; do
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
3714 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
3717 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
3718 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
3722 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
3726 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
3728 -L* | --library-path=*)
3729 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
3730 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
3734 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
3740 if test $xc_bad_var_libs = yes ||
3741 test $xc_bad_var_cflags = yes ||
3742 test $xc_bad_var_ldflags = yes ||
3743 test $xc_bad_var_cppflags = yes; then
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
3745 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
3749 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3750 if test -f "$ac_dir/install-sh"; then
3752 ac_install_sh="$ac_aux_dir/install-sh -c"
3754 elif test -f "$ac_dir/install.sh"; then
3756 ac_install_sh="$ac_aux_dir/install.sh -c"
3758 elif test -f "$ac_dir/shtool"; then
3760 ac_install_sh="$ac_aux_dir/shtool install -c"
3764 if test -z "$ac_aux_dir"; then
3765 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3768 # These three variables are undocumented and unsupported,
3769 # and are intended to be withdrawn in a future Autoconf release.
3770 # They can cause serious problems if a builder's source tree is in a directory
3771 # whose full name contains unusual characters.
3772 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3773 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3774 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3777 # Find a good install program. We prefer a C program (faster),
3778 # so one script is as good as another. But avoid the broken or
3779 # incompatible versions:
3780 # SysV /etc/install, /usr/sbin/install
3781 # SunOS /usr/etc/install
3782 # IRIX /sbin/install
3784 # AmigaOS /C/install, which installs bootblocks on floppy discs
3785 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3786 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3787 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3788 # OS/2's system install, which has a completely different semantic
3789 # ./install, which can be erroneously created by make from ./install.sh.
3790 # Reject install programs that cannot install multiple files.
3791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3792 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3793 if test -z "$INSTALL"; then
3794 if ${ac_cv_path_install+:} false; then :
3795 $as_echo_n "(cached) " >&6
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3801 test -z "$as_dir" && as_dir=.
3802 # Account for people who put trailing slashes in PATH elements.
3803 case $as_dir/ in #((
3804 ./ | .// | /[cC]/* | \
3805 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3806 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3809 # OSF1 and SCO ODT 3.0 have their own names for install.
3810 # Don't use installbsd from OSF since it installs stuff as root
3812 for ac_prog in ginstall scoinst install; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3815 if test $ac_prog = install &&
3816 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3817 # AIX install. It has an incompatible calling convention.
3819 elif test $ac_prog = install &&
3820 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3821 # program-specific install script used by HP pwplus--don't use.
3824 rm -rf conftest.one conftest.two conftest.dir
3825 echo one > conftest.one
3826 echo two > conftest.two
3828 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3829 test -s conftest.one && test -s conftest.two &&
3830 test -s conftest.dir/conftest.one &&
3831 test -s conftest.dir/conftest.two
3833 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3846 rm -rf conftest.one conftest.two conftest.dir
3849 if test "${ac_cv_path_install+set}" = set; then
3850 INSTALL=$ac_cv_path_install
3852 # As a last resort, use the slow shell script. Don't cache a
3853 # value for INSTALL within a source directory, because that will
3854 # break other packages using the cache if that directory is
3855 # removed, or if the value is a relative name.
3856 INSTALL=$ac_install_sh
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3860 $as_echo "$INSTALL" >&6; }
3862 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3863 # It thinks the first close brace ends the variable substitution.
3864 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3866 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3868 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3870 # Expand $ac_aux_dir to an absolute path.
3871 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3874 ac_cpp='$CPP $CPPFLAGS'
3875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3878 if test -n "$ac_tool_prefix"; then
3879 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3880 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_prog_CC+:} false; then :
3884 $as_echo_n "(cached) " >&6
3886 if test -n "$CC"; then
3887 ac_cv_prog_CC="$CC" # Let the user override the test.
3889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3893 test -z "$as_dir" && as_dir=.
3894 for ac_exec_ext in '' $ac_executable_extensions; do
3895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3896 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3907 if test -n "$CC"; then
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3909 $as_echo "$CC" >&6; }
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3912 $as_echo "no" >&6; }
3917 if test -z "$ac_cv_prog_CC"; then
3919 # Extract the first word of "gcc", so it can be a program name with args.
3920 set dummy gcc; ac_word=$2
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3922 $as_echo_n "checking for $ac_word... " >&6; }
3923 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3924 $as_echo_n "(cached) " >&6
3926 if test -n "$ac_ct_CC"; then
3927 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3933 test -z "$as_dir" && as_dir=.
3934 for ac_exec_ext in '' $ac_executable_extensions; do
3935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3936 ac_cv_prog_ac_ct_CC="gcc"
3937 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3946 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3947 if test -n "$ac_ct_CC"; then
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3949 $as_echo "$ac_ct_CC" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3952 $as_echo "no" >&6; }
3955 if test "x$ac_ct_CC" = x; then
3958 case $cross_compiling:$ac_tool_warned in
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3961 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3962 ac_tool_warned=yes ;;
3970 if test -z "$CC"; then
3971 if test -n "$ac_tool_prefix"; then
3972 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3973 set dummy ${ac_tool_prefix}cc; ac_word=$2
3974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3975 $as_echo_n "checking for $ac_word... " >&6; }
3976 if ${ac_cv_prog_CC+:} false; then :
3977 $as_echo_n "(cached) " >&6
3979 if test -n "$CC"; then
3980 ac_cv_prog_CC="$CC" # Let the user override the test.
3982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986 test -z "$as_dir" && as_dir=.
3987 for ac_exec_ext in '' $ac_executable_extensions; do
3988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3989 ac_cv_prog_CC="${ac_tool_prefix}cc"
3990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4000 if test -n "$CC"; then
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4002 $as_echo "$CC" >&6; }
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4005 $as_echo "no" >&6; }
4011 if test -z "$CC"; then
4012 # Extract the first word of "cc", so it can be a program name with args.
4013 set dummy cc; ac_word=$2
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4015 $as_echo_n "checking for $ac_word... " >&6; }
4016 if ${ac_cv_prog_CC+:} false; then :
4017 $as_echo_n "(cached) " >&6
4019 if test -n "$CC"; then
4020 ac_cv_prog_CC="$CC" # Let the user override the test.
4023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4027 test -z "$as_dir" && as_dir=.
4028 for ac_exec_ext in '' $ac_executable_extensions; do
4029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4030 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4031 ac_prog_rejected=yes
4035 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 if test $ac_prog_rejected = yes; then
4043 # We found a bogon in the path, so make sure we never use it.
4044 set dummy $ac_cv_prog_CC
4046 if test $# != 0; then
4047 # We chose a different compiler from the bogus one.
4048 # However, it has the same basename, so the bogon will be chosen
4049 # first if we set CC to just the basename; use the full file name.
4051 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4057 if test -n "$CC"; then
4058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4059 $as_echo "$CC" >&6; }
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4062 $as_echo "no" >&6; }
4067 if test -z "$CC"; then
4068 if test -n "$ac_tool_prefix"; then
4069 for ac_prog in cl.exe
4071 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4072 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4074 $as_echo_n "checking for $ac_word... " >&6; }
4075 if ${ac_cv_prog_CC+:} false; then :
4076 $as_echo_n "(cached) " >&6
4078 if test -n "$CC"; then
4079 ac_cv_prog_CC="$CC" # Let the user override the test.
4081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4085 test -z "$as_dir" && as_dir=.
4086 for ac_exec_ext in '' $ac_executable_extensions; do
4087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4088 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 if test -n "$CC"; then
4100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4101 $as_echo "$CC" >&6; }
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4104 $as_echo "no" >&6; }
4108 test -n "$CC" && break
4111 if test -z "$CC"; then
4113 for ac_prog in cl.exe
4115 # Extract the first word of "$ac_prog", so it can be a program name with args.
4116 set dummy $ac_prog; ac_word=$2
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4118 $as_echo_n "checking for $ac_word... " >&6; }
4119 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4120 $as_echo_n "(cached) " >&6
4122 if test -n "$ac_ct_CC"; then
4123 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4129 test -z "$as_dir" && as_dir=.
4130 for ac_exec_ext in '' $ac_executable_extensions; do
4131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4132 ac_cv_prog_ac_ct_CC="$ac_prog"
4133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4142 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4143 if test -n "$ac_ct_CC"; then
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4145 $as_echo "$ac_ct_CC" >&6; }
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4148 $as_echo "no" >&6; }
4152 test -n "$ac_ct_CC" && break
4155 if test "x$ac_ct_CC" = x; then
4158 case $cross_compiling:$ac_tool_warned in
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4161 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4162 ac_tool_warned=yes ;;
4171 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4172 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4173 as_fn_error $? "no acceptable C compiler found in \$PATH
4174 See \`config.log' for more details" "$LINENO" 5; }
4176 # Provide some information about the compiler.
4177 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4180 for ac_option in --version -v -V -qversion; do
4181 { { ac_try="$ac_compiler $ac_option >&5"
4183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4184 *) ac_try_echo=$ac_try;;
4186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4187 $as_echo "$ac_try_echo"; } >&5
4188 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4190 if test -s conftest.err; then
4192 ... rest of stderr output deleted ...
4193 10q' conftest.err >conftest.er1
4194 cat conftest.er1 >&5
4196 rm -f conftest.er1 conftest.err
4197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4198 test $ac_status = 0; }
4201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4202 /* end confdefs.h. */
4211 ac_clean_files_save=$ac_clean_files
4212 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4213 # Try to create an executable without -o first, disregard a.out.
4214 # It will help us diagnose broken compilers, and finding out an intuition
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4217 $as_echo_n "checking whether the C compiler works... " >&6; }
4218 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4220 # The possible output files:
4221 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4224 for ac_file in $ac_files
4227 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4228 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4233 if { { ac_try="$ac_link_default"
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239 $as_echo "$ac_try_echo"; } >&5
4240 (eval "$ac_link_default") 2>&5
4242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4243 test $ac_status = 0; }; then :
4244 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4245 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4246 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4247 # so that the user can short-circuit this test for compilers unknown to
4249 for ac_file in $ac_files ''
4251 test -f "$ac_file" || continue
4253 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4256 # We found the default executable, but exeext='' is most
4260 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4262 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4264 # We set ac_cv_exeext here because the later test for it is not
4265 # safe: cross compilers may not add the suffix if given an `-o'
4266 # argument, so we may need to know it at that point already.
4267 # Even if this section looks crufty: it has the advantage of
4274 test "$ac_cv_exeext" = no && ac_cv_exeext=
4279 if test -z "$ac_file"; then :
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4282 $as_echo "$as_me: failed program was:" >&5
4283 sed 's/^/| /' conftest.$ac_ext >&5
4285 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4287 as_fn_error 77 "C compiler cannot create executables
4288 See \`config.log' for more details" "$LINENO" 5; }
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4291 $as_echo "yes" >&6; }
4293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4294 $as_echo_n "checking for C compiler default output file name... " >&6; }
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4296 $as_echo "$ac_file" >&6; }
4297 ac_exeext=$ac_cv_exeext
4299 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4300 ac_clean_files=$ac_clean_files_save
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4302 $as_echo_n "checking for suffix of executables... " >&6; }
4303 if { { ac_try="$ac_link"
4305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4306 *) ac_try_echo=$ac_try;;
4308 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4309 $as_echo "$ac_try_echo"; } >&5
4310 (eval "$ac_link") 2>&5
4312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4313 test $ac_status = 0; }; then :
4314 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4315 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4316 # work properly (i.e., refer to `conftest.exe'), while it won't with
4318 for ac_file in conftest.exe conftest conftest.*; do
4319 test -f "$ac_file" || continue
4321 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4322 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4328 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4329 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4330 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4331 See \`config.log' for more details" "$LINENO" 5; }
4333 rm -f conftest conftest$ac_cv_exeext
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4335 $as_echo "$ac_cv_exeext" >&6; }
4337 rm -f conftest.$ac_ext
4338 EXEEXT=$ac_cv_exeext
4340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h. */
4345 FILE *f = fopen ("conftest.out", "w");
4346 return ferror (f) || fclose (f) != 0;
4352 ac_clean_files="$ac_clean_files conftest.out"
4353 # Check that the compiler produces executables we can run. If not, either
4354 # the compiler is broken, or we cross compile.
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4356 $as_echo_n "checking whether we are cross compiling... " >&6; }
4357 if test "$cross_compiling" != yes; then
4358 { { ac_try="$ac_link"
4360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4361 *) ac_try_echo=$ac_try;;
4363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4364 $as_echo "$ac_try_echo"; } >&5
4365 (eval "$ac_link") 2>&5
4367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4368 test $ac_status = 0; }
4369 if { ac_try='./conftest$ac_cv_exeext'
4370 { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4374 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375 $as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; }; }; then
4382 if test "$cross_compiling" = maybe; then
4385 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4386 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4387 as_fn_error $? "cannot run C compiled programs.
4388 If you meant to cross compile, use \`--host'.
4389 See \`config.log' for more details" "$LINENO" 5; }
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4394 $as_echo "$cross_compiling" >&6; }
4396 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4397 ac_clean_files=$ac_clean_files_save
4398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4399 $as_echo_n "checking for suffix of object files... " >&6; }
4400 if ${ac_cv_objext+:} false; then :
4401 $as_echo_n "(cached) " >&6
4403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4404 /* end confdefs.h. */
4413 rm -f conftest.o conftest.obj
4414 if { { ac_try="$ac_compile"
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4420 $as_echo "$ac_try_echo"; } >&5
4421 (eval "$ac_compile") 2>&5
4423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4424 test $ac_status = 0; }; then :
4425 for ac_file in conftest.o conftest.obj conftest.*; do
4426 test -f "$ac_file" || continue;
4428 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4429 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4434 $as_echo "$as_me: failed program was:" >&5
4435 sed 's/^/| /' conftest.$ac_ext >&5
4437 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4438 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4439 as_fn_error $? "cannot compute suffix of object files: cannot compile
4440 See \`config.log' for more details" "$LINENO" 5; }
4442 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4445 $as_echo "$ac_cv_objext" >&6; }
4446 OBJEXT=$ac_cv_objext
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4449 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4450 if ${ac_cv_c_compiler_gnu+:} false; then :
4451 $as_echo_n "(cached) " >&6
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4466 if ac_fn_c_try_compile "$LINENO"; then :
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4476 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4477 if test $ac_compiler_gnu = yes; then
4482 ac_test_CFLAGS=${CFLAGS+set}
4483 ac_save_CFLAGS=$CFLAGS
4484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4485 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4486 if ${ac_cv_prog_cc_g+:} false; then :
4487 $as_echo_n "(cached) " >&6
4489 ac_save_c_werror_flag=$ac_c_werror_flag
4490 ac_c_werror_flag=yes
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4503 if ac_fn_c_try_compile "$LINENO"; then :
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4517 if ac_fn_c_try_compile "$LINENO"; then :
4520 ac_c_werror_flag=$ac_save_c_werror_flag
4522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4523 /* end confdefs.h. */
4532 if ac_fn_c_try_compile "$LINENO"; then :
4535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4540 ac_c_werror_flag=$ac_save_c_werror_flag
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4543 $as_echo "$ac_cv_prog_cc_g" >&6; }
4544 if test "$ac_test_CFLAGS" = set; then
4545 CFLAGS=$ac_save_CFLAGS
4546 elif test $ac_cv_prog_cc_g = yes; then
4547 if test "$GCC" = yes; then
4553 if test "$GCC" = yes; then
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4560 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4561 if ${ac_cv_prog_cc_c89+:} false; then :
4562 $as_echo_n "(cached) " >&6
4564 ac_cv_prog_cc_c89=no
4566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4567 /* end confdefs.h. */
4571 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4572 struct buf { int x; };
4573 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4574 static char *e (p, i)
4580 static char *f (char * (*g) (char **, int), char **p, ...)
4585 s = g (p, va_arg (v,int));
4590 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4591 function prototypes and stuff, but not '\xHH' hex character constants.
4592 These don't provoke an error unfortunately, instead are silently treated
4593 as 'x'. The following induces an error, until -std is added to get
4594 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4595 array size at least. It's necessary to write '\x00'==0 to get something
4596 that's true only with -std. */
4597 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4599 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4600 inside strings and character constants. */
4602 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4604 int test (int i, double x);
4605 struct s1 {int (*f) (int a);};
4606 struct s2 {int (*f) (double a);};
4607 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4612 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4617 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4618 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4620 CC="$ac_save_CC $ac_arg"
4621 if ac_fn_c_try_compile "$LINENO"; then :
4622 ac_cv_prog_cc_c89=$ac_arg
4624 rm -f core conftest.err conftest.$ac_objext
4625 test "x$ac_cv_prog_cc_c89" != "xno" && break
4627 rm -f conftest.$ac_ext
4632 case "x$ac_cv_prog_cc_c89" in
4634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4635 $as_echo "none needed" >&6; } ;;
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4638 $as_echo "unsupported" >&6; } ;;
4640 CC="$CC $ac_cv_prog_cc_c89"
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4642 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4644 if test "x$ac_cv_prog_cc_c89" != xno; then :
4649 ac_cpp='$CPP $CPPFLAGS'
4650 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4651 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4652 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4655 ac_cpp='$CPP $CPPFLAGS'
4656 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4657 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4658 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4660 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4661 if ${am_cv_prog_cc_c_o+:} false; then :
4662 $as_echo_n "(cached) " >&6
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4674 # Make sure it works both with $CC and with simple cc.
4675 # Following AC_PROG_CC_C_O, we do the test twice because some
4676 # compilers refuse to overwrite an existing .o file with -o,
4677 # though they will create one.
4678 am_cv_prog_cc_c_o=yes
4680 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4681 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4684 (exit $ac_status); } \
4685 && test -f conftest2.$ac_objext; then
4688 am_cv_prog_cc_c_o=no
4692 rm -f core conftest*
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4696 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4697 if test "$am_cv_prog_cc_c_o" != yes; then
4698 # Losing compiler, so override with the script.
4699 # FIXME: It is wrong to rewrite CC.
4700 # But if we don't then we get into trouble of one sort or another.
4701 # A longer-term fix would be to have automake use am__CC in this case,
4702 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4703 CC="$am_aux_dir/compile $CC"
4706 ac_cpp='$CPP $CPPFLAGS'
4707 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4708 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4709 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4714 ac_cpp='$CPP $CPPFLAGS'
4715 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4716 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4717 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4719 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4720 # On Suns, sometimes $CPP names a directory.
4721 if test -n "$CPP" && test -d "$CPP"; then
4724 if test -z "$CPP"; then
4725 if ${ac_cv_prog_CPP+:} false; then :
4726 $as_echo_n "(cached) " >&6
4728 # Double quotes because CPP needs to be expanded
4729 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4732 for ac_c_preproc_warn_flag in '' yes
4734 # Use a header file that comes with gcc, so configuring glibc
4735 # with a fresh cross-compiler works.
4736 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4737 # <limits.h> exists even on freestanding compilers.
4738 # On the NeXT, cc -E runs the code through the compiler's parser,
4739 # not just through cpp. "Syntax error" is here to catch this case.
4740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4741 /* end confdefs.h. */
4743 # include <limits.h>
4745 # include <assert.h>
4749 if ac_fn_c_try_cpp "$LINENO"; then :
4752 # Broken: fails on valid input.
4755 rm -f conftest.err conftest.i conftest.$ac_ext
4757 # OK, works on sane cases. Now check whether nonexistent headers
4758 # can be detected and how.
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4763 if ac_fn_c_try_cpp "$LINENO"; then :
4764 # Broken: success on invalid input.
4767 # Passes both tests.
4771 rm -f conftest.err conftest.i conftest.$ac_ext
4774 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4775 rm -f conftest.i conftest.err conftest.$ac_ext
4776 if $ac_preproc_ok; then :
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4789 $as_echo "$CPP" >&6; }
4791 for ac_c_preproc_warn_flag in '' yes
4793 # Use a header file that comes with gcc, so configuring glibc
4794 # with a fresh cross-compiler works.
4795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4796 # <limits.h> exists even on freestanding compilers.
4797 # On the NeXT, cc -E runs the code through the compiler's parser,
4798 # not just through cpp. "Syntax error" is here to catch this case.
4799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4800 /* end confdefs.h. */
4802 # include <limits.h>
4804 # include <assert.h>
4808 if ac_fn_c_try_cpp "$LINENO"; then :
4811 # Broken: fails on valid input.
4814 rm -f conftest.err conftest.i conftest.$ac_ext
4816 # OK, works on sane cases. Now check whether nonexistent headers
4817 # can be detected and how.
4818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4819 /* end confdefs.h. */
4820 #include <ac_nonexistent.h>
4822 if ac_fn_c_try_cpp "$LINENO"; then :
4823 # Broken: success on invalid input.
4826 # Passes both tests.
4830 rm -f conftest.err conftest.i conftest.$ac_ext
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.i conftest.err conftest.$ac_ext
4835 if $ac_preproc_ok; then :
4838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4840 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details" "$LINENO" 5; }
4845 ac_cpp='$CPP $CPPFLAGS'
4846 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4847 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4848 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4851 IFS=$xc_prog_cc_prev_IFS
4852 LIBS=$xc_prog_cc_prev_LIBS
4853 CFLAGS=$xc_prog_cc_prev_CFLAGS
4854 LDFLAGS=$xc_prog_cc_prev_LDFLAGS
4855 CPPFLAGS=$xc_prog_cc_prev_CPPFLAGS
4861 am__api_version='1.14'
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4864 $as_echo_n "checking whether build environment is sane... " >&6; }
4865 # Reject unsafe characters in $srcdir or the absolute working directory
4866 # name. Accept space and tab only in the latter.
4870 *[\\\"\#\$\&\'\`$am_lf]*)
4871 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4874 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4875 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4878 # Do 'set' in a subshell so we don't clobber the current shell's
4879 # arguments. Must try -L first in case configure is actually a
4880 # symlink; some systems play weird games with the mod time of symlinks
4881 # (eg FreeBSD returns the mod time of the symlink's containing
4885 for am_try in 1 2; do
4886 echo "timestamp, slept: $am_has_slept" > conftest.file
4887 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4888 if test "$*" = "X"; then
4890 set X `ls -t "$srcdir/configure" conftest.file`
4892 if test "$*" != "X $srcdir/configure conftest.file" \
4893 && test "$*" != "X conftest.file $srcdir/configure"; then
4895 # If neither matched, then we have a broken ls. This can happen
4896 # if, for instance, CONFIG_SHELL is bash and it inherits a
4897 # broken ls alias from the environment. This has actually
4898 # happened. Such a system could not be considered "sane".
4899 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4900 alias in your environment" "$LINENO" 5
4902 if test "$2" = conftest.file || test $am_try -eq 2; then
4909 test "$2" = conftest.file
4915 as_fn_error $? "newly created file is older than distributed files!
4916 Check your system clock" "$LINENO" 5
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4919 $as_echo "yes" >&6; }
4920 # If we didn't sleep, we still need to ensure time stamps of config.status and
4921 # generated files are strictly newer.
4923 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4930 test "$program_prefix" != NONE &&
4931 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4932 # Use a double $ so make ignores it.
4933 test "$program_suffix" != NONE &&
4934 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4935 # Double any \ or $.
4936 # By default was `s,x,x', remove it if useless.
4937 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4938 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4940 test x"${MISSING+set}" = xset || MISSING="\${SHELL} \"$am_aux_dir/missing\""
4941 # Use eval to expand $SHELL
4942 if eval "$MISSING --run true"; then
4943 am_missing_run="$MISSING --run "
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
4947 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
4950 if test x"${install_sh}" != xset; then
4953 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4955 install_sh="\${SHELL} $am_aux_dir/install-sh"
4959 # Installed binaries are usually stripped using 'strip' when the user
4960 # run "make install-strip". However 'strip' might not be the right
4961 # tool to use in cross-compilation environments, therefore Automake
4962 # will honor the 'STRIP' environment variable to overrule this program.
4963 if test "$cross_compiling" != no; then
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}strip; ac_word=$2
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4968 $as_echo_n "checking for $ac_word... " >&6; }
4969 if ${ac_cv_prog_STRIP+:} false; then :
4970 $as_echo_n "(cached) " >&6
4972 if test -n "$STRIP"; then
4973 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4982 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 STRIP=$ac_cv_prog_STRIP
4993 if test -n "$STRIP"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4995 $as_echo "$STRIP" >&6; }
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4998 $as_echo "no" >&6; }
5003 if test -z "$ac_cv_prog_STRIP"; then
5005 # Extract the first word of "strip", so it can be a program name with args.
5006 set dummy strip; ac_word=$2
5007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5008 $as_echo_n "checking for $ac_word... " >&6; }
5009 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5010 $as_echo_n "(cached) " >&6
5012 if test -n "$ac_ct_STRIP"; then
5013 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5022 ac_cv_prog_ac_ct_STRIP="strip"
5023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5032 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5033 if test -n "$ac_ct_STRIP"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5035 $as_echo "$ac_ct_STRIP" >&6; }
5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5038 $as_echo "no" >&6; }
5041 if test "x$ac_ct_STRIP" = x; then
5044 case $cross_compiling:$ac_tool_warned in
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5047 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5048 ac_tool_warned=yes ;;
5053 STRIP="$ac_cv_prog_STRIP"
5057 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
5060 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
5061 if test -z "$MKDIR_P"; then
5062 if ${ac_cv_path_mkdir+:} false; then :
5063 $as_echo_n "(cached) " >&6
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
5069 test -z "$as_dir" && as_dir=.
5070 for ac_prog in mkdir gmkdir; do
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
5073 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
5074 'mkdir (GNU coreutils) '* | \
5075 'mkdir (coreutils) '* | \
5076 'mkdir (fileutils) '4.1*)
5077 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
5087 test -d ./--version && rmdir ./--version
5088 if test "${ac_cv_path_mkdir+set}" = set; then
5089 MKDIR_P="$ac_cv_path_mkdir -p"
5091 # As a last resort, use the slow shell script. Don't cache a
5092 # value for MKDIR_P within a source directory, because that will
5093 # break other packages using the cache if that directory is
5094 # removed, or if the value is a relative name.
5095 MKDIR_P="$ac_install_sh -d"
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
5099 $as_echo "$MKDIR_P" >&6; }
5101 for ac_prog in gawk mawk nawk awk
5103 # Extract the first word of "$ac_prog", so it can be a program name with args.
5104 set dummy $ac_prog; ac_word=$2
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5106 $as_echo_n "checking for $ac_word... " >&6; }
5107 if ${ac_cv_prog_AWK+:} false; then :
5108 $as_echo_n "(cached) " >&6
5110 if test -n "$AWK"; then
5111 ac_cv_prog_AWK="$AWK" # Let the user override the test.
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5120 ac_cv_prog_AWK="$ac_prog"
5121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5131 if test -n "$AWK"; then
5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
5133 $as_echo "$AWK" >&6; }
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5136 $as_echo "no" >&6; }
5140 test -n "$AWK" && break
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5144 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5146 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5147 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 cat >conftest.make <<\_ACEOF
5153 @echo '@@@%%%=$(MAKE)=@@@%%%'
5155 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
5156 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5158 eval ac_cv_prog_make_${ac_make}_set=yes;;
5160 eval ac_cv_prog_make_${ac_make}_set=no;;
5164 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5166 $as_echo "yes" >&6; }
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5171 SET_MAKE="MAKE=${MAKE-make}"
5174 rm -rf .tst 2>/dev/null
5175 mkdir .tst 2>/dev/null
5176 if test -d .tst; then
5181 rmdir .tst 2>/dev/null
5183 DEPDIR="${am__leading_dot}deps"
5185 ac_config_commands="$ac_config_commands depfiles"
5188 am_make=${MAKE-make}
5189 cat > confinc << 'END'
5191 @echo this is the am__doit target
5194 # If we don't find an include directive, just comment out the code.
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
5196 $as_echo_n "checking for style of include used by $am_make... " >&6; }
5200 # First try GNU make style include.
5201 echo "include confinc" > confmf
5202 # Ignore all kinds of additional output from 'make'.
5203 case `$am_make -s -f confmf 2> /dev/null` in #(
5204 *the\ am__doit\ target*)
5210 # Now try BSD make style include.
5211 if test "$am__include" = "#"; then
5212 echo '.include "confinc"' > confmf
5213 case `$am_make -s -f confmf 2> /dev/null` in #(
5214 *the\ am__doit\ target*)
5215 am__include=.include
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
5224 $as_echo "$_am_result" >&6; }
5225 rm -f confinc confmf
5227 # Check whether --enable-dependency-tracking was given.
5228 if test "${enable_dependency_tracking+set}" = set; then :
5229 enableval=$enable_dependency_tracking;
5232 if test "x$enable_dependency_tracking" != xno; then
5233 am_depcomp="$ac_aux_dir/depcomp"
5237 if test "x$enable_dependency_tracking" != xno; then
5246 # Check whether --enable-silent-rules was given.
5247 if test "${enable_silent_rules+set}" = set; then :
5248 enableval=$enable_silent_rules;
5251 case $enable_silent_rules in # (((
5252 yes) AM_DEFAULT_VERBOSITY=0;;
5253 no) AM_DEFAULT_VERBOSITY=1;;
5254 *) AM_DEFAULT_VERBOSITY=1;;
5256 am_make=${MAKE-make}
5257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
5258 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
5259 if ${am_cv_make_support_nested_variables+:} false; then :
5260 $as_echo_n "(cached) " >&6
5262 if $as_echo 'TRUE=$(BAR$(V))
5268 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
5269 am_cv_make_support_nested_variables=yes
5271 am_cv_make_support_nested_variables=no
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
5275 $as_echo "$am_cv_make_support_nested_variables" >&6; }
5276 if test $am_cv_make_support_nested_variables = yes; then
5278 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
5280 AM_V=$AM_DEFAULT_VERBOSITY
5281 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
5285 ## --------------------------------------- ##
5286 ## Start of automake initialization code ##
5287 ## --------------------------------------- ##
5289 if test "`cd $srcdir && pwd`" != "`pwd`"; then
5290 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
5291 # is not polluted with repeated "-I."
5292 am__isrc=' -I$(srcdir)'
5293 # test to see if srcdir already configured
5294 if test -f $srcdir/config.status; then
5295 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
5299 # test whether we have cygpath
5300 if test -z "$CYGPATH_W"; then
5301 if (cygpath --version) >/dev/null 2>/dev/null; then
5302 CYGPATH_W='cygpath -w'
5309 # Define the identity of the package.
5314 cat >>confdefs.h <<_ACEOF
5315 #define PACKAGE "$PACKAGE"
5319 cat >>confdefs.h <<_ACEOF
5320 #define VERSION "$VERSION"
5323 # Some tools Automake needs.
5325 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
5328 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
5331 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
5334 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
5337 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
5339 # For better backward compatibility. To be removed once Automake 1.9.x
5340 # dies out for good. For more background, see:
5341 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
5342 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
5343 mkdir_p='$(MKDIR_P)'
5345 # We need awk for the "check" target. The system "awk" is bad on
5347 # Always define AMTAR for backward compatibility. Yes, it's still used
5348 # in the wild :-( We should find a proper way to deprecate it ...
5352 # We'll loop over all known methods to create a tar archive until one works.
5353 _am_tools='gnutar pax cpio none'
5355 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
5361 depcc="$CC" am_compiler_list=
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5364 $as_echo_n "checking dependency style of $depcc... " >&6; }
5365 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5366 $as_echo_n "(cached) " >&6
5368 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5369 # We make a subdir and do the tests there. Otherwise we can end up
5370 # making bogus files that we don't know about and never remove. For
5371 # instance it was reported that on HP-UX the gcc test will end up
5372 # making a dummy file named 'D' -- because '-MD' means "put the output
5376 # Copy depcomp to subdir because otherwise we won't find it if we're
5377 # using a relative directory.
5378 cp "$am_depcomp" conftest.dir
5380 # We will build objects and dependencies in a subdirectory because
5381 # it helps to detect inapplicable dependency modes. For instance
5382 # both Tru64's cc and ICC support -MD to output dependencies as a
5383 # side effect of compilation, but ICC will put the dependencies in
5384 # the current directory while Tru64 will put them in the object
5388 am_cv_CC_dependencies_compiler_type=none
5389 if test "$am_compiler_list" = ""; then
5390 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5393 case " $depcc " in #(
5394 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5397 for depmode in $am_compiler_list; do
5398 # Setup a source with many dependencies, because some compilers
5399 # like to wrap large dependency lists on column 80 (with \), and
5400 # we should not choose a depcomp mode which is confused by this.
5402 # We need to recreate these files for each test, as the compiler may
5403 # overwrite some of them when testing with obscure command lines.
5404 # This happens at least with the AIX C compiler.
5406 for i in 1 2 3 4 5 6; do
5407 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5408 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5409 # Solaris 10 /bin/sh.
5410 echo '/* dummy */' > sub/conftst$i.h
5412 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5414 # We check with '-c' and '-o' for the sake of the "dashmstdout"
5415 # mode. It turns out that the SunPro C++ compiler does not properly
5416 # handle '-M -o', and we need to detect this. Also, some Intel
5417 # versions had trouble with output in subdirs.
5418 am__obj=sub/conftest.${OBJEXT-o}
5419 am__minus_obj="-o $am__obj"
5422 # This depmode causes a compiler race in universal mode.
5423 test "$am__universal" = false || continue
5426 # After this tag, mechanisms are not by side-effect, so they'll
5427 # only be used when explicitly requested.
5428 if test "x$enable_dependency_tracking" = xyes; then
5434 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5435 # This compiler won't grok '-c -o', but also, the minuso test has
5436 # not run yet. These depmodes are late enough in the game, and
5437 # so weak that their functioning should not be impacted.
5438 am__obj=conftest.${OBJEXT-o}
5443 if depmode=$depmode \
5444 source=sub/conftest.c object=$am__obj \
5445 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5446 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5447 >/dev/null 2>conftest.err &&
5448 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5449 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5450 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5451 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5452 # icc doesn't choke on unknown options, it will just issue warnings
5453 # or remarks (even with -Werror). So we grep stderr for any message
5454 # that says an option was ignored or not supported.
5455 # When given -MP, icc 7.0 and 7.1 complain thusly:
5456 # icc: Command line warning: ignoring option '-M'; no argument required
5457 # The diagnosis changed in icc 8.0:
5458 # icc: Command line remark: option '-MP' not supported
5459 if (grep 'ignoring option' conftest.err ||
5460 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5461 am_cv_CC_dependencies_compiler_type=$depmode
5470 am_cv_CC_dependencies_compiler_type=none
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5475 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5476 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5479 test "x$enable_dependency_tracking" != xno \
5480 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5482 am__fastdepCC_FALSE='#'
5484 am__fastdepCC_TRUE='#'
5485 am__fastdepCC_FALSE=
5490 # POSIX will say in a future version that running "rm -f" with no argument
5491 # is OK; and we want to be able to make that assumption in our Makefile
5492 # recipes. So use an aggressive probe to check that the usage we want is
5493 # actually supported "in the wild" to an acceptable degree.
5494 # See automake bug#10828.
5495 # To make any issue more visible, cause the running configure to be aborted
5496 # by default if the 'rm' program in use doesn't match our expectations; the
5497 # user can still override this though.
5498 if rm -f && rm -fr && rm -rf; then : OK; else
5502 Your 'rm' program seems unable to run without file operands specified
5503 on the command line, even when the '-f' option is present. This is contrary
5504 to the behaviour of most rm programs out there, and not conforming with
5505 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
5507 Please tell bug-automake@gnu.org about your system, including the value
5508 of your $PATH and any error possibly output before this message. This
5509 can help us improve future automake versions.
5512 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
5513 echo 'Configuration will proceed anyway, since you have set the' >&2
5514 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
5518 Aborting the configuration process, to ensure you take notice of the issue.
5520 You can download and install GNU coreutils to get an 'rm' implementation
5521 that behaves properly: <http://www.gnu.org/software/coreutils/>.
5523 If you want to complete the configuration process using your problematic
5524 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
5525 to "yes", and re-run configure.
5528 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
5532 ## ------------------------------------- ##
5533 ## End of automake initialization code ##
5534 ## ------------------------------------- ##
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking curl version" >&5
5538 $as_echo_n "checking curl version... " >&6; }
5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLVERSION" >&5
5540 $as_echo "$CURLVERSION" >&6; }
5544 VERSIONNUM=`$SED -ne 's/^#define LIBCURL_VERSION_NUM 0x\(.*\)/\1/p' ${srcdir}/include/curl/curlver.h`
5547 PKGADD_PKG="HAXXcurl"
5548 PKGADD_NAME="cURL - a client that groks URLs"
5549 PKGADD_VENDOR="curl.haxx.se"
5554 curl_ssl_msg="no (--with-{ssl,gnutls,nss,polarssl,cyassl,axtls,winssl,darwinssl} )"
5555 curl_ssh_msg="no (--with-libssh2)"
5556 curl_zlib_msg="no (--with-zlib)"
5557 curl_gss_msg="no (--with-gssapi)"
5558 curl_tls_srp_msg="no (--enable-tls-srp)"
5559 curl_res_msg="default (--enable-ares / --enable-threaded-resolver)"
5560 curl_ipv6_msg="no (--enable-ipv6)"
5561 curl_unix_sockets_msg="no (--enable-unix-sockets)"
5562 curl_idn_msg="no (--with-{libidn,winidn})"
5563 curl_manual_msg="no (--enable-manual)"
5564 curl_libcurl_msg="enabled (--disable-libcurl-option)"
5565 curl_verbose_msg="enabled (--disable-verbose)"
5566 curl_sspi_msg="no (--enable-sspi)"
5567 curl_ldap_msg="no (--enable-ldap / --with-ldap-lib / --with-lber-lib)"
5568 curl_ldaps_msg="no (--enable-ldaps)"
5569 curl_rtsp_msg="no (--enable-rtsp)"
5570 curl_rtmp_msg="no (--with-librtmp)"
5571 curl_mtlnk_msg="no (--with-libmetalink)"
5573 init_ssl_msg=${curl_ssl_msg}
5575 INITIAL_LDFLAGS=$LDFLAGS
5579 # Make sure we can run config.sub.
5580 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5581 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5584 $as_echo_n "checking build system type... " >&6; }
5585 if ${ac_cv_build+:} false; then :
5586 $as_echo_n "(cached) " >&6
5588 ac_build_alias=$build_alias
5589 test "x$ac_build_alias" = x &&
5590 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5591 test "x$ac_build_alias" = x &&
5592 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5593 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5594 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5598 $as_echo "$ac_cv_build" >&6; }
5599 case $ac_cv_build in
5601 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5604 ac_save_IFS=$IFS; IFS='-'
5610 # Remember, the first character of IFS is used to create $*,
5611 # except with old shells:
5614 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5618 $as_echo_n "checking host system type... " >&6; }
5619 if ${ac_cv_host+:} false; then :
5620 $as_echo_n "(cached) " >&6
5622 if test "x$host_alias" = x; then
5623 ac_cv_host=$ac_cv_build
5625 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5626 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5631 $as_echo "$ac_cv_host" >&6; }
5634 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5637 ac_save_IFS=$IFS; IFS='-'
5643 # Remember, the first character of IFS is used to create $*,
5644 # except with old shells:
5647 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5651 cat >>confdefs.h <<_ACEOF
5652 #define OS "${host}"
5659 curl_includes_inttypes="\
5660 /* includes start */
5661 #ifdef HAVE_SYS_TYPES_H
5662 # include <sys/types.h>
5664 #ifdef HAVE_STDINT_H
5665 # include <stdint.h>
5667 #ifdef HAVE_INTTYPES_H
5668 # include <inttypes.h>
5673 ac_cv_header_stdint_h="no"
5676 for ac_header in sys/types.h stdint.h inttypes.h
5678 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5679 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_inttypes
5681 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5682 cat >>confdefs.h <<_ACEOF
5683 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5693 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5694 if ${ac_cv_path_GREP+:} false; then :
5695 $as_echo_n "(cached) " >&6
5697 if test -z "$GREP"; then
5698 ac_path_GREP_found=false
5699 # Loop through the user's path and test for each of PROGNAME-LIST
5700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5701 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5704 test -z "$as_dir" && as_dir=.
5705 for ac_prog in grep ggrep; do
5706 for ac_exec_ext in '' $ac_executable_extensions; do
5707 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5708 as_fn_executable_p "$ac_path_GREP" || continue
5709 # Check for GNU ac_path_GREP and select it if it is found.
5710 # Check for GNU $ac_path_GREP
5711 case `"$ac_path_GREP" --version 2>&1` in
5713 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5716 $as_echo_n 0123456789 >"conftest.in"
5719 cat "conftest.in" "conftest.in" >"conftest.tmp"
5720 mv "conftest.tmp" "conftest.in"
5721 cp "conftest.in" "conftest.nl"
5722 $as_echo 'GREP' >> "conftest.nl"
5723 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5724 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5725 as_fn_arith $ac_count + 1 && ac_count=$as_val
5726 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5727 # Best one so far, save it but keep looking for a better one
5728 ac_cv_path_GREP="$ac_path_GREP"
5729 ac_path_GREP_max=$ac_count
5731 # 10*(2^10) chars as input seems more than enough
5732 test $ac_count -gt 10 && break
5734 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5737 $ac_path_GREP_found && break 3
5742 if test -z "$ac_cv_path_GREP"; then
5743 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5746 ac_cv_path_GREP=$GREP
5750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5751 $as_echo "$ac_cv_path_GREP" >&6; }
5752 GREP="$ac_cv_path_GREP"
5755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5756 $as_echo_n "checking for egrep... " >&6; }
5757 if ${ac_cv_path_EGREP+:} false; then :
5758 $as_echo_n "(cached) " >&6
5760 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5761 then ac_cv_path_EGREP="$GREP -E"
5763 if test -z "$EGREP"; then
5764 ac_path_EGREP_found=false
5765 # Loop through the user's path and test for each of PROGNAME-LIST
5766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5767 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5770 test -z "$as_dir" && as_dir=.
5771 for ac_prog in egrep; do
5772 for ac_exec_ext in '' $ac_executable_extensions; do
5773 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5774 as_fn_executable_p "$ac_path_EGREP" || continue
5775 # Check for GNU ac_path_EGREP and select it if it is found.
5776 # Check for GNU $ac_path_EGREP
5777 case `"$ac_path_EGREP" --version 2>&1` in
5779 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5782 $as_echo_n 0123456789 >"conftest.in"
5785 cat "conftest.in" "conftest.in" >"conftest.tmp"
5786 mv "conftest.tmp" "conftest.in"
5787 cp "conftest.in" "conftest.nl"
5788 $as_echo 'EGREP' >> "conftest.nl"
5789 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5790 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5791 as_fn_arith $ac_count + 1 && ac_count=$as_val
5792 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5793 # Best one so far, save it but keep looking for a better one
5794 ac_cv_path_EGREP="$ac_path_EGREP"
5795 ac_path_EGREP_max=$ac_count
5797 # 10*(2^10) chars as input seems more than enough
5798 test $ac_count -gt 10 && break
5800 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5803 $ac_path_EGREP_found && break 3
5808 if test -z "$ac_cv_path_EGREP"; then
5809 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5812 ac_cv_path_EGREP=$EGREP
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5818 $as_echo "$ac_cv_path_EGREP" >&6; }
5819 EGREP="$ac_cv_path_EGREP"
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5823 $as_echo_n "checking for ANSI C header files... " >&6; }
5824 if ${ac_cv_header_stdc+:} false; then :
5825 $as_echo_n "(cached) " >&6
5827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5828 /* end confdefs.h. */
5841 if ac_fn_c_try_compile "$LINENO"; then :
5842 ac_cv_header_stdc=yes
5844 ac_cv_header_stdc=no
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5848 if test $ac_cv_header_stdc = yes; then
5849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5851 /* end confdefs.h. */
5855 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5856 $EGREP "memchr" >/dev/null 2>&1; then :
5859 ac_cv_header_stdc=no
5865 if test $ac_cv_header_stdc = yes; then
5866 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5868 /* end confdefs.h. */
5872 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5873 $EGREP "free" >/dev/null 2>&1; then :
5876 ac_cv_header_stdc=no
5882 if test $ac_cv_header_stdc = yes; then
5883 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5884 if test "$cross_compiling" = yes; then :
5887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5888 /* end confdefs.h. */
5891 #if ((' ' & 0x0FF) == 0x020)
5892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5895 # define ISLOWER(c) \
5896 (('a' <= (c) && (c) <= 'i') \
5897 || ('j' <= (c) && (c) <= 'r') \
5898 || ('s' <= (c) && (c) <= 'z'))
5899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5907 for (i = 0; i < 256; i++)
5908 if (XOR (islower (i), ISLOWER (i))
5909 || toupper (i) != TOUPPER (i))
5914 if ac_fn_c_try_run "$LINENO"; then :
5917 ac_cv_header_stdc=no
5919 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5920 conftest.$ac_objext conftest.beam conftest.$ac_ext
5925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5926 $as_echo "$ac_cv_header_stdc" >&6; }
5927 if test $ac_cv_header_stdc = yes; then
5929 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5933 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5934 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5935 inttypes.h stdint.h unistd.h
5937 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5938 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5940 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5941 cat >>confdefs.h <<_ACEOF
5942 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5953 if test -z "$SED"; then
5954 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
5957 # The cast to long int works around a bug in the HP C Compiler
5958 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5959 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5960 # This bug is HP SR number 8606223364.
5961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
5962 $as_echo_n "checking size of long... " >&6; }
5963 if ${ac_cv_sizeof_long+:} false; then :
5964 $as_echo_n "(cached) " >&6
5966 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
5969 if test "$ac_cv_type_long" = yes; then
5970 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5972 as_fn_error 77 "cannot compute sizeof (long)
5973 See \`config.log' for more details" "$LINENO" 5; }
5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
5981 $as_echo "$ac_cv_sizeof_long" >&6; }
5985 cat >>confdefs.h <<_ACEOF
5986 #define SIZEOF_LONG $ac_cv_sizeof_long
5990 # The cast to long int works around a bug in the HP C Compiler
5991 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
5992 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
5993 # This bug is HP SR number 8606223364.
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
5995 $as_echo_n "checking size of void*... " >&6; }
5996 if ${ac_cv_sizeof_voidp+:} false; then :
5997 $as_echo_n "(cached) " >&6
5999 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp" "$ac_includes_default"; then :
6002 if test "$ac_cv_type_voidp" = yes; then
6003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6005 as_fn_error 77 "cannot compute sizeof (void*)
6006 See \`config.log' for more details" "$LINENO" 5; }
6008 ac_cv_sizeof_voidp=0
6013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
6014 $as_echo "$ac_cv_sizeof_voidp" >&6; }
6018 cat >>confdefs.h <<_ACEOF
6019 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
6024 if test -z "$ac_cv_sizeof_long" ||
6025 test "$ac_cv_sizeof_long" -eq "0"; then
6026 as_fn_error $? "cannot find out size of long." "$LINENO" 5
6028 if test -z "$ac_cv_sizeof_voidp" ||
6029 test "$ac_cv_sizeof_voidp" -eq "0"; then
6030 as_fn_error $? "cannot find out size of void*." "$LINENO" 5
6037 if test "$ac_cv_sizeof_long" -eq "8" &&
6038 test "$ac_cv_sizeof_voidp" -ge "8"; then
6040 elif test "$ac_cv_sizeof_long" -eq "4" &&
6041 test "$ac_cv_sizeof_voidp" -ge "4"; then
6043 elif test "$ac_cv_sizeof_long" -eq "2" &&
6044 test "$ac_cv_sizeof_voidp" -ge "2"; then
6049 curl_typeof_curl_off_t="unknown"
6050 curl_sizeof_curl_off_t="unknown"
6051 curl_format_curl_off_t="unknown"
6052 curl_format_curl_off_tu="unknown"
6054 if test "$curl_typeof_curl_off_t" = "unknown"; then
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit curl_off_t data type" >&5
6056 $as_echo_n "checking for 64-bit curl_off_t data type... " >&6; }
6065 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t8"; then
6069 case `echo "$t8" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6071 tmp_includes="$curl_includes_inttypes"
6072 tmp_source="char f[] = PRId64;"
6076 tmp_includes="$curl_includes_inttypes"
6077 tmp_source="char f[] = PRId32;"
6081 tmp_includes="$curl_includes_inttypes"
6082 tmp_source="char f[] = PRId16;"
6086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6087 /* end confdefs.h. */
6091 typedef $t8 curl_off_t;
6092 typedef char dummy_arr[sizeof(curl_off_t) == 8 ? 1 : -1];
6105 if ac_fn_c_try_compile "$LINENO"; then :
6107 if test -z "$tmp_fmt"; then
6108 curl_typeof_curl_off_t="$t8"
6109 curl_sizeof_curl_off_t="8"
6112 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6113 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6114 if test -z "$SED"; then
6115 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6117 if test -z "$GREP"; then
6118 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6123 /* end confdefs.h. */
6125 $curl_includes_inttypes
6127 CURL_DEF_TOKEN $tmp_fmt
6132 if ac_fn_c_try_cpp "$LINENO"; then :
6134 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6135 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6136 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6137 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6138 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6143 rm -f conftest.err conftest.i conftest.$ac_ext
6144 if test -z "$tmp_exp"; then
6145 eval "$as_ac_HaveDef=no"
6148 eval "$as_ac_HaveDef=yes"
6149 eval "$as_ac_Def=\$tmp_exp"
6153 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6154 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6155 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6156 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6157 curl_typeof_curl_off_t="$t8"
6158 curl_sizeof_curl_off_t="8"
6163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6168 $as_echo "$curl_typeof_curl_off_t" >&6; }
6170 if test "$curl_typeof_curl_off_t" = "unknown"; then
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 32-bit curl_off_t data type" >&5
6172 $as_echo_n "checking for 32-bit curl_off_t data type... " >&6; }
6179 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t4"; then
6183 case `echo "$t4" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6185 tmp_includes="$curl_includes_inttypes"
6186 tmp_source="char f[] = PRId64;"
6190 tmp_includes="$curl_includes_inttypes"
6191 tmp_source="char f[] = PRId32;"
6195 tmp_includes="$curl_includes_inttypes"
6196 tmp_source="char f[] = PRId16;"
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6205 typedef $t4 curl_off_t;
6206 typedef char dummy_arr[sizeof(curl_off_t) == 4 ? 1 : -1];
6219 if ac_fn_c_try_compile "$LINENO"; then :
6221 if test -z "$tmp_fmt"; then
6222 curl_typeof_curl_off_t="$t4"
6223 curl_sizeof_curl_off_t="4"
6226 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6227 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6228 if test -z "$SED"; then
6229 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6231 if test -z "$GREP"; then
6232 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6237 /* end confdefs.h. */
6239 $curl_includes_inttypes
6241 CURL_DEF_TOKEN $tmp_fmt
6246 if ac_fn_c_try_cpp "$LINENO"; then :
6248 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6249 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6250 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6251 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6252 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6257 rm -f conftest.err conftest.i conftest.$ac_ext
6258 if test -z "$tmp_exp"; then
6259 eval "$as_ac_HaveDef=no"
6262 eval "$as_ac_HaveDef=yes"
6263 eval "$as_ac_Def=\$tmp_exp"
6267 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6268 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6269 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6270 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6271 curl_typeof_curl_off_t="$t4"
6272 curl_sizeof_curl_off_t="4"
6277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6282 $as_echo "$curl_typeof_curl_off_t" >&6; }
6284 if test "$curl_typeof_curl_off_t" = "unknown"; then
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 16-bit curl_off_t data type" >&5
6286 $as_echo_n "checking for 16-bit curl_off_t data type... " >&6; }
6293 if test "$curl_typeof_curl_off_t" = "unknown" && test ! -z "$t2"; then
6297 case `echo "$t2" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6299 tmp_includes="$curl_includes_inttypes"
6300 tmp_source="char f[] = PRId64;"
6304 tmp_includes="$curl_includes_inttypes"
6305 tmp_source="char f[] = PRId32;"
6309 tmp_includes="$curl_includes_inttypes"
6310 tmp_source="char f[] = PRId16;"
6314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6315 /* end confdefs.h. */
6319 typedef $t2 curl_off_t;
6320 typedef char dummy_arr[sizeof(curl_off_t) == 2 ? 1 : -1];
6333 if ac_fn_c_try_compile "$LINENO"; then :
6335 if test -z "$tmp_fmt"; then
6336 curl_typeof_curl_off_t="$t2"
6337 curl_sizeof_curl_off_t="2"
6340 as_ac_HaveDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6341 as_ac_Def=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6342 if test -z "$SED"; then
6343 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
6345 if test -z "$GREP"; then
6346 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
6350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6351 /* end confdefs.h. */
6353 $curl_includes_inttypes
6355 CURL_DEF_TOKEN $tmp_fmt
6360 if ac_fn_c_try_cpp "$LINENO"; then :
6362 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
6363 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
6364 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
6365 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
6366 if test -z "$tmp_exp" || test "$tmp_exp" = "$tmp_fmt"; then
6371 rm -f conftest.err conftest.i conftest.$ac_ext
6372 if test -z "$tmp_exp"; then
6373 eval "$as_ac_HaveDef=no"
6376 eval "$as_ac_HaveDef=yes"
6377 eval "$as_ac_Def=\$tmp_exp"
6381 as_tmp_HaveFmtDef=`$as_echo "curl_cv_have_def_$tmp_fmt" | $as_tr_sh`
6382 as_tmp_FmtDef=`$as_echo "curl_cv_def_$tmp_fmt" | $as_tr_sh`
6383 if test `eval 'as_val=${'$as_tmp_HaveFmtDef'};$as_echo "$as_val"'` = "yes"; then
6384 curl_format_curl_off_t=`eval 'as_val=${'$as_tmp_FmtDef'};$as_echo "$as_val"'`
6385 curl_typeof_curl_off_t="$t2"
6386 curl_sizeof_curl_off_t="2"
6391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_off_t" >&5
6396 $as_echo "$curl_typeof_curl_off_t" >&6; }
6398 if test "$curl_typeof_curl_off_t" = "unknown"; then
6399 as_fn_error $? "cannot find data type for curl_off_t." "$LINENO" 5
6402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_off_t" >&5
6403 $as_echo_n "checking size of curl_off_t... " >&6; }
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_off_t" >&5
6405 $as_echo "$curl_sizeof_curl_off_t" >&6; }
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for curl_off_t" >&5
6408 $as_echo_n "checking formatting string directive for curl_off_t... " >&6; }
6409 if test "$curl_format_curl_off_t" != "unknown"; then
6410 x_pull_headers="yes"
6411 curl_format_curl_off_t=`echo "$curl_format_curl_off_t" | "$SED" 's/["]//g'`
6412 curl_format_curl_off_tu=`echo "$curl_format_curl_off_t" | "$SED" 's/i$/u/'`
6413 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/d$/u/'`
6414 curl_format_curl_off_tu=`echo "$curl_format_curl_off_tu" | "$SED" 's/D$/U/'`
6417 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6418 long_long | __longlong | __longlong_t)
6419 curl_format_curl_off_t="lld"
6420 curl_format_curl_off_tu="llu"
6423 curl_format_curl_off_t="ld"
6424 curl_format_curl_off_tu="lu"
6427 curl_format_curl_off_t="d"
6428 curl_format_curl_off_tu="u"
6431 curl_format_curl_off_t="I64d"
6432 curl_format_curl_off_tu="I64u"
6435 curl_format_curl_off_t="I32d"
6436 curl_format_curl_off_tu="I32u"
6439 curl_format_curl_off_t="I16d"
6440 curl_format_curl_off_tu="I16u"
6443 as_fn_error $? "cannot find print format string for curl_off_t." "$LINENO" 5
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_t\"" >&5
6448 $as_echo "\"$curl_format_curl_off_t\"" >&6; }
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking formatting string directive for unsigned curl_off_t" >&5
6451 $as_echo_n "checking formatting string directive for unsigned curl_off_t... " >&6; }
6452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$curl_format_curl_off_tu\"" >&5
6453 $as_echo "\"$curl_format_curl_off_tu\"" >&6; }
6456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for curl_off_t" >&5
6457 $as_echo_n "checking constant suffix string for curl_off_t... " >&6; }
6459 curl_suffix_curl_off_t="unknown"
6460 curl_suffix_curl_off_tu="unknown"
6462 case `echo "$curl_typeof_curl_off_t" | sed 's/[^a-zA-Z0-9_]/_/g'` in
6463 long_long | __longlong | __longlong_t)
6473 tst_suffixes="LL:i64::"
6476 tst_suffixes="L:i32::"
6479 tst_suffixes="L:i16::"
6482 as_fn_error $? "unexpected data type $curl_typeof_curl_off_t" "$LINENO" 5
6486 old_IFS=$IFS; IFS=':'
6487 for tmp_ssuf in $tst_suffixes ; do
6489 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6492 tmp_usuf="u$tmp_ssuf"
6495 tmp_usuf="U$tmp_ssuf"
6501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6502 /* end confdefs.h. */
6505 $curl_includes_inttypes
6506 typedef $curl_typeof_curl_off_t new_t;
6523 if ac_fn_c_try_compile "$LINENO"; then :
6525 curl_suffix_curl_off_t="$tmp_ssuf"
6526 curl_suffix_curl_off_tu="$tmp_usuf"
6529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6534 if test "x$curl_suffix_curl_off_t" = "xunknown"; then
6535 as_fn_error $? "cannot find constant suffix string for curl_off_t." "$LINENO" 5
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_t" >&5
6538 $as_echo "$curl_suffix_curl_off_t" >&6; }
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking constant suffix string for unsigned curl_off_t" >&5
6540 $as_echo_n "checking constant suffix string for unsigned curl_off_t... " >&6; }
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_suffix_curl_off_tu" >&5
6542 $as_echo "$curl_suffix_curl_off_tu" >&6; }
6547 if test "$x_pull_headers" = "yes"; then
6548 if test "x$ac_cv_header_sys_types_h" = "xyes"; then
6550 cat >>confdefs.h <<_EOF
6551 #define CURL_PULL_SYS_TYPES_H 1
6555 if test "x$ac_cv_header_stdint_h" = "xyes"; then
6557 cat >>confdefs.h <<_EOF
6558 #define CURL_PULL_STDINT_H 1
6562 if test "x$ac_cv_header_inttypes_h" = "xyes"; then
6564 cat >>confdefs.h <<_EOF
6565 #define CURL_PULL_INTTYPES_H 1
6572 cat >>confdefs.h <<_EOF
6573 #define CURL_TYPEOF_CURL_OFF_T $curl_typeof_curl_off_t
6577 cat >>confdefs.h <<_EOF
6578 #define CURL_FORMAT_CURL_OFF_T "$curl_format_curl_off_t"
6582 cat >>confdefs.h <<_EOF
6583 #define CURL_FORMAT_CURL_OFF_TU "$curl_format_curl_off_tu"
6587 cat >>confdefs.h <<_EOF
6588 #define CURL_FORMAT_OFF_T "%$curl_format_curl_off_t"
6592 cat >>confdefs.h <<_EOF
6593 #define CURL_SIZEOF_CURL_OFF_T $curl_sizeof_curl_off_t
6597 cat >>confdefs.h <<_EOF
6598 #define CURL_SUFFIX_CURL_OFF_T $curl_suffix_curl_off_t
6602 cat >>confdefs.h <<_EOF
6603 #define CURL_SUFFIX_CURL_OFF_TU $curl_suffix_curl_off_tu
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if OS is AIX (to define _ALL_SOURCE)" >&5
6612 $as_echo_n "checking if OS is AIX (to define _ALL_SOURCE)... " >&6; }
6613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6614 /* end confdefs.h. */
6621 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6622 $EGREP "yes_this_is_aix" >/dev/null 2>&1; then :
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6625 $as_echo "yes" >&6; }
6626 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
6631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6632 $as_echo "no" >&6; }
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is already defined" >&5
6642 $as_echo_n "checking if _THREAD_SAFE is already defined... " >&6; }
6643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6644 /* end confdefs.h. */
6654 force compilation error
6662 if ac_fn_c_try_compile "$LINENO"; then :
6664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6665 $as_echo "yes" >&6; }
6666 tmp_thread_safe_initially_defined="yes"
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6671 $as_echo "no" >&6; }
6672 tmp_thread_safe_initially_defined="no"
6675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 if test "$tmp_thread_safe_initially_defined" = "no"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is actually needed" >&5
6679 $as_echo_n "checking if _THREAD_SAFE is actually needed... " >&6; }
6682 aix[123].* | aix4.[012].*)
6683 tmp_need_thread_safe="no"
6686 tmp_need_thread_safe="yes"
6689 tmp_need_thread_safe="no"
6693 if test "$tmp_need_thread_safe" = "yes"; then
6694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6695 $as_echo "yes" >&6; }
6697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6698 $as_echo "no" >&6; }
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _THREAD_SAFE is onwards defined" >&5
6703 $as_echo_n "checking if _THREAD_SAFE is onwards defined... " >&6; }
6704 if test "$tmp_thread_safe_initially_defined" = "yes" ||
6705 test "$tmp_need_thread_safe" = "yes"; then
6708 $as_echo "#define NEED_THREAD_SAFE 1" >>confdefs.h
6710 cat >>confdefs.h <<_EOF
6711 #ifndef _THREAD_SAFE
6712 # define _THREAD_SAFE
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6717 $as_echo "yes" >&6; }
6719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6720 $as_echo "no" >&6; }
6726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is already defined" >&5
6727 $as_echo_n "checking if _REENTRANT is already defined... " >&6; }
6728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6729 /* end confdefs.h. */
6739 force compilation error
6747 if ac_fn_c_try_compile "$LINENO"; then :
6749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6750 $as_echo "yes" >&6; }
6751 tmp_reentrant_initially_defined="yes"
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6756 $as_echo "no" >&6; }
6757 tmp_reentrant_initially_defined="no"
6760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762 if test "$tmp_reentrant_initially_defined" = "no"; then
6763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is actually needed" >&5
6764 $as_echo_n "checking if _REENTRANT is actually needed... " >&6; }
6768 tmp_need_reentrant="yes"
6771 tmp_need_reentrant="no"
6775 if test "$tmp_need_reentrant" = "no"; then
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6794 if ac_fn_c_try_compile "$LINENO"; then :
6803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6804 if test "$tmp_errno" = "yes"; then
6805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6806 /* end confdefs.h. */
6817 force compilation error
6825 if ac_fn_c_try_compile "$LINENO"; then :
6827 tmp_errno="errno_macro_defined"
6831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6832 /* end confdefs.h. */
6844 force compilation error
6852 if ac_fn_c_try_compile "$LINENO"; then :
6854 tmp_errno="errno_macro_needs_reentrant"
6855 tmp_need_reentrant="yes"
6858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6865 if test "$tmp_need_reentrant" = "no"; then
6867 if test "$tmp_need_reentrant" = "no"; then
6869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6870 /* end confdefs.h. */
6873 #define gmtime_r innocuous_gmtime_r
6875 # include <limits.h>
6877 # include <assert.h>
6884 #if defined __stub_gmtime_r || defined __stub___gmtime_r
6896 if ac_fn_c_try_link "$LINENO"; then :
6905 rm -f core conftest.err conftest.$ac_objext \
6906 conftest$ac_exeext conftest.$ac_ext
6907 if test "$tmp_gmtime_r" = "yes"; then
6908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6909 /* end confdefs.h. */
6911 #include <sys/types.h>
6915 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6916 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6918 tmp_gmtime_r="proto_declared"
6922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6923 /* end confdefs.h. */
6926 #include <sys/types.h>
6930 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6931 $EGREP "gmtime_r" >/dev/null 2>&1; then :
6933 tmp_gmtime_r="proto_needs_reentrant"
6934 tmp_need_reentrant="yes"
6946 if test "$tmp_need_reentrant" = "no"; then
6948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6949 /* end confdefs.h. */
6952 #define localtime_r innocuous_localtime_r
6954 # include <limits.h>
6956 # include <assert.h>
6962 char localtime_r ();
6963 #if defined __stub_localtime_r || defined __stub___localtime_r
6969 return localtime_r ();
6975 if ac_fn_c_try_link "$LINENO"; then :
6977 tmp_localtime_r="yes"
6981 tmp_localtime_r="no"
6984 rm -f core conftest.err conftest.$ac_objext \
6985 conftest$ac_exeext conftest.$ac_ext
6986 if test "$tmp_localtime_r" = "yes"; then
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988 /* end confdefs.h. */
6990 #include <sys/types.h>
6994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6995 $EGREP "localtime_r" >/dev/null 2>&1; then :
6997 tmp_localtime_r="proto_declared"
7001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7002 /* end confdefs.h. */
7005 #include <sys/types.h>
7009 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7010 $EGREP "localtime_r" >/dev/null 2>&1; then :
7012 tmp_localtime_r="proto_needs_reentrant"
7013 tmp_need_reentrant="yes"
7025 if test "$tmp_need_reentrant" = "no"; then
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7031 #define strerror_r innocuous_strerror_r
7033 # include <limits.h>
7035 # include <assert.h>
7042 #if defined __stub_strerror_r || defined __stub___strerror_r
7048 return strerror_r ();
7054 if ac_fn_c_try_link "$LINENO"; then :
7056 tmp_strerror_r="yes"
7063 rm -f core conftest.err conftest.$ac_objext \
7064 conftest$ac_exeext conftest.$ac_ext
7065 if test "$tmp_strerror_r" = "yes"; then
7066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7069 #include <sys/types.h>
7073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7074 $EGREP "strerror_r" >/dev/null 2>&1; then :
7076 tmp_strerror_r="proto_declared"
7080 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7081 /* end confdefs.h. */
7084 #include <sys/types.h>
7088 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7089 $EGREP "strerror_r" >/dev/null 2>&1; then :
7091 tmp_strerror_r="proto_needs_reentrant"
7092 tmp_need_reentrant="yes"
7104 if test "$tmp_need_reentrant" = "no"; then
7106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7110 #define strtok_r innocuous_strtok_r
7112 # include <limits.h>
7114 # include <assert.h>
7121 #if defined __stub_strtok_r || defined __stub___strtok_r
7133 if ac_fn_c_try_link "$LINENO"; then :
7142 rm -f core conftest.err conftest.$ac_objext \
7143 conftest$ac_exeext conftest.$ac_ext
7144 if test "$tmp_strtok_r" = "yes"; then
7145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7146 /* end confdefs.h. */
7148 #include <sys/types.h>
7152 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7153 $EGREP "strtok_r" >/dev/null 2>&1; then :
7155 tmp_strtok_r="proto_declared"
7159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7160 /* end confdefs.h. */
7163 #include <sys/types.h>
7167 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7168 $EGREP "strtok_r" >/dev/null 2>&1; then :
7170 tmp_strtok_r="proto_needs_reentrant"
7171 tmp_need_reentrant="yes"
7183 if test "$tmp_need_reentrant" = "no"; then
7185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7186 /* end confdefs.h. */
7189 #define inet_ntoa_r innocuous_inet_ntoa_r
7191 # include <limits.h>
7193 # include <assert.h>
7199 char inet_ntoa_r ();
7200 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
7206 return inet_ntoa_r ();
7212 if ac_fn_c_try_link "$LINENO"; then :
7214 tmp_inet_ntoa_r="yes"
7218 tmp_inet_ntoa_r="no"
7221 rm -f core conftest.err conftest.$ac_objext \
7222 conftest$ac_exeext conftest.$ac_ext
7223 if test "$tmp_inet_ntoa_r" = "yes"; then
7224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7225 /* end confdefs.h. */
7227 #include <sys/types.h>
7228 #include <sys/socket.h>
7229 #include <netinet/in.h>
7230 #include <arpa/inet.h>
7233 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7234 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7236 tmp_inet_ntoa_r="proto_declared"
7240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7241 /* end confdefs.h. */
7244 #include <sys/types.h>
7245 #include <sys/socket.h>
7246 #include <netinet/in.h>
7247 #include <arpa/inet.h>
7250 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7251 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
7253 tmp_inet_ntoa_r="proto_needs_reentrant"
7254 tmp_need_reentrant="yes"
7266 if test "$tmp_need_reentrant" = "no"; then
7268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7269 /* end confdefs.h. */
7272 #define gethostbyaddr_r innocuous_gethostbyaddr_r
7274 # include <limits.h>
7276 # include <assert.h>
7278 #undef gethostbyaddr_r
7282 char gethostbyaddr_r ();
7283 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
7289 return gethostbyaddr_r ();
7295 if ac_fn_c_try_link "$LINENO"; then :
7297 tmp_gethostbyaddr_r="yes"
7301 tmp_gethostbyaddr_r="no"
7304 rm -f core conftest.err conftest.$ac_objext \
7305 conftest$ac_exeext conftest.$ac_ext
7306 if test "$tmp_gethostbyaddr_r" = "yes"; then
7307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7308 /* end confdefs.h. */
7310 #include <sys/types.h>
7314 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7315 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7317 tmp_gethostbyaddr_r="proto_declared"
7321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7322 /* end confdefs.h. */
7325 #include <sys/types.h>
7329 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7330 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
7332 tmp_gethostbyaddr_r="proto_needs_reentrant"
7333 tmp_need_reentrant="yes"
7345 if test "$tmp_need_reentrant" = "no"; then
7347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7348 /* end confdefs.h. */
7351 #define gethostbyname_r innocuous_gethostbyname_r
7353 # include <limits.h>
7355 # include <assert.h>
7357 #undef gethostbyname_r
7361 char gethostbyname_r ();
7362 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
7368 return gethostbyname_r ();
7374 if ac_fn_c_try_link "$LINENO"; then :
7376 tmp_gethostbyname_r="yes"
7380 tmp_gethostbyname_r="no"
7383 rm -f core conftest.err conftest.$ac_objext \
7384 conftest$ac_exeext conftest.$ac_ext
7385 if test "$tmp_gethostbyname_r" = "yes"; then
7386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7387 /* end confdefs.h. */
7389 #include <sys/types.h>
7393 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7394 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7396 tmp_gethostbyname_r="proto_declared"
7400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7401 /* end confdefs.h. */
7404 #include <sys/types.h>
7408 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7409 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
7411 tmp_gethostbyname_r="proto_needs_reentrant"
7412 tmp_need_reentrant="yes"
7424 if test "$tmp_need_reentrant" = "no"; then
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7430 #define getprotobyname_r innocuous_getprotobyname_r
7432 # include <limits.h>
7434 # include <assert.h>
7436 #undef getprotobyname_r
7440 char getprotobyname_r ();
7441 #if defined __stub_getprotobyname_r || defined __stub___getprotobyname_r
7447 return getprotobyname_r ();
7453 if ac_fn_c_try_link "$LINENO"; then :
7455 tmp_getprotobyname_r="yes"
7459 tmp_getprotobyname_r="no"
7462 rm -f core conftest.err conftest.$ac_objext \
7463 conftest$ac_exeext conftest.$ac_ext
7464 if test "$tmp_getprotobyname_r" = "yes"; then
7465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7466 /* end confdefs.h. */
7468 #include <sys/types.h>
7472 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7473 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7475 tmp_getprotobyname_r="proto_declared"
7479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7480 /* end confdefs.h. */
7483 #include <sys/types.h>
7487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7488 $EGREP "getprotobyname_r" >/dev/null 2>&1; then :
7490 tmp_getprotobyname_r="proto_needs_reentrant"
7491 tmp_need_reentrant="yes"
7503 if test "$tmp_need_reentrant" = "no"; then
7505 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7506 /* end confdefs.h. */
7509 #define getservbyport_r innocuous_getservbyport_r
7511 # include <limits.h>
7513 # include <assert.h>
7515 #undef getservbyport_r
7519 char getservbyport_r ();
7520 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
7526 return getservbyport_r ();
7532 if ac_fn_c_try_link "$LINENO"; then :
7534 tmp_getservbyport_r="yes"
7538 tmp_getservbyport_r="no"
7541 rm -f core conftest.err conftest.$ac_objext \
7542 conftest$ac_exeext conftest.$ac_ext
7543 if test "$tmp_getservbyport_r" = "yes"; then
7544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7545 /* end confdefs.h. */
7547 #include <sys/types.h>
7551 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7552 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7554 tmp_getservbyport_r="proto_declared"
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7562 #include <sys/types.h>
7566 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7567 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
7569 tmp_getservbyport_r="proto_needs_reentrant"
7570 tmp_need_reentrant="yes"
7584 if test "$tmp_need_reentrant" = "yes"; then
7585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7586 $as_echo "yes" >&6; }
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7589 $as_echo "no" >&6; }
7593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _REENTRANT is onwards defined" >&5
7594 $as_echo_n "checking if _REENTRANT is onwards defined... " >&6; }
7595 if test "$tmp_reentrant_initially_defined" = "yes" ||
7596 test "$tmp_need_reentrant" = "yes"; then
7599 $as_echo "#define NEED_REENTRANT 1" >>confdefs.h
7601 cat >>confdefs.h <<_EOF
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7608 $as_echo "yes" >&6; }
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7616 # Check whether --enable-largefile was given.
7617 if test "${enable_largefile+set}" = set; then :
7618 enableval=$enable_largefile;
7621 if test "$enable_largefile" != no; then
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
7624 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
7625 if ${ac_cv_sys_largefile_CC+:} false; then :
7626 $as_echo_n "(cached) " >&6
7628 ac_cv_sys_largefile_CC=no
7629 if test "$GCC" != yes; then
7632 # IRIX 6.2 and later do not support large files by default,
7633 # so use the C compiler's -n32 option if that helps.
7634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7635 /* end confdefs.h. */
7636 #include <sys/types.h>
7637 /* Check that off_t can represent 2**63 - 1 correctly.
7638 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7639 since some C++ compilers masquerading as C compilers
7640 incorrectly reject 9223372036854775807. */
7641 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7642 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7643 && LARGE_OFF_T % 2147483647 == 1)
7652 if ac_fn_c_try_compile "$LINENO"; then :
7655 rm -f core conftest.err conftest.$ac_objext
7657 if ac_fn_c_try_compile "$LINENO"; then :
7658 ac_cv_sys_largefile_CC=' -n32'; break
7660 rm -f core conftest.err conftest.$ac_objext
7664 rm -f conftest.$ac_ext
7667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
7668 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
7669 if test "$ac_cv_sys_largefile_CC" != no; then
7670 CC=$CC$ac_cv_sys_largefile_CC
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7674 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
7675 if ${ac_cv_sys_file_offset_bits+:} false; then :
7676 $as_echo_n "(cached) " >&6
7679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7680 /* end confdefs.h. */
7681 #include <sys/types.h>
7682 /* Check that off_t can represent 2**63 - 1 correctly.
7683 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7684 since some C++ compilers masquerading as C compilers
7685 incorrectly reject 9223372036854775807. */
7686 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7687 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7688 && LARGE_OFF_T % 2147483647 == 1)
7697 if ac_fn_c_try_compile "$LINENO"; then :
7698 ac_cv_sys_file_offset_bits=no; break
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7702 /* end confdefs.h. */
7703 #define _FILE_OFFSET_BITS 64
7704 #include <sys/types.h>
7705 /* Check that off_t can represent 2**63 - 1 correctly.
7706 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7707 since some C++ compilers masquerading as C compilers
7708 incorrectly reject 9223372036854775807. */
7709 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7710 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7711 && LARGE_OFF_T % 2147483647 == 1)
7720 if ac_fn_c_try_compile "$LINENO"; then :
7721 ac_cv_sys_file_offset_bits=64; break
7723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7724 ac_cv_sys_file_offset_bits=unknown
7728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
7729 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
7730 case $ac_cv_sys_file_offset_bits in #(
7733 cat >>confdefs.h <<_ACEOF
7734 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7739 if test $ac_cv_sys_file_offset_bits = unknown; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
7741 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
7742 if ${ac_cv_sys_large_files+:} false; then :
7743 $as_echo_n "(cached) " >&6
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #include <sys/types.h>
7749 /* Check that off_t can represent 2**63 - 1 correctly.
7750 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7751 since some C++ compilers masquerading as C compilers
7752 incorrectly reject 9223372036854775807. */
7753 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7754 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7755 && LARGE_OFF_T % 2147483647 == 1)
7764 if ac_fn_c_try_compile "$LINENO"; then :
7765 ac_cv_sys_large_files=no; break
7767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7769 /* end confdefs.h. */
7770 #define _LARGE_FILES 1
7771 #include <sys/types.h>
7772 /* Check that off_t can represent 2**63 - 1 correctly.
7773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7774 since some C++ compilers masquerading as C compilers
7775 incorrectly reject 9223372036854775807. */
7776 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
7777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7778 && LARGE_OFF_T % 2147483647 == 1)
7787 if ac_fn_c_try_compile "$LINENO"; then :
7788 ac_cv_sys_large_files=1; break
7790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7791 ac_cv_sys_large_files=unknown
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
7796 $as_echo "$ac_cv_sys_large_files" >&6; }
7797 case $ac_cv_sys_large_files in #(
7800 cat >>confdefs.h <<_ACEOF
7801 #define _LARGE_FILES $ac_cv_sys_large_files
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7815 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7820 macro_version='2.4.2'
7821 macro_revision='1.3337'
7835 ltmain="$ac_aux_dir/ltmain.sh"
7837 # Backslashify metacharacters that are still active within
7838 # double-quoted strings.
7839 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7841 # Same as above, but do not quote variable references.
7842 double_quote_subst='s/\(["`\\]\)/\\\1/g'
7844 # Sed substitution to delay expansion of an escaped shell variable in a
7845 # double_quote_subst'ed string.
7846 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7848 # Sed substitution to delay expansion of an escaped single quote.
7849 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7851 # Sed substitution to avoid accidental globbing in evaled expressions
7852 no_glob_subst='s/\*/\\\*/g'
7854 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7855 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7856 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7859 $as_echo_n "checking how to print strings... " >&6; }
7860 # Test print first, because it will be a builtin if present.
7861 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7862 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7864 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7867 # Use this function as a fallback that always works.
7868 func_fallback_echo ()
7870 eval 'cat <<_LTECHO_EOF
7874 ECHO='func_fallback_echo'
7877 # func_echo_all arg...
7878 # Invoke $ECHO with all args, space-separated.
7885 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7886 $as_echo "printf" >&6; } ;;
7887 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7888 $as_echo "print -r" >&6; } ;;
7889 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7890 $as_echo "cat" >&6; } ;;
7906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7907 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7908 if ${ac_cv_path_SED+:} false; then :
7909 $as_echo_n "(cached) " >&6
7911 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7912 for ac_i in 1 2 3 4 5 6 7; do
7913 ac_script="$ac_script$as_nl$ac_script"
7915 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7916 { ac_script=; unset ac_script;}
7917 if test -z "$SED"; then
7918 ac_path_SED_found=false
7919 # Loop through the user's path and test for each of PROGNAME-LIST
7920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7924 test -z "$as_dir" && as_dir=.
7925 for ac_prog in sed gsed; do
7926 for ac_exec_ext in '' $ac_executable_extensions; do
7927 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7928 as_fn_executable_p "$ac_path_SED" || continue
7929 # Check for GNU ac_path_SED and select it if it is found.
7930 # Check for GNU $ac_path_SED
7931 case `"$ac_path_SED" --version 2>&1` in
7933 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7936 $as_echo_n 0123456789 >"conftest.in"
7939 cat "conftest.in" "conftest.in" >"conftest.tmp"
7940 mv "conftest.tmp" "conftest.in"
7941 cp "conftest.in" "conftest.nl"
7942 $as_echo '' >> "conftest.nl"
7943 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7944 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7945 as_fn_arith $ac_count + 1 && ac_count=$as_val
7946 if test $ac_count -gt ${ac_path_SED_max-0}; then
7947 # Best one so far, save it but keep looking for a better one
7948 ac_cv_path_SED="$ac_path_SED"
7949 ac_path_SED_max=$ac_count
7951 # 10*(2^10) chars as input seems more than enough
7952 test $ac_count -gt 10 && break
7954 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7957 $ac_path_SED_found && break 3
7962 if test -z "$ac_cv_path_SED"; then
7963 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7971 $as_echo "$ac_cv_path_SED" >&6; }
7972 SED="$ac_cv_path_SED"
7975 test -z "$SED" && SED=sed
7976 Xsed="$SED -e 1s/^X//"
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7989 $as_echo_n "checking for fgrep... " >&6; }
7990 if ${ac_cv_path_FGREP+:} false; then :
7991 $as_echo_n "(cached) " >&6
7993 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7994 then ac_cv_path_FGREP="$GREP -F"
7996 if test -z "$FGREP"; then
7997 ac_path_FGREP_found=false
7998 # Loop through the user's path and test for each of PROGNAME-LIST
7999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8000 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8003 test -z "$as_dir" && as_dir=.
8004 for ac_prog in fgrep; do
8005 for ac_exec_ext in '' $ac_executable_extensions; do
8006 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8007 as_fn_executable_p "$ac_path_FGREP" || continue
8008 # Check for GNU ac_path_FGREP and select it if it is found.
8009 # Check for GNU $ac_path_FGREP
8010 case `"$ac_path_FGREP" --version 2>&1` in
8012 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8015 $as_echo_n 0123456789 >"conftest.in"
8018 cat "conftest.in" "conftest.in" >"conftest.tmp"
8019 mv "conftest.tmp" "conftest.in"
8020 cp "conftest.in" "conftest.nl"
8021 $as_echo 'FGREP' >> "conftest.nl"
8022 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8023 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8024 as_fn_arith $ac_count + 1 && ac_count=$as_val
8025 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8026 # Best one so far, save it but keep looking for a better one
8027 ac_cv_path_FGREP="$ac_path_FGREP"
8028 ac_path_FGREP_max=$ac_count
8030 # 10*(2^10) chars as input seems more than enough
8031 test $ac_count -gt 10 && break
8033 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8036 $ac_path_FGREP_found && break 3
8041 if test -z "$ac_cv_path_FGREP"; then
8042 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8045 ac_cv_path_FGREP=$FGREP
8050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8051 $as_echo "$ac_cv_path_FGREP" >&6; }
8052 FGREP="$ac_cv_path_FGREP"
8055 test -z "$GREP" && GREP=grep
8075 # Check whether --with-gnu-ld was given.
8076 if test "${with_gnu_ld+set}" = set; then :
8077 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8083 if test "$GCC" = yes; then
8084 # Check if gcc -print-prog-name=ld gives a path.
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8086 $as_echo_n "checking for ld used by $CC... " >&6; }
8089 # gcc leaves a trailing carriage return which upsets mingw
8090 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8092 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8095 # Accept absolute paths.
8097 re_direlt='/[^/][^/]*/\.\./'
8098 # Canonicalize the pathname of ld
8099 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8100 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8101 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8103 test -z "$LD" && LD="$ac_prog"
8106 # If it fails, then pretend we aren't using GCC.
8110 # If it is relative, then search for the first ld in PATH.
8114 elif test "$with_gnu_ld" = yes; then
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8116 $as_echo_n "checking for GNU ld... " >&6; }
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8119 $as_echo_n "checking for non-GNU ld... " >&6; }
8121 if ${lt_cv_path_LD+:} false; then :
8122 $as_echo_n "(cached) " >&6
8124 if test -z "$LD"; then
8125 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8126 for ac_dir in $PATH; do
8128 test -z "$ac_dir" && ac_dir=.
8129 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8130 lt_cv_path_LD="$ac_dir/$ac_prog"
8131 # Check to see if the program is GNU ld. I'd rather use --version,
8132 # but apparently some variants of GNU ld only accept -v.
8133 # Break only if it was the GNU/non-GNU ld that we prefer.
8134 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8135 *GNU* | *'with BFD'*)
8136 test "$with_gnu_ld" != no && break
8139 test "$with_gnu_ld" != yes && break
8146 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8151 if test -n "$LD"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8153 $as_echo "$LD" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8158 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8160 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8161 if ${lt_cv_prog_gnu_ld+:} false; then :
8162 $as_echo_n "(cached) " >&6
8164 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8165 case `$LD -v 2>&1 </dev/null` in
8166 *GNU* | *'with BFD'*)
8167 lt_cv_prog_gnu_ld=yes
8170 lt_cv_prog_gnu_ld=no
8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8175 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8176 with_gnu_ld=$lt_cv_prog_gnu_ld
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8187 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8188 if ${lt_cv_path_NM+:} false; then :
8189 $as_echo_n "(cached) " >&6
8191 if test -n "$NM"; then
8192 # Let the user override the test.
8195 lt_nm_to_check="${ac_tool_prefix}nm"
8196 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8197 lt_nm_to_check="$lt_nm_to_check nm"
8199 for lt_tmp_nm in $lt_nm_to_check; do
8200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8201 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8203 test -z "$ac_dir" && ac_dir=.
8204 tmp_nm="$ac_dir/$lt_tmp_nm"
8205 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8206 # Check to see if the nm accepts a BSD-compat flag.
8207 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8208 # nm: unknown option "B" ignored
8209 # Tru64's nm complains that /dev/null is an invalid object file
8210 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8211 */dev/null* | *'Invalid file or object type'*)
8212 lt_cv_path_NM="$tmp_nm -B"
8216 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8218 lt_cv_path_NM="$tmp_nm -p"
8222 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8223 continue # so that we can try to find one that supports BSD flags
8232 : ${lt_cv_path_NM=no}
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8236 $as_echo "$lt_cv_path_NM" >&6; }
8237 if test "$lt_cv_path_NM" != "no"; then
8240 # Didn't find any BSD compatible name lister, look for dumpbin.
8241 if test -n "$DUMPBIN"; then :
8242 # Let the user override the test.
8244 if test -n "$ac_tool_prefix"; then
8245 for ac_prog in dumpbin "link -dump"
8247 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8248 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8250 $as_echo_n "checking for $ac_word... " >&6; }
8251 if ${ac_cv_prog_DUMPBIN+:} false; then :
8252 $as_echo_n "(cached) " >&6
8254 if test -n "$DUMPBIN"; then
8255 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8261 test -z "$as_dir" && as_dir=.
8262 for ac_exec_ext in '' $ac_executable_extensions; do
8263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8264 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8265 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8274 DUMPBIN=$ac_cv_prog_DUMPBIN
8275 if test -n "$DUMPBIN"; then
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8277 $as_echo "$DUMPBIN" >&6; }
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo "no" >&6; }
8284 test -n "$DUMPBIN" && break
8287 if test -z "$DUMPBIN"; then
8288 ac_ct_DUMPBIN=$DUMPBIN
8289 for ac_prog in dumpbin "link -dump"
8291 # Extract the first word of "$ac_prog", so it can be a program name with args.
8292 set dummy $ac_prog; ac_word=$2
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8294 $as_echo_n "checking for $ac_word... " >&6; }
8295 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8296 $as_echo_n "(cached) " >&6
8298 if test -n "$ac_ct_DUMPBIN"; then
8299 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8305 test -z "$as_dir" && as_dir=.
8306 for ac_exec_ext in '' $ac_executable_extensions; do
8307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8308 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8309 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8318 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8319 if test -n "$ac_ct_DUMPBIN"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8321 $as_echo "$ac_ct_DUMPBIN" >&6; }
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8328 test -n "$ac_ct_DUMPBIN" && break
8331 if test "x$ac_ct_DUMPBIN" = x; then
8334 case $cross_compiling:$ac_tool_warned in
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8337 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8338 ac_tool_warned=yes ;;
8340 DUMPBIN=$ac_ct_DUMPBIN
8344 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8346 DUMPBIN="$DUMPBIN -symbols"
8354 if test "$DUMPBIN" != ":"; then
8358 test -z "$NM" && NM=nm
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8366 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8367 if ${lt_cv_nm_interface+:} false; then :
8368 $as_echo_n "(cached) " >&6
8370 lt_cv_nm_interface="BSD nm"
8371 echo "int some_variable = 0;" > conftest.$ac_ext
8372 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8373 (eval "$ac_compile" 2>conftest.err)
8374 cat conftest.err >&5
8375 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8376 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8377 cat conftest.err >&5
8378 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8379 cat conftest.out >&5
8380 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8381 lt_cv_nm_interface="MS dumpbin"
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8386 $as_echo "$lt_cv_nm_interface" >&6; }
8388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8389 $as_echo_n "checking whether ln -s works... " >&6; }
8391 if test "$LN_S" = "ln -s"; then
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8393 $as_echo "yes" >&6; }
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8396 $as_echo "no, using $LN_S" >&6; }
8399 # find the maximum length of command line arguments
8400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8401 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8402 if ${lt_cv_sys_max_cmd_len+:} false; then :
8403 $as_echo_n "(cached) " >&6
8410 # On DJGPP, this test can blow up pretty badly due to problems in libc
8411 # (any single argument exceeding 2000 bytes causes a buffer overrun
8412 # during glob expansion). Even if it were fixed, the result of this
8413 # check would be larger than it should be.
8414 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8418 # Under GNU Hurd, this test is not required because there is
8419 # no limit to the length of command line arguments.
8420 # Libtool will interpret -1 as no limit whatsoever
8421 lt_cv_sys_max_cmd_len=-1;
8424 cygwin* | mingw* | cegcc*)
8425 # On Win9x/ME, this test blows up -- it succeeds, but takes
8426 # about 5 minutes as the teststring grows exponentially.
8427 # Worse, since 9x/ME are not pre-emptively multitasking,
8428 # you end up with a "frozen" computer, even though with patience
8429 # the test eventually succeeds (with a max line length of 256k).
8430 # Instead, let's just punt: use the minimum linelength reported by
8431 # all of the supported platforms: 8192 (on NT/2K/XP).
8432 lt_cv_sys_max_cmd_len=8192;
8436 # On MiNT this can take a long time and run out of memory.
8437 lt_cv_sys_max_cmd_len=8192;
8441 # On AmigaOS with pdksh, this test takes hours, literally.
8442 # So we just punt and use a minimum line length of 8192.
8443 lt_cv_sys_max_cmd_len=8192;
8446 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8447 # This has been around since 386BSD, at least. Likely further.
8448 if test -x /sbin/sysctl; then
8449 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8450 elif test -x /usr/sbin/sysctl; then
8451 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8453 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8455 # And add a safety zone
8456 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8457 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8461 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8462 lt_cv_sys_max_cmd_len=196608
8466 # The test takes a long time on OS/2.
8467 lt_cv_sys_max_cmd_len=8192
8471 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8472 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8473 # nice to cause kernel panics so lets avoid the loop below.
8474 # First set a reasonable default.
8475 lt_cv_sys_max_cmd_len=16384
8477 if test -x /sbin/sysconfig; then
8478 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8479 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8484 lt_cv_sys_max_cmd_len=102400
8486 sysv5* | sco5v6* | sysv4.2uw2*)
8487 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8488 if test -n "$kargmax"; then
8489 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8491 lt_cv_sys_max_cmd_len=32768
8495 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8496 if test -n "$lt_cv_sys_max_cmd_len" && \
8497 test undefined != "$lt_cv_sys_max_cmd_len"; then
8498 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8499 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8501 # Make teststring a little bigger before we do anything with it.
8502 # a 1K string should be a reasonable start.
8503 for i in 1 2 3 4 5 6 7 8 ; do
8504 teststring=$teststring$teststring
8506 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8507 # If test is not a shell built-in, we'll probably end up computing a
8508 # maximum length that is only half of the actual maximum length, but
8510 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
8511 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8512 test $i != 17 # 1/2 MB should be enough
8515 teststring=$teststring$teststring
8517 # Only check the string length outside the loop.
8518 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8520 # Add a significant safety factor because C++ compilers can tack on
8521 # massive amounts of additional arguments before passing them to the
8522 # linker. It appears as though 1/2 is a usable value.
8523 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8530 if test -n $lt_cv_sys_max_cmd_len ; then
8531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8532 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8535 $as_echo "none" >&6; }
8537 max_cmd_len=$lt_cv_sys_max_cmd_len
8548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8549 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8550 # Try some XSI features
8553 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
8555 && eval 'test $(( 1 + 1 )) -eq 2 \
8556 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8559 $as_echo "$xsi_shell" >&6; }
8562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8563 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8565 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8567 && lt_shell_append=yes
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8569 $as_echo "$lt_shell_append" >&6; }
8572 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8582 # test EBCDIC or ASCII
8583 case `echo X|tr X '\101'` in
8584 A) # ASCII based system
8585 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8586 lt_SP2NL='tr \040 \012'
8587 lt_NL2SP='tr \015\012 \040\040'
8589 *) # EBCDIC based system
8590 lt_SP2NL='tr \100 \n'
8591 lt_NL2SP='tr \r\n \100\100'
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8604 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8605 if ${lt_cv_to_host_file_cmd+:} false; then :
8606 $as_echo_n "(cached) " >&6
8611 *-*-mingw* ) # actually msys
8612 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8615 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8617 * ) # otherwise, assume *nix
8618 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8624 *-*-mingw* ) # actually msys
8625 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8628 lt_cv_to_host_file_cmd=func_convert_file_noop
8630 * ) # otherwise, assume *nix
8631 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8635 * ) # unhandled hosts (and "normal" native builds)
8636 lt_cv_to_host_file_cmd=func_convert_file_noop
8642 to_host_file_cmd=$lt_cv_to_host_file_cmd
8643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8644 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8651 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8652 if ${lt_cv_to_tool_file_cmd+:} false; then :
8653 $as_echo_n "(cached) " >&6
8655 #assume ordinary cross tools, or native build.
8656 lt_cv_to_tool_file_cmd=func_convert_file_noop
8660 *-*-mingw* ) # actually msys
8661 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8669 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8671 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8678 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8679 if ${lt_cv_ld_reload_flag+:} false; then :
8680 $as_echo_n "(cached) " >&6
8682 lt_cv_ld_reload_flag='-r'
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8685 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8686 reload_flag=$lt_cv_ld_reload_flag
8687 case $reload_flag in
8689 *) reload_flag=" $reload_flag" ;;
8691 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8693 cygwin* | mingw* | pw32* | cegcc*)
8694 if test "$GCC" != yes; then
8699 if test "$GCC" = yes; then
8700 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8702 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8715 if test -n "$ac_tool_prefix"; then
8716 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8717 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_prog_OBJDUMP+:} false; then :
8721 $as_echo_n "(cached) " >&6
8723 if test -n "$OBJDUMP"; then
8724 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8730 test -z "$as_dir" && as_dir=.
8731 for ac_exec_ext in '' $ac_executable_extensions; do
8732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8733 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8743 OBJDUMP=$ac_cv_prog_OBJDUMP
8744 if test -n "$OBJDUMP"; then
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8746 $as_echo "$OBJDUMP" >&6; }
8748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8749 $as_echo "no" >&6; }
8754 if test -z "$ac_cv_prog_OBJDUMP"; then
8755 ac_ct_OBJDUMP=$OBJDUMP
8756 # Extract the first word of "objdump", so it can be a program name with args.
8757 set dummy objdump; ac_word=$2
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8759 $as_echo_n "checking for $ac_word... " >&6; }
8760 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8761 $as_echo_n "(cached) " >&6
8763 if test -n "$ac_ct_OBJDUMP"; then
8764 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8770 test -z "$as_dir" && as_dir=.
8771 for ac_exec_ext in '' $ac_executable_extensions; do
8772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8773 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8784 if test -n "$ac_ct_OBJDUMP"; then
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8786 $as_echo "$ac_ct_OBJDUMP" >&6; }
8788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8789 $as_echo "no" >&6; }
8792 if test "x$ac_ct_OBJDUMP" = x; then
8795 case $cross_compiling:$ac_tool_warned in
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8799 ac_tool_warned=yes ;;
8801 OBJDUMP=$ac_ct_OBJDUMP
8804 OBJDUMP="$ac_cv_prog_OBJDUMP"
8807 test -z "$OBJDUMP" && OBJDUMP=objdump
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8815 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8816 if ${lt_cv_deplibs_check_method+:} false; then :
8817 $as_echo_n "(cached) " >&6
8819 lt_cv_file_magic_cmd='$MAGIC_CMD'
8820 lt_cv_file_magic_test_file=
8821 lt_cv_deplibs_check_method='unknown'
8822 # Need to set the preceding variable on all platforms that support
8823 # interlibrary dependencies.
8824 # 'none' -- dependencies not supported.
8825 # `unknown' -- same as none, but documents that we really don't know.
8826 # 'pass_all' -- all dependencies passed with no checks.
8827 # 'test_compile' -- check by making test program.
8828 # 'file_magic [[regex]]' -- check by looking for files in library path
8829 # which responds to the $file_magic_cmd with a given extended regex.
8830 # If you have `file' or equivalent on your system and you're not sure
8831 # whether `pass_all' will *always* work, you probably want this one.
8835 lt_cv_deplibs_check_method=pass_all
8839 lt_cv_deplibs_check_method=pass_all
8843 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8844 lt_cv_file_magic_cmd='/usr/bin/file -L'
8845 lt_cv_file_magic_test_file=/shlib/libc.so
8849 # func_win32_libid is a shell function defined in ltmain.sh
8850 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8851 lt_cv_file_magic_cmd='func_win32_libid'
8855 # Base MSYS/MinGW do not provide the 'file' command needed by
8856 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8857 # unless we find 'file', for example because we are cross-compiling.
8858 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
8859 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
8860 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8861 lt_cv_file_magic_cmd='func_win32_libid'
8863 # Keep this pattern in sync with the one in func_win32_libid.
8864 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8865 lt_cv_file_magic_cmd='$OBJDUMP -f'
8870 # use the weaker test based on 'objdump'. See mingw*.
8871 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8872 lt_cv_file_magic_cmd='$OBJDUMP -f'
8875 darwin* | rhapsody*)
8876 lt_cv_deplibs_check_method=pass_all
8879 freebsd* | dragonfly*)
8880 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8883 # Not sure whether the presence of OpenBSD here was a mistake.
8884 # Let's accept both of them until this is cleared up.
8885 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8886 lt_cv_file_magic_cmd=/usr/bin/file
8887 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8891 lt_cv_deplibs_check_method=pass_all
8896 lt_cv_deplibs_check_method=pass_all
8899 hpux10.20* | hpux11*)
8900 lt_cv_file_magic_cmd=/usr/bin/file
8903 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8904 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8907 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]'
8908 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8911 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8912 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8918 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8919 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8922 irix5* | irix6* | nonstopux*)
8924 *-32|*"-32 ") libmagic=32-bit;;
8925 *-n32|*"-n32 ") libmagic=N32;;
8926 *-64|*"-64 ") libmagic=64-bit;;
8927 *) libmagic=never-match;;
8929 lt_cv_deplibs_check_method=pass_all
8932 # This must be glibc/ELF.
8933 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8934 lt_cv_deplibs_check_method=pass_all
8937 netbsd* | netbsdelf*-gnu)
8938 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8939 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8941 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8946 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8947 lt_cv_file_magic_cmd=/usr/bin/file
8948 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8952 lt_cv_deplibs_check_method=pass_all
8956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8957 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8959 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8963 osf3* | osf4* | osf5*)
8964 lt_cv_deplibs_check_method=pass_all
8968 lt_cv_deplibs_check_method=pass_all
8972 lt_cv_deplibs_check_method=pass_all
8975 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8976 lt_cv_deplibs_check_method=pass_all
8980 case $host_vendor in
8982 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]'
8983 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8986 lt_cv_deplibs_check_method=pass_all
8989 lt_cv_file_magic_cmd='/bin/file'
8990 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8993 lt_cv_file_magic_cmd='/bin/file'
8994 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8995 lt_cv_file_magic_test_file=/lib/libc.so
8998 lt_cv_deplibs_check_method=pass_all
9001 lt_cv_deplibs_check_method=pass_all
9007 lt_cv_deplibs_check_method=pass_all
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9013 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9017 if test "$build" = "$host"; then
9020 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
9023 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
9029 file_magic_cmd=$lt_cv_file_magic_cmd
9030 deplibs_check_method=$lt_cv_deplibs_check_method
9031 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9054 if test -n "$ac_tool_prefix"; then
9055 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
9056 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9058 $as_echo_n "checking for $ac_word... " >&6; }
9059 if ${ac_cv_prog_DLLTOOL+:} false; then :
9060 $as_echo_n "(cached) " >&6
9062 if test -n "$DLLTOOL"; then
9063 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
9065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9069 test -z "$as_dir" && as_dir=.
9070 for ac_exec_ext in '' $ac_executable_extensions; do
9071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9072 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
9073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9082 DLLTOOL=$ac_cv_prog_DLLTOOL
9083 if test -n "$DLLTOOL"; then
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
9085 $as_echo "$DLLTOOL" >&6; }
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }
9093 if test -z "$ac_cv_prog_DLLTOOL"; then
9094 ac_ct_DLLTOOL=$DLLTOOL
9095 # Extract the first word of "dlltool", so it can be a program name with args.
9096 set dummy dlltool; ac_word=$2
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9098 $as_echo_n "checking for $ac_word... " >&6; }
9099 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9100 $as_echo_n "(cached) " >&6
9102 if test -n "$ac_ct_DLLTOOL"; then
9103 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9109 test -z "$as_dir" && as_dir=.
9110 for ac_exec_ext in '' $ac_executable_extensions; do
9111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9112 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9122 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9123 if test -n "$ac_ct_DLLTOOL"; then
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9125 $as_echo "$ac_ct_DLLTOOL" >&6; }
9127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9128 $as_echo "no" >&6; }
9131 if test "x$ac_ct_DLLTOOL" = x; then
9134 case $cross_compiling:$ac_tool_warned in
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9137 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9138 ac_tool_warned=yes ;;
9140 DLLTOOL=$ac_ct_DLLTOOL
9143 DLLTOOL="$ac_cv_prog_DLLTOOL"
9146 test -z "$DLLTOOL" && DLLTOOL=dlltool
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9155 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9156 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9157 $as_echo_n "(cached) " >&6
9159 lt_cv_sharedlib_from_linklib_cmd='unknown'
9162 cygwin* | mingw* | pw32* | cegcc*)
9163 # two different shell functions defined in ltmain.sh
9164 # decide which to use based on capabilities of $DLLTOOL
9165 case `$DLLTOOL --help 2>&1` in
9166 *--identify-strict*)
9167 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9170 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9175 # fallback: assume linklib IS sharedlib
9176 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9182 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9183 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9184 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9192 if test -n "$ac_tool_prefix"; then
9195 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9196 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9198 $as_echo_n "checking for $ac_word... " >&6; }
9199 if ${ac_cv_prog_AR+:} false; then :
9200 $as_echo_n "(cached) " >&6
9202 if test -n "$AR"; then
9203 ac_cv_prog_AR="$AR" # Let the user override the test.
9205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9209 test -z "$as_dir" && as_dir=.
9210 for ac_exec_ext in '' $ac_executable_extensions; do
9211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9212 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9223 if test -n "$AR"; then
9224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9225 $as_echo "$AR" >&6; }
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9228 $as_echo "no" >&6; }
9232 test -n "$AR" && break
9235 if test -z "$AR"; then
9239 # Extract the first word of "$ac_prog", so it can be a program name with args.
9240 set dummy $ac_prog; ac_word=$2
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9242 $as_echo_n "checking for $ac_word... " >&6; }
9243 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9244 $as_echo_n "(cached) " >&6
9246 if test -n "$ac_ct_AR"; then
9247 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9253 test -z "$as_dir" && as_dir=.
9254 for ac_exec_ext in '' $ac_executable_extensions; do
9255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9256 ac_cv_prog_ac_ct_AR="$ac_prog"
9257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9266 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9267 if test -n "$ac_ct_AR"; then
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9269 $as_echo "$ac_ct_AR" >&6; }
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9272 $as_echo "no" >&6; }
9276 test -n "$ac_ct_AR" && break
9279 if test "x$ac_ct_AR" = x; then
9282 case $cross_compiling:$ac_tool_warned in
9284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9285 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9286 ac_tool_warned=yes ;;
9305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9306 $as_echo_n "checking for archiver @FILE support... " >&6; }
9307 if ${lt_cv_ar_at_file+:} false; then :
9308 $as_echo_n "(cached) " >&6
9311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9312 /* end confdefs.h. */
9321 if ac_fn_c_try_compile "$LINENO"; then :
9322 echo conftest.$ac_objext > conftest.lst
9323 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9324 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9325 (eval $lt_ar_try) 2>&5
9327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9328 test $ac_status = 0; }
9329 if test "$ac_status" -eq 0; then
9330 # Ensure the archiver fails upon bogus file names.
9331 rm -f conftest.$ac_objext libconftest.a
9332 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9333 (eval $lt_ar_try) 2>&5
9335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9336 test $ac_status = 0; }
9337 if test "$ac_status" -ne 0; then
9341 rm -f conftest.* libconftest.a
9344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9348 $as_echo "$lt_cv_ar_at_file" >&6; }
9350 if test "x$lt_cv_ar_at_file" = xno; then
9353 archiver_list_spec=$lt_cv_ar_at_file
9362 if test -n "$ac_tool_prefix"; then
9363 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9364 set dummy ${ac_tool_prefix}strip; ac_word=$2
9365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9366 $as_echo_n "checking for $ac_word... " >&6; }
9367 if ${ac_cv_prog_STRIP+:} false; then :
9368 $as_echo_n "(cached) " >&6
9370 if test -n "$STRIP"; then
9371 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9377 test -z "$as_dir" && as_dir=.
9378 for ac_exec_ext in '' $ac_executable_extensions; do
9379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9380 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9390 STRIP=$ac_cv_prog_STRIP
9391 if test -n "$STRIP"; then
9392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9393 $as_echo "$STRIP" >&6; }
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9396 $as_echo "no" >&6; }
9401 if test -z "$ac_cv_prog_STRIP"; then
9403 # Extract the first word of "strip", so it can be a program name with args.
9404 set dummy strip; ac_word=$2
9405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9406 $as_echo_n "checking for $ac_word... " >&6; }
9407 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9408 $as_echo_n "(cached) " >&6
9410 if test -n "$ac_ct_STRIP"; then
9411 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9417 test -z "$as_dir" && as_dir=.
9418 for ac_exec_ext in '' $ac_executable_extensions; do
9419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9420 ac_cv_prog_ac_ct_STRIP="strip"
9421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9430 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9431 if test -n "$ac_ct_STRIP"; then
9432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9433 $as_echo "$ac_ct_STRIP" >&6; }
9435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9436 $as_echo "no" >&6; }
9439 if test "x$ac_ct_STRIP" = x; then
9442 case $cross_compiling:$ac_tool_warned in
9444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9446 ac_tool_warned=yes ;;
9451 STRIP="$ac_cv_prog_STRIP"
9454 test -z "$STRIP" && STRIP=:
9461 if test -n "$ac_tool_prefix"; then
9462 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9463 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9465 $as_echo_n "checking for $ac_word... " >&6; }
9466 if ${ac_cv_prog_RANLIB+:} false; then :
9467 $as_echo_n "(cached) " >&6
9469 if test -n "$RANLIB"; then
9470 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9476 test -z "$as_dir" && as_dir=.
9477 for ac_exec_ext in '' $ac_executable_extensions; do
9478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9479 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9489 RANLIB=$ac_cv_prog_RANLIB
9490 if test -n "$RANLIB"; then
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9492 $as_echo "$RANLIB" >&6; }
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9495 $as_echo "no" >&6; }
9500 if test -z "$ac_cv_prog_RANLIB"; then
9501 ac_ct_RANLIB=$RANLIB
9502 # Extract the first word of "ranlib", so it can be a program name with args.
9503 set dummy ranlib; ac_word=$2
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9505 $as_echo_n "checking for $ac_word... " >&6; }
9506 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9507 $as_echo_n "(cached) " >&6
9509 if test -n "$ac_ct_RANLIB"; then
9510 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9516 test -z "$as_dir" && as_dir=.
9517 for ac_exec_ext in '' $ac_executable_extensions; do
9518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9519 ac_cv_prog_ac_ct_RANLIB="ranlib"
9520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9529 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9530 if test -n "$ac_ct_RANLIB"; then
9531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9532 $as_echo "$ac_ct_RANLIB" >&6; }
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9535 $as_echo "no" >&6; }
9538 if test "x$ac_ct_RANLIB" = x; then
9541 case $cross_compiling:$ac_tool_warned in
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9544 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9545 ac_tool_warned=yes ;;
9547 RANLIB=$ac_ct_RANLIB
9550 RANLIB="$ac_cv_prog_RANLIB"
9553 test -z "$RANLIB" && RANLIB=:
9560 # Determine commands to create old-style static archives.
9561 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9562 old_postinstall_cmds='chmod 644 $oldlib'
9563 old_postuninstall_cmds=
9565 if test -n "$RANLIB"; then
9568 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9571 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9574 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9579 lock_old_archive_extraction=yes ;;
9581 lock_old_archive_extraction=no ;;
9622 # If no C compiler was specified, use CC.
9625 # If no C compiler flags were specified, use CFLAGS.
9626 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9628 # Allow CC to be a program name with arguments.
9632 # Check for command to grab the raw symbol name followed by C symbol from nm.
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9634 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9635 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9636 $as_echo_n "(cached) " >&6
9639 # These are sane defaults that work on at least a few old systems.
9640 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9642 # Character class describing NM global symbol codes.
9643 symcode='[BCDEGRST]'
9645 # Regexp to match symbols that can be accessed directly from C.
9646 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9648 # Define system-specific variables.
9653 cygwin* | mingw* | pw32* | cegcc*)
9654 symcode='[ABCDGISTW]'
9657 if test "$host_cpu" = ia64; then
9658 symcode='[ABCDEGRST]'
9662 symcode='[BCDEGRST]'
9665 symcode='[BCDEGQRST]'
9676 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9684 # If we're using GNU nm, then use its standard symbol codes.
9685 case `$NM -V 2>&1` in
9686 *GNU* | *'with BFD'*)
9687 symcode='[ABCDGIRSTW]' ;;
9690 # Transform an extracted symbol line into a proper C declaration.
9691 # Some systems (esp. on ia64) link data and code symbols differently,
9692 # so use this general approach.
9693 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9695 # Transform an extracted symbol line into symbol name and symbol address
9696 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9697 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9699 # Handle CRLF in mingw tool chain
9703 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9707 # Try without a prefix underscore, then with it.
9708 for ac_symprfx in "" "_"; do
9710 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9711 symxfrm="\\1 $ac_symprfx\\2 \\2"
9713 # Write the raw and C identifiers.
9714 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9715 # Fake it for dumpbin and say T for any non-static function
9716 # and D for any global variable.
9717 # Also find C++ and __fastcall symbols from MSVC++,
9718 # which start with @ or ?.
9719 lt_cv_sys_global_symbol_pipe="$AWK '"\
9720 " {last_section=section; section=\$ 3};"\
9721 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9722 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9723 " \$ 0!~/External *\|/{next};"\
9724 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9725 " {if(hide[section]) next};"\
9726 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9727 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9728 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9729 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9730 " ' prfx=^$ac_symprfx"
9732 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9734 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9736 # Check to see that the pipe works correctly.
9740 cat > conftest.$ac_ext <<_LT_EOF
9745 void nm_test_func(void);
9746 void nm_test_func(void){}
9750 int main(){nm_test_var='a';nm_test_func();return(0);}
9753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9754 (eval $ac_compile) 2>&5
9756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9757 test $ac_status = 0; }; then
9758 # Now try to grab the symbols.
9760 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9761 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9764 test $ac_status = 0; } && test -s "$nlist"; then
9765 # Try sorting and uniquifying the output.
9766 if sort "$nlist" | uniq > "$nlist"T; then
9767 mv -f "$nlist"T "$nlist"
9772 # Make sure that we snagged all the symbols we need.
9773 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9774 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9775 cat <<_LT_EOF > conftest.$ac_ext
9776 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
9777 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
9778 /* DATA imports from DLLs on WIN32 con't be const, because runtime
9779 relocations are performed -- see ld's documentation on pseudo-relocs. */
9780 # define LT_DLSYM_CONST
9781 #elif defined(__osf__)
9782 /* This system does not cope well with relocations in const data. */
9783 # define LT_DLSYM_CONST
9785 # define LT_DLSYM_CONST const
9793 # Now generate the symbol file.
9794 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9796 cat <<_LT_EOF >> conftest.$ac_ext
9798 /* The mapping between symbol names and symbols. */
9799 LT_DLSYM_CONST struct {
9803 lt__PROGRAM__LTX_preloaded_symbols[] =
9805 { "@PROGRAM@", (void *) 0 },
9807 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9808 cat <<\_LT_EOF >> conftest.$ac_ext
9812 /* This works around a problem in FreeBSD linker */
9813 #ifdef FREEBSD_WORKAROUND
9814 static const void *lt_preloaded_setup() {
9815 return lt__PROGRAM__LTX_preloaded_symbols;
9823 # Now try linking the two files.
9824 mv -f conftest.$ac_objext conftstm.$ac_objext
9825 lt_globsym_save_LIBS=$LIBS
9826 lt_globsym_save_CFLAGS=$CFLAGS
9827 LIBS="conftstm.$ac_objext"
9828 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9830 (eval $ac_link) 2>&5
9832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9833 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9836 LIBS=$lt_globsym_save_LIBS
9837 CFLAGS=$lt_globsym_save_CFLAGS
9839 echo "cannot find nm_test_func in $nlist" >&5
9842 echo "cannot find nm_test_var in $nlist" >&5
9845 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9848 echo "$progname: failed program was:" >&5
9849 cat conftest.$ac_ext >&5
9851 rm -rf conftest* conftst*
9853 # Do not use the global_symbol_pipe unless it works.
9854 if test "$pipe_works" = yes; then
9857 lt_cv_sys_global_symbol_pipe=
9863 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9864 lt_cv_sys_global_symbol_to_cdecl=
9866 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9868 $as_echo "failed" >&6; }
9870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9871 $as_echo "ok" >&6; }
9874 # Response file support.
9875 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9876 nm_file_list_spec='@'
9877 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9878 nm_file_list_spec='@'
9907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9908 $as_echo_n "checking for sysroot... " >&6; }
9910 # Check whether --with-sysroot was given.
9911 if test "${with_sysroot+set}" = set; then :
9912 withval=$with_sysroot;
9919 case ${with_sysroot} in #(
9921 if test "$GCC" = yes; then
9922 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9926 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
9932 $as_echo "${with_sysroot}" >&6; }
9933 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9938 $as_echo "${lt_sysroot:-no}" >&6; }
9944 # Check whether --enable-libtool-lock was given.
9945 if test "${enable_libtool_lock+set}" = set; then :
9946 enableval=$enable_libtool_lock;
9949 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9951 # Some flags need to be propagated to the compiler or linker for good
9955 # Find out which ABI we are using.
9956 echo 'int i;' > conftest.$ac_ext
9957 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9958 (eval $ac_compile) 2>&5
9960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9961 test $ac_status = 0; }; then
9962 case `/usr/bin/file conftest.$ac_objext` in
9974 # Find out which ABI we are using.
9975 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
9976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9977 (eval $ac_compile) 2>&5
9979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9980 test $ac_status = 0; }; then
9981 if test "$lt_cv_prog_gnu_ld" = yes; then
9982 case `/usr/bin/file conftest.$ac_objext` in
9984 LD="${LD-ld} -melf32bsmip"
9987 LD="${LD-ld} -melf32bmipn32"
9990 LD="${LD-ld} -melf64bmip"
9994 case `/usr/bin/file conftest.$ac_objext` in
10010 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10011 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10012 # Find out which ABI we are using.
10013 echo 'int i;' > conftest.$ac_ext
10014 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10015 (eval $ac_compile) 2>&5
10017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10018 test $ac_status = 0; }; then
10019 case `/usr/bin/file conftest.o` in
10022 x86_64-*kfreebsd*-gnu)
10023 LD="${LD-ld} -m elf_i386_fbsd"
10026 case `/usr/bin/file conftest.o` in
10028 LD="${LD-ld} -m elf32_x86_64"
10031 LD="${LD-ld} -m elf_i386"
10036 LD="${LD-ld} -m elf32lppclinux"
10039 LD="${LD-ld} -m elf32ppclinux"
10042 LD="${LD-ld} -m elf_s390"
10045 LD="${LD-ld} -m elf32_sparc"
10051 x86_64-*kfreebsd*-gnu)
10052 LD="${LD-ld} -m elf_x86_64_fbsd"
10055 LD="${LD-ld} -m elf_x86_64"
10058 LD="${LD-ld} -m elf64lppc"
10061 LD="${LD-ld} -m elf64ppc"
10063 s390*-*linux*|s390*-*tpf*)
10064 LD="${LD-ld} -m elf64_s390"
10067 LD="${LD-ld} -m elf64_sparc"
10077 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10078 SAVE_CFLAGS="$CFLAGS"
10079 CFLAGS="$CFLAGS -belf"
10080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10081 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10082 if ${lt_cv_cc_needs_belf+:} false; then :
10083 $as_echo_n "(cached) " >&6
10086 ac_cpp='$CPP $CPPFLAGS'
10087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10092 /* end confdefs.h. */
10101 if ac_fn_c_try_link "$LINENO"; then :
10102 lt_cv_cc_needs_belf=yes
10104 lt_cv_cc_needs_belf=no
10106 rm -f core conftest.err conftest.$ac_objext \
10107 conftest$ac_exeext conftest.$ac_ext
10109 ac_cpp='$CPP $CPPFLAGS'
10110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10116 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10119 CFLAGS="$SAVE_CFLAGS"
10123 # Find out which ABI we are using.
10124 echo 'int i;' > conftest.$ac_ext
10125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10126 (eval $ac_compile) 2>&5
10128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10129 test $ac_status = 0; }; then
10130 case `/usr/bin/file conftest.o` in
10132 case $lt_cv_prog_gnu_ld in
10136 LD="${LD-ld} -m elf_x86_64"
10139 LD="${LD-ld} -m elf64_sparc"
10142 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
10143 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10148 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10160 need_locks="$enable_libtool_lock"
10162 if test -n "$ac_tool_prefix"; then
10163 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10164 set dummy ${ac_tool_prefix}mt; ac_word=$2
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10166 $as_echo_n "checking for $ac_word... " >&6; }
10167 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10168 $as_echo_n "(cached) " >&6
10170 if test -n "$MANIFEST_TOOL"; then
10171 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10174 for as_dir in $PATH
10177 test -z "$as_dir" && as_dir=.
10178 for ac_exec_ext in '' $ac_executable_extensions; do
10179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10180 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10190 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10191 if test -n "$MANIFEST_TOOL"; then
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10193 $as_echo "$MANIFEST_TOOL" >&6; }
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10196 $as_echo "no" >&6; }
10201 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10202 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10203 # Extract the first word of "mt", so it can be a program name with args.
10204 set dummy mt; ac_word=$2
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10206 $as_echo_n "checking for $ac_word... " >&6; }
10207 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10208 $as_echo_n "(cached) " >&6
10210 if test -n "$ac_ct_MANIFEST_TOOL"; then
10211 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10214 for as_dir in $PATH
10217 test -z "$as_dir" && as_dir=.
10218 for ac_exec_ext in '' $ac_executable_extensions; do
10219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10220 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10230 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10231 if test -n "$ac_ct_MANIFEST_TOOL"; then
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10233 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }
10239 if test "x$ac_ct_MANIFEST_TOOL" = x; then
10242 case $cross_compiling:$ac_tool_warned in
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10246 ac_tool_warned=yes ;;
10248 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10251 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10254 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10256 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10257 if ${lt_cv_path_mainfest_tool+:} false; then :
10258 $as_echo_n "(cached) " >&6
10260 lt_cv_path_mainfest_tool=no
10261 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10262 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10263 cat conftest.err >&5
10264 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10265 lt_cv_path_mainfest_tool=yes
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10270 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
10271 if test "x$lt_cv_path_mainfest_tool" != xyes; then
10281 rhapsody* | darwin*)
10282 if test -n "$ac_tool_prefix"; then
10283 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10284 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10286 $as_echo_n "checking for $ac_word... " >&6; }
10287 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10288 $as_echo_n "(cached) " >&6
10290 if test -n "$DSYMUTIL"; then
10291 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10294 for as_dir in $PATH
10297 test -z "$as_dir" && as_dir=.
10298 for ac_exec_ext in '' $ac_executable_extensions; do
10299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10300 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10310 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10311 if test -n "$DSYMUTIL"; then
10312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10313 $as_echo "$DSYMUTIL" >&6; }
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10316 $as_echo "no" >&6; }
10321 if test -z "$ac_cv_prog_DSYMUTIL"; then
10322 ac_ct_DSYMUTIL=$DSYMUTIL
10323 # Extract the first word of "dsymutil", so it can be a program name with args.
10324 set dummy dsymutil; ac_word=$2
10325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10326 $as_echo_n "checking for $ac_word... " >&6; }
10327 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10328 $as_echo_n "(cached) " >&6
10330 if test -n "$ac_ct_DSYMUTIL"; then
10331 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10334 for as_dir in $PATH
10337 test -z "$as_dir" && as_dir=.
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10340 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10341 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10350 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10351 if test -n "$ac_ct_DSYMUTIL"; then
10352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10353 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10356 $as_echo "no" >&6; }
10359 if test "x$ac_ct_DSYMUTIL" = x; then
10362 case $cross_compiling:$ac_tool_warned in
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10366 ac_tool_warned=yes ;;
10368 DSYMUTIL=$ac_ct_DSYMUTIL
10371 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10374 if test -n "$ac_tool_prefix"; then
10375 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10376 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10378 $as_echo_n "checking for $ac_word... " >&6; }
10379 if ${ac_cv_prog_NMEDIT+:} false; then :
10380 $as_echo_n "(cached) " >&6
10382 if test -n "$NMEDIT"; then
10383 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10386 for as_dir in $PATH
10389 test -z "$as_dir" && as_dir=.
10390 for ac_exec_ext in '' $ac_executable_extensions; do
10391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10392 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10402 NMEDIT=$ac_cv_prog_NMEDIT
10403 if test -n "$NMEDIT"; then
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10405 $as_echo "$NMEDIT" >&6; }
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10408 $as_echo "no" >&6; }
10413 if test -z "$ac_cv_prog_NMEDIT"; then
10414 ac_ct_NMEDIT=$NMEDIT
10415 # Extract the first word of "nmedit", so it can be a program name with args.
10416 set dummy nmedit; ac_word=$2
10417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10418 $as_echo_n "checking for $ac_word... " >&6; }
10419 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10420 $as_echo_n "(cached) " >&6
10422 if test -n "$ac_ct_NMEDIT"; then
10423 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10426 for as_dir in $PATH
10429 test -z "$as_dir" && as_dir=.
10430 for ac_exec_ext in '' $ac_executable_extensions; do
10431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10432 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10442 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10443 if test -n "$ac_ct_NMEDIT"; then
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10445 $as_echo "$ac_ct_NMEDIT" >&6; }
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10448 $as_echo "no" >&6; }
10451 if test "x$ac_ct_NMEDIT" = x; then
10454 case $cross_compiling:$ac_tool_warned in
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10457 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10458 ac_tool_warned=yes ;;
10460 NMEDIT=$ac_ct_NMEDIT
10463 NMEDIT="$ac_cv_prog_NMEDIT"
10466 if test -n "$ac_tool_prefix"; then
10467 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10468 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10470 $as_echo_n "checking for $ac_word... " >&6; }
10471 if ${ac_cv_prog_LIPO+:} false; then :
10472 $as_echo_n "(cached) " >&6
10474 if test -n "$LIPO"; then
10475 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10478 for as_dir in $PATH
10481 test -z "$as_dir" && as_dir=.
10482 for ac_exec_ext in '' $ac_executable_extensions; do
10483 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10484 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10485 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10494 LIPO=$ac_cv_prog_LIPO
10495 if test -n "$LIPO"; then
10496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10497 $as_echo "$LIPO" >&6; }
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10500 $as_echo "no" >&6; }
10505 if test -z "$ac_cv_prog_LIPO"; then
10507 # Extract the first word of "lipo", so it can be a program name with args.
10508 set dummy lipo; ac_word=$2
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10510 $as_echo_n "checking for $ac_word... " >&6; }
10511 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10512 $as_echo_n "(cached) " >&6
10514 if test -n "$ac_ct_LIPO"; then
10515 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10518 for as_dir in $PATH
10521 test -z "$as_dir" && as_dir=.
10522 for ac_exec_ext in '' $ac_executable_extensions; do
10523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10524 ac_cv_prog_ac_ct_LIPO="lipo"
10525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10534 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10535 if test -n "$ac_ct_LIPO"; then
10536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10537 $as_echo "$ac_ct_LIPO" >&6; }
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10540 $as_echo "no" >&6; }
10543 if test "x$ac_ct_LIPO" = x; then
10546 case $cross_compiling:$ac_tool_warned in
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10550 ac_tool_warned=yes ;;
10555 LIPO="$ac_cv_prog_LIPO"
10558 if test -n "$ac_tool_prefix"; then
10559 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10560 set dummy ${ac_tool_prefix}otool; ac_word=$2
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10562 $as_echo_n "checking for $ac_word... " >&6; }
10563 if ${ac_cv_prog_OTOOL+:} false; then :
10564 $as_echo_n "(cached) " >&6
10566 if test -n "$OTOOL"; then
10567 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10570 for as_dir in $PATH
10573 test -z "$as_dir" && as_dir=.
10574 for ac_exec_ext in '' $ac_executable_extensions; do
10575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10576 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10586 OTOOL=$ac_cv_prog_OTOOL
10587 if test -n "$OTOOL"; then
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10589 $as_echo "$OTOOL" >&6; }
10591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10592 $as_echo "no" >&6; }
10597 if test -z "$ac_cv_prog_OTOOL"; then
10599 # Extract the first word of "otool", so it can be a program name with args.
10600 set dummy otool; ac_word=$2
10601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10602 $as_echo_n "checking for $ac_word... " >&6; }
10603 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10604 $as_echo_n "(cached) " >&6
10606 if test -n "$ac_ct_OTOOL"; then
10607 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10610 for as_dir in $PATH
10613 test -z "$as_dir" && as_dir=.
10614 for ac_exec_ext in '' $ac_executable_extensions; do
10615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10616 ac_cv_prog_ac_ct_OTOOL="otool"
10617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10627 if test -n "$ac_ct_OTOOL"; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10629 $as_echo "$ac_ct_OTOOL" >&6; }
10631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10632 $as_echo "no" >&6; }
10635 if test "x$ac_ct_OTOOL" = x; then
10638 case $cross_compiling:$ac_tool_warned in
10640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10641 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10642 ac_tool_warned=yes ;;
10647 OTOOL="$ac_cv_prog_OTOOL"
10650 if test -n "$ac_tool_prefix"; then
10651 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10652 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10654 $as_echo_n "checking for $ac_word... " >&6; }
10655 if ${ac_cv_prog_OTOOL64+:} false; then :
10656 $as_echo_n "(cached) " >&6
10658 if test -n "$OTOOL64"; then
10659 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10662 for as_dir in $PATH
10665 test -z "$as_dir" && as_dir=.
10666 for ac_exec_ext in '' $ac_executable_extensions; do
10667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10668 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10678 OTOOL64=$ac_cv_prog_OTOOL64
10679 if test -n "$OTOOL64"; then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10681 $as_echo "$OTOOL64" >&6; }
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10684 $as_echo "no" >&6; }
10689 if test -z "$ac_cv_prog_OTOOL64"; then
10690 ac_ct_OTOOL64=$OTOOL64
10691 # Extract the first word of "otool64", so it can be a program name with args.
10692 set dummy otool64; ac_word=$2
10693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10694 $as_echo_n "checking for $ac_word... " >&6; }
10695 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10696 $as_echo_n "(cached) " >&6
10698 if test -n "$ac_ct_OTOOL64"; then
10699 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10702 for as_dir in $PATH
10705 test -z "$as_dir" && as_dir=.
10706 for ac_exec_ext in '' $ac_executable_extensions; do
10707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10708 ac_cv_prog_ac_ct_OTOOL64="otool64"
10709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10719 if test -n "$ac_ct_OTOOL64"; then
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10721 $as_echo "$ac_ct_OTOOL64" >&6; }
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10724 $as_echo "no" >&6; }
10727 if test "x$ac_ct_OTOOL64" = x; then
10730 case $cross_compiling:$ac_tool_warned in
10732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10734 ac_tool_warned=yes ;;
10736 OTOOL64=$ac_ct_OTOOL64
10739 OTOOL64="$ac_cv_prog_OTOOL64"
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10769 $as_echo_n "checking for -single_module linker flag... " >&6; }
10770 if ${lt_cv_apple_cc_single_mod+:} false; then :
10771 $as_echo_n "(cached) " >&6
10773 lt_cv_apple_cc_single_mod=no
10774 if test -z "${LT_MULTI_MODULE}"; then
10775 # By default we will add the -single_module flag. You can override
10776 # by either setting the environment variable LT_MULTI_MODULE
10777 # non-empty at configure time, or by adding -multi_module to the
10779 rm -rf libconftest.dylib*
10780 echo "int foo(void){return 1;}" > conftest.c
10781 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10782 -dynamiclib -Wl,-single_module conftest.c" >&5
10783 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10784 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10786 # If there is a non-empty error log, and "single_module"
10787 # appears in it, assume the flag caused a linker warning
10788 if test -s conftest.err && $GREP single_module conftest.err; then
10789 cat conftest.err >&5
10790 # Otherwise, if the output was created with a 0 exit code from
10791 # the compiler, it worked.
10792 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
10793 lt_cv_apple_cc_single_mod=yes
10795 cat conftest.err >&5
10797 rm -rf libconftest.dylib*
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10802 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10805 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10806 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10807 $as_echo_n "(cached) " >&6
10809 lt_cv_ld_exported_symbols_list=no
10810 save_LDFLAGS=$LDFLAGS
10811 echo "_main" > conftest.sym
10812 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10814 /* end confdefs.h. */
10823 if ac_fn_c_try_link "$LINENO"; then :
10824 lt_cv_ld_exported_symbols_list=yes
10826 lt_cv_ld_exported_symbols_list=no
10828 rm -f core conftest.err conftest.$ac_objext \
10829 conftest$ac_exeext conftest.$ac_ext
10830 LDFLAGS="$save_LDFLAGS"
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10834 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10837 $as_echo_n "checking for -force_load linker flag... " >&6; }
10838 if ${lt_cv_ld_force_load+:} false; then :
10839 $as_echo_n "(cached) " >&6
10841 lt_cv_ld_force_load=no
10842 cat > conftest.c << _LT_EOF
10843 int forced_loaded() { return 2;}
10845 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10846 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10847 echo "$AR cru libconftest.a conftest.o" >&5
10848 $AR cru libconftest.a conftest.o 2>&5
10849 echo "$RANLIB libconftest.a" >&5
10850 $RANLIB libconftest.a 2>&5
10851 cat > conftest.c << _LT_EOF
10852 int main() { return 0;}
10854 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10855 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10857 if test -s conftest.err && $GREP force_load conftest.err; then
10858 cat conftest.err >&5
10859 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
10860 lt_cv_ld_force_load=yes
10862 cat conftest.err >&5
10864 rm -f conftest.err libconftest.a conftest conftest.c
10865 rm -rf conftest.dSYM
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10869 $as_echo "$lt_cv_ld_force_load" >&6; }
10871 rhapsody* | darwin1.[012])
10872 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10874 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10875 darwin*) # darwin 5.x on
10876 # if running on 10.5 or later, the deployment target defaults
10877 # to the OS version, if on x86, and 10.4, the deployment
10878 # target defaults to 10.4. Don't you love it?
10879 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10880 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10881 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10883 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10885 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10889 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10890 _lt_dar_single_mod='$single_module'
10892 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10893 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10895 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10897 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10898 _lt_dsymutil='~$DSYMUTIL $lib || :'
10905 for ac_header in dlfcn.h
10907 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10909 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10910 cat >>confdefs.h <<_ACEOF
10911 #define HAVE_DLFCN_H 1
10918 # ------------------------------------ #
10919 # Determine libtool default behavior #
10920 # ------------------------------------ #
10923 # Default behavior is to enable shared and static libraries on systems
10924 # where libtool knows how to build both library versions, and does not
10925 # require separate configuration and build runs for each flavor.
10928 xc_lt_want_enable_shared='yes'
10929 xc_lt_want_enable_static='yes'
10932 # User may have disabled shared or static libraries.
10934 case "x$enable_shared" in # (
10936 xc_lt_want_enable_shared='no'
10939 case "x$enable_static" in # (
10941 xc_lt_want_enable_static='no'
10944 if test "x$xc_lt_want_enable_shared" = 'xno' &&
10945 test "x$xc_lt_want_enable_static" = 'xno'; then
10946 as_fn_error $? "can not disable shared and static libraries simultaneously" "$LINENO" 5
10950 # Default behavior on systems that require independent configuration
10951 # and build runs for shared and static is to enable shared libraries
10952 # and disable static ones. On these systems option '--disable-shared'
10953 # must be used in order to build a proper static library.
10956 if test "x$xc_lt_want_enable_shared" = 'xyes' &&
10957 test "x$xc_lt_want_enable_static" = 'xyes'; then
10958 case $host_os in # (
10959 mingw* | pw32* | cegcc* | os2* | aix*)
10960 xc_lt_want_enable_static='no'
10966 # Make libtool aware of current shared and static library preferences
10967 # taking in account that, depending on host characteristics, libtool
10968 # may modify these option preferences later in this configure script.
10971 enable_shared=$xc_lt_want_enable_shared
10972 enable_static=$xc_lt_want_enable_static
10975 # Default behavior is to build PIC objects for shared libraries and
10976 # non-PIC objects for static libraries.
10979 xc_lt_want_with_pic='default'
10982 # User may have specified PIC preference.
10985 case "x$with_pic" in # ((
10987 xc_lt_want_with_pic='no'
10990 xc_lt_want_with_pic='yes'
10995 # Default behavior on some systems where building a shared library out
10996 # of non-PIC compiled objects will fail with following linker error
10997 # "relocation R_X86_64_32 can not be used when making a shared object"
10998 # is to build PIC objects even for static libraries. This behavior may
10999 # be overriden using 'configure --disable-shared --without-pic'.
11002 if test "x$xc_lt_want_with_pic" = 'xdefault'; then
11003 case $host_cpu in # (
11004 x86_64 | amd64 | ia64)
11005 case $host_os in # (
11007 xc_lt_want_with_pic='yes'
11015 # Make libtool aware of current PIC preference taking in account that,
11016 # depending on host characteristics, libtool may modify PIC default
11017 # behavior to fit host system idiosyncrasies later in this script.
11020 with_pic=$xc_lt_want_with_pic
11022 ## ----------------------- ##
11023 ## Start of libtool code ##
11024 ## ----------------------- ##
11030 enable_win32_dll=yes
11033 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
11034 if test -n "$ac_tool_prefix"; then
11035 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11036 set dummy ${ac_tool_prefix}as; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11038 $as_echo_n "checking for $ac_word... " >&6; }
11039 if ${ac_cv_prog_AS+:} false; then :
11040 $as_echo_n "(cached) " >&6
11042 if test -n "$AS"; then
11043 ac_cv_prog_AS="$AS" # Let the user override the test.
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11052 ac_cv_prog_AS="${ac_tool_prefix}as"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 if test -n "$AS"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11065 $as_echo "$AS" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11068 $as_echo "no" >&6; }
11073 if test -z "$ac_cv_prog_AS"; then
11075 # Extract the first word of "as", so it can be a program name with args.
11076 set dummy as; ac_word=$2
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11078 $as_echo_n "checking for $ac_word... " >&6; }
11079 if ${ac_cv_prog_ac_ct_AS+:} false; then :
11080 $as_echo_n "(cached) " >&6
11082 if test -n "$ac_ct_AS"; then
11083 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11086 for as_dir in $PATH
11089 test -z "$as_dir" && as_dir=.
11090 for ac_exec_ext in '' $ac_executable_extensions; do
11091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11092 ac_cv_prog_ac_ct_AS="as"
11093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11102 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11103 if test -n "$ac_ct_AS"; then
11104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11105 $as_echo "$ac_ct_AS" >&6; }
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11108 $as_echo "no" >&6; }
11111 if test "x$ac_ct_AS" = x; then
11114 case $cross_compiling:$ac_tool_warned in
11116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11117 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11118 ac_tool_warned=yes ;;
11123 AS="$ac_cv_prog_AS"
11126 if test -n "$ac_tool_prefix"; then
11127 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11128 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11130 $as_echo_n "checking for $ac_word... " >&6; }
11131 if ${ac_cv_prog_DLLTOOL+:} false; then :
11132 $as_echo_n "(cached) " >&6
11134 if test -n "$DLLTOOL"; then
11135 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11138 for as_dir in $PATH
11141 test -z "$as_dir" && as_dir=.
11142 for ac_exec_ext in '' $ac_executable_extensions; do
11143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11144 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11154 DLLTOOL=$ac_cv_prog_DLLTOOL
11155 if test -n "$DLLTOOL"; then
11156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11157 $as_echo "$DLLTOOL" >&6; }
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11160 $as_echo "no" >&6; }
11165 if test -z "$ac_cv_prog_DLLTOOL"; then
11166 ac_ct_DLLTOOL=$DLLTOOL
11167 # Extract the first word of "dlltool", so it can be a program name with args.
11168 set dummy dlltool; ac_word=$2
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11170 $as_echo_n "checking for $ac_word... " >&6; }
11171 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11172 $as_echo_n "(cached) " >&6
11174 if test -n "$ac_ct_DLLTOOL"; then
11175 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11178 for as_dir in $PATH
11181 test -z "$as_dir" && as_dir=.
11182 for ac_exec_ext in '' $ac_executable_extensions; do
11183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11184 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11194 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11195 if test -n "$ac_ct_DLLTOOL"; then
11196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11197 $as_echo "$ac_ct_DLLTOOL" >&6; }
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11200 $as_echo "no" >&6; }
11203 if test "x$ac_ct_DLLTOOL" = x; then
11206 case $cross_compiling:$ac_tool_warned in
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11210 ac_tool_warned=yes ;;
11212 DLLTOOL=$ac_ct_DLLTOOL
11215 DLLTOOL="$ac_cv_prog_DLLTOOL"
11218 if test -n "$ac_tool_prefix"; then
11219 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11220 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11222 $as_echo_n "checking for $ac_word... " >&6; }
11223 if ${ac_cv_prog_OBJDUMP+:} false; then :
11224 $as_echo_n "(cached) " >&6
11226 if test -n "$OBJDUMP"; then
11227 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11230 for as_dir in $PATH
11233 test -z "$as_dir" && as_dir=.
11234 for ac_exec_ext in '' $ac_executable_extensions; do
11235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11236 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11246 OBJDUMP=$ac_cv_prog_OBJDUMP
11247 if test -n "$OBJDUMP"; then
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11249 $as_echo "$OBJDUMP" >&6; }
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11252 $as_echo "no" >&6; }
11257 if test -z "$ac_cv_prog_OBJDUMP"; then
11258 ac_ct_OBJDUMP=$OBJDUMP
11259 # Extract the first word of "objdump", so it can be a program name with args.
11260 set dummy objdump; ac_word=$2
11261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11262 $as_echo_n "checking for $ac_word... " >&6; }
11263 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
11264 $as_echo_n "(cached) " >&6
11266 if test -n "$ac_ct_OBJDUMP"; then
11267 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11286 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11287 if test -n "$ac_ct_OBJDUMP"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11289 $as_echo "$ac_ct_OBJDUMP" >&6; }
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11295 if test "x$ac_ct_OBJDUMP" = x; then
11298 case $cross_compiling:$ac_tool_warned in
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11302 ac_tool_warned=yes ;;
11304 OBJDUMP=$ac_ct_OBJDUMP
11307 OBJDUMP="$ac_cv_prog_OBJDUMP"
11313 test -z "$AS" && AS=as
11319 test -z "$DLLTOOL" && DLLTOOL=dlltool
11325 test -z "$OBJDUMP" && OBJDUMP=objdump
11337 # Check whether --enable-shared was given.
11338 if test "${enable_shared+set}" = set; then :
11339 enableval=$enable_shared; p=${PACKAGE-default}
11341 yes) enable_shared=yes ;;
11342 no) enable_shared=no ;;
11345 # Look at the argument we got. We use all the common list separators.
11346 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11347 for pkg in $enableval; do
11349 if test "X$pkg" = "X$p"; then
11368 # Check whether --enable-static was given.
11369 if test "${enable_static+set}" = set; then :
11370 enableval=$enable_static; p=${PACKAGE-default}
11372 yes) enable_static=yes ;;
11373 no) enable_static=no ;;
11376 # Look at the argument we got. We use all the common list separators.
11377 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11378 for pkg in $enableval; do
11380 if test "X$pkg" = "X$p"; then
11400 # Check whether --with-pic was given.
11401 if test "${with_pic+set}" = set; then :
11402 withval=$with_pic; lt_p=${PACKAGE-default}
11404 yes|no) pic_mode=$withval ;;
11407 # Look at the argument we got. We use all the common list separators.
11408 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11409 for lt_pkg in $withval; do
11411 if test "X$lt_pkg" = "X$lt_p"; then
11423 test -z "$pic_mode" && pic_mode=default
11431 # Check whether --enable-fast-install was given.
11432 if test "${enable_fast_install+set}" = set; then :
11433 enableval=$enable_fast_install; p=${PACKAGE-default}
11435 yes) enable_fast_install=yes ;;
11436 no) enable_fast_install=no ;;
11438 enable_fast_install=no
11439 # Look at the argument we got. We use all the common list separators.
11440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11441 for pkg in $enableval; do
11443 if test "X$pkg" = "X$p"; then
11444 enable_fast_install=yes
11451 enable_fast_install=yes
11464 # This can be used to rebuild libtool when needed
11465 LIBTOOL_DEPS="$ltmain"
11467 # Always use our own libtool.
11468 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11499 test -z "$LN_S" && LN_S="ln -s"
11514 if test -n "${ZSH_VERSION+set}" ; then
11515 setopt NO_GLOB_SUBST
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11519 $as_echo_n "checking for objdir... " >&6; }
11520 if ${lt_cv_objdir+:} false; then :
11521 $as_echo_n "(cached) " >&6
11523 rm -f .libs 2>/dev/null
11524 mkdir .libs 2>/dev/null
11525 if test -d .libs; then
11528 # MS-DOS does not allow filenames that begin with a dot.
11531 rmdir .libs 2>/dev/null
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11534 $as_echo "$lt_cv_objdir" >&6; }
11535 objdir=$lt_cv_objdir
11541 cat >>confdefs.h <<_ACEOF
11542 #define LT_OBJDIR "$lt_cv_objdir/"
11550 # AIX sometimes has problems with the GCC collect2 program. For some
11551 # reason, if we set the COLLECT_NAMES environment variable, the problems
11552 # vanish in a puff of smoke.
11553 if test "X${COLLECT_NAMES+set}" != Xset; then
11555 export COLLECT_NAMES
11560 # Global variables:
11562 can_build_shared=yes
11564 # All known linkers require a `.a' archive for static linking (except MSVC,
11565 # which needs '.lib').
11568 with_gnu_ld="$lt_cv_prog_gnu_ld"
11571 old_CFLAGS="$CFLAGS"
11573 # Set sane defaults for various variables
11574 test -z "$CC" && CC=cc
11575 test -z "$LTCC" && LTCC=$CC
11576 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11577 test -z "$LD" && LD=ld
11578 test -z "$ac_objext" && ac_objext=o
11580 for cc_temp in $compiler""; do
11582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11588 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11591 # Only perform the check for file, if the check method requires it
11592 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11593 case $deplibs_check_method in
11595 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11597 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11598 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11599 $as_echo_n "(cached) " >&6
11603 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11606 lt_save_MAGIC_CMD="$MAGIC_CMD"
11607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11608 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11609 for ac_dir in $ac_dummy; do
11611 test -z "$ac_dir" && ac_dir=.
11612 if test -f $ac_dir/${ac_tool_prefix}file; then
11613 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11614 if test -n "$file_magic_test_file"; then
11615 case $deplibs_check_method in
11617 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11618 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11619 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11620 $EGREP "$file_magic_regex" > /dev/null; then
11625 *** Warning: the command libtool uses to detect shared libraries,
11626 *** $file_magic_cmd, produces output that libtool cannot recognize.
11627 *** The result is that libtool may fail to recognize shared libraries
11628 *** as such. This will affect the creation of libtool libraries that
11629 *** depend on shared libraries, but programs linked with such libtool
11630 *** libraries will work regardless of this problem. Nevertheless, you
11631 *** may want to report the problem to your system manager and/or to
11632 *** bug-libtool@gnu.org
11642 MAGIC_CMD="$lt_save_MAGIC_CMD"
11647 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11648 if test -n "$MAGIC_CMD"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11650 $as_echo "$MAGIC_CMD" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11660 if test -z "$lt_cv_path_MAGIC_CMD"; then
11661 if test -n "$ac_tool_prefix"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11663 $as_echo_n "checking for file... " >&6; }
11664 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11665 $as_echo_n "(cached) " >&6
11669 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11672 lt_save_MAGIC_CMD="$MAGIC_CMD"
11673 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11674 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11675 for ac_dir in $ac_dummy; do
11677 test -z "$ac_dir" && ac_dir=.
11678 if test -f $ac_dir/file; then
11679 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11680 if test -n "$file_magic_test_file"; then
11681 case $deplibs_check_method in
11683 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11684 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11685 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11686 $EGREP "$file_magic_regex" > /dev/null; then
11691 *** Warning: the command libtool uses to detect shared libraries,
11692 *** $file_magic_cmd, produces output that libtool cannot recognize.
11693 *** The result is that libtool may fail to recognize shared libraries
11694 *** as such. This will affect the creation of libtool libraries that
11695 *** depend on shared libraries, but programs linked with such libtool
11696 *** libraries will work regardless of this problem. Nevertheless, you
11697 *** may want to report the problem to your system manager and/or to
11698 *** bug-libtool@gnu.org
11708 MAGIC_CMD="$lt_save_MAGIC_CMD"
11713 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11714 if test -n "$MAGIC_CMD"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11716 $as_echo "$MAGIC_CMD" >&6; }
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719 $as_echo "no" >&6; }
11732 # Use C for the default configuration in the libtool script
11736 ac_cpp='$CPP $CPPFLAGS'
11737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11742 # Source file extension for C test sources.
11745 # Object file extension for compiled C test sources.
11749 # Code to be used in simple compile tests
11750 lt_simple_compile_test_code="int some_variable = 0;"
11752 # Code to be used in simple link tests
11753 lt_simple_link_test_code='int main(){return(0);}'
11761 # If no C compiler was specified, use CC.
11764 # If no C compiler flags were specified, use CFLAGS.
11765 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11767 # Allow CC to be a program name with arguments.
11770 # Save the default compiler, since it gets overwritten when the other
11771 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11772 compiler_DEFAULT=$CC
11774 # save warnings/boilerplate of simple test code
11775 ac_outfile=conftest.$ac_objext
11776 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11777 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11778 _lt_compiler_boilerplate=`cat conftest.err`
11781 ac_outfile=conftest.$ac_objext
11782 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11783 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11784 _lt_linker_boilerplate=`cat conftest.err`
11789 ## There is no encapsulation within the following macros, do not change
11790 ## the running order or otherwise move them around unless you know exactly
11791 ## what you are doing...
11792 if test -n "$compiler"; then
11794 lt_prog_compiler_no_builtin_flag=
11796 if test "$GCC" = yes; then
11797 case $cc_basename in
11799 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11801 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11805 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11806 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11807 $as_echo_n "(cached) " >&6
11809 lt_cv_prog_compiler_rtti_exceptions=no
11810 ac_outfile=conftest.$ac_objext
11811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11812 lt_compiler_flag="-fno-rtti -fno-exceptions"
11813 # Insert the option either (1) after the last *FLAGS variable, or
11814 # (2) before a word containing "conftest.", or (3) at the end.
11815 # Note that $ac_compile itself does not contain backslashes and begins
11816 # with a dollar sign (not a hyphen), so the echo should work correctly.
11817 # The option is referenced via a variable to avoid confusing sed.
11818 lt_compile=`echo "$ac_compile" | $SED \
11819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11821 -e 's:$: $lt_compiler_flag:'`
11822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11823 (eval "$lt_compile" 2>conftest.err)
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 if (exit $ac_status) && test -s "$ac_outfile"; then
11828 # The compiler can only warn and ignore the option if not recognized
11829 # So say no if there are warnings other than the usual output.
11830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11833 lt_cv_prog_compiler_rtti_exceptions=yes
11839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11840 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11842 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11843 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11855 lt_prog_compiler_wl=
11856 lt_prog_compiler_pic=
11857 lt_prog_compiler_static=
11860 if test "$GCC" = yes; then
11861 lt_prog_compiler_wl='-Wl,'
11862 lt_prog_compiler_static='-static'
11866 # All AIX code is PIC.
11867 if test "$host_cpu" = ia64; then
11868 # AIX 5 now supports IA64 processor
11869 lt_prog_compiler_static='-Bstatic'
11876 # see comment about AmigaOS4 .so support
11877 lt_prog_compiler_pic='-fPIC'
11880 # FIXME: we need at least 68020 code to build shared libraries, but
11881 # adding the `-m68020' flag to GCC prevents building anything better,
11883 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11888 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11889 # PIC is the default for these OSes.
11892 mingw* | cygwin* | pw32* | os2* | cegcc*)
11893 # This hack is so that the source file can tell whether it is being
11894 # built for inclusion in a dll (and should export symbols for example).
11895 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11896 # (--disable-auto-import) libraries
11897 lt_prog_compiler_pic='-DDLL_EXPORT'
11900 darwin* | rhapsody*)
11901 # PIC is the default on this platform
11902 # Common symbols not allowed in MH_DYLIB files
11903 lt_prog_compiler_pic='-fno-common'
11907 # PIC is the default for Haiku.
11908 # The "-static" flag exists, but is broken.
11909 lt_prog_compiler_static=
11913 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11914 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11915 # sets the default TLS model and affects inlining.
11921 lt_prog_compiler_pic='-fPIC'
11927 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11928 # Instead, we relocate shared libraries at runtime.
11932 # Just because we use GCC doesn't mean we suddenly get shared libraries
11933 # on systems that don't support them.
11934 lt_prog_compiler_can_build_shared=no
11939 # QNX uses GNU C++, but need to define -shared option too, otherwise
11940 # it will coredump.
11941 lt_prog_compiler_pic='-fPIC -shared'
11945 if test -d /usr/nec; then
11946 lt_prog_compiler_pic=-Kconform_pic
11951 lt_prog_compiler_pic='-fPIC'
11955 case $cc_basename in
11956 nvcc*) # Cuda Compiler Driver 2.2
11957 lt_prog_compiler_wl='-Xlinker '
11958 if test -n "$lt_prog_compiler_pic"; then
11959 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11964 # PORTME Check for flag to pass linker flags through the system compiler.
11967 lt_prog_compiler_wl='-Wl,'
11968 if test "$host_cpu" = ia64; then
11969 # AIX 5 now supports IA64 processor
11970 lt_prog_compiler_static='-Bstatic'
11972 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11976 mingw* | cygwin* | pw32* | os2* | cegcc*)
11977 # This hack is so that the source file can tell whether it is being
11978 # built for inclusion in a dll (and should export symbols for example).
11979 lt_prog_compiler_pic='-DDLL_EXPORT'
11982 hpux9* | hpux10* | hpux11*)
11983 lt_prog_compiler_wl='-Wl,'
11984 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11985 # not for PA HP-UX.
11991 lt_prog_compiler_pic='+Z'
11994 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11995 lt_prog_compiler_static='${wl}-a ${wl}archive'
11998 irix5* | irix6* | nonstopux*)
11999 lt_prog_compiler_wl='-Wl,'
12000 # PIC (with -KPIC) is the default.
12001 lt_prog_compiler_static='-non_shared'
12004 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
12005 case $cc_basename in
12006 # old Intel for x86_64 which still supported -KPIC.
12008 lt_prog_compiler_wl='-Wl,'
12009 lt_prog_compiler_pic='-KPIC'
12010 lt_prog_compiler_static='-static'
12012 # icc used to be incompatible with GCC.
12013 # ICC 10 doesn't accept -KPIC any more.
12015 lt_prog_compiler_wl='-Wl,'
12016 lt_prog_compiler_pic='-fPIC'
12017 lt_prog_compiler_static='-static'
12019 # Lahey Fortran 8.1.
12021 lt_prog_compiler_wl='-Wl,'
12022 lt_prog_compiler_pic='--shared'
12023 lt_prog_compiler_static='--static'
12026 # NAG Fortran compiler
12027 lt_prog_compiler_wl='-Wl,-Wl,,'
12028 lt_prog_compiler_pic='-PIC'
12029 lt_prog_compiler_static='-Bstatic'
12031 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12032 # Portland Group compilers (*not* the Pentium gcc compiler,
12033 # which looks to be a dead project)
12034 lt_prog_compiler_wl='-Wl,'
12035 lt_prog_compiler_pic='-fpic'
12036 lt_prog_compiler_static='-Bstatic'
12039 lt_prog_compiler_wl='-Wl,'
12040 # All Alpha code is PIC.
12041 lt_prog_compiler_static='-non_shared'
12043 xl* | bgxl* | bgf* | mpixl*)
12044 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12045 lt_prog_compiler_wl='-Wl,'
12046 lt_prog_compiler_pic='-qpic'
12047 lt_prog_compiler_static='-qstaticlink'
12050 case `$CC -V 2>&1 | sed 5q` in
12051 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
12052 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12053 lt_prog_compiler_pic='-KPIC'
12054 lt_prog_compiler_static='-Bstatic'
12055 lt_prog_compiler_wl=''
12057 *Sun\ F* | *Sun*Fortran*)
12058 lt_prog_compiler_pic='-KPIC'
12059 lt_prog_compiler_static='-Bstatic'
12060 lt_prog_compiler_wl='-Qoption ld '
12064 lt_prog_compiler_pic='-KPIC'
12065 lt_prog_compiler_static='-Bstatic'
12066 lt_prog_compiler_wl='-Wl,'
12068 *Intel*\ [CF]*Compiler*)
12069 lt_prog_compiler_wl='-Wl,'
12070 lt_prog_compiler_pic='-fPIC'
12071 lt_prog_compiler_static='-static'
12074 lt_prog_compiler_wl='-Wl,'
12075 lt_prog_compiler_pic='-fpic'
12076 lt_prog_compiler_static='-Bstatic'
12084 lt_prog_compiler_pic='-KPIC'
12085 lt_prog_compiler_static='-Bstatic'
12089 # QNX uses GNU C++, but need to define -shared option too, otherwise
12090 # it will coredump.
12091 lt_prog_compiler_pic='-fPIC -shared'
12094 osf3* | osf4* | osf5*)
12095 lt_prog_compiler_wl='-Wl,'
12096 # All OSF/1 code is PIC.
12097 lt_prog_compiler_static='-non_shared'
12101 lt_prog_compiler_static='-non_shared'
12105 lt_prog_compiler_pic='-KPIC'
12106 lt_prog_compiler_static='-Bstatic'
12107 case $cc_basename in
12108 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
12109 lt_prog_compiler_wl='-Qoption ld ';;
12111 lt_prog_compiler_wl='-Wl,';;
12116 lt_prog_compiler_wl='-Qoption ld '
12117 lt_prog_compiler_pic='-PIC'
12118 lt_prog_compiler_static='-Bstatic'
12121 sysv4 | sysv4.2uw2* | sysv4.3*)
12122 lt_prog_compiler_wl='-Wl,'
12123 lt_prog_compiler_pic='-KPIC'
12124 lt_prog_compiler_static='-Bstatic'
12128 if test -d /usr/nec ;then
12129 lt_prog_compiler_pic='-Kconform_pic'
12130 lt_prog_compiler_static='-Bstatic'
12134 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12135 lt_prog_compiler_wl='-Wl,'
12136 lt_prog_compiler_pic='-KPIC'
12137 lt_prog_compiler_static='-Bstatic'
12141 lt_prog_compiler_wl='-Wl,'
12142 lt_prog_compiler_can_build_shared=no
12146 lt_prog_compiler_pic='-pic'
12147 lt_prog_compiler_static='-Bstatic'
12151 lt_prog_compiler_can_build_shared=no
12157 # For platforms which do not support PIC, -DPIC is meaningless:
12159 lt_prog_compiler_pic=
12162 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12167 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12168 if ${lt_cv_prog_compiler_pic+:} false; then :
12169 $as_echo_n "(cached) " >&6
12171 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
12174 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
12175 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
12178 # Check to make sure the PIC flag actually works.
12180 if test -n "$lt_prog_compiler_pic"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12182 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
12183 if ${lt_cv_prog_compiler_pic_works+:} false; then :
12184 $as_echo_n "(cached) " >&6
12186 lt_cv_prog_compiler_pic_works=no
12187 ac_outfile=conftest.$ac_objext
12188 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12189 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
12190 # Insert the option either (1) after the last *FLAGS variable, or
12191 # (2) before a word containing "conftest.", or (3) at the end.
12192 # Note that $ac_compile itself does not contain backslashes and begins
12193 # with a dollar sign (not a hyphen), so the echo should work correctly.
12194 # The option is referenced via a variable to avoid confusing sed.
12195 lt_compile=`echo "$ac_compile" | $SED \
12196 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12197 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12198 -e 's:$: $lt_compiler_flag:'`
12199 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12200 (eval "$lt_compile" 2>conftest.err)
12202 cat conftest.err >&5
12203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12204 if (exit $ac_status) && test -s "$ac_outfile"; then
12205 # The compiler can only warn and ignore the option if not recognized
12206 # So say no if there are warnings other than the usual output.
12207 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12208 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12209 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12210 lt_cv_prog_compiler_pic_works=yes
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12217 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12219 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
12220 case $lt_prog_compiler_pic in
12222 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12225 lt_prog_compiler_pic=
12226 lt_prog_compiler_can_build_shared=no
12242 # Check to make sure the static flag actually works.
12244 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12246 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12247 if ${lt_cv_prog_compiler_static_works+:} false; then :
12248 $as_echo_n "(cached) " >&6
12250 lt_cv_prog_compiler_static_works=no
12251 save_LDFLAGS="$LDFLAGS"
12252 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12253 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12254 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12255 # The linker can only warn and ignore the option if not recognized
12256 # So say no if there are warnings
12257 if test -s conftest.err; then
12258 # Append any errors to the config.log.
12259 cat conftest.err 1>&5
12260 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12261 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12262 if diff conftest.exp conftest.er2 >/dev/null; then
12263 lt_cv_prog_compiler_static_works=yes
12266 lt_cv_prog_compiler_static_works=yes
12270 LDFLAGS="$save_LDFLAGS"
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12274 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12276 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12279 lt_prog_compiler_static=
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12289 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12290 if ${lt_cv_prog_compiler_c_o+:} false; then :
12291 $as_echo_n "(cached) " >&6
12293 lt_cv_prog_compiler_c_o=no
12294 $RM -r conftest 2>/dev/null
12298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12300 lt_compiler_flag="-o out/conftest2.$ac_objext"
12301 # Insert the option either (1) after the last *FLAGS variable, or
12302 # (2) before a word containing "conftest.", or (3) at the end.
12303 # Note that $ac_compile itself does not contain backslashes and begins
12304 # with a dollar sign (not a hyphen), so the echo should work correctly.
12305 lt_compile=`echo "$ac_compile" | $SED \
12306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12308 -e 's:$: $lt_compiler_flag:'`
12309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12310 (eval "$lt_compile" 2>out/conftest.err)
12312 cat out/conftest.err >&5
12313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12314 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12316 # The compiler can only warn and ignore the option if not recognized
12317 # So say no if there are warnings
12318 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12319 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12320 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12321 lt_cv_prog_compiler_c_o=yes
12326 # SGI C++ compiler will create directory out/ii_files/ for
12327 # template instantiation
12328 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12329 $RM out/* && rmdir out
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12336 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12344 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12345 if ${lt_cv_prog_compiler_c_o+:} false; then :
12346 $as_echo_n "(cached) " >&6
12348 lt_cv_prog_compiler_c_o=no
12349 $RM -r conftest 2>/dev/null
12353 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12355 lt_compiler_flag="-o out/conftest2.$ac_objext"
12356 # Insert the option either (1) after the last *FLAGS variable, or
12357 # (2) before a word containing "conftest.", or (3) at the end.
12358 # Note that $ac_compile itself does not contain backslashes and begins
12359 # with a dollar sign (not a hyphen), so the echo should work correctly.
12360 lt_compile=`echo "$ac_compile" | $SED \
12361 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12362 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12363 -e 's:$: $lt_compiler_flag:'`
12364 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12365 (eval "$lt_compile" 2>out/conftest.err)
12367 cat out/conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12371 # The compiler can only warn and ignore the option if not recognized
12372 # So say no if there are warnings
12373 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12374 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12375 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12376 lt_cv_prog_compiler_c_o=yes
12381 # SGI C++ compiler will create directory out/ii_files/ for
12382 # template instantiation
12383 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12384 $RM out/* && rmdir out
12390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12391 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12396 hard_links="nottested"
12397 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12398 # do not overwrite the value of need_locks provided by the user
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12400 $as_echo_n "checking if we can lock with hard links... " >&6; }
12403 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12405 ln conftest.a conftest.b 2>&5 || hard_links=no
12406 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12408 $as_echo "$hard_links" >&6; }
12409 if test "$hard_links" = no; then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12411 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12424 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12427 allow_undefined_flag=
12428 always_export_symbols=no
12430 archive_expsym_cmds=
12431 compiler_needs_object=no
12432 enable_shared_with_static_runtimes=no
12433 export_dynamic_flag_spec=
12434 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12435 hardcode_automatic=no
12437 hardcode_direct_absolute=no
12438 hardcode_libdir_flag_spec=
12439 hardcode_libdir_separator=
12440 hardcode_minus_L=no
12441 hardcode_shlibpath_var=unsupported
12443 link_all_deplibs=unknown
12445 module_expsym_cmds=
12446 old_archive_from_new_cmds=
12447 old_archive_from_expsyms_cmds=
12448 thread_safe_flag_spec=
12449 whole_archive_flag_spec=
12450 # include_expsyms should be a list of space-separated symbols to be *always*
12451 # included in the symbol list
12453 # exclude_expsyms can be an extended regexp of symbols to exclude
12454 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12455 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12456 # as well as any symbol that contains `d'.
12457 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12458 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12459 # platforms (ab)use it in PIC code, but their linkers get confused if
12460 # the symbol is explicitly referenced. Since portable code cannot
12461 # rely on this symbol name, it's probably fine to never include it in
12462 # preloaded symbol tables.
12463 # Exclude shared library initialization/finalization symbols.
12464 extract_expsyms_cmds=
12467 cygwin* | mingw* | pw32* | cegcc*)
12468 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12469 # When not using gcc, we currently assume that we are using
12470 # Microsoft Visual C++.
12471 if test "$GCC" != yes; then
12476 # we just hope/assume this is gcc and not c89 (= MSVC++)
12482 linux* | k*bsd*-gnu | gnu*)
12483 link_all_deplibs=no
12489 # On some targets, GNU ld is compatible enough with the native linker
12490 # that we're better off using the native interface for both.
12491 lt_use_gnu_ld_interface=no
12492 if test "$with_gnu_ld" = yes; then
12495 # The AIX port of GNU ld has always aspired to compatibility
12496 # with the native linker. However, as the warning in the GNU ld
12497 # block says, versions before 2.19.5* couldn't really create working
12498 # shared libraries, regardless of the interface used.
12499 case `$LD -v 2>&1` in
12500 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12501 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12502 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12504 lt_use_gnu_ld_interface=yes
12509 lt_use_gnu_ld_interface=yes
12514 if test "$lt_use_gnu_ld_interface" = yes; then
12515 # If archive_cmds runs LD, not CC, wlarc should be empty
12518 # Set some defaults for GNU ld with shared library support. These
12519 # are reset later if shared libraries are not supported. Putting them
12520 # here allows them to be overridden if necessary.
12521 runpath_var=LD_RUN_PATH
12522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12523 export_dynamic_flag_spec='${wl}--export-dynamic'
12524 # ancient GNU ld didn't support --whole-archive et. al.
12525 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12526 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12528 whole_archive_flag_spec=
12530 supports_anon_versioning=no
12531 case `$LD -v 2>&1` in
12532 *GNU\ gold*) supports_anon_versioning=yes ;;
12533 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12534 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12535 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12536 *\ 2.11.*) ;; # other 2.11 versions
12537 *) supports_anon_versioning=yes ;;
12540 # See if GNU ld supports shared libraries.
12543 # On AIX/PPC, the GNU linker is very broken
12544 if test "$host_cpu" != ia64; then
12548 *** Warning: the GNU linker, at least up to release 2.19, is reported
12549 *** to be unable to reliably create shared libraries on AIX.
12550 *** Therefore, libtool is disabling shared libraries support. If you
12551 *** really care for shared libraries, you may want to install binutils
12552 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12553 *** You will then need to restart the configuration process.
12562 # see comment about AmigaOS4 .so support
12563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12564 archive_expsym_cmds=''
12567 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)'
12568 hardcode_libdir_flag_spec='-L$libdir'
12569 hardcode_minus_L=yes
12575 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12576 allow_undefined_flag=unsupported
12577 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12578 # support --undefined. This deserves some investigation. FIXME
12579 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12585 cygwin* | mingw* | pw32* | cegcc*)
12586 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12587 # as there is no search path for DLLs.
12588 hardcode_libdir_flag_spec='-L$libdir'
12589 export_dynamic_flag_spec='${wl}--export-all-symbols'
12590 allow_undefined_flag=unsupported
12591 always_export_symbols=no
12592 enable_shared_with_static_runtimes=yes
12593 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'
12594 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12596 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12597 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12598 # If the export-symbols file already is a .def file (1st line
12599 # is EXPORTS), use it as is; otherwise, prepend...
12600 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12601 cp $export_symbols $output_objdir/$soname.def;
12603 echo EXPORTS > $output_objdir/$soname.def;
12604 cat $export_symbols >> $output_objdir/$soname.def;
12606 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12613 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12614 link_all_deplibs=yes
12619 hardcode_shlibpath_var=no
12620 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12621 export_dynamic_flag_spec='${wl}-E'
12622 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12623 # Instead, shared libraries are loaded at an image base (0x10000000 by
12624 # default) and relocated if they conflict, which is a slow very memory
12625 # consuming and fragmenting process. To avoid this, we pick a random,
12626 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12627 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12628 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12629 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'
12632 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12634 if test "$host_os" = linux-dietlibc; then
12635 case $cc_basename in
12636 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12639 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12640 && test "$tmp_diet" = no
12642 tmp_addflag=' $pic_flag'
12643 tmp_sharedflag='-shared'
12644 case $cc_basename,$host_cpu in
12645 pgcc*) # Portland Group C compiler
12646 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'
12647 tmp_addflag=' $pic_flag'
12649 pgf77* | pgf90* | pgf95* | pgfortran*)
12650 # Portland Group f77 and f90 compilers
12651 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'
12652 tmp_addflag=' $pic_flag -Mnomain' ;;
12653 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12654 tmp_addflag=' -i_dynamic' ;;
12655 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12656 tmp_addflag=' -i_dynamic -nofor_main' ;;
12657 ifc* | ifort*) # Intel Fortran compiler
12658 tmp_addflag=' -nofor_main' ;;
12659 lf95*) # Lahey Fortran 8.1
12660 whole_archive_flag_spec=
12661 tmp_sharedflag='--shared' ;;
12662 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12663 tmp_sharedflag='-qmkshrobj'
12665 nvcc*) # Cuda Compiler Driver 2.2
12666 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'
12667 compiler_needs_object=yes
12670 case `$CC -V 2>&1 | sed 5q` in
12671 *Sun\ C*) # Sun C 5.9
12672 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'
12673 compiler_needs_object=yes
12674 tmp_sharedflag='-G' ;;
12675 *Sun\ F*) # Sun Fortran 8.3
12676 tmp_sharedflag='-G' ;;
12678 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12680 if test "x$supports_anon_versioning" = xyes; then
12681 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12682 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12683 echo "local: *; };" >> $output_objdir/$libname.ver~
12684 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12687 case $cc_basename in
12688 xlf* | bgf* | bgxlf* | mpixlf*)
12689 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12690 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12691 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12692 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12693 if test "x$supports_anon_versioning" = xyes; then
12694 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12695 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12696 echo "local: *; };" >> $output_objdir/$libname.ver~
12697 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12706 netbsd* | netbsdelf*-gnu)
12707 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12708 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12711 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12712 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12717 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12721 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12722 *** create shared libraries on Solaris systems. Therefore, libtool
12723 *** is disabling shared libraries support. We urge you to upgrade GNU
12724 *** binutils to release 2.9.1 or newer. Another option is to modify
12725 *** your PATH or compiler configuration so that the native linker is
12726 *** used, and then restart.
12729 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12730 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12731 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12737 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12738 case `$LD -v 2>&1` in
12739 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12743 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12744 *** reliably create shared libraries on SCO systems. Therefore, libtool
12745 *** is disabling shared libraries support. We urge you to upgrade GNU
12746 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12747 *** your PATH or compiler configuration so that the native linker is
12748 *** used, and then restart.
12753 # For security reasons, it is highly recommended that you always
12754 # use absolute paths for naming shared libraries, and exclude the
12755 # DT_RUNPATH tag from executables and libraries. But doing so
12756 # requires that you compile everything twice, which is a pain.
12757 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12758 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12759 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12760 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12769 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12771 hardcode_direct=yes
12772 hardcode_shlibpath_var=no
12776 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12777 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12778 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12785 if test "$ld_shlibs" = no; then
12787 hardcode_libdir_flag_spec=
12788 export_dynamic_flag_spec=
12789 whole_archive_flag_spec=
12792 # PORTME fill in a description of your system's linker (not GNU ld)
12795 allow_undefined_flag=unsupported
12796 always_export_symbols=yes
12797 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'
12798 # Note: this linker hardcodes the directories in LIBPATH if there
12799 # are no directories specified by -L.
12800 hardcode_minus_L=yes
12801 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12802 # Neither direct hardcoding nor static linking is supported with a
12804 hardcode_direct=unsupported
12809 if test "$host_cpu" = ia64; then
12810 # On IA64, the linker does run time linking by default, so we don't
12811 # have to do anything special.
12812 aix_use_runtimelinking=no
12813 exp_sym_flag='-Bexport'
12816 # If we're using GNU nm, then we don't want the "-C" option.
12817 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12818 # Also, AIX nm treats weak defined symbols like other global
12819 # defined symbols, whereas GNU nm marks them as "W".
12820 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12821 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12823 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12825 aix_use_runtimelinking=no
12827 # Test if we are trying to use run time linking or normal
12828 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12829 # need to do runtime linking.
12830 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12831 for ld_flag in $LDFLAGS; do
12832 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12833 aix_use_runtimelinking=yes
12840 exp_sym_flag='-bexport'
12841 no_entry_flag='-bnoentry'
12844 # When large executables or shared objects are built, AIX ld can
12845 # have problems creating the table of contents. If linking a library
12846 # or program results in "error TOC overflow" add -mminimal-toc to
12847 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12848 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12851 hardcode_direct=yes
12852 hardcode_direct_absolute=yes
12853 hardcode_libdir_separator=':'
12854 link_all_deplibs=yes
12855 file_list_spec='${wl}-f,'
12857 if test "$GCC" = yes; then
12858 case $host_os in aix4.[012]|aix4.[012].*)
12859 # We only want to do this on AIX 4.2 and lower, the check
12860 # below for broken collect2 doesn't work under 4.3+
12861 collect2name=`${CC} -print-prog-name=collect2`
12862 if test -f "$collect2name" &&
12863 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12865 # We have reworked collect2
12868 # We have old collect2
12869 hardcode_direct=unsupported
12870 # It fails to find uninstalled libraries when the uninstalled
12871 # path is not listed in the libpath. Setting hardcode_minus_L
12872 # to unsupported forces relinking
12873 hardcode_minus_L=yes
12874 hardcode_libdir_flag_spec='-L$libdir'
12875 hardcode_libdir_separator=
12879 shared_flag='-shared'
12880 if test "$aix_use_runtimelinking" = yes; then
12881 shared_flag="$shared_flag "'${wl}-G'
12883 link_all_deplibs=no
12886 if test "$host_cpu" = ia64; then
12887 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12888 # chokes on -Wl,-G. The following line is correct:
12891 if test "$aix_use_runtimelinking" = yes; then
12892 shared_flag='${wl}-G'
12894 shared_flag='${wl}-bM:SRE'
12899 export_dynamic_flag_spec='${wl}-bexpall'
12900 # It seems that -bexpall does not export symbols beginning with
12901 # underscore (_), so it is better to generate a list of symbols to export.
12902 always_export_symbols=yes
12903 if test "$aix_use_runtimelinking" = yes; then
12904 # Warning - without using the other runtime loading flags (-brtl),
12905 # -berok will link without error, but may produce a broken library.
12906 allow_undefined_flag='-berok'
12907 # Determine the default libpath from the value encoded in an
12908 # empty executable.
12909 if test "${lt_cv_aix_libpath+set}" = set; then
12910 aix_libpath=$lt_cv_aix_libpath
12912 if ${lt_cv_aix_libpath_+:} false; then :
12913 $as_echo_n "(cached) " >&6
12915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12916 /* end confdefs.h. */
12925 if ac_fn_c_try_link "$LINENO"; then :
12927 lt_aix_libpath_sed='
12928 /Import File Strings/,/^$/ {
12930 s/^0 *\([^ ]*\) *$/\1/
12934 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12935 # Check for a 64-bit object if we didn't find anything.
12936 if test -z "$lt_cv_aix_libpath_"; then
12937 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12940 rm -f core conftest.err conftest.$ac_objext \
12941 conftest$ac_exeext conftest.$ac_ext
12942 if test -z "$lt_cv_aix_libpath_"; then
12943 lt_cv_aix_libpath_="/usr/lib:/lib"
12948 aix_libpath=$lt_cv_aix_libpath_
12951 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12952 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12954 if test "$host_cpu" = ia64; then
12955 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12956 allow_undefined_flag="-z nodefs"
12957 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"
12959 # Determine the default libpath from the value encoded in an
12960 # empty executable.
12961 if test "${lt_cv_aix_libpath+set}" = set; then
12962 aix_libpath=$lt_cv_aix_libpath
12964 if ${lt_cv_aix_libpath_+:} false; then :
12965 $as_echo_n "(cached) " >&6
12967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12968 /* end confdefs.h. */
12977 if ac_fn_c_try_link "$LINENO"; then :
12979 lt_aix_libpath_sed='
12980 /Import File Strings/,/^$/ {
12982 s/^0 *\([^ ]*\) *$/\1/
12986 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12987 # Check for a 64-bit object if we didn't find anything.
12988 if test -z "$lt_cv_aix_libpath_"; then
12989 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12992 rm -f core conftest.err conftest.$ac_objext \
12993 conftest$ac_exeext conftest.$ac_ext
12994 if test -z "$lt_cv_aix_libpath_"; then
12995 lt_cv_aix_libpath_="/usr/lib:/lib"
13000 aix_libpath=$lt_cv_aix_libpath_
13003 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
13004 # Warning - without using the other run time loading flags,
13005 # -berok will link without error, but may produce a broken library.
13006 no_undefined_flag=' ${wl}-bernotok'
13007 allow_undefined_flag=' ${wl}-berok'
13008 if test "$with_gnu_ld" = yes; then
13009 # We only use this code for GNU lds that support --whole-archive.
13010 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13012 # Exported symbols can be pulled into shared objects from archives
13013 whole_archive_flag_spec='$convenience'
13015 archive_cmds_need_lc=yes
13016 # This is similar to how AIX traditionally builds its shared libraries.
13017 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
13025 # see comment about AmigaOS4 .so support
13026 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13027 archive_expsym_cmds=''
13030 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)'
13031 hardcode_libdir_flag_spec='-L$libdir'
13032 hardcode_minus_L=yes
13038 export_dynamic_flag_spec=-rdynamic
13041 cygwin* | mingw* | pw32* | cegcc*)
13042 # When not using gcc, we currently assume that we are using
13043 # Microsoft Visual C++.
13044 # hardcode_libdir_flag_spec is actually meaningless, as there is
13045 # no search path for DLLs.
13046 case $cc_basename in
13049 hardcode_libdir_flag_spec=' '
13050 allow_undefined_flag=unsupported
13051 always_export_symbols=yes
13053 # Tell ltmain to make .lib files, not .a files.
13055 # Tell ltmain to make .dll files, not .so files.
13057 # FIXME: Setting linknames here is a bad hack.
13058 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13059 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13060 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13062 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13064 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13066 # The linker will not automatically build a static lib if we build a DLL.
13067 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
13068 enable_shared_with_static_runtimes=yes
13069 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
13070 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13072 old_postinstall_cmds='chmod 644 $oldlib'
13073 postlink_cmds='lt_outputfile="@OUTPUT@"~
13074 lt_tool_outputfile="@TOOL_OUTPUT@"~
13075 case $lt_outputfile in
13078 lt_outputfile="$lt_outputfile.exe"
13079 lt_tool_outputfile="$lt_tool_outputfile.exe"
13082 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13083 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13084 $RM "$lt_outputfile.manifest";
13088 # Assume MSVC wrapper
13089 hardcode_libdir_flag_spec=' '
13090 allow_undefined_flag=unsupported
13091 # Tell ltmain to make .lib files, not .a files.
13093 # Tell ltmain to make .dll files, not .so files.
13095 # FIXME: Setting linknames here is a bad hack.
13096 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13097 # The linker will automatically build a .lib file if we build a DLL.
13098 old_archive_from_new_cmds='true'
13099 # FIXME: Should let the user specify the lib program.
13100 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
13101 enable_shared_with_static_runtimes=yes
13106 darwin* | rhapsody*)
13109 archive_cmds_need_lc=no
13111 hardcode_automatic=yes
13112 hardcode_shlibpath_var=unsupported
13113 if test "$lt_cv_ld_force_load" = "yes"; then
13114 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\"`'
13117 whole_archive_flag_spec=''
13119 link_all_deplibs=yes
13120 allow_undefined_flag="$_lt_dar_allow_undefined"
13121 case $cc_basename in
13122 ifort*) _lt_dar_can_shared=yes ;;
13123 *) _lt_dar_can_shared=$GCC ;;
13125 if test "$_lt_dar_can_shared" = "yes"; then
13126 output_verbose_link_cmd=func_echo_all
13127 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13128 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13129 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}"
13130 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}"
13139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13140 hardcode_libdir_flag_spec='-L$libdir'
13141 hardcode_shlibpath_var=no
13144 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13145 # support. Future versions do this automatically, but an explicit c++rt0.o
13146 # does not break anything, and helps significantly (at the cost of a little
13149 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13150 hardcode_libdir_flag_spec='-R$libdir'
13151 hardcode_direct=yes
13152 hardcode_shlibpath_var=no
13155 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13158 hardcode_direct=yes
13159 hardcode_minus_L=yes
13160 hardcode_shlibpath_var=no
13163 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13164 freebsd* | dragonfly*)
13165 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13166 hardcode_libdir_flag_spec='-R$libdir'
13167 hardcode_direct=yes
13168 hardcode_shlibpath_var=no
13172 if test "$GCC" = yes; then
13173 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13175 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv -f $output_objdir/$soname $lib'
13177 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13178 hardcode_libdir_separator=:
13179 hardcode_direct=yes
13181 # hardcode_minus_L: Not really in the search PATH,
13182 # but as the default location of the library.
13183 hardcode_minus_L=yes
13184 export_dynamic_flag_spec='${wl}-E'
13188 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13189 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13191 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13193 if test "$with_gnu_ld" = no; then
13194 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13195 hardcode_libdir_separator=:
13196 hardcode_direct=yes
13197 hardcode_direct_absolute=yes
13198 export_dynamic_flag_spec='${wl}-E'
13199 # hardcode_minus_L: Not really in the search PATH,
13200 # but as the default location of the library.
13201 hardcode_minus_L=yes
13206 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13209 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13212 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13215 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13221 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13224 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13228 # Older versions of the 11.00 compiler do not understand -b yet
13229 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13231 $as_echo_n "checking if $CC understands -b... " >&6; }
13232 if ${lt_cv_prog_compiler__b+:} false; then :
13233 $as_echo_n "(cached) " >&6
13235 lt_cv_prog_compiler__b=no
13236 save_LDFLAGS="$LDFLAGS"
13237 LDFLAGS="$LDFLAGS -b"
13238 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13239 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13240 # The linker can only warn and ignore the option if not recognized
13241 # So say no if there are warnings
13242 if test -s conftest.err; then
13243 # Append any errors to the config.log.
13244 cat conftest.err 1>&5
13245 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13246 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13247 if diff conftest.exp conftest.er2 >/dev/null; then
13248 lt_cv_prog_compiler__b=yes
13251 lt_cv_prog_compiler__b=yes
13255 LDFLAGS="$save_LDFLAGS"
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13259 $as_echo "$lt_cv_prog_compiler__b" >&6; }
13261 if test x"$lt_cv_prog_compiler__b" = xyes; then
13262 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13264 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13270 if test "$with_gnu_ld" = no; then
13271 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
13272 hardcode_libdir_separator=:
13277 hardcode_shlibpath_var=no
13280 hardcode_direct=yes
13281 hardcode_direct_absolute=yes
13282 export_dynamic_flag_spec='${wl}-E'
13284 # hardcode_minus_L: Not really in the search PATH,
13285 # but as the default location of the library.
13286 hardcode_minus_L=yes
13292 irix5* | irix6* | nonstopux*)
13293 if test "$GCC" = yes; then
13294 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'
13295 # Try to use the -exported_symbol ld option, if it does not
13296 # work, assume that -exports_file does not work either and
13297 # implicitly export all symbols.
13298 # This should be the same for all languages, so no per-tag cache variable.
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13300 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13301 if ${lt_cv_irix_exported_symbol+:} false; then :
13302 $as_echo_n "(cached) " >&6
13304 save_LDFLAGS="$LDFLAGS"
13305 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13307 /* end confdefs.h. */
13308 int foo (void) { return 0; }
13310 if ac_fn_c_try_link "$LINENO"; then :
13311 lt_cv_irix_exported_symbol=yes
13313 lt_cv_irix_exported_symbol=no
13315 rm -f core conftest.err conftest.$ac_objext \
13316 conftest$ac_exeext conftest.$ac_ext
13317 LDFLAGS="$save_LDFLAGS"
13319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13320 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
13321 if test "$lt_cv_irix_exported_symbol" = yes; then
13322 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'
13325 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'
13326 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'
13328 archive_cmds_need_lc='no'
13329 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13330 hardcode_libdir_separator=:
13332 link_all_deplibs=yes
13335 netbsd* | netbsdelf*-gnu)
13336 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13339 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13341 hardcode_libdir_flag_spec='-R$libdir'
13342 hardcode_direct=yes
13343 hardcode_shlibpath_var=no
13347 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13348 hardcode_direct=yes
13349 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13350 hardcode_libdir_separator=:
13351 hardcode_shlibpath_var=no
13358 if test -f /usr/libexec/ld.so; then
13359 hardcode_direct=yes
13360 hardcode_shlibpath_var=no
13361 hardcode_direct_absolute=yes
13362 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13363 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13364 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13365 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13366 export_dynamic_flag_spec='${wl}-E'
13369 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13370 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13371 hardcode_libdir_flag_spec='-R$libdir'
13374 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13375 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
13385 hardcode_libdir_flag_spec='-L$libdir'
13386 hardcode_minus_L=yes
13387 allow_undefined_flag=unsupported
13388 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
13389 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13393 if test "$GCC" = yes; then
13394 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13395 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'
13397 allow_undefined_flag=' -expect_unresolved \*'
13398 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'
13400 archive_cmds_need_lc='no'
13401 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13402 hardcode_libdir_separator=:
13405 osf4* | osf5*) # as osf3* with the addition of -msym flag
13406 if test "$GCC" = yes; then
13407 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13408 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'
13409 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13411 allow_undefined_flag=' -expect_unresolved \*'
13412 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'
13413 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~
13414 $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'
13416 # Both c and cxx compiler support -rpath directly
13417 hardcode_libdir_flag_spec='-rpath $libdir'
13419 archive_cmds_need_lc='no'
13420 hardcode_libdir_separator=:
13424 no_undefined_flag=' -z defs'
13425 if test "$GCC" = yes; then
13427 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13428 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13429 $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'
13431 case `$CC -V 2>&1` in
13434 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13435 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13436 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13440 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13441 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13442 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13446 hardcode_libdir_flag_spec='-R$libdir'
13447 hardcode_shlibpath_var=no
13449 solaris2.[0-5] | solaris2.[0-5].*) ;;
13451 # The compiler driver will combine and reorder linker options,
13452 # but understands `-z linker_flag'. GCC discards it without `$wl',
13453 # but is careful enough not to reorder.
13454 # Supported since Solaris 2.6 (maybe 2.5.1?)
13455 if test "$GCC" = yes; then
13456 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13458 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13462 link_all_deplibs=yes
13466 if test "x$host_vendor" = xsequent; then
13467 # Use $CC to link under sequent, because it throws in some extra .o
13468 # files that make .init and .fini sections work.
13469 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13471 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13473 hardcode_libdir_flag_spec='-L$libdir'
13474 hardcode_direct=yes
13475 hardcode_minus_L=yes
13476 hardcode_shlibpath_var=no
13480 case $host_vendor in
13482 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13483 hardcode_direct=yes # is this really true???
13486 ## LD is ld it makes a PLAMLIB
13487 ## CC just makes a GrossModule.
13488 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13489 reload_cmds='$CC -r -o $output$reload_objs'
13493 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13494 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13497 runpath_var='LD_RUN_PATH'
13498 hardcode_shlibpath_var=no
13502 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13503 hardcode_shlibpath_var=no
13504 export_dynamic_flag_spec='-Bexport'
13508 if test -d /usr/nec; then
13509 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13510 hardcode_shlibpath_var=no
13511 runpath_var=LD_RUN_PATH
13512 hardcode_runpath_var=yes
13517 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13518 no_undefined_flag='${wl}-z,text'
13519 archive_cmds_need_lc=no
13520 hardcode_shlibpath_var=no
13521 runpath_var='LD_RUN_PATH'
13523 if test "$GCC" = yes; then
13524 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13525 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13527 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13528 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13532 sysv5* | sco3.2v5* | sco5v6*)
13533 # Note: We can NOT use -z defs as we might desire, because we do not
13534 # link with -lc, and that would cause any symbols used from libc to
13535 # always be unresolved, which means just about no library would
13536 # ever link correctly. If we're not using GNU ld we use -z text
13537 # though, which does catch some bad symbols but isn't as heavy-handed
13539 no_undefined_flag='${wl}-z,text'
13540 allow_undefined_flag='${wl}-z,nodefs'
13541 archive_cmds_need_lc=no
13542 hardcode_shlibpath_var=no
13543 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13544 hardcode_libdir_separator=':'
13545 link_all_deplibs=yes
13546 export_dynamic_flag_spec='${wl}-Bexport'
13547 runpath_var='LD_RUN_PATH'
13549 if test "$GCC" = yes; then
13550 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13551 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13553 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13554 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13559 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13560 hardcode_libdir_flag_spec='-L$libdir'
13561 hardcode_shlibpath_var=no
13569 if test x$host_vendor = xsni; then
13571 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13572 export_dynamic_flag_spec='${wl}-Blargedynsym'
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13579 $as_echo "$ld_shlibs" >&6; }
13580 test "$ld_shlibs" = no && can_build_shared=no
13582 with_gnu_ld=$with_gnu_ld
13599 # Do we need to explicitly link libc?
13601 case "x$archive_cmds_need_lc" in
13603 # Assume -lc should be added
13604 archive_cmds_need_lc=yes
13606 if test "$enable_shared" = yes && test "$GCC" = yes; then
13607 case $archive_cmds in
13609 # FIXME: we may have to deal with multi-command sequences.
13612 # Test whether the compiler implicitly links with -lc since on some
13613 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13614 # to ld, don't add -lc before -lgcc.
13615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13616 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13617 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13618 $as_echo_n "(cached) " >&6
13621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13623 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13624 (eval $ac_compile) 2>&5
13626 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13627 test $ac_status = 0; } 2>conftest.err; then
13630 libobjs=conftest.$ac_objext
13632 wl=$lt_prog_compiler_wl
13633 pic_flag=$lt_prog_compiler_pic
13639 lt_save_allow_undefined_flag=$allow_undefined_flag
13640 allow_undefined_flag=
13641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13642 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13645 test $ac_status = 0; }
13647 lt_cv_archive_cmds_need_lc=no
13649 lt_cv_archive_cmds_need_lc=yes
13651 allow_undefined_flag=$lt_save_allow_undefined_flag
13653 cat conftest.err 1>&5
13658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13659 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13660 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13819 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13821 if test "$GCC" = yes; then
13823 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13824 *) lt_awk_arg="/^libraries:/" ;;
13827 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13828 *) lt_sed_strip_eq="s,=/,/,g" ;;
13830 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13831 case $lt_search_path_spec in
13833 # if the path contains ";" then we assume it to be the separator
13834 # otherwise default to the standard path separator (i.e. ":") - it is
13835 # assumed that no part of a normal pathname contains ";" but that should
13836 # okay in the real world where ";" in dirpaths is itself problematic.
13837 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13840 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13843 # Ok, now we have the path, separated by spaces, we can step through it
13844 # and add multilib dir if necessary.
13845 lt_tmp_lt_search_path_spec=
13846 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13847 for lt_sys_path in $lt_search_path_spec; do
13848 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13849 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13851 test -d "$lt_sys_path" && \
13852 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13855 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13856 BEGIN {RS=" "; FS="/|\n";} {
13859 for (lt_i = NF; lt_i > 0; lt_i--) {
13860 if ($lt_i != "" && $lt_i != ".") {
13861 if ($lt_i == "..") {
13864 if (lt_count == 0) {
13865 lt_foo="/" $lt_i lt_foo;
13872 if (lt_foo != "") { lt_freq[lt_foo]++; }
13873 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13875 # AWK program above erroneously prepends '/' to C:/dos/paths
13878 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13879 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13881 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13883 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13885 library_names_spec=
13886 libname_spec='lib$name'
13890 postuninstall_cmds=
13894 shlibpath_overrides_runpath=unknown
13896 dynamic_linker="$host_os ld.so"
13897 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13898 need_lib_prefix=unknown
13899 hardcode_into_libs=no
13901 # when you set need_version to no, make sure it does not cause -set_version
13902 # flags to be left without arguments
13903 need_version=unknown
13907 version_type=linux # correct to gnu/linux during the next big refactor
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13909 shlibpath_var=LIBPATH
13911 # AIX 3 has no versioning support, so we append a major version to the name.
13912 soname_spec='${libname}${release}${shared_ext}$major'
13916 version_type=linux # correct to gnu/linux during the next big refactor
13919 hardcode_into_libs=yes
13920 if test "$host_cpu" = ia64; then
13921 # AIX 5 supports IA64
13922 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13923 shlibpath_var=LD_LIBRARY_PATH
13925 # With GCC up to 2.95.x, collect2 would create an import file
13926 # for dependence libraries. The import file would start with
13927 # the line `#! .'. This would cause the generated library to
13928 # depend on `.', always an invalid library. This was fixed in
13929 # development snapshots of GCC prior to 3.0.
13931 aix4 | aix4.[01] | aix4.[01].*)
13932 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13934 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13937 can_build_shared=no
13941 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13942 # soname into executable. Probably we can add versioning support to
13943 # collect2, so additional links can be useful in future.
13944 if test "$aix_use_runtimelinking" = yes; then
13945 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13946 # instead of lib<name>.a to let people know that these are not
13947 # typical AIX shared libraries.
13948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13950 # We preserve .a as extension for shared libraries through AIX4.2
13951 # and later when we are not doing run time linking.
13952 library_names_spec='${libname}${release}.a $libname.a'
13953 soname_spec='${libname}${release}${shared_ext}$major'
13955 shlibpath_var=LIBPATH
13962 # Since July 2007 AmigaOS4 officially supports .so libraries.
13963 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13967 library_names_spec='$libname.ixlibrary $libname.a'
13968 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13969 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $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'
13975 library_names_spec='${libname}${shared_ext}'
13976 dynamic_linker="$host_os ld.so"
13977 shlibpath_var=LIBRARY_PATH
13981 version_type=linux # correct to gnu/linux during the next big refactor
13983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13984 soname_spec='${libname}${release}${shared_ext}$major'
13985 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13986 shlibpath_var=LD_LIBRARY_PATH
13987 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13988 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13989 # the default ld.so.conf also contains /usr/contrib/lib and
13990 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13991 # libtool to hard-code these into programs
13994 cygwin* | mingw* | pw32* | cegcc*)
13995 version_type=windows
14000 case $GCC,$cc_basename in
14003 library_names_spec='$libname.dll.a'
14004 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14005 postinstall_cmds='base_file=`basename \${file}`~
14006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14007 dldir=$destdir/`dirname \$dlpath`~
14008 test -d \$dldir || mkdir -p \$dldir~
14009 $install_prog $dir/$dlname \$dldir/$dlname~
14010 chmod a+x \$dldir/$dlname~
14011 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14012 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14015 dlpath=$dir/\$dldll~
14017 shlibpath_overrides_runpath=yes
14021 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
14027 # MinGW DLLs use traditional 'lib' prefix
14028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14031 # pw32 DLLs use 'pw' prefix rather than 'lib'
14032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14035 dynamic_linker='Win32 ld.exe'
14040 libname_spec='$name'
14041 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14042 library_names_spec='${libname}.dll.lib'
14046 sys_lib_search_path_spec=
14049 for lt_path in $LIB
14052 # Let DOS variable expansion print the short 8.3 style file name.
14053 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14054 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14057 # Convert to MSYS style.
14058 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14061 # Convert to unix form, then to dos form, then back to unix form
14062 # but this time dos style (no spaces!) so that the unix form looks
14063 # like /cygdrive/c/PROGRA~1:/cygdr...
14064 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14065 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14066 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14069 sys_lib_search_path_spec="$LIB"
14070 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14071 # It is most probably a Windows format PATH.
14072 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14074 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14076 # FIXME: find the short name or the path components, as spaces are
14077 # common. (e.g. "Program Files" -> "PROGRA~1")
14081 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14082 postinstall_cmds='base_file=`basename \${file}`~
14083 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14084 dldir=$destdir/`dirname \$dlpath`~
14085 test -d \$dldir || mkdir -p \$dldir~
14086 $install_prog $dir/$dlname \$dldir/$dlname'
14087 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14088 dlpath=$dir/\$dldll~
14090 shlibpath_overrides_runpath=yes
14091 dynamic_linker='Win32 link.exe'
14095 # Assume MSVC wrapper
14096 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14097 dynamic_linker='Win32 ld.exe'
14100 # FIXME: first we should search . and the directory the executable is in
14104 darwin* | rhapsody*)
14105 dynamic_linker="$host_os dyld"
14106 version_type=darwin
14109 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14110 soname_spec='${libname}${release}${major}$shared_ext'
14111 shlibpath_overrides_runpath=yes
14112 shlibpath_var=DYLD_LIBRARY_PATH
14113 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14115 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14120 version_type=linux # correct to gnu/linux during the next big refactor
14123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14124 soname_spec='${libname}${release}${shared_ext}$major'
14125 shlibpath_var=LD_LIBRARY_PATH
14128 freebsd* | dragonfly*)
14129 # DragonFly does not have aout. When/if they implement a new
14130 # versioning mechanism, adjust this.
14131 if test -x /usr/bin/objformat; then
14132 objformat=`/usr/bin/objformat`
14135 freebsd[23].*) objformat=aout ;;
14136 *) objformat=elf ;;
14139 version_type=freebsd-$objformat
14140 case $version_type in
14142 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14147 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14151 shlibpath_var=LD_LIBRARY_PATH
14154 shlibpath_overrides_runpath=yes
14156 freebsd3.[01]* | freebsdelf3.[01]*)
14157 shlibpath_overrides_runpath=yes
14158 hardcode_into_libs=yes
14160 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14161 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14162 shlibpath_overrides_runpath=no
14163 hardcode_into_libs=yes
14165 *) # from 4.6 on, and DragonFly
14166 shlibpath_overrides_runpath=yes
14167 hardcode_into_libs=yes
14173 version_type=linux # correct to gnu/linux during the next big refactor
14176 dynamic_linker="$host_os runtime_loader"
14177 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14178 soname_spec='${libname}${release}${shared_ext}$major'
14179 shlibpath_var=LIBRARY_PATH
14180 shlibpath_overrides_runpath=yes
14181 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14182 hardcode_into_libs=yes
14185 hpux9* | hpux10* | hpux11*)
14186 # Give a soname corresponding to the major version so that dld.sl refuses to
14187 # link against other versions.
14194 hardcode_into_libs=yes
14195 dynamic_linker="$host_os dld.so"
14196 shlibpath_var=LD_LIBRARY_PATH
14197 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14198 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14199 soname_spec='${libname}${release}${shared_ext}$major'
14200 if test "X$HPUX_IA64_MODE" = X32; then
14201 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14203 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14205 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14209 hardcode_into_libs=yes
14210 dynamic_linker="$host_os dld.sl"
14211 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14212 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14214 soname_spec='${libname}${release}${shared_ext}$major'
14215 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14216 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14220 dynamic_linker="$host_os dld.sl"
14221 shlibpath_var=SHLIB_PATH
14222 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14224 soname_spec='${libname}${release}${shared_ext}$major'
14227 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14228 postinstall_cmds='chmod 555 $lib'
14229 # or fails outright, so override atomically:
14230 install_override_mode=555
14234 version_type=linux # correct to gnu/linux during the next big refactor
14237 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14238 soname_spec='${libname}${release}${shared_ext}$major'
14239 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14240 shlibpath_var=LD_LIBRARY_PATH
14241 shlibpath_overrides_runpath=no
14242 hardcode_into_libs=yes
14245 irix5* | irix6* | nonstopux*)
14247 nonstopux*) version_type=nonstopux ;;
14249 if test "$lt_cv_prog_gnu_ld" = yes; then
14250 version_type=linux # correct to gnu/linux during the next big refactor
14257 soname_spec='${libname}${release}${shared_ext}$major'
14258 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14260 irix5* | nonstopux*)
14261 libsuff= shlibsuff=
14264 case $LD in # libtool.m4 will add one of these switches to LD
14265 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14266 libsuff= shlibsuff= libmagic=32-bit;;
14267 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14268 libsuff=32 shlibsuff=N32 libmagic=N32;;
14269 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14270 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14271 *) libsuff= shlibsuff= libmagic=never-match;;
14275 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14276 shlibpath_overrides_runpath=no
14277 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14278 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14279 hardcode_into_libs=yes
14282 # No shared lib support for Linux oldld, aout, or coff.
14283 linux*oldld* | linux*aout* | linux*coff*)
14287 # This must be glibc/ELF.
14288 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14289 version_type=linux # correct to gnu/linux during the next big refactor
14292 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14293 soname_spec='${libname}${release}${shared_ext}$major'
14294 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14295 shlibpath_var=LD_LIBRARY_PATH
14296 shlibpath_overrides_runpath=no
14298 # Some binutils ld are patched to set DT_RUNPATH
14299 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14300 $as_echo_n "(cached) " >&6
14302 lt_cv_shlibpath_overrides_runpath=no
14303 save_LDFLAGS=$LDFLAGS
14304 save_libdir=$libdir
14305 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14306 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14308 /* end confdefs.h. */
14317 if ac_fn_c_try_link "$LINENO"; then :
14318 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14319 lt_cv_shlibpath_overrides_runpath=yes
14322 rm -f core conftest.err conftest.$ac_objext \
14323 conftest$ac_exeext conftest.$ac_ext
14324 LDFLAGS=$save_LDFLAGS
14325 libdir=$save_libdir
14329 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14331 # This implies no fast_install, which is unacceptable.
14332 # Some rework will be needed to allow for fast_install
14333 # before this can be enabled.
14334 hardcode_into_libs=yes
14336 # Append ld.so.conf contents to the search path
14337 if test -f /etc/ld.so.conf; then
14338 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' ' '`
14339 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14342 # We used to test for /lib/ld.so.1 and disable shared libraries on
14343 # powerpc, because MkLinux only supported shared libraries with the
14344 # GNU dynamic linker. Since this was broken with cross compilers,
14345 # most powerpc-linux boxes support dynamic linking these days and
14346 # people can always --disable-shared, the test was removed, and we
14347 # assume the GNU/Linux dynamic linker is in use.
14348 dynamic_linker='GNU/Linux ld.so'
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 shlibpath_var=LD_LIBRARY_PATH
14358 shlibpath_overrides_runpath=no
14359 hardcode_into_libs=yes
14360 dynamic_linker='NetBSD ld.elf_so'
14367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14370 dynamic_linker='NetBSD (a.out) ld.so'
14372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14373 soname_spec='${libname}${release}${shared_ext}$major'
14374 dynamic_linker='NetBSD ld.elf_so'
14376 shlibpath_var=LD_LIBRARY_PATH
14377 shlibpath_overrides_runpath=yes
14378 hardcode_into_libs=yes
14382 version_type=linux # correct to gnu/linux during the next big refactor
14383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14384 shlibpath_var=LD_LIBRARY_PATH
14385 shlibpath_overrides_runpath=yes
14392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14393 soname_spec='${libname}${release}${shared_ext}$major'
14394 shlibpath_var=LD_LIBRARY_PATH
14395 shlibpath_overrides_runpath=no
14396 hardcode_into_libs=yes
14397 dynamic_linker='ldqnx.so'
14402 sys_lib_dlsearch_path_spec="/usr/lib"
14404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14407 *) need_version=no ;;
14409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14411 shlibpath_var=LD_LIBRARY_PATH
14412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14414 openbsd2.[89] | openbsd2.[89].*)
14415 shlibpath_overrides_runpath=no
14418 shlibpath_overrides_runpath=yes
14422 shlibpath_overrides_runpath=yes
14427 libname_spec='$name'
14430 library_names_spec='$libname${shared_ext} $libname.a'
14431 dynamic_linker='OS/2 ld.exe'
14432 shlibpath_var=LIBPATH
14435 osf3* | osf4* | osf5*)
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14441 shlibpath_var=LD_LIBRARY_PATH
14442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14451 version_type=linux # correct to gnu/linux during the next big refactor
14454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14455 soname_spec='${libname}${release}${shared_ext}$major'
14456 shlibpath_var=LD_LIBRARY_PATH
14457 shlibpath_overrides_runpath=yes
14458 hardcode_into_libs=yes
14459 # ldd complains unless libraries are executable
14460 postinstall_cmds='chmod +x $lib'
14465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes
14469 if test "$with_gnu_ld" = yes; then
14476 version_type=linux # correct to gnu/linux during the next big refactor
14477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14478 soname_spec='${libname}${release}${shared_ext}$major'
14479 shlibpath_var=LD_LIBRARY_PATH
14480 case $host_vendor in
14482 shlibpath_overrides_runpath=no
14484 runpath_var=LD_RUN_PATH
14492 shlibpath_overrides_runpath=no
14493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14499 if test -d /usr/nec ;then
14500 version_type=linux # correct to gnu/linux during the next big refactor
14501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14502 soname_spec='$libname${shared_ext}.$major'
14503 shlibpath_var=LD_LIBRARY_PATH
14507 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14508 version_type=freebsd-elf
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14512 soname_spec='${libname}${release}${shared_ext}$major'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 hardcode_into_libs=yes
14516 if test "$with_gnu_ld" = yes; then
14517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14526 sys_lib_dlsearch_path_spec='/usr/lib'
14530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14531 version_type=linux # correct to gnu/linux during the next big refactor
14534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14535 shlibpath_var=LD_LIBRARY_PATH
14536 shlibpath_overrides_runpath=no
14537 hardcode_into_libs=yes
14541 version_type=linux # correct to gnu/linux during the next big refactor
14542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14543 soname_spec='${libname}${release}${shared_ext}$major'
14544 shlibpath_var=LD_LIBRARY_PATH
14551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14552 $as_echo "$dynamic_linker" >&6; }
14553 test "$dynamic_linker" = no && can_build_shared=no
14555 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14556 if test "$GCC" = yes; then
14557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14560 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14563 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14659 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14661 if test -n "$hardcode_libdir_flag_spec" ||
14662 test -n "$runpath_var" ||
14663 test "X$hardcode_automatic" = "Xyes" ; then
14665 # We can hardcode non-existent directories.
14666 if test "$hardcode_direct" != no &&
14667 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14668 # have to relink, otherwise we might link with an installed library
14669 # when we should be linking with a yet-to-be-installed one
14670 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14671 test "$hardcode_minus_L" != no; then
14672 # Linking always hardcodes the temporary library directory.
14673 hardcode_action=relink
14675 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14676 hardcode_action=immediate
14679 # We cannot hardcode anything, or else we can only hardcode existing
14681 hardcode_action=unsupported
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14684 $as_echo "$hardcode_action" >&6; }
14686 if test "$hardcode_action" = relink ||
14687 test "$inherit_rpath" = yes; then
14688 # Fast installation is not supported
14689 enable_fast_install=no
14690 elif test "$shlibpath_overrides_runpath" = yes ||
14691 test "$enable_shared" = no; then
14692 # Fast installation is not necessary
14693 enable_fast_install=needless
14701 if test "x$enable_dlopen" != xyes; then
14702 enable_dlopen=unknown
14703 enable_dlopen_self=unknown
14704 enable_dlopen_self_static=unknown
14711 lt_cv_dlopen="load_add_on"
14713 lt_cv_dlopen_self=yes
14716 mingw* | pw32* | cegcc*)
14717 lt_cv_dlopen="LoadLibrary"
14722 lt_cv_dlopen="dlopen"
14727 # if libdl is installed we need to link against it
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14729 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14730 if ${ac_cv_lib_dl_dlopen+:} false; then :
14731 $as_echo_n "(cached) " >&6
14733 ac_check_lib_save_LIBS=$LIBS
14735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14736 /* end confdefs.h. */
14750 if ac_fn_c_try_link "$LINENO"; then :
14751 ac_cv_lib_dl_dlopen=yes
14753 ac_cv_lib_dl_dlopen=no
14755 rm -f core conftest.err conftest.$ac_objext \
14756 conftest$ac_exeext conftest.$ac_ext
14757 LIBS=$ac_check_lib_save_LIBS
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14760 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14761 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14762 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14765 lt_cv_dlopen="dyld"
14767 lt_cv_dlopen_self=yes
14774 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14775 if test "x$ac_cv_func_shl_load" = xyes; then :
14776 lt_cv_dlopen="shl_load"
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14779 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14780 if ${ac_cv_lib_dld_shl_load+:} false; then :
14781 $as_echo_n "(cached) " >&6
14783 ac_check_lib_save_LIBS=$LIBS
14785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14786 /* end confdefs.h. */
14795 return shl_load ();
14800 if ac_fn_c_try_link "$LINENO"; then :
14801 ac_cv_lib_dld_shl_load=yes
14803 ac_cv_lib_dld_shl_load=no
14805 rm -f core conftest.err conftest.$ac_objext \
14806 conftest$ac_exeext conftest.$ac_ext
14807 LIBS=$ac_check_lib_save_LIBS
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14810 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14811 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14812 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14814 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14815 if test "x$ac_cv_func_dlopen" = xyes; then :
14816 lt_cv_dlopen="dlopen"
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14819 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14820 if ${ac_cv_lib_dl_dlopen+:} false; then :
14821 $as_echo_n "(cached) " >&6
14823 ac_check_lib_save_LIBS=$LIBS
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14840 if ac_fn_c_try_link "$LINENO"; then :
14841 ac_cv_lib_dl_dlopen=yes
14843 ac_cv_lib_dl_dlopen=no
14845 rm -f core conftest.err conftest.$ac_objext \
14846 conftest$ac_exeext conftest.$ac_ext
14847 LIBS=$ac_check_lib_save_LIBS
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14850 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14851 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14852 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14855 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14856 if ${ac_cv_lib_svld_dlopen+:} false; then :
14857 $as_echo_n "(cached) " >&6
14859 ac_check_lib_save_LIBS=$LIBS
14860 LIBS="-lsvld $LIBS"
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14876 if ac_fn_c_try_link "$LINENO"; then :
14877 ac_cv_lib_svld_dlopen=yes
14879 ac_cv_lib_svld_dlopen=no
14881 rm -f core conftest.err conftest.$ac_objext \
14882 conftest$ac_exeext conftest.$ac_ext
14883 LIBS=$ac_check_lib_save_LIBS
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14886 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14887 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14888 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14891 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14892 if ${ac_cv_lib_dld_dld_link+:} false; then :
14893 $as_echo_n "(cached) " >&6
14895 ac_check_lib_save_LIBS=$LIBS
14897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14898 /* end confdefs.h. */
14907 return dld_link ();
14912 if ac_fn_c_try_link "$LINENO"; then :
14913 ac_cv_lib_dld_dld_link=yes
14915 ac_cv_lib_dld_dld_link=no
14917 rm -f core conftest.err conftest.$ac_objext \
14918 conftest$ac_exeext conftest.$ac_ext
14919 LIBS=$ac_check_lib_save_LIBS
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14922 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14923 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14924 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14945 if test "x$lt_cv_dlopen" != xno; then
14951 case $lt_cv_dlopen in
14953 save_CPPFLAGS="$CPPFLAGS"
14954 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14956 save_LDFLAGS="$LDFLAGS"
14957 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14960 LIBS="$lt_cv_dlopen_libs $LIBS"
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14963 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14964 if ${lt_cv_dlopen_self+:} false; then :
14965 $as_echo_n "(cached) " >&6
14967 if test "$cross_compiling" = yes; then :
14968 lt_cv_dlopen_self=cross
14970 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14971 lt_status=$lt_dlunknown
14972 cat > conftest.$ac_ext <<_LT_EOF
14973 #line $LINENO "configure"
14974 #include "confdefs.h"
14983 # define LT_DLGLOBAL RTLD_GLOBAL
14986 # define LT_DLGLOBAL DL_GLOBAL
14988 # define LT_DLGLOBAL 0
14992 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14993 find out it does not work in some platform. */
14994 #ifndef LT_DLLAZY_OR_NOW
14996 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14999 # define LT_DLLAZY_OR_NOW DL_LAZY
15002 # define LT_DLLAZY_OR_NOW RTLD_NOW
15005 # define LT_DLLAZY_OR_NOW DL_NOW
15007 # define LT_DLLAZY_OR_NOW 0
15014 /* When -fvisbility=hidden is used, assume the code has been annotated
15015 correspondingly for the symbols needed. */
15016 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15017 int fnord () __attribute__((visibility("default")));
15020 int fnord () { return 42; }
15023 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15024 int status = $lt_dlunknown;
15028 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15031 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15032 else puts (dlerror ());
15034 /* dlclose (self); */
15042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15043 (eval $ac_link) 2>&5
15045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15046 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15047 (./conftest; exit; ) >&5 2>/dev/null
15049 case x$lt_status in
15050 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15051 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15052 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15055 # compilation failed
15056 lt_cv_dlopen_self=no
15063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15064 $as_echo "$lt_cv_dlopen_self" >&6; }
15066 if test "x$lt_cv_dlopen_self" = xyes; then
15067 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15069 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15070 if ${lt_cv_dlopen_self_static+:} false; then :
15071 $as_echo_n "(cached) " >&6
15073 if test "$cross_compiling" = yes; then :
15074 lt_cv_dlopen_self_static=cross
15076 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15077 lt_status=$lt_dlunknown
15078 cat > conftest.$ac_ext <<_LT_EOF
15079 #line $LINENO "configure"
15080 #include "confdefs.h"
15089 # define LT_DLGLOBAL RTLD_GLOBAL
15092 # define LT_DLGLOBAL DL_GLOBAL
15094 # define LT_DLGLOBAL 0
15098 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15099 find out it does not work in some platform. */
15100 #ifndef LT_DLLAZY_OR_NOW
15102 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15105 # define LT_DLLAZY_OR_NOW DL_LAZY
15108 # define LT_DLLAZY_OR_NOW RTLD_NOW
15111 # define LT_DLLAZY_OR_NOW DL_NOW
15113 # define LT_DLLAZY_OR_NOW 0
15120 /* When -fvisbility=hidden is used, assume the code has been annotated
15121 correspondingly for the symbols needed. */
15122 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15123 int fnord () __attribute__((visibility("default")));
15126 int fnord () { return 42; }
15129 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15130 int status = $lt_dlunknown;
15134 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15137 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15138 else puts (dlerror ());
15140 /* dlclose (self); */
15148 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15149 (eval $ac_link) 2>&5
15151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15152 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
15153 (./conftest; exit; ) >&5 2>/dev/null
15155 case x$lt_status in
15156 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15157 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15158 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15161 # compilation failed
15162 lt_cv_dlopen_self_static=no
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15170 $as_echo "$lt_cv_dlopen_self_static" >&6; }
15173 CPPFLAGS="$save_CPPFLAGS"
15174 LDFLAGS="$save_LDFLAGS"
15179 case $lt_cv_dlopen_self in
15180 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15181 *) enable_dlopen_self=unknown ;;
15184 case $lt_cv_dlopen_self_static in
15185 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15186 *) enable_dlopen_self_static=unknown ;;
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15209 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
15210 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15211 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15212 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15214 $as_echo "yes" >&6; }
15216 # FIXME - insert some real tests, host_os isn't really good enough
15219 if test -n "$STRIP" ; then
15220 striplib="$STRIP -x"
15221 old_striplib="$STRIP -S"
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15223 $as_echo "yes" >&6; }
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15226 $as_echo "no" >&6; }
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15231 $as_echo "no" >&6; }
15247 # Report which library types will actually be built
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15249 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15251 $as_echo "$can_build_shared" >&6; }
15253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15254 $as_echo_n "checking whether to build shared libraries... " >&6; }
15255 test "$can_build_shared" = "no" && enable_shared=no
15257 # On AIX, shared libraries and static libraries use the same namespace, and
15258 # are all built from PIC.
15261 test "$enable_shared" = yes && enable_static=no
15262 if test -n "$RANLIB"; then
15263 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15264 postinstall_cmds='$RANLIB $lib'
15269 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15270 test "$enable_shared" = yes && enable_static=no
15274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15275 $as_echo "$enable_shared" >&6; }
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15278 $as_echo_n "checking whether to build static libraries... " >&6; }
15279 # Make sure either enable_shared or enable_static is yes.
15280 test "$enable_shared" = yes || enable_static=yes
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15282 $as_echo "$enable_static" >&6; }
15289 ac_cpp='$CPP $CPPFLAGS'
15290 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15291 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15292 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15310 ac_config_commands="$ac_config_commands libtool"
15315 # Only expand once:
15318 ## --------------------- ##
15319 ## End of libtool code ##
15320 ## --------------------- ##
15323 # Verify if finally libtool shared libraries will be built
15326 case "x$enable_shared" in # ((
15328 xc_lt_build_shared=$enable_shared
15331 as_fn_error $? "unexpected libtool enable_shared value: $enable_shared" "$LINENO" 5
15336 # Verify if finally libtool static libraries will be built
15339 case "x$enable_static" in # ((
15341 xc_lt_build_static=$enable_static
15344 as_fn_error $? "unexpected libtool enable_static value: $enable_static" "$LINENO" 5
15349 # Verify if libtool shared libraries should be linked using flag -version-info
15352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -version-info" >&5
15353 $as_echo_n "checking whether to build shared libraries with -version-info... " >&6; }
15354 xc_lt_shlib_use_version_info='yes'
15355 if test "x$version_type" = 'xnone'; then
15356 xc_lt_shlib_use_version_info='no'
15358 case $host_os in # (
15360 xc_lt_shlib_use_version_info='yes'
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_version_info" >&5
15364 $as_echo "$xc_lt_shlib_use_version_info" >&6; }
15367 # Verify if libtool shared libraries should be linked using flag -no-undefined
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -no-undefined" >&5
15371 $as_echo_n "checking whether to build shared libraries with -no-undefined... " >&6; }
15372 xc_lt_shlib_use_no_undefined='no'
15373 if test "x$allow_undefined" = 'xno'; then
15374 xc_lt_shlib_use_no_undefined='yes'
15375 elif test "x$allow_undefined_flag" = 'xunsupported'; then
15376 xc_lt_shlib_use_no_undefined='yes'
15378 case $host_os in # (
15379 cygwin* | mingw* | pw32* | cegcc* | os2* | aix*)
15380 xc_lt_shlib_use_no_undefined='yes'
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_no_undefined" >&5
15384 $as_echo "$xc_lt_shlib_use_no_undefined" >&6; }
15387 # Verify if libtool shared libraries should be linked using flag -mimpure-text
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with -mimpure-text" >&5
15391 $as_echo_n "checking whether to build shared libraries with -mimpure-text... " >&6; }
15392 xc_lt_shlib_use_mimpure_text='no'
15393 case $host_os in # (
15395 if test "x$GCC" = 'xyes'; then
15396 xc_lt_shlib_use_mimpure_text='yes'
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_shlib_use_mimpure_text" >&5
15401 $as_echo "$xc_lt_shlib_use_mimpure_text" >&6; }
15404 # Find out wether libtool libraries would be built wit PIC
15407 case "x$pic_mode" in # ((((
15409 xc_lt_build_shared_with_pic='yes'
15410 xc_lt_build_static_with_pic='no'
15413 xc_lt_build_shared_with_pic='yes'
15414 xc_lt_build_static_with_pic='yes'
15417 xc_lt_build_shared_with_pic='no'
15418 xc_lt_build_static_with_pic='no'
15421 xc_lt_build_shared_with_pic='unknown'
15422 xc_lt_build_static_with_pic='unknown'
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unexpected libtool pic_mode value: $pic_mode" >&5
15424 $as_echo "$as_me: WARNING: unexpected libtool pic_mode value: $pic_mode" >&2;}
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries with PIC" >&5
15428 $as_echo_n "checking whether to build shared libraries with PIC... " >&6; }
15429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_with_pic" >&5
15430 $as_echo "$xc_lt_build_shared_with_pic" >&6; }
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries with PIC" >&5
15432 $as_echo_n "checking whether to build static libraries with PIC... " >&6; }
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_with_pic" >&5
15434 $as_echo "$xc_lt_build_static_with_pic" >&6; }
15437 # Verify if libtool shared libraries will be built while static not built
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries only" >&5
15441 $as_echo_n "checking whether to build shared libraries only... " >&6; }
15442 if test "$xc_lt_build_shared" = 'yes' &&
15443 test "$xc_lt_build_static" = 'no'; then
15444 xc_lt_build_shared_only='yes'
15446 xc_lt_build_shared_only='no'
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_shared_only" >&5
15449 $as_echo "$xc_lt_build_shared_only" >&6; }
15452 # Verify if libtool static libraries will be built while shared not built
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries only" >&5
15456 $as_echo_n "checking whether to build static libraries only... " >&6; }
15457 if test "$xc_lt_build_static" = 'yes' &&
15458 test "$xc_lt_build_shared" = 'no'; then
15459 xc_lt_build_static_only='yes'
15461 xc_lt_build_static_only='no'
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xc_lt_build_static_only" >&5
15464 $as_echo "$xc_lt_build_static_only" >&6; }
15470 # Automake conditionals based on libtool related checks
15473 if test "x$xc_lt_shlib_use_version_info" = 'xyes'; then
15474 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE=
15475 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE='#'
15477 CURL_LT_SHLIB_USE_VERSION_INFO_TRUE='#'
15478 CURL_LT_SHLIB_USE_VERSION_INFO_FALSE=
15481 if test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
15482 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE=
15483 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE='#'
15485 CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE='#'
15486 CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE=
15489 if test "x$xc_lt_shlib_use_mimpure_text" = 'xyes'; then
15490 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE=
15491 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE='#'
15493 CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE='#'
15494 CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE=
15499 # Due to libtool and automake machinery limitations of not allowing
15500 # specifying separate CPPFLAGS or CFLAGS when compiling objects for
15501 # inclusion of these in shared or static libraries, we are forced to
15502 # build using separate configure runs for shared and static libraries
15503 # on systems where different CPPFLAGS or CFLAGS are mandatory in order
15504 # to compile objects for each kind of library. Notice that relying on
15505 # the '-DPIC' CFLAG that libtool provides is not valid given that the
15506 # user might for example choose to build static libraries with PIC.
15510 # Make our Makefile.am files use the staticlib CPPFLAG only when strictly
15511 # targeting a static library and not building its shared counterpart.
15514 if test "x$xc_lt_build_static_only" = 'xyes'; then
15515 USE_CPPFLAG_CURL_STATICLIB_TRUE=
15516 USE_CPPFLAG_CURL_STATICLIB_FALSE='#'
15518 USE_CPPFLAG_CURL_STATICLIB_TRUE='#'
15519 USE_CPPFLAG_CURL_STATICLIB_FALSE=
15524 # Make staticlib CPPFLAG variable and its definition visible in output
15525 # files unconditionally, providing an empty definition unless strictly
15526 # targeting a static library and not building its shared counterpart.
15529 CPPFLAG_CURL_STATICLIB=
15530 if test "x$xc_lt_build_static_only" = 'xyes'; then
15531 CPPFLAG_CURL_STATICLIB='-DCURL_STATICLIB'
15536 # Determine whether all dependent libraries must be specified when linking
15537 if test "X$enable_shared" = "Xyes" -a "X$link_all_deplibs" = "Xno"
15539 REQUIRE_LIB_DEPS=no
15541 REQUIRE_LIB_DEPS=yes
15544 if test x$REQUIRE_LIB_DEPS = xyes; then
15545 USE_EXPLICIT_LIB_DEPS_TRUE=
15546 USE_EXPLICIT_LIB_DEPS_FALSE='#'
15548 USE_EXPLICIT_LIB_DEPS_TRUE='#'
15549 USE_EXPLICIT_LIB_DEPS_FALSE=
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
15554 $as_echo_n "checking for inline... " >&6; }
15555 if ${ac_cv_c_inline+:} false; then :
15556 $as_echo_n "(cached) " >&6
15559 for ac_kw in inline __inline__ __inline; do
15560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15561 /* end confdefs.h. */
15562 #ifndef __cplusplus
15564 static $ac_kw foo_t static_foo () {return 0; }
15565 $ac_kw foo_t foo () {return 0; }
15569 if ac_fn_c_try_compile "$LINENO"; then :
15570 ac_cv_c_inline=$ac_kw
15572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15573 test "$ac_cv_c_inline" != no && break
15577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
15578 $as_echo "$ac_cv_c_inline" >&6; }
15580 case $ac_cv_c_inline in
15583 case $ac_cv_c_inline in
15585 *) ac_val=$ac_cv_c_inline;;
15587 cat >>confdefs.h <<_ACEOF
15588 #ifndef __cplusplus
15589 #define inline $ac_val
15599 compiler_id="unknown"
15602 flags_dbg_all="unknown"
15603 flags_dbg_yes="unknown"
15604 flags_dbg_off="unknown"
15605 flags_opt_all="unknown"
15606 flags_opt_yes="unknown"
15607 flags_opt_off="unknown"
15609 flags_prefer_cppflags="no"
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is DEC/Compaq/HP C" >&5
15613 $as_echo_n "checking if compiler is DEC/Compaq/HP C... " >&6; }
15615 if test -z "$SED"; then
15616 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15618 if test -z "$GREP"; then
15619 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15624 /* end confdefs.h. */
15628 CURL_DEF_TOKEN __DECC
15633 if ac_fn_c_try_cpp "$LINENO"; then :
15635 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15636 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15637 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15638 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15639 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC"; then
15644 rm -f conftest.err conftest.i conftest.$ac_ext
15645 if test -z "$tmp_exp"; then
15646 curl_cv_have_def___DECC=no
15649 curl_cv_have_def___DECC=yes
15650 curl_cv_def___DECC=$tmp_exp
15655 if test -z "$SED"; then
15656 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15658 if test -z "$GREP"; then
15659 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15664 /* end confdefs.h. */
15668 CURL_DEF_TOKEN __DECC_VER
15673 if ac_fn_c_try_cpp "$LINENO"; then :
15675 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15676 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15677 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15678 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15679 if test -z "$tmp_exp" || test "$tmp_exp" = "__DECC_VER"; then
15684 rm -f conftest.err conftest.i conftest.$ac_ext
15685 if test -z "$tmp_exp"; then
15686 curl_cv_have_def___DECC_VER=no
15689 curl_cv_have_def___DECC_VER=yes
15690 curl_cv_def___DECC_VER=$tmp_exp
15694 if test "$curl_cv_have_def___DECC" = "yes" &&
15695 test "$curl_cv_have_def___DECC_VER" = "yes"; then
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15697 $as_echo "yes" >&6; }
15698 compiler_id="DEC_C"
15699 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15700 flags_dbg_yes="-g2"
15702 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4"
15703 flags_opt_yes="-O1"
15704 flags_opt_off="-O0"
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15707 $as_echo "no" >&6; }
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is HP-UX C" >&5
15712 $as_echo_n "checking if compiler is HP-UX C... " >&6; }
15714 if test -z "$SED"; then
15715 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15717 if test -z "$GREP"; then
15718 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15723 /* end confdefs.h. */
15727 CURL_DEF_TOKEN __HP_cc
15732 if ac_fn_c_try_cpp "$LINENO"; then :
15734 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15735 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15736 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15737 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15738 if test -z "$tmp_exp" || test "$tmp_exp" = "__HP_cc"; then
15743 rm -f conftest.err conftest.i conftest.$ac_ext
15744 if test -z "$tmp_exp"; then
15745 curl_cv_have_def___HP_cc=no
15748 curl_cv_have_def___HP_cc=yes
15749 curl_cv_def___HP_cc=$tmp_exp
15753 if test "$curl_cv_have_def___HP_cc" = "yes"; then
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15755 $as_echo "yes" >&6; }
15756 compiler_id="HP_UX_C"
15757 flags_dbg_all="-g -s"
15760 flags_opt_all="-O +O0 +O1 +O2 +O3 +O4"
15761 flags_opt_yes="+O2"
15762 flags_opt_off="+O0"
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15765 $as_echo "no" >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is IBM C" >&5
15770 $as_echo_n "checking if compiler is IBM C... " >&6; }
15772 if test -z "$SED"; then
15773 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15775 if test -z "$GREP"; then
15776 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15781 /* end confdefs.h. */
15785 CURL_DEF_TOKEN __IBMC__
15790 if ac_fn_c_try_cpp "$LINENO"; then :
15792 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15793 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15794 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15795 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15796 if test -z "$tmp_exp" || test "$tmp_exp" = "__IBMC__"; then
15801 rm -f conftest.err conftest.i conftest.$ac_ext
15802 if test -z "$tmp_exp"; then
15803 curl_cv_have_def___IBMC__=no
15806 curl_cv_have_def___IBMC__=yes
15807 curl_cv_def___IBMC__=$tmp_exp
15811 if test "$curl_cv_have_def___IBMC__" = "yes"; then
15812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15813 $as_echo "yes" >&6; }
15814 compiler_id="IBM_C"
15815 flags_dbg_all="-g -g0 -g1 -g2 -g3"
15818 flags_opt_all="-O -O0 -O1 -O2 -O3 -O4 -O5"
15819 flags_opt_all="$flags_opt_all -qnooptimize"
15820 flags_opt_all="$flags_opt_all -qoptimize=0"
15821 flags_opt_all="$flags_opt_all -qoptimize=1"
15822 flags_opt_all="$flags_opt_all -qoptimize=2"
15823 flags_opt_all="$flags_opt_all -qoptimize=3"
15824 flags_opt_all="$flags_opt_all -qoptimize=4"
15825 flags_opt_all="$flags_opt_all -qoptimize=5"
15826 flags_opt_yes="-O2"
15827 flags_opt_off="-qnooptimize"
15828 flags_prefer_cppflags="yes"
15830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15831 $as_echo "no" >&6; }
15835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Intel C" >&5
15836 $as_echo_n "checking if compiler is Intel C... " >&6; }
15838 if test -z "$SED"; then
15839 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15841 if test -z "$GREP"; then
15842 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15847 /* end confdefs.h. */
15850 #ifdef __INTEL_COMPILER
15851 CURL_DEF_TOKEN __INTEL_COMPILER
15856 if ac_fn_c_try_cpp "$LINENO"; then :
15858 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15859 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15860 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15861 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15862 if test -z "$tmp_exp" || test "$tmp_exp" = "__INTEL_COMPILER"; then
15867 rm -f conftest.err conftest.i conftest.$ac_ext
15868 if test -z "$tmp_exp"; then
15869 curl_cv_have_def___INTEL_COMPILER=no
15872 curl_cv_have_def___INTEL_COMPILER=yes
15873 curl_cv_def___INTEL_COMPILER=$tmp_exp
15877 if test "$curl_cv_have_def___INTEL_COMPILER" = "yes"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15879 $as_echo "yes" >&6; }
15880 compiler_num="$curl_cv_def___INTEL_COMPILER"
15882 if test -z "$SED"; then
15883 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15885 if test -z "$GREP"; then
15886 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15891 /* end confdefs.h. */
15895 CURL_DEF_TOKEN __unix__
15900 if ac_fn_c_try_cpp "$LINENO"; then :
15902 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15903 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15904 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15905 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15906 if test -z "$tmp_exp" || test "$tmp_exp" = ""; then
15911 rm -f conftest.err conftest.i conftest.$ac_ext
15912 if test -z "$tmp_exp"; then
15913 curl_cv_have_def___unix__=no
15916 curl_cv_have_def___unix__=yes
15917 curl_cv_def___unix__=$tmp_exp
15921 if test "$curl_cv_have_def___unix__" = "yes"; then
15922 compiler_id="INTEL_UNIX_C"
15923 flags_dbg_all="-g -g0"
15926 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
15927 flags_opt_yes="-O2"
15928 flags_opt_off="-O0"
15930 compiler_id="INTEL_WINDOWS_C"
15931 flags_dbg_all="/ZI /Zi /zI /zi /ZD /Zd /zD /zd /Z7 /z7 /Oy /Oy-"
15932 flags_dbg_all="$flags_dbg_all /debug"
15933 flags_dbg_all="$flags_dbg_all /debug:none"
15934 flags_dbg_all="$flags_dbg_all /debug:minimal"
15935 flags_dbg_all="$flags_dbg_all /debug:partial"
15936 flags_dbg_all="$flags_dbg_all /debug:full"
15937 flags_dbg_all="$flags_dbg_all /debug:semantic_stepping"
15938 flags_dbg_all="$flags_dbg_all /debug:extended"
15939 flags_dbg_yes="/Zi /Oy-"
15940 flags_dbg_off="/debug:none /Oy-"
15941 flags_opt_all="/O /O0 /O1 /O2 /O3 /Od /Og /Og- /Oi /Oi-"
15942 flags_opt_yes="/O2"
15943 flags_opt_off="/Od"
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15947 $as_echo "no" >&6; }
15951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is clang" >&5
15952 $as_echo_n "checking if compiler is clang... " >&6; }
15954 if test -z "$SED"; then
15955 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
15957 if test -z "$GREP"; then
15958 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
15962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15963 /* end confdefs.h. */
15967 CURL_DEF_TOKEN __clang__
15972 if ac_fn_c_try_cpp "$LINENO"; then :
15974 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
15975 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
15976 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
15977 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
15978 if test -z "$tmp_exp" || test "$tmp_exp" = "__clang__"; then
15983 rm -f conftest.err conftest.i conftest.$ac_ext
15984 if test -z "$tmp_exp"; then
15985 curl_cv_have_def___clang__=no
15988 curl_cv_have_def___clang__=yes
15989 curl_cv_def___clang__=$tmp_exp
15993 if test "$curl_cv_have_def___clang__" = "yes"; then
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15995 $as_echo "yes" >&6; }
15996 compiler_id="CLANG"
15997 clangver=`$CC -dumpversion`
15998 clangvhi=`echo $clangver | cut -d . -f1`
15999 clangvlo=`echo $clangver | cut -d . -f2`
16000 compiler_num=`(expr $clangvhi "*" 100 + $clangvlo) 2>/dev/null`
16001 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16002 flags_dbg_all="$flags_dbg_all -ggdb"
16003 flags_dbg_all="$flags_dbg_all -gstabs"
16004 flags_dbg_all="$flags_dbg_all -gstabs+"
16005 flags_dbg_all="$flags_dbg_all -gcoff"
16006 flags_dbg_all="$flags_dbg_all -gxcoff"
16007 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16008 flags_dbg_all="$flags_dbg_all -gvms"
16011 flags_opt_all="-O -O0 -O1 -O2 -Os -O3 -O4"
16012 flags_opt_yes="-Os"
16013 flags_opt_off="-O0"
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16016 $as_echo "no" >&6; }
16020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is GNU C" >&5
16021 $as_echo_n "checking if compiler is GNU C... " >&6; }
16023 if test -z "$SED"; then
16024 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16026 if test -z "$GREP"; then
16027 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16032 /* end confdefs.h. */
16036 CURL_DEF_TOKEN __GNUC__
16041 if ac_fn_c_try_cpp "$LINENO"; then :
16043 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16044 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16045 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16046 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16047 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16052 rm -f conftest.err conftest.i conftest.$ac_ext
16053 if test -z "$tmp_exp"; then
16054 curl_cv_have_def___GNUC__=no
16057 curl_cv_have_def___GNUC__=yes
16058 curl_cv_def___GNUC__=$tmp_exp
16062 if test "$curl_cv_have_def___GNUC__" = "yes" &&
16063 test "$compiler_id" = "unknown"; then
16064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16065 $as_echo "yes" >&6; }
16066 compiler_id="GNU_C"
16067 gccver=`$CC -dumpversion`
16068 gccvhi=`echo $gccver | cut -d . -f1`
16069 gccvlo=`echo $gccver | cut -d . -f2`
16070 compiler_num=`(expr $gccvhi "*" 100 + $gccvlo) 2>/dev/null`
16071 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16072 flags_dbg_all="$flags_dbg_all -ggdb"
16073 flags_dbg_all="$flags_dbg_all -gstabs"
16074 flags_dbg_all="$flags_dbg_all -gstabs+"
16075 flags_dbg_all="$flags_dbg_all -gcoff"
16076 flags_dbg_all="$flags_dbg_all -gxcoff"
16077 flags_dbg_all="$flags_dbg_all -gdwarf-2"
16078 flags_dbg_all="$flags_dbg_all -gvms"
16081 flags_opt_all="-O -O0 -O1 -O2 -O3 -Os"
16082 flags_opt_yes="-O2"
16083 flags_opt_off="-O0"
16085 if test -z "$SED"; then
16086 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16088 if test -z "$GREP"; then
16089 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16094 /* end confdefs.h. */
16098 CURL_DEF_TOKEN _WIN32
16103 if ac_fn_c_try_cpp "$LINENO"; then :
16105 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16106 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16107 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16108 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16109 if test -z "$tmp_exp" || test "$tmp_exp" = "_WIN32"; then
16114 rm -f conftest.err conftest.i conftest.$ac_ext
16115 if test -z "$tmp_exp"; then
16116 curl_cv_have_def__WIN32=no
16119 curl_cv_have_def__WIN32=yes
16120 curl_cv_def__WIN32=$tmp_exp
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16126 $as_echo "no" >&6; }
16130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is LCC" >&5
16131 $as_echo_n "checking if compiler is LCC... " >&6; }
16133 if test -z "$SED"; then
16134 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16136 if test -z "$GREP"; then
16137 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16142 /* end confdefs.h. */
16146 CURL_DEF_TOKEN __LCC__
16151 if ac_fn_c_try_cpp "$LINENO"; then :
16153 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16154 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16155 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16156 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16157 if test -z "$tmp_exp" || test "$tmp_exp" = "__LCC__"; then
16162 rm -f conftest.err conftest.i conftest.$ac_ext
16163 if test -z "$tmp_exp"; then
16164 curl_cv_have_def___LCC__=no
16167 curl_cv_have_def___LCC__=yes
16168 curl_cv_def___LCC__=$tmp_exp
16172 if test "$curl_cv_have_def___LCC__" = "yes"; then
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16174 $as_echo "yes" >&6; }
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16184 $as_echo "no" >&6; }
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPSpro C" >&5
16189 $as_echo_n "checking if compiler is SGI MIPSpro C... " >&6; }
16191 if test -z "$SED"; then
16192 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16194 if test -z "$GREP"; then
16195 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16200 /* end confdefs.h. */
16204 CURL_DEF_TOKEN __GNUC__
16209 if ac_fn_c_try_cpp "$LINENO"; then :
16211 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16212 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16213 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16214 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16215 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16220 rm -f conftest.err conftest.i conftest.$ac_ext
16221 if test -z "$tmp_exp"; then
16222 curl_cv_have_def___GNUC__=no
16225 curl_cv_have_def___GNUC__=yes
16226 curl_cv_def___GNUC__=$tmp_exp
16231 if test -z "$SED"; then
16232 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16234 if test -z "$GREP"; then
16235 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16240 /* end confdefs.h. */
16243 #ifdef _COMPILER_VERSION
16244 CURL_DEF_TOKEN _COMPILER_VERSION
16249 if ac_fn_c_try_cpp "$LINENO"; then :
16251 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16252 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16253 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16254 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16255 if test -z "$tmp_exp" || test "$tmp_exp" = "_COMPILER_VERSION"; then
16260 rm -f conftest.err conftest.i conftest.$ac_ext
16261 if test -z "$tmp_exp"; then
16262 curl_cv_have_def__COMPILER_VERSION=no
16265 curl_cv_have_def__COMPILER_VERSION=yes
16266 curl_cv_def__COMPILER_VERSION=$tmp_exp
16271 if test -z "$SED"; then
16272 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16274 if test -z "$GREP"; then
16275 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16280 /* end confdefs.h. */
16283 #ifdef _SGI_COMPILER_VERSION
16284 CURL_DEF_TOKEN _SGI_COMPILER_VERSION
16289 if ac_fn_c_try_cpp "$LINENO"; then :
16291 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16292 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16293 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16294 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16295 if test -z "$tmp_exp" || test "$tmp_exp" = "_SGI_COMPILER_VERSION"; then
16300 rm -f conftest.err conftest.i conftest.$ac_ext
16301 if test -z "$tmp_exp"; then
16302 curl_cv_have_def__SGI_COMPILER_VERSION=no
16305 curl_cv_have_def__SGI_COMPILER_VERSION=yes
16306 curl_cv_def__SGI_COMPILER_VERSION=$tmp_exp
16310 if test "$curl_cv_have_def___GNUC__" = "no" &&
16311 (test "$curl_cv_have_def__SGI_COMPILER_VERSION" = "yes" ||
16312 test "$curl_cv_have_def__COMPILER_VERSION" = "yes"); then
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16314 $as_echo "yes" >&6; }
16315 compiler_id="SGI_MIPSPRO_C"
16316 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16319 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16320 flags_opt_yes="-O2"
16321 flags_opt_off="-O0"
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SGI MIPS C" >&5
16329 $as_echo_n "checking if compiler is SGI MIPS C... " >&6; }
16331 if test -z "$SED"; then
16332 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16334 if test -z "$GREP"; then
16335 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16340 /* end confdefs.h. */
16344 CURL_DEF_TOKEN __GNUC__
16349 if ac_fn_c_try_cpp "$LINENO"; then :
16351 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16352 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16353 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16354 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16355 if test -z "$tmp_exp" || test "$tmp_exp" = "__GNUC__"; then
16360 rm -f conftest.err conftest.i conftest.$ac_ext
16361 if test -z "$tmp_exp"; then
16362 curl_cv_have_def___GNUC__=no
16365 curl_cv_have_def___GNUC__=yes
16366 curl_cv_def___GNUC__=$tmp_exp
16371 if test -z "$SED"; then
16372 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16374 if test -z "$GREP"; then
16375 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16380 /* end confdefs.h. */
16384 CURL_DEF_TOKEN __sgi
16389 if ac_fn_c_try_cpp "$LINENO"; then :
16391 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16392 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16393 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16394 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16395 if test -z "$tmp_exp" || test "$tmp_exp" = "__sgi"; then
16400 rm -f conftest.err conftest.i conftest.$ac_ext
16401 if test -z "$tmp_exp"; then
16402 curl_cv_have_def___sgi=no
16405 curl_cv_have_def___sgi=yes
16406 curl_cv_def___sgi=$tmp_exp
16410 if test "$curl_cv_have_def___GNUC__" = "no" &&
16411 test "$curl_cv_have_def___sgi" = "yes" &&
16412 test "$compiler_id" = "unknown"; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16414 $as_echo "yes" >&6; }
16415 compiler_id="SGI_MIPS_C"
16416 flags_dbg_all="-g -g0 -g1 -g2 -g3"
16419 flags_opt_all="-O -O0 -O1 -O2 -O3 -Ofast"
16420 flags_opt_yes="-O2"
16421 flags_opt_off="-O0"
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16424 $as_echo "no" >&6; }
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is SunPro C" >&5
16429 $as_echo_n "checking if compiler is SunPro C... " >&6; }
16431 if test -z "$SED"; then
16432 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16434 if test -z "$GREP"; then
16435 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16440 /* end confdefs.h. */
16444 CURL_DEF_TOKEN __SUNPRO_C
16449 if ac_fn_c_try_cpp "$LINENO"; then :
16451 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16452 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16453 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16454 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16455 if test -z "$tmp_exp" || test "$tmp_exp" = "__SUNPRO_C"; then
16460 rm -f conftest.err conftest.i conftest.$ac_ext
16461 if test -z "$tmp_exp"; then
16462 curl_cv_have_def___SUNPRO_C=no
16465 curl_cv_have_def___SUNPRO_C=yes
16466 curl_cv_def___SUNPRO_C=$tmp_exp
16470 if test "$curl_cv_have_def___SUNPRO_C" = "yes"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16472 $as_echo "yes" >&6; }
16473 compiler_id="SUNPRO_C"
16474 flags_dbg_all="-g -s"
16477 flags_opt_all="-O -xO -xO1 -xO2 -xO3 -xO4 -xO5"
16478 flags_opt_yes="-xO2"
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16482 $as_echo "no" >&6; }
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Tiny C" >&5
16487 $as_echo_n "checking if compiler is Tiny C... " >&6; }
16489 if test -z "$SED"; then
16490 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16492 if test -z "$GREP"; then
16493 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16498 /* end confdefs.h. */
16502 CURL_DEF_TOKEN __TINYC__
16507 if ac_fn_c_try_cpp "$LINENO"; then :
16509 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16510 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16511 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16512 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16513 if test -z "$tmp_exp" || test "$tmp_exp" = "__TINYC__"; then
16518 rm -f conftest.err conftest.i conftest.$ac_ext
16519 if test -z "$tmp_exp"; then
16520 curl_cv_have_def___TINYC__=no
16523 curl_cv_have_def___TINYC__=yes
16524 curl_cv_def___TINYC__=$tmp_exp
16528 if test "$curl_cv_have_def___TINYC__" = "yes"; then
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16530 $as_echo "yes" >&6; }
16531 compiler_id="TINY_C"
16532 flags_dbg_all="-g -b"
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16540 $as_echo "no" >&6; }
16544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler is Watcom C" >&5
16545 $as_echo_n "checking if compiler is Watcom C... " >&6; }
16547 if test -z "$SED"; then
16548 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16550 if test -z "$GREP"; then
16551 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16556 /* end confdefs.h. */
16560 CURL_DEF_TOKEN __WATCOMC__
16565 if ac_fn_c_try_cpp "$LINENO"; then :
16567 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16568 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16569 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16570 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16571 if test -z "$tmp_exp" || test "$tmp_exp" = "__WATCOMC__"; then
16576 rm -f conftest.err conftest.i conftest.$ac_ext
16577 if test -z "$tmp_exp"; then
16578 curl_cv_have_def___WATCOMC__=no
16581 curl_cv_have_def___WATCOMC__=yes
16582 curl_cv_def___WATCOMC__=$tmp_exp
16586 if test "$curl_cv_have_def___WATCOMC__" = "yes"; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16588 $as_echo "yes" >&6; }
16590 if test -z "$SED"; then
16591 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
16593 if test -z "$GREP"; then
16594 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
16598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16599 /* end confdefs.h. */
16603 CURL_DEF_TOKEN __UNIX__
16608 if ac_fn_c_try_cpp "$LINENO"; then :
16610 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
16611 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
16612 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
16613 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
16614 if test -z "$tmp_exp" || test "$tmp_exp" = "__UNIX__"; then
16619 rm -f conftest.err conftest.i conftest.$ac_ext
16620 if test -z "$tmp_exp"; then
16621 curl_cv_have_def___UNIX__=no
16624 curl_cv_have_def___UNIX__=yes
16625 curl_cv_def___UNIX__=$tmp_exp
16629 if test "$curl_cv_have_def___UNIX__" = "yes"; then
16630 compiler_id="WATCOM_UNIX_C"
16631 flags_dbg_all="-g1 -g1+ -g2 -g3"
16632 flags_dbg_yes="-g2"
16634 flags_opt_all="-O0 -O1 -O2 -O3"
16635 flags_opt_yes="-O2"
16636 flags_opt_off="-O0"
16638 compiler_id="WATCOM_WINDOWS_C"
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16652 if test "$compiler_id" = "unknown"; then
16655 *** Warning: This configure script does not have information about the
16656 *** compiler you are using, relative to the flags required to enable or
16657 *** disable generation of debug info, optimization options or warnings.
16659 *** Whatever settings are present in CFLAGS will be used for this run.
16661 *** If you wish to help the cURL project to better support your compiler
16662 *** you can report this and the required info on the libcurl development
16663 *** mailing list: http://cool.haxx.se/mailman/listinfo/curl-library/
16671 eval _sqz_input=\$$1
16672 for _sqz_token in $_sqz_input; do
16673 if test -z "$_sqz_result"; then
16674 _sqz_result="$_sqz_token"
16676 _sqz_result="$_sqz_result $_sqz_token"
16679 eval $1=\$_sqz_result
16685 if test "$compiler_id" != "unknown"; then
16687 if test "$compiler_id" = "GNU_C" ||
16688 test "$compiler_id" = "CLANG"; then
16690 if test "$compiler_id" = "GNU_C" ||
16691 test "$compiler_id" = "CLANG"; then
16692 tmp_has_include="no"
16693 tmp_chg_FLAGS="$CFLAGS"
16694 for word1 in $tmp_chg_FLAGS; do
16697 tmp_has_include="yes"
16701 if test "$tmp_has_include" = "yes"; then
16702 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16703 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16704 CFLAGS="$tmp_chg_FLAGS"
16707 tmp_has_include="no"
16708 tmp_chg_FLAGS="$CPPFLAGS"
16709 for word1 in $tmp_chg_FLAGS; do
16712 tmp_has_include="yes"
16716 if test "$tmp_has_include" = "yes"; then
16717 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/^-I/ -isystem /g'`
16718 tmp_chg_FLAGS=`echo "$tmp_chg_FLAGS" | "$SED" 's/ -I/ -isystem /g'`
16719 CPPFLAGS="$tmp_chg_FLAGS"
16726 tmp_save_CPPFLAGS="$CPPFLAGS"
16727 tmp_save_CFLAGS="$CFLAGS"
16731 case "$compiler_id" in
16735 tmp_CFLAGS="$tmp_CFLAGS -Qunused-arguments"
16740 tmp_CFLAGS="$tmp_CFLAGS -std1"
16741 tmp_CFLAGS="$tmp_CFLAGS -noansi_alias"
16742 tmp_CFLAGS="$tmp_CFLAGS -warnprotos"
16743 tmp_CFLAGS="$tmp_CFLAGS -msg_fatal toofewargs,toomanyargs"
16748 tmp_CFLAGS="$tmp_CFLAGS"
16753 tmp_CFLAGS="$tmp_CFLAGS -z"
16754 tmp_CFLAGS="$tmp_CFLAGS +W 4227,4255"
16759 tmp_CPPFLAGS="$tmp_CPPFLAGS -qthreaded"
16760 tmp_CPPFLAGS="$tmp_CPPFLAGS -qnoansialias"
16761 tmp_CPPFLAGS="$tmp_CPPFLAGS -qhalt=e"
16766 tmp_CFLAGS="$tmp_CFLAGS -std=gnu89"
16767 tmp_CPPFLAGS="$tmp_CPPFLAGS -we140,147,165,266"
16768 tmp_CPPFLAGS="$tmp_CPPFLAGS -wd279,981,1469"
16773 tmp_CFLAGS="$tmp_CFLAGS"
16778 tmp_CFLAGS="$tmp_CFLAGS -n"
16783 tmp_CFLAGS="$tmp_CFLAGS"
16788 tmp_CFLAGS="$tmp_CFLAGS"
16793 tmp_CFLAGS="$tmp_CFLAGS"
16798 tmp_CFLAGS="$tmp_CFLAGS"
16803 tmp_CFLAGS="$tmp_CFLAGS"
16808 tmp_CFLAGS="$tmp_CFLAGS"
16813 squeeze tmp_CPPFLAGS
16816 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts some basic options" >&5
16818 $as_echo_n "checking if compiler accepts some basic options... " >&6; }
16819 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
16820 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
16824 tmp_compiler_works="unknown"
16825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16826 /* end confdefs.h. */
16841 if ac_fn_c_try_compile "$LINENO"; then :
16843 tmp_compiler_works="yes"
16847 tmp_compiler_works="no"
16849 sed 's/^/cc-fail: /' conftest.err >&6
16853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16854 if test "$tmp_compiler_works" = "yes"; then
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16871 if ac_fn_c_try_link "$LINENO"; then :
16873 tmp_compiler_works="yes"
16877 tmp_compiler_works="no"
16879 sed 's/^/link-fail: /' conftest.err >&6
16883 rm -f core conftest.err conftest.$ac_objext \
16884 conftest$ac_exeext conftest.$ac_ext
16886 if test "x$cross_compiling" != "xyes" &&
16887 test "$tmp_compiler_works" = "yes"; then
16888 if test "$cross_compiling" = yes; then :
16889 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16890 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16891 as_fn_error $? "cannot run test program while cross compiling
16892 See \`config.log' for more details" "$LINENO" 5; }
16894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16895 /* end confdefs.h. */
16899 # include <stdlib.h>
16913 if ac_fn_c_try_run "$LINENO"; then :
16915 tmp_compiler_works="yes"
16919 tmp_compiler_works="no"
16921 echo "run-fail: test program exited with status $ac_status" >&6
16925 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16926 conftest.$ac_objext conftest.beam conftest.$ac_ext
16930 if test "$tmp_compiler_works" = "yes"; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16933 $as_echo "yes" >&6; }
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16935 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16940 $as_echo "no" >&6; }
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
16942 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
16943 CPPFLAGS="$tmp_save_CPPFLAGS"
16944 CFLAGS="$tmp_save_CFLAGS"
16954 if test "$compiler_id" != "unknown"; then
16956 tmp_save_CFLAGS="$CFLAGS"
16957 tmp_save_CPPFLAGS="$CPPFLAGS"
16960 tmp_CFLAGS="$CFLAGS"
16961 tmp_CPPFLAGS="$CPPFLAGS"
16964 for word1 in $tmp_CFLAGS; do
16965 ac_var_strip_word="no"
16966 for word2 in $flags_dbg_all; do
16967 if test "$word1" = "$word2"; then
16968 ac_var_strip_word="yes"
16971 if test "$ac_var_strip_word" = "no"; then
16972 ac_var_stripped="$ac_var_stripped $word1"
16975 tmp_CFLAGS="$ac_var_stripped"
16980 for word1 in $tmp_CPPFLAGS; do
16981 ac_var_strip_word="no"
16982 for word2 in $flags_dbg_all; do
16983 if test "$word1" = "$word2"; then
16984 ac_var_strip_word="yes"
16987 if test "$ac_var_strip_word" = "no"; then
16988 ac_var_stripped="$ac_var_stripped $word1"
16991 tmp_CPPFLAGS="$ac_var_stripped"
16992 squeeze tmp_CPPFLAGS
16995 if test "$want_debug" = "yes"; then
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug enabling options" >&5
16997 $as_echo_n "checking if compiler accepts debug enabling options... " >&6; }
16998 tmp_options="$flags_dbg_yes"
17000 if test "$want_debug" = "no"; then
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts debug disabling options" >&5
17002 $as_echo_n "checking if compiler accepts debug disabling options... " >&6; }
17003 tmp_options="$flags_dbg_off"
17006 if test "$flags_prefer_cppflags" = "yes"; then
17007 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17008 CFLAGS="$tmp_CFLAGS"
17010 CPPFLAGS="$tmp_CPPFLAGS"
17011 CFLAGS="$tmp_CFLAGS $tmp_options"
17016 tmp_compiler_works="unknown"
17017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17018 /* end confdefs.h. */
17033 if ac_fn_c_try_compile "$LINENO"; then :
17035 tmp_compiler_works="yes"
17039 tmp_compiler_works="no"
17041 sed 's/^/cc-fail: /' conftest.err >&6
17045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17046 if test "$tmp_compiler_works" = "yes"; then
17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048 /* end confdefs.h. */
17063 if ac_fn_c_try_link "$LINENO"; then :
17065 tmp_compiler_works="yes"
17069 tmp_compiler_works="no"
17071 sed 's/^/link-fail: /' conftest.err >&6
17075 rm -f core conftest.err conftest.$ac_objext \
17076 conftest$ac_exeext conftest.$ac_ext
17078 if test "x$cross_compiling" != "xyes" &&
17079 test "$tmp_compiler_works" = "yes"; then
17080 if test "$cross_compiling" = yes; then :
17081 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17082 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17083 as_fn_error $? "cannot run test program while cross compiling
17084 See \`config.log' for more details" "$LINENO" 5; }
17086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17087 /* end confdefs.h. */
17091 # include <stdlib.h>
17105 if ac_fn_c_try_run "$LINENO"; then :
17107 tmp_compiler_works="yes"
17111 tmp_compiler_works="no"
17113 echo "run-fail: test program exited with status $ac_status" >&6
17117 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17118 conftest.$ac_objext conftest.beam conftest.$ac_ext
17122 if test "$tmp_compiler_works" = "yes"; then
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17125 $as_echo "yes" >&6; }
17126 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17127 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17132 $as_echo "no" >&6; }
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17134 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17135 CPPFLAGS="$tmp_save_CPPFLAGS"
17136 CFLAGS="$tmp_save_CFLAGS"
17145 if test "$compiler_id" != "unknown"; then
17147 tmp_save_CFLAGS="$CFLAGS"
17148 tmp_save_CPPFLAGS="$CPPFLAGS"
17151 tmp_CFLAGS="$CFLAGS"
17152 tmp_CPPFLAGS="$CPPFLAGS"
17153 honor_optimize_option="yes"
17156 if test "$want_optimize" = "assume_no" ||
17157 test "$want_optimize" = "assume_yes"; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler optimizer assumed setting might be used" >&5
17159 $as_echo_n "checking if compiler optimizer assumed setting might be used... " >&6; }
17162 ac_var_match_word="no"
17163 for word1 in $tmp_CFLAGS; do
17164 for word2 in $flags_opt_all; do
17165 if test "$word1" = "$word2"; then
17166 ac_var_match_word="yes"
17171 if test "$ac_var_match_word" = "yes"; then
17173 honor_optimize_option="no"
17180 ac_var_match_word="no"
17181 for word1 in $tmp_CPPFLAGS; do
17182 for word2 in $flags_opt_all; do
17183 if test "$word1" = "$word2"; then
17184 ac_var_match_word="yes"
17189 if test "$ac_var_match_word" = "yes"; then
17191 honor_optimize_option="no"
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $honor_optimize_option" >&5
17197 $as_echo "$honor_optimize_option" >&6; }
17198 if test "$honor_optimize_option" = "yes"; then
17199 if test "$want_optimize" = "assume_yes"; then
17200 want_optimize="yes"
17202 if test "$want_optimize" = "assume_no"; then
17208 if test "$honor_optimize_option" = "yes"; then
17211 for word1 in $tmp_CFLAGS; do
17212 ac_var_strip_word="no"
17213 for word2 in $flags_opt_all; do
17214 if test "$word1" = "$word2"; then
17215 ac_var_strip_word="yes"
17218 if test "$ac_var_strip_word" = "no"; then
17219 ac_var_stripped="$ac_var_stripped $word1"
17222 tmp_CFLAGS="$ac_var_stripped"
17227 for word1 in $tmp_CPPFLAGS; do
17228 ac_var_strip_word="no"
17229 for word2 in $flags_opt_all; do
17230 if test "$word1" = "$word2"; then
17231 ac_var_strip_word="yes"
17234 if test "$ac_var_strip_word" = "no"; then
17235 ac_var_stripped="$ac_var_stripped $word1"
17238 tmp_CPPFLAGS="$ac_var_stripped"
17239 squeeze tmp_CPPFLAGS
17241 if test "$want_optimize" = "yes"; then
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer enabling options" >&5
17243 $as_echo_n "checking if compiler accepts optimizer enabling options... " >&6; }
17244 tmp_options="$flags_opt_yes"
17246 if test "$want_optimize" = "no"; then
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts optimizer disabling options" >&5
17248 $as_echo_n "checking if compiler accepts optimizer disabling options... " >&6; }
17249 tmp_options="$flags_opt_off"
17251 if test "$flags_prefer_cppflags" = "yes"; then
17252 CPPFLAGS="$tmp_CPPFLAGS $tmp_options"
17253 CFLAGS="$tmp_CFLAGS"
17255 CPPFLAGS="$tmp_CPPFLAGS"
17256 CFLAGS="$tmp_CFLAGS $tmp_options"
17261 tmp_compiler_works="unknown"
17262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17263 /* end confdefs.h. */
17278 if ac_fn_c_try_compile "$LINENO"; then :
17280 tmp_compiler_works="yes"
17284 tmp_compiler_works="no"
17286 sed 's/^/cc-fail: /' conftest.err >&6
17290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17291 if test "$tmp_compiler_works" = "yes"; then
17292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17293 /* end confdefs.h. */
17308 if ac_fn_c_try_link "$LINENO"; then :
17310 tmp_compiler_works="yes"
17314 tmp_compiler_works="no"
17316 sed 's/^/link-fail: /' conftest.err >&6
17320 rm -f core conftest.err conftest.$ac_objext \
17321 conftest$ac_exeext conftest.$ac_ext
17323 if test "x$cross_compiling" != "xyes" &&
17324 test "$tmp_compiler_works" = "yes"; then
17325 if test "$cross_compiling" = yes; then :
17326 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17327 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17328 as_fn_error $? "cannot run test program while cross compiling
17329 See \`config.log' for more details" "$LINENO" 5; }
17331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17332 /* end confdefs.h. */
17336 # include <stdlib.h>
17350 if ac_fn_c_try_run "$LINENO"; then :
17352 tmp_compiler_works="yes"
17356 tmp_compiler_works="no"
17358 echo "run-fail: test program exited with status $ac_status" >&6
17362 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17363 conftest.$ac_objext conftest.beam conftest.$ac_ext
17367 if test "$tmp_compiler_works" = "yes"; then
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17370 $as_echo "yes" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_options" >&5
17372 $as_echo "$as_me: compiler options added: $tmp_options" >&6;}
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17377 $as_echo "no" >&6; }
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_options" >&5
17379 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_options" >&2;}
17380 CPPFLAGS="$tmp_save_CPPFLAGS"
17381 CFLAGS="$tmp_save_CFLAGS"
17391 if test "$compiler_id" != "unknown"; then
17393 tmp_save_CPPFLAGS="$CPPFLAGS"
17394 tmp_save_CFLAGS="$CFLAGS"
17398 case "$compiler_id" in
17402 if test "$want_warnings" = "yes"; then
17403 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17404 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17405 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17406 tmp_CFLAGS="$tmp_CFLAGS -Wshadow"
17407 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17408 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17409 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17410 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17411 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17412 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17413 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17414 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17415 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17416 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17417 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17418 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17419 tmp_CFLAGS="$tmp_CFLAGS -Wshorten-64-to-32"
17421 if test "$compiler_num" -ge "101"; then
17422 tmp_CFLAGS="$tmp_CFLAGS -Wunused"
17429 if test "$want_warnings" = "yes"; then
17430 tmp_CFLAGS="$tmp_CFLAGS -msg_enable level3"
17436 if test "$want_warnings" = "yes"; then
17438 if test "x$cross_compiling" != "xyes" ||
17439 test "$compiler_num" -ge "300"; then
17440 tmp_CFLAGS="$tmp_CFLAGS -pedantic"
17443 tmp_CFLAGS="$tmp_CFLAGS -Wall -W"
17445 if test "$compiler_num" -ge "104"; then
17446 tmp_CFLAGS="$tmp_CFLAGS -Wpointer-arith -Wwrite-strings"
17447 if test "x$cross_compiling" != "xyes" ||
17448 test "$compiler_num" -ge "300"; then
17449 tmp_CFLAGS="$tmp_CFLAGS -Wunused -Wshadow"
17453 if test "$compiler_num" -ge "207"; then
17454 tmp_CFLAGS="$tmp_CFLAGS -Winline -Wnested-externs"
17455 if test "x$cross_compiling" != "xyes" ||
17456 test "$compiler_num" -ge "300"; then
17457 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-declarations"
17458 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-prototypes"
17462 if test "$compiler_num" -ge "295"; then
17463 tmp_CFLAGS="$tmp_CFLAGS -Wno-long-long"
17466 if test "$compiler_num" -ge "296"; then
17467 tmp_CFLAGS="$tmp_CFLAGS -Wfloat-equal"
17468 tmp_CFLAGS="$tmp_CFLAGS -Wno-multichar -Wsign-compare"
17469 tmp_CFLAGS="$tmp_CFLAGS -Wundef"
17472 if test "$compiler_num" -ge "297"; then
17473 tmp_CFLAGS="$tmp_CFLAGS -Wno-format-nonliteral"
17476 if test "$compiler_num" -ge "300"; then
17477 tmp_CFLAGS="$tmp_CFLAGS"
17480 if test "$compiler_num" -ge "303"; then
17481 tmp_CFLAGS="$tmp_CFLAGS -Wendif-labels -Wstrict-prototypes"
17484 if test "$compiler_num" -ge "304"; then
17485 tmp_CFLAGS="$tmp_CFLAGS -Wdeclaration-after-statement"
17488 if test "$compiler_num" -ge "400"; then
17489 tmp_CFLAGS="$tmp_CFLAGS -Wstrict-aliasing=3"
17492 if test "$compiler_num" -ge "402"; then
17493 tmp_CFLAGS="$tmp_CFLAGS -Wcast-align"
17496 if test "$compiler_num" -ge "403"; then
17497 tmp_CFLAGS="$tmp_CFLAGS -Wtype-limits -Wold-style-declaration"
17498 tmp_CFLAGS="$tmp_CFLAGS -Wmissing-parameter-type -Wempty-body"
17499 tmp_CFLAGS="$tmp_CFLAGS -Wclobbered -Wignored-qualifiers"
17500 tmp_CFLAGS="$tmp_CFLAGS -Wconversion -Wno-sign-conversion -Wvla"
17503 if test "$compiler_num" -ge "405"; then
17504 if test "$curl_cv_have_def__WIN32" = "yes"; then
17505 tmp_CFLAGS="$tmp_CFLAGS -Wno-pedantic-ms-format"
17511 if test "$compiler_num" -ge "300"; then
17512 tmp_CFLAGS="$tmp_CFLAGS -Wno-system-headers"
17514 if test "x$cross_compiling" = "xyes"; then
17515 if test "$compiler_num" -ge "104"; then
17516 tmp_CFLAGS="$tmp_CFLAGS -Wno-unused -Wno-shadow"
17518 if test "$compiler_num" -ge "207"; then
17519 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-declarations"
17520 tmp_CFLAGS="$tmp_CFLAGS -Wno-missing-prototypes"
17528 if test "$want_warnings" = "yes"; then
17529 tmp_CFLAGS="$tmp_CFLAGS +w1"
17535 tmp_CFLAGS="$tmp_CFLAGS"
17540 if test "$want_warnings" = "yes"; then
17541 if test "$compiler_num" -gt "600"; then
17542 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wall -w2"
17543 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcheck"
17544 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wcomment"
17545 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wdeprecated"
17546 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wmissing-prototypes"
17547 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wp64"
17548 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wpointer-arith"
17549 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wreturn-type"
17550 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wshadow"
17551 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wuninitialized"
17552 tmp_CPPFLAGS="$tmp_CPPFLAGS -Wunused-function"
17555 tmp_CFLAGS="$tmp_CFLAGS -fno-omit-frame-pointer"
17556 tmp_CFLAGS="$tmp_CFLAGS -fno-strict-aliasing"
17557 tmp_CFLAGS="$tmp_CFLAGS -fp-model precise"
17558 if test "$compiler_num" -ge "1000"; then
17559 tmp_CFLAGS="$tmp_CFLAGS -vec-report0"
17565 tmp_CFLAGS="$tmp_CFLAGS"
17570 if test "$want_warnings" = "yes"; then
17571 tmp_CFLAGS="$tmp_CFLAGS"
17577 if test "$want_warnings" = "yes"; then
17578 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17584 if test "$want_warnings" = "yes"; then
17585 tmp_CFLAGS="$tmp_CFLAGS -fullwarn"
17586 tmp_CFLAGS="$tmp_CFLAGS -woff 1209"
17592 if test "$want_warnings" = "yes"; then
17593 tmp_CFLAGS="$tmp_CFLAGS -v"
17599 if test "$want_warnings" = "yes"; then
17600 tmp_CFLAGS="$tmp_CFLAGS -Wall"
17601 tmp_CFLAGS="$tmp_CFLAGS -Wwrite-strings"
17602 tmp_CFLAGS="$tmp_CFLAGS -Wunsupported"
17608 if test "$want_warnings" = "yes"; then
17609 tmp_CFLAGS="$tmp_CFLAGS -Wall -Wextra"
17615 tmp_CFLAGS="$tmp_CFLAGS"
17620 squeeze tmp_CPPFLAGS
17623 if test ! -z "$tmp_CFLAGS" || test ! -z "$tmp_CPPFLAGS"; then
17624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler accepts strict warning options" >&5
17625 $as_echo_n "checking if compiler accepts strict warning options... " >&6; }
17626 CPPFLAGS="$tmp_save_CPPFLAGS $tmp_CPPFLAGS"
17627 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17631 tmp_compiler_works="unknown"
17632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17633 /* end confdefs.h. */
17648 if ac_fn_c_try_compile "$LINENO"; then :
17650 tmp_compiler_works="yes"
17654 tmp_compiler_works="no"
17656 sed 's/^/cc-fail: /' conftest.err >&6
17660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17661 if test "$tmp_compiler_works" = "yes"; then
17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17678 if ac_fn_c_try_link "$LINENO"; then :
17680 tmp_compiler_works="yes"
17684 tmp_compiler_works="no"
17686 sed 's/^/link-fail: /' conftest.err >&6
17690 rm -f core conftest.err conftest.$ac_objext \
17691 conftest$ac_exeext conftest.$ac_ext
17693 if test "x$cross_compiling" != "xyes" &&
17694 test "$tmp_compiler_works" = "yes"; then
17695 if test "$cross_compiling" = yes; then :
17696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17698 as_fn_error $? "cannot run test program while cross compiling
17699 See \`config.log' for more details" "$LINENO" 5; }
17701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17702 /* end confdefs.h. */
17706 # include <stdlib.h>
17720 if ac_fn_c_try_run "$LINENO"; then :
17722 tmp_compiler_works="yes"
17726 tmp_compiler_works="no"
17728 echo "run-fail: test program exited with status $ac_status" >&6
17732 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17733 conftest.$ac_objext conftest.beam conftest.$ac_ext
17737 if test "$tmp_compiler_works" = "yes"; then
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17740 $as_echo "yes" >&6; }
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17742 $as_echo "$as_me: compiler options added: $tmp_CFLAGS $tmp_CPPFLAGS" >&6;}
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17747 $as_echo "no" >&6; }
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&5
17749 $as_echo "$as_me: WARNING: compiler options rejected: $tmp_CFLAGS $tmp_CPPFLAGS" >&2;}
17750 CPPFLAGS="$tmp_save_CPPFLAGS"
17751 CFLAGS="$tmp_save_CFLAGS"
17760 if test "$compiler_id" = "INTEL_UNIX_C"; then
17762 if test "$compiler_num" -ge "1000"; then
17763 CFLAGS="$CFLAGS -shared-intel"
17764 elif test "$compiler_num" -ge "900"; then
17765 CFLAGS="$CFLAGS -i-dynamic"
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on compilation errors" >&5
17772 $as_echo_n "checking if compiler halts on compilation errors... " >&6; }
17773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17774 /* end confdefs.h. */
17781 force compilation error
17788 if ac_fn_c_try_compile "$LINENO"; then :
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17791 $as_echo "no" >&6; }
17792 as_fn_error $? "compiler does not halt on compilation errors." "$LINENO" 5
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17797 $as_echo "yes" >&6; }
17800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on negative sized arrays" >&5
17804 $as_echo_n "checking if compiler halts on negative sized arrays... " >&6; }
17805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17806 /* end confdefs.h. */
17809 typedef char bad_t[sizeof(char) == sizeof(int) ? -1 : -1 ];
17821 if ac_fn_c_try_compile "$LINENO"; then :
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824 $as_echo "no" >&6; }
17825 as_fn_error $? "compiler does not halt on negative sized arrays." "$LINENO" 5
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17830 $as_echo "yes" >&6; }
17833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler halts on function prototype mismatch" >&5
17837 $as_echo_n "checking if compiler halts on function prototype mismatch... " >&6; }
17838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17839 /* end confdefs.h. */
17842 # include <stdlib.h>
17856 int j = rand(i[0]);
17865 if ac_fn_c_try_compile "$LINENO"; then :
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17868 $as_echo "no" >&6; }
17869 as_fn_error $? "compiler does not halt on function prototype mismatch." "$LINENO" 5
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17874 $as_echo "yes" >&6; }
17877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports hiding library internal symbols" >&5
17881 $as_echo_n "checking if compiler supports hiding library internal symbols... " >&6; }
17882 supports_symbol_hiding="no"
17883 symbol_hiding_CFLAGS=""
17884 symbol_hiding_EXTERN=""
17887 case "$compiler_id" in
17889 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17890 tmp_CFLAGS="-fvisibility=hidden"
17891 supports_symbol_hiding="yes"
17894 if test "$compiler_num" -ge "304"; then
17895 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17896 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17897 tmp_CFLAGS="-fvisibility=hidden"
17898 supports_symbol_hiding="yes"
17903 if test "$compiler_num" -ge "900"; then
17904 if $CC --help --verbose 2>&1 | grep fvisibility= > /dev/null ; then
17905 tmp_save_CFLAGS="$CFLAGS"
17906 CFLAGS="$CFLAGS -fvisibility=hidden"
17907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17908 /* end confdefs.h. */
17911 # include <stdio.h>
17916 printf("icc fvisibility bug test");
17923 if ac_fn_c_try_link "$LINENO"; then :
17925 tmp_EXTERN="__attribute__ ((__visibility__ (\"default\")))"
17926 tmp_CFLAGS="-fvisibility=hidden"
17927 supports_symbol_hiding="yes"
17930 rm -f core conftest.err conftest.$ac_objext \
17931 conftest$ac_exeext conftest.$ac_ext
17932 CFLAGS="$tmp_save_CFLAGS"
17937 if $CC 2>&1 | grep flags >/dev/null && $CC -flags | grep xldscope= >/dev/null ; then
17938 tmp_EXTERN="__global"
17939 tmp_CFLAGS="-xldscope=hidden"
17940 supports_symbol_hiding="yes"
17944 if test "$supports_symbol_hiding" = "yes"; then
17945 tmp_save_CFLAGS="$CFLAGS"
17946 CFLAGS="$tmp_save_CFLAGS $tmp_CFLAGS"
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17952 $tmp_EXTERN char *dummy(char *buff);
17953 char *dummy(char *buff)
17965 char *r = dummy(&b[0]);
17974 if ac_fn_c_try_compile "$LINENO"; then :
17976 supports_symbol_hiding="yes"
17977 if test -f conftest.err; then
17978 grep 'visibility' conftest.err >/dev/null
17979 if test "$?" -eq "0"; then
17980 supports_symbol_hiding="no"
17986 supports_symbol_hiding="no"
17988 sed 's/^/cc-src: /' conftest.$ac_ext >&6
17989 sed 's/^/cc-err: /' conftest.err >&6
17993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17994 CFLAGS="$tmp_save_CFLAGS"
17996 if test "$supports_symbol_hiding" = "yes"; then
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17998 $as_echo "yes" >&6; }
17999 symbol_hiding_CFLAGS="$tmp_CFLAGS"
18000 symbol_hiding_EXTERN="$tmp_EXTERN"
18002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18003 $as_echo "no" >&6; }
18008 supports_curldebug="unknown"
18009 if test "$want_curldebug" = "yes"; then
18010 if test "x$enable_shared" != "xno" &&
18011 test "x$enable_shared" != "xyes"; then
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_shared setting." >&5
18013 $as_echo "$as_me: WARNING: unknown enable_shared setting." >&2;}
18014 supports_curldebug="no"
18016 if test "x$enable_static" != "xno" &&
18017 test "x$enable_static" != "xyes"; then
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown enable_static setting." >&5
18019 $as_echo "$as_me: WARNING: unknown enable_static setting." >&2;}
18020 supports_curldebug="no"
18022 if test "$supports_curldebug" != "no"; then
18023 if test "$enable_shared" = "yes" &&
18024 test "x$xc_lt_shlib_use_no_undefined" = 'xyes'; then
18025 supports_curldebug="no"
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: shared library does not support undefined symbols." >&5
18027 $as_echo "$as_me: WARNING: shared library does not support undefined symbols." >&2;}
18032 if test "$want_curldebug" = "yes"; then
18033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if curl debug memory tracking can be enabled" >&5
18034 $as_echo_n "checking if curl debug memory tracking can be enabled... " >&6; }
18035 test "$supports_curldebug" = "no" || supports_curldebug="yes"
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $supports_curldebug" >&5
18037 $as_echo "$supports_curldebug" >&6; }
18038 if test "$supports_curldebug" = "no"; then
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot enable curl debug memory tracking." >&5
18040 $as_echo "$as_me: WARNING: cannot enable curl debug memory tracking." >&2;}
18041 want_curldebug="no"
18045 if test "$want_curldebug" = "yes"; then
18046 CPPFLAGS="-DCURLDEBUG $CPPFLAGS"
18049 if test "$want_debug" = "yes"; then
18050 CPPFLAGS="-DDEBUGBUILD $CPPFLAGS"
18054 if test x$want_curldebug = xyes; then
18056 CURLDEBUG_FALSE='#'
18063 supports_unittests=yes
18064 # cross-compilation of unit tests static library/programs fails when
18065 # libcurl shared library is built. This might be due to a libtool or
18066 # automake issue. In this case we disable unit tests.
18067 if test "x$cross_compiling" != "xno" &&
18068 test "x$enable_shared" != "xno"; then
18069 supports_unittests=no
18072 # IRIX 6.5.24 gcc 3.3 autobuilds fail unittests library compilation due to
18073 # a problem related with OpenSSL headers and library versions not matching.
18074 # Disable unit tests while time to further investigate this is found.
18077 if test "$compiler_id" = "GNU_C"; then
18078 supports_unittests=no
18083 # All AIX autobuilds fails unit tests linking against unittests library
18084 # due to unittests library being built with no symbols or members. Libtool ?
18085 # Disable unit tests while time to further investigate this is found.
18088 supports_unittests=no
18092 if test "x$want_debug" = "xyes" &&
18093 test "x$supports_unittests" = "xyes"; then
18098 if test x$want_unittests = xyes; then
18099 BUILD_UNITTESTS_TRUE=
18100 BUILD_UNITTESTS_FALSE='#'
18102 BUILD_UNITTESTS_TRUE='#'
18103 BUILD_UNITTESTS_FALSE=
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
18111 $as_echo_n "checking for windows.h... " >&6; }
18112 if ${ac_cv_header_windows_h+:} false; then :
18113 $as_echo_n "(cached) " >&6
18116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18117 /* end confdefs.h. */
18121 #ifndef WIN32_LEAN_AND_MEAN
18122 #define WIN32_LEAN_AND_MEAN
18124 #include <windows.h>
18129 #if defined(__CYGWIN__) || defined(__CEGCC__)
18130 HAVE_WINDOWS_H shall not be defined.
18132 int dummy=2*WINVER;
18140 if ac_fn_c_try_compile "$LINENO"; then :
18142 ac_cv_header_windows_h="yes"
18146 ac_cv_header_windows_h="no"
18149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
18153 $as_echo "$ac_cv_header_windows_h" >&6; }
18154 case "$ac_cv_header_windows_h" in
18157 cat >>confdefs.h <<_ACEOF
18158 #define HAVE_WINDOWS_H 1
18162 cat >>confdefs.h <<_ACEOF
18163 #define WIN32_LEAN_AND_MEAN 1
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target is a native Windows one" >&5
18171 $as_echo_n "checking whether build target is a native Windows one... " >&6; }
18172 if ${ac_cv_native_windows+:} false; then :
18173 $as_echo_n "(cached) " >&6
18176 if test "$ac_cv_header_windows_h" = "no"; then
18177 ac_cv_native_windows="no"
18179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18180 /* end confdefs.h. */
18187 #if defined(__MINGW32__) || defined(__MINGW32CE__) || \
18188 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64)))
18191 Not a native Windows build target.
18199 if ac_fn_c_try_compile "$LINENO"; then :
18201 ac_cv_native_windows="yes"
18205 ac_cv_native_windows="no"
18208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_native_windows" >&5
18213 $as_echo "$ac_cv_native_windows" >&6; }
18214 if test "x$ac_cv_native_windows" = xyes; then
18215 DOING_NATIVE_WINDOWS_TRUE=
18216 DOING_NATIVE_WINDOWS_FALSE='#'
18218 DOING_NATIVE_WINDOWS_TRUE='#'
18219 DOING_NATIVE_WINDOWS_FALSE=
18223 case X-"$ac_cv_native_windows" in
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
18227 $as_echo_n "checking for winsock.h... " >&6; }
18228 if ${ac_cv_header_winsock_h+:} false; then :
18229 $as_echo_n "(cached) " >&6
18232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18233 /* end confdefs.h. */
18237 #ifndef WIN32_LEAN_AND_MEAN
18238 #define WIN32_LEAN_AND_MEAN
18240 #include <windows.h>
18241 #include <winsock.h>
18246 #if defined(__CYGWIN__) || defined(__CEGCC__)
18247 HAVE_WINSOCK_H shall not be defined.
18249 int dummy=WSACleanup();
18257 if ac_fn_c_try_compile "$LINENO"; then :
18259 ac_cv_header_winsock_h="yes"
18263 ac_cv_header_winsock_h="no"
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
18270 $as_echo "$ac_cv_header_winsock_h" >&6; }
18271 case "$ac_cv_header_winsock_h" in
18274 cat >>confdefs.h <<_ACEOF
18275 #define HAVE_WINSOCK_H 1
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
18283 $as_echo_n "checking for winsock2.h... " >&6; }
18284 if ${ac_cv_header_winsock2_h+:} false; then :
18285 $as_echo_n "(cached) " >&6
18288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18289 /* end confdefs.h. */
18293 #ifndef WIN32_LEAN_AND_MEAN
18294 #define WIN32_LEAN_AND_MEAN
18296 #include <windows.h>
18297 #include <winsock2.h>
18302 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18303 HAVE_WINSOCK2_H shall not be defined.
18305 int dummy=2*IPPROTO_ESP;
18313 if ac_fn_c_try_compile "$LINENO"; then :
18315 ac_cv_header_winsock2_h="yes"
18319 ac_cv_header_winsock2_h="no"
18322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
18326 $as_echo "$ac_cv_header_winsock2_h" >&6; }
18327 case "$ac_cv_header_winsock2_h" in
18330 cat >>confdefs.h <<_ACEOF
18331 #define HAVE_WINSOCK2_H 1
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
18339 $as_echo_n "checking for ws2tcpip.h... " >&6; }
18340 if ${ac_cv_header_ws2tcpip_h+:} false; then :
18341 $as_echo_n "(cached) " >&6
18344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18345 /* end confdefs.h. */
18349 #ifndef WIN32_LEAN_AND_MEAN
18350 #define WIN32_LEAN_AND_MEAN
18352 #include <windows.h>
18353 #include <winsock2.h>
18354 #include <ws2tcpip.h>
18359 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
18360 HAVE_WS2TCPIP_H shall not be defined.
18362 int dummy=2*IP_PKTINFO;
18370 if ac_fn_c_try_compile "$LINENO"; then :
18372 ac_cv_header_ws2tcpip_h="yes"
18376 ac_cv_header_ws2tcpip_h="no"
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
18383 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
18384 case "$ac_cv_header_ws2tcpip_h" in
18387 cat >>confdefs.h <<_ACEOF
18388 #define HAVE_WS2TCPIP_H 1
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winldap.h" >&5
18396 $as_echo_n "checking for winldap.h... " >&6; }
18397 if ${ac_cv_header_winldap_h+:} false; then :
18398 $as_echo_n "(cached) " >&6
18401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18402 /* end confdefs.h. */
18406 #ifdef HAVE_WINDOWS_H
18407 #ifndef WIN32_LEAN_AND_MEAN
18408 #define WIN32_LEAN_AND_MEAN
18410 #include <windows.h>
18412 #include <winldap.h>
18417 #if defined(__CYGWIN__) || defined(__CEGCC__)
18418 HAVE_WINLDAP_H shall not be defined.
18420 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
18421 ULONG res = ldap_unbind(ldp);
18429 if ac_fn_c_try_compile "$LINENO"; then :
18431 ac_cv_header_winldap_h="yes"
18435 ac_cv_header_winldap_h="no"
18438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winldap_h" >&5
18442 $as_echo "$ac_cv_header_winldap_h" >&6; }
18443 case "$ac_cv_header_winldap_h" in
18446 cat >>confdefs.h <<_ACEOF
18447 #define HAVE_WINLDAP_H 1
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winber.h" >&5
18455 $as_echo_n "checking for winber.h... " >&6; }
18456 if ${ac_cv_header_winber_h+:} false; then :
18457 $as_echo_n "(cached) " >&6
18460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18461 /* end confdefs.h. */
18465 #ifdef HAVE_WINDOWS_H
18466 #ifndef WIN32_LEAN_AND_MEAN
18467 #define WIN32_LEAN_AND_MEAN
18469 #include <windows.h>
18471 #include <winldap.h>
18472 #include <winber.h>
18477 #if defined(__CYGWIN__) || defined(__CEGCC__)
18478 HAVE_WINBER_H shall not be defined.
18480 BERVAL *bvp = NULL;
18481 BerElement *bep = ber_init(bvp);
18490 if ac_fn_c_try_compile "$LINENO"; then :
18492 ac_cv_header_winber_h="yes"
18496 ac_cv_header_winber_h="no"
18499 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winber_h" >&5
18503 $as_echo "$ac_cv_header_winber_h" >&6; }
18504 case "$ac_cv_header_winber_h" in
18507 cat >>confdefs.h <<_ACEOF
18508 #define HAVE_WINBER_H 1
18516 ac_cv_header_winsock_h="no"
18517 ac_cv_header_winsock2_h="no"
18518 ac_cv_header_ws2tcpip_h="no"
18519 ac_cv_header_winldap_h="no"
18520 ac_cv_header_winber_h="no"
18524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build target supports WIN32 file API" >&5
18525 $as_echo_n "checking whether build target supports WIN32 file API... " >&6; }
18526 curl_win32_file_api="no"
18527 if test "$ac_cv_header_windows_h" = "yes"; then
18528 if test x"$enable_largefile" != "xno"; then
18529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18530 /* end confdefs.h. */
18537 #if !defined(_WIN32_WCE) && \
18538 (defined(__MINGW32__) || \
18539 (defined(_MSC_VER) && (defined(_WIN32) || defined(_WIN64))))
18542 WIN32 large file API not supported.
18550 if ac_fn_c_try_compile "$LINENO"; then :
18552 curl_win32_file_api="win32_large_files"
18555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18557 if test "$curl_win32_file_api" = "no"; then
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18566 #if defined(_WIN32_WCE) || defined(__MINGW32__) || defined(_MSC_VER)
18569 WIN32 small file API not supported.
18577 if ac_fn_c_try_compile "$LINENO"; then :
18579 curl_win32_file_api="win32_small_files"
18582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18585 case "$curl_win32_file_api" in
18587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file enabled)" >&5
18588 $as_echo "yes (large file enabled)" >&6; }
18590 cat >>confdefs.h <<_ACEOF
18591 #define USE_WIN32_LARGE_FILES 1
18596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (large file disabled)" >&5
18597 $as_echo "yes (large file disabled)" >&6; }
18599 cat >>confdefs.h <<_ACEOF
18600 #define USE_WIN32_SMALL_FILES 1
18605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18606 $as_echo "no" >&6; }
18611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support http" >&5
18612 $as_echo_n "checking whether to support http... " >&6; }
18613 # Check whether --enable-http was given.
18614 if test "${enable_http+set}" = set; then :
18615 enableval=$enable_http; case "$enableval" in
18617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18618 $as_echo "no" >&6; }
18620 $as_echo "#define CURL_DISABLE_HTTP 1" >>confdefs.h
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disable HTTP disables FTP over proxy and RTSP" >&5
18623 $as_echo "$as_me: WARNING: disable HTTP disables FTP over proxy and RTSP" >&2;}
18624 CURL_DISABLE_HTTP=1
18627 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18629 CURL_DISABLE_RTSP=1
18632 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18633 $as_echo "yes" >&6; }
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18638 $as_echo "yes" >&6; }
18642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ftp" >&5
18643 $as_echo_n "checking whether to support ftp... " >&6; }
18644 # Check whether --enable-ftp was given.
18645 if test "${enable_ftp+set}" = set; then :
18646 enableval=$enable_ftp; case "$enableval" in
18648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18649 $as_echo "no" >&6; }
18651 $as_echo "#define CURL_DISABLE_FTP 1" >>confdefs.h
18656 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18657 $as_echo "yes" >&6; }
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18662 $as_echo "yes" >&6; }
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support file" >&5
18667 $as_echo_n "checking whether to support file... " >&6; }
18668 # Check whether --enable-file was given.
18669 if test "${enable_file+set}" = set; then :
18670 enableval=$enable_file; case "$enableval" in
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18673 $as_echo "no" >&6; }
18675 $as_echo "#define CURL_DISABLE_FILE 1" >>confdefs.h
18677 CURL_DISABLE_FILE=1
18680 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18681 $as_echo "yes" >&6; }
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18686 $as_echo "yes" >&6; }
18690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldap" >&5
18691 $as_echo_n "checking whether to support ldap... " >&6; }
18692 # Check whether --enable-ldap was given.
18693 if test "${enable_ldap+set}" = set; then :
18694 enableval=$enable_ldap; case "$enableval" in
18696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18697 $as_echo "no" >&6; }
18699 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
18701 CURL_DISABLE_LDAP=1
18705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18706 $as_echo "yes" >&6; }
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18712 $as_echo "yes" >&6; }
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support ldaps" >&5
18717 $as_echo_n "checking whether to support ldaps... " >&6; }
18718 # Check whether --enable-ldaps was given.
18719 if test "${enable_ldaps+set}" = set; then :
18720 enableval=$enable_ldaps; case "$enableval" in
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18723 $as_echo "no" >&6; }
18725 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18727 CURL_DISABLE_LDAPS=1
18730 *) if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: LDAP needs to be enabled to support LDAPS" >&5
18732 $as_echo "LDAP needs to be enabled to support LDAPS" >&6; }
18734 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18736 CURL_DISABLE_LDAPS=1
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18740 $as_echo "yes" >&6; }
18742 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18751 if test "x$CURL_DISABLE_LDAP" = "x1" ; then
18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18753 $as_echo "no" >&6; }
18755 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
18757 CURL_DISABLE_LDAPS=1
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18761 $as_echo "yes" >&6; }
18763 $as_echo "#define HAVE_LDAP_SSL 1" >>confdefs.h
18772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support rtsp" >&5
18773 $as_echo_n "checking whether to support rtsp... " >&6; }
18774 # Check whether --enable-rtsp was given.
18775 if test "${enable_rtsp+set}" = set; then :
18776 enableval=$enable_rtsp; case "$enableval" in
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18779 $as_echo "no" >&6; }
18781 $as_echo "#define CURL_DISABLE_RTSP 1" >>confdefs.h
18783 CURL_DISABLE_RTSP=1
18786 *) if test x$CURL_DISABLE_HTTP = x1 ; then
18787 as_fn_error $? "HTTP support needs to be enabled in order to enable RTSP support!" "$LINENO" 5
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18790 $as_echo "yes" >&6; }
18791 curl_rtsp_msg="enabled"
18796 if test "x$CURL_DISABLE_HTTP" != "x1"; then
18797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18798 $as_echo "yes" >&6; }
18799 curl_rtsp_msg="enabled"
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18802 $as_echo "no" >&6; }
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support proxies" >&5
18809 $as_echo_n "checking whether to support proxies... " >&6; }
18810 # Check whether --enable-proxy was given.
18811 if test "${enable_proxy+set}" = set; then :
18812 enableval=$enable_proxy; case "$enableval" in
18814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18815 $as_echo "no" >&6; }
18817 $as_echo "#define CURL_DISABLE_PROXY 1" >>confdefs.h
18819 CURL_DISABLE_PROXY=1
18822 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18823 $as_echo "yes" >&6; }
18827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18828 $as_echo "yes" >&6; }
18833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support dict" >&5
18834 $as_echo_n "checking whether to support dict... " >&6; }
18835 # Check whether --enable-dict was given.
18836 if test "${enable_dict+set}" = set; then :
18837 enableval=$enable_dict; case "$enableval" in
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18840 $as_echo "no" >&6; }
18842 $as_echo "#define CURL_DISABLE_DICT 1" >>confdefs.h
18844 CURL_DISABLE_DICT=1
18847 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18848 $as_echo "yes" >&6; }
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18853 $as_echo "yes" >&6; }
18857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support telnet" >&5
18858 $as_echo_n "checking whether to support telnet... " >&6; }
18859 # Check whether --enable-telnet was given.
18860 if test "${enable_telnet+set}" = set; then :
18861 enableval=$enable_telnet; case "$enableval" in
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18864 $as_echo "no" >&6; }
18866 $as_echo "#define CURL_DISABLE_TELNET 1" >>confdefs.h
18868 CURL_DISABLE_TELNET=1
18871 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18872 $as_echo "yes" >&6; }
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18877 $as_echo "yes" >&6; }
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support tftp" >&5
18882 $as_echo_n "checking whether to support tftp... " >&6; }
18883 # Check whether --enable-tftp was given.
18884 if test "${enable_tftp+set}" = set; then :
18885 enableval=$enable_tftp; case "$enableval" in
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18888 $as_echo "no" >&6; }
18890 $as_echo "#define CURL_DISABLE_TFTP 1" >>confdefs.h
18892 CURL_DISABLE_TFTP=1
18895 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18896 $as_echo "yes" >&6; }
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18901 $as_echo "yes" >&6; }
18906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support pop3" >&5
18907 $as_echo_n "checking whether to support pop3... " >&6; }
18908 # Check whether --enable-pop3 was given.
18909 if test "${enable_pop3+set}" = set; then :
18910 enableval=$enable_pop3; case "$enableval" in
18912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18913 $as_echo "no" >&6; }
18915 $as_echo "#define CURL_DISABLE_POP3 1" >>confdefs.h
18917 CURL_DISABLE_POP3=1
18920 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18921 $as_echo "yes" >&6; }
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18926 $as_echo "yes" >&6; }
18932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support imap" >&5
18933 $as_echo_n "checking whether to support imap... " >&6; }
18934 # Check whether --enable-imap was given.
18935 if test "${enable_imap+set}" = set; then :
18936 enableval=$enable_imap; case "$enableval" in
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18939 $as_echo "no" >&6; }
18941 $as_echo "#define CURL_DISABLE_IMAP 1" >>confdefs.h
18943 CURL_DISABLE_IMAP=1
18946 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18947 $as_echo "yes" >&6; }
18951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18952 $as_echo "yes" >&6; }
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smb" >&5
18959 $as_echo_n "checking whether to support smb... " >&6; }
18960 # Check whether --enable-smb was given.
18961 if test "${enable_smb+set}" = set; then :
18962 enableval=$enable_smb; case "$enableval" in
18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18965 $as_echo "no" >&6; }
18967 $as_echo "#define CURL_DISABLE_SMB 1" >>confdefs.h
18972 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18973 $as_echo "yes" >&6; }
18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18978 $as_echo "yes" >&6; }
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support smtp" >&5
18984 $as_echo_n "checking whether to support smtp... " >&6; }
18985 # Check whether --enable-smtp was given.
18986 if test "${enable_smtp+set}" = set; then :
18987 enableval=$enable_smtp; case "$enableval" in
18989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18990 $as_echo "no" >&6; }
18992 $as_echo "#define CURL_DISABLE_SMTP 1" >>confdefs.h
18994 CURL_DISABLE_SMTP=1
18997 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18998 $as_echo "yes" >&6; }
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19003 $as_echo "yes" >&6; }
19008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to support gopher" >&5
19009 $as_echo_n "checking whether to support gopher... " >&6; }
19010 # Check whether --enable-gopher was given.
19011 if test "${enable_gopher+set}" = set; then :
19012 enableval=$enable_gopher; case "$enableval" in
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19015 $as_echo "no" >&6; }
19017 $as_echo "#define CURL_DISABLE_GOPHER 1" >>confdefs.h
19019 CURL_DISABLE_GOPHER=1
19022 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19023 $as_echo "yes" >&6; }
19027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19028 $as_echo "yes" >&6; }
19035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide built-in manual" >&5
19036 $as_echo_n "checking whether to provide built-in manual... " >&6; }
19037 # Check whether --enable-manual was given.
19038 if test "${enable_manual+set}" = set; then :
19039 enableval=$enable_manual; case "$enableval" in
19041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19042 $as_echo "no" >&6; }
19044 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19045 $as_echo "yes" >&6; }
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19051 $as_echo "yes" >&6; }
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable generation of C code" >&5
19058 $as_echo_n "checking whether to enable generation of C code... " >&6; }
19059 # Check whether --enable-libcurl_option was given.
19060 if test "${enable_libcurl_option+set}" = set; then :
19061 enableval=$enable_libcurl_option; case "$enableval" in
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19064 $as_echo "no" >&6; }
19066 $as_echo "#define CURL_DISABLE_LIBCURL_OPTION 1" >>confdefs.h
19068 curl_libcurl_msg="no"
19070 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19071 $as_echo "yes" >&6; }
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19076 $as_echo "yes" >&6; }
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libgcc" >&5
19083 $as_echo_n "checking whether to use libgcc... " >&6; }
19084 # Check whether --enable-libgcc was given.
19085 if test "${enable_libgcc+set}" = set; then :
19086 enableval=$enable_libgcc; case "$enableval" in
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19090 $as_echo "yes" >&6; }
19092 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19093 $as_echo "no" >&6; }
19097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19098 $as_echo "no" >&6; }
19104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if X/Open network library is required" >&5
19105 $as_echo_n "checking if X/Open network library is required... " >&6; }
19106 tst_lib_xnet_required="no"
19107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19108 /* end confdefs.h. */
19113 #if defined(__hpux) && defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 600)
19115 #elif defined(__hpux) && defined(_XOPEN_SOURCE_EXTENDED)
19118 force compilation error
19124 if ac_fn_c_try_compile "$LINENO"; then :
19126 tst_lib_xnet_required="yes"
19127 LIBS="-lxnet $LIBS"
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_lib_xnet_required" >&5
19132 $as_echo "$tst_lib_xnet_required" >&6; }
19135 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19136 if test "x$ac_cv_func_gethostbyname" = xyes; then :
19137 HAVE_GETHOSTBYNAME="1"
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19141 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19142 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
19143 $as_echo_n "(cached) " >&6
19145 ac_check_lib_save_LIBS=$LIBS
19147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19148 /* end confdefs.h. */
19154 char gethostbyname ();
19157 return gethostbyname ();
19162 if ac_fn_c_try_link "$LINENO"; then :
19163 ac_cv_lib_nsl_gethostbyname=yes
19165 ac_cv_lib_nsl_gethostbyname=no
19167 rm -f core conftest.err conftest.$ac_objext \
19168 conftest$ac_exeext conftest.$ac_ext
19169 LIBS=$ac_check_lib_save_LIBS
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19172 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19173 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
19174 HAVE_GETHOSTBYNAME="1"
19183 if test "$HAVE_GETHOSTBYNAME" != "1"
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lsocket" >&5
19186 $as_echo_n "checking for gethostbyname in -lsocket... " >&6; }
19187 if ${ac_cv_lib_socket_gethostbyname+:} false; then :
19188 $as_echo_n "(cached) " >&6
19190 ac_check_lib_save_LIBS=$LIBS
19191 LIBS="-lsocket $LIBS"
19192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19193 /* end confdefs.h. */
19199 char gethostbyname ();
19202 return gethostbyname ();
19207 if ac_fn_c_try_link "$LINENO"; then :
19208 ac_cv_lib_socket_gethostbyname=yes
19210 ac_cv_lib_socket_gethostbyname=no
19212 rm -f core conftest.err conftest.$ac_objext \
19213 conftest$ac_exeext conftest.$ac_ext
19214 LIBS=$ac_check_lib_save_LIBS
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostbyname" >&5
19217 $as_echo "$ac_cv_lib_socket_gethostbyname" >&6; }
19218 if test "x$ac_cv_lib_socket_gethostbyname" = xyes; then :
19219 HAVE_GETHOSTBYNAME="1"
19220 LIBS="-lsocket $LIBS"
19226 if test "$HAVE_GETHOSTBYNAME" != "1"
19228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lwatt" >&5
19229 $as_echo_n "checking for gethostbyname in -lwatt... " >&6; }
19230 if ${ac_cv_lib_watt_gethostbyname+:} false; then :
19231 $as_echo_n "(cached) " >&6
19233 ac_check_lib_save_LIBS=$LIBS
19234 LIBS="-lwatt $LIBS"
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19242 char gethostbyname ();
19245 return gethostbyname ();
19250 if ac_fn_c_try_link "$LINENO"; then :
19251 ac_cv_lib_watt_gethostbyname=yes
19253 ac_cv_lib_watt_gethostbyname=no
19255 rm -f core conftest.err conftest.$ac_objext \
19256 conftest$ac_exeext conftest.$ac_ext
19257 LIBS=$ac_check_lib_save_LIBS
19259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_watt_gethostbyname" >&5
19260 $as_echo "$ac_cv_lib_watt_gethostbyname" >&6; }
19261 if test "x$ac_cv_lib_watt_gethostbyname" = xyes; then :
19262 HAVE_GETHOSTBYNAME="1"
19263 CPPFLAGS="-I/dev/env/WATT_ROOT/inc"
19264 LDFLAGS="-L/dev/env/WATT_ROOT/lib"
19265 LIBS="-lwatt $LIBS"
19271 if test "$HAVE_GETHOSTBYNAME" != "1"
19273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname with both nsl and socket libs" >&5
19274 $as_echo_n "checking for gethostbyname with both nsl and socket libs... " >&6; }
19275 my_ac_save_LIBS=$LIBS
19276 LIBS="-lnsl -lsocket $LIBS"
19277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19278 /* end confdefs.h. */
19292 if ac_fn_c_try_link "$LINENO"; then :
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19295 $as_echo "yes" >&6; }
19296 HAVE_GETHOSTBYNAME="1"
19300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19301 $as_echo "no" >&6; }
19302 LIBS=$my_ac_save_LIBS
19305 rm -f core conftest.err conftest.$ac_objext \
19306 conftest$ac_exeext conftest.$ac_ext
19309 if test "$HAVE_GETHOSTBYNAME" != "1"
19311 if test "$ac_cv_header_windows_h" = "yes"; then
19312 if test "$ac_cv_header_winsock_h" = "yes"; then
19315 winsock_LIB="-lwinsock"
19318 winsock_LIB="-lwsock32"
19322 if test "$ac_cv_header_winsock2_h" = "yes"; then
19323 winsock_LIB="-lws2_32"
19325 if test ! -z "$winsock_LIB"; then
19326 my_ac_save_LIBS=$LIBS
19327 LIBS="$winsock_LIB $LIBS"
19328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in $winsock_LIB" >&5
19329 $as_echo_n "checking for gethostbyname in $winsock_LIB... " >&6; }
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19334 #ifdef HAVE_WINDOWS_H
19335 #ifndef WIN32_LEAN_AND_MEAN
19336 #define WIN32_LEAN_AND_MEAN
19338 #include <windows.h>
19339 #ifdef HAVE_WINSOCK2_H
19340 #include <winsock2.h>
19342 #ifdef HAVE_WINSOCK_H
19343 #include <winsock.h>
19351 gethostbyname("www.dummysite.com");
19358 if ac_fn_c_try_link "$LINENO"; then :
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19361 $as_echo "yes" >&6; }
19362 HAVE_GETHOSTBYNAME="1"
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19367 $as_echo "no" >&6; }
19369 LIBS=$my_ac_save_LIBS
19372 rm -f core conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19378 if test "$HAVE_GETHOSTBYNAME" != "1"
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for Minix 3" >&5
19381 $as_echo_n "checking for gethostbyname for Minix 3... " >&6; }
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19386 /* Older Minix versions may need <net/gen/netdb.h> here instead */
19392 gethostbyname("www.dummysite.com");
19399 if ac_fn_c_try_link "$LINENO"; then :
19401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19402 $as_echo "yes" >&6; }
19403 HAVE_GETHOSTBYNAME="1"
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19408 $as_echo "no" >&6; }
19411 rm -f core conftest.err conftest.$ac_objext \
19412 conftest$ac_exeext conftest.$ac_ext
19415 if test "$HAVE_GETHOSTBYNAME" != "1"
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname for eCos" >&5
19418 $as_echo_n "checking for gethostbyname for eCos... " >&6; }
19419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19420 /* end confdefs.h. */
19429 gethostbyname("www.dummysite.com");
19436 if ac_fn_c_try_link "$LINENO"; then :
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19439 $as_echo "yes" >&6; }
19440 HAVE_GETHOSTBYNAME="1"
19444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19445 $as_echo "no" >&6; }
19448 rm -f core conftest.err conftest.$ac_objext \
19449 conftest$ac_exeext conftest.$ac_ext
19452 if test "$HAVE_GETHOSTBYNAME" != "1"
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnetwork" >&5
19455 $as_echo_n "checking for gethostbyname in -lnetwork... " >&6; }
19456 if ${ac_cv_lib_network_gethostbyname+:} false; then :
19457 $as_echo_n "(cached) " >&6
19459 ac_check_lib_save_LIBS=$LIBS
19460 LIBS="-lnetwork $LIBS"
19461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19462 /* end confdefs.h. */
19468 char gethostbyname ();
19471 return gethostbyname ();
19476 if ac_fn_c_try_link "$LINENO"; then :
19477 ac_cv_lib_network_gethostbyname=yes
19479 ac_cv_lib_network_gethostbyname=no
19481 rm -f core conftest.err conftest.$ac_objext \
19482 conftest$ac_exeext conftest.$ac_ext
19483 LIBS=$ac_check_lib_save_LIBS
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_network_gethostbyname" >&5
19486 $as_echo "$ac_cv_lib_network_gethostbyname" >&6; }
19487 if test "x$ac_cv_lib_network_gethostbyname" = xyes; then :
19488 HAVE_GETHOSTBYNAME="1"
19489 LIBS="-lnetwork $LIBS"
19495 if test "$HAVE_GETHOSTBYNAME" != "1"
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnet" >&5
19498 $as_echo_n "checking for gethostbyname in -lnet... " >&6; }
19499 if ${ac_cv_lib_net_gethostbyname+:} false; then :
19500 $as_echo_n "(cached) " >&6
19502 ac_check_lib_save_LIBS=$LIBS
19504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19505 /* end confdefs.h. */
19511 char gethostbyname ();
19514 return gethostbyname ();
19519 if ac_fn_c_try_link "$LINENO"; then :
19520 ac_cv_lib_net_gethostbyname=yes
19522 ac_cv_lib_net_gethostbyname=no
19524 rm -f core conftest.err conftest.$ac_objext \
19525 conftest$ac_exeext conftest.$ac_ext
19526 LIBS=$ac_check_lib_save_LIBS
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_net_gethostbyname" >&5
19529 $as_echo "$ac_cv_lib_net_gethostbyname" >&6; }
19530 if test "x$ac_cv_lib_net_gethostbyname" = xyes; then :
19531 HAVE_GETHOSTBYNAME="1"
19539 if test "$HAVE_GETHOSTBYNAME" != "1"; then
19540 as_fn_error $? "couldn't find libraries for gethostbyname()" "$LINENO" 5
19543 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
19544 if test "x$ac_cv_func_strcasecmp" = xyes; then :
19547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19548 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19549 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19550 $as_echo_n "(cached) " >&6
19552 ac_check_lib_save_LIBS=$LIBS
19553 LIBS="-lresolve $LIBS"
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h. */
19561 char strcasecmp ();
19564 return strcasecmp ();
19569 if ac_fn_c_try_link "$LINENO"; then :
19570 ac_cv_lib_resolve_strcasecmp=yes
19572 ac_cv_lib_resolve_strcasecmp=no
19574 rm -f core conftest.err conftest.$ac_objext \
19575 conftest$ac_exeext conftest.$ac_ext
19576 LIBS=$ac_check_lib_save_LIBS
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19579 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19580 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19581 cat >>confdefs.h <<_ACEOF
19582 #define HAVE_LIBRESOLVE 1
19585 LIBS="-lresolve $LIBS"
19592 if test "$ac_cv_lib_resolve_strcasecmp" = "$ac_cv_func_strcasecmp"; then
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strcasecmp in -lresolve" >&5
19594 $as_echo_n "checking for strcasecmp in -lresolve... " >&6; }
19595 if ${ac_cv_lib_resolve_strcasecmp+:} false; then :
19596 $as_echo_n "(cached) " >&6
19598 ac_check_lib_save_LIBS=$LIBS
19599 LIBS="-lresolve -lnsl $LIBS"
19600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19601 /* end confdefs.h. */
19607 char strcasecmp ();
19610 return strcasecmp ();
19615 if ac_fn_c_try_link "$LINENO"; then :
19616 ac_cv_lib_resolve_strcasecmp=yes
19618 ac_cv_lib_resolve_strcasecmp=no
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolve_strcasecmp" >&5
19625 $as_echo "$ac_cv_lib_resolve_strcasecmp" >&6; }
19626 if test "x$ac_cv_lib_resolve_strcasecmp" = xyes; then :
19627 LIBS="-lresolve $LIBS"
19631 ac_cv_func_strcasecmp="no"
19634 curl_includes_winsock2="\
19635 /* includes start */
19636 #ifdef HAVE_WINDOWS_H
19637 # ifndef WIN32_LEAN_AND_MEAN
19638 # define WIN32_LEAN_AND_MEAN
19640 # include <windows.h>
19641 # ifdef HAVE_WINSOCK2_H
19642 # include <winsock2.h>
19644 # ifdef HAVE_WINSOCK_H
19645 # include <winsock.h>
19649 /* includes end */"
19651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
19652 $as_echo_n "checking for windows.h... " >&6; }
19653 if ${ac_cv_header_windows_h+:} false; then :
19654 $as_echo_n "(cached) " >&6
19657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19658 /* end confdefs.h. */
19662 #ifndef WIN32_LEAN_AND_MEAN
19663 #define WIN32_LEAN_AND_MEAN
19665 #include <windows.h>
19670 #if defined(__CYGWIN__) || defined(__CEGCC__)
19671 HAVE_WINDOWS_H shall not be defined.
19673 int dummy=2*WINVER;
19681 if ac_fn_c_try_compile "$LINENO"; then :
19683 ac_cv_header_windows_h="yes"
19687 ac_cv_header_windows_h="no"
19690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
19694 $as_echo "$ac_cv_header_windows_h" >&6; }
19695 case "$ac_cv_header_windows_h" in
19698 cat >>confdefs.h <<_ACEOF
19699 #define HAVE_WINDOWS_H 1
19703 cat >>confdefs.h <<_ACEOF
19704 #define WIN32_LEAN_AND_MEAN 1
19711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock.h" >&5
19712 $as_echo_n "checking for winsock.h... " >&6; }
19713 if ${ac_cv_header_winsock_h+:} false; then :
19714 $as_echo_n "(cached) " >&6
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h. */
19722 #ifndef WIN32_LEAN_AND_MEAN
19723 #define WIN32_LEAN_AND_MEAN
19725 #include <windows.h>
19726 #include <winsock.h>
19731 #if defined(__CYGWIN__) || defined(__CEGCC__)
19732 HAVE_WINSOCK_H shall not be defined.
19734 int dummy=WSACleanup();
19742 if ac_fn_c_try_compile "$LINENO"; then :
19744 ac_cv_header_winsock_h="yes"
19748 ac_cv_header_winsock_h="no"
19751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock_h" >&5
19755 $as_echo "$ac_cv_header_winsock_h" >&6; }
19756 case "$ac_cv_header_winsock_h" in
19759 cat >>confdefs.h <<_ACEOF
19760 #define HAVE_WINSOCK_H 1
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
19768 $as_echo_n "checking for winsock2.h... " >&6; }
19769 if ${ac_cv_header_winsock2_h+:} false; then :
19770 $as_echo_n "(cached) " >&6
19773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19774 /* end confdefs.h. */
19778 #ifndef WIN32_LEAN_AND_MEAN
19779 #define WIN32_LEAN_AND_MEAN
19781 #include <windows.h>
19782 #include <winsock2.h>
19787 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
19788 HAVE_WINSOCK2_H shall not be defined.
19790 int dummy=2*IPPROTO_ESP;
19798 if ac_fn_c_try_compile "$LINENO"; then :
19800 ac_cv_header_winsock2_h="yes"
19804 ac_cv_header_winsock2_h="no"
19807 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
19811 $as_echo "$ac_cv_header_winsock2_h" >&6; }
19812 case "$ac_cv_header_winsock2_h" in
19815 cat >>confdefs.h <<_ACEOF
19816 #define HAVE_WINSOCK2_H 1
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in libraries" >&5
19825 $as_echo_n "checking for connect in libraries... " >&6; }
19826 tst_connect_save_LIBS="$LIBS"
19827 tst_connect_need_LIBS="unknown"
19828 for tst_lib in '' '-lsocket' ; do
19829 if test "$tst_connect_need_LIBS" = "unknown"; then
19830 LIBS="$tst_lib $tst_connect_save_LIBS"
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19835 $curl_includes_winsock2
19836 #ifndef HAVE_WINDOWS_H
19837 int connect(int, void*, int);
19843 if(0 != connect(0, 0, 0))
19851 if ac_fn_c_try_link "$LINENO"; then :
19853 tst_connect_need_LIBS="$tst_lib"
19856 rm -f core conftest.err conftest.$ac_objext \
19857 conftest$ac_exeext conftest.$ac_ext
19860 LIBS="$tst_connect_save_LIBS"
19862 case X-"$tst_connect_need_LIBS" in
19864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find connect" >&5
19865 $as_echo "cannot find connect" >&6; }
19866 as_fn_error $? "cannot find connect function in libraries." "$LINENO" 5
19869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19870 $as_echo "yes" >&6; }
19873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_connect_need_LIBS" >&5
19874 $as_echo "$tst_connect_need_LIBS" >&6; }
19875 LIBS="$tst_connect_need_LIBS $tst_connect_save_LIBS"
19880 CURL_NETWORK_LIBS=$LIBS
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
19883 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
19884 if ${ac_cv_header_time+:} false; then :
19885 $as_echo_n "(cached) " >&6
19887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19888 /* end confdefs.h. */
19889 #include <sys/types.h>
19890 #include <sys/time.h>
19895 if ((struct tm *) 0)
19901 if ac_fn_c_try_compile "$LINENO"; then :
19902 ac_cv_header_time=yes
19904 ac_cv_header_time=no
19906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
19909 $as_echo "$ac_cv_header_time" >&6; }
19910 if test $ac_cv_header_time = yes; then
19912 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
19917 for ac_header in sys/types.h sys/time.h time.h
19919 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19920 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19921 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19922 cat >>confdefs.h <<_ACEOF
19923 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock_gettime" >&5
19931 $as_echo_n "checking for monotonic clock_gettime... " >&6; }
19932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19933 /* end confdefs.h. */
19936 #ifdef HAVE_SYS_TYPES_H
19937 #include <sys/types.h>
19939 #ifdef HAVE_SYS_TIME_H
19940 #include <sys/time.h>
19941 #ifdef TIME_WITH_SYS_TIME
19953 struct timespec ts;
19954 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
19961 if ac_fn_c_try_compile "$LINENO"; then :
19963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19964 $as_echo "yes" >&6; }
19965 ac_cv_func_clock_gettime="yes"
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970 $as_echo "no" >&6; }
19971 ac_cv_func_clock_gettime="no"
19974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19978 if test "$ac_cv_func_clock_gettime" = "yes"; then
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in libraries" >&5
19981 $as_echo_n "checking for clock_gettime in libraries... " >&6; }
19983 curl_cv_save_LIBS="$LIBS"
19984 curl_cv_gclk_LIBS="unknown"
19986 for x_xlibs in '' '-lrt' '-lposix4' ; do
19987 if test "$curl_cv_gclk_LIBS" = "unknown"; then
19988 if test -z "$x_xlibs"; then
19989 LIBS="$curl_cv_save_LIBS"
19991 LIBS="$x_xlibs $curl_cv_save_LIBS"
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19997 #ifdef HAVE_SYS_TYPES_H
19998 #include <sys/types.h>
20000 #ifdef HAVE_SYS_TIME_H
20001 #include <sys/time.h>
20002 #ifdef TIME_WITH_SYS_TIME
20014 struct timespec ts;
20015 (void)clock_gettime(CLOCK_MONOTONIC, &ts);
20022 if ac_fn_c_try_link "$LINENO"; then :
20024 curl_cv_gclk_LIBS="$x_xlibs"
20027 rm -f core conftest.err conftest.$ac_objext \
20028 conftest$ac_exeext conftest.$ac_ext
20032 LIBS="$curl_cv_save_LIBS"
20034 case X-"$curl_cv_gclk_LIBS" in
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find clock_gettime" >&5
20037 $as_echo "cannot find clock_gettime" >&6; }
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20039 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20040 ac_cv_func_clock_gettime="no"
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20044 $as_echo "no additional lib required" >&6; }
20045 ac_cv_func_clock_gettime="yes"
20048 if test -z "$curl_cv_save_LIBS"; then
20049 LIBS="$curl_cv_gclk_LIBS"
20051 LIBS="$curl_cv_gclk_LIBS $curl_cv_save_LIBS"
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_gclk_LIBS" >&5
20054 $as_echo "$curl_cv_gclk_LIBS" >&6; }
20055 ac_cv_func_clock_gettime="yes"
20059 if test "x$cross_compiling" != "xyes" &&
20060 test "$ac_cv_func_clock_gettime" = "yes"; then
20061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if monotonic clock_gettime works" >&5
20062 $as_echo_n "checking if monotonic clock_gettime works... " >&6; }
20063 if test "$cross_compiling" = yes; then :
20064 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20065 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20066 as_fn_error $? "cannot run test program while cross compiling
20067 See \`config.log' for more details" "$LINENO" 5; }
20069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20070 /* end confdefs.h. */
20073 #ifdef HAVE_STDLIB_H
20074 #include <stdlib.h>
20076 #ifdef HAVE_SYS_TYPES_H
20077 #include <sys/types.h>
20079 #ifdef HAVE_SYS_TIME_H
20080 #include <sys/time.h>
20081 #ifdef TIME_WITH_SYS_TIME
20093 struct timespec ts;
20094 if (0 == clock_gettime(CLOCK_MONOTONIC, &ts))
20104 if ac_fn_c_try_run "$LINENO"; then :
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20107 $as_echo "yes" >&6; }
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20112 $as_echo "no" >&6; }
20113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&5
20114 $as_echo "$as_me: WARNING: HAVE_CLOCK_GETTIME_MONOTONIC will not be defined" >&2;}
20115 ac_cv_func_clock_gettime="no"
20116 LIBS="$curl_cv_save_LIBS"
20119 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20120 conftest.$ac_objext conftest.beam conftest.$ac_ext
20125 case "$ac_cv_func_clock_gettime" in
20128 cat >>confdefs.h <<_ACEOF
20129 #define HAVE_CLOCK_GETTIME_MONOTONIC 1
20139 CURL_NETWORK_AND_TIME_LIBS=$LIBS
20143 clean_CPPFLAGS=$CPPFLAGS
20144 clean_LDFLAGS=$LDFLAGS
20148 # Check whether --with-zlib was given.
20149 if test "${with_zlib+set}" = set; then :
20150 withval=$with_zlib; OPT_ZLIB="$withval"
20154 if test "$OPT_ZLIB" = "no" ; then
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: zlib disabled" >&5
20156 $as_echo "$as_me: WARNING: zlib disabled" >&2;}
20158 if test "$OPT_ZLIB" = "yes" ; then
20162 if test -z "$OPT_ZLIB" ; then
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
20165 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
20166 if ${ac_cv_lib_z_inflateEnd+:} false; then :
20167 $as_echo_n "(cached) " >&6
20169 ac_check_lib_save_LIBS=$LIBS
20171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20172 /* end confdefs.h. */
20178 char inflateEnd ();
20181 return inflateEnd ();
20186 if ac_fn_c_try_link "$LINENO"; then :
20187 ac_cv_lib_z_inflateEnd=yes
20189 ac_cv_lib_z_inflateEnd=no
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20193 LIBS=$ac_check_lib_save_LIBS
20195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
20196 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
20197 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
20201 OPT_ZLIB="/usr/local"
20207 if test -n "$OPT_ZLIB"; then
20208 CPPFLAGS="$CPPFLAGS -I$OPT_ZLIB/include"
20209 LDFLAGS="$LDFLAGS -L$OPT_ZLIB/lib$libsuff"
20212 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
20213 if test "x$ac_cv_header_zlib_h" = xyes; then :
20216 if test "$HAVE_LIBZ" != "1"; then
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzread in -lz" >&5
20218 $as_echo_n "checking for gzread in -lz... " >&6; }
20219 if ${ac_cv_lib_z_gzread+:} false; then :
20220 $as_echo_n "(cached) " >&6
20222 ac_check_lib_save_LIBS=$LIBS
20224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20225 /* end confdefs.h. */
20239 if ac_fn_c_try_link "$LINENO"; then :
20240 ac_cv_lib_z_gzread=yes
20242 ac_cv_lib_z_gzread=no
20244 rm -f core conftest.err conftest.$ac_objext \
20245 conftest$ac_exeext conftest.$ac_ext
20246 LIBS=$ac_check_lib_save_LIBS
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzread" >&5
20249 $as_echo "$ac_cv_lib_z_gzread" >&6; }
20250 if test "x$ac_cv_lib_z_gzread" = xyes; then :
20256 CPPFLAGS=$clean_CPPFLAGS
20257 LDFLAGS=$clean_LDFLAGS
20264 CPPFLAGS=$clean_CPPFLAGS
20265 LDFLAGS=$clean_LDFLAGS
20271 if test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" != "1"
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz lib, not the header file!" >&5
20274 $as_echo "$as_me: WARNING: configure found only the libz lib, not the header file!" >&2;}
20276 CPPFLAGS=$clean_CPPFLAGS
20277 LDFLAGS=$clean_LDFLAGS
20279 elif test "$HAVE_LIBZ" != "1" && test "$HAVE_ZLIB_H" = "1"
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: configure found only the libz header file, not the lib!" >&5
20282 $as_echo "$as_me: WARNING: configure found only the libz header file, not the lib!" >&2;}
20283 CPPFLAGS=$clean_CPPFLAGS
20284 LDFLAGS=$clean_LDFLAGS
20286 elif test "$HAVE_LIBZ" = "1" && test "$HAVE_ZLIB_H" = "1"
20290 $as_echo "#define HAVE_ZLIB_H 1" >>confdefs.h
20293 $as_echo "#define HAVE_LIBZ 1" >>confdefs.h
20297 LIBS="-lz $clean_LIBS"
20300 { $as_echo "$as_me:${as_lineno-$LINENO}: found both libz and libz.h header" >&5
20301 $as_echo "$as_me: found both libz and libz.h header" >&6;}
20302 curl_zlib_msg="enabled"
20306 if test x"$AMFIXLIB" = x1; then
20308 HAVE_LIBZ_FALSE='#'
20319 # Check whether --with-ldap-lib was given.
20320 if test "${with_ldap_lib+set}" = set; then :
20321 withval=$with_ldap_lib; LDAPLIBNAME="$withval"
20327 # Check whether --with-lber-lib was given.
20328 if test "${with_lber_lib+set}" = set; then :
20329 withval=$with_lber_lib; LBERLIBNAME="$withval"
20333 if test x$CURL_DISABLE_LDAP != x1 ; then
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lber.h" >&5
20337 $as_echo_n "checking for lber.h... " >&6; }
20338 if ${ac_cv_header_lber_h+:} false; then :
20339 $as_echo_n "(cached) " >&6
20342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20343 /* end confdefs.h. */
20347 #ifdef HAVE_WINDOWS_H
20348 #ifndef WIN32_LEAN_AND_MEAN
20349 #define WIN32_LEAN_AND_MEAN
20351 #include <windows.h>
20353 #ifdef HAVE_SYS_TYPES_H
20354 #include <sys/types.h>
20358 #define NULL (void *)0
20365 BerValue *bvp = NULL;
20366 BerElement *bep = ber_init(bvp);
20374 if ac_fn_c_try_compile "$LINENO"; then :
20376 ac_cv_header_lber_h="yes"
20380 ac_cv_header_lber_h="no"
20383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_lber_h" >&5
20387 $as_echo "$ac_cv_header_lber_h" >&6; }
20388 if test "$ac_cv_header_lber_h" = "yes"; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LBER_H 1
20395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20396 /* end confdefs.h. */
20400 #ifdef HAVE_WINDOWS_H
20401 #ifndef WIN32_LEAN_AND_MEAN
20402 #define WIN32_LEAN_AND_MEAN
20404 #include <windows.h>
20406 #ifdef HAVE_SYS_TYPES_H
20407 #include <sys/types.h>
20411 #define NULL (void *)0
20413 #ifndef LDAP_DEPRECATED
20414 #define LDAP_DEPRECATED 1
20421 BerValue *bvp = NULL;
20422 BerElement *bep = ber_init(bvp);
20430 if ac_fn_c_try_compile "$LINENO"; then :
20432 curl_cv_need_header_lber_h="no"
20436 curl_cv_need_header_lber_h="yes"
20439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20441 case "$curl_cv_need_header_lber_h" in
20444 cat >>confdefs.h <<_ACEOF
20445 #define NEED_LBER_H 1
20453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap.h" >&5
20454 $as_echo_n "checking for ldap.h... " >&6; }
20455 if ${ac_cv_header_ldap_h+:} false; then :
20456 $as_echo_n "(cached) " >&6
20459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20460 /* end confdefs.h. */
20464 #ifdef HAVE_WINDOWS_H
20465 #ifndef WIN32_LEAN_AND_MEAN
20466 #define WIN32_LEAN_AND_MEAN
20468 #include <windows.h>
20470 #ifdef HAVE_SYS_TYPES_H
20471 #include <sys/types.h>
20474 #ifndef LDAP_DEPRECATED
20475 #define LDAP_DEPRECATED 1
20485 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20486 int res = ldap_unbind(ldp);
20493 if ac_fn_c_try_compile "$LINENO"; then :
20495 ac_cv_header_ldap_h="yes"
20499 ac_cv_header_ldap_h="no"
20502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_h" >&5
20506 $as_echo "$ac_cv_header_ldap_h" >&6; }
20507 case "$ac_cv_header_ldap_h" in
20510 cat >>confdefs.h <<_ACEOF
20511 #define HAVE_LDAP_H 1
20518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldapssl.h" >&5
20519 $as_echo_n "checking for ldapssl.h... " >&6; }
20520 if ${ac_cv_header_ldapssl_h+:} false; then :
20521 $as_echo_n "(cached) " >&6
20524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20525 /* end confdefs.h. */
20529 #ifdef HAVE_WINDOWS_H
20530 #ifndef WIN32_LEAN_AND_MEAN
20531 #define WIN32_LEAN_AND_MEAN
20533 #include <windows.h>
20535 #ifdef HAVE_SYS_TYPES_H
20536 #include <sys/types.h>
20540 #define NULL (void *)0
20542 #ifndef LDAP_DEPRECATED
20543 #define LDAP_DEPRECATED 1
20551 #include <ldapssl.h>
20556 char *cert_label = NULL;
20557 LDAP *ldp = ldap_ssl_init("dummy", LDAPS_PORT, cert_label);
20564 if ac_fn_c_try_compile "$LINENO"; then :
20566 ac_cv_header_ldapssl_h="yes"
20570 ac_cv_header_ldapssl_h="no"
20573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldapssl_h" >&5
20577 $as_echo "$ac_cv_header_ldapssl_h" >&6; }
20578 case "$ac_cv_header_ldapssl_h" in
20581 cat >>confdefs.h <<_ACEOF
20582 #define HAVE_LDAPSSL_H 1
20589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_ssl.h" >&5
20590 $as_echo_n "checking for ldap_ssl.h... " >&6; }
20591 if ${ac_cv_header_ldap_ssl_h+:} false; then :
20592 $as_echo_n "(cached) " >&6
20595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20596 /* end confdefs.h. */
20600 #ifdef HAVE_WINDOWS_H
20601 #ifndef WIN32_LEAN_AND_MEAN
20602 #define WIN32_LEAN_AND_MEAN
20604 #include <windows.h>
20606 #ifdef HAVE_SYS_TYPES_H
20607 #include <sys/types.h>
20610 #ifndef LDAP_DEPRECATED
20611 #define LDAP_DEPRECATED 1
20619 #include <ldap_ssl.h>
20624 LDAP *ldp = ldapssl_init("dummy", LDAPS_PORT, 1);
20631 if ac_fn_c_try_compile "$LINENO"; then :
20633 ac_cv_header_ldap_ssl_h="yes"
20637 ac_cv_header_ldap_ssl_h="no"
20640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ldap_ssl_h" >&5
20644 $as_echo "$ac_cv_header_ldap_ssl_h" >&6; }
20645 case "$ac_cv_header_ldap_ssl_h" in
20648 cat >>confdefs.h <<_ACEOF
20649 #define HAVE_LDAP_SSL_H 1
20656 if test -z "$LDAPLIBNAME" ; then
20657 if test "$ac_cv_native_windows" = "yes"; then
20658 LDAPLIBNAME="wldap32"
20663 if test "$LDAPLIBNAME" ; then
20664 as_ac_Lib=`$as_echo "ac_cv_lib_"$LDAPLIBNAME"''_ldap_init" | $as_tr_sh`
20665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_init in -l\"$LDAPLIBNAME\"" >&5
20666 $as_echo_n "checking for ldap_init in -l\"$LDAPLIBNAME\"... " >&6; }
20667 if eval \${$as_ac_Lib+:} false; then :
20668 $as_echo_n "(cached) " >&6
20670 ac_check_lib_save_LIBS=$LIBS
20671 LIBS="-l"$LDAPLIBNAME" $LIBS"
20672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20673 /* end confdefs.h. */
20682 return ldap_init ();
20687 if ac_fn_c_try_link "$LINENO"; then :
20688 eval "$as_ac_Lib=yes"
20690 eval "$as_ac_Lib=no"
20692 rm -f core conftest.err conftest.$ac_objext \
20693 conftest$ac_exeext conftest.$ac_ext
20694 LIBS=$ac_check_lib_save_LIBS
20696 eval ac_res=\$$as_ac_Lib
20697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20698 $as_echo "$ac_res" >&6; }
20699 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20700 cat >>confdefs.h <<_ACEOF
20701 #define `$as_echo "HAVE_LIB"$LDAPLIBNAME"" | $as_tr_cpp` 1
20704 LIBS="-l"$LDAPLIBNAME" $LIBS"
20708 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&5
20709 $as_echo "$as_me: WARNING: \"$LDAPLIBNAME\" is not an LDAP library: LDAP disabled" >&2;}
20711 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20713 CURL_DISABLE_LDAP=1
20716 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20718 CURL_DISABLE_LDAPS=1
20725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LDAP libraries" >&5
20726 $as_echo_n "checking for LDAP libraries... " >&6; }
20732 curl_cv_save_LIBS="$LIBS"
20733 curl_cv_ldap_LIBS="unknown"
20735 for x_nlibs in '' "$u_libs" \
20739 '-lldapssl -lldapx -lldapsdk' \
20740 '-lldapsdk -lldapx -lldapssl' ; do
20741 if test "$curl_cv_ldap_LIBS" = "unknown"; then
20742 if test -z "$x_nlibs"; then
20743 LIBS="$curl_cv_save_LIBS"
20745 LIBS="$x_nlibs $curl_cv_save_LIBS"
20747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20748 /* end confdefs.h. */
20752 #ifdef HAVE_WINDOWS_H
20753 #ifndef WIN32_LEAN_AND_MEAN
20754 #define WIN32_LEAN_AND_MEAN
20756 #include <windows.h>
20758 #ifdef HAVE_SYS_TYPES_H
20759 #include <sys/types.h>
20763 #define NULL (void *)0
20765 #ifndef LDAP_DEPRECATED
20766 #define LDAP_DEPRECATED 1
20778 BerValue *bvp = NULL;
20779 BerElement *bep = ber_init(bvp);
20780 LDAP *ldp = ldap_init("dummy", LDAP_PORT);
20781 int res = ldap_unbind(ldp);
20789 if ac_fn_c_try_link "$LINENO"; then :
20791 curl_cv_ldap_LIBS="$x_nlibs"
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20799 LIBS="$curl_cv_save_LIBS"
20801 case X-"$curl_cv_ldap_LIBS" in
20803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find LDAP libraries" >&5
20804 $as_echo "cannot find LDAP libraries" >&6; }
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no additional lib required" >&5
20808 $as_echo "no additional lib required" >&6; }
20811 if test -z "$curl_cv_save_LIBS"; then
20812 LIBS="$curl_cv_ldap_LIBS"
20814 LIBS="$curl_cv_ldap_LIBS $curl_cv_save_LIBS"
20816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_ldap_LIBS" >&5
20817 $as_echo "$curl_cv_ldap_LIBS" >&6; }
20822 case X-"$curl_cv_ldap_LIBS" in
20824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&5
20825 $as_echo "$as_me: WARNING: Cannot find libraries for LDAP support: LDAP disabled" >&2;}
20827 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20829 CURL_DISABLE_LDAP=1
20832 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20834 CURL_DISABLE_LDAPS=1
20841 if test x$CURL_DISABLE_LDAP != x1 ; then
20843 if test "$LBERLIBNAME" ; then
20844 if test "$LBERLIBNAME" != "no" ; then
20845 as_ac_Lib=`$as_echo "ac_cv_lib_"$LBERLIBNAME"''_ber_free" | $as_tr_sh`
20846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ber_free in -l\"$LBERLIBNAME\"" >&5
20847 $as_echo_n "checking for ber_free in -l\"$LBERLIBNAME\"... " >&6; }
20848 if eval \${$as_ac_Lib+:} false; then :
20849 $as_echo_n "(cached) " >&6
20851 ac_check_lib_save_LIBS=$LIBS
20852 LIBS="-l"$LBERLIBNAME" $LIBS"
20853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20854 /* end confdefs.h. */
20863 return ber_free ();
20868 if ac_fn_c_try_link "$LINENO"; then :
20869 eval "$as_ac_Lib=yes"
20871 eval "$as_ac_Lib=no"
20873 rm -f core conftest.err conftest.$ac_objext \
20874 conftest$ac_exeext conftest.$ac_ext
20875 LIBS=$ac_check_lib_save_LIBS
20877 eval ac_res=\$$as_ac_Lib
20878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20879 $as_echo "$ac_res" >&6; }
20880 if eval test \"x\$"$as_ac_Lib"\" = x"yes"; then :
20881 cat >>confdefs.h <<_ACEOF
20882 #define `$as_echo "HAVE_LIB"$LBERLIBNAME"" | $as_tr_cpp` 1
20885 LIBS="-l"$LBERLIBNAME" $LIBS"
20889 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&5
20890 $as_echo "$as_me: WARNING: \"$LBERLIBNAME\" is not an LBER library: LDAP disabled" >&2;}
20892 $as_echo "#define CURL_DISABLE_LDAP 1" >>confdefs.h
20894 CURL_DISABLE_LDAP=1
20897 $as_echo "#define CURL_DISABLE_LDAPS 1" >>confdefs.h
20899 CURL_DISABLE_LDAPS=1
20907 if test x$CURL_DISABLE_LDAP != x1 ; then
20908 for ac_func in ldap_url_parse ldap_init_fd
20910 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20911 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20912 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
20913 cat >>confdefs.h <<_ACEOF
20914 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20921 if test "$LDAPLIBNAME" = "wldap32"; then
20922 curl_ldap_msg="enabled (winldap)"
20924 $as_echo "#define CURL_LDAP_WIN 1" >>confdefs.h
20927 curl_ldap_msg="enabled (OpenLDAP)"
20928 if test "x$ac_cv_func_ldap_init_fd" = "xyes"; then
20930 $as_echo "#define USE_OPENLDAP 1" >>confdefs.h
20938 if test x$CURL_DISABLE_LDAPS != x1 ; then
20939 curl_ldaps_msg="enabled"
20943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable IPv6" >&5
20944 $as_echo_n "checking whether to enable IPv6... " >&6; }
20945 # Check whether --enable-ipv6 was given.
20946 if test "${enable_ipv6+set}" = set; then :
20947 enableval=$enable_ipv6; case "$enableval" in
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20950 $as_echo "no" >&6; }
20953 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20954 $as_echo "yes" >&6; }
20959 if test "$cross_compiling" = yes; then :
20960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20961 $as_echo "no" >&6; }
20965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20966 /* end confdefs.h. */
20967 /* is AF_INET6 available? */
20968 #include <sys/types.h>
20969 #include <sys/socket.h>
20970 #include <stdlib.h> /* for exit() */
20973 if (socket(AF_INET6, SOCK_STREAM, 0) < 0)
20980 if ac_fn_c_try_run "$LINENO"; then :
20981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20982 $as_echo "yes" >&6; }
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20986 $as_echo "no" >&6; }
20989 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20990 conftest.$ac_objext conftest.beam conftest.$ac_ext
20996 if test "$ipv6" = "yes"; then
20997 curl_ipv6_msg="enabled"
21000 # Check if struct sockaddr_in6 have sin6_scope_id member
21001 if test "$ipv6" = yes; then
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if struct sockaddr_in6 has sin6_scope_id member" >&5
21003 $as_echo_n "checking if struct sockaddr_in6 has sin6_scope_id member... " >&6; }
21004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21005 /* end confdefs.h. */
21007 #include <sys/types.h>
21008 #include <netinet/in.h>
21011 struct sockaddr_in6 s; s.sin6_scope_id = 0;
21016 if ac_fn_c_try_compile "$LINENO"; then :
21017 have_sin6_scope_id=yes
21019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21020 if test "$have_sin6_scope_id" = yes; then
21021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21022 $as_echo "yes" >&6; }
21024 $as_echo "#define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1" >>confdefs.h
21027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21028 $as_echo "no" >&6; }
21033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argv can be written to" >&5
21034 $as_echo_n "checking if argv can be written to... " >&6; }
21035 if test "$cross_compiling" = yes; then :
21037 curl_cv_writable_argv=cross
21040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21041 /* end confdefs.h. */
21044 int main(int argc, char ** argv) {
21046 return (argv[0][0] == ' ')?0:1;
21051 if ac_fn_c_try_run "$LINENO"; then :
21053 curl_cv_writable_argv=yes
21057 curl_cv_writable_argv=no
21060 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21061 conftest.$ac_objext conftest.beam conftest.$ac_ext
21064 case $curl_cv_writable_argv in
21067 $as_echo "#define HAVE_WRITABLE_ARGV 1" >>confdefs.h
21069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21070 $as_echo "yes" >&6; }
21073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21074 $as_echo "no" >&6; }
21077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21078 $as_echo "no" >&6; }
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the previous check could not be made default was used" >&5
21080 $as_echo "$as_me: WARNING: the previous check could not be made default was used" >&2;}
21088 # Check whether --with-gssapi-includes was given.
21089 if test "${with_gssapi_includes+set}" = set; then :
21090 withval=$with_gssapi_includes; GSSAPI_INCS="-I$withval"
21097 # Check whether --with-gssapi-libs was given.
21098 if test "${with_gssapi_libs+set}" = set; then :
21099 withval=$with_gssapi_libs; GSSAPI_LIB_DIR="-L$withval"
21106 # Check whether --with-gssapi was given.
21107 if test "${with_gssapi+set}" = set; then :
21108 withval=$with_gssapi;
21109 GSSAPI_ROOT="$withval"
21110 if test x"$GSSAPI_ROOT" != xno; then
21112 if test x"$GSSAPI_ROOT" = xyes; then
21120 save_CPPFLAGS="$CPPFLAGS"
21121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API support is requested" >&5
21122 $as_echo_n "checking if GSS-API support is requested... " >&6; }
21123 if test x"$want_gss" = xyes; then
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21125 $as_echo "yes" >&6; }
21127 if test -z "$GSSAPI_INCS"; then
21128 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21129 GSSAPI_INCS=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --cflags gssapi`
21130 elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21131 GSSAPI_INCS=`$GSSAPI_ROOT/bin/krb5-config --cflags gssapi`
21132 elif test "$GSSAPI_ROOT" != "yes"; then
21133 GSSAPI_INCS="-I$GSSAPI_ROOT/include"
21137 CPPFLAGS="$CPPFLAGS $GSSAPI_INCS"
21139 ac_fn_c_check_header_mongrel "$LINENO" "gss.h" "ac_cv_header_gss_h" "$ac_includes_default"
21140 if test "x$ac_cv_header_gss_h" = xyes; then :
21143 $as_echo "#define HAVE_GSSGNU 1" >>confdefs.h
21149 for ac_header in gssapi/gssapi.h
21151 ac_fn_c_check_header_mongrel "$LINENO" "gssapi/gssapi.h" "ac_cv_header_gssapi_gssapi_h" "$ac_includes_default"
21152 if test "x$ac_cv_header_gssapi_gssapi_h" = xyes; then :
21153 cat >>confdefs.h <<_ACEOF
21154 #define HAVE_GSSAPI_GSSAPI_H 1
21163 for ac_header in gssapi/gssapi_generic.h gssapi/gssapi_krb5.h
21165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21166 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
21167 $ac_includes_default
21168 #ifdef HAVE_GSSAPI_GSSAPI_H
21169 #include <gssapi/gssapi.h>
21173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21174 cat >>confdefs.h <<_ACEOF
21175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21184 if test "x$not_mit" = "x1"; then
21185 ac_fn_c_check_header_mongrel "$LINENO" "gssapi.h" "ac_cv_header_gssapi_h" "$ac_includes_default"
21186 if test "x$ac_cv_header_gssapi_h" = xyes; then :
21189 $as_echo "#define HAVE_GSSHEIMDAL 1" >>confdefs.h
21195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling GSS-API support since no header files were found" >&5
21196 $as_echo "$as_me: WARNING: disabling GSS-API support since no header files were found" >&2;}
21204 $as_echo "#define HAVE_GSSMIT 1" >>confdefs.h
21206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE" >&5
21207 $as_echo_n "checking if GSS-API headers declare GSS_C_NT_HOSTBASED_SERVICE... " >&6; }
21208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21209 /* end confdefs.h. */
21212 #include <gssapi/gssapi.h>
21213 #include <gssapi/gssapi_generic.h>
21214 #include <gssapi/gssapi_krb5.h>
21222 GSS_C_NT_HOSTBASED_SERVICE,
21230 if ac_fn_c_try_compile "$LINENO"; then :
21232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21233 $as_echo "yes" >&6; }
21237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21238 $as_echo "no" >&6; }
21240 $as_echo "#define HAVE_OLD_GSSMIT 1" >>confdefs.h
21244 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21253 $as_echo "no" >&6; }
21255 if test x"$want_gss" = xyes; then
21257 $as_echo "#define HAVE_GSSAPI 1" >>confdefs.h
21260 curl_gss_msg="enabled (MIT Kerberos/Heimdal)"
21262 if test -n "$gnu_gss"; then
21263 curl_gss_msg="enabled (GNU GSS)"
21264 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21266 elif test -z "$GSSAPI_LIB_DIR"; then
21269 LIBS="-lgssapi_krb5 -lresolv $LIBS"
21272 if test -n "$host_alias" -a -f "$GSSAPI_ROOT/bin/$host_alias-krb5-config"; then
21273 gss_libs=`$GSSAPI_ROOT/bin/$host_alias-krb5-config --libs gssapi`
21274 LIBS="$gss_libs $LIBS"
21275 elif test -f "$GSSAPI_ROOT/bin/krb5-config"; then
21276 gss_libs=`$GSSAPI_ROOT/bin/krb5-config --libs gssapi`
21277 LIBS="$gss_libs $LIBS"
21284 gss_libname="gssapi"
21288 if test "$GSSAPI_ROOT" != "yes"; then
21289 LDFLAGS="$LDFLAGS -L$GSSAPI_ROOT/lib$libsuff"
21290 LIBS="-l$gss_libname $LIBS"
21292 LIBS="-l$gss_libname $LIBS"
21298 LDFLAGS="$LDFLAGS $GSSAPI_LIB_DIR"
21304 LIBS="-lgssapi $LIBS"
21309 CPPFLAGS="$save_CPPFLAGS"
21315 # Check whether --with-winssl was given.
21316 if test "${with_winssl+set}" = set; then :
21317 withval=$with_winssl; OPT_WINSSL=$withval
21321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native SSL/TLS (Windows native builds only)" >&5
21322 $as_echo_n "checking whether to enable Windows native SSL/TLS (Windows native builds only)... " >&6; }
21323 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21324 if test "x$OPT_WINSSL" != "xno" &&
21325 test "x$ac_cv_native_windows" = "xyes"; then
21326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21327 $as_echo "yes" >&6; }
21329 $as_echo "#define USE_SCHANNEL 1" >>confdefs.h
21333 curl_ssl_msg="enabled (Windows-native)"
21335 # --with-winssl implies --enable-sspi
21337 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
21341 curl_sspi_msg="enabled"
21343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21344 $as_echo "no" >&6; }
21347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21348 $as_echo "no" >&6; }
21353 # Check whether --with-darwinssl was given.
21354 if test "${with_darwinssl+set}" = set; then :
21355 withval=$with_darwinssl; OPT_DARWINSSL=$withval
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable iOS/Mac OS X native SSL/TLS" >&5
21360 $as_echo_n "checking whether to enable iOS/Mac OS X native SSL/TLS... " >&6; }
21361 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
21362 if test "x$OPT_DARWINSSL" != "xno" &&
21363 test -d "/System/Library/Frameworks/Security.framework"; then
21364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21365 $as_echo "yes" >&6; }
21367 $as_echo "#define USE_DARWINSSL 1" >>confdefs.h
21371 curl_ssl_msg="enabled (iOS/Mac OS X-native)"
21372 DARWINSSL_ENABLED=1
21373 LDFLAGS="$LDFLAGS -framework CoreFoundation -framework Security"
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21376 $as_echo "no" >&6; }
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21380 $as_echo "no" >&6; }
21387 # Check whether --with-ssl was given.
21388 if test "${with_ssl+set}" = set; then :
21389 withval=$with_ssl; OPT_SSL=$withval
21393 if test "$curl_ssl_msg" = "$init_ssl_msg" && test X"$OPT_SSL" != Xno; then
21394 CLEANLDFLAGS="$LDFLAGS"
21395 CLEANCPPFLAGS="$CPPFLAGS"
21400 if test x$cross_compiling != xyes; then
21403 PREFIX_OPENSSL=/usr/local/ssl
21404 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21407 if test x$cross_compiling != xyes; then
21414 PREFIX_OPENSSL=$OPT_SSL
21416 OPENSSL_PCDIR="$OPT_SSL/lib/pkgconfig"
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&5
21418 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$OPENSSL_PCDIR\"" >&6;}
21419 if test -f "$OPENSSL_PCDIR/openssl.pc"; then
21423 LIB_OPENSSL="$PREFIX_OPENSSL/lib$libsuff"
21424 if test "$PREFIX_OPENSSL" != "/usr" ; then
21425 SSL_LDFLAGS="-L$LIB_OPENSSL"
21426 SSL_CPPFLAGS="-I$PREFIX_OPENSSL/include"
21428 SSL_CPPFLAGS="$SSL_CPPFLAGS -I$PREFIX_OPENSSL/include/openssl"
21432 if test "$PKGTEST" = "yes"; then
21438 if test -n "$ac_tool_prefix"; then
21439 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
21440 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21442 $as_echo_n "checking for $ac_word... " >&6; }
21443 if ${ac_cv_path_PKGCONFIG+:} false; then :
21444 $as_echo_n "(cached) " >&6
21448 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
21451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21452 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21453 for as_dir in $as_dummy
21456 test -z "$as_dir" && as_dir=.
21457 for ac_exec_ext in '' $ac_executable_extensions; do
21458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21459 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21470 PKGCONFIG=$ac_cv_path_PKGCONFIG
21471 if test -n "$PKGCONFIG"; then
21472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
21473 $as_echo "$PKGCONFIG" >&6; }
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21476 $as_echo "no" >&6; }
21481 if test -z "$ac_cv_path_PKGCONFIG"; then
21482 ac_pt_PKGCONFIG=$PKGCONFIG
21483 # Extract the first word of "pkg-config", so it can be a program name with args.
21484 set dummy pkg-config; ac_word=$2
21485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21486 $as_echo_n "checking for $ac_word... " >&6; }
21487 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
21488 $as_echo_n "(cached) " >&6
21490 case $ac_pt_PKGCONFIG in
21492 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
21495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21496 as_dummy="$PATH:/usr/bin:/usr/local/bin"
21497 for as_dir in $as_dummy
21500 test -z "$as_dir" && as_dir=.
21501 for ac_exec_ext in '' $ac_executable_extensions; do
21502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21503 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
21504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21514 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
21515 if test -n "$ac_pt_PKGCONFIG"; then
21516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
21517 $as_echo "$ac_pt_PKGCONFIG" >&6; }
21519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21520 $as_echo "no" >&6; }
21523 if test "x$ac_pt_PKGCONFIG" = x; then
21526 case $cross_compiling:$ac_tool_warned in
21528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21529 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21530 ac_tool_warned=yes ;;
21532 PKGCONFIG=$ac_pt_PKGCONFIG
21535 PKGCONFIG="$ac_cv_path_PKGCONFIG"
21539 if test x$PKGCONFIG != xno; then
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for openssl options with pkg-config" >&5
21541 $as_echo_n "checking for openssl options with pkg-config... " >&6; }
21543 if test -n "$OPENSSL_PCDIR"; then
21544 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21545 export PKG_CONFIG_LIBDIR
21547 $PKGCONFIG --exists openssl >/dev/null 2>&1 && echo 1`
21549 if test -z "$itexists"; then
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21552 $as_echo "no" >&6; }
21554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
21555 $as_echo "found" >&6; }
21560 if test "$PKGCONFIG" != "no" ; then
21562 if test -n "$OPENSSL_PCDIR"; then
21563 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21564 export PKG_CONFIG_LIBDIR
21566 $PKGCONFIG --libs-only-l openssl 2>/dev/null`
21569 if test -n "$OPENSSL_PCDIR"; then
21570 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21571 export PKG_CONFIG_LIBDIR
21573 $PKGCONFIG --libs-only-L openssl 2>/dev/null`
21576 if test -n "$OPENSSL_PCDIR"; then
21577 PKG_CONFIG_LIBDIR="$OPENSSL_PCDIR"
21578 export PKG_CONFIG_LIBDIR
21580 $PKGCONFIG --cflags-only-I openssl 2>/dev/null`
21582 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&5
21583 $as_echo "$as_me: pkg-config: SSL_LIBS: \"$SSL_LIBS\"" >&6;}
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&5
21585 $as_echo "$as_me: pkg-config: SSL_LDFLAGS: \"$SSL_LDFLAGS\"" >&6;}
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&5
21587 $as_echo "$as_me: pkg-config: SSL_CPPFLAGS: \"$SSL_CPPFLAGS\"" >&6;}
21589 LIB_OPENSSL=`echo $SSL_LDFLAGS | sed -e 's/-L//g'`
21591 LIBS="$SSL_LIBS $LIBS"
21595 CPPFLAGS="$CPPFLAGS $SSL_CPPFLAGS"
21596 LDFLAGS="$LDFLAGS $SSL_LDFLAGS"
21599 *-*-msys* | *-*-mingw*)
21600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdi32" >&5
21601 $as_echo_n "checking for gdi32... " >&6; }
21602 my_ac_save_LIBS=$LIBS
21603 LIBS="-lgdi32 $LIBS"
21604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21605 /* end confdefs.h. */
21606 #include <windef.h>
21607 #include <wingdi.h>
21615 if ac_fn_c_try_link "$LINENO"; then :
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21617 $as_echo "yes" >&6; }
21619 LIBS=$my_ac_save_LIBS
21620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21621 $as_echo "no" >&6; }
21624 rm -f core conftest.err conftest.$ac_objext \
21625 conftest$ac_exeext conftest.$ac_ext
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
21630 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
21631 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
21632 $as_echo_n "(cached) " >&6
21634 ac_check_lib_save_LIBS=$LIBS
21635 LIBS="-lcrypto $LIBS"
21636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21637 /* end confdefs.h. */
21643 char CRYPTO_lock ();
21646 return CRYPTO_lock ();
21651 if ac_fn_c_try_link "$LINENO"; then :
21652 ac_cv_lib_crypto_CRYPTO_lock=yes
21654 ac_cv_lib_crypto_CRYPTO_lock=no
21656 rm -f core conftest.err conftest.$ac_objext \
21657 conftest$ac_exeext conftest.$ac_ext
21658 LIBS=$ac_check_lib_save_LIBS
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
21661 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
21662 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
21665 LIBS="-lcrypto $LIBS"
21669 LDFLAGS="$CLEANLDFLAGS -L$LIB_OPENSSL"
21670 CPPFLAGS="$CLEANCPPFLAGS -I$PREFIX_OPENSSL/include/openssl -I$PREFIX_OPENSSL/include"
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_add_lock in -lcrypto" >&5
21672 $as_echo_n "checking for CRYPTO_add_lock in -lcrypto... " >&6; }
21673 if ${ac_cv_lib_crypto_CRYPTO_add_lock+:} false; then :
21674 $as_echo_n "(cached) " >&6
21676 ac_check_lib_save_LIBS=$LIBS
21677 LIBS="-lcrypto $LIBS"
21678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21679 /* end confdefs.h. */
21685 char CRYPTO_add_lock ();
21688 return CRYPTO_add_lock ();
21693 if ac_fn_c_try_link "$LINENO"; then :
21694 ac_cv_lib_crypto_CRYPTO_add_lock=yes
21696 ac_cv_lib_crypto_CRYPTO_add_lock=no
21698 rm -f core conftest.err conftest.$ac_objext \
21699 conftest$ac_exeext conftest.$ac_ext
21700 LIBS=$ac_check_lib_save_LIBS
21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_add_lock" >&5
21703 $as_echo "$ac_cv_lib_crypto_CRYPTO_add_lock" >&6; }
21704 if test "x$ac_cv_lib_crypto_CRYPTO_add_lock" = xyes; then :
21707 LIBS="-lcrypto $LIBS"
21710 LDFLAGS="$CLEANLDFLAGS"
21711 CPPFLAGS="$CLEANCPPFLAGS"
21721 if test X"$HAVECRYPTO" = X"yes"; then
21723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21724 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21725 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21726 $as_echo_n "(cached) " >&6
21728 ac_check_lib_save_LIBS=$LIBS
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h. */
21737 char SSL_connect ();
21740 return SSL_connect ();
21745 if ac_fn_c_try_link "$LINENO"; then :
21746 ac_cv_lib_ssl_SSL_connect=yes
21748 ac_cv_lib_ssl_SSL_connect=no
21750 rm -f core conftest.err conftest.$ac_objext \
21751 conftest$ac_exeext conftest.$ac_ext
21752 LIBS=$ac_check_lib_save_LIBS
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21755 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21756 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21757 cat >>confdefs.h <<_ACEOF
21758 #define HAVE_LIBSSL 1
21766 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl with RSAglue/rsaref libs in use" >&5
21768 $as_echo_n "checking for ssl with RSAglue/rsaref libs in use... " >&6; };
21770 LIBS="-lRSAglue -lrsaref $LIBS"
21771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
21772 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
21773 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
21774 $as_echo_n "(cached) " >&6
21776 ac_check_lib_save_LIBS=$LIBS
21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h. */
21785 char SSL_connect ();
21788 return SSL_connect ();
21793 if ac_fn_c_try_link "$LINENO"; then :
21794 ac_cv_lib_ssl_SSL_connect=yes
21796 ac_cv_lib_ssl_SSL_connect=no
21798 rm -f core conftest.err conftest.$ac_objext \
21799 conftest$ac_exeext conftest.$ac_ext
21800 LIBS=$ac_check_lib_save_LIBS
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
21803 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
21804 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
21805 cat >>confdefs.h <<_ACEOF
21806 #define HAVE_LIBSSL 1
21813 if test "$ac_cv_lib_ssl_SSL_connect" != yes; then
21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21815 $as_echo "no" >&6; }
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21819 $as_echo "yes" >&6; }
21824 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
21825 openssl/pem.h openssl/ssl.h openssl/err.h
21827 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21828 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21829 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21830 cat >>confdefs.h <<_ACEOF
21831 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21833 curl_ssl_msg="enabled (OpenSSL)"
21836 $as_echo "#define USE_OPENSSL 1" >>confdefs.h
21843 if test $ac_cv_header_openssl_x509_h = no; then
21844 for ac_header in x509.h rsa.h crypto.h pem.h ssl.h err.h
21846 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21847 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21848 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21849 cat >>confdefs.h <<_ACEOF
21850 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21858 if test $ac_cv_header_x509_h = yes &&
21859 test $ac_cv_header_crypto_h = yes &&
21860 test $ac_cv_header_ssl_h = yes; then
21861 curl_ssl_msg="enabled (OpenSSL)"
21867 if test X"$OPENSSL_ENABLED" = X"1"; then
21869 $as_echo "#define USE_SSLEAY 1" >>confdefs.h
21872 for ac_header in openssl/pkcs12.h
21874 ac_fn_c_check_header_mongrel "$LINENO" "openssl/pkcs12.h" "ac_cv_header_openssl_pkcs12_h" "$ac_includes_default"
21875 if test "x$ac_cv_header_openssl_pkcs12_h" = xyes; then :
21876 cat >>confdefs.h <<_ACEOF
21877 #define HAVE_OPENSSL_PKCS12_H 1
21887 USE_SSLEAY="$OPENSSL_ENABLED"
21890 if test X"$OPT_SSL" != Xoff &&
21891 test "$OPENSSL_ENABLED" != "1"; then
21892 as_fn_error $? "OpenSSL libs and/or directories were not found where specified!" "$LINENO" 5
21896 if test X"$OPENSSL_ENABLED" = X"1"; then
21897 ac_fn_c_check_func "$LINENO" "ENGINE_init" "ac_cv_func_ENGINE_init"
21898 if test "x$ac_cv_func_ENGINE_init" = xyes; then :
21900 for ac_header in openssl/engine.h
21902 ac_fn_c_check_header_mongrel "$LINENO" "openssl/engine.h" "ac_cv_header_openssl_engine_h" "$ac_includes_default"
21903 if test "x$ac_cv_header_openssl_engine_h" = xyes; then :
21904 cat >>confdefs.h <<_ACEOF
21905 #define HAVE_OPENSSL_ENGINE_H 1
21912 for ac_func in ENGINE_load_builtin_engines
21914 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21915 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21916 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21917 cat >>confdefs.h <<_ACEOF
21918 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21929 for ac_func in RAND_status \
21933 CRYPTO_cleanup_all_ex_data \
21935 SSLv2_client_method
21937 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21938 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
21939 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
21940 cat >>confdefs.h <<_ACEOF
21941 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yaSSL using OpenSSL compatibility mode" >&5
21950 $as_echo_n "checking for yaSSL using OpenSSL compatibility mode... " >&6; }
21951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21952 /* end confdefs.h. */
21955 #include <openssl/ssl.h>
21960 #if defined(YASSL_VERSION) && defined(OPENSSL_VERSION_NUMBER)
21961 int dummy = SSL_ERROR_NONE;
21963 Not the yaSSL OpenSSL compatibility header.
21971 if ac_fn_c_try_compile "$LINENO"; then :
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21974 $as_echo "yes" >&6; }
21976 cat >>confdefs.h <<_ACEOF
21977 #define USE_YASSLEMUL 1
21980 curl_ssl_msg="enabled (OpenSSL emulation by yaSSL)"
21984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21985 $as_echo "no" >&6; }
21988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21991 if test "$OPENSSL_ENABLED" = "1"; then
21992 if test -n "$LIB_OPENSSL"; then
21993 if test "x$cross_compiling" != "xyes"; then
21994 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_OPENSSL"
21995 export LD_LIBRARY_PATH
21996 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&5
21997 $as_echo "$as_me: Added $LIB_OPENSSL to LD_LIBRARY_PATH" >&6;}
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers version" >&5
22007 $as_echo_n "checking for OpenSSL headers version... " >&6; }
22009 if test -z "$SED"; then
22010 as_fn_error $? "SED not set. Cannot continue without SED being set." "$LINENO" 5
22012 if test -z "$GREP"; then
22013 as_fn_error $? "GREP not set. Cannot continue without GREP being set." "$LINENO" 5
22017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22018 /* end confdefs.h. */
22021 # ifdef USE_OPENSSL
22022 # include <openssl/crypto.h>
22024 # include <crypto.h>
22027 #ifdef OPENSSL_VERSION_NUMBER
22028 CURL_DEF_TOKEN OPENSSL_VERSION_NUMBER
22033 if ac_fn_c_try_cpp "$LINENO"; then :
22035 tmp_exp=`eval "$ac_cpp conftest.$ac_ext" 2>/dev/null | \
22036 "$GREP" CURL_DEF_TOKEN 2>/dev/null | \
22037 "$SED" 's/.*CURL_DEF_TOKEN[ ][ ]*//' 2>/dev/null | \
22038 "$SED" 's/["][ ]*["]//g' 2>/dev/null`
22039 if test -z "$tmp_exp" || test "$tmp_exp" = "OPENSSL_VERSION_NUMBER"; then
22044 rm -f conftest.err conftest.i conftest.$ac_ext
22045 if test -z "$tmp_exp"; then
22046 curl_cv_have_def_OPENSSL_VERSION_NUMBER=no
22049 curl_cv_have_def_OPENSSL_VERSION_NUMBER=yes
22050 curl_cv_def_OPENSSL_VERSION_NUMBER=$tmp_exp
22054 if test "$curl_cv_have_def_OPENSSL_VERSION_NUMBER" = "yes"; then
22055 tst_verlen=`expr "$curl_cv_def_OPENSSL_VERSION_NUMBER" : '.*'`
22056 case "x$tst_verlen" in
22058 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22059 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 4`
22060 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22061 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22064 tst_vermaj=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 3`
22065 tst_vermin=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 5`
22066 tst_verfix=`echo $curl_cv_def_OPENSSL_VERSION_NUMBER | cut -c 7`
22067 tst_api=0x$tst_vermaj$tst_vermin$tst_verfix
22074 0x110) tst_show="1.1.0" ;;
22075 0x101) tst_show="1.0.1" ;;
22076 0x100) tst_show="1.0.0" ;;
22077 0x099) tst_show="0.9.9" ;;
22078 0x098) tst_show="0.9.8" ;;
22079 0x097) tst_show="0.9.7" ;;
22080 0x096) tst_show="0.9.6" ;;
22081 0x095) tst_show="0.9.5" ;;
22082 0x094) tst_show="0.9.4" ;;
22083 0x093) tst_show="0.9.3" ;;
22084 0x092) tst_show="0.9.2" ;;
22085 0x091) tst_show="0.9.1" ;;
22086 *) tst_show="unknown" ;;
22088 tst_show="$tst_show - $curl_cv_def_OPENSSL_VERSION_NUMBER"
22092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22093 $as_echo "$tst_show" >&6; }
22095 curl_openssl_api_headers=$tst_api
22101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL library version" >&5
22102 $as_echo_n "checking for OpenSSL library version... " >&6; }
22103 if test "$tst_api" = "unknown"; then
22106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22107 /* end confdefs.h. */
22110 #define SSL_CTX_set_not_resumbl_sess_cb innocuous_SSL_CTX_set_not_resumbl_sess_cb
22112 # include <limits.h>
22114 # include <assert.h>
22116 #undef SSL_CTX_set_not_resumbl_sess_cb
22120 char SSL_CTX_set_not_resumbl_sess_cb ();
22121 #if defined __stub_SSL_CTX_set_not_resumbl_sess_cb || defined __stub___SSL_CTX_set_not_resumbl_sess_cb
22127 return SSL_CTX_set_not_resumbl_sess_cb ();
22133 if ac_fn_c_try_link "$LINENO"; then :
22138 rm -f core conftest.err conftest.$ac_objext \
22139 conftest$ac_exeext conftest.$ac_ext
22142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22143 /* end confdefs.h. */
22146 #define SSL_CTX_set_not_resumable_session_callback innocuous_SSL_CTX_set_not_resumable_session_callback
22148 # include <limits.h>
22150 # include <assert.h>
22152 #undef SSL_CTX_set_not_resumable_session_callback
22156 char SSL_CTX_set_not_resumable_session_callback ();
22157 #if defined __stub_SSL_CTX_set_not_resumable_session_callback || defined __stub___SSL_CTX_set_not_resumable_session_callback
22163 return SSL_CTX_set_not_resumable_session_callback ();
22169 if ac_fn_c_try_link "$LINENO"; then :
22174 rm -f core conftest.err conftest.$ac_objext \
22175 conftest$ac_exeext conftest.$ac_ext
22179 if test "$tst_api" = "unknown"; then
22180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22181 /* end confdefs.h. */
22184 #define SSL_renegotiate_abbreviated innocuous_SSL_renegotiate_abbreviated
22186 # include <limits.h>
22188 # include <assert.h>
22190 #undef SSL_renegotiate_abbreviated
22194 char SSL_renegotiate_abbreviated ();
22195 #if defined __stub_SSL_renegotiate_abbreviated || defined __stub___SSL_renegotiate_abbreviated
22201 return SSL_renegotiate_abbreviated ();
22207 if ac_fn_c_try_link "$LINENO"; then :
22212 rm -f core conftest.err conftest.$ac_objext \
22213 conftest$ac_exeext conftest.$ac_ext
22215 if test "$tst_api" = "unknown"; then
22216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22217 /* end confdefs.h. */
22220 #define OBJ_add_sigid innocuous_OBJ_add_sigid
22222 # include <limits.h>
22224 # include <assert.h>
22226 #undef OBJ_add_sigid
22230 char OBJ_add_sigid ();
22231 #if defined __stub_OBJ_add_sigid || defined __stub___OBJ_add_sigid
22237 return OBJ_add_sigid ();
22243 if ac_fn_c_try_link "$LINENO"; then :
22248 rm -f core conftest.err conftest.$ac_objext \
22249 conftest$ac_exeext conftest.$ac_ext
22251 if test "$tst_api" = "unknown"; then
22252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22253 /* end confdefs.h. */
22256 #define ERR_set_mark innocuous_ERR_set_mark
22258 # include <limits.h>
22260 # include <assert.h>
22262 #undef ERR_set_mark
22266 char ERR_set_mark ();
22267 #if defined __stub_ERR_set_mark || defined __stub___ERR_set_mark
22273 return ERR_set_mark ();
22279 if ac_fn_c_try_link "$LINENO"; then :
22284 rm -f core conftest.err conftest.$ac_objext \
22285 conftest$ac_exeext conftest.$ac_ext
22287 if test "$tst_api" = "unknown"; then
22288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22289 /* end confdefs.h. */
22292 #define ERR_peek_last_error innocuous_ERR_peek_last_error
22294 # include <limits.h>
22296 # include <assert.h>
22298 #undef ERR_peek_last_error
22302 char ERR_peek_last_error ();
22303 #if defined __stub_ERR_peek_last_error || defined __stub___ERR_peek_last_error
22309 return ERR_peek_last_error ();
22315 if ac_fn_c_try_link "$LINENO"; then :
22320 rm -f core conftest.err conftest.$ac_objext \
22321 conftest$ac_exeext conftest.$ac_ext
22323 if test "$tst_api" = "unknown"; then
22324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22325 /* end confdefs.h. */
22328 #define c2i_ASN1_OBJECT innocuous_c2i_ASN1_OBJECT
22330 # include <limits.h>
22332 # include <assert.h>
22334 #undef c2i_ASN1_OBJECT
22338 char c2i_ASN1_OBJECT ();
22339 #if defined __stub_c2i_ASN1_OBJECT || defined __stub___c2i_ASN1_OBJECT
22345 return c2i_ASN1_OBJECT ();
22351 if ac_fn_c_try_link "$LINENO"; then :
22356 rm -f core conftest.err conftest.$ac_objext \
22357 conftest$ac_exeext conftest.$ac_ext
22359 if test "$tst_api" = "unknown"; then
22360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22361 /* end confdefs.h. */
22364 #define SSL_CTX_set_purpose innocuous_SSL_CTX_set_purpose
22366 # include <limits.h>
22368 # include <assert.h>
22370 #undef SSL_CTX_set_purpose
22374 char SSL_CTX_set_purpose ();
22375 #if defined __stub_SSL_CTX_set_purpose || defined __stub___SSL_CTX_set_purpose
22381 return SSL_CTX_set_purpose ();
22387 if ac_fn_c_try_link "$LINENO"; then :
22392 rm -f core conftest.err conftest.$ac_objext \
22393 conftest$ac_exeext conftest.$ac_ext
22395 if test "$tst_api" = "unknown"; then
22396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22397 /* end confdefs.h. */
22400 #define OBJ_obj2txt innocuous_OBJ_obj2txt
22402 # include <limits.h>
22404 # include <assert.h>
22410 char OBJ_obj2txt ();
22411 #if defined __stub_OBJ_obj2txt || defined __stub___OBJ_obj2txt
22417 return OBJ_obj2txt ();
22423 if ac_fn_c_try_link "$LINENO"; then :
22428 rm -f core conftest.err conftest.$ac_objext \
22429 conftest$ac_exeext conftest.$ac_ext
22431 if test "$tst_api" = "unknown"; then
22432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22433 /* end confdefs.h. */
22436 #define SSL_get_verify_depth innocuous_SSL_get_verify_depth
22438 # include <limits.h>
22440 # include <assert.h>
22442 #undef SSL_get_verify_depth
22446 char SSL_get_verify_depth ();
22447 #if defined __stub_SSL_get_verify_depth || defined __stub___SSL_get_verify_depth
22453 return SSL_get_verify_depth ();
22459 if ac_fn_c_try_link "$LINENO"; then :
22464 rm -f core conftest.err conftest.$ac_objext \
22465 conftest$ac_exeext conftest.$ac_ext
22467 if test "$tst_api" = "unknown"; then
22468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22469 /* end confdefs.h. */
22472 #define SSL_library_init innocuous_SSL_library_init
22474 # include <limits.h>
22476 # include <assert.h>
22478 #undef SSL_library_init
22482 char SSL_library_init ();
22483 #if defined __stub_SSL_library_init || defined __stub___SSL_library_init
22489 return SSL_library_init ();
22495 if ac_fn_c_try_link "$LINENO"; then :
22500 rm -f core conftest.err conftest.$ac_objext \
22501 conftest$ac_exeext conftest.$ac_ext
22503 if test "$tst_api" = "unknown"; then
22504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22505 /* end confdefs.h. */
22508 #define SSL_CTX_set_cipher_list innocuous_SSL_CTX_set_cipher_list
22510 # include <limits.h>
22512 # include <assert.h>
22514 #undef SSL_CTX_set_cipher_list
22518 char SSL_CTX_set_cipher_list ();
22519 #if defined __stub_SSL_CTX_set_cipher_list || defined __stub___SSL_CTX_set_cipher_list
22525 return SSL_CTX_set_cipher_list ();
22531 if ac_fn_c_try_link "$LINENO"; then :
22536 rm -f core conftest.err conftest.$ac_objext \
22537 conftest$ac_exeext conftest.$ac_ext
22540 0x110) tst_show="1.1.0" ;;
22541 0x101) tst_show="1.0.1" ;;
22542 0x100) tst_show="1.0.0" ;;
22543 0x099) tst_show="0.9.9" ;;
22544 0x098) tst_show="0.9.8" ;;
22545 0x097) tst_show="0.9.7" ;;
22546 0x096) tst_show="0.9.6" ;;
22547 0x095) tst_show="0.9.5" ;;
22548 0x094) tst_show="0.9.4" ;;
22549 0x093) tst_show="0.9.3" ;;
22550 0x092) tst_show="0.9.2" ;;
22551 0x091) tst_show="0.9.1" ;;
22552 *) tst_show="unknown" ;;
22554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_show" >&5
22555 $as_echo "$tst_show" >&6; }
22557 curl_openssl_api_library=$tst_api
22562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenSSL headers and library versions matching" >&5
22563 $as_echo_n "checking for OpenSSL headers and library versions matching... " >&6; }
22564 if test "$curl_openssl_api_headers" = "unknown" ||
22565 test "$curl_openssl_api_library" = "unknown"; then
22567 tst_warns="Can not compare OpenSSL headers and library versions."
22568 elif test "$curl_openssl_api_headers" != "$curl_openssl_api_library"; then
22570 tst_warns="OpenSSL headers and library versions do not match."
22572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_match" >&5
22573 $as_echo "$tst_match" >&6; }
22574 if test "$tst_match" != "yes"; then
22575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $tst_warns" >&5
22576 $as_echo "$as_me: WARNING: $tst_warns" >&2;}
22584 if test X"$OPENSSL_ENABLED" = X"1"; then
22586 # Check whether --with-egd-socket was given.
22587 if test "${with_egd_socket+set}" = set; then :
22588 withval=$with_egd_socket; EGD_SOCKET="$withval"
22592 if test -n "$EGD_SOCKET" ; then
22594 cat >>confdefs.h <<_ACEOF
22595 #define EGD_SOCKET "$EGD_SOCKET"
22601 # Check whether --with-random was given.
22602 if test "${with_random+set}" = set; then :
22603 withval=$with_random; RANDOM_FILE="$withval"
22606 if test x$cross_compiling != xyes; then
22607 as_ac_File=`$as_echo "ac_cv_file_"/dev/urandom"" | $as_tr_sh`
22608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"/dev/urandom\"" >&5
22609 $as_echo_n "checking for \"/dev/urandom\"... " >&6; }
22610 if eval \${$as_ac_File+:} false; then :
22611 $as_echo_n "(cached) " >&6
22613 test "$cross_compiling" = yes &&
22614 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
22615 if test -r ""/dev/urandom""; then
22616 eval "$as_ac_File=yes"
22618 eval "$as_ac_File=no"
22621 eval ac_res=\$$as_ac_File
22622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
22623 $as_echo "$ac_res" >&6; }
22624 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
22625 RANDOM_FILE="/dev/urandom"
22629 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the /dev/urandom detection when cross-compiling" >&5
22630 $as_echo "$as_me: WARNING: skipped the /dev/urandom detection when cross-compiling" >&2;}
22636 if test -n "$RANDOM_FILE" && test X"$RANDOM_FILE" != Xno ; then
22639 cat >>confdefs.h <<_ACEOF
22640 #define RANDOM_FILE "$RANDOM_FILE"
22646 if test "$OPENSSL_ENABLED" = "1"; then
22647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SRP_Calc_client_key in -lcrypto" >&5
22648 $as_echo_n "checking for SRP_Calc_client_key in -lcrypto... " >&6; }
22649 if ${ac_cv_lib_crypto_SRP_Calc_client_key+:} false; then :
22650 $as_echo_n "(cached) " >&6
22652 ac_check_lib_save_LIBS=$LIBS
22653 LIBS="-lcrypto $LIBS"
22654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22655 /* end confdefs.h. */
22661 char SRP_Calc_client_key ();
22664 return SRP_Calc_client_key ();
22669 if ac_fn_c_try_link "$LINENO"; then :
22670 ac_cv_lib_crypto_SRP_Calc_client_key=yes
22672 ac_cv_lib_crypto_SRP_Calc_client_key=no
22674 rm -f core conftest.err conftest.$ac_objext \
22675 conftest$ac_exeext conftest.$ac_ext
22676 LIBS=$ac_check_lib_save_LIBS
22678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_SRP_Calc_client_key" >&5
22679 $as_echo "$ac_cv_lib_crypto_SRP_Calc_client_key" >&6; }
22680 if test "x$ac_cv_lib_crypto_SRP_Calc_client_key" = xyes; then :
22683 $as_echo "#define HAVE_SSLEAY_SRP 1" >>confdefs.h
22696 # Check whether --with-gnutls was given.
22697 if test "${with_gnutls+set}" = set; then :
22698 withval=$with_gnutls; OPT_GNUTLS=$withval
22702 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
22704 if test X"$OPT_GNUTLS" != Xno; then
22712 if test "x$OPT_GNUTLS" = "xyes"; then
22717 if test -n "$ac_tool_prefix"; then
22718 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22719 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22721 $as_echo_n "checking for $ac_word... " >&6; }
22722 if ${ac_cv_path_PKGCONFIG+:} false; then :
22723 $as_echo_n "(cached) " >&6
22727 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
22730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22731 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22732 for as_dir in $as_dummy
22735 test -z "$as_dir" && as_dir=.
22736 for ac_exec_ext in '' $ac_executable_extensions; do
22737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22738 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22749 PKGCONFIG=$ac_cv_path_PKGCONFIG
22750 if test -n "$PKGCONFIG"; then
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
22752 $as_echo "$PKGCONFIG" >&6; }
22754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22755 $as_echo "no" >&6; }
22760 if test -z "$ac_cv_path_PKGCONFIG"; then
22761 ac_pt_PKGCONFIG=$PKGCONFIG
22762 # Extract the first word of "pkg-config", so it can be a program name with args.
22763 set dummy pkg-config; ac_word=$2
22764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22765 $as_echo_n "checking for $ac_word... " >&6; }
22766 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
22767 $as_echo_n "(cached) " >&6
22769 case $ac_pt_PKGCONFIG in
22771 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
22774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22775 as_dummy="$PATH:/usr/bin:/usr/local/bin"
22776 for as_dir in $as_dummy
22779 test -z "$as_dir" && as_dir=.
22780 for ac_exec_ext in '' $ac_executable_extensions; do
22781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22782 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
22783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22793 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
22794 if test -n "$ac_pt_PKGCONFIG"; then
22795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
22796 $as_echo "$ac_pt_PKGCONFIG" >&6; }
22798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22799 $as_echo "no" >&6; }
22802 if test "x$ac_pt_PKGCONFIG" = x; then
22805 case $cross_compiling:$ac_tool_warned in
22807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22808 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22809 ac_tool_warned=yes ;;
22811 PKGCONFIG=$ac_pt_PKGCONFIG
22814 PKGCONFIG="$ac_cv_path_PKGCONFIG"
22818 if test x$PKGCONFIG != xno; then
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls options with pkg-config" >&5
22820 $as_echo_n "checking for gnutls options with pkg-config... " >&6; }
22822 if test -n ""; then
22823 PKG_CONFIG_LIBDIR=""
22824 export PKG_CONFIG_LIBDIR
22826 $PKGCONFIG --exists gnutls >/dev/null 2>&1 && echo 1`
22828 if test -z "$itexists"; then
22830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22831 $as_echo "no" >&6; }
22833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
22834 $as_echo "found" >&6; }
22839 if test "$PKGCONFIG" != "no" ; then
22840 addlib=`$PKGCONFIG --libs-only-l gnutls`
22841 addld=`$PKGCONFIG --libs-only-L gnutls`
22842 addcflags=`$PKGCONFIG --cflags-only-I gnutls`
22843 version=`$PKGCONFIG --modversion gnutls`
22844 gtlslib=`echo $addld | $SED -e 's/-L//'`
22846 check=`libgnutls-config --version 2>/dev/null`
22847 if test -n "$check"; then
22848 addlib=`libgnutls-config --libs`
22849 addcflags=`libgnutls-config --cflags`
22850 version=`libgnutls-config --version`
22851 gtlslib=`libgnutls-config --prefix`/lib$libsuff
22855 cfg=$OPT_GNUTLS/bin/libgnutls-config
22856 check=`$cfg --version 2>/dev/null`
22857 if test -n "$check"; then
22858 addlib=`$cfg --libs`
22859 addcflags=`$cfg --cflags`
22860 version=`$cfg --version`
22861 gtlslib=`$cfg --prefix`/lib$libsuff
22864 addld=-L$OPT_GNUTLS/lib$libsuff
22865 addcflags=-I$OPT_GNUTLS/include
22866 version="" # we just don't know
22867 gtlslib=$OPT_GNUTLS/lib$libsuff
22871 if test -z "$version"; then
22875 if test -n "$addlib"; then
22878 CLEANCPPFLAGS="$CPPFLAGS"
22879 CLEANLDFLAGS="$LDFLAGS"
22881 LIBS="$addlib $LIBS"
22882 LDFLAGS="$LDFLAGS $addld"
22883 if test "$addcflags" != "-I/usr/include"; then
22884 CPPFLAGS="$CPPFLAGS $addcflags"
22887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_check_version in -lgnutls" >&5
22888 $as_echo_n "checking for gnutls_check_version in -lgnutls... " >&6; }
22889 if ${ac_cv_lib_gnutls_gnutls_check_version+:} false; then :
22890 $as_echo_n "(cached) " >&6
22892 ac_check_lib_save_LIBS=$LIBS
22893 LIBS="-lgnutls $LIBS"
22894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22895 /* end confdefs.h. */
22901 char gnutls_check_version ();
22904 return gnutls_check_version ();
22909 if ac_fn_c_try_link "$LINENO"; then :
22910 ac_cv_lib_gnutls_gnutls_check_version=yes
22912 ac_cv_lib_gnutls_gnutls_check_version=no
22914 rm -f core conftest.err conftest.$ac_objext \
22915 conftest$ac_exeext conftest.$ac_ext
22916 LIBS=$ac_check_lib_save_LIBS
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_check_version" >&5
22919 $as_echo "$ac_cv_lib_gnutls_gnutls_check_version" >&6; }
22920 if test "x$ac_cv_lib_gnutls_gnutls_check_version" = xyes; then :
22923 $as_echo "#define USE_GNUTLS 1" >>confdefs.h
22929 curl_ssl_msg="enabled (GnuTLS)"
22934 CPPFLAGS="$CLEANCPPFLAGS"
22939 if test "x$USE_GNUTLS" = "xyes"; then
22940 { $as_echo "$as_me:${as_lineno-$LINENO}: detected GnuTLS version $version" >&5
22941 $as_echo "$as_me: detected GnuTLS version $version" >&6;}
22943 if test -n "$gtlslib"; then
22944 if test "x$cross_compiling" != "xyes"; then
22945 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$gtlslib"
22946 export LD_LIBRARY_PATH
22947 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $gtlslib to LD_LIBRARY_PATH" >&5
22948 $as_echo "$as_me: Added $gtlslib to LD_LIBRARY_PATH" >&6;}
22959 if test "$GNUTLS_ENABLED" = "1"; then
22961 # First check if we can detect either crypto library via transitive linking
22962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lgnutls" >&5
22963 $as_echo_n "checking for nettle_MD5Init in -lgnutls... " >&6; }
22964 if ${ac_cv_lib_gnutls_nettle_MD5Init+:} false; then :
22965 $as_echo_n "(cached) " >&6
22967 ac_check_lib_save_LIBS=$LIBS
22968 LIBS="-lgnutls $LIBS"
22969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22970 /* end confdefs.h. */
22976 char nettle_MD5Init ();
22979 return nettle_MD5Init ();
22984 if ac_fn_c_try_link "$LINENO"; then :
22985 ac_cv_lib_gnutls_nettle_MD5Init=yes
22987 ac_cv_lib_gnutls_nettle_MD5Init=no
22989 rm -f core conftest.err conftest.$ac_objext \
22990 conftest$ac_exeext conftest.$ac_ext
22991 LIBS=$ac_check_lib_save_LIBS
22993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_nettle_MD5Init" >&5
22994 $as_echo "$ac_cv_lib_gnutls_nettle_MD5Init" >&6; }
22995 if test "x$ac_cv_lib_gnutls_nettle_MD5Init" = xyes; then :
22996 USE_GNUTLS_NETTLE=1
22999 if test "$USE_GNUTLS_NETTLE" = ""; then
23000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgnutls" >&5
23001 $as_echo_n "checking for gcry_control in -lgnutls... " >&6; }
23002 if ${ac_cv_lib_gnutls_gcry_control+:} false; then :
23003 $as_echo_n "(cached) " >&6
23005 ac_check_lib_save_LIBS=$LIBS
23006 LIBS="-lgnutls $LIBS"
23007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23008 /* end confdefs.h. */
23014 char gcry_control ();
23017 return gcry_control ();
23022 if ac_fn_c_try_link "$LINENO"; then :
23023 ac_cv_lib_gnutls_gcry_control=yes
23025 ac_cv_lib_gnutls_gcry_control=no
23027 rm -f core conftest.err conftest.$ac_objext \
23028 conftest$ac_exeext conftest.$ac_ext
23029 LIBS=$ac_check_lib_save_LIBS
23031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gcry_control" >&5
23032 $as_echo "$ac_cv_lib_gnutls_gcry_control" >&6; }
23033 if test "x$ac_cv_lib_gnutls_gcry_control" = xyes; then :
23034 USE_GNUTLS_NETTLE=0
23038 # If not, try linking directly to both of them to see if they are available
23039 if test "$USE_GNUTLS_NETTLE" = ""; then
23040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nettle_MD5Init in -lnettle" >&5
23041 $as_echo_n "checking for nettle_MD5Init in -lnettle... " >&6; }
23042 if ${ac_cv_lib_nettle_nettle_MD5Init+:} false; then :
23043 $as_echo_n "(cached) " >&6
23045 ac_check_lib_save_LIBS=$LIBS
23046 LIBS="-lnettle $LIBS"
23047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23048 /* end confdefs.h. */
23054 char nettle_MD5Init ();
23057 return nettle_MD5Init ();
23062 if ac_fn_c_try_link "$LINENO"; then :
23063 ac_cv_lib_nettle_nettle_MD5Init=yes
23065 ac_cv_lib_nettle_nettle_MD5Init=no
23067 rm -f core conftest.err conftest.$ac_objext \
23068 conftest$ac_exeext conftest.$ac_ext
23069 LIBS=$ac_check_lib_save_LIBS
23071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nettle_nettle_MD5Init" >&5
23072 $as_echo "$ac_cv_lib_nettle_nettle_MD5Init" >&6; }
23073 if test "x$ac_cv_lib_nettle_nettle_MD5Init" = xyes; then :
23074 USE_GNUTLS_NETTLE=1
23078 if test "$USE_GNUTLS_NETTLE" = ""; then
23079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_control in -lgcrypt" >&5
23080 $as_echo_n "checking for gcry_control in -lgcrypt... " >&6; }
23081 if ${ac_cv_lib_gcrypt_gcry_control+:} false; then :
23082 $as_echo_n "(cached) " >&6
23084 ac_check_lib_save_LIBS=$LIBS
23085 LIBS="-lgcrypt $LIBS"
23086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23087 /* end confdefs.h. */
23093 char gcry_control ();
23096 return gcry_control ();
23101 if ac_fn_c_try_link "$LINENO"; then :
23102 ac_cv_lib_gcrypt_gcry_control=yes
23104 ac_cv_lib_gcrypt_gcry_control=no
23106 rm -f core conftest.err conftest.$ac_objext \
23107 conftest$ac_exeext conftest.$ac_ext
23108 LIBS=$ac_check_lib_save_LIBS
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_control" >&5
23111 $as_echo "$ac_cv_lib_gcrypt_gcry_control" >&6; }
23112 if test "x$ac_cv_lib_gcrypt_gcry_control" = xyes; then :
23113 USE_GNUTLS_NETTLE=0
23117 if test "$USE_GNUTLS_NETTLE" = ""; then
23118 as_fn_error $? "GnuTLS found, but neither gcrypt nor nettle found" "$LINENO" 5
23120 if test "$USE_GNUTLS_NETTLE" = "1"; then
23122 $as_echo "#define USE_GNUTLS_NETTLE 1" >>confdefs.h
23124 USE_GNUTLS_NETTLE=1
23126 LIBS="-lnettle $LIBS"
23128 LIBS="-lgcrypt $LIBS"
23132 if test "$GNUTLS_ENABLED" = "1"; then
23133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gnutls_srp_verifier in -lgnutls" >&5
23134 $as_echo_n "checking for gnutls_srp_verifier in -lgnutls... " >&6; }
23135 if ${ac_cv_lib_gnutls_gnutls_srp_verifier+:} false; then :
23136 $as_echo_n "(cached) " >&6
23138 ac_check_lib_save_LIBS=$LIBS
23139 LIBS="-lgnutls $LIBS"
23140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23141 /* end confdefs.h. */
23147 char gnutls_srp_verifier ();
23150 return gnutls_srp_verifier ();
23155 if ac_fn_c_try_link "$LINENO"; then :
23156 ac_cv_lib_gnutls_gnutls_srp_verifier=yes
23158 ac_cv_lib_gnutls_gnutls_srp_verifier=no
23160 rm -f core conftest.err conftest.$ac_objext \
23161 conftest$ac_exeext conftest.$ac_ext
23162 LIBS=$ac_check_lib_save_LIBS
23164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gnutls_gnutls_srp_verifier" >&5
23165 $as_echo "$ac_cv_lib_gnutls_gnutls_srp_verifier" >&6; }
23166 if test "x$ac_cv_lib_gnutls_gnutls_srp_verifier" = xyes; then :
23169 $as_echo "#define HAVE_GNUTLS_SRP 1" >>confdefs.h
23181 _cppflags=$CPPFLAGS
23184 # Check whether --with-polarssl was given.
23185 if test "${with_polarssl+set}" = set; then :
23186 withval=$with_polarssl; OPT_POLARSSL=$withval
23190 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23192 if test X"$OPT_POLARSSL" != Xno; then
23194 if test "$OPT_POLARSSL" = "yes"; then
23198 if test -z "$OPT_POLARSSL" ; then
23200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for havege_init in -lpolarssl" >&5
23201 $as_echo_n "checking for havege_init in -lpolarssl... " >&6; }
23202 if ${ac_cv_lib_polarssl_havege_init+:} false; then :
23203 $as_echo_n "(cached) " >&6
23205 ac_check_lib_save_LIBS=$LIBS
23206 LIBS="-lpolarssl $LIBS"
23207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23208 /* end confdefs.h. */
23214 char havege_init ();
23217 return havege_init ();
23222 if ac_fn_c_try_link "$LINENO"; then :
23223 ac_cv_lib_polarssl_havege_init=yes
23225 ac_cv_lib_polarssl_havege_init=no
23227 rm -f core conftest.err conftest.$ac_objext \
23228 conftest$ac_exeext conftest.$ac_ext
23229 LIBS=$ac_check_lib_save_LIBS
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_havege_init" >&5
23232 $as_echo "$ac_cv_lib_polarssl_havege_init" >&6; }
23233 if test "x$ac_cv_lib_polarssl_havege_init" = xyes; then :
23236 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23242 curl_ssl_msg="enabled (PolarSSL)"
23253 if test "x$USE_POLARSSL" != "xyes"; then
23254 addld=-L$OPT_POLARSSL/lib$libsuff
23255 addcflags=-I$OPT_POLARSSL/include
23256 polarssllib=$OPT_POLARSSL/lib$libsuff
23258 LDFLAGS="$LDFLAGS $addld"
23259 if test "$addcflags" != "-I/usr/include"; then
23260 CPPFLAGS="$CPPFLAGS $addcflags"
23263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_init in -lpolarssl" >&5
23264 $as_echo_n "checking for ssl_init in -lpolarssl... " >&6; }
23265 if ${ac_cv_lib_polarssl_ssl_init+:} false; then :
23266 $as_echo_n "(cached) " >&6
23268 ac_check_lib_save_LIBS=$LIBS
23269 LIBS="-lpolarssl $LIBS"
23270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23271 /* end confdefs.h. */
23280 return ssl_init ();
23285 if ac_fn_c_try_link "$LINENO"; then :
23286 ac_cv_lib_polarssl_ssl_init=yes
23288 ac_cv_lib_polarssl_ssl_init=no
23290 rm -f core conftest.err conftest.$ac_objext \
23291 conftest$ac_exeext conftest.$ac_ext
23292 LIBS=$ac_check_lib_save_LIBS
23294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_polarssl_ssl_init" >&5
23295 $as_echo "$ac_cv_lib_polarssl_ssl_init" >&6; }
23296 if test "x$ac_cv_lib_polarssl_ssl_init" = xyes; then :
23299 $as_echo "#define USE_POLARSSL 1" >>confdefs.h
23305 curl_ssl_msg="enabled (PolarSSL)"
23309 CPPFLAGS=$_cppflags
23316 if test "x$USE_POLARSSL" = "xyes"; then
23317 { $as_echo "$as_me:${as_lineno-$LINENO}: detected PolarSSL" >&5
23318 $as_echo "$as_me: detected PolarSSL" >&6;}
23320 LIBS="-lpolarssl $LIBS"
23322 if test -n "$polarssllib"; then
23323 if test "x$cross_compiling" != "xyes"; then
23324 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$polarssllib"
23325 export LD_LIBRARY_PATH
23326 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $polarssllib to LD_LIBRARY_PATH" >&5
23327 $as_echo "$as_me: Added $polarssllib to LD_LIBRARY_PATH" >&6;}
23338 _cppflags=$CPPFLAGS
23341 # Check whether --with-cyassl was given.
23342 if test "${with_cyassl+set}" = set; then :
23343 withval=$with_cyassl; OPT_CYASSL=$withval
23347 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23349 if test X"$OPT_CYASSL" != Xno; then
23351 if test "$OPT_CYASSL" = "yes"; then
23355 if test -z "$OPT_CYASSL" ; then
23357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23358 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23359 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23360 $as_echo_n "(cached) " >&6
23362 ac_check_lib_save_LIBS=$LIBS
23363 LIBS="-lcyassl $LIBS"
23364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23365 /* end confdefs.h. */
23371 char CyaSSL_Init ();
23374 return CyaSSL_Init ();
23379 if ac_fn_c_try_link "$LINENO"; then :
23380 ac_cv_lib_cyassl_CyaSSL_Init=yes
23382 ac_cv_lib_cyassl_CyaSSL_Init=no
23384 rm -f core conftest.err conftest.$ac_objext \
23385 conftest$ac_exeext conftest.$ac_ext
23386 LIBS=$ac_check_lib_save_LIBS
23388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23389 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23390 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23393 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23399 curl_ssl_msg="enabled (CyaSSL)"
23410 if test "x$USE_CYASSL" != "xyes"; then
23411 addld=-L$OPT_CYASSL/lib$libsuff
23412 addcflags=-I$OPT_CYASSL/include
23413 cyassllib=$OPT_CYASSL/lib$libsuff
23415 LDFLAGS="$LDFLAGS $addld"
23416 if test "$addcflags" != "-I/usr/include"; then
23417 CPPFLAGS="$CPPFLAGS $addcflags"
23420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CyaSSL_Init in -lcyassl" >&5
23421 $as_echo_n "checking for CyaSSL_Init in -lcyassl... " >&6; }
23422 if ${ac_cv_lib_cyassl_CyaSSL_Init+:} false; then :
23423 $as_echo_n "(cached) " >&6
23425 ac_check_lib_save_LIBS=$LIBS
23426 LIBS="-lcyassl $LIBS"
23427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23428 /* end confdefs.h. */
23434 char CyaSSL_Init ();
23437 return CyaSSL_Init ();
23442 if ac_fn_c_try_link "$LINENO"; then :
23443 ac_cv_lib_cyassl_CyaSSL_Init=yes
23445 ac_cv_lib_cyassl_CyaSSL_Init=no
23447 rm -f core conftest.err conftest.$ac_objext \
23448 conftest$ac_exeext conftest.$ac_ext
23449 LIBS=$ac_check_lib_save_LIBS
23451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cyassl_CyaSSL_Init" >&5
23452 $as_echo "$ac_cv_lib_cyassl_CyaSSL_Init" >&6; }
23453 if test "x$ac_cv_lib_cyassl_CyaSSL_Init" = xyes; then :
23456 $as_echo "#define USE_CYASSL 1" >>confdefs.h
23462 curl_ssl_msg="enabled (CyaSSL)"
23466 CPPFLAGS=$_cppflags
23473 if test "x$USE_CYASSL" = "xyes"; then
23474 { $as_echo "$as_me:${as_lineno-$LINENO}: detected CyaSSL" >&5
23475 $as_echo "$as_me: detected CyaSSL" >&6;}
23477 # The cast to long int works around a bug in the HP C Compiler
23478 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23479 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23480 # This bug is HP SR number 8606223364.
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5
23482 $as_echo_n "checking size of long long... " >&6; }
23483 if ${ac_cv_sizeof_long_long+:} false; then :
23484 $as_echo_n "(cached) " >&6
23486 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then :
23489 if test "$ac_cv_type_long_long" = yes; then
23490 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23491 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23492 as_fn_error 77 "cannot compute sizeof (long long)
23493 See \`config.log' for more details" "$LINENO" 5; }
23495 ac_cv_sizeof_long_long=0
23500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5
23501 $as_echo "$ac_cv_sizeof_long_long" >&6; }
23505 cat >>confdefs.h <<_ACEOF
23506 #define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long
23511 for ac_header in cyassl/error-ssl.h
23513 ac_fn_c_check_header_mongrel "$LINENO" "cyassl/error-ssl.h" "ac_cv_header_cyassl_error_ssl_h" "$ac_includes_default"
23514 if test "x$ac_cv_header_cyassl_error_ssl_h" = xyes; then :
23515 cat >>confdefs.h <<_ACEOF
23516 #define HAVE_CYASSL_ERROR_SSL_H 1
23524 LIBS="-lcyassl -lm $LIBS"
23526 if test -n "$cyassllib"; then
23527 if test "x$cross_compiling" != "xyes"; then
23528 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$cyassllib"
23529 export LD_LIBRARY_PATH
23530 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $cyassllib to LD_LIBRARY_PATH" >&5
23531 $as_echo "$as_me: Added $cyassllib to LD_LIBRARY_PATH" >&6;}
23544 # Check whether --with-nss was given.
23545 if test "${with_nss+set}" = set; then :
23546 withval=$with_nss; OPT_NSS=$withval
23550 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23552 if test X"$OPT_NSS" != Xno; then
23560 if test "x$OPT_NSS" = "xyes"; then
23566 if test -n "$ac_tool_prefix"; then
23567 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
23568 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
23569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23570 $as_echo_n "checking for $ac_word... " >&6; }
23571 if ${ac_cv_path_PKGCONFIG+:} false; then :
23572 $as_echo_n "(cached) " >&6
23576 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
23579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23580 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23581 for as_dir in $as_dummy
23584 test -z "$as_dir" && as_dir=.
23585 for ac_exec_ext in '' $ac_executable_extensions; do
23586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23587 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23598 PKGCONFIG=$ac_cv_path_PKGCONFIG
23599 if test -n "$PKGCONFIG"; then
23600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
23601 $as_echo "$PKGCONFIG" >&6; }
23603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23604 $as_echo "no" >&6; }
23609 if test -z "$ac_cv_path_PKGCONFIG"; then
23610 ac_pt_PKGCONFIG=$PKGCONFIG
23611 # Extract the first word of "pkg-config", so it can be a program name with args.
23612 set dummy pkg-config; ac_word=$2
23613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23614 $as_echo_n "checking for $ac_word... " >&6; }
23615 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
23616 $as_echo_n "(cached) " >&6
23618 case $ac_pt_PKGCONFIG in
23620 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
23623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23624 as_dummy="$PATH:/usr/bin:/usr/local/bin"
23625 for as_dir in $as_dummy
23628 test -z "$as_dir" && as_dir=.
23629 for ac_exec_ext in '' $ac_executable_extensions; do
23630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23631 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
23632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23642 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
23643 if test -n "$ac_pt_PKGCONFIG"; then
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
23645 $as_echo "$ac_pt_PKGCONFIG" >&6; }
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23648 $as_echo "no" >&6; }
23651 if test "x$ac_pt_PKGCONFIG" = x; then
23654 case $cross_compiling:$ac_tool_warned in
23656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
23657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
23658 ac_tool_warned=yes ;;
23660 PKGCONFIG=$ac_pt_PKGCONFIG
23663 PKGCONFIG="$ac_cv_path_PKGCONFIG"
23667 if test x$PKGCONFIG != xno; then
23668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss options with pkg-config" >&5
23669 $as_echo_n "checking for nss options with pkg-config... " >&6; }
23671 if test -n ""; then
23672 PKG_CONFIG_LIBDIR=""
23673 export PKG_CONFIG_LIBDIR
23675 $PKGCONFIG --exists nss >/dev/null 2>&1 && echo 1`
23677 if test -z "$itexists"; then
23679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23680 $as_echo "no" >&6; }
23682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
23683 $as_echo "found" >&6; }
23688 if test "$PKGCONFIG" != "no" ; then
23689 addlib=`$PKGCONFIG --libs nss`
23690 addcflags=`$PKGCONFIG --cflags nss`
23691 version=`$PKGCONFIG --modversion nss`
23692 nssprefix=`$PKGCONFIG --variable=prefix nss`
23695 check=`nss-config --version 2>/dev/null`
23696 if test -n "$check"; then
23697 addlib=`nss-config --libs`
23698 addcflags=`nss-config --cflags`
23699 version=`nss-config --version`
23700 nssprefix=`nss-config --prefix`
23708 # Without pkg-config, we'll kludge in some defaults
23709 addlib="-L$OPT_NSS/lib -lssl3 -lsmime3 -lnss3 -lplds4 -lplc4 -lnspr4 -lpthread -ldl"
23710 addcflags="-I$OPT_NSS/include"
23715 if test -n "$addlib"; then
23718 CLEANCPPFLAGS="$CPPFLAGS"
23720 LIBS="$addlib $LIBS"
23721 if test "$addcflags" != "-I/usr/include"; then
23722 CPPFLAGS="$CPPFLAGS $addcflags"
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_VersionRangeSet in -lnss3" >&5
23726 $as_echo_n "checking for SSL_VersionRangeSet in -lnss3... " >&6; }
23727 if ${ac_cv_lib_nss3_SSL_VersionRangeSet+:} false; then :
23728 $as_echo_n "(cached) " >&6
23730 ac_check_lib_save_LIBS=$LIBS
23731 LIBS="-lnss3 $LIBS"
23732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23733 /* end confdefs.h. */
23739 char SSL_VersionRangeSet ();
23742 return SSL_VersionRangeSet ();
23747 if ac_fn_c_try_link "$LINENO"; then :
23748 ac_cv_lib_nss3_SSL_VersionRangeSet=yes
23750 ac_cv_lib_nss3_SSL_VersionRangeSet=no
23752 rm -f core conftest.err conftest.$ac_objext \
23753 conftest$ac_exeext conftest.$ac_ext
23754 LIBS=$ac_check_lib_save_LIBS
23756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_SSL_VersionRangeSet" >&5
23757 $as_echo "$ac_cv_lib_nss3_SSL_VersionRangeSet" >&6; }
23758 if test "x$ac_cv_lib_nss3_SSL_VersionRangeSet" = xyes; then :
23761 $as_echo "#define USE_NSS 1" >>confdefs.h
23767 curl_ssl_msg="enabled (NSS)"
23772 CPPFLAGS="$CLEANCPPFLAGS"
23777 if test "x$USE_NSS" = "xyes"; then
23778 { $as_echo "$as_me:${as_lineno-$LINENO}: detected NSS version $version" >&5
23779 $as_echo "$as_me: detected NSS version $version" >&6;}
23784 if test "x$cross_compiling" != "xyes"; then
23785 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$nssprefix/lib$libsuff"
23786 export LD_LIBRARY_PATH
23787 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&5
23788 $as_echo "$as_me: Added $nssprefix/lib$libsuff to LD_LIBRARY_PATH" >&6;}
23799 # Check whether --with-axtls was given.
23800 if test "${with_axtls+set}" = set; then :
23801 withval=$with_axtls; OPT_AXTLS=$withval
23805 if test "$curl_ssl_msg" = "$init_ssl_msg"; then
23806 if test X"$OPT_AXTLS" != Xno; then
23807 CLEANLDFLAGS="$LDFLAGS"
23808 CLEANCPPFLAGS="$CPPFLAGS"
23811 case "$OPT_AXTLS" in
23813 PREFIX_AXTLS=/usr/local
23814 LIB_AXTLS="$PREFIX_AXTLS/lib"
23815 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23816 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23822 PREFIX_AXTLS=$OPT_AXTLS
23823 LIB_AXTLS="$PREFIX_AXTLS/lib"
23824 LDFLAGS="$LDFLAGS -L$LIB_AXTLS"
23825 CPPFLAGS="$CPPFLAGS -I$PREFIX_AXTLS/include"
23829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ssl_version in -laxtls" >&5
23830 $as_echo_n "checking for ssl_version in -laxtls... " >&6; }
23831 if ${ac_cv_lib_axtls_ssl_version+:} false; then :
23832 $as_echo_n "(cached) " >&6
23834 ac_check_lib_save_LIBS=$LIBS
23835 LIBS="-laxtls $LIBS"
23836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23837 /* end confdefs.h. */
23843 char ssl_version ();
23846 return ssl_version ();
23851 if ac_fn_c_try_link "$LINENO"; then :
23852 ac_cv_lib_axtls_ssl_version=yes
23854 ac_cv_lib_axtls_ssl_version=no
23856 rm -f core conftest.err conftest.$ac_objext \
23857 conftest$ac_exeext conftest.$ac_ext
23858 LIBS=$ac_check_lib_save_LIBS
23860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_axtls_ssl_version" >&5
23861 $as_echo "$ac_cv_lib_axtls_ssl_version" >&6; }
23862 if test "x$ac_cv_lib_axtls_ssl_version" = xyes; then :
23864 LIBS="-laxtls $LIBS"
23866 $as_echo "#define USE_AXTLS 1" >>confdefs.h
23872 curl_ssl_msg="enabled (axTLS)"
23874 if test "x$cross_compiling" != "xyes"; then
23875 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$LIB_AXTLS"
23876 export LD_LIBRARY_PATH
23877 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&5
23878 $as_echo "$as_me: Added $LIB_AXTLS to LD_LIBRARY_PATH" >&6;}
23883 LDFLAGS="$CLEANLDFLAGS"
23884 CPPFLAGS="$CLEANCPPFLAGS"
23892 if test "x$OPENSSL_ENABLED$GNUTLS_ENABLED$NSS_ENABLED$POLARSSL_ENABLED$AXTLS_ENABLED$CYASSL_ENABLED$WINSSL_ENABLED$DARWINSSL_ENABLED" = "x"; then
23893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&5
23894 $as_echo "$as_me: WARNING: SSL disabled, you will not be able to use HTTPS, FTPS, NTLM and more." >&2;}
23895 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&5
23896 $as_echo "$as_me: WARNING: Use --with-ssl, --with-gnutls, --with-polarssl, --with-cyassl, --with-nss, --with-axtls, --with-winssl, or --with-darwinssl to address this." >&2;}
23898 # SSL is enabled, genericly
23906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking default CA cert bundle/path" >&5
23907 $as_echo_n "checking default CA cert bundle/path... " >&6; }
23910 # Check whether --with-ca-bundle was given.
23911 if test "${with_ca_bundle+set}" = set; then :
23912 withval=$with_ca_bundle;
23914 if test "x$want_ca" = "xyes"; then
23915 as_fn_error $? "--with-ca-bundle=FILE requires a path to the CA bundle" "$LINENO" 5
23923 # Check whether --with-ca-path was given.
23924 if test "${with_ca_path+set}" = set; then :
23925 withval=$with_ca_path;
23926 want_capath="$withval"
23927 if test "x$want_capath" = "xyes"; then
23928 as_fn_error $? "--with-ca-path=DIRECTORY requires a path to the CA path directory" "$LINENO" 5
23932 want_capath="unset"
23936 if test "x$want_ca" != "xno" -a "x$want_ca" != "xunset" -a \
23937 "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
23938 as_fn_error $? "Can't specify both --with-ca-bundle and --with-ca-path." "$LINENO" 5
23939 elif test "x$want_ca" != "xno" -a "x$want_ca" != "xunset"; then
23942 elif test "x$want_capath" != "xno" -a "x$want_capath" != "xunset"; then
23943 if test "x$OPENSSL_ENABLED" != "x1" -a "x$POLARSSL_ENABLED" != "x1"; then
23944 as_fn_error $? "--with-ca-path only works with openSSL or PolarSSL" "$LINENO" 5
23946 capath="$want_capath"
23951 if test "x$cross_compiling" != "xyes"; then
23952 if test "x$want_ca" = "xunset"; then
23953 if test "x$prefix" != xNONE; then
23954 cac="${prefix}/share/curl/curl-ca-bundle.crt"
23956 cac="$ac_default_prefix/share/curl/curl-ca-bundle.crt"
23959 for a in /etc/ssl/certs/ca-certificates.crt \
23960 /etc/pki/tls/certs/ca-bundle.crt \
23961 /usr/share/ssl/certs/ca-bundle.crt \
23962 /usr/local/share/certs/ca-root.crt \
23963 /etc/ssl/cert.pem \
23965 if test -f "$a"; then
23971 if test "x$want_capath" = "xunset" -a "x$ca" = "xno" -a \
23972 "x$OPENSSL_ENABLED" = "x1"; then
23973 for a in /etc/ssl/certs/; do
23974 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
23981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: skipped the ca-cert path detection when cross-compiling" >&5
23982 $as_echo "$as_me: WARNING: skipped the ca-cert path detection when cross-compiling" >&2;}
23986 if test "x$ca" != "xno"; then
23987 CURL_CA_BUNDLE='"'$ca'"'
23989 cat >>confdefs.h <<_ACEOF
23990 #define CURL_CA_BUNDLE "$ca"
23994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ca" >&5
23995 $as_echo "$ca" >&6; }
23996 elif test "x$capath" != "xno"; then
23997 CURL_CA_PATH="\"$capath\""
23999 cat >>confdefs.h <<_ACEOF
24000 #define CURL_CA_PATH "$capath"
24003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $capath (capath)" >&5
24004 $as_echo "$capath (capath)" >&6; }
24006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24007 $as_echo "no" >&6; }
24015 # Check whether --with-libmetalink was given.
24016 if test "${with_libmetalink+set}" = set; then :
24017 withval=$with_libmetalink; OPT_LIBMETALINK=$withval
24021 if test X"$OPT_LIBMETALINK" != Xno; then
24030 if test "x$OPT_LIBMETALINK" = "xyes"; then
24036 if test -n "$ac_tool_prefix"; then
24037 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24038 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24040 $as_echo_n "checking for $ac_word... " >&6; }
24041 if ${ac_cv_path_PKGCONFIG+:} false; then :
24042 $as_echo_n "(cached) " >&6
24046 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24050 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24051 for as_dir in $as_dummy
24054 test -z "$as_dir" && as_dir=.
24055 for ac_exec_ext in '' $ac_executable_extensions; do
24056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24057 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24068 PKGCONFIG=$ac_cv_path_PKGCONFIG
24069 if test -n "$PKGCONFIG"; then
24070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24071 $as_echo "$PKGCONFIG" >&6; }
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24074 $as_echo "no" >&6; }
24079 if test -z "$ac_cv_path_PKGCONFIG"; then
24080 ac_pt_PKGCONFIG=$PKGCONFIG
24081 # Extract the first word of "pkg-config", so it can be a program name with args.
24082 set dummy pkg-config; ac_word=$2
24083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24084 $as_echo_n "checking for $ac_word... " >&6; }
24085 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24086 $as_echo_n "(cached) " >&6
24088 case $ac_pt_PKGCONFIG in
24090 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24094 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24095 for as_dir in $as_dummy
24098 test -z "$as_dir" && as_dir=.
24099 for ac_exec_ext in '' $ac_executable_extensions; do
24100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24101 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24112 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24113 if test -n "$ac_pt_PKGCONFIG"; then
24114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24115 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24118 $as_echo "no" >&6; }
24121 if test "x$ac_pt_PKGCONFIG" = x; then
24124 case $cross_compiling:$ac_tool_warned in
24126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24127 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24128 ac_tool_warned=yes ;;
24130 PKGCONFIG=$ac_pt_PKGCONFIG
24133 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24137 if test x$PKGCONFIG != xno; then
24138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24139 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24141 if test -n ""; then
24142 PKG_CONFIG_LIBDIR=""
24143 export PKG_CONFIG_LIBDIR
24145 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24147 if test -z "$itexists"; then
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24150 $as_echo "no" >&6; }
24152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24153 $as_echo "found" >&6; }
24158 LIBMETALINK_PCDIR="$OPT_LIBMETALINK/lib/pkgconfig"
24159 { $as_echo "$as_me:${as_lineno-$LINENO}: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&5
24160 $as_echo "$as_me: PKG_CONFIG_LIBDIR will be set to \"$LIBMETALINK_PCDIR\"" >&6;}
24161 if test -f "$LIBMETALINK_PCDIR/libmetalink.pc"; then
24164 if test "$PKGTEST" = "yes"; then
24169 if test -n "$ac_tool_prefix"; then
24170 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24171 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24173 $as_echo_n "checking for $ac_word... " >&6; }
24174 if ${ac_cv_path_PKGCONFIG+:} false; then :
24175 $as_echo_n "(cached) " >&6
24179 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24183 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24184 for as_dir in $as_dummy
24187 test -z "$as_dir" && as_dir=.
24188 for ac_exec_ext in '' $ac_executable_extensions; do
24189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24190 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24201 PKGCONFIG=$ac_cv_path_PKGCONFIG
24202 if test -n "$PKGCONFIG"; then
24203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24204 $as_echo "$PKGCONFIG" >&6; }
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24207 $as_echo "no" >&6; }
24212 if test -z "$ac_cv_path_PKGCONFIG"; then
24213 ac_pt_PKGCONFIG=$PKGCONFIG
24214 # Extract the first word of "pkg-config", so it can be a program name with args.
24215 set dummy pkg-config; ac_word=$2
24216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24217 $as_echo_n "checking for $ac_word... " >&6; }
24218 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24219 $as_echo_n "(cached) " >&6
24221 case $ac_pt_PKGCONFIG in
24223 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24227 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24228 for as_dir in $as_dummy
24231 test -z "$as_dir" && as_dir=.
24232 for ac_exec_ext in '' $ac_executable_extensions; do
24233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24234 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24245 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24246 if test -n "$ac_pt_PKGCONFIG"; then
24247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24248 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24251 $as_echo "no" >&6; }
24254 if test "x$ac_pt_PKGCONFIG" = x; then
24257 case $cross_compiling:$ac_tool_warned in
24259 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24260 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24261 ac_tool_warned=yes ;;
24263 PKGCONFIG=$ac_pt_PKGCONFIG
24266 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24270 if test x$PKGCONFIG != xno; then
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmetalink options with pkg-config" >&5
24272 $as_echo_n "checking for libmetalink options with pkg-config... " >&6; }
24274 if test -n "$LIBMETALINK_PCDIR"; then
24275 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24276 export PKG_CONFIG_LIBDIR
24278 $PKGCONFIG --exists libmetalink >/dev/null 2>&1 && echo 1`
24280 if test -z "$itexists"; then
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24283 $as_echo "no" >&6; }
24285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24286 $as_echo "found" >&6; }
24292 if test "$PKGTEST" = "yes" && test "$PKGCONFIG" != "no"; then
24294 if test -n "$LIBMETALINK_PCDIR"; then
24295 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24296 export PKG_CONFIG_LIBDIR
24298 $PKGCONFIG --libs-only-l libmetalink`
24300 if test -n "$LIBMETALINK_PCDIR"; then
24301 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24302 export PKG_CONFIG_LIBDIR
24304 $PKGCONFIG --libs-only-L libmetalink`
24306 if test -n "$LIBMETALINK_PCDIR"; then
24307 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24308 export PKG_CONFIG_LIBDIR
24310 $PKGCONFIG --cflags-only-I libmetalink`
24312 if test -n "$LIBMETALINK_PCDIR"; then
24313 PKG_CONFIG_LIBDIR="$LIBMETALINK_PCDIR"
24314 export PKG_CONFIG_LIBDIR
24316 $PKGCONFIG --modversion libmetalink`
24317 libmetalinklib=`echo $addld | $SED -e 's/-L//'`
24319 if test -n "$addlib"; then
24321 clean_CPPFLAGS="$CPPFLAGS"
24322 clean_LDFLAGS="$LDFLAGS"
24324 CPPFLAGS="$addcflags $clean_CPPFLAGS"
24325 LDFLAGS="$addld $clean_LDFLAGS"
24326 LIBS="$addlib $clean_LIBS"
24327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libmetalink is recent enough" >&5
24328 $as_echo_n "checking if libmetalink is recent enough... " >&6; }
24329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24330 /* end confdefs.h. */
24333 # include <metalink/metalink.h>
24338 if(0 != metalink_strerror(0)) /* added in 0.1.0 */
24346 if ac_fn_c_try_link "$LINENO"; then :
24348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($version)" >&5
24349 $as_echo "yes ($version)" >&6; }
24350 want_metalink="yes"
24354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no ($version)" >&5
24355 $as_echo "no ($version)" >&6; }
24356 { $as_echo "$as_me:${as_lineno-$LINENO}: libmetalink library defective or too old" >&5
24357 $as_echo "$as_me: libmetalink library defective or too old" >&6;}
24361 rm -f core conftest.err conftest.$ac_objext \
24362 conftest$ac_exeext conftest.$ac_ext
24363 CPPFLAGS="$clean_CPPFLAGS"
24364 LDFLAGS="$clean_LDFLAGS"
24366 if test "$want_metalink" = "yes"; then
24368 $as_echo "#define USE_METALINK 1" >>confdefs.h
24370 LIBMETALINK_LIBS=$addlib
24371 LIBMETALINK_LDFLAGS=$addld
24372 LIBMETALINK_CPPFLAGS=$addcflags
24376 curl_mtlnk_msg="enabled"
24385 # Check whether --with-libssh2 was given.
24386 if test "${with_libssh2+set}" = set; then :
24387 withval=$with_libssh2; OPT_LIBSSH2=$withval
24391 if test X"$OPT_LIBSSH2" != Xno; then
24392 CLEANLDFLAGS="$LDFLAGS"
24393 CLEANCPPFLAGS="$CPPFLAGS"
24396 case "$OPT_LIBSSH2" in
24402 if test -n "$ac_tool_prefix"; then
24403 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24404 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24406 $as_echo_n "checking for $ac_word... " >&6; }
24407 if ${ac_cv_path_PKGCONFIG+:} false; then :
24408 $as_echo_n "(cached) " >&6
24412 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24416 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24417 for as_dir in $as_dummy
24420 test -z "$as_dir" && as_dir=.
24421 for ac_exec_ext in '' $ac_executable_extensions; do
24422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24423 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24434 PKGCONFIG=$ac_cv_path_PKGCONFIG
24435 if test -n "$PKGCONFIG"; then
24436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24437 $as_echo "$PKGCONFIG" >&6; }
24439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24440 $as_echo "no" >&6; }
24445 if test -z "$ac_cv_path_PKGCONFIG"; then
24446 ac_pt_PKGCONFIG=$PKGCONFIG
24447 # Extract the first word of "pkg-config", so it can be a program name with args.
24448 set dummy pkg-config; ac_word=$2
24449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24450 $as_echo_n "checking for $ac_word... " >&6; }
24451 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24452 $as_echo_n "(cached) " >&6
24454 case $ac_pt_PKGCONFIG in
24456 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24460 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24461 for as_dir in $as_dummy
24464 test -z "$as_dir" && as_dir=.
24465 for ac_exec_ext in '' $ac_executable_extensions; do
24466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24467 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24478 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24479 if test -n "$ac_pt_PKGCONFIG"; then
24480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24481 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24484 $as_echo "no" >&6; }
24487 if test "x$ac_pt_PKGCONFIG" = x; then
24490 case $cross_compiling:$ac_tool_warned in
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24494 ac_tool_warned=yes ;;
24496 PKGCONFIG=$ac_pt_PKGCONFIG
24499 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24503 if test x$PKGCONFIG != xno; then
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2 options with pkg-config" >&5
24505 $as_echo_n "checking for libssh2 options with pkg-config... " >&6; }
24507 if test -n ""; then
24508 PKG_CONFIG_LIBDIR=""
24509 export PKG_CONFIG_LIBDIR
24511 $PKGCONFIG --exists libssh2 >/dev/null 2>&1 && echo 1`
24513 if test -z "$itexists"; then
24515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24516 $as_echo "no" >&6; }
24518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24519 $as_echo "found" >&6; }
24524 if test "$PKGCONFIG" != "no" ; then
24525 LIB_SSH2=`$PKGCONFIG --libs-only-l libssh2`
24526 LD_SSH2=`$PKGCONFIG --libs-only-L libssh2`
24527 CPP_SSH2=`$PKGCONFIG --cflags-only-I libssh2`
24528 version=`$PKGCONFIG --modversion libssh2`
24529 DIR_SSH2=`echo $LD_SSH2 | $SED -e 's/-L//'`
24536 PREFIX_SSH2=$OPT_LIBSSH2
24540 if test -n "$PREFIX_SSH2"; then
24542 LD_SSH2=-L${PREFIX_SSH2}/lib$libsuff
24543 CPP_SSH2=-I${PREFIX_SSH2}/include
24544 DIR_SSH2=${PREFIX_SSH2}/lib$libsuff
24547 LDFLAGS="$LDFLAGS $LD_SSH2"
24548 CPPFLAGS="$CPPFLAGS $CPP_SSH2"
24549 LIBS="$LIB_SSH2 $LIBS"
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libssh2_channel_open_ex in -lssh2" >&5
24552 $as_echo_n "checking for libssh2_channel_open_ex in -lssh2... " >&6; }
24553 if ${ac_cv_lib_ssh2_libssh2_channel_open_ex+:} false; then :
24554 $as_echo_n "(cached) " >&6
24556 ac_check_lib_save_LIBS=$LIBS
24557 LIBS="-lssh2 $LIBS"
24558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24559 /* end confdefs.h. */
24565 char libssh2_channel_open_ex ();
24568 return libssh2_channel_open_ex ();
24573 if ac_fn_c_try_link "$LINENO"; then :
24574 ac_cv_lib_ssh2_libssh2_channel_open_ex=yes
24576 ac_cv_lib_ssh2_libssh2_channel_open_ex=no
24578 rm -f core conftest.err conftest.$ac_objext \
24579 conftest$ac_exeext conftest.$ac_ext
24580 LIBS=$ac_check_lib_save_LIBS
24582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssh2_libssh2_channel_open_ex" >&5
24583 $as_echo "$ac_cv_lib_ssh2_libssh2_channel_open_ex" >&6; }
24584 if test "x$ac_cv_lib_ssh2_libssh2_channel_open_ex" = xyes; then :
24585 cat >>confdefs.h <<_ACEOF
24586 #define HAVE_LIBSSH2 1
24589 LIBS="-lssh2 $LIBS"
24594 for ac_header in libssh2.h
24596 ac_fn_c_check_header_mongrel "$LINENO" "libssh2.h" "ac_cv_header_libssh2_h" "$ac_includes_default"
24597 if test "x$ac_cv_header_libssh2_h" = xyes; then :
24598 cat >>confdefs.h <<_ACEOF
24599 #define HAVE_LIBSSH2_H 1
24601 curl_ssh_msg="enabled (libSSH2)"
24604 $as_echo "#define USE_LIBSSH2 1" >>confdefs.h
24614 if test X"$OPT_LIBSSH2" != Xoff &&
24615 test "$LIBSSH2_ENABLED" != "1"; then
24616 as_fn_error $? "libSSH2 libs and/or directories were not found where specified!" "$LINENO" 5
24619 if test "$LIBSSH2_ENABLED" = "1"; then
24620 if test -n "$DIR_SSH2"; then
24622 if test "x$cross_compiling" != "xyes"; then
24623 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$DIR_SSH2"
24624 export LD_LIBRARY_PATH
24625 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&5
24626 $as_echo "$as_me: Added $DIR_SSH2 to LD_LIBRARY_PATH" >&6;}
24630 LDFLAGS=$CLEANLDFLAGS
24631 CPPFLAGS=$CLEANCPPFLAGS
24639 # Check whether --with-librtmp was given.
24640 if test "${with_librtmp+set}" = set; then :
24641 withval=$with_librtmp; OPT_LIBRTMP=$withval
24645 if test X"$OPT_LIBRTMP" != Xno; then
24646 CLEANLDFLAGS="$LDFLAGS"
24647 CLEANCPPFLAGS="$CPPFLAGS"
24650 case "$OPT_LIBRTMP" in
24656 if test -n "$ac_tool_prefix"; then
24657 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
24658 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
24659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24660 $as_echo_n "checking for $ac_word... " >&6; }
24661 if ${ac_cv_path_PKGCONFIG+:} false; then :
24662 $as_echo_n "(cached) " >&6
24666 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
24669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24670 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24671 for as_dir in $as_dummy
24674 test -z "$as_dir" && as_dir=.
24675 for ac_exec_ext in '' $ac_executable_extensions; do
24676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24677 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24688 PKGCONFIG=$ac_cv_path_PKGCONFIG
24689 if test -n "$PKGCONFIG"; then
24690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
24691 $as_echo "$PKGCONFIG" >&6; }
24693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24694 $as_echo "no" >&6; }
24699 if test -z "$ac_cv_path_PKGCONFIG"; then
24700 ac_pt_PKGCONFIG=$PKGCONFIG
24701 # Extract the first word of "pkg-config", so it can be a program name with args.
24702 set dummy pkg-config; ac_word=$2
24703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24704 $as_echo_n "checking for $ac_word... " >&6; }
24705 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
24706 $as_echo_n "(cached) " >&6
24708 case $ac_pt_PKGCONFIG in
24710 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
24713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24714 as_dummy="$PATH:/usr/bin:/usr/local/bin"
24715 for as_dir in $as_dummy
24718 test -z "$as_dir" && as_dir=.
24719 for ac_exec_ext in '' $ac_executable_extensions; do
24720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
24721 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
24722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24732 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
24733 if test -n "$ac_pt_PKGCONFIG"; then
24734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
24735 $as_echo "$ac_pt_PKGCONFIG" >&6; }
24737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24738 $as_echo "no" >&6; }
24741 if test "x$ac_pt_PKGCONFIG" = x; then
24744 case $cross_compiling:$ac_tool_warned in
24746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24747 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24748 ac_tool_warned=yes ;;
24750 PKGCONFIG=$ac_pt_PKGCONFIG
24753 PKGCONFIG="$ac_cv_path_PKGCONFIG"
24757 if test x$PKGCONFIG != xno; then
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for librtmp options with pkg-config" >&5
24759 $as_echo_n "checking for librtmp options with pkg-config... " >&6; }
24761 if test -n ""; then
24762 PKG_CONFIG_LIBDIR=""
24763 export PKG_CONFIG_LIBDIR
24765 $PKGCONFIG --exists librtmp >/dev/null 2>&1 && echo 1`
24767 if test -z "$itexists"; then
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24770 $as_echo "no" >&6; }
24772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
24773 $as_echo "found" >&6; }
24778 if test "$PKGCONFIG" != "no" ; then
24779 LIB_RTMP=`$PKGCONFIG --libs-only-l librtmp`
24780 LD_RTMP=`$PKGCONFIG --libs-only-L librtmp`
24781 CPP_RTMP=`$PKGCONFIG --cflags-only-I librtmp`
24782 version=`$PKGCONFIG --modversion librtmp`
24783 DIR_RTMP=`echo $LD_RTMP | $SED -e 's/-L//'`
24785 as_fn_error $? "--librtmp was specified but could not find librtmp pkgconfig file." "$LINENO" 5
24793 PREFIX_RTMP=$OPT_LIBRTMP
24797 if test -n "$PREFIX_RTMP"; then
24798 LD_RTMP=-L${PREFIX_RTMP}/lib$libsuff
24799 CPP_RTMP=-I${PREFIX_RTMP}/include
24800 DIR_RTMP=${PREFIX_RTMP}/lib$libsuff
24803 LDFLAGS="$LDFLAGS $LD_RTMP"
24804 CPPFLAGS="$CPPFLAGS $CPP_RTMP"
24805 LIBS="$LIB_RTMP $LIBS"
24807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RTMP_Init in -lrtmp" >&5
24808 $as_echo_n "checking for RTMP_Init in -lrtmp... " >&6; }
24809 if ${ac_cv_lib_rtmp_RTMP_Init+:} false; then :
24810 $as_echo_n "(cached) " >&6
24812 ac_check_lib_save_LIBS=$LIBS
24813 LIBS="-lrtmp $LIBS"
24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h. */
24824 return RTMP_Init ();
24829 if ac_fn_c_try_link "$LINENO"; then :
24830 ac_cv_lib_rtmp_RTMP_Init=yes
24832 ac_cv_lib_rtmp_RTMP_Init=no
24834 rm -f core conftest.err conftest.$ac_objext \
24835 conftest$ac_exeext conftest.$ac_ext
24836 LIBS=$ac_check_lib_save_LIBS
24838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rtmp_RTMP_Init" >&5
24839 $as_echo "$ac_cv_lib_rtmp_RTMP_Init" >&6; }
24840 if test "x$ac_cv_lib_rtmp_RTMP_Init" = xyes; then :
24842 for ac_header in librtmp/rtmp.h
24844 ac_fn_c_check_header_mongrel "$LINENO" "librtmp/rtmp.h" "ac_cv_header_librtmp_rtmp_h" "$ac_includes_default"
24845 if test "x$ac_cv_header_librtmp_rtmp_h" = xyes; then :
24846 cat >>confdefs.h <<_ACEOF
24847 #define HAVE_LIBRTMP_RTMP_H 1
24849 curl_rtmp_msg="enabled (librtmp)"
24852 $as_echo "#define USE_LIBRTMP 1" >>confdefs.h
24863 LDFLAGS=$CLEANLDFLAGS
24864 CPPFLAGS=$CLEANCPPFLAGS
24870 if test X"$OPT_LIBRTMP" != Xoff &&
24871 test "$LIBRTMP_ENABLED" != "1"; then
24872 as_fn_error $? "librtmp libs and/or directories were not found where specified!" "$LINENO" 5
24878 versioned_symbols_flavour=
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether versioned symbols are wanted" >&5
24880 $as_echo_n "checking whether versioned symbols are wanted... " >&6; }
24881 # Check whether --enable-versioned-symbols was given.
24882 if test "${enable_versioned_symbols+set}" = set; then :
24883 enableval=$enable_versioned_symbols; case "$enableval" in
24884 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24885 $as_echo "yes" >&6; }
24886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libraries can be versioned" >&5
24887 $as_echo_n "checking if libraries can be versioned... " >&6; }
24888 GLD=`$LD --help < /dev/null 2>/dev/null | grep version-script`
24889 if test -z "$GLD"; then
24890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24891 $as_echo "no" >&6; }
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You need an ld version supporting the --version-script option" >&5
24893 $as_echo "$as_me: WARNING: You need an ld version supporting the --version-script option" >&2;}
24895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24896 $as_echo "yes" >&6; }
24897 if test "x$OPENSSL_ENABLED" = "x1"; then
24898 versioned_symbols_flavour="OPENSSL_"
24899 elif test "x$GNUTLS_ENABLED" = "x1"; then
24900 versioned_symbols_flavour="GNUTLS_"
24901 elif test "x$NSS_ENABLED" = "x1"; then
24902 versioned_symbols_flavour="NSS_"
24903 elif test "x$POLARSSL_ENABLED" = "x1"; then
24904 versioned_symbols_flavour="POLARSSL_"
24905 elif test "x$CYASSL_ENABLED" = "x1"; then
24906 versioned_symbols_flavour="CYASSL_"
24907 elif test "x$AXTLS_ENABLED" = "x1"; then
24908 versioned_symbols_flavour="AXTLS_"
24909 elif test "x$WINSSL_ENABLED" = "x1"; then
24910 versioned_symbols_flavour="WINSSL_"
24911 elif test "x$DARWINSSL_ENABLED" = "x1"; then
24912 versioned_symbols_flavour="DARWINSSL_"
24914 versioned_symbols_flavour=""
24916 versioned_symbols="yes"
24920 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24921 $as_echo "no" >&6; }
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24928 $as_echo "no" >&6; }
24934 CURL_LT_SHLIB_VERSIONED_FLAVOUR="$versioned_symbols_flavour"
24936 if test "x$versioned_symbols" = 'xyes'; then
24937 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE=
24938 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE='#'
24940 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE='#'
24941 CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE=
24946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Windows native IDN (Windows native builds only)" >&5
24947 $as_echo_n "checking whether to enable Windows native IDN (Windows native builds only)... " >&6; }
24948 OPT_WINIDN="default"
24950 # Check whether --with-winidn was given.
24951 if test "${with_winidn+set}" = set; then :
24952 withval=$with_winidn; OPT_WINIDN=$withval
24955 case "$OPT_WINIDN" in
24958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24959 $as_echo "no" >&6; }
24963 want_winidn_path="default"
24964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24965 $as_echo "yes" >&6; }
24969 want_winidn_path="$withval"
24970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
24971 $as_echo "yes ($withval)" >&6; }
24975 if test "$want_winidn" = "yes"; then
24976 clean_CPPFLAGS="$CPPFLAGS"
24977 clean_LDFLAGS="$LDFLAGS"
24979 WINIDN_LIBS="-lnormaliz"
24981 if test "$want_winidn_path" != "default"; then
24982 WINIDN_LDFLAGS="-L$want_winidn_path/lib$libsuff"
24983 WINIDN_CPPFLAGS="-I$want_winidn_path/include"
24984 WINIDN_DIR="$want_winidn_path/lib$libsuff"
24987 CPPFLAGS="$WINIDN_CPPFLAGS $CPPFLAGS"
24988 LDFLAGS="$WINIDN_LDFLAGS $LDFLAGS"
24989 LIBS="$WINIDN_LIBS $LIBS"
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IdnToUnicode can be linked" >&5
24992 $as_echo_n "checking if IdnToUnicode can be linked... " >&6; }
24993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24994 /* end confdefs.h. */
24997 #define IdnToUnicode innocuous_IdnToUnicode
24999 # include <limits.h>
25001 # include <assert.h>
25003 #undef IdnToUnicode
25007 char IdnToUnicode ();
25008 #if defined __stub_IdnToUnicode || defined __stub___IdnToUnicode
25014 return IdnToUnicode ();
25020 if ac_fn_c_try_link "$LINENO"; then :
25022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25023 $as_echo "yes" >&6; }
25024 tst_links_winidn="yes"
25028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25029 $as_echo "no" >&6; }
25030 tst_links_winidn="no"
25033 rm -f core conftest.err conftest.$ac_objext \
25034 conftest$ac_exeext conftest.$ac_ext
25036 if test "$tst_links_winidn" = "yes"; then
25038 $as_echo "#define USE_WIN32_IDN 1" >>confdefs.h
25041 $as_echo "#define WANT_IDN_PROTOTYPES 1" >>confdefs.h
25045 curl_idn_msg="enabled (Windows-native)"
25047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25048 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25049 CPPFLAGS="$clean_CPPFLAGS"
25050 LDFLAGS="$clean_LDFLAGS"
25056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with libidn" >&5
25057 $as_echo_n "checking whether to build with libidn... " >&6; }
25060 # Check whether --with-libidn was given.
25061 if test "${with_libidn+set}" = set; then :
25062 withval=$with_libidn; OPT_IDN=$withval
25068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25069 $as_echo "no" >&6; }
25073 want_idn_path="default"
25074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: (assumed) yes" >&5
25075 $as_echo "(assumed) yes" >&6; }
25079 want_idn_path="default"
25080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25081 $as_echo "yes" >&6; }
25085 want_idn_path="$withval"
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($withval)" >&5
25087 $as_echo "yes ($withval)" >&6; }
25091 if test "$want_idn" = "yes"; then
25092 clean_CPPFLAGS="$CPPFLAGS"
25093 clean_LDFLAGS="$LDFLAGS"
25097 if test "$want_idn_path" != "default"; then
25098 IDN_PCDIR="$want_idn_path/lib$libsuff/pkgconfig"
25103 if test -n "$ac_tool_prefix"; then
25104 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25105 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25107 $as_echo_n "checking for $ac_word... " >&6; }
25108 if ${ac_cv_path_PKGCONFIG+:} false; then :
25109 $as_echo_n "(cached) " >&6
25113 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25117 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25118 for as_dir in $as_dummy
25121 test -z "$as_dir" && as_dir=.
25122 for ac_exec_ext in '' $ac_executable_extensions; do
25123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25124 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25135 PKGCONFIG=$ac_cv_path_PKGCONFIG
25136 if test -n "$PKGCONFIG"; then
25137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25138 $as_echo "$PKGCONFIG" >&6; }
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25141 $as_echo "no" >&6; }
25146 if test -z "$ac_cv_path_PKGCONFIG"; then
25147 ac_pt_PKGCONFIG=$PKGCONFIG
25148 # Extract the first word of "pkg-config", so it can be a program name with args.
25149 set dummy pkg-config; ac_word=$2
25150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25151 $as_echo_n "checking for $ac_word... " >&6; }
25152 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25153 $as_echo_n "(cached) " >&6
25155 case $ac_pt_PKGCONFIG in
25157 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25161 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25162 for as_dir in $as_dummy
25165 test -z "$as_dir" && as_dir=.
25166 for ac_exec_ext in '' $ac_executable_extensions; do
25167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25168 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25179 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25180 if test -n "$ac_pt_PKGCONFIG"; then
25181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25182 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25185 $as_echo "no" >&6; }
25188 if test "x$ac_pt_PKGCONFIG" = x; then
25191 case $cross_compiling:$ac_tool_warned in
25193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25194 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25195 ac_tool_warned=yes ;;
25197 PKGCONFIG=$ac_pt_PKGCONFIG
25200 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25204 if test x$PKGCONFIG != xno; then
25205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25206 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25208 if test -n "$IDN_PCDIR"; then
25209 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25210 export PKG_CONFIG_LIBDIR
25212 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25214 if test -z "$itexists"; then
25216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25217 $as_echo "no" >&6; }
25219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25220 $as_echo "found" >&6; }
25224 if test "$PKGCONFIG" != "no"; then
25226 if test -n "$IDN_PCDIR"; then
25227 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25228 export PKG_CONFIG_LIBDIR
25230 $PKGCONFIG --libs-only-l libidn 2>/dev/null`
25232 if test -n "$IDN_PCDIR"; then
25233 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25234 export PKG_CONFIG_LIBDIR
25236 $PKGCONFIG --libs-only-L libidn 2>/dev/null`
25238 if test -n "$IDN_PCDIR"; then
25239 PKG_CONFIG_LIBDIR="$IDN_PCDIR"
25240 export PKG_CONFIG_LIBDIR
25242 $PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25243 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25246 IDN_LDFLAGS="-L$want_idn_path/lib$libsuff"
25247 IDN_CPPFLAGS="-I$want_idn_path/include"
25248 IDN_DIR="$want_idn_path/lib$libsuff"
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25259 $as_echo_n "checking for $ac_word... " >&6; }
25260 if ${ac_cv_path_PKGCONFIG+:} false; then :
25261 $as_echo_n "(cached) " >&6
25265 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25269 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25270 for as_dir in $as_dummy
25273 test -z "$as_dir" && as_dir=.
25274 for ac_exec_ext in '' $ac_executable_extensions; do
25275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25276 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25287 PKGCONFIG=$ac_cv_path_PKGCONFIG
25288 if test -n "$PKGCONFIG"; then
25289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25290 $as_echo "$PKGCONFIG" >&6; }
25292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25293 $as_echo "no" >&6; }
25298 if test -z "$ac_cv_path_PKGCONFIG"; then
25299 ac_pt_PKGCONFIG=$PKGCONFIG
25300 # Extract the first word of "pkg-config", so it can be a program name with args.
25301 set dummy pkg-config; ac_word=$2
25302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25303 $as_echo_n "checking for $ac_word... " >&6; }
25304 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25305 $as_echo_n "(cached) " >&6
25307 case $ac_pt_PKGCONFIG in
25309 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25313 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25314 for as_dir in $as_dummy
25317 test -z "$as_dir" && as_dir=.
25318 for ac_exec_ext in '' $ac_executable_extensions; do
25319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25320 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25331 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25332 if test -n "$ac_pt_PKGCONFIG"; then
25333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25334 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25337 $as_echo "no" >&6; }
25340 if test "x$ac_pt_PKGCONFIG" = x; then
25343 case $cross_compiling:$ac_tool_warned in
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25347 ac_tool_warned=yes ;;
25349 PKGCONFIG=$ac_pt_PKGCONFIG
25352 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25356 if test x$PKGCONFIG != xno; then
25357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidn options with pkg-config" >&5
25358 $as_echo_n "checking for libidn options with pkg-config... " >&6; }
25360 if test -n ""; then
25361 PKG_CONFIG_LIBDIR=""
25362 export PKG_CONFIG_LIBDIR
25364 $PKGCONFIG --exists libidn >/dev/null 2>&1 && echo 1`
25366 if test -z "$itexists"; then
25368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25369 $as_echo "no" >&6; }
25371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25372 $as_echo "found" >&6; }
25376 if test "$PKGCONFIG" != "no"; then
25377 IDN_LIBS=`$PKGCONFIG --libs-only-l libidn 2>/dev/null`
25378 IDN_LDFLAGS=`$PKGCONFIG --libs-only-L libidn 2>/dev/null`
25379 IDN_CPPFLAGS=`$PKGCONFIG --cflags-only-I libidn 2>/dev/null`
25380 IDN_DIR=`echo $IDN_LDFLAGS | $SED -e 's/-L//'`
25386 if test "$PKGCONFIG" != "no"; then
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&5
25388 $as_echo "$as_me: pkg-config: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25389 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25390 $as_echo "$as_me: pkg-config: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25391 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25392 $as_echo "$as_me: pkg-config: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&5
25394 $as_echo "$as_me: pkg-config: IDN_DIR: \"$IDN_DIR\"" >&6;}
25396 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LIBS: \"$IDN_LIBS\"" >&5
25397 $as_echo "$as_me: IDN_LIBS: \"$IDN_LIBS\"" >&6;}
25398 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&5
25399 $as_echo "$as_me: IDN_LDFLAGS: \"$IDN_LDFLAGS\"" >&6;}
25400 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&5
25401 $as_echo "$as_me: IDN_CPPFLAGS: \"$IDN_CPPFLAGS\"" >&6;}
25402 { $as_echo "$as_me:${as_lineno-$LINENO}: IDN_DIR: \"$IDN_DIR\"" >&5
25403 $as_echo "$as_me: IDN_DIR: \"$IDN_DIR\"" >&6;}
25406 CPPFLAGS="$IDN_CPPFLAGS $CPPFLAGS"
25407 LDFLAGS="$IDN_LDFLAGS $LDFLAGS"
25408 LIBS="$IDN_LIBS $LIBS"
25410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_4i can be linked" >&5
25411 $as_echo_n "checking if idna_to_ascii_4i can be linked... " >&6; }
25412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25413 /* end confdefs.h. */
25416 #define idna_to_ascii_4i innocuous_idna_to_ascii_4i
25418 # include <limits.h>
25420 # include <assert.h>
25422 #undef idna_to_ascii_4i
25426 char idna_to_ascii_4i ();
25427 #if defined __stub_idna_to_ascii_4i || defined __stub___idna_to_ascii_4i
25433 return idna_to_ascii_4i ();
25439 if ac_fn_c_try_link "$LINENO"; then :
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25442 $as_echo "yes" >&6; }
25443 tst_links_libidn="yes"
25447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25448 $as_echo "no" >&6; }
25449 tst_links_libidn="no"
25452 rm -f core conftest.err conftest.$ac_objext \
25453 conftest$ac_exeext conftest.$ac_ext
25454 if test "$tst_links_libidn" = "no"; then
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if idna_to_ascii_lz can be linked" >&5
25456 $as_echo_n "checking if idna_to_ascii_lz can be linked... " >&6; }
25457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25458 /* end confdefs.h. */
25461 #define idna_to_ascii_lz innocuous_idna_to_ascii_lz
25463 # include <limits.h>
25465 # include <assert.h>
25467 #undef idna_to_ascii_lz
25471 char idna_to_ascii_lz ();
25472 #if defined __stub_idna_to_ascii_lz || defined __stub___idna_to_ascii_lz
25478 return idna_to_ascii_lz ();
25484 if ac_fn_c_try_link "$LINENO"; then :
25486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25487 $as_echo "yes" >&6; }
25488 tst_links_libidn="yes"
25492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25493 $as_echo "no" >&6; }
25494 tst_links_libidn="no"
25497 rm -f core conftest.err conftest.$ac_objext \
25498 conftest$ac_exeext conftest.$ac_ext
25501 if test "$tst_links_libidn" = "yes"; then
25503 $as_echo "#define HAVE_LIBIDN 1" >>confdefs.h
25505 for ac_func in idn_free idna_strerror tld_strerror
25507 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25508 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25509 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
25510 cat >>confdefs.h <<_ACEOF
25511 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25517 for ac_header in idn-free.h tld.h
25519 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25520 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
25521 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
25522 cat >>confdefs.h <<_ACEOF
25523 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25530 if test "x$ac_cv_header_tld_h" = "xyes"; then
25533 curl_idn_msg="enabled"
25534 if test -n "$IDN_DIR" -a "x$cross_compiling" != "xyes"; then
25535 LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$IDN_DIR"
25536 export LD_LIBRARY_PATH
25537 { $as_echo "$as_me:${as_lineno-$LINENO}: Added $IDN_DIR to LD_LIBRARY_PATH" >&5
25538 $as_echo "$as_me: Added $IDN_DIR to LD_LIBRARY_PATH" >&6;}
25541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libraries for IDN support too old: IDN disabled" >&5
25542 $as_echo "$as_me: WARNING: Libraries for IDN support too old: IDN disabled" >&2;}
25543 CPPFLAGS="$clean_CPPFLAGS"
25544 LDFLAGS="$clean_LDFLAGS"
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find libraries for IDN support: IDN disabled" >&5
25549 $as_echo "$as_me: WARNING: Cannot find libraries for IDN support: IDN disabled" >&2;}
25550 CPPFLAGS="$clean_CPPFLAGS"
25551 LDFLAGS="$clean_LDFLAGS"
25562 # Check whether --with-nghttp2 was given.
25563 if test "${with_nghttp2+set}" = set; then :
25564 withval=$with_nghttp2; OPT_H2=$withval
25577 want_h2_path="$withval/lib/pkgconfig"
25581 curl_h2_msg="disabled (--with-nghttp2)"
25582 if test X"$want_h2" != Xno; then
25583 CLEANLDFLAGS="$LDFLAGS"
25584 CLEANCPPFLAGS="$CPPFLAGS"
25591 if test -n "$ac_tool_prefix"; then
25592 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25593 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25595 $as_echo_n "checking for $ac_word... " >&6; }
25596 if ${ac_cv_path_PKGCONFIG+:} false; then :
25597 $as_echo_n "(cached) " >&6
25601 ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path.
25604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25605 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25606 for as_dir in $as_dummy
25609 test -z "$as_dir" && as_dir=.
25610 for ac_exec_ext in '' $ac_executable_extensions; do
25611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25612 ac_cv_path_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25623 PKGCONFIG=$ac_cv_path_PKGCONFIG
25624 if test -n "$PKGCONFIG"; then
25625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5
25626 $as_echo "$PKGCONFIG" >&6; }
25628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25629 $as_echo "no" >&6; }
25634 if test -z "$ac_cv_path_PKGCONFIG"; then
25635 ac_pt_PKGCONFIG=$PKGCONFIG
25636 # Extract the first word of "pkg-config", so it can be a program name with args.
25637 set dummy pkg-config; ac_word=$2
25638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25639 $as_echo_n "checking for $ac_word... " >&6; }
25640 if ${ac_cv_path_ac_pt_PKGCONFIG+:} false; then :
25641 $as_echo_n "(cached) " >&6
25643 case $ac_pt_PKGCONFIG in
25645 ac_cv_path_ac_pt_PKGCONFIG="$ac_pt_PKGCONFIG" # Let the user override the test with a path.
25648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25649 as_dummy="$PATH:/usr/bin:/usr/local/bin"
25650 for as_dir in $as_dummy
25653 test -z "$as_dir" && as_dir=.
25654 for ac_exec_ext in '' $ac_executable_extensions; do
25655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25656 ac_cv_path_ac_pt_PKGCONFIG="$as_dir/$ac_word$ac_exec_ext"
25657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25667 ac_pt_PKGCONFIG=$ac_cv_path_ac_pt_PKGCONFIG
25668 if test -n "$ac_pt_PKGCONFIG"; then
25669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKGCONFIG" >&5
25670 $as_echo "$ac_pt_PKGCONFIG" >&6; }
25672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25673 $as_echo "no" >&6; }
25676 if test "x$ac_pt_PKGCONFIG" = x; then
25679 case $cross_compiling:$ac_tool_warned in
25681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25682 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25683 ac_tool_warned=yes ;;
25685 PKGCONFIG=$ac_pt_PKGCONFIG
25688 PKGCONFIG="$ac_cv_path_PKGCONFIG"
25692 if test x$PKGCONFIG != xno; then
25693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libnghttp2 options with pkg-config" >&5
25694 $as_echo_n "checking for libnghttp2 options with pkg-config... " >&6; }
25696 if test -n "$want_h2_path"; then
25697 PKG_CONFIG_LIBDIR="$want_h2_path"
25698 export PKG_CONFIG_LIBDIR
25700 $PKGCONFIG --exists libnghttp2 >/dev/null 2>&1 && echo 1`
25702 if test -z "$itexists"; then
25704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25705 $as_echo "no" >&6; }
25707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
25708 $as_echo "found" >&6; }
25713 if test "$PKGCONFIG" != "no" ; then
25715 if test -n "$want_h2_path"; then
25716 PKG_CONFIG_LIBDIR="$want_h2_path"
25717 export PKG_CONFIG_LIBDIR
25720 $PKGCONFIG --libs-only-l libnghttp2`
25721 { $as_echo "$as_me:${as_lineno-$LINENO}: -l is $LIB_H2" >&5
25722 $as_echo "$as_me: -l is $LIB_H2" >&6;}
25725 if test -n "$want_h2_path"; then
25726 PKG_CONFIG_LIBDIR="$want_h2_path"
25727 export PKG_CONFIG_LIBDIR
25729 $PKGCONFIG --cflags-only-I libnghttp2`
25730 { $as_echo "$as_me:${as_lineno-$LINENO}: -I is $CPP_H2" >&5
25731 $as_echo "$as_me: -I is $CPP_H2" >&6;}
25734 if test -n "$want_h2_path"; then
25735 PKG_CONFIG_LIBDIR="$want_h2_path"
25736 export PKG_CONFIG_LIBDIR
25739 $PKGCONFIG --libs-only-L libnghttp2`
25740 { $as_echo "$as_me:${as_lineno-$LINENO}: -L is $LD_H2" >&5
25741 $as_echo "$as_me: -L is $LD_H2" >&6;}
25743 LDFLAGS="$LDFLAGS $LD_H2"
25744 CPPFLAGS="$CPPFLAGS $CPP_H2"
25745 LIBS="$LIB_H2 $LIBS"
25747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nghttp2_session_callbacks_set_send_callback in -lnghttp2" >&5
25748 $as_echo_n "checking for nghttp2_session_callbacks_set_send_callback in -lnghttp2... " >&6; }
25749 if ${ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback+:} false; then :
25750 $as_echo_n "(cached) " >&6
25752 ac_check_lib_save_LIBS=$LIBS
25753 LIBS="-lnghttp2 $LIBS"
25754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25755 /* end confdefs.h. */
25761 char nghttp2_session_callbacks_set_send_callback ();
25764 return nghttp2_session_callbacks_set_send_callback ();
25769 if ac_fn_c_try_link "$LINENO"; then :
25770 ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback=yes
25772 ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback=no
25774 rm -f core conftest.err conftest.$ac_objext \
25775 conftest$ac_exeext conftest.$ac_ext
25776 LIBS=$ac_check_lib_save_LIBS
25778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback" >&5
25779 $as_echo "$ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback" >&6; }
25780 if test "x$ac_cv_lib_nghttp2_nghttp2_session_callbacks_set_send_callback" = xyes; then :
25782 for ac_header in nghttp2/nghttp2.h
25784 ac_fn_c_check_header_mongrel "$LINENO" "nghttp2/nghttp2.h" "ac_cv_header_nghttp2_nghttp2_h" "$ac_includes_default"
25785 if test "x$ac_cv_header_nghttp2_nghttp2_h" = xyes; then :
25786 cat >>confdefs.h <<_ACEOF
25787 #define HAVE_NGHTTP2_NGHTTP2_H 1
25789 curl_h2_msg="enabled (nghttp2)"
25792 $as_echo "#define USE_NGHTTP2 1" >>confdefs.h
25803 LDFLAGS=$CLEANLDFLAGS
25804 CPPFLAGS=$CLEANCPPFLAGS
25811 if test X"$want_h2" != Xdefault; then
25812 as_fn_error $? "--with-nghttp2 was specified but could not find libnghttp2 pkg-config file." "$LINENO" 5
25819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
25820 $as_echo_n "checking for ANSI C header files... " >&6; }
25821 if ${ac_cv_header_stdc+:} false; then :
25822 $as_echo_n "(cached) " >&6
25824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25825 /* end confdefs.h. */
25826 #include <stdlib.h>
25827 #include <stdarg.h>
25828 #include <string.h>
25838 if ac_fn_c_try_compile "$LINENO"; then :
25839 ac_cv_header_stdc=yes
25841 ac_cv_header_stdc=no
25843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25845 if test $ac_cv_header_stdc = yes; then
25846 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
25847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25848 /* end confdefs.h. */
25849 #include <string.h>
25852 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25853 $EGREP "memchr" >/dev/null 2>&1; then :
25856 ac_cv_header_stdc=no
25862 if test $ac_cv_header_stdc = yes; then
25863 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
25864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25865 /* end confdefs.h. */
25866 #include <stdlib.h>
25869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25870 $EGREP "free" >/dev/null 2>&1; then :
25873 ac_cv_header_stdc=no
25879 if test $ac_cv_header_stdc = yes; then
25880 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
25881 if test "$cross_compiling" = yes; then :
25884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25885 /* end confdefs.h. */
25887 #include <stdlib.h>
25888 #if ((' ' & 0x0FF) == 0x020)
25889 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
25890 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
25892 # define ISLOWER(c) \
25893 (('a' <= (c) && (c) <= 'i') \
25894 || ('j' <= (c) && (c) <= 'r') \
25895 || ('s' <= (c) && (c) <= 'z'))
25896 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
25899 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
25904 for (i = 0; i < 256; i++)
25905 if (XOR (islower (i), ISLOWER (i))
25906 || toupper (i) != TOUPPER (i))
25911 if ac_fn_c_try_run "$LINENO"; then :
25914 ac_cv_header_stdc=no
25916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25917 conftest.$ac_objext conftest.beam conftest.$ac_ext
25922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
25923 $as_echo "$ac_cv_header_stdc" >&6; }
25924 if test $ac_cv_header_stdc = yes; then
25926 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
25932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc.h" >&5
25933 $as_echo_n "checking for malloc.h... " >&6; }
25934 if ${ac_cv_header_malloc_h+:} false; then :
25935 $as_echo_n "(cached) " >&6
25938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25939 /* end confdefs.h. */
25942 #include <malloc.h>
25947 void *p = malloc(10);
25948 void *q = calloc(10,10);
25957 if ac_fn_c_try_compile "$LINENO"; then :
25959 ac_cv_header_malloc_h="yes"
25963 ac_cv_header_malloc_h="no"
25966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_malloc_h" >&5
25970 $as_echo "$ac_cv_header_malloc_h" >&6; }
25971 if test "$ac_cv_header_malloc_h" = "yes"; then
25973 cat >>confdefs.h <<_ACEOF
25974 #define HAVE_MALLOC_H 1
25978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25979 /* end confdefs.h. */
25982 #include <stdlib.h>
25987 void *p = malloc(10);
25988 void *q = calloc(10,10);
25997 if ac_fn_c_try_compile "$LINENO"; then :
25999 curl_cv_need_header_malloc_h="no"
26003 curl_cv_need_header_malloc_h="yes"
26006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26008 case "$curl_cv_need_header_malloc_h" in
26011 cat >>confdefs.h <<_ACEOF
26012 #define NEED_MALLOC_H 1
26020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory.h" >&5
26021 $as_echo_n "checking for memory.h... " >&6; }
26022 if ${ac_cv_header_memory_h+:} false; then :
26023 $as_echo_n "(cached) " >&6
26026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26027 /* end confdefs.h. */
26030 #include <memory.h>
26035 void *p = malloc(10);
26036 void *q = calloc(10,10);
26045 if ac_fn_c_try_compile "$LINENO"; then :
26047 ac_cv_header_memory_h="yes"
26051 ac_cv_header_memory_h="no"
26054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_memory_h" >&5
26058 $as_echo "$ac_cv_header_memory_h" >&6; }
26059 if test "$ac_cv_header_memory_h" = "yes"; then
26061 cat >>confdefs.h <<_ACEOF
26062 #define HAVE_MEMORY_H 1
26066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26067 /* end confdefs.h. */
26070 #include <stdlib.h>
26075 void *p = malloc(10);
26076 void *q = calloc(10,10);
26085 if ac_fn_c_try_compile "$LINENO"; then :
26087 curl_cv_need_header_memory_h="no"
26091 curl_cv_need_header_memory_h="yes"
26094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26096 case "$curl_cv_need_header_memory_h" in
26099 cat >>confdefs.h <<_ACEOF
26100 #define NEED_MEMORY_H 1
26108 for ac_header in sys/types.h \
26150 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26151 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
26152 #ifdef HAVE_SYS_TYPES_H
26153 #include <sys/types.h>
26155 #ifdef HAVE_SYS_TIME_H
26156 #include <sys/time.h>
26158 #ifdef HAVE_SYS_SELECT_H
26159 #include <sys/select.h>
26161 #ifdef HAVE_SYS_SOCKET_H
26162 #include <sys/socket.h>
26164 #ifdef HAVE_NETINET_IN_H
26165 #include <netinet/in.h>
26167 #ifdef HAVE_SYS_UN_H
26168 #include <sys/un.h>
26173 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26174 cat >>confdefs.h <<_ACEOF
26175 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
26184 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
26185 if ${ac_cv_c_const+:} false; then :
26186 $as_echo_n "(cached) " >&6
26188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26189 /* end confdefs.h. */
26194 #ifndef __cplusplus
26195 /* Ultrix mips cc rejects this sort of thing. */
26196 typedef int charset[2];
26197 const charset cs = { 0, 0 };
26198 /* SunOS 4.1.1 cc rejects this. */
26199 char const *const *pcpcc;
26201 /* NEC SVR4.0.2 mips cc rejects this. */
26202 struct point {int x, y;};
26203 static struct point const zero = {0,0};
26204 /* AIX XL C 1.02.0.0 rejects this.
26205 It does not let you subtract one const X* pointer from another in
26206 an arm of an if-expression whose if-part is not a constant
26208 const char *g = "string";
26209 pcpcc = &g + (g ? g-g : 0);
26210 /* HPUX 7.0 cc rejects these. */
26212 ppc = (char**) pcpcc;
26213 pcpcc = (char const *const *) ppc;
26214 { /* SCO 3.2v4 cc rejects this sort of thing. */
26217 char const *s = 0 ? (char *) 0 : (char const *) 0;
26222 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
26223 int x[] = {25, 17};
26224 const int *foo = &x[0];
26227 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
26228 typedef const int *iptr;
26232 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
26233 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
26234 struct s { int j; const int *ap[3]; } bx;
26235 struct s *b = &bx; b->j = 5;
26237 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
26238 const int foo = 10;
26239 if (!foo) return 0;
26241 return !cs[0] && !zero.x;
26248 if ac_fn_c_try_compile "$LINENO"; then :
26253 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
26256 $as_echo "$ac_cv_c_const" >&6; }
26257 if test $ac_cv_c_const = no; then
26259 $as_echo "#define const /**/" >>confdefs.h
26264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of C99 variadic macro style" >&5
26265 $as_echo_n "checking for compiler support of C99 variadic macro style... " >&6; }
26266 if ${curl_cv_variadic_macros_c99+:} false; then :
26267 $as_echo_n "(cached) " >&6
26270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26271 /* end confdefs.h. */
26274 #define c99_vmacro3(first, ...) fun3(first, __VA_ARGS__)
26275 #define c99_vmacro2(first, ...) fun2(first, __VA_ARGS__)
26276 int fun3(int arg1, int arg2, int arg3);
26277 int fun2(int arg1, int arg2);
26278 int fun3(int arg1, int arg2, int arg3)
26279 { return arg1 + arg2 + arg3; }
26280 int fun2(int arg1, int arg2)
26281 { return arg1 + arg2; }
26286 int res3 = c99_vmacro3(1, 2, 3);
26287 int res2 = c99_vmacro2(1, 2);
26294 if ac_fn_c_try_compile "$LINENO"; then :
26296 curl_cv_variadic_macros_c99="yes"
26300 curl_cv_variadic_macros_c99="no"
26303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_c99" >&5
26307 $as_echo "$curl_cv_variadic_macros_c99" >&6; }
26308 case "$curl_cv_variadic_macros_c99" in
26311 cat >>confdefs.h <<_ACEOF
26312 #define HAVE_VARIADIC_MACROS_C99 1
26317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler support of old gcc variadic macro style" >&5
26318 $as_echo_n "checking for compiler support of old gcc variadic macro style... " >&6; }
26319 if ${curl_cv_variadic_macros_gcc+:} false; then :
26320 $as_echo_n "(cached) " >&6
26323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26324 /* end confdefs.h. */
26327 #define gcc_vmacro3(first, args...) fun3(first, args)
26328 #define gcc_vmacro2(first, args...) fun2(first, args)
26329 int fun3(int arg1, int arg2, int arg3);
26330 int fun2(int arg1, int arg2);
26331 int fun3(int arg1, int arg2, int arg3)
26332 { return arg1 + arg2 + arg3; }
26333 int fun2(int arg1, int arg2)
26334 { return arg1 + arg2; }
26339 int res3 = gcc_vmacro3(1, 2, 3);
26340 int res2 = gcc_vmacro2(1, 2);
26347 if ac_fn_c_try_compile "$LINENO"; then :
26349 curl_cv_variadic_macros_gcc="yes"
26353 curl_cv_variadic_macros_gcc="no"
26356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_variadic_macros_gcc" >&5
26360 $as_echo "$curl_cv_variadic_macros_gcc" >&6; }
26361 case "$curl_cv_variadic_macros_gcc" in
26364 cat >>confdefs.h <<_ACEOF
26365 #define HAVE_VARIADIC_MACROS_GCC 1
26371 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
26372 if test "x$ac_cv_type_size_t" = xyes; then :
26376 cat >>confdefs.h <<_ACEOF
26377 #define size_t unsigned int
26382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
26383 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
26384 if ${ac_cv_header_time+:} false; then :
26385 $as_echo_n "(cached) " >&6
26387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26388 /* end confdefs.h. */
26389 #include <sys/types.h>
26390 #include <sys/time.h>
26395 if ((struct tm *) 0)
26401 if ac_fn_c_try_compile "$LINENO"; then :
26402 ac_cv_header_time=yes
26404 ac_cv_header_time=no
26406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
26409 $as_echo "$ac_cv_header_time" >&6; }
26410 if test $ac_cv_header_time = yes; then
26412 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
26417 for ac_header in sys/types.h sys/time.h time.h sys/socket.h
26419 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
26420 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
26421 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
26422 cat >>confdefs.h <<_ACEOF
26423 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timeval" >&5
26431 $as_echo_n "checking for struct timeval... " >&6; }
26432 if ${ac_cv_struct_timeval+:} false; then :
26433 $as_echo_n "(cached) " >&6
26436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26437 /* end confdefs.h. */
26441 #ifdef HAVE_WINDOWS_H
26442 #ifndef WIN32_LEAN_AND_MEAN
26443 #define WIN32_LEAN_AND_MEAN
26445 #include <windows.h>
26446 #ifdef HAVE_WINSOCK2_H
26447 #include <winsock2.h>
26449 #ifdef HAVE_WINSOCK_H
26450 #include <winsock.h>
26454 #ifdef HAVE_SYS_TYPES_H
26455 #include <sys/types.h>
26457 #ifdef HAVE_SYS_TIME_H
26458 #include <sys/time.h>
26459 #ifdef TIME_WITH_SYS_TIME
26467 #ifdef HAVE_SYS_SOCKET_H
26468 #include <sys/socket.h>
26483 if ac_fn_c_try_compile "$LINENO"; then :
26485 ac_cv_struct_timeval="yes"
26489 ac_cv_struct_timeval="no"
26492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_timeval" >&5
26496 $as_echo "$ac_cv_struct_timeval" >&6; }
26497 case "$ac_cv_struct_timeval" in
26500 cat >>confdefs.h <<_ACEOF
26501 #define HAVE_STRUCT_TIMEVAL 1
26509 if test "x$cross_compiling" != xyes; then
26511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-time libs availability" >&5
26512 $as_echo_n "checking run-time libs availability... " >&6; }
26513 if test "$cross_compiling" = yes; then :
26514 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26515 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26516 as_fn_error $? "cannot run test program while cross compiling
26517 See \`config.log' for more details" "$LINENO" 5; }
26519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26520 /* end confdefs.h. */
26528 if ac_fn_c_try_run "$LINENO"; then :
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: fine" >&5
26530 $as_echo "fine" >&6; }
26532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
26533 $as_echo "failed" >&6; }
26534 as_fn_error $? "one or more libs available at link-time are not available run-time. Libs used at link-time: $LIBS" "$LINENO" 5
26537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26538 conftest.$ac_objext conftest.beam conftest.$ac_ext
26545 # The cast to long int works around a bug in the HP C Compiler
26546 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26547 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26548 # This bug is HP SR number 8606223364.
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
26550 $as_echo_n "checking size of size_t... " >&6; }
26551 if ${ac_cv_sizeof_size_t+:} false; then :
26552 $as_echo_n "(cached) " >&6
26554 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
26557 if test "$ac_cv_type_size_t" = yes; then
26558 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26559 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26560 as_fn_error 77 "cannot compute sizeof (size_t)
26561 See \`config.log' for more details" "$LINENO" 5; }
26563 ac_cv_sizeof_size_t=0
26568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
26569 $as_echo "$ac_cv_sizeof_size_t" >&6; }
26573 cat >>confdefs.h <<_ACEOF
26574 #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
26578 # The cast to long int works around a bug in the HP C Compiler
26579 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26580 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26581 # This bug is HP SR number 8606223364.
26582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
26583 $as_echo_n "checking size of long... " >&6; }
26584 if ${ac_cv_sizeof_long+:} false; then :
26585 $as_echo_n "(cached) " >&6
26587 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
26590 if test "$ac_cv_type_long" = yes; then
26591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26593 as_fn_error 77 "cannot compute sizeof (long)
26594 See \`config.log' for more details" "$LINENO" 5; }
26596 ac_cv_sizeof_long=0
26601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
26602 $as_echo "$ac_cv_sizeof_long" >&6; }
26606 cat >>confdefs.h <<_ACEOF
26607 #define SIZEOF_LONG $ac_cv_sizeof_long
26611 # The cast to long int works around a bug in the HP C Compiler
26612 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26613 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26614 # This bug is HP SR number 8606223364.
26615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
26616 $as_echo_n "checking size of int... " >&6; }
26617 if ${ac_cv_sizeof_int+:} false; then :
26618 $as_echo_n "(cached) " >&6
26620 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
26623 if test "$ac_cv_type_int" = yes; then
26624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26626 as_fn_error 77 "cannot compute sizeof (int)
26627 See \`config.log' for more details" "$LINENO" 5; }
26634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
26635 $as_echo "$ac_cv_sizeof_int" >&6; }
26639 cat >>confdefs.h <<_ACEOF
26640 #define SIZEOF_INT $ac_cv_sizeof_int
26644 # The cast to long int works around a bug in the HP C Compiler
26645 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26646 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26647 # This bug is HP SR number 8606223364.
26648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
26649 $as_echo_n "checking size of short... " >&6; }
26650 if ${ac_cv_sizeof_short+:} false; then :
26651 $as_echo_n "(cached) " >&6
26653 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
26656 if test "$ac_cv_type_short" = yes; then
26657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26659 as_fn_error 77 "cannot compute sizeof (short)
26660 See \`config.log' for more details" "$LINENO" 5; }
26662 ac_cv_sizeof_short=0
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
26668 $as_echo "$ac_cv_sizeof_short" >&6; }
26672 cat >>confdefs.h <<_ACEOF
26673 #define SIZEOF_SHORT $ac_cv_sizeof_short
26678 if test -z "$ac_cv_sizeof_long" ||
26679 test "$ac_cv_sizeof_long" -eq "0"; then
26680 as_fn_error $? "cannot find out size of long." "$LINENO" 5
26683 cat >>confdefs.h <<_EOF
26684 #define CURL_SIZEOF_LONG $ac_cv_sizeof_long
26688 # The cast to long int works around a bug in the HP C Compiler
26689 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26690 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26691 # This bug is HP SR number 8606223364.
26692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of time_t" >&5
26693 $as_echo_n "checking size of time_t... " >&6; }
26694 if ${ac_cv_sizeof_time_t+:} false; then :
26695 $as_echo_n "(cached) " >&6
26697 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (time_t))" "ac_cv_sizeof_time_t" "$ac_includes_default"; then :
26700 if test "$ac_cv_type_time_t" = yes; then
26701 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26702 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26703 as_fn_error 77 "cannot compute sizeof (time_t)
26704 See \`config.log' for more details" "$LINENO" 5; }
26706 ac_cv_sizeof_time_t=0
26711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_time_t" >&5
26712 $as_echo "$ac_cv_sizeof_time_t" >&6; }
26716 cat >>confdefs.h <<_ACEOF
26717 #define SIZEOF_TIME_T $ac_cv_sizeof_time_t
26721 # The cast to long int works around a bug in the HP C Compiler
26722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
26723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
26724 # This bug is HP SR number 8606223364.
26725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
26726 $as_echo_n "checking size of off_t... " >&6; }
26727 if ${ac_cv_sizeof_off_t+:} false; then :
26728 $as_echo_n "(cached) " >&6
26730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then :
26733 if test "$ac_cv_type_off_t" = yes; then
26734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
26735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
26736 as_fn_error 77 "cannot compute sizeof (off_t)
26737 See \`config.log' for more details" "$LINENO" 5; }
26739 ac_cv_sizeof_off_t=0
26744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
26745 $as_echo "$ac_cv_sizeof_off_t" >&6; }
26749 cat >>confdefs.h <<_ACEOF
26750 #define SIZEOF_OFF_T $ac_cv_sizeof_off_t
26756 if test x"$ac_cv_native_windows" != "xyes" &&
26757 test $ac_cv_sizeof_off_t -ne $curl_sizeof_curl_off_t; then
26758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: This libcurl built is probably not ABI compatible with previous" >&5
26759 $as_echo "$as_me: WARNING: This libcurl built is probably not ABI compatible with previous" >&2;}
26760 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&5
26761 $as_echo "$as_me: WARNING: builds! You MUST read lib/README.curl_off_t to figure it out." >&2;}
26766 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
26767 if test "x$ac_cv_type_long_long" = xyes; then :
26769 $as_echo "#define HAVE_LONGLONG 1" >>confdefs.h
26776 if test "xyes" = "x$longlong"; then
26777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if numberLL works" >&5
26778 $as_echo_n "checking if numberLL works... " >&6; }
26779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26780 /* end confdefs.h. */
26787 long long val = 1000LL;
26794 if ac_fn_c_try_compile "$LINENO"; then :
26796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
26797 $as_echo "yes" >&6; }
26799 $as_echo "#define HAVE_LL 1" >>confdefs.h
26804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
26805 $as_echo "no" >&6; }
26808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26812 # check for ssize_t
26813 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
26814 if test "x$ac_cv_type_ssize_t" = xyes; then :
26818 $as_echo "#define ssize_t int" >>confdefs.h
26823 # check for bool type
26824 ac_fn_c_check_type "$LINENO" "bool" "ac_cv_type_bool" "
26825 #ifdef HAVE_SYS_TYPES_H
26826 #include <sys/types.h>
26828 #ifdef HAVE_STDBOOL_H
26829 #include <stdbool.h>
26833 if test "x$ac_cv_type_bool" = xyes; then :
26836 $as_echo "#define HAVE_BOOL_T 1" >>confdefs.h
26843 curl_includes_ws2tcpip="\
26844 /* includes start */
26845 #ifdef HAVE_WINDOWS_H
26846 # ifndef WIN32_LEAN_AND_MEAN
26847 # define WIN32_LEAN_AND_MEAN
26849 # include <windows.h>
26850 # ifdef HAVE_WINSOCK2_H
26851 # include <winsock2.h>
26852 # ifdef HAVE_WS2TCPIP_H
26853 # include <ws2tcpip.h>
26857 /* includes end */"
26859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windows.h" >&5
26860 $as_echo_n "checking for windows.h... " >&6; }
26861 if ${ac_cv_header_windows_h+:} false; then :
26862 $as_echo_n "(cached) " >&6
26865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26866 /* end confdefs.h. */
26870 #ifndef WIN32_LEAN_AND_MEAN
26871 #define WIN32_LEAN_AND_MEAN
26873 #include <windows.h>
26878 #if defined(__CYGWIN__) || defined(__CEGCC__)
26879 HAVE_WINDOWS_H shall not be defined.
26881 int dummy=2*WINVER;
26889 if ac_fn_c_try_compile "$LINENO"; then :
26891 ac_cv_header_windows_h="yes"
26895 ac_cv_header_windows_h="no"
26898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_windows_h" >&5
26902 $as_echo "$ac_cv_header_windows_h" >&6; }
26903 case "$ac_cv_header_windows_h" in
26906 cat >>confdefs.h <<_ACEOF
26907 #define HAVE_WINDOWS_H 1
26911 cat >>confdefs.h <<_ACEOF
26912 #define WIN32_LEAN_AND_MEAN 1
26919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for winsock2.h" >&5
26920 $as_echo_n "checking for winsock2.h... " >&6; }
26921 if ${ac_cv_header_winsock2_h+:} false; then :
26922 $as_echo_n "(cached) " >&6
26925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26926 /* end confdefs.h. */
26930 #ifndef WIN32_LEAN_AND_MEAN
26931 #define WIN32_LEAN_AND_MEAN
26933 #include <windows.h>
26934 #include <winsock2.h>
26939 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26940 HAVE_WINSOCK2_H shall not be defined.
26942 int dummy=2*IPPROTO_ESP;
26950 if ac_fn_c_try_compile "$LINENO"; then :
26952 ac_cv_header_winsock2_h="yes"
26956 ac_cv_header_winsock2_h="no"
26959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_winsock2_h" >&5
26963 $as_echo "$ac_cv_header_winsock2_h" >&6; }
26964 case "$ac_cv_header_winsock2_h" in
26967 cat >>confdefs.h <<_ACEOF
26968 #define HAVE_WINSOCK2_H 1
26975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ws2tcpip.h" >&5
26976 $as_echo_n "checking for ws2tcpip.h... " >&6; }
26977 if ${ac_cv_header_ws2tcpip_h+:} false; then :
26978 $as_echo_n "(cached) " >&6
26981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26982 /* end confdefs.h. */
26986 #ifndef WIN32_LEAN_AND_MEAN
26987 #define WIN32_LEAN_AND_MEAN
26989 #include <windows.h>
26990 #include <winsock2.h>
26991 #include <ws2tcpip.h>
26996 #if defined(__CYGWIN__) || defined(__CEGCC__) || defined(__MINGW32CE__)
26997 HAVE_WS2TCPIP_H shall not be defined.
26999 int dummy=2*IP_PKTINFO;
27007 if ac_fn_c_try_compile "$LINENO"; then :
27009 ac_cv_header_ws2tcpip_h="yes"
27013 ac_cv_header_ws2tcpip_h="no"
27016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_ws2tcpip_h" >&5
27020 $as_echo "$ac_cv_header_ws2tcpip_h" >&6; }
27021 case "$ac_cv_header_ws2tcpip_h" in
27024 cat >>confdefs.h <<_ACEOF
27025 #define HAVE_WS2TCPIP_H 1
27033 curl_includes_sys_socket="\
27034 /* includes start */
27035 #ifdef HAVE_SYS_TYPES_H
27036 # include <sys/types.h>
27038 #ifdef HAVE_SYS_SOCKET_H
27039 # include <sys/socket.h>
27041 /* includes end */"
27042 for ac_header in sys/types.h sys/socket.h
27044 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27045 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_socket
27047 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27048 cat >>confdefs.h <<_ACEOF
27049 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27058 curl_preprocess_callconv="\
27059 /* preprocess start */
27060 #ifdef HAVE_WINDOWS_H
27061 # define FUNCALLCONV __stdcall
27063 # define FUNCALLCONV
27065 /* preprocess end */"
27070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_socklen_t data type" >&5
27071 $as_echo_n "checking for curl_socklen_t data type... " >&6; }
27072 curl_typeof_curl_socklen_t="unknown"
27073 for arg1 in int SOCKET; do
27074 for arg2 in 'struct sockaddr' void; do
27075 for t in socklen_t int size_t 'unsigned int' long 'unsigned long' void; do
27076 if test "$curl_typeof_curl_socklen_t" = "unknown"; then
27077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27078 /* end confdefs.h. */
27081 $curl_includes_ws2tcpip
27082 $curl_includes_sys_socket
27083 $curl_preprocess_callconv
27084 extern int FUNCALLCONV getpeername($arg1, $arg2 *, $t *);
27090 if(0 != getpeername(0, 0, lenptr))
27098 if ac_fn_c_try_compile "$LINENO"; then :
27100 curl_typeof_curl_socklen_t="$t"
27103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27108 for t in socklen_t int; do
27109 if test "$curl_typeof_curl_socklen_t" = "void"; then
27110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27111 /* end confdefs.h. */
27114 $curl_includes_sys_socket
27115 typedef $t curl_socklen_t;
27120 curl_socklen_t dummy;
27127 if ac_fn_c_try_compile "$LINENO"; then :
27129 curl_typeof_curl_socklen_t="$t"
27132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_typeof_curl_socklen_t" >&5
27136 $as_echo "$curl_typeof_curl_socklen_t" >&6; }
27137 if test "$curl_typeof_curl_socklen_t" = "void" ||
27138 test "$curl_typeof_curl_socklen_t" = "unknown"; then
27139 as_fn_error $? "cannot find data type for curl_socklen_t." "$LINENO" 5
27142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of curl_socklen_t" >&5
27143 $as_echo_n "checking size of curl_socklen_t... " >&6; }
27144 curl_sizeof_curl_socklen_t="unknown"
27145 curl_pull_headers_socklen_t="unknown"
27146 if test "$ac_cv_header_ws2tcpip_h" = "yes"; then
27147 tst_pull_header_checks='none ws2tcpip'
27148 tst_size_checks='4'
27150 tst_pull_header_checks='none systypes syssocket'
27151 tst_size_checks='4 8 2'
27153 for tst_size in $tst_size_checks; do
27154 for tst_pull_headers in $tst_pull_header_checks; do
27155 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27156 case $tst_pull_headers in
27158 tmp_includes="$curl_includes_ws2tcpip"
27161 tmp_includes="$curl_includes_sys_types"
27164 tmp_includes="$curl_includes_sys_socket"
27170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27171 /* end confdefs.h. */
27175 typedef $curl_typeof_curl_socklen_t curl_socklen_t;
27176 typedef char dummy_arr[sizeof(curl_socklen_t) == $tst_size ? 1 : -1];
27181 curl_socklen_t dummy;
27188 if ac_fn_c_try_compile "$LINENO"; then :
27190 curl_sizeof_curl_socklen_t="$tst_size"
27191 curl_pull_headers_socklen_t="$tst_pull_headers"
27194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_sizeof_curl_socklen_t" >&5
27199 $as_echo "$curl_sizeof_curl_socklen_t" >&6; }
27200 if test "$curl_sizeof_curl_socklen_t" = "unknown"; then
27201 as_fn_error $? "cannot find out size of curl_socklen_t." "$LINENO" 5
27204 case $curl_pull_headers_socklen_t in
27207 cat >>confdefs.h <<_EOF
27208 #define CURL_PULL_WS2TCPIP_H 1
27214 cat >>confdefs.h <<_EOF
27215 #define CURL_PULL_SYS_TYPES_H 1
27221 cat >>confdefs.h <<_EOF
27222 #define CURL_PULL_SYS_TYPES_H 1
27226 cat >>confdefs.h <<_EOF
27227 #define CURL_PULL_SYS_SOCKET_H 1
27233 cat >>confdefs.h <<_EOF
27234 #define CURL_TYPEOF_CURL_SOCKLEN_T $curl_typeof_curl_socklen_t
27238 cat >>confdefs.h <<_EOF
27239 #define CURL_SIZEOF_CURL_SOCKLEN_T $curl_sizeof_curl_socklen_t
27245 curl_includes_poll="\
27246 /* includes start */
27247 #ifdef HAVE_SYS_TYPES_H
27248 # include <sys/types.h>
27253 #ifdef HAVE_SYS_POLL_H
27254 # include <sys/poll.h>
27256 /* includes end */"
27257 for ac_header in sys/types.h poll.h sys/poll.h
27259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27260 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_poll
27262 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27263 cat >>confdefs.h <<_ACEOF
27264 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27274 tst_poll_events_macro_defined="unknown"
27276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27277 /* end confdefs.h. */
27280 $curl_includes_poll
27285 #if defined(events) || defined(revents)
27288 force compilation error
27296 if ac_fn_c_try_compile "$LINENO"; then :
27298 tst_poll_events_macro_defined="yes"
27302 tst_poll_events_macro_defined="no"
27305 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27307 if test "$tst_poll_events_macro_defined" = "yes"; then
27308 if test "x$ac_cv_header_sys_poll_h" = "xyes"; then
27310 cat >>confdefs.h <<_EOF
27311 #define CURL_PULL_SYS_POLL_H 1
27320 ac_fn_c_check_type "$LINENO" "in_addr_t" "ac_cv_type_in_addr_t" "
27322 #ifdef HAVE_WINDOWS_H
27323 #ifndef WIN32_LEAN_AND_MEAN
27324 #define WIN32_LEAN_AND_MEAN
27326 #include <windows.h>
27327 #ifdef HAVE_WINSOCK2_H
27328 #include <winsock2.h>
27330 #ifdef HAVE_WINSOCK_H
27331 #include <winsock.h>
27335 #ifdef HAVE_SYS_TYPES_H
27336 #include <sys/types.h>
27338 #ifdef HAVE_SYS_SOCKET_H
27339 #include <sys/socket.h>
27341 #ifdef HAVE_NETINET_IN_H
27342 #include <netinet/in.h>
27344 #ifdef HAVE_ARPA_INET_H
27345 #include <arpa/inet.h>
27350 if test "x$ac_cv_type_in_addr_t" = xyes; then :
27354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t equivalent" >&5
27355 $as_echo_n "checking for in_addr_t equivalent... " >&6; }
27356 if ${curl_cv_in_addr_t_equiv+:} false; then :
27357 $as_echo_n "(cached) " >&6
27360 curl_cv_in_addr_t_equiv="unknown"
27361 for t in "unsigned long" int size_t unsigned long; do
27362 if test "$curl_cv_in_addr_t_equiv" = "unknown"; then
27363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27364 /* end confdefs.h. */
27368 #ifdef HAVE_WINDOWS_H
27369 #ifndef WIN32_LEAN_AND_MEAN
27370 #define WIN32_LEAN_AND_MEAN
27372 #include <windows.h>
27373 #ifdef HAVE_WINSOCK2_H
27374 #include <winsock2.h>
27376 #ifdef HAVE_WINSOCK_H
27377 #include <winsock.h>
27381 #ifdef HAVE_SYS_TYPES_H
27382 #include <sys/types.h>
27384 #ifdef HAVE_SYS_SOCKET_H
27385 #include <sys/socket.h>
27387 #ifdef HAVE_NETINET_IN_H
27388 #include <netinet/in.h>
27390 #ifdef HAVE_ARPA_INET_H
27391 #include <arpa/inet.h>
27398 $t data = inet_addr ("1.2.3.4");
27405 if ac_fn_c_try_link "$LINENO"; then :
27407 curl_cv_in_addr_t_equiv="$t"
27410 rm -f core conftest.err conftest.$ac_objext \
27411 conftest$ac_exeext conftest.$ac_ext
27416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_in_addr_t_equiv" >&5
27417 $as_echo "$curl_cv_in_addr_t_equiv" >&6; }
27418 case "$curl_cv_in_addr_t_equiv" in
27420 as_fn_error $? "Cannot find a type to use in place of in_addr_t" "$LINENO" 5
27424 cat >>confdefs.h <<_ACEOF
27425 #define in_addr_t $curl_cv_in_addr_t_equiv
27436 ac_fn_c_check_type "$LINENO" "struct sockaddr_storage" "ac_cv_type_struct_sockaddr_storage" "
27438 #ifdef HAVE_WINDOWS_H
27439 #ifndef WIN32_LEAN_AND_MEAN
27440 #define WIN32_LEAN_AND_MEAN
27442 #include <windows.h>
27443 #ifdef HAVE_WINSOCK2_H
27444 #include <winsock2.h>
27447 #ifdef HAVE_SYS_TYPES_H
27448 #include <sys/types.h>
27450 #ifdef HAVE_SYS_SOCKET_H
27451 #include <sys/socket.h>
27453 #ifdef HAVE_NETINET_IN_H
27454 #include <netinet/in.h>
27456 #ifdef HAVE_ARPA_INET_H
27457 #include <arpa/inet.h>
27462 if test "x$ac_cv_type_struct_sockaddr_storage" = xyes; then :
27464 $as_echo "#define HAVE_STRUCT_SOCKADDR_STORAGE 1" >>confdefs.h
27471 for ac_header in signal.h
27473 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
27474 if test "x$ac_cv_header_signal_h" = xyes; then :
27475 cat >>confdefs.h <<_ACEOF
27476 #define HAVE_SIGNAL_H 1
27483 ac_fn_c_check_type "$LINENO" "sig_atomic_t" "ac_cv_type_sig_atomic_t" "
27484 #ifdef HAVE_SIGNAL_H
27485 #include <signal.h>
27489 if test "x$ac_cv_type_sig_atomic_t" = xyes; then :
27492 $as_echo "#define HAVE_SIG_ATOMIC_T 1" >>confdefs.h
27497 case "$ac_cv_type_sig_atomic_t" in
27500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sig_atomic_t is already defined as volatile" >&5
27501 $as_echo_n "checking if sig_atomic_t is already defined as volatile... " >&6; }
27502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27503 /* end confdefs.h. */
27506 #ifdef HAVE_SIGNAL_H
27507 #include <signal.h>
27513 static volatile sig_atomic_t dummy = 0;
27520 if ac_fn_c_try_link "$LINENO"; then :
27522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27523 $as_echo "no" >&6; }
27524 ac_cv_sig_atomic_t_volatile="no"
27528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27529 $as_echo "yes" >&6; }
27530 ac_cv_sig_atomic_t_volatile="yes"
27533 rm -f core conftest.err conftest.$ac_objext \
27534 conftest$ac_exeext conftest.$ac_ext
27536 if test "$ac_cv_sig_atomic_t_volatile" = "yes"; then
27538 $as_echo "#define HAVE_SIG_ATOMIC_T_VOLATILE 1" >>confdefs.h
27545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
27546 $as_echo_n "checking return type of signal handlers... " >&6; }
27547 if ${ac_cv_type_signal+:} false; then :
27548 $as_echo_n "(cached) " >&6
27550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27551 /* end confdefs.h. */
27552 #include <sys/types.h>
27553 #include <signal.h>
27557 return *(signal (0, 0)) (0) == 1;
27562 if ac_fn_c_try_compile "$LINENO"; then :
27563 ac_cv_type_signal=int
27565 ac_cv_type_signal=void
27567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
27570 $as_echo "$ac_cv_type_signal" >&6; }
27572 cat >>confdefs.h <<_ACEOF
27573 #define RETSIGTYPE $ac_cv_type_signal
27579 for ac_header in sys/select.h sys/socket.h
27581 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27582 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27583 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27584 cat >>confdefs.h <<_ACEOF
27585 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select" >&5
27594 $as_echo_n "checking for select... " >&6; }
27595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27596 /* end confdefs.h. */
27600 #ifdef HAVE_WINDOWS_H
27601 #ifndef WIN32_LEAN_AND_MEAN
27602 #define WIN32_LEAN_AND_MEAN
27604 #include <windows.h>
27605 #ifdef HAVE_WINSOCK2_H
27606 #include <winsock2.h>
27608 #ifdef HAVE_WINSOCK_H
27609 #include <winsock.h>
27613 #ifdef HAVE_SYS_TYPES_H
27614 #include <sys/types.h>
27616 #ifdef HAVE_SYS_TIME_H
27617 #include <sys/time.h>
27618 #ifdef TIME_WITH_SYS_TIME
27626 #ifndef HAVE_WINDOWS_H
27627 #ifdef HAVE_SYS_SELECT_H
27628 #include <sys/select.h>
27630 #ifdef HAVE_SYS_SOCKET_H
27631 #include <sys/socket.h>
27638 select(0, 0, 0, 0, 0);
27645 if ac_fn_c_try_link "$LINENO"; then :
27647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27648 $as_echo "yes" >&6; }
27649 curl_cv_select="yes"
27653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27654 $as_echo "no" >&6; }
27655 curl_cv_select="no"
27658 rm -f core conftest.err conftest.$ac_objext \
27659 conftest$ac_exeext conftest.$ac_ext
27661 if test "$curl_cv_select" = "yes"; then
27662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for select" >&5
27663 $as_echo_n "checking types of args and return type for select... " >&6; }
27664 if ${curl_cv_func_select_args+:} false; then :
27665 $as_echo_n "(cached) " >&6
27668 curl_cv_func_select_args="unknown"
27669 for sel_retv in 'int' 'ssize_t'; do
27670 for sel_arg1 in 'int' 'ssize_t' 'size_t' 'unsigned long int' 'unsigned int'; do
27671 for sel_arg234 in 'fd_set *' 'int *' 'void *'; do
27672 for sel_arg5 in 'struct timeval *' 'const struct timeval *'; do
27673 if test "$curl_cv_func_select_args" = "unknown"; then
27674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27675 /* end confdefs.h. */
27679 #ifdef HAVE_WINDOWS_H
27680 #ifndef WIN32_LEAN_AND_MEAN
27681 #define WIN32_LEAN_AND_MEAN
27683 #include <windows.h>
27684 #ifdef HAVE_WINSOCK2_H
27685 #include <winsock2.h>
27687 #ifdef HAVE_WINSOCK_H
27688 #include <winsock.h>
27691 #define SELECTCALLCONV PASCAL
27693 #ifdef HAVE_SYS_TYPES_H
27694 #include <sys/types.h>
27696 #ifdef HAVE_SYS_TIME_H
27697 #include <sys/time.h>
27698 #ifdef TIME_WITH_SYS_TIME
27706 #ifndef HAVE_WINDOWS_H
27707 #ifdef HAVE_SYS_SELECT_H
27708 #include <sys/select.h>
27710 #ifdef HAVE_SYS_SOCKET_H
27711 #include <sys/socket.h>
27713 #define SELECTCALLCONV
27715 #ifndef HAVE_STRUCT_TIMEVAL
27721 extern $sel_retv SELECTCALLCONV select($sel_arg1,
27731 $sel_arg234 rfds=0;
27732 $sel_arg234 wfds=0;
27733 $sel_arg234 efds=0;
27734 $sel_retv res = select(nfds, rfds, wfds, efds, 0);
27741 if ac_fn_c_try_compile "$LINENO"; then :
27743 curl_cv_func_select_args="$sel_arg1,$sel_arg234,$sel_arg5,$sel_retv"
27746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_select_args" >&5
27755 $as_echo "$curl_cv_func_select_args" >&6; } # AC-CACHE-CHECK
27756 if test "$curl_cv_func_select_args" = "unknown"; then
27757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for select args" >&5
27758 $as_echo "$as_me: WARNING: Cannot find proper types to use for select args" >&2;}
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_SELECT will not be defined" >&5
27760 $as_echo "$as_me: WARNING: HAVE_SELECT will not be defined" >&2;}
27762 select_prev_IFS=$IFS; IFS=','
27763 set dummy `echo "$curl_cv_func_select_args" | sed 's/\*/\*/g'`
27764 IFS=$select_prev_IFS
27767 sel_qual_type_arg5=$3
27770 cat >>confdefs.h <<_ACEOF
27771 #define SELECT_TYPE_ARG1 $1
27775 cat >>confdefs.h <<_ACEOF
27776 #define SELECT_TYPE_ARG234 $2
27780 cat >>confdefs.h <<_ACEOF
27781 #define SELECT_TYPE_RETV $4
27787 case $prev_sh_opts in
27795 case "$sel_qual_type_arg5" in
27797 sel_qual_arg5=const
27798 sel_type_arg5=`echo $sel_qual_type_arg5 | sed 's/^const //'`
27802 sel_type_arg5=$sel_qual_type_arg5
27807 cat >>confdefs.h <<_ACEOF
27808 #define SELECT_QUAL_ARG5 $sel_qual_arg5
27812 cat >>confdefs.h <<_ACEOF
27813 #define SELECT_TYPE_ARG5 $sel_type_arg5
27817 case $prev_sh_opts in
27826 cat >>confdefs.h <<_ACEOF
27827 #define HAVE_SELECT 1
27830 ac_cv_func_select="yes"
27836 for ac_header in sys/types.h sys/socket.h
27838 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
27839 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
27840 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
27841 cat >>confdefs.h <<_ACEOF
27842 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
27850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recv" >&5
27851 $as_echo_n "checking for recv... " >&6; }
27852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27853 /* end confdefs.h. */
27857 #ifdef HAVE_WINDOWS_H
27858 #ifndef WIN32_LEAN_AND_MEAN
27859 #define WIN32_LEAN_AND_MEAN
27861 #include <windows.h>
27862 #ifdef HAVE_WINSOCK2_H
27863 #include <winsock2.h>
27865 #ifdef HAVE_WINSOCK_H
27866 #include <winsock.h>
27870 #ifdef HAVE_SYS_TYPES_H
27871 #include <sys/types.h>
27873 #ifdef HAVE_SYS_SOCKET_H
27874 #include <sys/socket.h>
27888 if ac_fn_c_try_link "$LINENO"; then :
27890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27891 $as_echo "yes" >&6; }
27896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27897 $as_echo "no" >&6; }
27901 rm -f core conftest.err conftest.$ac_objext \
27902 conftest$ac_exeext conftest.$ac_ext
27904 if test "$curl_cv_recv" = "yes"; then
27905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for recv" >&5
27906 $as_echo_n "checking types of args and return type for recv... " >&6; }
27907 if ${curl_cv_func_recv_args+:} false; then :
27908 $as_echo_n "(cached) " >&6
27911 curl_cv_func_recv_args="unknown"
27912 for recv_retv in 'int' 'ssize_t'; do
27913 for recv_arg1 in 'int' 'ssize_t' 'SOCKET'; do
27914 for recv_arg2 in 'char *' 'void *'; do
27915 for recv_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
27916 for recv_arg4 in 'int' 'unsigned int'; do
27917 if test "$curl_cv_func_recv_args" = "unknown"; then
27918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27919 /* end confdefs.h. */
27923 #ifdef HAVE_WINDOWS_H
27924 #ifndef WIN32_LEAN_AND_MEAN
27925 #define WIN32_LEAN_AND_MEAN
27927 #include <windows.h>
27928 #ifdef HAVE_WINSOCK2_H
27929 #include <winsock2.h>
27931 #ifdef HAVE_WINSOCK_H
27932 #include <winsock.h>
27935 #define RECVCALLCONV PASCAL
27937 #ifdef HAVE_SYS_TYPES_H
27938 #include <sys/types.h>
27940 #ifdef HAVE_SYS_SOCKET_H
27941 #include <sys/socket.h>
27943 #define RECVCALLCONV
27945 extern $recv_retv RECVCALLCONV
27946 recv($recv_arg1, $recv_arg2, $recv_arg3, $recv_arg4);
27954 $recv_arg4 flags=0;
27955 $recv_retv res = recv(s, buf, len, flags);
27962 if ac_fn_c_try_compile "$LINENO"; then :
27964 curl_cv_func_recv_args="$recv_arg1,$recv_arg2,$recv_arg3,$recv_arg4,$recv_retv"
27967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
27976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_recv_args" >&5
27977 $as_echo "$curl_cv_func_recv_args" >&6; } # AC-CACHE-CHECK
27978 if test "$curl_cv_func_recv_args" = "unknown"; then
27979 as_fn_error $? "Cannot find proper types to use for recv args" "$LINENO" 5
27981 recv_prev_IFS=$IFS; IFS=','
27982 set dummy `echo "$curl_cv_func_recv_args" | sed 's/\*/\*/g'`
27987 cat >>confdefs.h <<_ACEOF
27988 #define RECV_TYPE_ARG1 $1
27992 cat >>confdefs.h <<_ACEOF
27993 #define RECV_TYPE_ARG2 $2
27997 cat >>confdefs.h <<_ACEOF
27998 #define RECV_TYPE_ARG3 $3
28002 cat >>confdefs.h <<_ACEOF
28003 #define RECV_TYPE_ARG4 $4
28007 cat >>confdefs.h <<_ACEOF
28008 #define RECV_TYPE_RETV $5
28013 cat >>confdefs.h <<_ACEOF
28014 #define HAVE_RECV 1
28017 ac_cv_func_recv="yes"
28020 as_fn_error $? "Unable to link function recv" "$LINENO" 5
28024 for ac_header in sys/types.h sys/socket.h
28026 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28027 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28028 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28029 cat >>confdefs.h <<_ACEOF
28030 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for send" >&5
28039 $as_echo_n "checking for send... " >&6; }
28040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28041 /* end confdefs.h. */
28045 #ifdef HAVE_WINDOWS_H
28046 #ifndef WIN32_LEAN_AND_MEAN
28047 #define WIN32_LEAN_AND_MEAN
28049 #include <windows.h>
28050 #ifdef HAVE_WINSOCK2_H
28051 #include <winsock2.h>
28053 #ifdef HAVE_WINSOCK_H
28054 #include <winsock.h>
28058 #ifdef HAVE_SYS_TYPES_H
28059 #include <sys/types.h>
28061 #ifdef HAVE_SYS_SOCKET_H
28062 #include <sys/socket.h>
28076 if ac_fn_c_try_link "$LINENO"; then :
28078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28079 $as_echo "yes" >&6; }
28084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28085 $as_echo "no" >&6; }
28089 rm -f core conftest.err conftest.$ac_objext \
28090 conftest$ac_exeext conftest.$ac_ext
28092 if test "$curl_cv_send" = "yes"; then
28093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of args and return type for send" >&5
28094 $as_echo_n "checking types of args and return type for send... " >&6; }
28095 if ${curl_cv_func_send_args+:} false; then :
28096 $as_echo_n "(cached) " >&6
28099 curl_cv_func_send_args="unknown"
28100 for send_retv in 'int' 'ssize_t'; do
28101 for send_arg1 in 'int' 'ssize_t' 'SOCKET'; do
28102 for send_arg2 in 'char *' 'void *' 'const char *' 'const void *'; do
28103 for send_arg3 in 'size_t' 'int' 'socklen_t' 'unsigned int'; do
28104 for send_arg4 in 'int' 'unsigned int'; do
28105 if test "$curl_cv_func_send_args" = "unknown"; then
28106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28107 /* end confdefs.h. */
28111 #ifdef HAVE_WINDOWS_H
28112 #ifndef WIN32_LEAN_AND_MEAN
28113 #define WIN32_LEAN_AND_MEAN
28115 #include <windows.h>
28116 #ifdef HAVE_WINSOCK2_H
28117 #include <winsock2.h>
28119 #ifdef HAVE_WINSOCK_H
28120 #include <winsock.h>
28123 #define SENDCALLCONV PASCAL
28125 #ifdef HAVE_SYS_TYPES_H
28126 #include <sys/types.h>
28128 #ifdef HAVE_SYS_SOCKET_H
28129 #include <sys/socket.h>
28131 #define SENDCALLCONV
28133 extern $send_retv SENDCALLCONV
28134 send($send_arg1, $send_arg2, $send_arg3, $send_arg4);
28141 $send_arg4 flags=0;
28142 $send_retv res = send(s, 0, len, flags);
28149 if ac_fn_c_try_compile "$LINENO"; then :
28151 curl_cv_func_send_args="$send_arg1,$send_arg2,$send_arg3,$send_arg4,$send_retv"
28154 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_send_args" >&5
28164 $as_echo "$curl_cv_func_send_args" >&6; } # AC-CACHE-CHECK
28165 if test "$curl_cv_func_send_args" = "unknown"; then
28166 as_fn_error $? "Cannot find proper types to use for send args" "$LINENO" 5
28168 send_prev_IFS=$IFS; IFS=','
28169 set dummy `echo "$curl_cv_func_send_args" | sed 's/\*/\*/g'`
28173 send_qual_type_arg2=$2
28176 cat >>confdefs.h <<_ACEOF
28177 #define SEND_TYPE_ARG1 $1
28181 cat >>confdefs.h <<_ACEOF
28182 #define SEND_TYPE_ARG3 $3
28186 cat >>confdefs.h <<_ACEOF
28187 #define SEND_TYPE_ARG4 $4
28191 cat >>confdefs.h <<_ACEOF
28192 #define SEND_TYPE_RETV $5
28198 case $prev_sh_opts in
28206 case "$send_qual_type_arg2" in
28208 send_qual_arg2=const
28209 send_type_arg2=`echo $send_qual_type_arg2 | sed 's/^const //'`
28213 send_type_arg2=$send_qual_type_arg2
28218 cat >>confdefs.h <<_ACEOF
28219 #define SEND_QUAL_ARG2 $send_qual_arg2
28223 cat >>confdefs.h <<_ACEOF
28224 #define SEND_TYPE_ARG2 $send_type_arg2
28228 case $prev_sh_opts in
28237 cat >>confdefs.h <<_ACEOF
28238 #define HAVE_SEND 1
28241 ac_cv_func_send="yes"
28244 as_fn_error $? "Unable to link function send" "$LINENO" 5
28248 for ac_header in sys/types.h sys/socket.h
28250 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28251 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
28252 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28253 cat >>confdefs.h <<_ACEOF
28254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
28262 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
28263 if ${ac_cv_msg_nosignal+:} false; then :
28264 $as_echo_n "(cached) " >&6
28267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28268 /* end confdefs.h. */
28272 #ifdef HAVE_WINDOWS_H
28273 #ifndef WIN32_LEAN_AND_MEAN
28274 #define WIN32_LEAN_AND_MEAN
28276 #include <windows.h>
28277 #ifdef HAVE_WINSOCK2_H
28278 #include <winsock2.h>
28280 #ifdef HAVE_WINSOCK_H
28281 #include <winsock.h>
28285 #ifdef HAVE_SYS_TYPES_H
28286 #include <sys/types.h>
28288 #ifdef HAVE_SYS_SOCKET_H
28289 #include <sys/socket.h>
28296 int flag=MSG_NOSIGNAL;
28303 if ac_fn_c_try_compile "$LINENO"; then :
28305 ac_cv_msg_nosignal="yes"
28309 ac_cv_msg_nosignal="no"
28312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_msg_nosignal" >&5
28316 $as_echo "$ac_cv_msg_nosignal" >&6; }
28317 case "$ac_cv_msg_nosignal" in
28320 cat >>confdefs.h <<_ACEOF
28321 #define HAVE_MSG_NOSIGNAL 1
28329 curl_includes_unistd="\
28330 /* includes start */
28331 #ifdef HAVE_SYS_TYPES_H
28332 # include <sys/types.h>
28334 #ifdef HAVE_UNISTD_H
28335 # include <unistd.h>
28337 /* includes end */"
28338 for ac_header in sys/types.h unistd.h
28340 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28341 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_unistd
28343 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28344 cat >>confdefs.h <<_ACEOF
28345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28355 tst_links_alarm="unknown"
28356 tst_proto_alarm="unknown"
28357 tst_compi_alarm="unknown"
28358 tst_allow_alarm="unknown"
28360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm can be linked" >&5
28361 $as_echo_n "checking if alarm can be linked... " >&6; }
28362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28363 /* end confdefs.h. */
28366 #define alarm innocuous_alarm
28368 # include <limits.h>
28370 # include <assert.h>
28377 #if defined __stub_alarm || defined __stub___alarm
28389 if ac_fn_c_try_link "$LINENO"; then :
28391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28392 $as_echo "yes" >&6; }
28393 tst_links_alarm="yes"
28397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28398 $as_echo "no" >&6; }
28399 tst_links_alarm="no"
28402 rm -f core conftest.err conftest.$ac_objext \
28403 conftest$ac_exeext conftest.$ac_ext
28405 if test "$tst_links_alarm" = "yes"; then
28406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is prototyped" >&5
28407 $as_echo_n "checking if alarm is prototyped... " >&6; }
28408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28409 /* end confdefs.h. */
28411 $curl_includes_unistd
28414 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28415 $EGREP "alarm" >/dev/null 2>&1; then :
28417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28418 $as_echo "yes" >&6; }
28419 tst_proto_alarm="yes"
28423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28424 $as_echo "no" >&6; }
28425 tst_proto_alarm="no"
28432 if test "$tst_proto_alarm" = "yes"; then
28433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm is compilable" >&5
28434 $as_echo_n "checking if alarm is compilable... " >&6; }
28435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28436 /* end confdefs.h. */
28439 $curl_includes_unistd
28452 if ac_fn_c_try_compile "$LINENO"; then :
28454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28455 $as_echo "yes" >&6; }
28456 tst_compi_alarm="yes"
28460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28461 $as_echo "no" >&6; }
28462 tst_compi_alarm="no"
28465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28468 if test "$tst_compi_alarm" = "yes"; then
28469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm usage allowed" >&5
28470 $as_echo_n "checking if alarm usage allowed... " >&6; }
28471 if test "x$curl_disallow_alarm" != "xyes"; then
28472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28473 $as_echo "yes" >&6; }
28474 tst_allow_alarm="yes"
28476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28477 $as_echo "no" >&6; }
28478 tst_allow_alarm="no"
28482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if alarm might be used" >&5
28483 $as_echo_n "checking if alarm might be used... " >&6; }
28484 if test "$tst_links_alarm" = "yes" &&
28485 test "$tst_proto_alarm" = "yes" &&
28486 test "$tst_compi_alarm" = "yes" &&
28487 test "$tst_allow_alarm" = "yes"; then
28488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28489 $as_echo "yes" >&6; }
28491 cat >>confdefs.h <<_ACEOF
28492 #define HAVE_ALARM 1
28495 ac_cv_func_alarm="yes"
28497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28498 $as_echo "no" >&6; }
28499 ac_cv_func_alarm="no"
28503 curl_includes_string="\
28504 /* includes start */
28505 #ifdef HAVE_SYS_TYPES_H
28506 # include <sys/types.h>
28508 #ifdef HAVE_STRING_H
28509 # include <string.h>
28511 #ifdef HAVE_STRINGS_H
28512 # include <strings.h>
28514 /* includes end */"
28515 for ac_header in sys/types.h string.h strings.h
28517 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28518 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_string
28520 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28521 cat >>confdefs.h <<_ACEOF
28522 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28531 curl_includes_libgen="\
28532 /* includes start */
28533 #ifdef HAVE_SYS_TYPES_H
28534 # include <sys/types.h>
28536 #ifdef HAVE_LIBGEN_H
28537 # include <libgen.h>
28539 /* includes end */"
28540 for ac_header in sys/types.h libgen.h
28542 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28543 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_libgen
28545 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28546 cat >>confdefs.h <<_ACEOF
28547 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28557 tst_links_basename="unknown"
28558 tst_proto_basename="unknown"
28559 tst_compi_basename="unknown"
28560 tst_allow_basename="unknown"
28562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename can be linked" >&5
28563 $as_echo_n "checking if basename can be linked... " >&6; }
28564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28565 /* end confdefs.h. */
28568 #define basename innocuous_basename
28570 # include <limits.h>
28572 # include <assert.h>
28579 #if defined __stub_basename || defined __stub___basename
28585 return basename ();
28591 if ac_fn_c_try_link "$LINENO"; then :
28593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28594 $as_echo "yes" >&6; }
28595 tst_links_basename="yes"
28599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28600 $as_echo "no" >&6; }
28601 tst_links_basename="no"
28604 rm -f core conftest.err conftest.$ac_objext \
28605 conftest$ac_exeext conftest.$ac_ext
28607 if test "$tst_links_basename" = "yes"; then
28608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is prototyped" >&5
28609 $as_echo_n "checking if basename is prototyped... " >&6; }
28610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28611 /* end confdefs.h. */
28613 $curl_includes_string
28614 $curl_includes_libgen
28615 $curl_includes_unistd
28618 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28619 $EGREP "basename" >/dev/null 2>&1; then :
28621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28622 $as_echo "yes" >&6; }
28623 tst_proto_basename="yes"
28627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28628 $as_echo "no" >&6; }
28629 tst_proto_basename="no"
28636 if test "$tst_proto_basename" = "yes"; then
28637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename is compilable" >&5
28638 $as_echo_n "checking if basename is compilable... " >&6; }
28639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28640 /* end confdefs.h. */
28643 $curl_includes_string
28644 $curl_includes_libgen
28645 $curl_includes_unistd
28650 if(0 != basename(0))
28658 if ac_fn_c_try_compile "$LINENO"; then :
28660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28661 $as_echo "yes" >&6; }
28662 tst_compi_basename="yes"
28666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28667 $as_echo "no" >&6; }
28668 tst_compi_basename="no"
28671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28674 if test "$tst_compi_basename" = "yes"; then
28675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename usage allowed" >&5
28676 $as_echo_n "checking if basename usage allowed... " >&6; }
28677 if test "x$curl_disallow_basename" != "xyes"; then
28678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28679 $as_echo "yes" >&6; }
28680 tst_allow_basename="yes"
28682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28683 $as_echo "no" >&6; }
28684 tst_allow_basename="no"
28688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if basename might be used" >&5
28689 $as_echo_n "checking if basename might be used... " >&6; }
28690 if test "$tst_links_basename" = "yes" &&
28691 test "$tst_proto_basename" = "yes" &&
28692 test "$tst_compi_basename" = "yes" &&
28693 test "$tst_allow_basename" = "yes"; then
28694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28695 $as_echo "yes" >&6; }
28697 cat >>confdefs.h <<_ACEOF
28698 #define HAVE_BASENAME 1
28701 ac_cv_func_basename="yes"
28703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28704 $as_echo "no" >&6; }
28705 ac_cv_func_basename="no"
28709 curl_includes_socket="\
28710 /* includes start */
28711 #ifdef HAVE_SYS_TYPES_H
28712 # include <sys/types.h>
28714 #ifdef HAVE_SOCKET_H
28715 # include <socket.h>
28717 /* includes end */"
28718 for ac_header in sys/types.h socket.h
28720 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
28721 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_socket
28723 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
28724 cat >>confdefs.h <<_ACEOF
28725 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
28735 tst_links_closesocket="unknown"
28736 tst_proto_closesocket="unknown"
28737 tst_compi_closesocket="unknown"
28738 tst_allow_closesocket="unknown"
28740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket can be linked" >&5
28741 $as_echo_n "checking if closesocket can be linked... " >&6; }
28742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28743 /* end confdefs.h. */
28746 $curl_includes_winsock2
28747 $curl_includes_socket
28752 if(0 != closesocket(0))
28760 if ac_fn_c_try_link "$LINENO"; then :
28762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28763 $as_echo "yes" >&6; }
28764 tst_links_closesocket="yes"
28768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28769 $as_echo "no" >&6; }
28770 tst_links_closesocket="no"
28773 rm -f core conftest.err conftest.$ac_objext \
28774 conftest$ac_exeext conftest.$ac_ext
28776 if test "$tst_links_closesocket" = "yes"; then
28777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is prototyped" >&5
28778 $as_echo_n "checking if closesocket is prototyped... " >&6; }
28779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28780 /* end confdefs.h. */
28782 $curl_includes_winsock2
28783 $curl_includes_socket
28786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28787 $EGREP "closesocket" >/dev/null 2>&1; then :
28789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28790 $as_echo "yes" >&6; }
28791 tst_proto_closesocket="yes"
28795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28796 $as_echo "no" >&6; }
28797 tst_proto_closesocket="no"
28804 if test "$tst_proto_closesocket" = "yes"; then
28805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket is compilable" >&5
28806 $as_echo_n "checking if closesocket is compilable... " >&6; }
28807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28808 /* end confdefs.h. */
28811 $curl_includes_winsock2
28812 $curl_includes_socket
28817 if(0 != closesocket(0))
28825 if ac_fn_c_try_compile "$LINENO"; then :
28827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28828 $as_echo "yes" >&6; }
28829 tst_compi_closesocket="yes"
28833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28834 $as_echo "no" >&6; }
28835 tst_compi_closesocket="no"
28838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28841 if test "$tst_compi_closesocket" = "yes"; then
28842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket usage allowed" >&5
28843 $as_echo_n "checking if closesocket usage allowed... " >&6; }
28844 if test "x$curl_disallow_closesocket" != "xyes"; then
28845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28846 $as_echo "yes" >&6; }
28847 tst_allow_closesocket="yes"
28849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28850 $as_echo "no" >&6; }
28851 tst_allow_closesocket="no"
28855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if closesocket might be used" >&5
28856 $as_echo_n "checking if closesocket might be used... " >&6; }
28857 if test "$tst_links_closesocket" = "yes" &&
28858 test "$tst_proto_closesocket" = "yes" &&
28859 test "$tst_compi_closesocket" = "yes" &&
28860 test "$tst_allow_closesocket" = "yes"; then
28861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28862 $as_echo "yes" >&6; }
28864 cat >>confdefs.h <<_ACEOF
28865 #define HAVE_CLOSESOCKET 1
28868 ac_cv_func_closesocket="yes"
28870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28871 $as_echo "no" >&6; }
28872 ac_cv_func_closesocket="no"
28877 tst_links_closesocket_camel="unknown"
28878 tst_proto_closesocket_camel="unknown"
28879 tst_compi_closesocket_camel="unknown"
28880 tst_allow_closesocket_camel="unknown"
28882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket can be linked" >&5
28883 $as_echo_n "checking if CloseSocket can be linked... " >&6; }
28884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28885 /* end confdefs.h. */
28888 $curl_includes_sys_socket
28893 if(0 != CloseSocket(0))
28901 if ac_fn_c_try_link "$LINENO"; then :
28903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28904 $as_echo "yes" >&6; }
28905 tst_links_closesocket_camel="yes"
28909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28910 $as_echo "no" >&6; }
28911 tst_links_closesocket_camel="no"
28914 rm -f core conftest.err conftest.$ac_objext \
28915 conftest$ac_exeext conftest.$ac_ext
28917 if test "$tst_links_closesocket_camel" = "yes"; then
28918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is prototyped" >&5
28919 $as_echo_n "checking if CloseSocket is prototyped... " >&6; }
28920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28921 /* end confdefs.h. */
28923 $curl_includes_sys_socket
28926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
28927 $EGREP "CloseSocket" >/dev/null 2>&1; then :
28929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28930 $as_echo "yes" >&6; }
28931 tst_proto_closesocket_camel="yes"
28935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28936 $as_echo "no" >&6; }
28937 tst_proto_closesocket_camel="no"
28944 if test "$tst_proto_closesocket_camel" = "yes"; then
28945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket is compilable" >&5
28946 $as_echo_n "checking if CloseSocket is compilable... " >&6; }
28947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28948 /* end confdefs.h. */
28951 $curl_includes_sys_socket
28956 if(0 != CloseSocket(0))
28964 if ac_fn_c_try_compile "$LINENO"; then :
28966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28967 $as_echo "yes" >&6; }
28968 tst_compi_closesocket_camel="yes"
28972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28973 $as_echo "no" >&6; }
28974 tst_compi_closesocket_camel="no"
28977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
28980 if test "$tst_compi_closesocket_camel" = "yes"; then
28981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket usage allowed" >&5
28982 $as_echo_n "checking if CloseSocket usage allowed... " >&6; }
28983 if test "x$curl_disallow_closesocket_camel" != "xyes"; then
28984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28985 $as_echo "yes" >&6; }
28986 tst_allow_closesocket_camel="yes"
28988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28989 $as_echo "no" >&6; }
28990 tst_allow_closesocket_camel="no"
28994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if CloseSocket might be used" >&5
28995 $as_echo_n "checking if CloseSocket might be used... " >&6; }
28996 if test "$tst_links_closesocket_camel" = "yes" &&
28997 test "$tst_proto_closesocket_camel" = "yes" &&
28998 test "$tst_compi_closesocket_camel" = "yes" &&
28999 test "$tst_allow_closesocket_camel" = "yes"; then
29000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29001 $as_echo "yes" >&6; }
29003 cat >>confdefs.h <<_ACEOF
29004 #define HAVE_CLOSESOCKET_CAMEL 1
29007 ac_cv_func_closesocket_camel="yes"
29009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29010 $as_echo "no" >&6; }
29011 ac_cv_func_closesocket_camel="no"
29016 tst_links_connect="unknown"
29017 tst_proto_connect="unknown"
29018 tst_compi_connect="unknown"
29019 tst_allow_connect="unknown"
29021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect can be linked" >&5
29022 $as_echo_n "checking if connect can be linked... " >&6; }
29023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29024 /* end confdefs.h. */
29027 $curl_includes_winsock2
29028 $curl_includes_sys_socket
29029 $curl_includes_socket
29034 if(0 != connect(0, 0, 0))
29042 if ac_fn_c_try_link "$LINENO"; then :
29044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29045 $as_echo "yes" >&6; }
29046 tst_links_connect="yes"
29050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29051 $as_echo "no" >&6; }
29052 tst_links_connect="no"
29055 rm -f core conftest.err conftest.$ac_objext \
29056 conftest$ac_exeext conftest.$ac_ext
29058 if test "$tst_links_connect" = "yes"; then
29059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is prototyped" >&5
29060 $as_echo_n "checking if connect is prototyped... " >&6; }
29061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29062 /* end confdefs.h. */
29064 $curl_includes_winsock2
29065 $curl_includes_sys_socket
29066 $curl_includes_socket
29069 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29070 $EGREP "connect" >/dev/null 2>&1; then :
29072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29073 $as_echo "yes" >&6; }
29074 tst_proto_connect="yes"
29078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29079 $as_echo "no" >&6; }
29080 tst_proto_connect="no"
29087 if test "$tst_proto_connect" = "yes"; then
29088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect is compilable" >&5
29089 $as_echo_n "checking if connect is compilable... " >&6; }
29090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29091 /* end confdefs.h. */
29094 $curl_includes_winsock2
29095 $curl_includes_sys_socket
29096 $curl_includes_socket
29101 if(0 != connect(0, 0, 0))
29109 if ac_fn_c_try_compile "$LINENO"; then :
29111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29112 $as_echo "yes" >&6; }
29113 tst_compi_connect="yes"
29117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29118 $as_echo "no" >&6; }
29119 tst_compi_connect="no"
29122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29125 if test "$tst_compi_connect" = "yes"; then
29126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect usage allowed" >&5
29127 $as_echo_n "checking if connect usage allowed... " >&6; }
29128 if test "x$curl_disallow_connect" != "xyes"; then
29129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29130 $as_echo "yes" >&6; }
29131 tst_allow_connect="yes"
29133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29134 $as_echo "no" >&6; }
29135 tst_allow_connect="no"
29139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if connect might be used" >&5
29140 $as_echo_n "checking if connect might be used... " >&6; }
29141 if test "$tst_links_connect" = "yes" &&
29142 test "$tst_proto_connect" = "yes" &&
29143 test "$tst_compi_connect" = "yes" &&
29144 test "$tst_allow_connect" = "yes"; then
29145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29146 $as_echo "yes" >&6; }
29148 cat >>confdefs.h <<_ACEOF
29149 #define HAVE_CONNECT 1
29152 ac_cv_func_connect="yes"
29154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29155 $as_echo "no" >&6; }
29156 ac_cv_func_connect="no"
29160 curl_includes_fcntl="\
29161 /* includes start */
29162 #ifdef HAVE_SYS_TYPES_H
29163 # include <sys/types.h>
29165 #ifdef HAVE_UNISTD_H
29166 # include <unistd.h>
29168 #ifdef HAVE_FCNTL_H
29169 # include <fcntl.h>
29171 /* includes end */"
29172 for ac_header in sys/types.h unistd.h fcntl.h
29174 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29175 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_fcntl
29177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29178 cat >>confdefs.h <<_ACEOF
29179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29189 tst_links_fcntl="unknown"
29190 tst_proto_fcntl="unknown"
29191 tst_compi_fcntl="unknown"
29192 tst_allow_fcntl="unknown"
29194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl can be linked" >&5
29195 $as_echo_n "checking if fcntl can be linked... " >&6; }
29196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29197 /* end confdefs.h. */
29200 #define fcntl innocuous_fcntl
29202 # include <limits.h>
29204 # include <assert.h>
29211 #if defined __stub_fcntl || defined __stub___fcntl
29223 if ac_fn_c_try_link "$LINENO"; then :
29225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29226 $as_echo "yes" >&6; }
29227 tst_links_fcntl="yes"
29231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29232 $as_echo "no" >&6; }
29233 tst_links_fcntl="no"
29236 rm -f core conftest.err conftest.$ac_objext \
29237 conftest$ac_exeext conftest.$ac_ext
29239 if test "$tst_links_fcntl" = "yes"; then
29240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is prototyped" >&5
29241 $as_echo_n "checking if fcntl is prototyped... " >&6; }
29242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29243 /* end confdefs.h. */
29245 $curl_includes_fcntl
29248 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29249 $EGREP "fcntl" >/dev/null 2>&1; then :
29251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29252 $as_echo "yes" >&6; }
29253 tst_proto_fcntl="yes"
29257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29258 $as_echo "no" >&6; }
29259 tst_proto_fcntl="no"
29266 if test "$tst_proto_fcntl" = "yes"; then
29267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl is compilable" >&5
29268 $as_echo_n "checking if fcntl is compilable... " >&6; }
29269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29270 /* end confdefs.h. */
29273 $curl_includes_fcntl
29278 if(0 != fcntl(0, 0, 0))
29286 if ac_fn_c_try_compile "$LINENO"; then :
29288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29289 $as_echo "yes" >&6; }
29290 tst_compi_fcntl="yes"
29294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29295 $as_echo "no" >&6; }
29296 tst_compi_fcntl="no"
29299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29302 if test "$tst_compi_fcntl" = "yes"; then
29303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl usage allowed" >&5
29304 $as_echo_n "checking if fcntl usage allowed... " >&6; }
29305 if test "x$curl_disallow_fcntl" != "xyes"; then
29306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29307 $as_echo "yes" >&6; }
29308 tst_allow_fcntl="yes"
29310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29311 $as_echo "no" >&6; }
29312 tst_allow_fcntl="no"
29316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl might be used" >&5
29317 $as_echo_n "checking if fcntl might be used... " >&6; }
29318 if test "$tst_links_fcntl" = "yes" &&
29319 test "$tst_proto_fcntl" = "yes" &&
29320 test "$tst_compi_fcntl" = "yes" &&
29321 test "$tst_allow_fcntl" = "yes"; then
29322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29323 $as_echo "yes" >&6; }
29325 cat >>confdefs.h <<_ACEOF
29326 #define HAVE_FCNTL 1
29329 ac_cv_func_fcntl="yes"
29332 tst_compi_fcntl_o_nonblock="unknown"
29333 tst_allow_fcntl_o_nonblock="unknown"
29336 sunos4* | aix3* | beos*)
29337 curl_disallow_fcntl_o_nonblock="yes"
29341 if test "$ac_cv_func_fcntl" = "yes"; then
29342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK is compilable" >&5
29343 $as_echo_n "checking if fcntl O_NONBLOCK is compilable... " >&6; }
29344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29345 /* end confdefs.h. */
29348 $curl_includes_fcntl
29354 if(0 != fcntl(0, F_SETFL, flags | O_NONBLOCK))
29362 if ac_fn_c_try_compile "$LINENO"; then :
29364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29365 $as_echo "yes" >&6; }
29366 tst_compi_fcntl_o_nonblock="yes"
29370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29371 $as_echo "no" >&6; }
29372 tst_compi_fcntl_o_nonblock="no"
29375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29378 if test "$tst_compi_fcntl_o_nonblock" = "yes"; then
29379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK usage allowed" >&5
29380 $as_echo_n "checking if fcntl O_NONBLOCK usage allowed... " >&6; }
29381 if test "x$curl_disallow_fcntl_o_nonblock" != "xyes"; then
29382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29383 $as_echo "yes" >&6; }
29384 tst_allow_fcntl_o_nonblock="yes"
29386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29387 $as_echo "no" >&6; }
29388 tst_allow_fcntl_o_nonblock="no"
29392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fcntl O_NONBLOCK might be used" >&5
29393 $as_echo_n "checking if fcntl O_NONBLOCK might be used... " >&6; }
29394 if test "$tst_compi_fcntl_o_nonblock" = "yes" &&
29395 test "$tst_allow_fcntl_o_nonblock" = "yes"; then
29396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29397 $as_echo "yes" >&6; }
29399 cat >>confdefs.h <<_ACEOF
29400 #define HAVE_FCNTL_O_NONBLOCK 1
29403 ac_cv_func_fcntl_o_nonblock="yes"
29405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29406 $as_echo "no" >&6; }
29407 ac_cv_func_fcntl_o_nonblock="no"
29411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29412 $as_echo "no" >&6; }
29413 ac_cv_func_fcntl="no"
29417 curl_includes_stdio="\
29418 /* includes start */
29419 #ifdef HAVE_SYS_TYPES_H
29420 # include <sys/types.h>
29422 #ifdef HAVE_STDIO_H
29423 # include <stdio.h>
29425 /* includes end */"
29426 for ac_header in sys/types.h stdio.h
29428 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29429 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdio
29431 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29432 cat >>confdefs.h <<_ACEOF
29433 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29443 tst_links_fdopen="unknown"
29444 tst_proto_fdopen="unknown"
29445 tst_compi_fdopen="unknown"
29446 tst_allow_fdopen="unknown"
29448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen can be linked" >&5
29449 $as_echo_n "checking if fdopen can be linked... " >&6; }
29450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29451 /* end confdefs.h. */
29454 #define fdopen innocuous_fdopen
29456 # include <limits.h>
29458 # include <assert.h>
29465 #if defined __stub_fdopen || defined __stub___fdopen
29477 if ac_fn_c_try_link "$LINENO"; then :
29479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29480 $as_echo "yes" >&6; }
29481 tst_links_fdopen="yes"
29485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29486 $as_echo "no" >&6; }
29487 tst_links_fdopen="no"
29490 rm -f core conftest.err conftest.$ac_objext \
29491 conftest$ac_exeext conftest.$ac_ext
29493 if test "$tst_links_fdopen" = "yes"; then
29494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is prototyped" >&5
29495 $as_echo_n "checking if fdopen is prototyped... " >&6; }
29496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29497 /* end confdefs.h. */
29499 $curl_includes_stdio
29502 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29503 $EGREP "fdopen" >/dev/null 2>&1; then :
29505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29506 $as_echo "yes" >&6; }
29507 tst_proto_fdopen="yes"
29511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29512 $as_echo "no" >&6; }
29513 tst_proto_fdopen="no"
29520 if test "$tst_proto_fdopen" = "yes"; then
29521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen is compilable" >&5
29522 $as_echo_n "checking if fdopen is compilable... " >&6; }
29523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29524 /* end confdefs.h. */
29527 $curl_includes_stdio
29532 if(0 != fdopen(0, 0))
29540 if ac_fn_c_try_compile "$LINENO"; then :
29542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29543 $as_echo "yes" >&6; }
29544 tst_compi_fdopen="yes"
29548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29549 $as_echo "no" >&6; }
29550 tst_compi_fdopen="no"
29553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29556 if test "$tst_compi_fdopen" = "yes"; then
29557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen usage allowed" >&5
29558 $as_echo_n "checking if fdopen usage allowed... " >&6; }
29559 if test "x$curl_disallow_fdopen" != "xyes"; then
29560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29561 $as_echo "yes" >&6; }
29562 tst_allow_fdopen="yes"
29564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29565 $as_echo "no" >&6; }
29566 tst_allow_fdopen="no"
29570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fdopen might be used" >&5
29571 $as_echo_n "checking if fdopen might be used... " >&6; }
29572 if test "$tst_links_fdopen" = "yes" &&
29573 test "$tst_proto_fdopen" = "yes" &&
29574 test "$tst_compi_fdopen" = "yes" &&
29575 test "$tst_allow_fdopen" = "yes"; then
29576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29577 $as_echo "yes" >&6; }
29579 cat >>confdefs.h <<_ACEOF
29580 #define HAVE_FDOPEN 1
29583 ac_cv_func_fdopen="yes"
29585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29586 $as_echo "no" >&6; }
29587 ac_cv_func_fdopen="no"
29591 curl_includes_netdb="\
29592 /* includes start */
29593 #ifdef HAVE_SYS_TYPES_H
29594 # include <sys/types.h>
29596 #ifdef HAVE_NETDB_H
29597 # include <netdb.h>
29599 /* includes end */"
29600 for ac_header in sys/types.h netdb.h
29602 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29603 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_netdb
29605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29606 cat >>confdefs.h <<_ACEOF
29607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29617 tst_links_freeaddrinfo="unknown"
29618 tst_proto_freeaddrinfo="unknown"
29619 tst_compi_freeaddrinfo="unknown"
29620 tst_allow_freeaddrinfo="unknown"
29622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo can be linked" >&5
29623 $as_echo_n "checking if freeaddrinfo can be linked... " >&6; }
29624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29625 /* end confdefs.h. */
29628 $curl_includes_ws2tcpip
29629 $curl_includes_sys_socket
29630 $curl_includes_netdb
29642 if ac_fn_c_try_link "$LINENO"; then :
29644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29645 $as_echo "yes" >&6; }
29646 tst_links_freeaddrinfo="yes"
29650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29651 $as_echo "no" >&6; }
29652 tst_links_freeaddrinfo="no"
29655 rm -f core conftest.err conftest.$ac_objext \
29656 conftest$ac_exeext conftest.$ac_ext
29658 if test "$tst_links_freeaddrinfo" = "yes"; then
29659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is prototyped" >&5
29660 $as_echo_n "checking if freeaddrinfo is prototyped... " >&6; }
29661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29662 /* end confdefs.h. */
29664 $curl_includes_ws2tcpip
29665 $curl_includes_sys_socket
29666 $curl_includes_netdb
29669 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29670 $EGREP "freeaddrinfo" >/dev/null 2>&1; then :
29672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29673 $as_echo "yes" >&6; }
29674 tst_proto_freeaddrinfo="yes"
29678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29679 $as_echo "no" >&6; }
29680 tst_proto_freeaddrinfo="no"
29687 if test "$tst_proto_freeaddrinfo" = "yes"; then
29688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo is compilable" >&5
29689 $as_echo_n "checking if freeaddrinfo is compilable... " >&6; }
29690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29691 /* end confdefs.h. */
29694 $curl_includes_ws2tcpip
29695 $curl_includes_sys_socket
29696 $curl_includes_netdb
29708 if ac_fn_c_try_compile "$LINENO"; then :
29710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29711 $as_echo "yes" >&6; }
29712 tst_compi_freeaddrinfo="yes"
29716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29717 $as_echo "no" >&6; }
29718 tst_compi_freeaddrinfo="no"
29721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29724 if test "$tst_compi_freeaddrinfo" = "yes"; then
29725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo usage allowed" >&5
29726 $as_echo_n "checking if freeaddrinfo usage allowed... " >&6; }
29727 if test "x$curl_disallow_freeaddrinfo" != "xyes"; then
29728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29729 $as_echo "yes" >&6; }
29730 tst_allow_freeaddrinfo="yes"
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29733 $as_echo "no" >&6; }
29734 tst_allow_freeaddrinfo="no"
29738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeaddrinfo might be used" >&5
29739 $as_echo_n "checking if freeaddrinfo might be used... " >&6; }
29740 if test "$tst_links_freeaddrinfo" = "yes" &&
29741 test "$tst_proto_freeaddrinfo" = "yes" &&
29742 test "$tst_compi_freeaddrinfo" = "yes" &&
29743 test "$tst_allow_freeaddrinfo" = "yes"; then
29744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29745 $as_echo "yes" >&6; }
29747 cat >>confdefs.h <<_ACEOF
29748 #define HAVE_FREEADDRINFO 1
29751 ac_cv_func_freeaddrinfo="yes"
29753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29754 $as_echo "no" >&6; }
29755 ac_cv_func_freeaddrinfo="no"
29759 curl_includes_ifaddrs="\
29760 /* includes start */
29761 #ifdef HAVE_SYS_TYPES_H
29762 # include <sys/types.h>
29764 #ifdef HAVE_SYS_SOCKET_H
29765 # include <sys/socket.h>
29767 #ifdef HAVE_NETINET_IN_H
29768 # include <netinet/in.h>
29770 #ifdef HAVE_IFADDRS_H
29771 # include <ifaddrs.h>
29773 /* includes end */"
29774 for ac_header in sys/types.h sys/socket.h netinet/in.h ifaddrs.h
29776 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29777 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_ifaddrs
29779 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29780 cat >>confdefs.h <<_ACEOF
29781 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29791 tst_links_freeifaddrs="unknown"
29792 tst_proto_freeifaddrs="unknown"
29793 tst_compi_freeifaddrs="unknown"
29794 tst_allow_freeifaddrs="unknown"
29796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs can be linked" >&5
29797 $as_echo_n "checking if freeifaddrs can be linked... " >&6; }
29798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29799 /* end confdefs.h. */
29802 #define freeifaddrs innocuous_freeifaddrs
29804 # include <limits.h>
29806 # include <assert.h>
29812 char freeifaddrs ();
29813 #if defined __stub_freeifaddrs || defined __stub___freeifaddrs
29819 return freeifaddrs ();
29825 if ac_fn_c_try_link "$LINENO"; then :
29827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29828 $as_echo "yes" >&6; }
29829 tst_links_freeifaddrs="yes"
29833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29834 $as_echo "no" >&6; }
29835 tst_links_freeifaddrs="no"
29838 rm -f core conftest.err conftest.$ac_objext \
29839 conftest$ac_exeext conftest.$ac_ext
29841 if test "$tst_links_freeifaddrs" = "yes"; then
29842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is prototyped" >&5
29843 $as_echo_n "checking if freeifaddrs is prototyped... " >&6; }
29844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29845 /* end confdefs.h. */
29847 $curl_includes_ifaddrs
29850 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
29851 $EGREP "freeifaddrs" >/dev/null 2>&1; then :
29853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29854 $as_echo "yes" >&6; }
29855 tst_proto_freeifaddrs="yes"
29859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29860 $as_echo "no" >&6; }
29861 tst_proto_freeifaddrs="no"
29868 if test "$tst_proto_freeifaddrs" = "yes"; then
29869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs is compilable" >&5
29870 $as_echo_n "checking if freeifaddrs is compilable... " >&6; }
29871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29872 /* end confdefs.h. */
29875 $curl_includes_ifaddrs
29887 if ac_fn_c_try_compile "$LINENO"; then :
29889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29890 $as_echo "yes" >&6; }
29891 tst_compi_freeifaddrs="yes"
29895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29896 $as_echo "no" >&6; }
29897 tst_compi_freeifaddrs="no"
29900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29903 if test "$tst_compi_freeifaddrs" = "yes"; then
29904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs usage allowed" >&5
29905 $as_echo_n "checking if freeifaddrs usage allowed... " >&6; }
29906 if test "x$curl_disallow_freeifaddrs" != "xyes"; then
29907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29908 $as_echo "yes" >&6; }
29909 tst_allow_freeifaddrs="yes"
29911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29912 $as_echo "no" >&6; }
29913 tst_allow_freeifaddrs="no"
29917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if freeifaddrs might be used" >&5
29918 $as_echo_n "checking if freeifaddrs might be used... " >&6; }
29919 if test "$tst_links_freeifaddrs" = "yes" &&
29920 test "$tst_proto_freeifaddrs" = "yes" &&
29921 test "$tst_compi_freeifaddrs" = "yes" &&
29922 test "$tst_allow_freeifaddrs" = "yes"; then
29923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29924 $as_echo "yes" >&6; }
29926 cat >>confdefs.h <<_ACEOF
29927 #define HAVE_FREEIFADDRS 1
29930 ac_cv_func_freeifaddrs="yes"
29932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29933 $as_echo "no" >&6; }
29934 ac_cv_func_freeifaddrs="no"
29938 curl_includes_sys_xattr="\
29939 /* includes start */
29940 #ifdef HAVE_SYS_TYPES_H
29941 # include <sys/types.h>
29943 #ifdef HAVE_SYS_XATTR_H
29944 # include <sys/xattr.h>
29946 /* includes end */"
29947 for ac_header in sys/types.h sys/xattr.h
29949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
29950 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_xattr
29952 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
29953 cat >>confdefs.h <<_ACEOF
29954 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
29964 tst_links_fsetxattr="unknown"
29965 tst_proto_fsetxattr="unknown"
29966 tst_compi_fsetxattr="unknown"
29967 tst_allow_fsetxattr="unknown"
29968 tst_nargs_fsetxattr="unknown"
29970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr can be linked" >&5
29971 $as_echo_n "checking if fsetxattr can be linked... " >&6; }
29972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29973 /* end confdefs.h. */
29976 #define fsetxattr innocuous_fsetxattr
29978 # include <limits.h>
29980 # include <assert.h>
29987 #if defined __stub_fsetxattr || defined __stub___fsetxattr
29993 return fsetxattr ();
29999 if ac_fn_c_try_link "$LINENO"; then :
30001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30002 $as_echo "yes" >&6; }
30003 tst_links_fsetxattr="yes"
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30008 $as_echo "no" >&6; }
30009 tst_links_fsetxattr="no"
30012 rm -f core conftest.err conftest.$ac_objext \
30013 conftest$ac_exeext conftest.$ac_ext
30015 if test "$tst_links_fsetxattr" = "yes"; then
30016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is prototyped" >&5
30017 $as_echo_n "checking if fsetxattr is prototyped... " >&6; }
30018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30019 /* end confdefs.h. */
30021 $curl_includes_sys_xattr
30024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30025 $EGREP "fsetxattr" >/dev/null 2>&1; then :
30027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30028 $as_echo "yes" >&6; }
30029 tst_proto_fsetxattr="yes"
30033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30034 $as_echo "no" >&6; }
30035 tst_proto_fsetxattr="no"
30042 if test "$tst_proto_fsetxattr" = "yes"; then
30043 if test "$tst_nargs_fsetxattr" = "unknown"; then
30044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 5 args." >&5
30045 $as_echo_n "checking if fsetxattr takes 5 args.... " >&6; }
30046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30047 /* end confdefs.h. */
30050 $curl_includes_sys_xattr
30055 if(0 != fsetxattr(0, 0, 0, 0, 0))
30063 if ac_fn_c_try_compile "$LINENO"; then :
30065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30066 $as_echo "yes" >&6; }
30067 tst_compi_fsetxattr="yes"
30068 tst_nargs_fsetxattr="5"
30072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30073 $as_echo "no" >&6; }
30074 tst_compi_fsetxattr="no"
30077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30079 if test "$tst_nargs_fsetxattr" = "unknown"; then
30080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr takes 6 args." >&5
30081 $as_echo_n "checking if fsetxattr takes 6 args.... " >&6; }
30082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30083 /* end confdefs.h. */
30086 $curl_includes_sys_xattr
30091 if(0 != fsetxattr(0, 0, 0, 0, 0, 0))
30099 if ac_fn_c_try_compile "$LINENO"; then :
30101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30102 $as_echo "yes" >&6; }
30103 tst_compi_fsetxattr="yes"
30104 tst_nargs_fsetxattr="6"
30108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30109 $as_echo "no" >&6; }
30110 tst_compi_fsetxattr="no"
30113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr is compilable" >&5
30116 $as_echo_n "checking if fsetxattr is compilable... " >&6; }
30117 if test "$tst_compi_fsetxattr" = "yes"; then
30118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30119 $as_echo "yes" >&6; }
30121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30122 $as_echo "no" >&6; }
30126 if test "$tst_compi_fsetxattr" = "yes"; then
30127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr usage allowed" >&5
30128 $as_echo_n "checking if fsetxattr usage allowed... " >&6; }
30129 if test "x$curl_disallow_fsetxattr" != "xyes"; then
30130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30131 $as_echo "yes" >&6; }
30132 tst_allow_fsetxattr="yes"
30134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30135 $as_echo "no" >&6; }
30136 tst_allow_fsetxattr="no"
30140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if fsetxattr might be used" >&5
30141 $as_echo_n "checking if fsetxattr might be used... " >&6; }
30142 if test "$tst_links_fsetxattr" = "yes" &&
30143 test "$tst_proto_fsetxattr" = "yes" &&
30144 test "$tst_compi_fsetxattr" = "yes" &&
30145 test "$tst_allow_fsetxattr" = "yes"; then
30146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30147 $as_echo "yes" >&6; }
30149 cat >>confdefs.h <<_ACEOF
30150 #define HAVE_FSETXATTR 1
30154 if test "$tst_nargs_fsetxattr" -eq "5"; then
30156 $as_echo "#define HAVE_FSETXATTR_5 1" >>confdefs.h
30158 elif test "$tst_nargs_fsetxattr" -eq "6"; then
30160 $as_echo "#define HAVE_FSETXATTR_6 1" >>confdefs.h
30164 ac_cv_func_fsetxattr="yes"
30166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30167 $as_echo "no" >&6; }
30168 ac_cv_func_fsetxattr="no"
30173 tst_links_ftruncate="unknown"
30174 tst_proto_ftruncate="unknown"
30175 tst_compi_ftruncate="unknown"
30176 tst_allow_ftruncate="unknown"
30178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate can be linked" >&5
30179 $as_echo_n "checking if ftruncate can be linked... " >&6; }
30180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30181 /* end confdefs.h. */
30184 #define ftruncate innocuous_ftruncate
30186 # include <limits.h>
30188 # include <assert.h>
30195 #if defined __stub_ftruncate || defined __stub___ftruncate
30201 return ftruncate ();
30207 if ac_fn_c_try_link "$LINENO"; then :
30209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30210 $as_echo "yes" >&6; }
30211 tst_links_ftruncate="yes"
30215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30216 $as_echo "no" >&6; }
30217 tst_links_ftruncate="no"
30220 rm -f core conftest.err conftest.$ac_objext \
30221 conftest$ac_exeext conftest.$ac_ext
30223 if test "$tst_links_ftruncate" = "yes"; then
30224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is prototyped" >&5
30225 $as_echo_n "checking if ftruncate is prototyped... " >&6; }
30226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30227 /* end confdefs.h. */
30229 $curl_includes_unistd
30232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30233 $EGREP "ftruncate" >/dev/null 2>&1; then :
30235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30236 $as_echo "yes" >&6; }
30237 tst_proto_ftruncate="yes"
30241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30242 $as_echo "no" >&6; }
30243 tst_proto_ftruncate="no"
30250 if test "$tst_proto_ftruncate" = "yes"; then
30251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate is compilable" >&5
30252 $as_echo_n "checking if ftruncate is compilable... " >&6; }
30253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30254 /* end confdefs.h. */
30257 $curl_includes_unistd
30262 if(0 != ftruncate(0, 0))
30270 if ac_fn_c_try_compile "$LINENO"; then :
30272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30273 $as_echo "yes" >&6; }
30274 tst_compi_ftruncate="yes"
30278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30279 $as_echo "no" >&6; }
30280 tst_compi_ftruncate="no"
30283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30286 if test "$tst_compi_ftruncate" = "yes"; then
30287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate usage allowed" >&5
30288 $as_echo_n "checking if ftruncate usage allowed... " >&6; }
30289 if test "x$curl_disallow_ftruncate" != "xyes"; then
30290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30291 $as_echo "yes" >&6; }
30292 tst_allow_ftruncate="yes"
30294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30295 $as_echo "no" >&6; }
30296 tst_allow_ftruncate="no"
30300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ftruncate might be used" >&5
30301 $as_echo_n "checking if ftruncate might be used... " >&6; }
30302 if test "$tst_links_ftruncate" = "yes" &&
30303 test "$tst_proto_ftruncate" = "yes" &&
30304 test "$tst_compi_ftruncate" = "yes" &&
30305 test "$tst_allow_ftruncate" = "yes"; then
30306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30307 $as_echo "yes" >&6; }
30309 cat >>confdefs.h <<_ACEOF
30310 #define HAVE_FTRUNCATE 1
30313 ac_cv_func_ftruncate="yes"
30315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30316 $as_echo "no" >&6; }
30317 ac_cv_func_ftruncate="no"
30321 curl_includes_stdlib="\
30322 /* includes start */
30323 #ifdef HAVE_SYS_TYPES_H
30324 # include <sys/types.h>
30326 #ifdef HAVE_STDLIB_H
30327 # include <stdlib.h>
30329 /* includes end */"
30330 for ac_header in sys/types.h stdlib.h
30332 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
30333 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stdlib
30335 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
30336 cat >>confdefs.h <<_ACEOF
30337 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
30347 tst_links_getaddrinfo="unknown"
30348 tst_proto_getaddrinfo="unknown"
30349 tst_compi_getaddrinfo="unknown"
30350 tst_works_getaddrinfo="unknown"
30351 tst_allow_getaddrinfo="unknown"
30352 tst_tsafe_getaddrinfo="unknown"
30354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo can be linked" >&5
30355 $as_echo_n "checking if getaddrinfo can be linked... " >&6; }
30356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30357 /* end confdefs.h. */
30360 $curl_includes_ws2tcpip
30361 $curl_includes_sys_socket
30362 $curl_includes_netdb
30367 if(0 != getaddrinfo(0, 0, 0, 0))
30375 if ac_fn_c_try_link "$LINENO"; then :
30377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30378 $as_echo "yes" >&6; }
30379 tst_links_getaddrinfo="yes"
30383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30384 $as_echo "no" >&6; }
30385 tst_links_getaddrinfo="no"
30388 rm -f core conftest.err conftest.$ac_objext \
30389 conftest$ac_exeext conftest.$ac_ext
30391 if test "$tst_links_getaddrinfo" = "yes"; then
30392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is prototyped" >&5
30393 $as_echo_n "checking if getaddrinfo is prototyped... " >&6; }
30394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30395 /* end confdefs.h. */
30397 $curl_includes_ws2tcpip
30398 $curl_includes_sys_socket
30399 $curl_includes_netdb
30402 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30403 $EGREP "getaddrinfo" >/dev/null 2>&1; then :
30405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30406 $as_echo "yes" >&6; }
30407 tst_proto_getaddrinfo="yes"
30411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30412 $as_echo "no" >&6; }
30413 tst_proto_getaddrinfo="no"
30420 if test "$tst_proto_getaddrinfo" = "yes"; then
30421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is compilable" >&5
30422 $as_echo_n "checking if getaddrinfo is compilable... " >&6; }
30423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30424 /* end confdefs.h. */
30427 $curl_includes_ws2tcpip
30428 $curl_includes_sys_socket
30429 $curl_includes_netdb
30434 if(0 != getaddrinfo(0, 0, 0, 0))
30442 if ac_fn_c_try_compile "$LINENO"; then :
30444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30445 $as_echo "yes" >&6; }
30446 tst_compi_getaddrinfo="yes"
30450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30451 $as_echo "no" >&6; }
30452 tst_compi_getaddrinfo="no"
30455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30458 if test "x$cross_compiling" != "xyes" &&
30459 test "$tst_compi_getaddrinfo" = "yes"; then
30460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo seems to work" >&5
30461 $as_echo_n "checking if getaddrinfo seems to work... " >&6; }
30462 if test "$cross_compiling" = yes; then :
30463 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
30464 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
30465 as_fn_error $? "cannot run test program while cross compiling
30466 See \`config.log' for more details" "$LINENO" 5; }
30468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30469 /* end confdefs.h. */
30472 $curl_includes_ws2tcpip
30473 $curl_includes_stdlib
30474 $curl_includes_string
30475 $curl_includes_sys_socket
30476 $curl_includes_netdb
30481 struct addrinfo hints;
30482 struct addrinfo *ai = 0;
30485 memset(&hints, 0, sizeof(hints));
30486 hints.ai_flags = AI_NUMERICHOST;
30487 hints.ai_family = AF_UNSPEC;
30488 hints.ai_socktype = SOCK_STREAM;
30489 error = getaddrinfo("127.0.0.1", 0, &hints, &ai);
30491 exit(1); /* fail */
30500 if ac_fn_c_try_run "$LINENO"; then :
30502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30503 $as_echo "yes" >&6; }
30504 tst_works_getaddrinfo="yes"
30508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30509 $as_echo "no" >&6; }
30510 tst_works_getaddrinfo="no"
30513 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
30514 conftest.$ac_objext conftest.beam conftest.$ac_ext
30519 if test "$tst_compi_getaddrinfo" = "yes" &&
30520 test "$tst_works_getaddrinfo" != "no"; then
30521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo usage allowed" >&5
30522 $as_echo_n "checking if getaddrinfo usage allowed... " >&6; }
30523 if test "x$curl_disallow_getaddrinfo" != "xyes"; then
30524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30525 $as_echo "yes" >&6; }
30526 tst_allow_getaddrinfo="yes"
30528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30529 $as_echo "no" >&6; }
30530 tst_allow_getaddrinfo="no"
30534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo might be used" >&5
30535 $as_echo_n "checking if getaddrinfo might be used... " >&6; }
30536 if test "$tst_links_getaddrinfo" = "yes" &&
30537 test "$tst_proto_getaddrinfo" = "yes" &&
30538 test "$tst_compi_getaddrinfo" = "yes" &&
30539 test "$tst_allow_getaddrinfo" = "yes" &&
30540 test "$tst_works_getaddrinfo" != "no"; then
30541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30542 $as_echo "yes" >&6; }
30544 cat >>confdefs.h <<_ACEOF
30545 #define HAVE_GETADDRINFO 1
30548 ac_cv_func_getaddrinfo="yes"
30550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30551 $as_echo "no" >&6; }
30552 ac_cv_func_getaddrinfo="no"
30553 ac_cv_func_getaddrinfo_threadsafe="no"
30556 if test "$ac_cv_func_getaddrinfo" = "yes"; then
30557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getaddrinfo is threadsafe" >&5
30558 $as_echo_n "checking if getaddrinfo is threadsafe... " >&6; }
30560 aix[1234].* | aix5.[01].*)
30561 tst_tsafe_getaddrinfo="no"
30564 tst_tsafe_getaddrinfo="yes"
30567 tst_tsafe_getaddrinfo="no"
30570 tst_tsafe_getaddrinfo="yes"
30572 freebsd[1234].* | freebsd5.[1234]*)
30573 tst_tsafe_getaddrinfo="no"
30576 tst_tsafe_getaddrinfo="yes"
30578 hpux[123456789].* | hpux10.* | hpux11.0* | hpux11.10*)
30579 tst_tsafe_getaddrinfo="no"
30582 tst_tsafe_getaddrinfo="yes"
30585 tst_tsafe_getaddrinfo="no"
30588 tst_tsafe_getaddrinfo="yes"
30591 tst_tsafe_getaddrinfo="no"
30594 tst_tsafe_getaddrinfo="yes"
30597 if test "$tst_tsafe_getaddrinfo" = "unknown" &&
30598 test "$ac_cv_native_windows" = "yes"; then
30599 tst_tsafe_getaddrinfo="yes"
30601 if test "$tst_tsafe_getaddrinfo" = "unknown"; then
30604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30605 /* end confdefs.h. */
30608 $curl_includes_sys_socket
30609 $curl_includes_netdb
30616 force compilation error
30622 if ac_fn_c_try_compile "$LINENO"; then :
30624 tst_symbol_defined="yes"
30628 tst_symbol_defined="no"
30631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30632 if test "$tst_symbol_defined" = "yes"; then
30633 curl_cv_have_def_h_errno=yes
30636 curl_cv_have_def_h_errno=no
30640 if test "$curl_cv_have_def_h_errno" = "yes"; then
30641 tst_h_errno_macro="yes"
30643 tst_h_errno_macro="no"
30645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30646 /* end confdefs.h. */
30649 $curl_includes_sys_socket
30650 $curl_includes_netdb
30664 if ac_fn_c_try_compile "$LINENO"; then :
30666 tst_h_errno_modifiable_lvalue="yes"
30670 tst_h_errno_modifiable_lvalue="no"
30673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30675 /* end confdefs.h. */
30682 #if defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200809L)
30684 #elif defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 700)
30687 force compilation error
30695 if ac_fn_c_try_compile "$LINENO"; then :
30697 tst_h_errno_sbs_issue_7="yes"
30701 tst_h_errno_sbs_issue_7="no"
30704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30705 if test "$tst_h_errno_macro" = "no" &&
30706 test "$tst_h_errno_modifiable_lvalue" = "no" &&
30707 test "$tst_h_errno_sbs_issue_7" = "no"; then
30708 tst_tsafe_getaddrinfo="no"
30710 tst_tsafe_getaddrinfo="yes"
30713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_tsafe_getaddrinfo" >&5
30714 $as_echo "$tst_tsafe_getaddrinfo" >&6; }
30715 if test "$tst_tsafe_getaddrinfo" = "yes"; then
30717 cat >>confdefs.h <<_ACEOF
30718 #define HAVE_GETADDRINFO_THREADSAFE 1
30721 ac_cv_func_getaddrinfo_threadsafe="yes"
30723 ac_cv_func_getaddrinfo_threadsafe="no"
30729 tst_links_gai_strerror="unknown"
30730 tst_proto_gai_strerror="unknown"
30731 tst_compi_gai_strerror="unknown"
30732 tst_allow_gai_strerror="unknown"
30734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror can be linked" >&5
30735 $as_echo_n "checking if gai_strerror can be linked... " >&6; }
30736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30737 /* end confdefs.h. */
30740 $curl_includes_winsock2
30741 $curl_includes_netdb
30746 if(0 != gai_strerror(0))
30754 if ac_fn_c_try_link "$LINENO"; then :
30756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30757 $as_echo "yes" >&6; }
30758 tst_links_gai_strerror="yes"
30762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30763 $as_echo "no" >&6; }
30764 tst_links_gai_strerror="no"
30767 rm -f core conftest.err conftest.$ac_objext \
30768 conftest$ac_exeext conftest.$ac_ext
30770 if test "$tst_links_gai_strerror" = "yes"; then
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is prototyped" >&5
30772 $as_echo_n "checking if gai_strerror is prototyped... " >&6; }
30773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30774 /* end confdefs.h. */
30776 $curl_includes_winsock2
30777 $curl_includes_netdb
30780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30781 $EGREP "gai_strerror" >/dev/null 2>&1; then :
30783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30784 $as_echo "yes" >&6; }
30785 tst_proto_gai_strerror="yes"
30789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30790 $as_echo "no" >&6; }
30791 tst_proto_gai_strerror="no"
30798 if test "$tst_proto_gai_strerror" = "yes"; then
30799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror is compilable" >&5
30800 $as_echo_n "checking if gai_strerror is compilable... " >&6; }
30801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30802 /* end confdefs.h. */
30805 $curl_includes_winsock2
30806 $curl_includes_netdb
30811 if(0 != gai_strerror(0))
30819 if ac_fn_c_try_compile "$LINENO"; then :
30821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30822 $as_echo "yes" >&6; }
30823 tst_compi_gai_strerror="yes"
30827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30828 $as_echo "no" >&6; }
30829 tst_compi_gai_strerror="no"
30832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30835 if test "$tst_compi_gai_strerror" = "yes"; then
30836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror usage allowed" >&5
30837 $as_echo_n "checking if gai_strerror usage allowed... " >&6; }
30838 if test "x$curl_disallow_gai_strerror" != "xyes"; then
30839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30840 $as_echo "yes" >&6; }
30841 tst_allow_gai_strerror="yes"
30843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30844 $as_echo "no" >&6; }
30845 tst_allow_gai_strerror="no"
30849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gai_strerror might be used" >&5
30850 $as_echo_n "checking if gai_strerror might be used... " >&6; }
30851 if test "$tst_links_gai_strerror" = "yes" &&
30852 test "$tst_proto_gai_strerror" = "yes" &&
30853 test "$tst_compi_gai_strerror" = "yes" &&
30854 test "$tst_allow_gai_strerror" = "yes"; then
30855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30856 $as_echo "yes" >&6; }
30858 cat >>confdefs.h <<_ACEOF
30859 #define HAVE_GAI_STRERROR 1
30862 ac_cv_func_gai_strerror="yes"
30864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30865 $as_echo "no" >&6; }
30866 ac_cv_func_gai_strerror="no"
30871 tst_links_gethostbyaddr="unknown"
30872 tst_proto_gethostbyaddr="unknown"
30873 tst_compi_gethostbyaddr="unknown"
30874 tst_allow_gethostbyaddr="unknown"
30876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr can be linked" >&5
30877 $as_echo_n "checking if gethostbyaddr can be linked... " >&6; }
30878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30879 /* end confdefs.h. */
30882 $curl_includes_winsock2
30883 $curl_includes_netdb
30888 if(0 != gethostbyaddr(0, 0, 0))
30896 if ac_fn_c_try_link "$LINENO"; then :
30898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30899 $as_echo "yes" >&6; }
30900 tst_links_gethostbyaddr="yes"
30904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30905 $as_echo "no" >&6; }
30906 tst_links_gethostbyaddr="no"
30909 rm -f core conftest.err conftest.$ac_objext \
30910 conftest$ac_exeext conftest.$ac_ext
30912 if test "$tst_links_gethostbyaddr" = "yes"; then
30913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is prototyped" >&5
30914 $as_echo_n "checking if gethostbyaddr is prototyped... " >&6; }
30915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30916 /* end confdefs.h. */
30918 $curl_includes_winsock2
30919 $curl_includes_netdb
30922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
30923 $EGREP "gethostbyaddr" >/dev/null 2>&1; then :
30925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30926 $as_echo "yes" >&6; }
30927 tst_proto_gethostbyaddr="yes"
30931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30932 $as_echo "no" >&6; }
30933 tst_proto_gethostbyaddr="no"
30940 if test "$tst_proto_gethostbyaddr" = "yes"; then
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr is compilable" >&5
30942 $as_echo_n "checking if gethostbyaddr is compilable... " >&6; }
30943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30944 /* end confdefs.h. */
30947 $curl_includes_winsock2
30948 $curl_includes_netdb
30953 if(0 != gethostbyaddr(0, 0, 0))
30961 if ac_fn_c_try_compile "$LINENO"; then :
30963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30964 $as_echo "yes" >&6; }
30965 tst_compi_gethostbyaddr="yes"
30969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30970 $as_echo "no" >&6; }
30971 tst_compi_gethostbyaddr="no"
30974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30977 if test "$tst_compi_gethostbyaddr" = "yes"; then
30978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr usage allowed" >&5
30979 $as_echo_n "checking if gethostbyaddr usage allowed... " >&6; }
30980 if test "x$curl_disallow_gethostbyaddr" != "xyes"; then
30981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30982 $as_echo "yes" >&6; }
30983 tst_allow_gethostbyaddr="yes"
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30986 $as_echo "no" >&6; }
30987 tst_allow_gethostbyaddr="no"
30991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr might be used" >&5
30992 $as_echo_n "checking if gethostbyaddr might be used... " >&6; }
30993 if test "$tst_links_gethostbyaddr" = "yes" &&
30994 test "$tst_proto_gethostbyaddr" = "yes" &&
30995 test "$tst_compi_gethostbyaddr" = "yes" &&
30996 test "$tst_allow_gethostbyaddr" = "yes"; then
30997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30998 $as_echo "yes" >&6; }
31000 cat >>confdefs.h <<_ACEOF
31001 #define HAVE_GETHOSTBYADDR 1
31004 ac_cv_func_gethostbyaddr="yes"
31006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31007 $as_echo "no" >&6; }
31008 ac_cv_func_gethostbyaddr="no"
31013 tst_links_gethostbyaddr_r="unknown"
31014 tst_proto_gethostbyaddr_r="unknown"
31015 tst_compi_gethostbyaddr_r="unknown"
31016 tst_allow_gethostbyaddr_r="unknown"
31017 tst_nargs_gethostbyaddr_r="unknown"
31019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r can be linked" >&5
31020 $as_echo_n "checking if gethostbyaddr_r can be linked... " >&6; }
31021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31022 /* end confdefs.h. */
31025 #define gethostbyaddr_r innocuous_gethostbyaddr_r
31027 # include <limits.h>
31029 # include <assert.h>
31031 #undef gethostbyaddr_r
31035 char gethostbyaddr_r ();
31036 #if defined __stub_gethostbyaddr_r || defined __stub___gethostbyaddr_r
31042 return gethostbyaddr_r ();
31048 if ac_fn_c_try_link "$LINENO"; then :
31050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31051 $as_echo "yes" >&6; }
31052 tst_links_gethostbyaddr_r="yes"
31056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31057 $as_echo "no" >&6; }
31058 tst_links_gethostbyaddr_r="no"
31061 rm -f core conftest.err conftest.$ac_objext \
31062 conftest$ac_exeext conftest.$ac_ext
31064 if test "$tst_links_gethostbyaddr_r" = "yes"; then
31065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is prototyped" >&5
31066 $as_echo_n "checking if gethostbyaddr_r is prototyped... " >&6; }
31067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31068 /* end confdefs.h. */
31070 $curl_includes_netdb
31073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31074 $EGREP "gethostbyaddr_r" >/dev/null 2>&1; then :
31076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31077 $as_echo "yes" >&6; }
31078 tst_proto_gethostbyaddr_r="yes"
31082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31083 $as_echo "no" >&6; }
31084 tst_proto_gethostbyaddr_r="no"
31091 if test "$tst_proto_gethostbyaddr_r" = "yes"; then
31092 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 5 args." >&5
31094 $as_echo_n "checking if gethostbyaddr_r takes 5 args.... " >&6; }
31095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31096 /* end confdefs.h. */
31099 $curl_includes_netdb
31104 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0))
31112 if ac_fn_c_try_compile "$LINENO"; then :
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31115 $as_echo "yes" >&6; }
31116 tst_compi_gethostbyaddr_r="yes"
31117 tst_nargs_gethostbyaddr_r="5"
31121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31122 $as_echo "no" >&6; }
31123 tst_compi_gethostbyaddr_r="no"
31126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31128 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 7 args." >&5
31130 $as_echo_n "checking if gethostbyaddr_r takes 7 args.... " >&6; }
31131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31132 /* end confdefs.h. */
31135 $curl_includes_netdb
31140 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0))
31148 if ac_fn_c_try_compile "$LINENO"; then :
31150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31151 $as_echo "yes" >&6; }
31152 tst_compi_gethostbyaddr_r="yes"
31153 tst_nargs_gethostbyaddr_r="7"
31157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31158 $as_echo "no" >&6; }
31159 tst_compi_gethostbyaddr_r="no"
31162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31164 if test "$tst_nargs_gethostbyaddr_r" = "unknown"; then
31165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r takes 8 args." >&5
31166 $as_echo_n "checking if gethostbyaddr_r takes 8 args.... " >&6; }
31167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31168 /* end confdefs.h. */
31171 $curl_includes_netdb
31176 if(0 != gethostbyaddr_r(0, 0, 0, 0, 0, 0, 0, 0))
31184 if ac_fn_c_try_compile "$LINENO"; then :
31186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31187 $as_echo "yes" >&6; }
31188 tst_compi_gethostbyaddr_r="yes"
31189 tst_nargs_gethostbyaddr_r="8"
31193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31194 $as_echo "no" >&6; }
31195 tst_compi_gethostbyaddr_r="no"
31198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r is compilable" >&5
31201 $as_echo_n "checking if gethostbyaddr_r is compilable... " >&6; }
31202 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31204 $as_echo "yes" >&6; }
31206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31207 $as_echo "no" >&6; }
31211 if test "$tst_compi_gethostbyaddr_r" = "yes"; then
31212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r usage allowed" >&5
31213 $as_echo_n "checking if gethostbyaddr_r usage allowed... " >&6; }
31214 if test "x$curl_disallow_gethostbyaddr_r" != "xyes"; then
31215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31216 $as_echo "yes" >&6; }
31217 tst_allow_gethostbyaddr_r="yes"
31219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31220 $as_echo "no" >&6; }
31221 tst_allow_gethostbyaddr_r="no"
31225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyaddr_r might be used" >&5
31226 $as_echo_n "checking if gethostbyaddr_r might be used... " >&6; }
31227 if test "$tst_links_gethostbyaddr_r" = "yes" &&
31228 test "$tst_proto_gethostbyaddr_r" = "yes" &&
31229 test "$tst_compi_gethostbyaddr_r" = "yes" &&
31230 test "$tst_allow_gethostbyaddr_r" = "yes"; then
31231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31232 $as_echo "yes" >&6; }
31234 cat >>confdefs.h <<_ACEOF
31235 #define HAVE_GETHOSTBYADDR_R 1
31239 if test "$tst_nargs_gethostbyaddr_r" -eq "5"; then
31241 $as_echo "#define HAVE_GETHOSTBYADDR_R_5 1" >>confdefs.h
31243 elif test "$tst_nargs_gethostbyaddr_r" -eq "7"; then
31245 $as_echo "#define HAVE_GETHOSTBYADDR_R_7 1" >>confdefs.h
31247 elif test "$tst_nargs_gethostbyaddr_r" -eq "8"; then
31249 $as_echo "#define HAVE_GETHOSTBYADDR_R_8 1" >>confdefs.h
31253 ac_cv_func_gethostbyaddr_r="yes"
31255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31256 $as_echo "no" >&6; }
31257 ac_cv_func_gethostbyaddr_r="no"
31262 tst_links_gethostbyname="unknown"
31263 tst_proto_gethostbyname="unknown"
31264 tst_compi_gethostbyname="unknown"
31265 tst_allow_gethostbyname="unknown"
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname can be linked" >&5
31268 $as_echo_n "checking if gethostbyname can be linked... " >&6; }
31269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31270 /* end confdefs.h. */
31273 $curl_includes_winsock2
31274 $curl_includes_netdb
31279 if(0 != gethostbyname(0))
31287 if ac_fn_c_try_link "$LINENO"; then :
31289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31290 $as_echo "yes" >&6; }
31291 tst_links_gethostbyname="yes"
31295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31296 $as_echo "no" >&6; }
31297 tst_links_gethostbyname="no"
31300 rm -f core conftest.err conftest.$ac_objext \
31301 conftest$ac_exeext conftest.$ac_ext
31303 if test "$tst_links_gethostbyname" = "yes"; then
31304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is prototyped" >&5
31305 $as_echo_n "checking if gethostbyname is prototyped... " >&6; }
31306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31307 /* end confdefs.h. */
31309 $curl_includes_winsock2
31310 $curl_includes_netdb
31313 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31314 $EGREP "gethostbyname" >/dev/null 2>&1; then :
31316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31317 $as_echo "yes" >&6; }
31318 tst_proto_gethostbyname="yes"
31322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31323 $as_echo "no" >&6; }
31324 tst_proto_gethostbyname="no"
31331 if test "$tst_proto_gethostbyname" = "yes"; then
31332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname is compilable" >&5
31333 $as_echo_n "checking if gethostbyname is compilable... " >&6; }
31334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31335 /* end confdefs.h. */
31338 $curl_includes_winsock2
31339 $curl_includes_netdb
31344 if(0 != gethostbyname(0))
31352 if ac_fn_c_try_compile "$LINENO"; then :
31354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31355 $as_echo "yes" >&6; }
31356 tst_compi_gethostbyname="yes"
31360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31361 $as_echo "no" >&6; }
31362 tst_compi_gethostbyname="no"
31365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31368 if test "$tst_compi_gethostbyname" = "yes"; then
31369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname usage allowed" >&5
31370 $as_echo_n "checking if gethostbyname usage allowed... " >&6; }
31371 if test "x$curl_disallow_gethostbyname" != "xyes"; then
31372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31373 $as_echo "yes" >&6; }
31374 tst_allow_gethostbyname="yes"
31376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31377 $as_echo "no" >&6; }
31378 tst_allow_gethostbyname="no"
31382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname might be used" >&5
31383 $as_echo_n "checking if gethostbyname might be used... " >&6; }
31384 if test "$tst_links_gethostbyname" = "yes" &&
31385 test "$tst_proto_gethostbyname" = "yes" &&
31386 test "$tst_compi_gethostbyname" = "yes" &&
31387 test "$tst_allow_gethostbyname" = "yes"; then
31388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31389 $as_echo "yes" >&6; }
31391 cat >>confdefs.h <<_ACEOF
31392 #define HAVE_GETHOSTBYNAME 1
31395 ac_cv_func_gethostbyname="yes"
31397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31398 $as_echo "no" >&6; }
31399 ac_cv_func_gethostbyname="no"
31404 tst_links_gethostbyname_r="unknown"
31405 tst_proto_gethostbyname_r="unknown"
31406 tst_compi_gethostbyname_r="unknown"
31407 tst_allow_gethostbyname_r="unknown"
31408 tst_nargs_gethostbyname_r="unknown"
31410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r can be linked" >&5
31411 $as_echo_n "checking if gethostbyname_r can be linked... " >&6; }
31412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31413 /* end confdefs.h. */
31416 #define gethostbyname_r innocuous_gethostbyname_r
31418 # include <limits.h>
31420 # include <assert.h>
31422 #undef gethostbyname_r
31426 char gethostbyname_r ();
31427 #if defined __stub_gethostbyname_r || defined __stub___gethostbyname_r
31433 return gethostbyname_r ();
31439 if ac_fn_c_try_link "$LINENO"; then :
31441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31442 $as_echo "yes" >&6; }
31443 tst_links_gethostbyname_r="yes"
31447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31448 $as_echo "no" >&6; }
31449 tst_links_gethostbyname_r="no"
31452 rm -f core conftest.err conftest.$ac_objext \
31453 conftest$ac_exeext conftest.$ac_ext
31455 if test "$tst_links_gethostbyname_r" = "yes"; then
31456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is prototyped" >&5
31457 $as_echo_n "checking if gethostbyname_r is prototyped... " >&6; }
31458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31459 /* end confdefs.h. */
31461 $curl_includes_netdb
31464 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31465 $EGREP "gethostbyname_r" >/dev/null 2>&1; then :
31467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31468 $as_echo "yes" >&6; }
31469 tst_proto_gethostbyname_r="yes"
31473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31474 $as_echo "no" >&6; }
31475 tst_proto_gethostbyname_r="no"
31482 if test "$tst_proto_gethostbyname_r" = "yes"; then
31483 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 3 args." >&5
31485 $as_echo_n "checking if gethostbyname_r takes 3 args.... " >&6; }
31486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31487 /* end confdefs.h. */
31490 $curl_includes_netdb
31495 if(0 != gethostbyname_r(0, 0, 0))
31503 if ac_fn_c_try_compile "$LINENO"; then :
31505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31506 $as_echo "yes" >&6; }
31507 tst_compi_gethostbyname_r="yes"
31508 tst_nargs_gethostbyname_r="3"
31512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31513 $as_echo "no" >&6; }
31514 tst_compi_gethostbyname_r="no"
31517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31519 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 5 args." >&5
31521 $as_echo_n "checking if gethostbyname_r takes 5 args.... " >&6; }
31522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31523 /* end confdefs.h. */
31526 $curl_includes_netdb
31531 if(0 != gethostbyname_r(0, 0, 0, 0, 0))
31539 if ac_fn_c_try_compile "$LINENO"; then :
31541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31542 $as_echo "yes" >&6; }
31543 tst_compi_gethostbyname_r="yes"
31544 tst_nargs_gethostbyname_r="5"
31548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31549 $as_echo "no" >&6; }
31550 tst_compi_gethostbyname_r="no"
31553 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31555 if test "$tst_nargs_gethostbyname_r" = "unknown"; then
31556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r takes 6 args." >&5
31557 $as_echo_n "checking if gethostbyname_r takes 6 args.... " >&6; }
31558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31559 /* end confdefs.h. */
31562 $curl_includes_netdb
31567 if(0 != gethostbyname_r(0, 0, 0, 0, 0, 0))
31575 if ac_fn_c_try_compile "$LINENO"; then :
31577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31578 $as_echo "yes" >&6; }
31579 tst_compi_gethostbyname_r="yes"
31580 tst_nargs_gethostbyname_r="6"
31584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31585 $as_echo "no" >&6; }
31586 tst_compi_gethostbyname_r="no"
31589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r is compilable" >&5
31592 $as_echo_n "checking if gethostbyname_r is compilable... " >&6; }
31593 if test "$tst_compi_gethostbyname_r" = "yes"; then
31594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31595 $as_echo "yes" >&6; }
31597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31598 $as_echo "no" >&6; }
31602 if test "$tst_compi_gethostbyname_r" = "yes"; then
31603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r usage allowed" >&5
31604 $as_echo_n "checking if gethostbyname_r usage allowed... " >&6; }
31605 if test "x$curl_disallow_gethostbyname_r" != "xyes"; then
31606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31607 $as_echo "yes" >&6; }
31608 tst_allow_gethostbyname_r="yes"
31610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31611 $as_echo "no" >&6; }
31612 tst_allow_gethostbyname_r="no"
31616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostbyname_r might be used" >&5
31617 $as_echo_n "checking if gethostbyname_r might be used... " >&6; }
31618 if test "$tst_links_gethostbyname_r" = "yes" &&
31619 test "$tst_proto_gethostbyname_r" = "yes" &&
31620 test "$tst_compi_gethostbyname_r" = "yes" &&
31621 test "$tst_allow_gethostbyname_r" = "yes"; then
31622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31623 $as_echo "yes" >&6; }
31625 cat >>confdefs.h <<_ACEOF
31626 #define HAVE_GETHOSTBYNAME_R 1
31630 if test "$tst_nargs_gethostbyname_r" -eq "3"; then
31632 $as_echo "#define HAVE_GETHOSTBYNAME_R_3 1" >>confdefs.h
31634 elif test "$tst_nargs_gethostbyname_r" -eq "5"; then
31636 $as_echo "#define HAVE_GETHOSTBYNAME_R_5 1" >>confdefs.h
31638 elif test "$tst_nargs_gethostbyname_r" -eq "6"; then
31640 $as_echo "#define HAVE_GETHOSTBYNAME_R_6 1" >>confdefs.h
31644 ac_cv_func_gethostbyname_r="yes"
31646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31647 $as_echo "no" >&6; }
31648 ac_cv_func_gethostbyname_r="no"
31653 tst_links_gethostname="unknown"
31654 tst_proto_gethostname="unknown"
31655 tst_compi_gethostname="unknown"
31656 tst_allow_gethostname="unknown"
31658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname can be linked" >&5
31659 $as_echo_n "checking if gethostname can be linked... " >&6; }
31660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31661 /* end confdefs.h. */
31664 $curl_includes_winsock2
31665 $curl_includes_unistd
31670 if(0 != gethostname(0, 0))
31678 if ac_fn_c_try_link "$LINENO"; then :
31680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31681 $as_echo "yes" >&6; }
31682 tst_links_gethostname="yes"
31686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31687 $as_echo "no" >&6; }
31688 tst_links_gethostname="no"
31691 rm -f core conftest.err conftest.$ac_objext \
31692 conftest$ac_exeext conftest.$ac_ext
31694 if test "$tst_links_gethostname" = "yes"; then
31695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is prototyped" >&5
31696 $as_echo_n "checking if gethostname is prototyped... " >&6; }
31697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31698 /* end confdefs.h. */
31700 $curl_includes_winsock2
31701 $curl_includes_unistd
31704 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31705 $EGREP "gethostname" >/dev/null 2>&1; then :
31707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31708 $as_echo "yes" >&6; }
31709 tst_proto_gethostname="yes"
31713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31714 $as_echo "no" >&6; }
31715 tst_proto_gethostname="no"
31722 if test "$tst_proto_gethostname" = "yes"; then
31723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname is compilable" >&5
31724 $as_echo_n "checking if gethostname is compilable... " >&6; }
31725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31726 /* end confdefs.h. */
31729 $curl_includes_winsock2
31730 $curl_includes_unistd
31735 if(0 != gethostname(0, 0))
31743 if ac_fn_c_try_compile "$LINENO"; then :
31745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31746 $as_echo "yes" >&6; }
31747 tst_compi_gethostname="yes"
31751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31752 $as_echo "no" >&6; }
31753 tst_compi_gethostname="no"
31756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31759 if test "$tst_compi_gethostname" = "yes"; then
31760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname arg 2 data type" >&5
31761 $as_echo_n "checking for gethostname arg 2 data type... " >&6; }
31762 tst_gethostname_type_arg2="unknown"
31763 for tst_arg1 in 'char *' 'unsigned char *' 'void *'; do
31764 for tst_arg2 in 'int' 'unsigned int' 'size_t'; do
31765 if test "$tst_gethostname_type_arg2" = "unknown"; then
31766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31767 /* end confdefs.h. */
31770 $curl_includes_winsock2
31771 $curl_includes_unistd
31772 $curl_preprocess_callconv
31773 extern int FUNCALLCONV gethostname($tst_arg1, $tst_arg2);
31778 if(0 != gethostname(0, 0))
31786 if ac_fn_c_try_compile "$LINENO"; then :
31788 tst_gethostname_type_arg2="$tst_arg2"
31791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_gethostname_type_arg2" >&5
31796 $as_echo "$tst_gethostname_type_arg2" >&6; }
31797 if test "$tst_gethostname_type_arg2" != "unknown"; then
31799 cat >>confdefs.h <<_ACEOF
31800 #define GETHOSTNAME_TYPE_ARG2 $tst_gethostname_type_arg2
31806 if test "$tst_compi_gethostname" = "yes"; then
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname usage allowed" >&5
31808 $as_echo_n "checking if gethostname usage allowed... " >&6; }
31809 if test "x$curl_disallow_gethostname" != "xyes"; then
31810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31811 $as_echo "yes" >&6; }
31812 tst_allow_gethostname="yes"
31814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31815 $as_echo "no" >&6; }
31816 tst_allow_gethostname="no"
31820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gethostname might be used" >&5
31821 $as_echo_n "checking if gethostname might be used... " >&6; }
31822 if test "$tst_links_gethostname" = "yes" &&
31823 test "$tst_proto_gethostname" = "yes" &&
31824 test "$tst_compi_gethostname" = "yes" &&
31825 test "$tst_allow_gethostname" = "yes"; then
31826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31827 $as_echo "yes" >&6; }
31829 cat >>confdefs.h <<_ACEOF
31830 #define HAVE_GETHOSTNAME 1
31833 ac_cv_func_gethostname="yes"
31835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31836 $as_echo "no" >&6; }
31837 ac_cv_func_gethostname="no"
31842 tst_links_getifaddrs="unknown"
31843 tst_proto_getifaddrs="unknown"
31844 tst_compi_getifaddrs="unknown"
31845 tst_works_getifaddrs="unknown"
31846 tst_allow_getifaddrs="unknown"
31848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs can be linked" >&5
31849 $as_echo_n "checking if getifaddrs can be linked... " >&6; }
31850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31851 /* end confdefs.h. */
31854 #define getifaddrs innocuous_getifaddrs
31856 # include <limits.h>
31858 # include <assert.h>
31864 char getifaddrs ();
31865 #if defined __stub_getifaddrs || defined __stub___getifaddrs
31871 return getifaddrs ();
31877 if ac_fn_c_try_link "$LINENO"; then :
31879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31880 $as_echo "yes" >&6; }
31881 tst_links_getifaddrs="yes"
31885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31886 $as_echo "no" >&6; }
31887 tst_links_getifaddrs="no"
31890 rm -f core conftest.err conftest.$ac_objext \
31891 conftest$ac_exeext conftest.$ac_ext
31893 if test "$tst_links_getifaddrs" = "yes"; then
31894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is prototyped" >&5
31895 $as_echo_n "checking if getifaddrs is prototyped... " >&6; }
31896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31897 /* end confdefs.h. */
31899 $curl_includes_ifaddrs
31902 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
31903 $EGREP "getifaddrs" >/dev/null 2>&1; then :
31905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31906 $as_echo "yes" >&6; }
31907 tst_proto_getifaddrs="yes"
31911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31912 $as_echo "no" >&6; }
31913 tst_proto_getifaddrs="no"
31920 if test "$tst_proto_getifaddrs" = "yes"; then
31921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs is compilable" >&5
31922 $as_echo_n "checking if getifaddrs is compilable... " >&6; }
31923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31924 /* end confdefs.h. */
31927 $curl_includes_ifaddrs
31932 if(0 != getifaddrs(0))
31940 if ac_fn_c_try_compile "$LINENO"; then :
31942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31943 $as_echo "yes" >&6; }
31944 tst_compi_getifaddrs="yes"
31948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31949 $as_echo "no" >&6; }
31950 tst_compi_getifaddrs="no"
31953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31956 if test "x$cross_compiling" != "xyes" &&
31957 test "$tst_compi_getifaddrs" = "yes"; then
31958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs seems to work" >&5
31959 $as_echo_n "checking if getifaddrs seems to work... " >&6; }
31960 if test "$cross_compiling" = yes; then :
31961 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
31962 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
31963 as_fn_error $? "cannot run test program while cross compiling
31964 See \`config.log' for more details" "$LINENO" 5; }
31966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31967 /* end confdefs.h. */
31970 $curl_includes_stdlib
31971 $curl_includes_ifaddrs
31976 struct ifaddrs *ifa = 0;
31979 error = getifaddrs(&ifa);
31981 exit(1); /* fail */
31990 if ac_fn_c_try_run "$LINENO"; then :
31992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31993 $as_echo "yes" >&6; }
31994 tst_works_getifaddrs="yes"
31998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31999 $as_echo "no" >&6; }
32000 tst_works_getifaddrs="no"
32003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32004 conftest.$ac_objext conftest.beam conftest.$ac_ext
32009 if test "$tst_compi_getifaddrs" = "yes" &&
32010 test "$tst_works_getifaddrs" != "no"; then
32011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs usage allowed" >&5
32012 $as_echo_n "checking if getifaddrs usage allowed... " >&6; }
32013 if test "x$curl_disallow_getifaddrs" != "xyes"; then
32014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32015 $as_echo "yes" >&6; }
32016 tst_allow_getifaddrs="yes"
32018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32019 $as_echo "no" >&6; }
32020 tst_allow_getifaddrs="no"
32024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getifaddrs might be used" >&5
32025 $as_echo_n "checking if getifaddrs might be used... " >&6; }
32026 if test "$tst_links_getifaddrs" = "yes" &&
32027 test "$tst_proto_getifaddrs" = "yes" &&
32028 test "$tst_compi_getifaddrs" = "yes" &&
32029 test "$tst_allow_getifaddrs" = "yes" &&
32030 test "$tst_works_getifaddrs" != "no"; then
32031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32032 $as_echo "yes" >&6; }
32034 cat >>confdefs.h <<_ACEOF
32035 #define HAVE_GETIFADDRS 1
32038 ac_cv_func_getifaddrs="yes"
32040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32041 $as_echo "no" >&6; }
32042 ac_cv_func_getifaddrs="no"
32047 tst_links_getservbyport_r="unknown"
32048 tst_proto_getservbyport_r="unknown"
32049 tst_compi_getservbyport_r="unknown"
32050 tst_allow_getservbyport_r="unknown"
32051 tst_nargs_getservbyport_r="unknown"
32053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r can be linked" >&5
32054 $as_echo_n "checking if getservbyport_r can be linked... " >&6; }
32055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32056 /* end confdefs.h. */
32059 #define getservbyport_r innocuous_getservbyport_r
32061 # include <limits.h>
32063 # include <assert.h>
32065 #undef getservbyport_r
32069 char getservbyport_r ();
32070 #if defined __stub_getservbyport_r || defined __stub___getservbyport_r
32076 return getservbyport_r ();
32082 if ac_fn_c_try_link "$LINENO"; then :
32084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32085 $as_echo "yes" >&6; }
32086 tst_links_getservbyport_r="yes"
32090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32091 $as_echo "no" >&6; }
32092 tst_links_getservbyport_r="no"
32095 rm -f core conftest.err conftest.$ac_objext \
32096 conftest$ac_exeext conftest.$ac_ext
32098 if test "$tst_links_getservbyport_r" = "yes"; then
32099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is prototyped" >&5
32100 $as_echo_n "checking if getservbyport_r is prototyped... " >&6; }
32101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32102 /* end confdefs.h. */
32104 $curl_includes_netdb
32107 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32108 $EGREP "getservbyport_r" >/dev/null 2>&1; then :
32110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32111 $as_echo "yes" >&6; }
32112 tst_proto_getservbyport_r="yes"
32116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32117 $as_echo "no" >&6; }
32118 tst_proto_getservbyport_r="no"
32125 if test "$tst_proto_getservbyport_r" = "yes"; then
32126 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 4 args." >&5
32128 $as_echo_n "checking if getservbyport_r takes 4 args.... " >&6; }
32129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32130 /* end confdefs.h. */
32133 $curl_includes_netdb
32138 if(0 != getservbyport_r(0, 0, 0, 0))
32146 if ac_fn_c_try_compile "$LINENO"; then :
32148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32149 $as_echo "yes" >&6; }
32150 tst_compi_getservbyport_r="yes"
32151 tst_nargs_getservbyport_r="4"
32155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32156 $as_echo "no" >&6; }
32157 tst_compi_getservbyport_r="no"
32160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32162 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 5 args." >&5
32164 $as_echo_n "checking if getservbyport_r takes 5 args.... " >&6; }
32165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32166 /* end confdefs.h. */
32169 $curl_includes_netdb
32174 if(0 != getservbyport_r(0, 0, 0, 0, 0))
32182 if ac_fn_c_try_compile "$LINENO"; then :
32184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32185 $as_echo "yes" >&6; }
32186 tst_compi_getservbyport_r="yes"
32187 tst_nargs_getservbyport_r="5"
32191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32192 $as_echo "no" >&6; }
32193 tst_compi_getservbyport_r="no"
32196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32198 if test "$tst_nargs_getservbyport_r" = "unknown"; then
32199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r takes 6 args." >&5
32200 $as_echo_n "checking if getservbyport_r takes 6 args.... " >&6; }
32201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32202 /* end confdefs.h. */
32205 $curl_includes_netdb
32210 if(0 != getservbyport_r(0, 0, 0, 0, 0, 0))
32218 if ac_fn_c_try_compile "$LINENO"; then :
32220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32221 $as_echo "yes" >&6; }
32222 tst_compi_getservbyport_r="yes"
32223 tst_nargs_getservbyport_r="6"
32227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32228 $as_echo "no" >&6; }
32229 tst_compi_getservbyport_r="no"
32232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r is compilable" >&5
32235 $as_echo_n "checking if getservbyport_r is compilable... " >&6; }
32236 if test "$tst_compi_getservbyport_r" = "yes"; then
32237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32238 $as_echo "yes" >&6; }
32240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32241 $as_echo "no" >&6; }
32245 if test "$tst_compi_getservbyport_r" = "yes"; then
32246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r usage allowed" >&5
32247 $as_echo_n "checking if getservbyport_r usage allowed... " >&6; }
32248 if test "x$curl_disallow_getservbyport_r" != "xyes"; then
32249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32250 $as_echo "yes" >&6; }
32251 tst_allow_getservbyport_r="yes"
32253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32254 $as_echo "no" >&6; }
32255 tst_allow_getservbyport_r="no"
32259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if getservbyport_r might be used" >&5
32260 $as_echo_n "checking if getservbyport_r might be used... " >&6; }
32261 if test "$tst_links_getservbyport_r" = "yes" &&
32262 test "$tst_proto_getservbyport_r" = "yes" &&
32263 test "$tst_compi_getservbyport_r" = "yes" &&
32264 test "$tst_allow_getservbyport_r" = "yes"; then
32265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32266 $as_echo "yes" >&6; }
32268 cat >>confdefs.h <<_ACEOF
32269 #define HAVE_GETSERVBYPORT_R 1
32273 cat >>confdefs.h <<_ACEOF
32274 #define GETSERVBYPORT_R_ARGS $tst_nargs_getservbyport_r
32277 if test "$tst_nargs_getservbyport_r" -eq "4"; then
32279 $as_echo "#define GETSERVBYPORT_R_BUFSIZE sizeof(struct servent_data)" >>confdefs.h
32283 $as_echo "#define GETSERVBYPORT_R_BUFSIZE 4096" >>confdefs.h
32286 ac_cv_func_getservbyport_r="yes"
32288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32289 $as_echo "no" >&6; }
32290 ac_cv_func_getservbyport_r="no"
32294 curl_includes_time="\
32295 /* includes start */
32296 #ifdef HAVE_SYS_TYPES_H
32297 # include <sys/types.h>
32299 #ifdef HAVE_SYS_TIME_H
32300 # include <sys/time.h>
32301 # ifdef TIME_WITH_SYS_TIME
32305 # ifdef HAVE_TIME_H
32309 /* includes end */"
32310 for ac_header in sys/types.h sys/time.h time.h
32312 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32313 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_time
32315 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32316 cat >>confdefs.h <<_ACEOF
32317 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32327 tst_links_gmtime_r="unknown"
32328 tst_proto_gmtime_r="unknown"
32329 tst_compi_gmtime_r="unknown"
32330 tst_works_gmtime_r="unknown"
32331 tst_allow_gmtime_r="unknown"
32333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r can be linked" >&5
32334 $as_echo_n "checking if gmtime_r can be linked... " >&6; }
32335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32336 /* end confdefs.h. */
32339 #define gmtime_r innocuous_gmtime_r
32341 # include <limits.h>
32343 # include <assert.h>
32350 #if defined __stub_gmtime_r || defined __stub___gmtime_r
32356 return gmtime_r ();
32362 if ac_fn_c_try_link "$LINENO"; then :
32364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32365 $as_echo "yes" >&6; }
32366 tst_links_gmtime_r="yes"
32370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32371 $as_echo "no" >&6; }
32372 tst_links_gmtime_r="no"
32375 rm -f core conftest.err conftest.$ac_objext \
32376 conftest$ac_exeext conftest.$ac_ext
32378 if test "$tst_links_gmtime_r" = "yes"; then
32379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is prototyped" >&5
32380 $as_echo_n "checking if gmtime_r is prototyped... " >&6; }
32381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32382 /* end confdefs.h. */
32384 $curl_includes_time
32387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32388 $EGREP "gmtime_r" >/dev/null 2>&1; then :
32390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32391 $as_echo "yes" >&6; }
32392 tst_proto_gmtime_r="yes"
32396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32397 $as_echo "no" >&6; }
32398 tst_proto_gmtime_r="no"
32405 if test "$tst_proto_gmtime_r" = "yes"; then
32406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r is compilable" >&5
32407 $as_echo_n "checking if gmtime_r is compilable... " >&6; }
32408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32409 /* end confdefs.h. */
32412 $curl_includes_time
32417 if(0 != gmtime_r(0, 0))
32425 if ac_fn_c_try_compile "$LINENO"; then :
32427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32428 $as_echo "yes" >&6; }
32429 tst_compi_gmtime_r="yes"
32433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32434 $as_echo "no" >&6; }
32435 tst_compi_gmtime_r="no"
32438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32441 if test "x$cross_compiling" != "xyes" &&
32442 test "$tst_compi_gmtime_r" = "yes"; then
32443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r seems to work" >&5
32444 $as_echo_n "checking if gmtime_r seems to work... " >&6; }
32445 if test "$cross_compiling" = yes; then :
32446 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32447 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32448 as_fn_error $? "cannot run test program while cross compiling
32449 See \`config.log' for more details" "$LINENO" 5; }
32451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32452 /* end confdefs.h. */
32455 $curl_includes_stdlib
32456 $curl_includes_time
32461 time_t local = 1170352587;
32462 struct tm *gmt = 0;
32464 gmt = gmtime_r(&local, &result);
32475 if ac_fn_c_try_run "$LINENO"; then :
32477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32478 $as_echo "yes" >&6; }
32479 tst_works_gmtime_r="yes"
32483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32484 $as_echo "no" >&6; }
32485 tst_works_gmtime_r="no"
32488 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32489 conftest.$ac_objext conftest.beam conftest.$ac_ext
32494 if test "$tst_compi_gmtime_r" = "yes" &&
32495 test "$tst_works_gmtime_r" != "no"; then
32496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r usage allowed" >&5
32497 $as_echo_n "checking if gmtime_r usage allowed... " >&6; }
32498 if test "x$curl_disallow_gmtime_r" != "xyes"; then
32499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32500 $as_echo "yes" >&6; }
32501 tst_allow_gmtime_r="yes"
32503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32504 $as_echo "no" >&6; }
32505 tst_allow_gmtime_r="no"
32509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmtime_r might be used" >&5
32510 $as_echo_n "checking if gmtime_r might be used... " >&6; }
32511 if test "$tst_links_gmtime_r" = "yes" &&
32512 test "$tst_proto_gmtime_r" = "yes" &&
32513 test "$tst_compi_gmtime_r" = "yes" &&
32514 test "$tst_allow_gmtime_r" = "yes" &&
32515 test "$tst_works_gmtime_r" != "no"; then
32516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32517 $as_echo "yes" >&6; }
32519 cat >>confdefs.h <<_ACEOF
32520 #define HAVE_GMTIME_R 1
32523 ac_cv_func_gmtime_r="yes"
32525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32526 $as_echo "no" >&6; }
32527 ac_cv_func_gmtime_r="no"
32531 curl_includes_arpa_inet="\
32532 /* includes start */
32533 #ifdef HAVE_SYS_TYPES_H
32534 # include <sys/types.h>
32536 #ifdef HAVE_SYS_SOCKET_H
32537 # include <sys/socket.h>
32539 #ifdef HAVE_NETINET_IN_H
32540 # include <netinet/in.h>
32542 #ifdef HAVE_ARPA_INET_H
32543 # include <arpa/inet.h>
32545 /* includes end */"
32546 for ac_header in sys/types.h sys/socket.h netinet/in.h arpa/inet.h
32548 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
32549 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_arpa_inet
32551 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
32552 cat >>confdefs.h <<_ACEOF
32553 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
32563 tst_links_inet_ntoa_r="unknown"
32564 tst_proto_inet_ntoa_r="unknown"
32565 tst_compi_inet_ntoa_r="unknown"
32566 tst_allow_inet_ntoa_r="unknown"
32567 tst_nargs_inet_ntoa_r="unknown"
32569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r can be linked" >&5
32570 $as_echo_n "checking if inet_ntoa_r can be linked... " >&6; }
32571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32572 /* end confdefs.h. */
32575 #define inet_ntoa_r innocuous_inet_ntoa_r
32577 # include <limits.h>
32579 # include <assert.h>
32585 char inet_ntoa_r ();
32586 #if defined __stub_inet_ntoa_r || defined __stub___inet_ntoa_r
32592 return inet_ntoa_r ();
32598 if ac_fn_c_try_link "$LINENO"; then :
32600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32601 $as_echo "yes" >&6; }
32602 tst_links_inet_ntoa_r="yes"
32606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32607 $as_echo "no" >&6; }
32608 tst_links_inet_ntoa_r="no"
32611 rm -f core conftest.err conftest.$ac_objext \
32612 conftest$ac_exeext conftest.$ac_ext
32614 if test "$tst_links_inet_ntoa_r" = "yes"; then
32615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is prototyped" >&5
32616 $as_echo_n "checking if inet_ntoa_r is prototyped... " >&6; }
32617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32618 /* end confdefs.h. */
32620 $curl_includes_arpa_inet
32623 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32624 $EGREP "inet_ntoa_r" >/dev/null 2>&1; then :
32626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32627 $as_echo "yes" >&6; }
32628 tst_proto_inet_ntoa_r="yes"
32632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32633 $as_echo "no" >&6; }
32634 tst_proto_inet_ntoa_r="no"
32641 if test "$tst_proto_inet_ntoa_r" = "yes"; then
32642 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 2 args." >&5
32644 $as_echo_n "checking if inet_ntoa_r takes 2 args.... " >&6; }
32645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32646 /* end confdefs.h. */
32649 $curl_includes_arpa_inet
32654 struct in_addr addr;
32655 if(0 != inet_ntoa_r(addr, 0))
32663 if ac_fn_c_try_compile "$LINENO"; then :
32665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32666 $as_echo "yes" >&6; }
32667 tst_compi_inet_ntoa_r="yes"
32668 tst_nargs_inet_ntoa_r="2"
32672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32673 $as_echo "no" >&6; }
32674 tst_compi_inet_ntoa_r="no"
32677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32679 if test "$tst_nargs_inet_ntoa_r" = "unknown"; then
32680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r takes 3 args." >&5
32681 $as_echo_n "checking if inet_ntoa_r takes 3 args.... " >&6; }
32682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32683 /* end confdefs.h. */
32686 $curl_includes_arpa_inet
32691 struct in_addr addr;
32692 if(0 != inet_ntoa_r(addr, 0, 0))
32700 if ac_fn_c_try_compile "$LINENO"; then :
32702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32703 $as_echo "yes" >&6; }
32704 tst_compi_inet_ntoa_r="yes"
32705 tst_nargs_inet_ntoa_r="3"
32709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32710 $as_echo "no" >&6; }
32711 tst_compi_inet_ntoa_r="no"
32714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r is compilable" >&5
32717 $as_echo_n "checking if inet_ntoa_r is compilable... " >&6; }
32718 if test "$tst_compi_inet_ntoa_r" = "yes"; then
32719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32720 $as_echo "yes" >&6; }
32722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32723 $as_echo "no" >&6; }
32727 if test "$tst_compi_inet_ntoa_r" = "yes"; then
32728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r usage allowed" >&5
32729 $as_echo_n "checking if inet_ntoa_r usage allowed... " >&6; }
32730 if test "x$curl_disallow_inet_ntoa_r" != "xyes"; then
32731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32732 $as_echo "yes" >&6; }
32733 tst_allow_inet_ntoa_r="yes"
32735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32736 $as_echo "no" >&6; }
32737 tst_allow_inet_ntoa_r="no"
32741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntoa_r might be used" >&5
32742 $as_echo_n "checking if inet_ntoa_r might be used... " >&6; }
32743 if test "$tst_links_inet_ntoa_r" = "yes" &&
32744 test "$tst_proto_inet_ntoa_r" = "yes" &&
32745 test "$tst_compi_inet_ntoa_r" = "yes" &&
32746 test "$tst_allow_inet_ntoa_r" = "yes"; then
32747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32748 $as_echo "yes" >&6; }
32750 cat >>confdefs.h <<_ACEOF
32751 #define HAVE_INET_NTOA_R 1
32755 if test "$tst_nargs_inet_ntoa_r" -eq "2"; then
32757 $as_echo "#define HAVE_INET_NTOA_R_2 1" >>confdefs.h
32759 elif test "$tst_nargs_inet_ntoa_r" -eq "3"; then
32761 $as_echo "#define HAVE_INET_NTOA_R_3 1" >>confdefs.h
32765 ac_cv_func_inet_ntoa_r="yes"
32767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32768 $as_echo "no" >&6; }
32769 ac_cv_func_inet_ntoa_r="no"
32774 tst_links_inet_ntop="unknown"
32775 tst_proto_inet_ntop="unknown"
32776 tst_compi_inet_ntop="unknown"
32777 tst_works_inet_ntop="unknown"
32778 tst_allow_inet_ntop="unknown"
32780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop can be linked" >&5
32781 $as_echo_n "checking if inet_ntop can be linked... " >&6; }
32782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32783 /* end confdefs.h. */
32786 #define inet_ntop innocuous_inet_ntop
32788 # include <limits.h>
32790 # include <assert.h>
32797 #if defined __stub_inet_ntop || defined __stub___inet_ntop
32803 return inet_ntop ();
32809 if ac_fn_c_try_link "$LINENO"; then :
32811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32812 $as_echo "yes" >&6; }
32813 tst_links_inet_ntop="yes"
32817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32818 $as_echo "no" >&6; }
32819 tst_links_inet_ntop="no"
32822 rm -f core conftest.err conftest.$ac_objext \
32823 conftest$ac_exeext conftest.$ac_ext
32825 if test "$tst_links_inet_ntop" = "yes"; then
32826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is prototyped" >&5
32827 $as_echo_n "checking if inet_ntop is prototyped... " >&6; }
32828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32829 /* end confdefs.h. */
32831 $curl_includes_arpa_inet
32834 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
32835 $EGREP "inet_ntop" >/dev/null 2>&1; then :
32837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32838 $as_echo "yes" >&6; }
32839 tst_proto_inet_ntop="yes"
32843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32844 $as_echo "no" >&6; }
32845 tst_proto_inet_ntop="no"
32852 if test "$tst_proto_inet_ntop" = "yes"; then
32853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop is compilable" >&5
32854 $as_echo_n "checking if inet_ntop is compilable... " >&6; }
32855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32856 /* end confdefs.h. */
32859 $curl_includes_arpa_inet
32864 if(0 != inet_ntop(0, 0, 0, 0))
32872 if ac_fn_c_try_compile "$LINENO"; then :
32874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32875 $as_echo "yes" >&6; }
32876 tst_compi_inet_ntop="yes"
32880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32881 $as_echo "no" >&6; }
32882 tst_compi_inet_ntop="no"
32885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
32888 if test "x$cross_compiling" != "xyes" &&
32889 test "$tst_compi_inet_ntop" = "yes"; then
32890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop seems to work" >&5
32891 $as_echo_n "checking if inet_ntop seems to work... " >&6; }
32892 if test "$cross_compiling" = yes; then :
32893 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
32894 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
32895 as_fn_error $? "cannot run test program while cross compiling
32896 See \`config.log' for more details" "$LINENO" 5; }
32898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32899 /* end confdefs.h. */
32902 $curl_includes_stdlib
32903 $curl_includes_arpa_inet
32904 $curl_includes_string
32909 char ipv6res[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")];
32910 char ipv4res[sizeof "255.255.255.255"];
32911 unsigned char ipv6a[26];
32912 unsigned char ipv4a[5];
32923 ipv4ptr = inet_ntop(AF_INET, ipv4a, ipv4res, sizeof(ipv4res));
32925 exit(1); /* fail */
32926 if(ipv4ptr != ipv4res)
32927 exit(1); /* fail */
32929 exit(1); /* fail */
32930 if(memcmp(ipv4res, "192.168.100.1", 13) != 0)
32931 exit(1); /* fail */
32934 memset(ipv6a, 0, sizeof(ipv6a));
32947 ipv6ptr = inet_ntop(AF_INET6, ipv6a, ipv6res, sizeof(ipv6res));
32949 exit(1); /* fail */
32950 if(ipv6ptr != ipv6res)
32951 exit(1); /* fail */
32953 exit(1); /* fail */
32954 if(memcmp(ipv6res, "fe80::214:4fff:fe0b:76c8", 24) != 0)
32955 exit(1); /* fail */
32964 if ac_fn_c_try_run "$LINENO"; then :
32966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32967 $as_echo "yes" >&6; }
32968 tst_works_inet_ntop="yes"
32972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32973 $as_echo "no" >&6; }
32974 tst_works_inet_ntop="no"
32977 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
32978 conftest.$ac_objext conftest.beam conftest.$ac_ext
32983 if test "$tst_compi_inet_ntop" = "yes" &&
32984 test "$tst_works_inet_ntop" != "no"; then
32985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop usage allowed" >&5
32986 $as_echo_n "checking if inet_ntop usage allowed... " >&6; }
32987 if test "x$curl_disallow_inet_ntop" != "xyes"; then
32988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32989 $as_echo "yes" >&6; }
32990 tst_allow_inet_ntop="yes"
32992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32993 $as_echo "no" >&6; }
32994 tst_allow_inet_ntop="no"
32998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_ntop might be used" >&5
32999 $as_echo_n "checking if inet_ntop might be used... " >&6; }
33000 if test "$tst_links_inet_ntop" = "yes" &&
33001 test "$tst_proto_inet_ntop" = "yes" &&
33002 test "$tst_compi_inet_ntop" = "yes" &&
33003 test "$tst_allow_inet_ntop" = "yes" &&
33004 test "$tst_works_inet_ntop" != "no"; then
33005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33006 $as_echo "yes" >&6; }
33008 cat >>confdefs.h <<_ACEOF
33009 #define HAVE_INET_NTOP 1
33012 ac_cv_func_inet_ntop="yes"
33014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33015 $as_echo "no" >&6; }
33016 ac_cv_func_inet_ntop="no"
33021 tst_links_inet_pton="unknown"
33022 tst_proto_inet_pton="unknown"
33023 tst_compi_inet_pton="unknown"
33024 tst_works_inet_pton="unknown"
33025 tst_allow_inet_pton="unknown"
33027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton can be linked" >&5
33028 $as_echo_n "checking if inet_pton can be linked... " >&6; }
33029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33030 /* end confdefs.h. */
33033 #define inet_pton innocuous_inet_pton
33035 # include <limits.h>
33037 # include <assert.h>
33044 #if defined __stub_inet_pton || defined __stub___inet_pton
33050 return inet_pton ();
33056 if ac_fn_c_try_link "$LINENO"; then :
33058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33059 $as_echo "yes" >&6; }
33060 tst_links_inet_pton="yes"
33064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33065 $as_echo "no" >&6; }
33066 tst_links_inet_pton="no"
33069 rm -f core conftest.err conftest.$ac_objext \
33070 conftest$ac_exeext conftest.$ac_ext
33072 if test "$tst_links_inet_pton" = "yes"; then
33073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is prototyped" >&5
33074 $as_echo_n "checking if inet_pton is prototyped... " >&6; }
33075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33076 /* end confdefs.h. */
33078 $curl_includes_arpa_inet
33081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33082 $EGREP "inet_pton" >/dev/null 2>&1; then :
33084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33085 $as_echo "yes" >&6; }
33086 tst_proto_inet_pton="yes"
33090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33091 $as_echo "no" >&6; }
33092 tst_proto_inet_pton="no"
33099 if test "$tst_proto_inet_pton" = "yes"; then
33100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton is compilable" >&5
33101 $as_echo_n "checking if inet_pton is compilable... " >&6; }
33102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33103 /* end confdefs.h. */
33106 $curl_includes_arpa_inet
33111 if(0 != inet_pton(0, 0, 0))
33119 if ac_fn_c_try_compile "$LINENO"; then :
33121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33122 $as_echo "yes" >&6; }
33123 tst_compi_inet_pton="yes"
33127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33128 $as_echo "no" >&6; }
33129 tst_compi_inet_pton="no"
33132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33135 if test "x$cross_compiling" != "xyes" &&
33136 test "$tst_compi_inet_pton" = "yes"; then
33137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton seems to work" >&5
33138 $as_echo_n "checking if inet_pton seems to work... " >&6; }
33139 if test "$cross_compiling" = yes; then :
33140 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
33141 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
33142 as_fn_error $? "cannot run test program while cross compiling
33143 See \`config.log' for more details" "$LINENO" 5; }
33145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33146 /* end confdefs.h. */
33149 $curl_includes_stdlib
33150 $curl_includes_arpa_inet
33151 $curl_includes_string
33156 unsigned char ipv6a[16+1];
33157 unsigned char ipv4a[4+1];
33158 const char *ipv6src = "fe80::214:4fff:fe0b:76c8";
33159 const char *ipv4src = "192.168.100.1";
33161 memset(ipv4a, 1, sizeof(ipv4a));
33162 if(1 != inet_pton(AF_INET, ipv4src, ipv4a))
33163 exit(1); /* fail */
33165 if( (ipv4a[0] != 0xc0) ||
33166 (ipv4a[1] != 0xa8) ||
33167 (ipv4a[2] != 0x64) ||
33168 (ipv4a[3] != 0x01) ||
33169 (ipv4a[4] != 0x01) )
33170 exit(1); /* fail */
33172 memset(ipv6a, 1, sizeof(ipv6a));
33173 if(1 != inet_pton(AF_INET6, ipv6src, ipv6a))
33174 exit(1); /* fail */
33176 if( (ipv6a[0] != 0xfe) ||
33177 (ipv6a[1] != 0x80) ||
33178 (ipv6a[8] != 0x02) ||
33179 (ipv6a[9] != 0x14) ||
33180 (ipv6a[10] != 0x4f) ||
33181 (ipv6a[11] != 0xff) ||
33182 (ipv6a[12] != 0xfe) ||
33183 (ipv6a[13] != 0x0b) ||
33184 (ipv6a[14] != 0x76) ||
33185 (ipv6a[15] != 0xc8) ||
33186 (ipv6a[16] != 0x01) )
33187 exit(1); /* fail */
33189 if( (ipv6a[2] != 0x0) ||
33190 (ipv6a[3] != 0x0) ||
33191 (ipv6a[4] != 0x0) ||
33192 (ipv6a[5] != 0x0) ||
33193 (ipv6a[6] != 0x0) ||
33194 (ipv6a[7] != 0x0) )
33195 exit(1); /* fail */
33204 if ac_fn_c_try_run "$LINENO"; then :
33206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33207 $as_echo "yes" >&6; }
33208 tst_works_inet_pton="yes"
33212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33213 $as_echo "no" >&6; }
33214 tst_works_inet_pton="no"
33217 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
33218 conftest.$ac_objext conftest.beam conftest.$ac_ext
33223 if test "$tst_compi_inet_pton" = "yes" &&
33224 test "$tst_works_inet_pton" != "no"; then
33225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton usage allowed" >&5
33226 $as_echo_n "checking if inet_pton usage allowed... " >&6; }
33227 if test "x$curl_disallow_inet_pton" != "xyes"; then
33228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33229 $as_echo "yes" >&6; }
33230 tst_allow_inet_pton="yes"
33232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33233 $as_echo "no" >&6; }
33234 tst_allow_inet_pton="no"
33238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if inet_pton might be used" >&5
33239 $as_echo_n "checking if inet_pton might be used... " >&6; }
33240 if test "$tst_links_inet_pton" = "yes" &&
33241 test "$tst_proto_inet_pton" = "yes" &&
33242 test "$tst_compi_inet_pton" = "yes" &&
33243 test "$tst_allow_inet_pton" = "yes" &&
33244 test "$tst_works_inet_pton" != "no"; then
33245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33246 $as_echo "yes" >&6; }
33248 cat >>confdefs.h <<_ACEOF
33249 #define HAVE_INET_PTON 1
33252 ac_cv_func_inet_pton="yes"
33254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33255 $as_echo "no" >&6; }
33256 ac_cv_func_inet_pton="no"
33260 curl_includes_stropts="\
33261 /* includes start */
33262 #ifdef HAVE_SYS_TYPES_H
33263 # include <sys/types.h>
33265 #ifdef HAVE_UNISTD_H
33266 # include <unistd.h>
33268 #ifdef HAVE_SYS_SOCKET_H
33269 # include <sys/socket.h>
33271 #ifdef HAVE_SYS_IOCTL_H
33272 # include <sys/ioctl.h>
33274 #ifdef HAVE_STROPTS_H
33275 # include <stropts.h>
33277 /* includes end */"
33278 for ac_header in sys/types.h unistd.h sys/socket.h sys/ioctl.h stropts.h
33280 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
33281 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_stropts
33283 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
33284 cat >>confdefs.h <<_ACEOF
33285 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
33295 tst_links_ioctl="unknown"
33296 tst_proto_ioctl="unknown"
33297 tst_compi_ioctl="unknown"
33298 tst_allow_ioctl="unknown"
33300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl can be linked" >&5
33301 $as_echo_n "checking if ioctl can be linked... " >&6; }
33302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33303 /* end confdefs.h. */
33306 #define ioctl innocuous_ioctl
33308 # include <limits.h>
33310 # include <assert.h>
33317 #if defined __stub_ioctl || defined __stub___ioctl
33329 if ac_fn_c_try_link "$LINENO"; then :
33331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33332 $as_echo "yes" >&6; }
33333 tst_links_ioctl="yes"
33337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33338 $as_echo "no" >&6; }
33339 tst_links_ioctl="no"
33342 rm -f core conftest.err conftest.$ac_objext \
33343 conftest$ac_exeext conftest.$ac_ext
33345 if test "$tst_links_ioctl" = "yes"; then
33346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is prototyped" >&5
33347 $as_echo_n "checking if ioctl is prototyped... " >&6; }
33348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33349 /* end confdefs.h. */
33351 $curl_includes_stropts
33354 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33355 $EGREP "ioctl" >/dev/null 2>&1; then :
33357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33358 $as_echo "yes" >&6; }
33359 tst_proto_ioctl="yes"
33363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33364 $as_echo "no" >&6; }
33365 tst_proto_ioctl="no"
33372 if test "$tst_proto_ioctl" = "yes"; then
33373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl is compilable" >&5
33374 $as_echo_n "checking if ioctl is compilable... " >&6; }
33375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33376 /* end confdefs.h. */
33379 $curl_includes_stropts
33384 if(0 != ioctl(0, 0, 0))
33392 if ac_fn_c_try_compile "$LINENO"; then :
33394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33395 $as_echo "yes" >&6; }
33396 tst_compi_ioctl="yes"
33400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33401 $as_echo "no" >&6; }
33402 tst_compi_ioctl="no"
33405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33408 if test "$tst_compi_ioctl" = "yes"; then
33409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl usage allowed" >&5
33410 $as_echo_n "checking if ioctl usage allowed... " >&6; }
33411 if test "x$curl_disallow_ioctl" != "xyes"; then
33412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33413 $as_echo "yes" >&6; }
33414 tst_allow_ioctl="yes"
33416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33417 $as_echo "no" >&6; }
33418 tst_allow_ioctl="no"
33422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl might be used" >&5
33423 $as_echo_n "checking if ioctl might be used... " >&6; }
33424 if test "$tst_links_ioctl" = "yes" &&
33425 test "$tst_proto_ioctl" = "yes" &&
33426 test "$tst_compi_ioctl" = "yes" &&
33427 test "$tst_allow_ioctl" = "yes"; then
33428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33429 $as_echo "yes" >&6; }
33431 cat >>confdefs.h <<_ACEOF
33432 #define HAVE_IOCTL 1
33435 ac_cv_func_ioctl="yes"
33438 tst_compi_ioctl_fionbio="unknown"
33439 tst_allow_ioctl_fionbio="unknown"
33441 if test "$ac_cv_func_ioctl" = "yes"; then
33442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO is compilable" >&5
33443 $as_echo_n "checking if ioctl FIONBIO is compilable... " >&6; }
33444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33445 /* end confdefs.h. */
33448 $curl_includes_stropts
33454 if(0 != ioctl(0, FIONBIO, &flags))
33462 if ac_fn_c_try_compile "$LINENO"; then :
33464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33465 $as_echo "yes" >&6; }
33466 tst_compi_ioctl_fionbio="yes"
33470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33471 $as_echo "no" >&6; }
33472 tst_compi_ioctl_fionbio="no"
33475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33478 if test "$tst_compi_ioctl_fionbio" = "yes"; then
33479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO usage allowed" >&5
33480 $as_echo_n "checking if ioctl FIONBIO usage allowed... " >&6; }
33481 if test "x$curl_disallow_ioctl_fionbio" != "xyes"; then
33482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33483 $as_echo "yes" >&6; }
33484 tst_allow_ioctl_fionbio="yes"
33486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33487 $as_echo "no" >&6; }
33488 tst_allow_ioctl_fionbio="no"
33492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl FIONBIO might be used" >&5
33493 $as_echo_n "checking if ioctl FIONBIO might be used... " >&6; }
33494 if test "$tst_compi_ioctl_fionbio" = "yes" &&
33495 test "$tst_allow_ioctl_fionbio" = "yes"; then
33496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33497 $as_echo "yes" >&6; }
33499 cat >>confdefs.h <<_ACEOF
33500 #define HAVE_IOCTL_FIONBIO 1
33503 ac_cv_func_ioctl_fionbio="yes"
33505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33506 $as_echo "no" >&6; }
33507 ac_cv_func_ioctl_fionbio="no"
33512 tst_compi_ioctl_siocgifaddr="unknown"
33513 tst_allow_ioctl_siocgifaddr="unknown"
33515 if test "$ac_cv_func_ioctl" = "yes"; then
33516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR is compilable" >&5
33517 $as_echo_n "checking if ioctl SIOCGIFADDR is compilable... " >&6; }
33518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33519 /* end confdefs.h. */
33522 $curl_includes_stropts
33523 #include <net/if.h>
33529 if(0 != ioctl(0, SIOCGIFADDR, &ifr))
33537 if ac_fn_c_try_compile "$LINENO"; then :
33539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33540 $as_echo "yes" >&6; }
33541 tst_compi_ioctl_siocgifaddr="yes"
33545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33546 $as_echo "no" >&6; }
33547 tst_compi_ioctl_siocgifaddr="no"
33550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33553 if test "$tst_compi_ioctl_siocgifaddr" = "yes"; then
33554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR usage allowed" >&5
33555 $as_echo_n "checking if ioctl SIOCGIFADDR usage allowed... " >&6; }
33556 if test "x$curl_disallow_ioctl_siocgifaddr" != "xyes"; then
33557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33558 $as_echo "yes" >&6; }
33559 tst_allow_ioctl_siocgifaddr="yes"
33561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33562 $as_echo "no" >&6; }
33563 tst_allow_ioctl_siocgifaddr="no"
33567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctl SIOCGIFADDR might be used" >&5
33568 $as_echo_n "checking if ioctl SIOCGIFADDR might be used... " >&6; }
33569 if test "$tst_compi_ioctl_siocgifaddr" = "yes" &&
33570 test "$tst_allow_ioctl_siocgifaddr" = "yes"; then
33571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33572 $as_echo "yes" >&6; }
33574 cat >>confdefs.h <<_ACEOF
33575 #define HAVE_IOCTL_SIOCGIFADDR 1
33578 ac_cv_func_ioctl_siocgifaddr="yes"
33580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33581 $as_echo "no" >&6; }
33582 ac_cv_func_ioctl_siocgifaddr="no"
33586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33587 $as_echo "no" >&6; }
33588 ac_cv_func_ioctl="no"
33593 tst_links_ioctlsocket="unknown"
33594 tst_proto_ioctlsocket="unknown"
33595 tst_compi_ioctlsocket="unknown"
33596 tst_allow_ioctlsocket="unknown"
33598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket can be linked" >&5
33599 $as_echo_n "checking if ioctlsocket can be linked... " >&6; }
33600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33601 /* end confdefs.h. */
33604 $curl_includes_winsock2
33609 if(0 != ioctlsocket(0, 0, 0))
33617 if ac_fn_c_try_link "$LINENO"; then :
33619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33620 $as_echo "yes" >&6; }
33621 tst_links_ioctlsocket="yes"
33625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33626 $as_echo "no" >&6; }
33627 tst_links_ioctlsocket="no"
33630 rm -f core conftest.err conftest.$ac_objext \
33631 conftest$ac_exeext conftest.$ac_ext
33633 if test "$tst_links_ioctlsocket" = "yes"; then
33634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is prototyped" >&5
33635 $as_echo_n "checking if ioctlsocket is prototyped... " >&6; }
33636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33637 /* end confdefs.h. */
33639 $curl_includes_winsock2
33642 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33643 $EGREP "ioctlsocket" >/dev/null 2>&1; then :
33645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33646 $as_echo "yes" >&6; }
33647 tst_proto_ioctlsocket="yes"
33651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33652 $as_echo "no" >&6; }
33653 tst_proto_ioctlsocket="no"
33660 if test "$tst_proto_ioctlsocket" = "yes"; then
33661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket is compilable" >&5
33662 $as_echo_n "checking if ioctlsocket is compilable... " >&6; }
33663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33664 /* end confdefs.h. */
33667 $curl_includes_winsock2
33672 if(0 != ioctlsocket(0, 0, 0))
33680 if ac_fn_c_try_compile "$LINENO"; then :
33682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33683 $as_echo "yes" >&6; }
33684 tst_compi_ioctlsocket="yes"
33688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33689 $as_echo "no" >&6; }
33690 tst_compi_ioctlsocket="no"
33693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33696 if test "$tst_compi_ioctlsocket" = "yes"; then
33697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket usage allowed" >&5
33698 $as_echo_n "checking if ioctlsocket usage allowed... " >&6; }
33699 if test "x$curl_disallow_ioctlsocket" != "xyes"; then
33700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33701 $as_echo "yes" >&6; }
33702 tst_allow_ioctlsocket="yes"
33704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33705 $as_echo "no" >&6; }
33706 tst_allow_ioctlsocket="no"
33710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket might be used" >&5
33711 $as_echo_n "checking if ioctlsocket might be used... " >&6; }
33712 if test "$tst_links_ioctlsocket" = "yes" &&
33713 test "$tst_proto_ioctlsocket" = "yes" &&
33714 test "$tst_compi_ioctlsocket" = "yes" &&
33715 test "$tst_allow_ioctlsocket" = "yes"; then
33716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33717 $as_echo "yes" >&6; }
33719 cat >>confdefs.h <<_ACEOF
33720 #define HAVE_IOCTLSOCKET 1
33723 ac_cv_func_ioctlsocket="yes"
33726 tst_compi_ioctlsocket_fionbio="unknown"
33727 tst_allow_ioctlsocket_fionbio="unknown"
33729 if test "$ac_cv_func_ioctlsocket" = "yes"; then
33730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO is compilable" >&5
33731 $as_echo_n "checking if ioctlsocket FIONBIO is compilable... " >&6; }
33732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33733 /* end confdefs.h. */
33736 $curl_includes_winsock2
33742 if(0 != ioctlsocket(0, FIONBIO, &flags))
33750 if ac_fn_c_try_compile "$LINENO"; then :
33752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33753 $as_echo "yes" >&6; }
33754 tst_compi_ioctlsocket_fionbio="yes"
33758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33759 $as_echo "no" >&6; }
33760 tst_compi_ioctlsocket_fionbio="no"
33763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33766 if test "$tst_compi_ioctlsocket_fionbio" = "yes"; then
33767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO usage allowed" >&5
33768 $as_echo_n "checking if ioctlsocket FIONBIO usage allowed... " >&6; }
33769 if test "x$curl_disallow_ioctlsocket_fionbio" != "xyes"; then
33770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33771 $as_echo "yes" >&6; }
33772 tst_allow_ioctlsocket_fionbio="yes"
33774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33775 $as_echo "no" >&6; }
33776 tst_allow_ioctlsocket_fionbio="no"
33780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ioctlsocket FIONBIO might be used" >&5
33781 $as_echo_n "checking if ioctlsocket FIONBIO might be used... " >&6; }
33782 if test "$tst_compi_ioctlsocket_fionbio" = "yes" &&
33783 test "$tst_allow_ioctlsocket_fionbio" = "yes"; then
33784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33785 $as_echo "yes" >&6; }
33787 cat >>confdefs.h <<_ACEOF
33788 #define HAVE_IOCTLSOCKET_FIONBIO 1
33791 ac_cv_func_ioctlsocket_fionbio="yes"
33793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33794 $as_echo "no" >&6; }
33795 ac_cv_func_ioctlsocket_fionbio="no"
33799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33800 $as_echo "no" >&6; }
33801 ac_cv_func_ioctlsocket="no"
33806 tst_links_ioctlsocket_camel="unknown"
33807 tst_proto_ioctlsocket_camel="unknown"
33808 tst_compi_ioctlsocket_camel="unknown"
33809 tst_allow_ioctlsocket_camel="unknown"
33811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket can be linked" >&5
33812 $as_echo_n "checking if IoctlSocket can be linked... " >&6; }
33813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33814 /* end confdefs.h. */
33817 #define IoctlSocket innocuous_IoctlSocket
33819 # include <limits.h>
33821 # include <assert.h>
33827 char IoctlSocket ();
33828 #if defined __stub_IoctlSocket || defined __stub___IoctlSocket
33834 return IoctlSocket ();
33840 if ac_fn_c_try_link "$LINENO"; then :
33842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33843 $as_echo "yes" >&6; }
33844 tst_links_ioctlsocket_camel="yes"
33848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33849 $as_echo "no" >&6; }
33850 tst_links_ioctlsocket_camel="no"
33853 rm -f core conftest.err conftest.$ac_objext \
33854 conftest$ac_exeext conftest.$ac_ext
33856 if test "$tst_links_ioctlsocket_camel" = "yes"; then
33857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is prototyped" >&5
33858 $as_echo_n "checking if IoctlSocket is prototyped... " >&6; }
33859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33860 /* end confdefs.h. */
33862 $curl_includes_stropts
33865 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
33866 $EGREP "IoctlSocket" >/dev/null 2>&1; then :
33868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33869 $as_echo "yes" >&6; }
33870 tst_proto_ioctlsocket_camel="yes"
33874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33875 $as_echo "no" >&6; }
33876 tst_proto_ioctlsocket_camel="no"
33883 if test "$tst_proto_ioctlsocket_camel" = "yes"; then
33884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket is compilable" >&5
33885 $as_echo_n "checking if IoctlSocket is compilable... " >&6; }
33886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33887 /* end confdefs.h. */
33890 $curl_includes_stropts
33895 if(0 != IoctlSocket(0, 0, 0))
33903 if ac_fn_c_try_compile "$LINENO"; then :
33905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33906 $as_echo "yes" >&6; }
33907 tst_compi_ioctlsocket_camel="yes"
33911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33912 $as_echo "no" >&6; }
33913 tst_compi_ioctlsocket_camel="no"
33916 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33919 if test "$tst_compi_ioctlsocket_camel" = "yes"; then
33920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket usage allowed" >&5
33921 $as_echo_n "checking if IoctlSocket usage allowed... " >&6; }
33922 if test "x$curl_disallow_ioctlsocket_camel" != "xyes"; then
33923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33924 $as_echo "yes" >&6; }
33925 tst_allow_ioctlsocket_camel="yes"
33927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33928 $as_echo "no" >&6; }
33929 tst_allow_ioctlsocket_camel="no"
33933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket might be used" >&5
33934 $as_echo_n "checking if IoctlSocket might be used... " >&6; }
33935 if test "$tst_links_ioctlsocket_camel" = "yes" &&
33936 test "$tst_proto_ioctlsocket_camel" = "yes" &&
33937 test "$tst_compi_ioctlsocket_camel" = "yes" &&
33938 test "$tst_allow_ioctlsocket_camel" = "yes"; then
33939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33940 $as_echo "yes" >&6; }
33942 cat >>confdefs.h <<_ACEOF
33943 #define HAVE_IOCTLSOCKET_CAMEL 1
33946 ac_cv_func_ioctlsocket_camel="yes"
33949 tst_compi_ioctlsocket_camel_fionbio="unknown"
33950 tst_allow_ioctlsocket_camel_fionbio="unknown"
33952 if test "$ac_cv_func_ioctlsocket_camel" = "yes"; then
33953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO is compilable" >&5
33954 $as_echo_n "checking if IoctlSocket FIONBIO is compilable... " >&6; }
33955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
33956 /* end confdefs.h. */
33959 $curl_includes_stropts
33965 if(0 != ioctlsocket(0, FIONBIO, &flags))
33973 if ac_fn_c_try_compile "$LINENO"; then :
33975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33976 $as_echo "yes" >&6; }
33977 tst_compi_ioctlsocket_camel_fionbio="yes"
33981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33982 $as_echo "no" >&6; }
33983 tst_compi_ioctlsocket_camel_fionbio="no"
33986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
33989 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes"; then
33990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO usage allowed" >&5
33991 $as_echo_n "checking if IoctlSocket FIONBIO usage allowed... " >&6; }
33992 if test "x$curl_disallow_ioctlsocket_camel_fionbio" != "xyes"; then
33993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
33994 $as_echo "yes" >&6; }
33995 tst_allow_ioctlsocket_camel_fionbio="yes"
33997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33998 $as_echo "no" >&6; }
33999 tst_allow_ioctlsocket_camel_fionbio="no"
34003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if IoctlSocket FIONBIO might be used" >&5
34004 $as_echo_n "checking if IoctlSocket FIONBIO might be used... " >&6; }
34005 if test "$tst_compi_ioctlsocket_camel_fionbio" = "yes" &&
34006 test "$tst_allow_ioctlsocket_camel_fionbio" = "yes"; then
34007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34008 $as_echo "yes" >&6; }
34010 cat >>confdefs.h <<_ACEOF
34011 #define HAVE_IOCTLSOCKET_CAMEL_FIONBIO 1
34014 ac_cv_func_ioctlsocket_camel_fionbio="yes"
34016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34017 $as_echo "no" >&6; }
34018 ac_cv_func_ioctlsocket_camel_fionbio="no"
34022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34023 $as_echo "no" >&6; }
34024 ac_cv_func_ioctlsocket_camel="no"
34029 tst_links_localtime_r="unknown"
34030 tst_proto_localtime_r="unknown"
34031 tst_compi_localtime_r="unknown"
34032 tst_works_localtime_r="unknown"
34033 tst_allow_localtime_r="unknown"
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r can be linked" >&5
34036 $as_echo_n "checking if localtime_r can be linked... " >&6; }
34037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34038 /* end confdefs.h. */
34041 #define localtime_r innocuous_localtime_r
34043 # include <limits.h>
34045 # include <assert.h>
34051 char localtime_r ();
34052 #if defined __stub_localtime_r || defined __stub___localtime_r
34058 return localtime_r ();
34064 if ac_fn_c_try_link "$LINENO"; then :
34066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34067 $as_echo "yes" >&6; }
34068 tst_links_localtime_r="yes"
34072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34073 $as_echo "no" >&6; }
34074 tst_links_localtime_r="no"
34077 rm -f core conftest.err conftest.$ac_objext \
34078 conftest$ac_exeext conftest.$ac_ext
34080 if test "$tst_links_localtime_r" = "yes"; then
34081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is prototyped" >&5
34082 $as_echo_n "checking if localtime_r is prototyped... " >&6; }
34083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34084 /* end confdefs.h. */
34086 $curl_includes_time
34089 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34090 $EGREP "localtime_r" >/dev/null 2>&1; then :
34092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34093 $as_echo "yes" >&6; }
34094 tst_proto_localtime_r="yes"
34098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34099 $as_echo "no" >&6; }
34100 tst_proto_localtime_r="no"
34107 if test "$tst_proto_localtime_r" = "yes"; then
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r is compilable" >&5
34109 $as_echo_n "checking if localtime_r is compilable... " >&6; }
34110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34111 /* end confdefs.h. */
34114 $curl_includes_time
34119 if(0 != localtime_r(0, 0))
34127 if ac_fn_c_try_compile "$LINENO"; then :
34129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34130 $as_echo "yes" >&6; }
34131 tst_compi_localtime_r="yes"
34135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34136 $as_echo "no" >&6; }
34137 tst_compi_localtime_r="no"
34140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34143 if test "x$cross_compiling" != "xyes" &&
34144 test "$tst_compi_localtime_r" = "yes"; then
34145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r seems to work" >&5
34146 $as_echo_n "checking if localtime_r seems to work... " >&6; }
34147 if test "$cross_compiling" = yes; then :
34148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34150 as_fn_error $? "cannot run test program while cross compiling
34151 See \`config.log' for more details" "$LINENO" 5; }
34153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34154 /* end confdefs.h. */
34157 $curl_includes_stdlib
34158 $curl_includes_time
34163 time_t clock = 1170352587;
34164 struct tm *tmp = 0;
34166 tmp = localtime_r(&clock, &result);
34177 if ac_fn_c_try_run "$LINENO"; then :
34179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34180 $as_echo "yes" >&6; }
34181 tst_works_localtime_r="yes"
34185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34186 $as_echo "no" >&6; }
34187 tst_works_localtime_r="no"
34190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34191 conftest.$ac_objext conftest.beam conftest.$ac_ext
34196 if test "$tst_compi_localtime_r" = "yes" &&
34197 test "$tst_works_localtime_r" != "no"; then
34198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r usage allowed" >&5
34199 $as_echo_n "checking if localtime_r usage allowed... " >&6; }
34200 if test "x$curl_disallow_localtime_r" != "xyes"; then
34201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34202 $as_echo "yes" >&6; }
34203 tst_allow_localtime_r="yes"
34205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34206 $as_echo "no" >&6; }
34207 tst_allow_localtime_r="no"
34211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if localtime_r might be used" >&5
34212 $as_echo_n "checking if localtime_r might be used... " >&6; }
34213 if test "$tst_links_localtime_r" = "yes" &&
34214 test "$tst_proto_localtime_r" = "yes" &&
34215 test "$tst_compi_localtime_r" = "yes" &&
34216 test "$tst_allow_localtime_r" = "yes" &&
34217 test "$tst_works_localtime_r" != "no"; then
34218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34219 $as_echo "yes" >&6; }
34221 cat >>confdefs.h <<_ACEOF
34222 #define HAVE_LOCALTIME_R 1
34225 ac_cv_func_localtime_r="yes"
34227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34228 $as_echo "no" >&6; }
34229 ac_cv_func_localtime_r="no"
34234 tst_links_memrchr="unknown"
34235 tst_macro_memrchr="unknown"
34236 tst_proto_memrchr="unknown"
34237 tst_compi_memrchr="unknown"
34238 tst_allow_memrchr="unknown"
34240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr can be linked" >&5
34241 $as_echo_n "checking if memrchr can be linked... " >&6; }
34242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34243 /* end confdefs.h. */
34246 #define memrchr innocuous_memrchr
34248 # include <limits.h>
34250 # include <assert.h>
34257 #if defined __stub_memrchr || defined __stub___memrchr
34269 if ac_fn_c_try_link "$LINENO"; then :
34271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34272 $as_echo "yes" >&6; }
34273 tst_links_memrchr="yes"
34277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34278 $as_echo "no" >&6; }
34279 tst_links_memrchr="no"
34282 rm -f core conftest.err conftest.$ac_objext \
34283 conftest$ac_exeext conftest.$ac_ext
34285 if test "$tst_links_memrchr" = "no"; then
34286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr seems a macro" >&5
34287 $as_echo_n "checking if memrchr seems a macro... " >&6; }
34288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34289 /* end confdefs.h. */
34292 $curl_includes_string
34297 if(0 != memrchr(0, 0, 0))
34305 if ac_fn_c_try_link "$LINENO"; then :
34307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34308 $as_echo "yes" >&6; }
34309 tst_macro_memrchr="yes"
34313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34314 $as_echo "no" >&6; }
34315 tst_macro_memrchr="no"
34318 rm -f core conftest.err conftest.$ac_objext \
34319 conftest$ac_exeext conftest.$ac_ext
34322 if test "$tst_links_memrchr" = "yes"; then
34323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is prototyped" >&5
34324 $as_echo_n "checking if memrchr is prototyped... " >&6; }
34325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34326 /* end confdefs.h. */
34328 $curl_includes_string
34331 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34332 $EGREP "memrchr" >/dev/null 2>&1; then :
34334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34335 $as_echo "yes" >&6; }
34336 tst_proto_memrchr="yes"
34340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34341 $as_echo "no" >&6; }
34342 tst_proto_memrchr="no"
34349 if test "$tst_proto_memrchr" = "yes" ||
34350 test "$tst_macro_memrchr" = "yes"; then
34351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr is compilable" >&5
34352 $as_echo_n "checking if memrchr is compilable... " >&6; }
34353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34354 /* end confdefs.h. */
34357 $curl_includes_string
34362 if(0 != memrchr(0, 0, 0))
34370 if ac_fn_c_try_compile "$LINENO"; then :
34372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34373 $as_echo "yes" >&6; }
34374 tst_compi_memrchr="yes"
34378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34379 $as_echo "no" >&6; }
34380 tst_compi_memrchr="no"
34383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34386 if test "$tst_compi_memrchr" = "yes"; then
34387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr usage allowed" >&5
34388 $as_echo_n "checking if memrchr usage allowed... " >&6; }
34389 if test "x$curl_disallow_memrchr" != "xyes"; then
34390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34391 $as_echo "yes" >&6; }
34392 tst_allow_memrchr="yes"
34394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34395 $as_echo "no" >&6; }
34396 tst_allow_memrchr="no"
34400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if memrchr might be used" >&5
34401 $as_echo_n "checking if memrchr might be used... " >&6; }
34402 if (test "$tst_proto_memrchr" = "yes" ||
34403 test "$tst_macro_memrchr" = "yes") &&
34404 test "$tst_compi_memrchr" = "yes" &&
34405 test "$tst_allow_memrchr" = "yes"; then
34406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34407 $as_echo "yes" >&6; }
34409 cat >>confdefs.h <<_ACEOF
34410 #define HAVE_MEMRCHR 1
34413 ac_cv_func_memrchr="yes"
34415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34416 $as_echo "no" >&6; }
34417 ac_cv_func_memrchr="no"
34422 tst_links_poll="unknown"
34423 tst_proto_poll="unknown"
34424 tst_compi_poll="unknown"
34425 tst_works_poll="unknown"
34426 tst_allow_poll="unknown"
34429 darwin[123456789].*|darwin10.*|darwin11.*|darwin12.*|interix*)
34430 curl_disallow_poll="yes"
34434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll can be linked" >&5
34435 $as_echo_n "checking if poll can be linked... " >&6; }
34436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34437 /* end confdefs.h. */
34440 $curl_includes_poll
34445 if(0 != poll(0, 0, 0))
34453 if ac_fn_c_try_link "$LINENO"; then :
34455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34456 $as_echo "yes" >&6; }
34457 tst_links_poll="yes"
34461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34462 $as_echo "no" >&6; }
34463 tst_links_poll="no"
34466 rm -f core conftest.err conftest.$ac_objext \
34467 conftest$ac_exeext conftest.$ac_ext
34469 if test "$tst_links_poll" = "yes"; then
34470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is prototyped" >&5
34471 $as_echo_n "checking if poll is prototyped... " >&6; }
34472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34473 /* end confdefs.h. */
34475 $curl_includes_poll
34478 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34479 $EGREP "poll" >/dev/null 2>&1; then :
34481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34482 $as_echo "yes" >&6; }
34483 tst_proto_poll="yes"
34487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34488 $as_echo "no" >&6; }
34489 tst_proto_poll="no"
34496 if test "$tst_proto_poll" = "yes"; then
34497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll is compilable" >&5
34498 $as_echo_n "checking if poll is compilable... " >&6; }
34499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34500 /* end confdefs.h. */
34503 $curl_includes_poll
34508 if(0 != poll(0, 0, 0))
34516 if ac_fn_c_try_compile "$LINENO"; then :
34518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34519 $as_echo "yes" >&6; }
34520 tst_compi_poll="yes"
34524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34525 $as_echo "no" >&6; }
34526 tst_compi_poll="no"
34529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34532 if test "x$cross_compiling" != "xyes" &&
34533 test "$tst_compi_poll" = "yes"; then
34534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll seems to work" >&5
34535 $as_echo_n "checking if poll seems to work... " >&6; }
34536 if test "$cross_compiling" = yes; then :
34537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
34538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
34539 as_fn_error $? "cannot run test program while cross compiling
34540 See \`config.log' for more details" "$LINENO" 5; }
34542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34543 /* end confdefs.h. */
34546 $curl_includes_stdlib
34547 $curl_includes_poll
34552 if(0 != poll(0, 0, 10))
34553 exit(1); /* fail */
34562 if ac_fn_c_try_run "$LINENO"; then :
34564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34565 $as_echo "yes" >&6; }
34566 tst_works_poll="yes"
34570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34571 $as_echo "no" >&6; }
34572 tst_works_poll="no"
34575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
34576 conftest.$ac_objext conftest.beam conftest.$ac_ext
34581 if test "$tst_compi_poll" = "yes" &&
34582 test "$tst_works_poll" != "no"; then
34583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll usage allowed" >&5
34584 $as_echo_n "checking if poll usage allowed... " >&6; }
34585 if test "x$curl_disallow_poll" != "xyes"; then
34586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34587 $as_echo "yes" >&6; }
34588 tst_allow_poll="yes"
34590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34591 $as_echo "no" >&6; }
34592 tst_allow_poll="no"
34596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if poll might be used" >&5
34597 $as_echo_n "checking if poll might be used... " >&6; }
34598 if test "$tst_links_poll" = "yes" &&
34599 test "$tst_proto_poll" = "yes" &&
34600 test "$tst_compi_poll" = "yes" &&
34601 test "$tst_allow_poll" = "yes" &&
34602 test "$tst_works_poll" != "no"; then
34603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34604 $as_echo "yes" >&6; }
34606 cat >>confdefs.h <<_ACEOF
34607 #define HAVE_POLL 1
34611 cat >>confdefs.h <<_ACEOF
34612 #define HAVE_POLL_FINE 1
34615 ac_cv_func_poll="yes"
34617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34618 $as_echo "no" >&6; }
34619 ac_cv_func_poll="no"
34624 tst_links_setsockopt="unknown"
34625 tst_proto_setsockopt="unknown"
34626 tst_compi_setsockopt="unknown"
34627 tst_allow_setsockopt="unknown"
34629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt can be linked" >&5
34630 $as_echo_n "checking if setsockopt can be linked... " >&6; }
34631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34632 /* end confdefs.h. */
34635 $curl_includes_winsock2
34636 $curl_includes_sys_socket
34641 if(0 != setsockopt(0, 0, 0, 0, 0))
34649 if ac_fn_c_try_link "$LINENO"; then :
34651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34652 $as_echo "yes" >&6; }
34653 tst_links_setsockopt="yes"
34657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34658 $as_echo "no" >&6; }
34659 tst_links_setsockopt="no"
34662 rm -f core conftest.err conftest.$ac_objext \
34663 conftest$ac_exeext conftest.$ac_ext
34665 if test "$tst_links_setsockopt" = "yes"; then
34666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is prototyped" >&5
34667 $as_echo_n "checking if setsockopt is prototyped... " >&6; }
34668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34669 /* end confdefs.h. */
34671 $curl_includes_winsock2
34672 $curl_includes_sys_socket
34675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34676 $EGREP "setsockopt" >/dev/null 2>&1; then :
34678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34679 $as_echo "yes" >&6; }
34680 tst_proto_setsockopt="yes"
34684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34685 $as_echo "no" >&6; }
34686 tst_proto_setsockopt="no"
34693 if test "$tst_proto_setsockopt" = "yes"; then
34694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt is compilable" >&5
34695 $as_echo_n "checking if setsockopt is compilable... " >&6; }
34696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34697 /* end confdefs.h. */
34700 $curl_includes_winsock2
34701 $curl_includes_sys_socket
34706 if(0 != setsockopt(0, 0, 0, 0, 0))
34714 if ac_fn_c_try_compile "$LINENO"; then :
34716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34717 $as_echo "yes" >&6; }
34718 tst_compi_setsockopt="yes"
34722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34723 $as_echo "no" >&6; }
34724 tst_compi_setsockopt="no"
34727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34730 if test "$tst_compi_setsockopt" = "yes"; then
34731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt usage allowed" >&5
34732 $as_echo_n "checking if setsockopt usage allowed... " >&6; }
34733 if test "x$curl_disallow_setsockopt" != "xyes"; then
34734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34735 $as_echo "yes" >&6; }
34736 tst_allow_setsockopt="yes"
34738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34739 $as_echo "no" >&6; }
34740 tst_allow_setsockopt="no"
34744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt might be used" >&5
34745 $as_echo_n "checking if setsockopt might be used... " >&6; }
34746 if test "$tst_links_setsockopt" = "yes" &&
34747 test "$tst_proto_setsockopt" = "yes" &&
34748 test "$tst_compi_setsockopt" = "yes" &&
34749 test "$tst_allow_setsockopt" = "yes"; then
34750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34751 $as_echo "yes" >&6; }
34753 cat >>confdefs.h <<_ACEOF
34754 #define HAVE_SETSOCKOPT 1
34757 ac_cv_func_setsockopt="yes"
34760 tst_compi_setsockopt_so_nonblock="unknown"
34761 tst_allow_setsockopt_so_nonblock="unknown"
34763 if test "$ac_cv_func_setsockopt" = "yes"; then
34764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK is compilable" >&5
34765 $as_echo_n "checking if setsockopt SO_NONBLOCK is compilable... " >&6; }
34766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34767 /* end confdefs.h. */
34770 $curl_includes_winsock2
34771 $curl_includes_sys_socket
34776 if(0 != setsockopt(0, SOL_SOCKET, SO_NONBLOCK, 0, 0))
34784 if ac_fn_c_try_compile "$LINENO"; then :
34786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34787 $as_echo "yes" >&6; }
34788 tst_compi_setsockopt_so_nonblock="yes"
34792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34793 $as_echo "no" >&6; }
34794 tst_compi_setsockopt_so_nonblock="no"
34797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34800 if test "$tst_compi_setsockopt_so_nonblock" = "yes"; then
34801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK usage allowed" >&5
34802 $as_echo_n "checking if setsockopt SO_NONBLOCK usage allowed... " >&6; }
34803 if test "x$curl_disallow_setsockopt_so_nonblock" != "xyes"; then
34804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34805 $as_echo "yes" >&6; }
34806 tst_allow_setsockopt_so_nonblock="yes"
34808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34809 $as_echo "no" >&6; }
34810 tst_allow_setsockopt_so_nonblock="no"
34814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if setsockopt SO_NONBLOCK might be used" >&5
34815 $as_echo_n "checking if setsockopt SO_NONBLOCK might be used... " >&6; }
34816 if test "$tst_compi_setsockopt_so_nonblock" = "yes" &&
34817 test "$tst_allow_setsockopt_so_nonblock" = "yes"; then
34818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34819 $as_echo "yes" >&6; }
34821 cat >>confdefs.h <<_ACEOF
34822 #define HAVE_SETSOCKOPT_SO_NONBLOCK 1
34825 ac_cv_func_setsockopt_so_nonblock="yes"
34827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34828 $as_echo "no" >&6; }
34829 ac_cv_func_setsockopt_so_nonblock="no"
34833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34834 $as_echo "no" >&6; }
34835 ac_cv_func_setsockopt="no"
34839 curl_includes_signal="\
34840 /* includes start */
34841 #ifdef HAVE_SYS_TYPES_H
34842 # include <sys/types.h>
34844 #ifdef HAVE_SIGNAL_H
34845 # include <signal.h>
34847 /* includes end */"
34848 for ac_header in sys/types.h signal.h
34850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
34851 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_signal
34853 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
34854 cat >>confdefs.h <<_ACEOF
34855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
34865 tst_links_sigaction="unknown"
34866 tst_proto_sigaction="unknown"
34867 tst_compi_sigaction="unknown"
34868 tst_allow_sigaction="unknown"
34870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction can be linked" >&5
34871 $as_echo_n "checking if sigaction can be linked... " >&6; }
34872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34873 /* end confdefs.h. */
34876 #define sigaction innocuous_sigaction
34878 # include <limits.h>
34880 # include <assert.h>
34887 #if defined __stub_sigaction || defined __stub___sigaction
34893 return sigaction ();
34899 if ac_fn_c_try_link "$LINENO"; then :
34901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34902 $as_echo "yes" >&6; }
34903 tst_links_sigaction="yes"
34907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34908 $as_echo "no" >&6; }
34909 tst_links_sigaction="no"
34912 rm -f core conftest.err conftest.$ac_objext \
34913 conftest$ac_exeext conftest.$ac_ext
34915 if test "$tst_links_sigaction" = "yes"; then
34916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is prototyped" >&5
34917 $as_echo_n "checking if sigaction is prototyped... " >&6; }
34918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34919 /* end confdefs.h. */
34921 $curl_includes_signal
34924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
34925 $EGREP "sigaction" >/dev/null 2>&1; then :
34927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34928 $as_echo "yes" >&6; }
34929 tst_proto_sigaction="yes"
34933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34934 $as_echo "no" >&6; }
34935 tst_proto_sigaction="no"
34942 if test "$tst_proto_sigaction" = "yes"; then
34943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction is compilable" >&5
34944 $as_echo_n "checking if sigaction is compilable... " >&6; }
34945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
34946 /* end confdefs.h. */
34949 $curl_includes_signal
34954 if(0 != sigaction(0, 0, 0))
34962 if ac_fn_c_try_compile "$LINENO"; then :
34964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34965 $as_echo "yes" >&6; }
34966 tst_compi_sigaction="yes"
34970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34971 $as_echo "no" >&6; }
34972 tst_compi_sigaction="no"
34975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
34978 if test "$tst_compi_sigaction" = "yes"; then
34979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction usage allowed" >&5
34980 $as_echo_n "checking if sigaction usage allowed... " >&6; }
34981 if test "x$curl_disallow_sigaction" != "xyes"; then
34982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34983 $as_echo "yes" >&6; }
34984 tst_allow_sigaction="yes"
34986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34987 $as_echo "no" >&6; }
34988 tst_allow_sigaction="no"
34992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigaction might be used" >&5
34993 $as_echo_n "checking if sigaction might be used... " >&6; }
34994 if test "$tst_links_sigaction" = "yes" &&
34995 test "$tst_proto_sigaction" = "yes" &&
34996 test "$tst_compi_sigaction" = "yes" &&
34997 test "$tst_allow_sigaction" = "yes"; then
34998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
34999 $as_echo "yes" >&6; }
35001 cat >>confdefs.h <<_ACEOF
35002 #define HAVE_SIGACTION 1
35005 ac_cv_func_sigaction="yes"
35007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35008 $as_echo "no" >&6; }
35009 ac_cv_func_sigaction="no"
35014 tst_links_siginterrupt="unknown"
35015 tst_proto_siginterrupt="unknown"
35016 tst_compi_siginterrupt="unknown"
35017 tst_allow_siginterrupt="unknown"
35019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt can be linked" >&5
35020 $as_echo_n "checking if siginterrupt can be linked... " >&6; }
35021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35022 /* end confdefs.h. */
35025 #define siginterrupt innocuous_siginterrupt
35027 # include <limits.h>
35029 # include <assert.h>
35031 #undef siginterrupt
35035 char siginterrupt ();
35036 #if defined __stub_siginterrupt || defined __stub___siginterrupt
35042 return siginterrupt ();
35048 if ac_fn_c_try_link "$LINENO"; then :
35050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35051 $as_echo "yes" >&6; }
35052 tst_links_siginterrupt="yes"
35056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35057 $as_echo "no" >&6; }
35058 tst_links_siginterrupt="no"
35061 rm -f core conftest.err conftest.$ac_objext \
35062 conftest$ac_exeext conftest.$ac_ext
35064 if test "$tst_links_siginterrupt" = "yes"; then
35065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is prototyped" >&5
35066 $as_echo_n "checking if siginterrupt is prototyped... " >&6; }
35067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35068 /* end confdefs.h. */
35070 $curl_includes_signal
35073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35074 $EGREP "siginterrupt" >/dev/null 2>&1; then :
35076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35077 $as_echo "yes" >&6; }
35078 tst_proto_siginterrupt="yes"
35082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35083 $as_echo "no" >&6; }
35084 tst_proto_siginterrupt="no"
35091 if test "$tst_proto_siginterrupt" = "yes"; then
35092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt is compilable" >&5
35093 $as_echo_n "checking if siginterrupt is compilable... " >&6; }
35094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35095 /* end confdefs.h. */
35098 $curl_includes_signal
35103 if(0 != siginterrupt(0, 0))
35111 if ac_fn_c_try_compile "$LINENO"; then :
35113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35114 $as_echo "yes" >&6; }
35115 tst_compi_siginterrupt="yes"
35119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35120 $as_echo "no" >&6; }
35121 tst_compi_siginterrupt="no"
35124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35127 if test "$tst_compi_siginterrupt" = "yes"; then
35128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt usage allowed" >&5
35129 $as_echo_n "checking if siginterrupt usage allowed... " >&6; }
35130 if test "x$curl_disallow_siginterrupt" != "xyes"; then
35131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35132 $as_echo "yes" >&6; }
35133 tst_allow_siginterrupt="yes"
35135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35136 $as_echo "no" >&6; }
35137 tst_allow_siginterrupt="no"
35141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if siginterrupt might be used" >&5
35142 $as_echo_n "checking if siginterrupt might be used... " >&6; }
35143 if test "$tst_links_siginterrupt" = "yes" &&
35144 test "$tst_proto_siginterrupt" = "yes" &&
35145 test "$tst_compi_siginterrupt" = "yes" &&
35146 test "$tst_allow_siginterrupt" = "yes"; then
35147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35148 $as_echo "yes" >&6; }
35150 cat >>confdefs.h <<_ACEOF
35151 #define HAVE_SIGINTERRUPT 1
35154 ac_cv_func_siginterrupt="yes"
35156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35157 $as_echo "no" >&6; }
35158 ac_cv_func_siginterrupt="no"
35163 tst_links_signal="unknown"
35164 tst_proto_signal="unknown"
35165 tst_compi_signal="unknown"
35166 tst_allow_signal="unknown"
35168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal can be linked" >&5
35169 $as_echo_n "checking if signal can be linked... " >&6; }
35170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35171 /* end confdefs.h. */
35174 #define signal innocuous_signal
35176 # include <limits.h>
35178 # include <assert.h>
35185 #if defined __stub_signal || defined __stub___signal
35197 if ac_fn_c_try_link "$LINENO"; then :
35199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35200 $as_echo "yes" >&6; }
35201 tst_links_signal="yes"
35205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35206 $as_echo "no" >&6; }
35207 tst_links_signal="no"
35210 rm -f core conftest.err conftest.$ac_objext \
35211 conftest$ac_exeext conftest.$ac_ext
35213 if test "$tst_links_signal" = "yes"; then
35214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is prototyped" >&5
35215 $as_echo_n "checking if signal is prototyped... " >&6; }
35216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35217 /* end confdefs.h. */
35219 $curl_includes_signal
35222 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35223 $EGREP "signal" >/dev/null 2>&1; then :
35225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35226 $as_echo "yes" >&6; }
35227 tst_proto_signal="yes"
35231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35232 $as_echo "no" >&6; }
35233 tst_proto_signal="no"
35240 if test "$tst_proto_signal" = "yes"; then
35241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal is compilable" >&5
35242 $as_echo_n "checking if signal is compilable... " >&6; }
35243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35244 /* end confdefs.h. */
35247 $curl_includes_signal
35252 if(0 != signal(0, 0))
35260 if ac_fn_c_try_compile "$LINENO"; then :
35262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35263 $as_echo "yes" >&6; }
35264 tst_compi_signal="yes"
35268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35269 $as_echo "no" >&6; }
35270 tst_compi_signal="no"
35273 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35276 if test "$tst_compi_signal" = "yes"; then
35277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal usage allowed" >&5
35278 $as_echo_n "checking if signal usage allowed... " >&6; }
35279 if test "x$curl_disallow_signal" != "xyes"; then
35280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35281 $as_echo "yes" >&6; }
35282 tst_allow_signal="yes"
35284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35285 $as_echo "no" >&6; }
35286 tst_allow_signal="no"
35290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if signal might be used" >&5
35291 $as_echo_n "checking if signal might be used... " >&6; }
35292 if test "$tst_links_signal" = "yes" &&
35293 test "$tst_proto_signal" = "yes" &&
35294 test "$tst_compi_signal" = "yes" &&
35295 test "$tst_allow_signal" = "yes"; then
35296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35297 $as_echo "yes" >&6; }
35299 cat >>confdefs.h <<_ACEOF
35300 #define HAVE_SIGNAL 1
35303 ac_cv_func_signal="yes"
35305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35306 $as_echo "no" >&6; }
35307 ac_cv_func_signal="no"
35311 curl_includes_setjmp="\
35312 /* includes start */
35313 #ifdef HAVE_SYS_TYPES_H
35314 # include <sys/types.h>
35316 #ifdef HAVE_SETJMP_H
35317 # include <setjmp.h>
35319 /* includes end */"
35320 for ac_header in sys/types.h setjmp.h
35322 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
35323 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_setjmp
35325 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
35326 cat >>confdefs.h <<_ACEOF
35327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
35337 tst_links_sigsetjmp="unknown"
35338 tst_macro_sigsetjmp="unknown"
35339 tst_proto_sigsetjmp="unknown"
35340 tst_compi_sigsetjmp="unknown"
35341 tst_allow_sigsetjmp="unknown"
35343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp can be linked" >&5
35344 $as_echo_n "checking if sigsetjmp can be linked... " >&6; }
35345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35346 /* end confdefs.h. */
35349 #define sigsetjmp innocuous_sigsetjmp
35351 # include <limits.h>
35353 # include <assert.h>
35360 #if defined __stub_sigsetjmp || defined __stub___sigsetjmp
35366 return sigsetjmp ();
35372 if ac_fn_c_try_link "$LINENO"; then :
35374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35375 $as_echo "yes" >&6; }
35376 tst_links_sigsetjmp="yes"
35380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35381 $as_echo "no" >&6; }
35382 tst_links_sigsetjmp="no"
35385 rm -f core conftest.err conftest.$ac_objext \
35386 conftest$ac_exeext conftest.$ac_ext
35388 if test "$tst_links_sigsetjmp" = "no"; then
35389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp seems a macro" >&5
35390 $as_echo_n "checking if sigsetjmp seems a macro... " >&6; }
35391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35392 /* end confdefs.h. */
35395 $curl_includes_setjmp
35401 if(0 != sigsetjmp(env, 0))
35409 if ac_fn_c_try_link "$LINENO"; then :
35411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35412 $as_echo "yes" >&6; }
35413 tst_macro_sigsetjmp="yes"
35417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35418 $as_echo "no" >&6; }
35419 tst_macro_sigsetjmp="no"
35422 rm -f core conftest.err conftest.$ac_objext \
35423 conftest$ac_exeext conftest.$ac_ext
35426 if test "$tst_links_sigsetjmp" = "yes"; then
35427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is prototyped" >&5
35428 $as_echo_n "checking if sigsetjmp is prototyped... " >&6; }
35429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35430 /* end confdefs.h. */
35432 $curl_includes_setjmp
35435 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35436 $EGREP "sigsetjmp" >/dev/null 2>&1; then :
35438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35439 $as_echo "yes" >&6; }
35440 tst_proto_sigsetjmp="yes"
35444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35445 $as_echo "no" >&6; }
35446 tst_proto_sigsetjmp="no"
35453 if test "$tst_proto_sigsetjmp" = "yes" ||
35454 test "$tst_macro_sigsetjmp" = "yes"; then
35455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp is compilable" >&5
35456 $as_echo_n "checking if sigsetjmp is compilable... " >&6; }
35457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35458 /* end confdefs.h. */
35461 $curl_includes_setjmp
35467 if(0 != sigsetjmp(env, 0))
35475 if ac_fn_c_try_compile "$LINENO"; then :
35477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35478 $as_echo "yes" >&6; }
35479 tst_compi_sigsetjmp="yes"
35483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35484 $as_echo "no" >&6; }
35485 tst_compi_sigsetjmp="no"
35488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35491 if test "$tst_compi_sigsetjmp" = "yes"; then
35492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp usage allowed" >&5
35493 $as_echo_n "checking if sigsetjmp usage allowed... " >&6; }
35494 if test "x$curl_disallow_sigsetjmp" != "xyes"; then
35495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35496 $as_echo "yes" >&6; }
35497 tst_allow_sigsetjmp="yes"
35499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35500 $as_echo "no" >&6; }
35501 tst_allow_sigsetjmp="no"
35505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if sigsetjmp might be used" >&5
35506 $as_echo_n "checking if sigsetjmp might be used... " >&6; }
35507 if (test "$tst_proto_sigsetjmp" = "yes" ||
35508 test "$tst_macro_sigsetjmp" = "yes") &&
35509 test "$tst_compi_sigsetjmp" = "yes" &&
35510 test "$tst_allow_sigsetjmp" = "yes"; then
35511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35512 $as_echo "yes" >&6; }
35514 cat >>confdefs.h <<_ACEOF
35515 #define HAVE_SIGSETJMP 1
35518 ac_cv_func_sigsetjmp="yes"
35520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35521 $as_echo "no" >&6; }
35522 ac_cv_func_sigsetjmp="no"
35527 tst_links_socket="unknown"
35528 tst_proto_socket="unknown"
35529 tst_compi_socket="unknown"
35530 tst_allow_socket="unknown"
35532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket can be linked" >&5
35533 $as_echo_n "checking if socket can be linked... " >&6; }
35534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35535 /* end confdefs.h. */
35538 $curl_includes_winsock2
35539 $curl_includes_sys_socket
35540 $curl_includes_socket
35545 if(0 != socket(0, 0, 0))
35553 if ac_fn_c_try_link "$LINENO"; then :
35555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35556 $as_echo "yes" >&6; }
35557 tst_links_socket="yes"
35561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35562 $as_echo "no" >&6; }
35563 tst_links_socket="no"
35566 rm -f core conftest.err conftest.$ac_objext \
35567 conftest$ac_exeext conftest.$ac_ext
35569 if test "$tst_links_socket" = "yes"; then
35570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is prototyped" >&5
35571 $as_echo_n "checking if socket is prototyped... " >&6; }
35572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35573 /* end confdefs.h. */
35575 $curl_includes_winsock2
35576 $curl_includes_sys_socket
35577 $curl_includes_socket
35580 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35581 $EGREP "socket" >/dev/null 2>&1; then :
35583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35584 $as_echo "yes" >&6; }
35585 tst_proto_socket="yes"
35589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35590 $as_echo "no" >&6; }
35591 tst_proto_socket="no"
35598 if test "$tst_proto_socket" = "yes"; then
35599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket is compilable" >&5
35600 $as_echo_n "checking if socket is compilable... " >&6; }
35601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35602 /* end confdefs.h. */
35605 $curl_includes_winsock2
35606 $curl_includes_sys_socket
35607 $curl_includes_socket
35612 if(0 != socket(0, 0, 0))
35620 if ac_fn_c_try_compile "$LINENO"; then :
35622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35623 $as_echo "yes" >&6; }
35624 tst_compi_socket="yes"
35628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35629 $as_echo "no" >&6; }
35630 tst_compi_socket="no"
35633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35636 if test "$tst_compi_socket" = "yes"; then
35637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket usage allowed" >&5
35638 $as_echo_n "checking if socket usage allowed... " >&6; }
35639 if test "x$curl_disallow_socket" != "xyes"; then
35640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35641 $as_echo "yes" >&6; }
35642 tst_allow_socket="yes"
35644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35645 $as_echo "no" >&6; }
35646 tst_allow_socket="no"
35650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socket might be used" >&5
35651 $as_echo_n "checking if socket might be used... " >&6; }
35652 if test "$tst_links_socket" = "yes" &&
35653 test "$tst_proto_socket" = "yes" &&
35654 test "$tst_compi_socket" = "yes" &&
35655 test "$tst_allow_socket" = "yes"; then
35656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35657 $as_echo "yes" >&6; }
35659 cat >>confdefs.h <<_ACEOF
35660 #define HAVE_SOCKET 1
35663 ac_cv_func_socket="yes"
35665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35666 $as_echo "no" >&6; }
35667 ac_cv_func_socket="no"
35672 tst_links_socketpair="unknown"
35673 tst_proto_socketpair="unknown"
35674 tst_compi_socketpair="unknown"
35675 tst_allow_socketpair="unknown"
35677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair can be linked" >&5
35678 $as_echo_n "checking if socketpair can be linked... " >&6; }
35679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35680 /* end confdefs.h. */
35683 #define socketpair innocuous_socketpair
35685 # include <limits.h>
35687 # include <assert.h>
35693 char socketpair ();
35694 #if defined __stub_socketpair || defined __stub___socketpair
35700 return socketpair ();
35706 if ac_fn_c_try_link "$LINENO"; then :
35708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35709 $as_echo "yes" >&6; }
35710 tst_links_socketpair="yes"
35714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35715 $as_echo "no" >&6; }
35716 tst_links_socketpair="no"
35719 rm -f core conftest.err conftest.$ac_objext \
35720 conftest$ac_exeext conftest.$ac_ext
35722 if test "$tst_links_socketpair" = "yes"; then
35723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is prototyped" >&5
35724 $as_echo_n "checking if socketpair is prototyped... " >&6; }
35725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35726 /* end confdefs.h. */
35728 $curl_includes_sys_socket
35729 $curl_includes_socket
35732 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35733 $EGREP "socketpair" >/dev/null 2>&1; then :
35735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35736 $as_echo "yes" >&6; }
35737 tst_proto_socketpair="yes"
35741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35742 $as_echo "no" >&6; }
35743 tst_proto_socketpair="no"
35750 if test "$tst_proto_socketpair" = "yes"; then
35751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair is compilable" >&5
35752 $as_echo_n "checking if socketpair is compilable... " >&6; }
35753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35754 /* end confdefs.h. */
35757 $curl_includes_sys_socket
35758 $curl_includes_socket
35764 if(0 != socketpair(0, 0, 0, sv))
35772 if ac_fn_c_try_compile "$LINENO"; then :
35774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35775 $as_echo "yes" >&6; }
35776 tst_compi_socketpair="yes"
35780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35781 $as_echo "no" >&6; }
35782 tst_compi_socketpair="no"
35785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35788 if test "$tst_compi_socketpair" = "yes"; then
35789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair usage allowed" >&5
35790 $as_echo_n "checking if socketpair usage allowed... " >&6; }
35791 if test "x$curl_disallow_socketpair" != "xyes"; then
35792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35793 $as_echo "yes" >&6; }
35794 tst_allow_socketpair="yes"
35796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35797 $as_echo "no" >&6; }
35798 tst_allow_socketpair="no"
35802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if socketpair might be used" >&5
35803 $as_echo_n "checking if socketpair might be used... " >&6; }
35804 if test "$tst_links_socketpair" = "yes" &&
35805 test "$tst_proto_socketpair" = "yes" &&
35806 test "$tst_compi_socketpair" = "yes" &&
35807 test "$tst_allow_socketpair" = "yes"; then
35808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35809 $as_echo "yes" >&6; }
35811 cat >>confdefs.h <<_ACEOF
35812 #define HAVE_SOCKETPAIR 1
35815 ac_cv_func_socketpair="yes"
35817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35818 $as_echo "no" >&6; }
35819 ac_cv_func_socketpair="no"
35824 tst_links_strcasecmp="unknown"
35825 tst_proto_strcasecmp="unknown"
35826 tst_compi_strcasecmp="unknown"
35827 tst_allow_strcasecmp="unknown"
35829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp can be linked" >&5
35830 $as_echo_n "checking if strcasecmp can be linked... " >&6; }
35831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35832 /* end confdefs.h. */
35835 #define strcasecmp innocuous_strcasecmp
35837 # include <limits.h>
35839 # include <assert.h>
35845 char strcasecmp ();
35846 #if defined __stub_strcasecmp || defined __stub___strcasecmp
35852 return strcasecmp ();
35858 if ac_fn_c_try_link "$LINENO"; then :
35860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35861 $as_echo "yes" >&6; }
35862 tst_links_strcasecmp="yes"
35866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35867 $as_echo "no" >&6; }
35868 tst_links_strcasecmp="no"
35871 rm -f core conftest.err conftest.$ac_objext \
35872 conftest$ac_exeext conftest.$ac_ext
35874 if test "$tst_links_strcasecmp" = "yes"; then
35875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is prototyped" >&5
35876 $as_echo_n "checking if strcasecmp is prototyped... " >&6; }
35877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35878 /* end confdefs.h. */
35880 $curl_includes_string
35883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
35884 $EGREP "strcasecmp" >/dev/null 2>&1; then :
35886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35887 $as_echo "yes" >&6; }
35888 tst_proto_strcasecmp="yes"
35892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35893 $as_echo "no" >&6; }
35894 tst_proto_strcasecmp="no"
35901 if test "$tst_proto_strcasecmp" = "yes"; then
35902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp is compilable" >&5
35903 $as_echo_n "checking if strcasecmp is compilable... " >&6; }
35904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35905 /* end confdefs.h. */
35908 $curl_includes_string
35913 if(0 != strcasecmp(0, 0))
35921 if ac_fn_c_try_compile "$LINENO"; then :
35923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35924 $as_echo "yes" >&6; }
35925 tst_compi_strcasecmp="yes"
35929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35930 $as_echo "no" >&6; }
35931 tst_compi_strcasecmp="no"
35934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
35937 if test "$tst_compi_strcasecmp" = "yes"; then
35938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp usage allowed" >&5
35939 $as_echo_n "checking if strcasecmp usage allowed... " >&6; }
35940 if test "x$curl_disallow_strcasecmp" != "xyes"; then
35941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35942 $as_echo "yes" >&6; }
35943 tst_allow_strcasecmp="yes"
35945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35946 $as_echo "no" >&6; }
35947 tst_allow_strcasecmp="no"
35951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcasecmp might be used" >&5
35952 $as_echo_n "checking if strcasecmp might be used... " >&6; }
35953 if test "$tst_links_strcasecmp" = "yes" &&
35954 test "$tst_proto_strcasecmp" = "yes" &&
35955 test "$tst_compi_strcasecmp" = "yes" &&
35956 test "$tst_allow_strcasecmp" = "yes"; then
35957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
35958 $as_echo "yes" >&6; }
35960 cat >>confdefs.h <<_ACEOF
35961 #define HAVE_STRCASECMP 1
35964 ac_cv_func_strcasecmp="yes"
35966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
35967 $as_echo "no" >&6; }
35968 ac_cv_func_strcasecmp="no"
35973 tst_links_strcmpi="unknown"
35974 tst_proto_strcmpi="unknown"
35975 tst_compi_strcmpi="unknown"
35976 tst_allow_strcmpi="unknown"
35978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi can be linked" >&5
35979 $as_echo_n "checking if strcmpi can be linked... " >&6; }
35980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
35981 /* end confdefs.h. */
35984 #define strcmpi innocuous_strcmpi
35986 # include <limits.h>
35988 # include <assert.h>
35995 #if defined __stub_strcmpi || defined __stub___strcmpi
36007 if ac_fn_c_try_link "$LINENO"; then :
36009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36010 $as_echo "yes" >&6; }
36011 tst_links_strcmpi="yes"
36015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36016 $as_echo "no" >&6; }
36017 tst_links_strcmpi="no"
36020 rm -f core conftest.err conftest.$ac_objext \
36021 conftest$ac_exeext conftest.$ac_ext
36023 if test "$tst_links_strcmpi" = "yes"; then
36024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is prototyped" >&5
36025 $as_echo_n "checking if strcmpi is prototyped... " >&6; }
36026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36027 /* end confdefs.h. */
36029 $curl_includes_string
36032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36033 $EGREP "strcmpi" >/dev/null 2>&1; then :
36035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36036 $as_echo "yes" >&6; }
36037 tst_proto_strcmpi="yes"
36041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36042 $as_echo "no" >&6; }
36043 tst_proto_strcmpi="no"
36050 if test "$tst_proto_strcmpi" = "yes"; then
36051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi is compilable" >&5
36052 $as_echo_n "checking if strcmpi is compilable... " >&6; }
36053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36054 /* end confdefs.h. */
36057 $curl_includes_string
36062 if(0 != strcmpi(0, 0))
36070 if ac_fn_c_try_compile "$LINENO"; then :
36072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36073 $as_echo "yes" >&6; }
36074 tst_compi_strcmpi="yes"
36078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36079 $as_echo "no" >&6; }
36080 tst_compi_strcmpi="no"
36083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36086 if test "$tst_compi_strcmpi" = "yes"; then
36087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi usage allowed" >&5
36088 $as_echo_n "checking if strcmpi usage allowed... " >&6; }
36089 if test "x$curl_disallow_strcmpi" != "xyes"; then
36090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36091 $as_echo "yes" >&6; }
36092 tst_allow_strcmpi="yes"
36094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36095 $as_echo "no" >&6; }
36096 tst_allow_strcmpi="no"
36100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strcmpi might be used" >&5
36101 $as_echo_n "checking if strcmpi might be used... " >&6; }
36102 if test "$tst_links_strcmpi" = "yes" &&
36103 test "$tst_proto_strcmpi" = "yes" &&
36104 test "$tst_compi_strcmpi" = "yes" &&
36105 test "$tst_allow_strcmpi" = "yes"; then
36106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36107 $as_echo "yes" >&6; }
36109 cat >>confdefs.h <<_ACEOF
36110 #define HAVE_STRCMPI 1
36113 ac_cv_func_strcmpi="yes"
36115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36116 $as_echo "no" >&6; }
36117 ac_cv_func_strcmpi="no"
36122 tst_links_strdup="unknown"
36123 tst_proto_strdup="unknown"
36124 tst_compi_strdup="unknown"
36125 tst_allow_strdup="unknown"
36127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup can be linked" >&5
36128 $as_echo_n "checking if strdup can be linked... " >&6; }
36129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36130 /* end confdefs.h. */
36133 #define strdup innocuous_strdup
36135 # include <limits.h>
36137 # include <assert.h>
36144 #if defined __stub_strdup || defined __stub___strdup
36156 if ac_fn_c_try_link "$LINENO"; then :
36158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36159 $as_echo "yes" >&6; }
36160 tst_links_strdup="yes"
36164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36165 $as_echo "no" >&6; }
36166 tst_links_strdup="no"
36169 rm -f core conftest.err conftest.$ac_objext \
36170 conftest$ac_exeext conftest.$ac_ext
36172 if test "$tst_links_strdup" = "yes"; then
36173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is prototyped" >&5
36174 $as_echo_n "checking if strdup is prototyped... " >&6; }
36175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36176 /* end confdefs.h. */
36178 $curl_includes_string
36181 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36182 $EGREP "strdup" >/dev/null 2>&1; then :
36184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36185 $as_echo "yes" >&6; }
36186 tst_proto_strdup="yes"
36190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36191 $as_echo "no" >&6; }
36192 tst_proto_strdup="no"
36199 if test "$tst_proto_strdup" = "yes"; then
36200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup is compilable" >&5
36201 $as_echo_n "checking if strdup is compilable... " >&6; }
36202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36203 /* end confdefs.h. */
36206 $curl_includes_string
36219 if ac_fn_c_try_compile "$LINENO"; then :
36221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36222 $as_echo "yes" >&6; }
36223 tst_compi_strdup="yes"
36227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36228 $as_echo "no" >&6; }
36229 tst_compi_strdup="no"
36232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36235 if test "$tst_compi_strdup" = "yes"; then
36236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup usage allowed" >&5
36237 $as_echo_n "checking if strdup usage allowed... " >&6; }
36238 if test "x$curl_disallow_strdup" != "xyes"; then
36239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36240 $as_echo "yes" >&6; }
36241 tst_allow_strdup="yes"
36243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36244 $as_echo "no" >&6; }
36245 tst_allow_strdup="no"
36249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strdup might be used" >&5
36250 $as_echo_n "checking if strdup might be used... " >&6; }
36251 if test "$tst_links_strdup" = "yes" &&
36252 test "$tst_proto_strdup" = "yes" &&
36253 test "$tst_compi_strdup" = "yes" &&
36254 test "$tst_allow_strdup" = "yes"; then
36255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36256 $as_echo "yes" >&6; }
36258 cat >>confdefs.h <<_ACEOF
36259 #define HAVE_STRDUP 1
36262 ac_cv_func_strdup="yes"
36264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36265 $as_echo "no" >&6; }
36266 ac_cv_func_strdup="no"
36271 tst_links_strerror_r="unknown"
36272 tst_proto_strerror_r="unknown"
36273 tst_compi_strerror_r="unknown"
36274 tst_glibc_strerror_r="unknown"
36275 tst_posix_strerror_r="unknown"
36276 tst_allow_strerror_r="unknown"
36277 tst_works_glibc_strerror_r="unknown"
36278 tst_works_posix_strerror_r="unknown"
36279 tst_glibc_strerror_r_type_arg3="unknown"
36280 tst_posix_strerror_r_type_arg3="unknown"
36282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r can be linked" >&5
36283 $as_echo_n "checking if strerror_r can be linked... " >&6; }
36284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36285 /* end confdefs.h. */
36288 #define strerror_r innocuous_strerror_r
36290 # include <limits.h>
36292 # include <assert.h>
36298 char strerror_r ();
36299 #if defined __stub_strerror_r || defined __stub___strerror_r
36305 return strerror_r ();
36311 if ac_fn_c_try_link "$LINENO"; then :
36313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36314 $as_echo "yes" >&6; }
36315 tst_links_strerror_r="yes"
36319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36320 $as_echo "no" >&6; }
36321 tst_links_strerror_r="no"
36324 rm -f core conftest.err conftest.$ac_objext \
36325 conftest$ac_exeext conftest.$ac_ext
36327 if test "$tst_links_strerror_r" = "yes"; then
36328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is prototyped" >&5
36329 $as_echo_n "checking if strerror_r is prototyped... " >&6; }
36330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36331 /* end confdefs.h. */
36333 $curl_includes_string
36336 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36337 $EGREP "strerror_r" >/dev/null 2>&1; then :
36339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36340 $as_echo "yes" >&6; }
36341 tst_proto_strerror_r="yes"
36345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36346 $as_echo "no" >&6; }
36347 tst_proto_strerror_r="no"
36354 if test "$tst_proto_strerror_r" = "yes"; then
36355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is compilable" >&5
36356 $as_echo_n "checking if strerror_r is compilable... " >&6; }
36357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36358 /* end confdefs.h. */
36361 $curl_includes_string
36366 if(0 != strerror_r(0, 0, 0))
36374 if ac_fn_c_try_compile "$LINENO"; then :
36376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36377 $as_echo "yes" >&6; }
36378 tst_compi_strerror_r="yes"
36382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36383 $as_echo "no" >&6; }
36384 tst_compi_strerror_r="no"
36387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36390 if test "$tst_compi_strerror_r" = "yes"; then
36391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is glibc like" >&5
36392 $as_echo_n "checking if strerror_r is glibc like... " >&6; }
36393 tst_glibc_strerror_r_type_arg3="unknown"
36394 for arg3 in 'size_t' 'int' 'unsigned int'; do
36395 if test "$tst_glibc_strerror_r_type_arg3" = "unknown"; then
36396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36397 /* end confdefs.h. */
36400 $curl_includes_string
36401 char *strerror_r(int errnum, char *workbuf, $arg3 bufsize);
36406 if(0 != strerror_r(0, 0, 0))
36414 if ac_fn_c_try_compile "$LINENO"; then :
36416 tst_glibc_strerror_r_type_arg3="$arg3"
36419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36422 case "$tst_glibc_strerror_r_type_arg3" in
36424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36425 $as_echo "no" >&6; }
36426 tst_glibc_strerror_r="no"
36429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36430 $as_echo "yes" >&6; }
36431 tst_glibc_strerror_r="yes"
36436 if test "x$cross_compiling" != "xyes" &&
36437 test "$tst_glibc_strerror_r" = "yes"; then
36438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36439 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36440 if test "$cross_compiling" = yes; then :
36441 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36442 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36443 as_fn_error $? "cannot run test program while cross compiling
36444 See \`config.log' for more details" "$LINENO" 5; }
36446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36447 /* end confdefs.h. */
36450 $curl_includes_stdlib
36451 $curl_includes_string
36452 # include <errno.h>
36460 string = strerror_r(EACCES, buffer, sizeof(buffer));
36462 exit(1); /* fail */
36464 exit(1); /* fail */
36473 if ac_fn_c_try_run "$LINENO"; then :
36475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36476 $as_echo "yes" >&6; }
36477 tst_works_glibc_strerror_r="yes"
36481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36482 $as_echo "no" >&6; }
36483 tst_works_glibc_strerror_r="no"
36486 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36487 conftest.$ac_objext conftest.beam conftest.$ac_ext
36492 if test "$tst_compi_strerror_r" = "yes" &&
36493 test "$tst_works_glibc_strerror_r" != "yes"; then
36494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r is POSIX like" >&5
36495 $as_echo_n "checking if strerror_r is POSIX like... " >&6; }
36496 tst_posix_strerror_r_type_arg3="unknown"
36497 for arg3 in 'size_t' 'int' 'unsigned int'; do
36498 if test "$tst_posix_strerror_r_type_arg3" = "unknown"; then
36499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36500 /* end confdefs.h. */
36503 $curl_includes_string
36504 int strerror_r(int errnum, char *resultbuf, $arg3 bufsize);
36509 if(0 != strerror_r(0, 0, 0))
36517 if ac_fn_c_try_compile "$LINENO"; then :
36519 tst_posix_strerror_r_type_arg3="$arg3"
36522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36525 case "$tst_posix_strerror_r_type_arg3" in
36527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36528 $as_echo "no" >&6; }
36529 tst_posix_strerror_r="no"
36532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36533 $as_echo "yes" >&6; }
36534 tst_posix_strerror_r="yes"
36539 if test "x$cross_compiling" != "xyes" &&
36540 test "$tst_posix_strerror_r" = "yes"; then
36541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r seems to work" >&5
36542 $as_echo_n "checking if strerror_r seems to work... " >&6; }
36543 if test "$cross_compiling" = yes; then :
36544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
36545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
36546 as_fn_error $? "cannot run test program while cross compiling
36547 See \`config.log' for more details" "$LINENO" 5; }
36549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36550 /* end confdefs.h. */
36553 $curl_includes_stdlib
36554 $curl_includes_string
36555 # include <errno.h>
36563 error = strerror_r(EACCES, buffer, sizeof(buffer));
36565 exit(1); /* fail */
36566 if(buffer[0] == '\0')
36567 exit(1); /* fail */
36576 if ac_fn_c_try_run "$LINENO"; then :
36578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36579 $as_echo "yes" >&6; }
36580 tst_works_posix_strerror_r="yes"
36584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36585 $as_echo "no" >&6; }
36586 tst_works_posix_strerror_r="no"
36589 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
36590 conftest.$ac_objext conftest.beam conftest.$ac_ext
36595 if test "$tst_works_glibc_strerror_r" = "yes"; then
36596 tst_posix_strerror_r="no"
36598 if test "$tst_works_posix_strerror_r" = "yes"; then
36599 tst_glibc_strerror_r="no"
36601 if test "$tst_glibc_strerror_r" = "yes" &&
36602 test "$tst_works_glibc_strerror_r" != "no" &&
36603 test "$tst_posix_strerror_r" != "yes"; then
36604 tst_allow_strerror_r="check"
36606 if test "$tst_posix_strerror_r" = "yes" &&
36607 test "$tst_works_posix_strerror_r" != "no" &&
36608 test "$tst_glibc_strerror_r" != "yes"; then
36609 tst_allow_strerror_r="check"
36611 if test "$tst_allow_strerror_r" = "check"; then
36612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r usage allowed" >&5
36613 $as_echo_n "checking if strerror_r usage allowed... " >&6; }
36614 if test "x$curl_disallow_strerror_r" != "xyes"; then
36615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36616 $as_echo "yes" >&6; }
36617 tst_allow_strerror_r="yes"
36619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36620 $as_echo "no" >&6; }
36621 tst_allow_strerror_r="no"
36625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r might be used" >&5
36626 $as_echo_n "checking if strerror_r might be used... " >&6; }
36627 if test "$tst_links_strerror_r" = "yes" &&
36628 test "$tst_proto_strerror_r" = "yes" &&
36629 test "$tst_compi_strerror_r" = "yes" &&
36630 test "$tst_allow_strerror_r" = "yes"; then
36631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36632 $as_echo "yes" >&6; }
36633 if test "$tst_glibc_strerror_r" = "yes"; then
36635 cat >>confdefs.h <<_ACEOF
36636 #define HAVE_STRERROR_R 1
36640 cat >>confdefs.h <<_ACEOF
36641 #define HAVE_GLIBC_STRERROR_R 1
36645 cat >>confdefs.h <<_ACEOF
36646 #define STRERROR_R_TYPE_ARG3 $tst_glibc_strerror_r_type_arg3
36650 if test "$tst_posix_strerror_r" = "yes"; then
36652 cat >>confdefs.h <<_ACEOF
36653 #define HAVE_STRERROR_R 1
36657 cat >>confdefs.h <<_ACEOF
36658 #define HAVE_POSIX_STRERROR_R 1
36662 cat >>confdefs.h <<_ACEOF
36663 #define STRERROR_R_TYPE_ARG3 $tst_posix_strerror_r_type_arg3
36667 ac_cv_func_strerror_r="yes"
36669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36670 $as_echo "no" >&6; }
36671 ac_cv_func_strerror_r="no"
36674 if test "$tst_compi_strerror_r" = "yes" &&
36675 test "$tst_allow_strerror_r" = "unknown"; then
36676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&5
36677 $as_echo "$as_me: WARNING: cannot determine strerror_r() style: edit lib/curl_config.h manually." >&2;}
36683 tst_links_stricmp="unknown"
36684 tst_proto_stricmp="unknown"
36685 tst_compi_stricmp="unknown"
36686 tst_allow_stricmp="unknown"
36688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp can be linked" >&5
36689 $as_echo_n "checking if stricmp can be linked... " >&6; }
36690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36691 /* end confdefs.h. */
36694 #define stricmp innocuous_stricmp
36696 # include <limits.h>
36698 # include <assert.h>
36705 #if defined __stub_stricmp || defined __stub___stricmp
36717 if ac_fn_c_try_link "$LINENO"; then :
36719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36720 $as_echo "yes" >&6; }
36721 tst_links_stricmp="yes"
36725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36726 $as_echo "no" >&6; }
36727 tst_links_stricmp="no"
36730 rm -f core conftest.err conftest.$ac_objext \
36731 conftest$ac_exeext conftest.$ac_ext
36733 if test "$tst_links_stricmp" = "yes"; then
36734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is prototyped" >&5
36735 $as_echo_n "checking if stricmp is prototyped... " >&6; }
36736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36737 /* end confdefs.h. */
36739 $curl_includes_string
36742 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36743 $EGREP "stricmp" >/dev/null 2>&1; then :
36745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36746 $as_echo "yes" >&6; }
36747 tst_proto_stricmp="yes"
36751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36752 $as_echo "no" >&6; }
36753 tst_proto_stricmp="no"
36760 if test "$tst_proto_stricmp" = "yes"; then
36761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp is compilable" >&5
36762 $as_echo_n "checking if stricmp is compilable... " >&6; }
36763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36764 /* end confdefs.h. */
36767 $curl_includes_string
36772 if(0 != stricmp(0, 0))
36780 if ac_fn_c_try_compile "$LINENO"; then :
36782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36783 $as_echo "yes" >&6; }
36784 tst_compi_stricmp="yes"
36788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36789 $as_echo "no" >&6; }
36790 tst_compi_stricmp="no"
36793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36796 if test "$tst_compi_stricmp" = "yes"; then
36797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp usage allowed" >&5
36798 $as_echo_n "checking if stricmp usage allowed... " >&6; }
36799 if test "x$curl_disallow_stricmp" != "xyes"; then
36800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36801 $as_echo "yes" >&6; }
36802 tst_allow_stricmp="yes"
36804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36805 $as_echo "no" >&6; }
36806 tst_allow_stricmp="no"
36810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if stricmp might be used" >&5
36811 $as_echo_n "checking if stricmp might be used... " >&6; }
36812 if test "$tst_links_stricmp" = "yes" &&
36813 test "$tst_proto_stricmp" = "yes" &&
36814 test "$tst_compi_stricmp" = "yes" &&
36815 test "$tst_allow_stricmp" = "yes"; then
36816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36817 $as_echo "yes" >&6; }
36819 cat >>confdefs.h <<_ACEOF
36820 #define HAVE_STRICMP 1
36823 ac_cv_func_stricmp="yes"
36825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36826 $as_echo "no" >&6; }
36827 ac_cv_func_stricmp="no"
36832 tst_links_strncasecmp="unknown"
36833 tst_proto_strncasecmp="unknown"
36834 tst_compi_strncasecmp="unknown"
36835 tst_allow_strncasecmp="unknown"
36837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp can be linked" >&5
36838 $as_echo_n "checking if strncasecmp can be linked... " >&6; }
36839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36840 /* end confdefs.h. */
36843 #define strncasecmp innocuous_strncasecmp
36845 # include <limits.h>
36847 # include <assert.h>
36853 char strncasecmp ();
36854 #if defined __stub_strncasecmp || defined __stub___strncasecmp
36860 return strncasecmp ();
36866 if ac_fn_c_try_link "$LINENO"; then :
36868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36869 $as_echo "yes" >&6; }
36870 tst_links_strncasecmp="yes"
36874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36875 $as_echo "no" >&6; }
36876 tst_links_strncasecmp="no"
36879 rm -f core conftest.err conftest.$ac_objext \
36880 conftest$ac_exeext conftest.$ac_ext
36882 if test "$tst_links_strncasecmp" = "yes"; then
36883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is prototyped" >&5
36884 $as_echo_n "checking if strncasecmp is prototyped... " >&6; }
36885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36886 /* end confdefs.h. */
36888 $curl_includes_string
36891 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
36892 $EGREP "strncasecmp" >/dev/null 2>&1; then :
36894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36895 $as_echo "yes" >&6; }
36896 tst_proto_strncasecmp="yes"
36900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36901 $as_echo "no" >&6; }
36902 tst_proto_strncasecmp="no"
36909 if test "$tst_proto_strncasecmp" = "yes"; then
36910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp is compilable" >&5
36911 $as_echo_n "checking if strncasecmp is compilable... " >&6; }
36912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36913 /* end confdefs.h. */
36916 $curl_includes_string
36921 if(0 != strncasecmp(0, 0, 0))
36929 if ac_fn_c_try_compile "$LINENO"; then :
36931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36932 $as_echo "yes" >&6; }
36933 tst_compi_strncasecmp="yes"
36937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36938 $as_echo "no" >&6; }
36939 tst_compi_strncasecmp="no"
36942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
36945 if test "$tst_compi_strncasecmp" = "yes"; then
36946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp usage allowed" >&5
36947 $as_echo_n "checking if strncasecmp usage allowed... " >&6; }
36948 if test "x$curl_disallow_strncasecmp" != "xyes"; then
36949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36950 $as_echo "yes" >&6; }
36951 tst_allow_strncasecmp="yes"
36953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36954 $as_echo "no" >&6; }
36955 tst_allow_strncasecmp="no"
36959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncasecmp might be used" >&5
36960 $as_echo_n "checking if strncasecmp might be used... " >&6; }
36961 if test "$tst_links_strncasecmp" = "yes" &&
36962 test "$tst_proto_strncasecmp" = "yes" &&
36963 test "$tst_compi_strncasecmp" = "yes" &&
36964 test "$tst_allow_strncasecmp" = "yes"; then
36965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
36966 $as_echo "yes" >&6; }
36968 cat >>confdefs.h <<_ACEOF
36969 #define HAVE_STRNCASECMP 1
36972 ac_cv_func_strncasecmp="yes"
36974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
36975 $as_echo "no" >&6; }
36976 ac_cv_func_strncasecmp="no"
36981 tst_links_strncmpi="unknown"
36982 tst_proto_strncmpi="unknown"
36983 tst_compi_strncmpi="unknown"
36984 tst_allow_strncmpi="unknown"
36986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi can be linked" >&5
36987 $as_echo_n "checking if strncmpi can be linked... " >&6; }
36988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
36989 /* end confdefs.h. */
36992 #define strncmpi innocuous_strncmpi
36994 # include <limits.h>
36996 # include <assert.h>
37003 #if defined __stub_strncmpi || defined __stub___strncmpi
37009 return strncmpi ();
37015 if ac_fn_c_try_link "$LINENO"; then :
37017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37018 $as_echo "yes" >&6; }
37019 tst_links_strncmpi="yes"
37023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37024 $as_echo "no" >&6; }
37025 tst_links_strncmpi="no"
37028 rm -f core conftest.err conftest.$ac_objext \
37029 conftest$ac_exeext conftest.$ac_ext
37031 if test "$tst_links_strncmpi" = "yes"; then
37032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is prototyped" >&5
37033 $as_echo_n "checking if strncmpi is prototyped... " >&6; }
37034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37035 /* end confdefs.h. */
37037 $curl_includes_string
37040 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37041 $EGREP "strncmpi" >/dev/null 2>&1; then :
37043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37044 $as_echo "yes" >&6; }
37045 tst_proto_strncmpi="yes"
37049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37050 $as_echo "no" >&6; }
37051 tst_proto_strncmpi="no"
37058 if test "$tst_proto_strncmpi" = "yes"; then
37059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi is compilable" >&5
37060 $as_echo_n "checking if strncmpi is compilable... " >&6; }
37061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37062 /* end confdefs.h. */
37065 $curl_includes_string
37070 if(0 != strncmpi(0, 0))
37078 if ac_fn_c_try_compile "$LINENO"; then :
37080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37081 $as_echo "yes" >&6; }
37082 tst_compi_strncmpi="yes"
37086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37087 $as_echo "no" >&6; }
37088 tst_compi_strncmpi="no"
37091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37094 if test "$tst_compi_strncmpi" = "yes"; then
37095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi usage allowed" >&5
37096 $as_echo_n "checking if strncmpi usage allowed... " >&6; }
37097 if test "x$curl_disallow_strncmpi" != "xyes"; then
37098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37099 $as_echo "yes" >&6; }
37100 tst_allow_strncmpi="yes"
37102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37103 $as_echo "no" >&6; }
37104 tst_allow_strncmpi="no"
37108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strncmpi might be used" >&5
37109 $as_echo_n "checking if strncmpi might be used... " >&6; }
37110 if test "$tst_links_strncmpi" = "yes" &&
37111 test "$tst_proto_strncmpi" = "yes" &&
37112 test "$tst_compi_strncmpi" = "yes" &&
37113 test "$tst_allow_strncmpi" = "yes"; then
37114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37115 $as_echo "yes" >&6; }
37117 cat >>confdefs.h <<_ACEOF
37118 #define HAVE_STRNCMPI 1
37121 ac_cv_func_strncmpi="yes"
37123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37124 $as_echo "no" >&6; }
37125 ac_cv_func_strncmpi="no"
37130 tst_links_strnicmp="unknown"
37131 tst_proto_strnicmp="unknown"
37132 tst_compi_strnicmp="unknown"
37133 tst_allow_strnicmp="unknown"
37135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp can be linked" >&5
37136 $as_echo_n "checking if strnicmp can be linked... " >&6; }
37137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37138 /* end confdefs.h. */
37141 #define strnicmp innocuous_strnicmp
37143 # include <limits.h>
37145 # include <assert.h>
37152 #if defined __stub_strnicmp || defined __stub___strnicmp
37158 return strnicmp ();
37164 if ac_fn_c_try_link "$LINENO"; then :
37166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37167 $as_echo "yes" >&6; }
37168 tst_links_strnicmp="yes"
37172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37173 $as_echo "no" >&6; }
37174 tst_links_strnicmp="no"
37177 rm -f core conftest.err conftest.$ac_objext \
37178 conftest$ac_exeext conftest.$ac_ext
37180 if test "$tst_links_strnicmp" = "yes"; then
37181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is prototyped" >&5
37182 $as_echo_n "checking if strnicmp is prototyped... " >&6; }
37183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37184 /* end confdefs.h. */
37186 $curl_includes_string
37189 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37190 $EGREP "strnicmp" >/dev/null 2>&1; then :
37192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37193 $as_echo "yes" >&6; }
37194 tst_proto_strnicmp="yes"
37198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37199 $as_echo "no" >&6; }
37200 tst_proto_strnicmp="no"
37207 if test "$tst_proto_strnicmp" = "yes"; then
37208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp is compilable" >&5
37209 $as_echo_n "checking if strnicmp is compilable... " >&6; }
37210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37211 /* end confdefs.h. */
37214 $curl_includes_string
37219 if(0 != strnicmp(0, 0))
37227 if ac_fn_c_try_compile "$LINENO"; then :
37229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37230 $as_echo "yes" >&6; }
37231 tst_compi_strnicmp="yes"
37235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37236 $as_echo "no" >&6; }
37237 tst_compi_strnicmp="no"
37240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37243 if test "$tst_compi_strnicmp" = "yes"; then
37244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp usage allowed" >&5
37245 $as_echo_n "checking if strnicmp usage allowed... " >&6; }
37246 if test "x$curl_disallow_strnicmp" != "xyes"; then
37247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37248 $as_echo "yes" >&6; }
37249 tst_allow_strnicmp="yes"
37251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37252 $as_echo "no" >&6; }
37253 tst_allow_strnicmp="no"
37257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strnicmp might be used" >&5
37258 $as_echo_n "checking if strnicmp might be used... " >&6; }
37259 if test "$tst_links_strnicmp" = "yes" &&
37260 test "$tst_proto_strnicmp" = "yes" &&
37261 test "$tst_compi_strnicmp" = "yes" &&
37262 test "$tst_allow_strnicmp" = "yes"; then
37263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37264 $as_echo "yes" >&6; }
37266 cat >>confdefs.h <<_ACEOF
37267 #define HAVE_STRNICMP 1
37270 ac_cv_func_strnicmp="yes"
37272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37273 $as_echo "no" >&6; }
37274 ac_cv_func_strnicmp="no"
37279 tst_links_strstr="unknown"
37280 tst_proto_strstr="unknown"
37281 tst_compi_strstr="unknown"
37282 tst_allow_strstr="unknown"
37284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr can be linked" >&5
37285 $as_echo_n "checking if strstr can be linked... " >&6; }
37286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37287 /* end confdefs.h. */
37290 #define strstr innocuous_strstr
37292 # include <limits.h>
37294 # include <assert.h>
37301 #if defined __stub_strstr || defined __stub___strstr
37313 if ac_fn_c_try_link "$LINENO"; then :
37315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37316 $as_echo "yes" >&6; }
37317 tst_links_strstr="yes"
37321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37322 $as_echo "no" >&6; }
37323 tst_links_strstr="no"
37326 rm -f core conftest.err conftest.$ac_objext \
37327 conftest$ac_exeext conftest.$ac_ext
37329 if test "$tst_links_strstr" = "yes"; then
37330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is prototyped" >&5
37331 $as_echo_n "checking if strstr is prototyped... " >&6; }
37332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37333 /* end confdefs.h. */
37335 $curl_includes_string
37338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37339 $EGREP "strstr" >/dev/null 2>&1; then :
37341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37342 $as_echo "yes" >&6; }
37343 tst_proto_strstr="yes"
37347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37348 $as_echo "no" >&6; }
37349 tst_proto_strstr="no"
37356 if test "$tst_proto_strstr" = "yes"; then
37357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr is compilable" >&5
37358 $as_echo_n "checking if strstr is compilable... " >&6; }
37359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37360 /* end confdefs.h. */
37363 $curl_includes_string
37368 if(0 != strstr(0, 0))
37376 if ac_fn_c_try_compile "$LINENO"; then :
37378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37379 $as_echo "yes" >&6; }
37380 tst_compi_strstr="yes"
37384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37385 $as_echo "no" >&6; }
37386 tst_compi_strstr="no"
37389 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37392 if test "$tst_compi_strstr" = "yes"; then
37393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr usage allowed" >&5
37394 $as_echo_n "checking if strstr usage allowed... " >&6; }
37395 if test "x$curl_disallow_strstr" != "xyes"; then
37396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37397 $as_echo "yes" >&6; }
37398 tst_allow_strstr="yes"
37400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37401 $as_echo "no" >&6; }
37402 tst_allow_strstr="no"
37406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strstr might be used" >&5
37407 $as_echo_n "checking if strstr might be used... " >&6; }
37408 if test "$tst_links_strstr" = "yes" &&
37409 test "$tst_proto_strstr" = "yes" &&
37410 test "$tst_compi_strstr" = "yes" &&
37411 test "$tst_allow_strstr" = "yes"; then
37412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37413 $as_echo "yes" >&6; }
37415 cat >>confdefs.h <<_ACEOF
37416 #define HAVE_STRSTR 1
37419 ac_cv_func_strstr="yes"
37421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37422 $as_echo "no" >&6; }
37423 ac_cv_func_strstr="no"
37428 tst_links_strtok_r="unknown"
37429 tst_proto_strtok_r="unknown"
37430 tst_compi_strtok_r="unknown"
37431 tst_allow_strtok_r="unknown"
37433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r can be linked" >&5
37434 $as_echo_n "checking if strtok_r can be linked... " >&6; }
37435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37436 /* end confdefs.h. */
37439 #define strtok_r innocuous_strtok_r
37441 # include <limits.h>
37443 # include <assert.h>
37450 #if defined __stub_strtok_r || defined __stub___strtok_r
37456 return strtok_r ();
37462 if ac_fn_c_try_link "$LINENO"; then :
37464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37465 $as_echo "yes" >&6; }
37466 tst_links_strtok_r="yes"
37470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37471 $as_echo "no" >&6; }
37472 tst_links_strtok_r="no"
37475 rm -f core conftest.err conftest.$ac_objext \
37476 conftest$ac_exeext conftest.$ac_ext
37478 if test "$tst_links_strtok_r" = "yes"; then
37479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is prototyped" >&5
37480 $as_echo_n "checking if strtok_r is prototyped... " >&6; }
37481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37482 /* end confdefs.h. */
37484 $curl_includes_string
37487 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37488 $EGREP "strtok_r" >/dev/null 2>&1; then :
37490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37491 $as_echo "yes" >&6; }
37492 tst_proto_strtok_r="yes"
37496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37497 $as_echo "no" >&6; }
37498 tst_proto_strtok_r="no"
37505 if test "$tst_proto_strtok_r" = "yes"; then
37506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r is compilable" >&5
37507 $as_echo_n "checking if strtok_r is compilable... " >&6; }
37508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37509 /* end confdefs.h. */
37512 $curl_includes_string
37517 if(0 != strtok_r(0, 0, 0))
37525 if ac_fn_c_try_compile "$LINENO"; then :
37527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37528 $as_echo "yes" >&6; }
37529 tst_compi_strtok_r="yes"
37533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37534 $as_echo "no" >&6; }
37535 tst_compi_strtok_r="no"
37538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37541 if test "$tst_compi_strtok_r" = "yes"; then
37542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r usage allowed" >&5
37543 $as_echo_n "checking if strtok_r usage allowed... " >&6; }
37544 if test "x$curl_disallow_strtok_r" != "xyes"; then
37545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37546 $as_echo "yes" >&6; }
37547 tst_allow_strtok_r="yes"
37549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37550 $as_echo "no" >&6; }
37551 tst_allow_strtok_r="no"
37555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r might be used" >&5
37556 $as_echo_n "checking if strtok_r might be used... " >&6; }
37557 if test "$tst_links_strtok_r" = "yes" &&
37558 test "$tst_proto_strtok_r" = "yes" &&
37559 test "$tst_compi_strtok_r" = "yes" &&
37560 test "$tst_allow_strtok_r" = "yes"; then
37561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37562 $as_echo "yes" >&6; }
37564 cat >>confdefs.h <<_ACEOF
37565 #define HAVE_STRTOK_R 1
37568 ac_cv_func_strtok_r="yes"
37570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37571 $as_echo "no" >&6; }
37572 ac_cv_func_strtok_r="no"
37577 tst_links_strtoll="unknown"
37578 tst_proto_strtoll="unknown"
37579 tst_compi_strtoll="unknown"
37580 tst_allow_strtoll="unknown"
37582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll can be linked" >&5
37583 $as_echo_n "checking if strtoll can be linked... " >&6; }
37584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37585 /* end confdefs.h. */
37588 #define strtoll innocuous_strtoll
37590 # include <limits.h>
37592 # include <assert.h>
37599 #if defined __stub_strtoll || defined __stub___strtoll
37611 if ac_fn_c_try_link "$LINENO"; then :
37613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37614 $as_echo "yes" >&6; }
37615 tst_links_strtoll="yes"
37619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37620 $as_echo "no" >&6; }
37621 tst_links_strtoll="no"
37624 rm -f core conftest.err conftest.$ac_objext \
37625 conftest$ac_exeext conftest.$ac_ext
37627 if test "$tst_links_strtoll" = "yes"; then
37628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is prototyped" >&5
37629 $as_echo_n "checking if strtoll is prototyped... " >&6; }
37630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37631 /* end confdefs.h. */
37633 $curl_includes_stdlib
37636 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37637 $EGREP "strtoll" >/dev/null 2>&1; then :
37639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37640 $as_echo "yes" >&6; }
37641 tst_proto_strtoll="yes"
37645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37646 $as_echo "no" >&6; }
37647 tst_proto_strtoll="no"
37654 if test "$tst_proto_strtoll" = "yes"; then
37655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll is compilable" >&5
37656 $as_echo_n "checking if strtoll is compilable... " >&6; }
37657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37658 /* end confdefs.h. */
37661 $curl_includes_stdlib
37666 if(0 != strtoll(0, 0, 0))
37674 if ac_fn_c_try_compile "$LINENO"; then :
37676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37677 $as_echo "yes" >&6; }
37678 tst_compi_strtoll="yes"
37682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37683 $as_echo "no" >&6; }
37684 tst_compi_strtoll="no"
37687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37690 if test "$tst_compi_strtoll" = "yes"; then
37691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll usage allowed" >&5
37692 $as_echo_n "checking if strtoll usage allowed... " >&6; }
37693 if test "x$curl_disallow_strtoll" != "xyes"; then
37694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37695 $as_echo "yes" >&6; }
37696 tst_allow_strtoll="yes"
37698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37699 $as_echo "no" >&6; }
37700 tst_allow_strtoll="no"
37704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtoll might be used" >&5
37705 $as_echo_n "checking if strtoll might be used... " >&6; }
37706 if test "$tst_links_strtoll" = "yes" &&
37707 test "$tst_proto_strtoll" = "yes" &&
37708 test "$tst_compi_strtoll" = "yes" &&
37709 test "$tst_allow_strtoll" = "yes"; then
37710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37711 $as_echo "yes" >&6; }
37713 cat >>confdefs.h <<_ACEOF
37714 #define HAVE_STRTOLL 1
37717 ac_cv_func_strtoll="yes"
37719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37720 $as_echo "no" >&6; }
37721 ac_cv_func_strtoll="no"
37725 curl_includes_sys_uio="\
37726 /* includes start */
37727 #ifdef HAVE_SYS_TYPES_H
37728 # include <sys/types.h>
37730 #ifdef HAVE_SYS_UIO_H
37731 # include <sys/uio.h>
37733 /* includes end */"
37734 for ac_header in sys/types.h sys/uio.h
37736 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37737 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$curl_includes_sys_uio
37739 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37740 cat >>confdefs.h <<_ACEOF
37741 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37751 tst_links_writev="unknown"
37752 tst_proto_writev="unknown"
37753 tst_compi_writev="unknown"
37754 tst_allow_writev="unknown"
37756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev can be linked" >&5
37757 $as_echo_n "checking if writev can be linked... " >&6; }
37758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37759 /* end confdefs.h. */
37762 #define writev innocuous_writev
37764 # include <limits.h>
37766 # include <assert.h>
37773 #if defined __stub_writev || defined __stub___writev
37785 if ac_fn_c_try_link "$LINENO"; then :
37787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37788 $as_echo "yes" >&6; }
37789 tst_links_writev="yes"
37793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37794 $as_echo "no" >&6; }
37795 tst_links_writev="no"
37798 rm -f core conftest.err conftest.$ac_objext \
37799 conftest$ac_exeext conftest.$ac_ext
37801 if test "$tst_links_writev" = "yes"; then
37802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is prototyped" >&5
37803 $as_echo_n "checking if writev is prototyped... " >&6; }
37804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37805 /* end confdefs.h. */
37807 $curl_includes_sys_uio
37810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
37811 $EGREP "writev" >/dev/null 2>&1; then :
37813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37814 $as_echo "yes" >&6; }
37815 tst_proto_writev="yes"
37819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37820 $as_echo "no" >&6; }
37821 tst_proto_writev="no"
37828 if test "$tst_proto_writev" = "yes"; then
37829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev is compilable" >&5
37830 $as_echo_n "checking if writev is compilable... " >&6; }
37831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37832 /* end confdefs.h. */
37835 $curl_includes_sys_uio
37840 if(0 != writev(0, 0, 0))
37848 if ac_fn_c_try_compile "$LINENO"; then :
37850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37851 $as_echo "yes" >&6; }
37852 tst_compi_writev="yes"
37856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37857 $as_echo "no" >&6; }
37858 tst_compi_writev="no"
37861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
37864 if test "$tst_compi_writev" = "yes"; then
37865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev usage allowed" >&5
37866 $as_echo_n "checking if writev usage allowed... " >&6; }
37867 if test "x$curl_disallow_writev" != "xyes"; then
37868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37869 $as_echo "yes" >&6; }
37870 tst_allow_writev="yes"
37872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37873 $as_echo "no" >&6; }
37874 tst_allow_writev="no"
37878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if writev might be used" >&5
37879 $as_echo_n "checking if writev might be used... " >&6; }
37880 if test "$tst_links_writev" = "yes" &&
37881 test "$tst_proto_writev" = "yes" &&
37882 test "$tst_compi_writev" = "yes" &&
37883 test "$tst_allow_writev" = "yes"; then
37884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37885 $as_echo "yes" >&6; }
37887 cat >>confdefs.h <<_ACEOF
37888 #define HAVE_WRITEV 1
37891 ac_cv_func_writev="yes"
37893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
37894 $as_echo "no" >&6; }
37895 ac_cv_func_writev="no"
37903 { $as_echo "$as_me:${as_lineno-$LINENO}: skip check for pipe on msdosdjgpp" >&5
37904 $as_echo "$as_me: skip check for pipe on msdosdjgpp" >&6;}
37908 for ac_func in fork \
37928 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
37929 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
37930 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
37931 cat >>confdefs.h <<_ACEOF
37932 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
37939 eval skipcheck=\$skipcheck_$func
37940 if test "x$skipcheck" != "xyes"; then
37941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for $func" >&5
37942 $as_echo_n "checking deeper for $func... " >&6; }
37943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
37944 /* end confdefs.h. */
37958 if ac_fn_c_try_link "$LINENO"; then :
37960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
37961 $as_echo "yes" >&6; }
37962 eval "ac_cv_func_$func=yes"
37964 cat >>confdefs.h <<_ACEOF
37965 #define `echo "HAVE_$func" | sed 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/' | sed 's/^A-Z0-9_/_/g'` 1
37971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
37972 $as_echo "but still no" >&6; }
37975 rm -f core conftest.err conftest.$ac_objext \
37976 conftest$ac_exeext conftest.$ac_ext
37984 for ac_header in sys/types.h sys/socket.h netdb.h
37986 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
37987 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
37988 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
37989 cat >>confdefs.h <<_ACEOF
37990 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
37998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getnameinfo" >&5
37999 $as_echo_n "checking for getnameinfo... " >&6; }
38000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38001 /* end confdefs.h. */
38004 #define getnameinfo innocuous_getnameinfo
38006 # include <limits.h>
38008 # include <assert.h>
38014 char getnameinfo ();
38015 #if defined __stub_getnameinfo || defined __stub___getnameinfo
38021 return getnameinfo ();
38027 if ac_fn_c_try_link "$LINENO"; then :
38029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38030 $as_echo "yes" >&6; }
38031 curl_cv_getnameinfo="yes"
38035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38036 $as_echo "no" >&6; }
38037 curl_cv_getnameinfo="no"
38040 rm -f core conftest.err conftest.$ac_objext \
38041 conftest$ac_exeext conftest.$ac_ext
38043 if test "$curl_cv_getnameinfo" != "yes"; then
38044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper for getnameinfo" >&5
38045 $as_echo_n "checking deeper for getnameinfo... " >&6; }
38046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38047 /* end confdefs.h. */
38061 if ac_fn_c_try_link "$LINENO"; then :
38063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38064 $as_echo "yes" >&6; }
38065 curl_cv_getnameinfo="yes"
38069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38070 $as_echo "but still no" >&6; }
38071 curl_cv_getnameinfo="no"
38074 rm -f core conftest.err conftest.$ac_objext \
38075 conftest$ac_exeext conftest.$ac_ext
38078 if test "$curl_cv_getnameinfo" != "yes"; then
38079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking deeper and deeper for getnameinfo" >&5
38080 $as_echo_n "checking deeper and deeper for getnameinfo... " >&6; }
38081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38082 /* end confdefs.h. */
38086 #ifdef HAVE_WINDOWS_H
38087 #ifndef WIN32_LEAN_AND_MEAN
38088 #define WIN32_LEAN_AND_MEAN
38090 #include <windows.h>
38091 #ifdef HAVE_WINSOCK2_H
38092 #include <winsock2.h>
38093 #ifdef HAVE_WS2TCPIP_H
38094 #include <ws2tcpip.h>
38098 #ifdef HAVE_SYS_TYPES_H
38099 #include <sys/types.h>
38101 #ifdef HAVE_SYS_SOCKET_H
38102 #include <sys/socket.h>
38104 #ifdef HAVE_NETDB_H
38112 getnameinfo(0, 0, 0, 0, 0, 0, 0);
38119 if ac_fn_c_try_link "$LINENO"; then :
38121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38122 $as_echo "yes" >&6; }
38123 curl_cv_getnameinfo="yes"
38127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: but still no" >&5
38128 $as_echo "but still no" >&6; }
38129 curl_cv_getnameinfo="no"
38132 rm -f core conftest.err conftest.$ac_objext \
38133 conftest$ac_exeext conftest.$ac_ext
38136 if test "$curl_cv_getnameinfo" = "yes"; then
38137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for getnameinfo" >&5
38138 $as_echo_n "checking types of arguments for getnameinfo... " >&6; }
38139 if ${curl_cv_func_getnameinfo_args+:} false; then :
38140 $as_echo_n "(cached) " >&6
38143 curl_cv_func_getnameinfo_args="unknown"
38144 for gni_arg1 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
38145 for gni_arg2 in 'socklen_t' 'size_t' 'int'; do
38146 for gni_arg46 in 'size_t' 'int' 'socklen_t' 'unsigned int' 'DWORD'; do
38147 for gni_arg7 in 'int' 'unsigned int'; do
38148 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38150 /* end confdefs.h. */
38154 #ifdef HAVE_WINDOWS_H
38155 #ifndef WIN32_LEAN_AND_MEAN
38156 #define WIN32_LEAN_AND_MEAN
38158 #if (!defined(_WIN32_WINNT)) || (_WIN32_WINNT < 0x0501)
38159 #undef _WIN32_WINNT
38160 #define _WIN32_WINNT 0x0501
38162 #include <windows.h>
38163 #ifdef HAVE_WINSOCK2_H
38164 #include <winsock2.h>
38165 #ifdef HAVE_WS2TCPIP_H
38166 #include <ws2tcpip.h>
38169 #define GNICALLCONV WSAAPI
38171 #ifdef HAVE_SYS_TYPES_H
38172 #include <sys/types.h>
38174 #ifdef HAVE_SYS_SOCKET_H
38175 #include <sys/socket.h>
38177 #ifdef HAVE_NETDB_H
38180 #define GNICALLCONV
38182 extern int GNICALLCONV getnameinfo($gni_arg1, $gni_arg2,
38183 char *, $gni_arg46,
38184 char *, $gni_arg46,
38191 $gni_arg46 hostlen=0;
38192 $gni_arg46 servlen=0;
38194 int res = getnameinfo(0, salen, 0, hostlen, 0, servlen, flags);
38201 if ac_fn_c_try_compile "$LINENO"; then :
38203 curl_cv_func_getnameinfo_args="$gni_arg1,$gni_arg2,$gni_arg46,$gni_arg7"
38206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
38214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $curl_cv_func_getnameinfo_args" >&5
38215 $as_echo "$curl_cv_func_getnameinfo_args" >&6; } # AC-CACHE-CHECK
38216 if test "$curl_cv_func_getnameinfo_args" = "unknown"; then
38217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Cannot find proper types to use for getnameinfo args" >&5
38218 $as_echo "$as_me: WARNING: Cannot find proper types to use for getnameinfo args" >&2;}
38219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: HAVE_GETNAMEINFO will not be defined" >&5
38220 $as_echo "$as_me: WARNING: HAVE_GETNAMEINFO will not be defined" >&2;}
38222 gni_prev_IFS=$IFS; IFS=','
38223 set dummy `echo "$curl_cv_func_getnameinfo_args" | sed 's/\*/\*/g'`
38227 gni_qual_type_arg1=$1
38230 cat >>confdefs.h <<_ACEOF
38231 #define GETNAMEINFO_TYPE_ARG2 $2
38235 cat >>confdefs.h <<_ACEOF
38236 #define GETNAMEINFO_TYPE_ARG46 $3
38240 cat >>confdefs.h <<_ACEOF
38241 #define GETNAMEINFO_TYPE_ARG7 $4
38247 case $prev_sh_opts in
38255 case "$gni_qual_type_arg1" in
38257 gni_qual_arg1=const
38258 gni_type_arg1=`echo $gni_qual_type_arg1 | sed 's/^const //'`
38262 gni_type_arg1=$gni_qual_type_arg1
38267 cat >>confdefs.h <<_ACEOF
38268 #define GETNAMEINFO_QUAL_ARG1 $gni_qual_arg1
38272 cat >>confdefs.h <<_ACEOF
38273 #define GETNAMEINFO_TYPE_ARG1 $gni_type_arg1
38277 case $prev_sh_opts in
38286 cat >>confdefs.h <<_ACEOF
38287 #define HAVE_GETNAMEINFO 1
38290 ac_cv_func_getnameinfo="yes"
38295 if test "$ipv6" = "yes"; then
38296 if test "$ac_cv_func_getaddrinfo" = "yes"; then
38298 $as_echo "#define ENABLE_IPV6 1" >>confdefs.h
38304 for ac_header in stdio.h sys/types.h sys/socket.h \
38305 netdb.h netinet/in.h arpa/inet.h
38307 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
38308 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
38309 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
38310 cat >>confdefs.h <<_ACEOF
38311 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
38319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working NI_WITHSCOPEID" >&5
38320 $as_echo_n "checking for working NI_WITHSCOPEID... " >&6; }
38321 if ${ac_cv_working_ni_withscopeid+:} false; then :
38322 $as_echo_n "(cached) " >&6
38325 if test "$cross_compiling" = yes; then :
38327 # Program is not run when cross-compiling. So we assume
38328 # NI_WITHSCOPEID will work if we are able to compile it.
38329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38330 /* end confdefs.h. */
38333 #include <sys/types.h>
38334 #include <sys/socket.h>
38340 unsigned int dummy= NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38347 if ac_fn_c_try_compile "$LINENO"; then :
38349 ac_cv_working_ni_withscopeid="yes"
38353 ac_cv_working_ni_withscopeid="no"
38356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext # AC-COMPILE-IFELSE
38359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38360 /* end confdefs.h. */
38363 #ifdef HAVE_STDLIB_H
38364 #include <stdlib.h>
38366 #ifdef HAVE_STDIO_H
38369 #ifdef HAVE_SYS_TYPES_H
38370 #include <sys/types.h>
38372 #ifdef HAVE_SYS_SOCKET_H
38373 #include <sys/socket.h>
38375 #ifdef HAVE_NETDB_H
38378 #ifdef HAVE_NETINET_IN_H
38379 #include <netinet/in.h>
38381 #ifdef HAVE_ARPA_INET_H
38382 #include <arpa/inet.h>
38388 #if defined(NI_WITHSCOPEID) && defined(HAVE_GETNAMEINFO)
38389 #ifdef HAVE_STRUCT_SOCKADDR_STORAGE
38390 struct sockaddr_storage sa;
38392 unsigned char sa[256];
38394 char hostbuf[NI_MAXHOST];
38396 GETNAMEINFO_TYPE_ARG2 salen = (GETNAMEINFO_TYPE_ARG2)sizeof(sa);
38397 GETNAMEINFO_TYPE_ARG46 hostlen = (GETNAMEINFO_TYPE_ARG46)sizeof(hostbuf);
38398 GETNAMEINFO_TYPE_ARG7 flags = NI_NUMERICHOST | NI_NUMERICSERV | NI_WITHSCOPEID;
38399 int fd = socket(AF_INET6, SOCK_STREAM, 0);
38401 perror("socket()");
38402 return 1; /* Error creating socket */
38404 rc = getsockname(fd, (GETNAMEINFO_TYPE_ARG1)&sa, &salen);
38406 perror("getsockname()");
38407 return 2; /* Error retrieving socket name */
38409 rc = getnameinfo((GETNAMEINFO_TYPE_ARG1)&sa, salen, hostbuf, hostlen, NULL, 0, flags);
38411 printf("rc = %s\n", gai_strerror(rc));
38412 return 3; /* Error translating socket address */
38414 return 0; /* Ok, NI_WITHSCOPEID works */
38416 return 4; /* Error, NI_WITHSCOPEID not defined or no getnameinfo() */
38421 } # AC-LANG-PROGRAM
38424 if ac_fn_c_try_run "$LINENO"; then :
38426 # Exit code == 0. Program worked.
38427 ac_cv_working_ni_withscopeid="yes"
38431 # Exit code != 0. Program failed.
38432 ac_cv_working_ni_withscopeid="no"
38435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
38436 conftest.$ac_objext conftest.beam conftest.$ac_ext
38441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_ni_withscopeid" >&5
38442 $as_echo "$ac_cv_working_ni_withscopeid" >&6; } # AC-CACHE-CHECK
38443 case "$ac_cv_working_ni_withscopeid" in
38446 $as_echo "#define HAVE_NI_WITHSCOPEID 1" >>confdefs.h
38455 tst_method="unknown"
38457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to set a socket into non-blocking mode" >&5
38458 $as_echo_n "checking how to set a socket into non-blocking mode... " >&6; }
38459 if test "x$ac_cv_func_fcntl_o_nonblock" = "xyes"; then
38460 tst_method="fcntl O_NONBLOCK"
38461 elif test "x$ac_cv_func_ioctl_fionbio" = "xyes"; then
38462 tst_method="ioctl FIONBIO"
38463 elif test "x$ac_cv_func_ioctlsocket_fionbio" = "xyes"; then
38464 tst_method="ioctlsocket FIONBIO"
38465 elif test "x$ac_cv_func_ioctlsocket_camel_fionbio" = "xyes"; then
38466 tst_method="IoctlSocket FIONBIO"
38467 elif test "x$ac_cv_func_setsockopt_so_nonblock" = "xyes"; then
38468 tst_method="setsockopt SO_NONBLOCK"
38470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tst_method" >&5
38471 $as_echo "$tst_method" >&6; }
38472 if test "$tst_method" = "unknown"; then
38473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine non-blocking socket method." >&5
38474 $as_echo "$as_me: WARNING: cannot determine non-blocking socket method." >&2;}
38479 # Extract the first word of "perl", so it can be a program name with args.
38480 set dummy perl; ac_word=$2
38481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38482 $as_echo_n "checking for $ac_word... " >&6; }
38483 if ${ac_cv_path_PERL+:} false; then :
38484 $as_echo_n "(cached) " >&6
38488 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
38491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38492 as_dummy="$PATH:/usr/local/bin/perl:/usr/bin/:/usr/local/bin "
38493 for as_dir in $as_dummy
38496 test -z "$as_dir" && as_dir=.
38497 for ac_exec_ext in '' $ac_executable_extensions; do
38498 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38499 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
38500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38510 PERL=$ac_cv_path_PERL
38511 if test -n "$PERL"; then
38512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
38513 $as_echo "$PERL" >&6; }
38515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38516 $as_echo "no" >&6; }
38522 for ac_prog in gnroff nroff
38524 # Extract the first word of "$ac_prog", so it can be a program name with args.
38525 set dummy $ac_prog; ac_word=$2
38526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
38527 $as_echo_n "checking for $ac_word... " >&6; }
38528 if ${ac_cv_path_NROFF+:} false; then :
38529 $as_echo_n "(cached) " >&6
38533 ac_cv_path_NROFF="$NROFF" # Let the user override the test with a path.
38536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
38537 as_dummy="$PATH:/usr/bin/:/usr/local/bin "
38538 for as_dir in $as_dummy
38541 test -z "$as_dir" && as_dir=.
38542 for ac_exec_ext in '' $ac_executable_extensions; do
38543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
38544 ac_cv_path_NROFF="$as_dir/$ac_word$ac_exec_ext"
38545 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
38555 NROFF=$ac_cv_path_NROFF
38556 if test -n "$NROFF"; then
38557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NROFF" >&5
38558 $as_echo "$NROFF" >&6; }
38560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38561 $as_echo "no" >&6; }
38565 test -n "$NROFF" && break
38570 if test -n "$NROFF"; then
38572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use *nroff to get plain text from man pages" >&5
38573 $as_echo_n "checking how to use *nroff to get plain text from man pages... " >&6; }
38575 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38576 if test -z "$mancheck"; then
38578 mancheck=`echo foo | $NROFF $MANOPT 2>/dev/null`
38579 if test -z "$mancheck"; then
38581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
38582 $as_echo "failed" >&6; }
38583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found no *nroff option to get plaintext from man pages" >&5
38584 $as_echo "$as_me: WARNING: found no *nroff option to get plaintext from man pages" >&2;}
38586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38587 $as_echo "$MANOPT" >&6; }
38590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANOPT" >&5
38591 $as_echo "$MANOPT" >&6; }
38596 if test -z "$MANOPT"
38598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: disabling built-in manual" >&5
38599 $as_echo "$as_me: WARNING: disabling built-in manual" >&2;}
38604 if test "$USE_MANUAL" = "1"; then
38606 $as_echo "#define USE_MANUAL 1" >>confdefs.h
38608 curl_manual_msg="enabled"
38611 if test x"$USE_MANUAL" = x1; then
38613 USE_MANUAL_FALSE='#'
38615 USE_MANUAL_TRUE='#'
38624 if test "$want_ares" = "yes"; then
38625 clean_CPPFLAGS="$CPPFLAGS"
38626 clean_LDFLAGS="$LDFLAGS"
38628 embedded_ares="unknown"
38629 configure_runpath=`pwd`
38630 embedded_ares_builddir="$configure_runpath/ares"
38631 if test -n "$want_ares_path"; then
38632 ares_CPPFLAGS="-I$want_ares_path/include"
38633 ares_LDFLAGS="-L$want_ares_path/lib"
38634 ares_LIBS="-lcares"
38636 if test -d "$srcdir/ares"; then
38637 embedded_ares="yes"
38638 subdirs="$subdirs ares"
38641 ares_LDFLAGS="-L$embedded_ares_builddir"
38642 ares_LIBS="-lcares"
38646 ares_LIBS="-lcares"
38650 CPPFLAGS="$ares_CPPFLAGS $clean_CPPFLAGS"
38651 LDFLAGS="$ares_LDFLAGS $clean_LDFLAGS"
38652 LIBS="$ares_LIBS $clean_LIBS"
38654 if test "$embedded_ares" != "yes"; then
38655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that c-ares is good and recent enough" >&5
38656 $as_echo_n "checking that c-ares is good and recent enough... " >&6; }
38657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38658 /* end confdefs.h. */
38662 /* set of dummy functions in case c-ares was built with debug */
38663 void curl_dofree() { }
38664 void curl_sclose() { }
38665 void curl_domalloc() { }
38666 void curl_docalloc() { }
38667 void curl_socket() { }
38672 ares_channel channel;
38673 ares_cancel(channel); /* added in 1.2.0 */
38674 ares_process_fd(channel, 0, 0); /* added in 1.4.0 */
38675 ares_dup(&channel, channel); /* added in 1.6.0 */
38682 if ac_fn_c_try_link "$LINENO"; then :
38684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38685 $as_echo "yes" >&6; }
38689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38690 $as_echo "no" >&6; }
38691 as_fn_error $? "c-ares library defective or too old" "$LINENO" 5
38692 CPPFLAGS="$clean_CPPFLAGS"
38693 LDFLAGS="$clean_LDFLAGS"
38699 rm -f core conftest.err conftest.$ac_objext \
38700 conftest$ac_exeext conftest.$ac_ext
38702 if test "$want_ares" = "yes"; then
38704 $as_echo "#define USE_ARES 1" >>confdefs.h
38708 curl_res_msg="c-ares"
38712 if test x$embedded_ares = xyes; then
38713 USE_EMBEDDED_ARES_TRUE=
38714 USE_EMBEDDED_ARES_FALSE='#'
38716 USE_EMBEDDED_ARES_TRUE='#'
38717 USE_EMBEDDED_ARES_FALSE=
38721 if test "x$ac_cv_native_windows" != "xyes" &&
38722 test "x$enable_shared" = "xyes"; then
38723 build_libhostname=yes
38725 build_libhostname=no
38727 if test x$build_libhostname = xyes; then
38728 BUILD_LIBHOSTNAME_TRUE=
38729 BUILD_LIBHOSTNAME_FALSE='#'
38731 BUILD_LIBHOSTNAME_TRUE='#'
38732 BUILD_LIBHOSTNAME_FALSE=
38737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable the threaded resolver" >&5
38738 $as_echo_n "checking whether to enable the threaded resolver... " >&6; }
38739 OPT_THRES="default"
38740 # Check whether --enable-threaded_resolver was given.
38741 if test "${enable_threaded_resolver+set}" = set; then :
38742 enableval=$enable_threaded_resolver; OPT_THRES=$enableval
38745 case "$OPT_THRES" in
38753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_thres" >&5
38754 $as_echo "$want_thres" >&6; }
38757 if test "x$want_thres" = xyes && test "x$want_ares" = xyes; then
38758 as_fn_error $? "Options --enable-threaded-resolver and --enable-ares are mutually exclusive" "$LINENO" 5
38761 if test "$want_thres" = "yes"; then
38762 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
38763 if test "x$ac_cv_header_pthread_h" = xyes; then :
38765 $as_echo "#define HAVE_PTHREAD_H 1" >>confdefs.h
38767 save_CFLAGS="$CFLAGS"
38769 ac_fn_c_check_func "$LINENO" "pthread_create" "ac_cv_func_pthread_create"
38770 if test "x$ac_cv_func_pthread_create" = xyes; then :
38771 USE_THREADS_POSIX=1
38775 if test "$USE_THREADS_POSIX" != "1"
38777 CFLAGS="$CFLAGS -pthread"
38778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
38779 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
38780 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
38781 $as_echo_n "(cached) " >&6
38783 ac_check_lib_save_LIBS=$LIBS
38784 LIBS="-lpthread $LIBS"
38785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
38786 /* end confdefs.h. */
38792 char pthread_create ();
38795 return pthread_create ();
38800 if ac_fn_c_try_link "$LINENO"; then :
38801 ac_cv_lib_pthread_pthread_create=yes
38803 ac_cv_lib_pthread_pthread_create=no
38805 rm -f core conftest.err conftest.$ac_objext \
38806 conftest$ac_exeext conftest.$ac_ext
38807 LIBS=$ac_check_lib_save_LIBS
38809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
38810 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
38811 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
38812 USE_THREADS_POSIX=1
38814 CFLAGS="$save_CFLAGS"
38819 if test "x$USE_THREADS_POSIX" = "x1"
38822 $as_echo "#define USE_THREADS_POSIX 1" >>confdefs.h
38824 curl_res_msg="POSIX threaded"
38834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable verbose strings" >&5
38835 $as_echo_n "checking whether to enable verbose strings... " >&6; }
38836 # Check whether --enable-verbose was given.
38837 if test "${enable_verbose+set}" = set; then :
38838 enableval=$enable_verbose; case "$enableval" in
38840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38841 $as_echo "no" >&6; }
38843 $as_echo "#define CURL_DISABLE_VERBOSE_STRINGS 1" >>confdefs.h
38845 curl_verbose_msg="no"
38847 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38848 $as_echo "yes" >&6; }
38852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38853 $as_echo "yes" >&6; }
38858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable SSPI support (Windows native builds only)" >&5
38859 $as_echo_n "checking whether to enable SSPI support (Windows native builds only)... " >&6; }
38860 # Check whether --enable-sspi was given.
38861 if test "${enable_sspi+set}" = set; then :
38862 enableval=$enable_sspi; case "$enableval" in
38864 if test "$ac_cv_native_windows" = "yes"; then
38865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38866 $as_echo "yes" >&6; }
38868 $as_echo "#define USE_WINDOWS_SSPI 1" >>confdefs.h
38872 curl_sspi_msg="enabled"
38874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38875 $as_echo "no" >&6; }
38876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&5
38877 $as_echo "$as_me: WARNING: --enable-sspi Ignored. Only supported on native Windows builds." >&2;}
38881 if test "x$WINSSL_ENABLED" = "x1"; then
38882 # --with-winssl implies --enable-sspi
38883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38884 $as_echo "yes" >&6; }
38886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38887 $as_echo "no" >&6; }
38892 if test "x$WINSSL_ENABLED" = "x1"; then
38893 # --with-winssl implies --enable-sspi
38894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38895 $as_echo "yes" >&6; }
38897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38898 $as_echo "no" >&6; }
38904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable cryptographic authentication methods" >&5
38905 $as_echo_n "checking whether to enable cryptographic authentication methods... " >&6; }
38906 # Check whether --enable-crypto-auth was given.
38907 if test "${enable_crypto_auth+set}" = set; then :
38908 enableval=$enable_crypto_auth; case "$enableval" in
38910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38911 $as_echo "no" >&6; }
38913 $as_echo "#define CURL_DISABLE_CRYPTO_AUTH 1" >>confdefs.h
38915 CURL_DISABLE_CRYPTO_AUTH=1
38917 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38918 $as_echo "yes" >&6; }
38922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38923 $as_echo "yes" >&6; }
38929 OPT_NTLM_WB="default"
38930 # Check whether --enable-ntlm-wb was given.
38931 if test "${enable_ntlm_wb+set}" = set; then :
38932 enableval=$enable_ntlm_wb; OPT_NTLM_WB=$enableval
38935 want_ntlm_wb_file="/usr/bin/ntlm_auth"
38936 case "$OPT_NTLM_WB" in
38945 if test -n "$enableval" && test "$enableval" != "yes"; then
38946 want_ntlm_wb_file="$enableval"
38953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable NTLM delegation to winbind's helper" >&5
38954 $as_echo_n "checking whether to enable NTLM delegation to winbind's helper... " >&6; }
38955 if test "$ac_cv_native_windows" = "yes" ||
38956 test "x$SSL_ENABLED" = "x"; then
38957 want_ntlm_wb_file=""
38960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $want_ntlm_wb" >&5
38961 $as_echo "$want_ntlm_wb" >&6; }
38962 if test "$want_ntlm_wb" = "yes"; then
38964 $as_echo "#define NTLM_WB_ENABLED 1" >>confdefs.h
38967 cat >>confdefs.h <<_ACEOF
38968 #define NTLM_WB_FILE "$want_ntlm_wb_file"
38975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable TLS-SRP authentication" >&5
38976 $as_echo_n "checking whether to enable TLS-SRP authentication... " >&6; }
38977 # Check whether --enable-tls-srp was given.
38978 if test "${enable_tls_srp+set}" = set; then :
38979 enableval=$enable_tls_srp; case "$enableval" in
38981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
38982 $as_echo "no" >&6; }
38984 $as_echo "#define CURL_DISABLE_TLS_SRP 1" >>confdefs.h
38988 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38989 $as_echo "yes" >&6; }
38994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
38995 $as_echo "yes" >&6; }
39001 if test "$want_tls_srp" = "yes" && ( test "x$HAVE_GNUTLS_SRP" = "x1" || test "x$HAVE_SSLEAY_SRP" = "x1") ; then
39003 $as_echo "#define USE_TLS_SRP 1" >>confdefs.h
39006 curl_tls_srp_msg="enabled"
39009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable Unix domain sockets" >&5
39010 $as_echo_n "checking whether to enable Unix domain sockets... " >&6; }
39011 # Check whether --enable-unix-sockets was given.
39012 if test "${enable_unix_sockets+set}" = set; then :
39013 enableval=$enable_unix_sockets; case "$enableval" in
39014 no) { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39015 $as_echo "no" >&6; }
39016 want_unix_sockets=no
39018 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39019 $as_echo "yes" >&6; }
39020 want_unix_sockets=yes
39025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5
39026 $as_echo "auto" >&6; }
39027 want_unix_sockets=auto
39032 if test "x$want_unix_sockets" != "xno"; then
39033 ac_fn_c_check_member "$LINENO" "struct sockaddr_un" "sun_path" "ac_cv_member_struct_sockaddr_un_sun_path" "
39034 #include <sys/un.h>
39037 if test "x$ac_cv_member_struct_sockaddr_un_sun_path" = xyes; then :
39040 $as_echo "#define USE_UNIX_SOCKETS 1" >>confdefs.h
39044 curl_unix_sockets_msg="enabled"
39048 if test "x$want_unix_sockets" = "xyes"; then
39049 as_fn_error $? "--enable-unix-sockets is not available on this platform!" "$LINENO" 5
39056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable support for cookies" >&5
39057 $as_echo_n "checking whether to enable support for cookies... " >&6; }
39058 # Check whether --enable-cookies was given.
39059 if test "${enable_cookies+set}" = set; then :
39060 enableval=$enable_cookies; case "$enableval" in
39062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39063 $as_echo "no" >&6; }
39065 $as_echo "#define CURL_DISABLE_COOKIES 1" >>confdefs.h
39068 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39069 $as_echo "yes" >&6; }
39073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39074 $as_echo "yes" >&6; }
39080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hiding of library internal symbols will actually happen" >&5
39081 $as_echo_n "checking whether hiding of library internal symbols will actually happen... " >&6; }
39082 CFLAG_CURL_SYMBOL_HIDING=""
39083 doing_symbol_hiding="no"
39084 if test x"$ac_cv_native_windows" != "xyes" &&
39085 test "$want_symbol_hiding" = "yes" &&
39086 test "$supports_symbol_hiding" = "yes"; then
39087 doing_symbol_hiding="yes"
39088 CFLAG_CURL_SYMBOL_HIDING="$symbol_hiding_CFLAGS"
39090 cat >>confdefs.h <<_ACEOF
39091 #define CURL_EXTERN_SYMBOL $symbol_hiding_EXTERN
39094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39095 $as_echo "yes" >&6; }
39097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39098 $as_echo "no" >&6; }
39100 if test x$doing_symbol_hiding = xyes; then
39101 DOING_CURL_SYMBOL_HIDING_TRUE=
39102 DOING_CURL_SYMBOL_HIDING_FALSE='#'
39104 DOING_CURL_SYMBOL_HIDING_TRUE='#'
39105 DOING_CURL_SYMBOL_HIDING_FALSE=
39112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enforce SONAME bump" >&5
39113 $as_echo_n "checking whether to enforce SONAME bump... " >&6; }
39114 # Check whether --enable-soname-bump was given.
39115 if test "${enable_soname_bump+set}" = set; then :
39116 enableval=$enable_soname_bump; case "$enableval" in
39117 yes) { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
39118 $as_echo "yes" >&6; }
39122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
39123 $as_echo "no" >&6; }
39127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $soname_bump" >&5
39128 $as_echo "$soname_bump" >&6; }
39132 if test x$soname_bump = xyes; then
39134 SONAME_BUMP_FALSE='#'
39136 SONAME_BUMP_TRUE='#'
39150 if test x$cross_compiling = xyes; then
39151 CROSSCOMPILING_TRUE=
39152 CROSSCOMPILING_FALSE='#'
39154 CROSSCOMPILING_TRUE='#'
39155 CROSSCOMPILING_FALSE=
39159 ENABLE_SHARED="$enable_shared"
39162 ENABLE_STATIC="$enable_static"
39167 if test "x$USE_SSLEAY" = "x1"; then
39168 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39169 elif test -n "$SSL_ENABLED"; then
39170 SUPPORT_FEATURES="$SUPPORT_FEATURES SSL"
39172 if test "x$IPV6_ENABLED" = "x1"; then
39173 SUPPORT_FEATURES="$SUPPORT_FEATURES IPv6"
39175 if test "x$USE_UNIX_SOCKETS" = "x1"; then
39176 SUPPORT_FEATURES="$SUPPORT_FEATURES UnixSockets"
39178 if test "x$HAVE_LIBZ" = "x1"; then
39179 SUPPORT_FEATURES="$SUPPORT_FEATURES libz"
39181 if test "x$USE_ARES" = "x1" -o "x$USE_THREADS_POSIX" = "x1"; then
39182 SUPPORT_FEATURES="$SUPPORT_FEATURES AsynchDNS"
39184 if test "x$IDN_ENABLED" = "x1"; then
39185 SUPPORT_FEATURES="$SUPPORT_FEATURES IDN"
39187 if test "x$USE_WINDOWS_SSPI" = "x1"; then
39188 SUPPORT_FEATURES="$SUPPORT_FEATURES SSPI"
39191 if test "x$HAVE_GSSAPI" = "x1"; then
39192 SUPPORT_FEATURES="$SUPPORT_FEATURES GSS-API"
39195 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39196 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39197 SUPPORT_FEATURES="$SUPPORT_FEATURES SPNEGO"
39200 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" -a \
39201 \( "x$HAVE_GSSAPI" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \); then
39202 SUPPORT_FEATURES="$SUPPORT_FEATURES Kerberos"
39205 if test "x$CURL_DISABLE_CRYPTO_AUTH" != "x1"; then
39206 if test "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39207 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39208 -o "x$DARWINSSL_ENABLED" = "x1"; then
39209 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM"
39211 if test "x$CURL_DISABLE_HTTP" != "x1" -a \
39212 "x$NTLM_WB_ENABLED" = "x1"; then
39213 SUPPORT_FEATURES="$SUPPORT_FEATURES NTLM_WB"
39218 if test "x$USE_TLS_SRP" = "x1"; then
39219 SUPPORT_FEATURES="$SUPPORT_FEATURES TLS-SRP"
39222 if test "x$USE_NGHTTP2" = "x1"; then
39223 SUPPORT_FEATURES="$SUPPORT_FEATURES HTTP2"
39228 if test "x$CURL_DISABLE_HTTP" != "x1"; then
39229 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTP"
39230 if test "x$SSL_ENABLED" = "x1"; then
39231 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS HTTPS"
39234 if test "x$CURL_DISABLE_FTP" != "x1"; then
39235 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTP"
39236 if test "x$SSL_ENABLED" = "x1"; then
39237 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FTPS"
39240 if test "x$CURL_DISABLE_FILE" != "x1"; then
39241 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS FILE"
39243 if test "x$CURL_DISABLE_TELNET" != "x1"; then
39244 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TELNET"
39246 if test "x$CURL_DISABLE_LDAP" != "x1"; then
39247 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAP"
39248 if test "x$CURL_DISABLE_LDAPS" != "x1"; then
39249 if (test "x$USE_OPENLDAP" = "x1" && test "x$SSL_ENABLED" = "x1") ||
39250 (test "x$USE_OPENLDAP" != "x1" && test "x$HAVE_LDAP_SSL" = "x1"); then
39251 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS LDAPS"
39255 if test "x$CURL_DISABLE_DICT" != "x1"; then
39256 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS DICT"
39258 if test "x$CURL_DISABLE_TFTP" != "x1"; then
39259 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS TFTP"
39261 if test "x$CURL_DISABLE_GOPHER" != "x1"; then
39262 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS GOPHER"
39264 if test "x$CURL_DISABLE_POP3" != "x1"; then
39265 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3"
39266 if test "x$SSL_ENABLED" = "x1"; then
39267 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS POP3S"
39270 if test "x$CURL_DISABLE_IMAP" != "x1"; then
39271 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAP"
39272 if test "x$SSL_ENABLED" = "x1"; then
39273 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS IMAPS"
39276 if test "x$CURL_DISABLE_SMB" != "x1" \
39277 -a "x$CURL_DISABLE_CRYPTO_AUTH" != "x1" \
39278 -a \( "x$USE_SSLEAY" = "x1" -o "x$USE_WINDOWS_SSPI" = "x1" \
39279 -o "x$GNUTLS_ENABLED" = "x1" -o "x$NSS_ENABLED" = "x1" \
39280 -o "x$DARWINSSL_ENABLED" = "x1" \); then
39281 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMB"
39282 if test "x$SSL_ENABLED" = "x1"; then
39283 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMBS"
39286 if test "x$CURL_DISABLE_SMTP" != "x1"; then
39287 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTP"
39288 if test "x$SSL_ENABLED" = "x1"; then
39289 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SMTPS"
39292 if test "x$USE_LIBSSH2" = "x1"; then
39293 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SCP"
39294 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS SFTP"
39296 if test "x$CURL_DISABLE_RTSP" != "x1"; then
39297 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTSP"
39299 if test "x$USE_LIBRTMP" = "x1"; then
39300 SUPPORT_PROTOCOLS="$SUPPORT_PROTOCOLS RTMP"
39303 SUPPORT_PROTOCOLS=`echo $SUPPORT_PROTOCOLS | tr ' ' '\012' | sort | tr '\012' ' '`
39314 squeeze LIBCURL_LIBS
39315 squeeze CURL_NETWORK_LIBS
39316 squeeze CURL_NETWORK_AND_TIME_LIBS
39318 squeeze SUPPORT_FEATURES
39319 squeeze SUPPORT_PROTOCOLS
39324 for xc_word in $LIBS; do
39330 xc_bad_var_libs=yes
39334 if test $xc_bad_var_libs = yes; then
39335 { $as_echo "$as_me:${as_lineno-$LINENO}: using LIBS: $LIBS" >&5
39336 $as_echo "$as_me: using LIBS: $LIBS" >&6;}
39337 { $as_echo "$as_me:${as_lineno-$LINENO}: LIBS note: LIBS should only be used to specify libraries (-lname)." >&5
39338 $as_echo "$as_me: LIBS note: LIBS should only be used to specify libraries (-lname)." >&6;}
39342 xc_bad_var_ldflags=no
39343 for xc_word in $LDFLAGS; do
39346 xc_bad_var_ldflags=yes
39349 xc_bad_var_ldflags=yes
39352 xc_bad_var_ldflags=yes
39355 xc_bad_var_ldflags=yes
39359 if test $xc_bad_var_ldflags = yes; then
39360 { $as_echo "$as_me:${as_lineno-$LINENO}: using LDFLAGS: $LDFLAGS" >&5
39361 $as_echo "$as_me: using LDFLAGS: $LDFLAGS" >&6;}
39362 xc_bad_var_msg="LDFLAGS note: LDFLAGS should only be used to specify linker flags, not"
39363 for xc_word in $LDFLAGS; do
39366 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39367 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39370 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39371 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39374 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39375 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39378 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39379 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39386 xc_bad_var_cppflags=no
39387 for xc_word in $CPPFLAGS; do
39390 xc_bad_var_cppflags=yes
39392 -L* | --library-path=*)
39393 xc_bad_var_cppflags=yes
39396 xc_bad_var_cppflags=yes
39400 if test $xc_bad_var_cppflags = yes; then
39401 { $as_echo "$as_me:${as_lineno-$LINENO}: using CPPFLAGS: $CPPFLAGS" >&5
39402 $as_echo "$as_me: using CPPFLAGS: $CPPFLAGS" >&6;}
39403 xc_bad_var_msg="CPPFLAGS note: CPPFLAGS should only be used to specify C preprocessor flags, not"
39404 for xc_word in $CPPFLAGS; do
39407 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39408 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39410 -L* | --library-path=*)
39411 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39412 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39415 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39416 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39423 xc_bad_var_cflags=no
39424 for xc_word in $CFLAGS; do
39427 xc_bad_var_cflags=yes
39430 xc_bad_var_cflags=yes
39433 xc_bad_var_cflags=yes
39436 xc_bad_var_cflags=yes
39438 -L* | --library-path=*)
39439 xc_bad_var_cflags=yes
39442 xc_bad_var_cflags=yes
39446 if test $xc_bad_var_cflags = yes; then
39447 { $as_echo "$as_me:${as_lineno-$LINENO}: using CFLAGS: $CFLAGS" >&5
39448 $as_echo "$as_me: using CFLAGS: $CFLAGS" >&6;}
39449 xc_bad_var_msg="CFLAGS note: CFLAGS should only be used to specify C compiler flags, not"
39450 for xc_word in $CFLAGS; do
39453 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&5
39454 $as_echo "$as_me: $xc_bad_var_msg macro definitions. Use CPPFLAGS for: $xc_word" >&6;}
39457 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&5
39458 $as_echo "$as_me: $xc_bad_var_msg macro suppressions. Use CPPFLAGS for: $xc_word" >&6;}
39461 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&5
39462 $as_echo "$as_me: $xc_bad_var_msg include directories. Use CPPFLAGS for: $xc_word" >&6;}
39465 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&5
39466 $as_echo "$as_me: $xc_bad_var_msg library runtime directories. Use LDFLAGS for: $xc_word" >&6;}
39468 -L* | --library-path=*)
39469 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&5
39470 $as_echo "$as_me: $xc_bad_var_msg library directories. Use LDFLAGS for: $xc_word" >&6;}
39473 { $as_echo "$as_me:${as_lineno-$LINENO}: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&5
39474 $as_echo "$as_me: $xc_bad_var_msg libraries. Use LIBS for: $xc_word" >&6;}
39480 if test $xc_bad_var_libs = yes ||
39481 test $xc_bad_var_cflags = yes ||
39482 test $xc_bad_var_ldflags = yes ||
39483 test $xc_bad_var_cppflags = yes; then
39484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Continuing even with errors mentioned immediately above this line." >&5
39485 $as_echo "$as_me: WARNING: Continuing even with errors mentioned immediately above this line." >&2;}
39489 if test "x$want_curldebug_assumed" = "xyes" &&
39490 test "x$want_curldebug" = "xyes" && test "x$USE_ARES" = "x1"; then
39491 ac_configure_args="$ac_configure_args --enable-curldebug"
39494 ac_config_files="$ac_config_files Makefile docs/Makefile docs/examples/Makefile docs/libcurl/Makefile docs/libcurl/opts/Makefile include/Makefile include/curl/Makefile src/Makefile lib/Makefile lib/libcurl.vers tests/Makefile tests/certs/Makefile tests/certs/scripts/Makefile tests/data/Makefile tests/server/Makefile tests/libtest/Makefile tests/unit/Makefile packages/Makefile packages/Win32/Makefile packages/Win32/cygwin/Makefile packages/Linux/Makefile packages/Linux/RPM/Makefile packages/Linux/RPM/curl.spec packages/Linux/RPM/curl-ssl.spec packages/Solaris/Makefile packages/EPM/curl.list packages/EPM/Makefile packages/vms/Makefile packages/AIX/Makefile packages/AIX/RPM/Makefile packages/AIX/RPM/curl.spec curl-config libcurl.pc"
39496 cat >confcache <<\_ACEOF
39497 # This file is a shell script that caches the results of configure
39498 # tests run on this system so they can be shared between configure
39499 # scripts and configure runs, see configure's option --config-cache.
39500 # It is not useful on other systems. If it contains results you don't
39501 # want to keep, you may remove or edit it.
39503 # config.status only pays attention to the cache file if you give it
39504 # the --recheck option to rerun configure.
39506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
39507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
39508 # following values.
39512 # The following way of writing the cache mishandles newlines in values,
39513 # but we know of no workaround that is simple, portable, and efficient.
39514 # So, we kill variables containing newlines.
39515 # Ultrix sh set writes to stderr and can't be redirected directly,
39516 # and sets the high bit in the cache file unless we assign to the vars.
39518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
39519 eval ac_val=\$$ac_var
39523 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
39524 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
39527 _ | IFS | as_nl) ;; #(
39528 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
39529 *) { eval $ac_var=; unset $ac_var;} ;;
39535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
39536 *${as_nl}ac_space=\ *)
39537 # `set' does not quote correctly, so add quotes: double-quote
39538 # substitution turns \\\\ into \\, and sed turns \\ into \.
39541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
39544 # `set' quotes correctly as required by POSIX, so do not add quotes.
39545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
39554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
39556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
39558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
39559 if test -w "$cache_file"; then
39560 if test "x$cache_file" != "x/dev/null"; then
39561 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
39562 $as_echo "$as_me: updating cache $cache_file" >&6;}
39563 if test ! -f "$cache_file" || test -h "$cache_file"; then
39564 cat confcache >"$cache_file"
39566 case $cache_file in #(
39568 mv -f confcache "$cache_file"$$ &&
39569 mv -f "$cache_file"$$ "$cache_file" ;; #(
39571 mv -f confcache "$cache_file" ;;
39576 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
39577 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
39582 test "x$prefix" = xNONE && prefix=$ac_default_prefix
39583 # Let make expand exec_prefix.
39584 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
39586 DEFS=-DHAVE_CONFIG_H
39591 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
39592 # 1. Remove the extension, and $U if already installed.
39593 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
39594 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
39595 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
39596 # will be set to the directory where LIBOBJS objects are built.
39597 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
39598 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
39600 LIBOBJS=$ac_libobjs
39602 LTLIBOBJS=$ac_ltlibobjs
39605 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
39606 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
39607 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
39610 $as_echo_n "checking that generated files are newer than configure... " >&6; }
39611 if test -n "$am_sleep_pid"; then
39612 # Hide warnings about reused PIDs.
39613 wait $am_sleep_pid 2>/dev/null
39615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
39616 $as_echo "done" >&6; }
39617 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
39618 as_fn_error $? "conditional \"AMDEP\" was never defined.
39619 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39621 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
39622 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
39623 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39625 if test -n "$EXEEXT"; then
39627 am__EXEEXT_FALSE='#'
39629 am__EXEEXT_TRUE='#'
39633 if test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSION_INFO_FALSE}"; then
39634 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSION_INFO\" was never defined.
39635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39637 if test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_TRUE}" && test -z "${CURL_LT_SHLIB_USE_NO_UNDEFINED_FALSE}"; then
39638 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_NO_UNDEFINED\" was never defined.
39639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39641 if test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_TRUE}" && test -z "${CURL_LT_SHLIB_USE_MIMPURE_TEXT_FALSE}"; then
39642 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_MIMPURE_TEXT\" was never defined.
39643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39645 if test -z "${USE_CPPFLAG_CURL_STATICLIB_TRUE}" && test -z "${USE_CPPFLAG_CURL_STATICLIB_FALSE}"; then
39646 as_fn_error $? "conditional \"USE_CPPFLAG_CURL_STATICLIB\" was never defined.
39647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39649 if test -z "${USE_EXPLICIT_LIB_DEPS_TRUE}" && test -z "${USE_EXPLICIT_LIB_DEPS_FALSE}"; then
39650 as_fn_error $? "conditional \"USE_EXPLICIT_LIB_DEPS\" was never defined.
39651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39653 if test -z "${CURLDEBUG_TRUE}" && test -z "${CURLDEBUG_FALSE}"; then
39654 as_fn_error $? "conditional \"CURLDEBUG\" was never defined.
39655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39657 if test -z "${BUILD_UNITTESTS_TRUE}" && test -z "${BUILD_UNITTESTS_FALSE}"; then
39658 as_fn_error $? "conditional \"BUILD_UNITTESTS\" was never defined.
39659 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39661 if test -z "${DOING_NATIVE_WINDOWS_TRUE}" && test -z "${DOING_NATIVE_WINDOWS_FALSE}"; then
39662 as_fn_error $? "conditional \"DOING_NATIVE_WINDOWS\" was never defined.
39663 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39665 if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
39666 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
39667 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39669 if test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_TRUE}" && test -z "${CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS_FALSE}"; then
39670 as_fn_error $? "conditional \"CURL_LT_SHLIB_USE_VERSIONED_SYMBOLS\" was never defined.
39671 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39673 if test -z "${USE_MANUAL_TRUE}" && test -z "${USE_MANUAL_FALSE}"; then
39674 as_fn_error $? "conditional \"USE_MANUAL\" was never defined.
39675 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39677 if test -z "${USE_EMBEDDED_ARES_TRUE}" && test -z "${USE_EMBEDDED_ARES_FALSE}"; then
39678 as_fn_error $? "conditional \"USE_EMBEDDED_ARES\" was never defined.
39679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39681 if test -z "${BUILD_LIBHOSTNAME_TRUE}" && test -z "${BUILD_LIBHOSTNAME_FALSE}"; then
39682 as_fn_error $? "conditional \"BUILD_LIBHOSTNAME\" was never defined.
39683 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39685 if test -z "${DOING_CURL_SYMBOL_HIDING_TRUE}" && test -z "${DOING_CURL_SYMBOL_HIDING_FALSE}"; then
39686 as_fn_error $? "conditional \"DOING_CURL_SYMBOL_HIDING\" was never defined.
39687 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39689 if test -z "${SONAME_BUMP_TRUE}" && test -z "${SONAME_BUMP_FALSE}"; then
39690 as_fn_error $? "conditional \"SONAME_BUMP\" was never defined.
39691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39693 if test -z "${CROSSCOMPILING_TRUE}" && test -z "${CROSSCOMPILING_FALSE}"; then
39694 as_fn_error $? "conditional \"CROSSCOMPILING\" was never defined.
39695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
39698 : "${CONFIG_STATUS=./config.status}"
39700 ac_clean_files_save=$ac_clean_files
39701 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
39702 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
39703 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
39705 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
39707 # Generated by $as_me.
39708 # Run this file to recreate the current configuration.
39709 # Compiler output produced by configure, useful for debugging
39710 # configure, is in config.log if it exists.
39713 ac_cs_recheck=false
39716 SHELL=\${CONFIG_SHELL-$SHELL}
39719 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
39720 ## -------------------- ##
39721 ## M4sh Initialization. ##
39722 ## -------------------- ##
39724 # Be more Bourne compatible
39725 DUALCASE=1; export DUALCASE # for MKS sh
39726 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
39729 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
39730 # is contrary to our usage. Disable this feature.
39731 alias -g '${1+"$@"}'='"$@"'
39732 setopt NO_GLOB_SUBST
39734 case `(set -o) 2>/dev/null` in #(
39746 # Printing a long string crashes Solaris 7 /usr/bin/printf.
39747 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39748 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
39749 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
39750 # Prefer a ksh shell builtin over an external printf program on Solaris,
39751 # but without wasting forks for bash or zsh.
39752 if test -z "$BASH_VERSION$ZSH_VERSION" \
39753 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
39754 as_echo='print -r --'
39755 as_echo_n='print -rn --'
39756 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
39757 as_echo='printf %s\n'
39758 as_echo_n='printf %s'
39760 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
39761 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
39762 as_echo_n='/usr/ucb/echo -n'
39764 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
39765 as_echo_n_body='eval
39769 expr "X$arg" : "X\\(.*\\)$as_nl";
39770 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
39772 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
39774 export as_echo_n_body
39775 as_echo_n='sh -c $as_echo_n_body as_echo'
39777 export as_echo_body
39778 as_echo='sh -c $as_echo_body as_echo'
39784 # We need space, tab and new line, in precisely that order. Quoting is
39785 # there to prevent editors from complaining about space-tab.
39786 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
39787 # splitting by setting IFS to empty value.)
39790 # Find who we are. Look in the path if we contain no directory separator.
39793 *[\\/]* ) as_myself=$0 ;;
39794 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
39795 for as_dir in $PATH
39798 test -z "$as_dir" && as_dir=.
39799 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
39805 # We did not find ourselves, most probably we were run as `sh COMMAND'
39806 # in which case we are not to be found in the path.
39807 if test "x$as_myself" = x; then
39810 if test ! -f "$as_myself"; then
39811 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
39815 # Unset variables that we do not need and which cause bugs (e.g. in
39816 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
39817 # suppresses any "Segmentation fault" message there. '((' could
39818 # trigger a bug in pdksh 5.2.14.
39819 for as_var in BASH_ENV ENV MAIL MAILPATH
39820 do eval test x\${$as_var+set} = xset \
39821 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
39834 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
39837 # as_fn_error STATUS ERROR [LINENO LOG_FD]
39838 # ----------------------------------------
39839 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
39840 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
39841 # script with STATUS, using 1 if that was 0.
39844 as_status=$1; test $as_status -eq 0 && as_status=1
39846 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
39847 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
39849 $as_echo "$as_me: error: $2" >&2
39850 as_fn_exit $as_status
39854 # as_fn_set_status STATUS
39855 # -----------------------
39856 # Set $? to STATUS, without forking.
39857 as_fn_set_status ()
39860 } # as_fn_set_status
39862 # as_fn_exit STATUS
39863 # -----------------
39864 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
39868 as_fn_set_status $1
39874 # Portably unset VAR.
39877 { eval $1=; unset $1;}
39879 as_unset=as_fn_unset
39880 # as_fn_append VAR VALUE
39881 # ----------------------
39882 # Append the text in VALUE to the end of the definition contained in VAR. Take
39883 # advantage of any shell optimizations that allow amortized linear growth over
39884 # repeated appends, instead of the typical quadratic growth present in naive
39886 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
39887 eval 'as_fn_append ()
39898 # as_fn_arith ARG...
39899 # ------------------
39900 # Perform arithmetic evaluation on the ARGs, and store the result in the
39901 # global $as_val. Take advantage of shells that can avoid forks. The arguments
39902 # must be portable across $(()) and expr.
39903 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
39904 eval 'as_fn_arith ()
39911 as_val=`expr "$@" || test $? -eq 1`
39916 if expr a : '\(a\)' >/dev/null 2>&1 &&
39917 test "X`expr 00001 : '.*\(...\)'`" = X001; then
39923 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
39924 as_basename=basename
39929 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
39935 as_me=`$as_basename -- "$0" ||
39936 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
39937 X"$0" : 'X\(//\)$' \| \
39938 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
39940 sed '/^.*\/\([^/][^/]*\)\/*$/{
39954 # Avoid depending upon Character Ranges.
39955 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
39956 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
39957 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39958 as_cr_digits='0123456789'
39959 as_cr_alnum=$as_cr_Letters$as_cr_digits
39961 ECHO_C= ECHO_N= ECHO_T=
39962 case `echo -n x` in #(((((
39964 case `echo 'xy\c'` in
39965 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
39967 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
39974 rm -f conf$$ conf$$.exe conf$$.file
39975 if test -d conf$$.dir; then
39976 rm -f conf$$.dir/conf$$.file
39979 mkdir conf$$.dir 2>/dev/null
39981 if (echo >conf$$.file) 2>/dev/null; then
39982 if ln -s conf$$.file conf$$ 2>/dev/null; then
39984 # ... but there are two gotchas:
39985 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
39986 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
39987 # In both cases, we have to default to `cp -pR'.
39988 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
39990 elif ln conf$$.file conf$$ 2>/dev/null; then
39998 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
39999 rmdir conf$$.dir 2>/dev/null
40004 # Create "$as_dir" as a directory, including parents if necessary.
40009 -*) as_dir=./$as_dir;;
40011 test -d "$as_dir" || eval $as_mkdir_p || {
40015 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
40016 *) as_qdir=$as_dir;;
40018 as_dirs="'$as_qdir' $as_dirs"
40019 as_dir=`$as_dirname -- "$as_dir" ||
40020 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40021 X"$as_dir" : 'X\(//\)[^/]' \| \
40022 X"$as_dir" : 'X\(//\)$' \| \
40023 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
40024 $as_echo X"$as_dir" |
40025 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40029 /^X\(\/\/\)[^/].*/{
40042 test -d "$as_dir" && break
40044 test -z "$as_dirs" || eval "mkdir $as_dirs"
40045 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
40049 if mkdir -p . 2>/dev/null; then
40050 as_mkdir_p='mkdir -p "$as_dir"'
40052 test -d ./-p && rmdir ./-p
40057 # as_fn_executable_p FILE
40058 # -----------------------
40059 # Test if FILE is an executable regular file.
40060 as_fn_executable_p ()
40062 test -f "$1" && test -x "$1"
40063 } # as_fn_executable_p
40064 as_test_x='test -x'
40065 as_executable_p=as_fn_executable_p
40067 # Sed expression to map a string onto a valid CPP name.
40068 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
40070 # Sed expression to map a string onto a valid variable name.
40071 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
40075 ## ----------------------------------- ##
40076 ## Main body of $CONFIG_STATUS script. ##
40077 ## ----------------------------------- ##
40079 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
40081 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40082 # Save the log message, to keep $0 and so on meaningful, and to
40083 # report actual input values of CONFIG_FILES etc. instead of their
40084 # values after options handling.
40086 This file was extended by curl $as_me -, which was
40087 generated by GNU Autoconf 2.69. Invocation command line was
40089 CONFIG_FILES = $CONFIG_FILES
40090 CONFIG_HEADERS = $CONFIG_HEADERS
40091 CONFIG_LINKS = $CONFIG_LINKS
40092 CONFIG_COMMANDS = $CONFIG_COMMANDS
40095 on `(hostname || uname -n) 2>/dev/null | sed 1q`
40100 case $ac_config_files in *"
40101 "*) set x $ac_config_files; shift; ac_config_files=$*;;
40104 case $ac_config_headers in *"
40105 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
40109 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40110 # Files that config.status was made for.
40111 config_files="$ac_config_files"
40112 config_headers="$ac_config_headers"
40113 config_commands="$ac_config_commands"
40117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40119 \`$as_me' instantiates files and other configuration actions
40120 from templates according to the current configuration. Unless the files
40121 and actions are specified as TAGs, all are instantiated by default.
40123 Usage: $0 [OPTION]... [TAG]...
40125 -h, --help print this help, then exit
40126 -V, --version print version number and configuration settings, then exit
40127 --config print configuration, then exit
40128 -q, --quiet, --silent
40129 do not print progress messages
40130 -d, --debug don't remove temporary files
40131 --recheck update $as_me by reconfiguring in the same conditions
40132 --file=FILE[:TEMPLATE]
40133 instantiate the configuration file FILE
40134 --header=FILE[:TEMPLATE]
40135 instantiate the configuration header FILE
40137 Configuration files:
40140 Configuration headers:
40143 Configuration commands:
40146 Report bugs to <a suitable curl mailing list: http://curl.haxx.se/mail/>."
40149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
40152 curl config.status -
40153 configured by $0, generated by GNU Autoconf 2.69,
40154 with options \\"\$ac_cs_config\\"
40156 Copyright (C) 2012 Free Software Foundation, Inc.
40157 This config.status script is free software; the Free Software Foundation
40158 gives unlimited permission to copy, distribute and modify it."
40165 test -n "\$AWK" || AWK=awk
40168 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40169 # The default lists apply if the user does not specify any file.
40175 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40176 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
40180 ac_option=`expr "X$1" : 'X\([^=]*\)='`
40192 # Handling of the options.
40193 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
40195 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
40196 $as_echo "$ac_cs_version"; exit ;;
40197 --config | --confi | --conf | --con | --co | --c )
40198 $as_echo "$ac_cs_config"; exit ;;
40199 --debug | --debu | --deb | --de | --d | -d )
40201 --file | --fil | --fi | --f )
40204 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40205 '') as_fn_error $? "missing file argument" ;;
40207 as_fn_append CONFIG_FILES " '$ac_optarg'"
40208 ac_need_defaults=false;;
40209 --header | --heade | --head | --hea )
40212 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
40214 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
40215 ac_need_defaults=false;;
40217 # Conflict between --help and --header
40218 as_fn_error $? "ambiguous option: \`$1'
40219 Try \`$0 --help' for more information.";;
40220 --help | --hel | -h )
40221 $as_echo "$ac_cs_usage"; exit ;;
40222 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
40223 | -silent | --silent | --silen | --sile | --sil | --si | --s)
40226 # This is an error.
40227 -*) as_fn_error $? "unrecognized option: \`$1'
40228 Try \`$0 --help' for more information." ;;
40230 *) as_fn_append ac_config_targets " $1"
40231 ac_need_defaults=false ;;
40237 ac_configure_extra_args=
40239 if $ac_cs_silent; then
40241 ac_configure_extra_args="$ac_configure_extra_args --silent"
40245 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40246 if \$ac_cs_recheck; then
40247 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
40249 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
40250 CONFIG_SHELL='$SHELL'
40251 export CONFIG_SHELL
40256 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40260 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
40261 ## Running $as_me. ##
40267 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40271 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
40274 # The HP-UX ksh and POSIX shell print the target directory to stdout
40275 # if CDPATH is set.
40276 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
40278 sed_quote_subst='$sed_quote_subst'
40279 double_quote_subst='$double_quote_subst'
40280 delay_variable_subst='$delay_variable_subst'
40281 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
40282 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
40283 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
40284 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
40285 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
40286 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
40287 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
40288 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
40289 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
40290 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
40291 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
40292 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
40293 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
40294 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
40295 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
40296 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
40297 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
40298 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
40299 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
40300 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
40301 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
40302 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
40303 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
40304 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
40305 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
40306 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
40307 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
40308 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
40309 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
40310 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
40311 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
40312 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
40313 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
40314 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
40315 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
40316 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
40317 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
40318 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
40319 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
40320 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
40321 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
40322 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
40323 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
40324 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
40325 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
40326 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
40327 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40328 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40329 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
40330 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
40331 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
40332 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
40333 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
40334 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
40335 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
40336 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
40337 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
40338 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"`'
40339 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
40340 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
40341 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
40342 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
40343 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
40344 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
40345 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
40346 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
40347 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
40348 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
40349 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
40350 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
40351 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
40352 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
40353 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
40354 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
40355 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
40356 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
40357 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40358 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
40359 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
40360 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
40361 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
40362 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
40363 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
40364 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
40365 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
40366 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40367 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
40368 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
40369 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
40370 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
40371 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
40372 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
40373 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
40374 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
40375 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
40376 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
40377 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
40378 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
40379 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
40380 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
40381 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
40382 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
40383 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
40384 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
40385 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
40386 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
40387 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
40388 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
40389 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
40390 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
40391 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
40392 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
40393 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
40394 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
40395 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
40396 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
40397 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
40398 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
40399 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
40400 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
40401 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
40402 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
40403 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
40404 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
40405 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
40406 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
40407 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
40408 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
40409 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
40410 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
40411 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
40414 LTCFLAGS='$LTCFLAGS'
40415 compiler='$compiler_DEFAULT'
40417 # A function that is used when there is no print builtin or printf.
40418 func_fallback_echo ()
40420 eval 'cat <<_LTECHO_EOF
40425 # Quote evaled strings.
40442 deplibs_check_method \
40446 sharedlib_from_linklib_cmd \
40449 archiver_list_spec \
40455 lt_cv_sys_global_symbol_pipe \
40456 lt_cv_sys_global_symbol_to_cdecl \
40457 lt_cv_sys_global_symbol_to_c_name_address \
40458 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
40459 nm_file_list_spec \
40460 lt_prog_compiler_no_builtin_flag \
40461 lt_prog_compiler_pic \
40462 lt_prog_compiler_wl \
40463 lt_prog_compiler_static \
40464 lt_cv_prog_compiler_c_o \
40473 export_dynamic_flag_spec \
40474 whole_archive_flag_spec \
40475 compiler_needs_object \
40477 allow_undefined_flag \
40478 no_undefined_flag \
40479 hardcode_libdir_flag_spec \
40480 hardcode_libdir_separator \
40484 variables_saved_for_relink \
40486 library_names_spec \
40488 install_override_mode \
40492 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40493 *[\\\\\\\`\\"\\\$]*)
40494 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
40497 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40502 # Double-quote double-evaled strings.
40503 for var in reload_cmds \
40504 old_postinstall_cmds \
40505 old_postuninstall_cmds \
40507 extract_expsyms_cmds \
40508 old_archive_from_new_cmds \
40509 old_archive_from_expsyms_cmds \
40511 archive_expsym_cmds \
40513 module_expsym_cmds \
40514 export_symbols_cmds \
40518 postuninstall_cmds \
40520 sys_lib_search_path_spec \
40521 sys_lib_dlsearch_path_spec; do
40522 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
40523 *[\\\\\\\`\\"\\\$]*)
40524 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
40527 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
40532 ac_aux_dir='$ac_aux_dir'
40533 xsi_shell='$xsi_shell'
40534 lt_shell_append='$lt_shell_append'
40536 # See if we are running on zsh, and set the options which allow our
40537 # commands through without removal of \ escapes INIT.
40538 if test -n "\${ZSH_VERSION+set}" ; then
40539 setopt NO_GLOB_SUBST
40545 TIMESTAMP='$TIMESTAMP'
40554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40556 # Handling of arguments.
40557 for ac_config_target in $ac_config_targets
40559 case $ac_config_target in
40560 "lib/curl_config.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/curl_config.h" ;;
40561 "include/curl/curlbuild.h") CONFIG_HEADERS="$CONFIG_HEADERS include/curl/curlbuild.h" ;;
40562 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
40563 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
40564 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
40565 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
40566 "docs/examples/Makefile") CONFIG_FILES="$CONFIG_FILES docs/examples/Makefile" ;;
40567 "docs/libcurl/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/Makefile" ;;
40568 "docs/libcurl/opts/Makefile") CONFIG_FILES="$CONFIG_FILES docs/libcurl/opts/Makefile" ;;
40569 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
40570 "include/curl/Makefile") CONFIG_FILES="$CONFIG_FILES include/curl/Makefile" ;;
40571 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
40572 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
40573 "lib/libcurl.vers") CONFIG_FILES="$CONFIG_FILES lib/libcurl.vers" ;;
40574 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
40575 "tests/certs/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/Makefile" ;;
40576 "tests/certs/scripts/Makefile") CONFIG_FILES="$CONFIG_FILES tests/certs/scripts/Makefile" ;;
40577 "tests/data/Makefile") CONFIG_FILES="$CONFIG_FILES tests/data/Makefile" ;;
40578 "tests/server/Makefile") CONFIG_FILES="$CONFIG_FILES tests/server/Makefile" ;;
40579 "tests/libtest/Makefile") CONFIG_FILES="$CONFIG_FILES tests/libtest/Makefile" ;;
40580 "tests/unit/Makefile") CONFIG_FILES="$CONFIG_FILES tests/unit/Makefile" ;;
40581 "packages/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Makefile" ;;
40582 "packages/Win32/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/Makefile" ;;
40583 "packages/Win32/cygwin/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Win32/cygwin/Makefile" ;;
40584 "packages/Linux/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/Makefile" ;;
40585 "packages/Linux/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/Makefile" ;;
40586 "packages/Linux/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl.spec" ;;
40587 "packages/Linux/RPM/curl-ssl.spec") CONFIG_FILES="$CONFIG_FILES packages/Linux/RPM/curl-ssl.spec" ;;
40588 "packages/Solaris/Makefile") CONFIG_FILES="$CONFIG_FILES packages/Solaris/Makefile" ;;
40589 "packages/EPM/curl.list") CONFIG_FILES="$CONFIG_FILES packages/EPM/curl.list" ;;
40590 "packages/EPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/EPM/Makefile" ;;
40591 "packages/vms/Makefile") CONFIG_FILES="$CONFIG_FILES packages/vms/Makefile" ;;
40592 "packages/AIX/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/Makefile" ;;
40593 "packages/AIX/RPM/Makefile") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/Makefile" ;;
40594 "packages/AIX/RPM/curl.spec") CONFIG_FILES="$CONFIG_FILES packages/AIX/RPM/curl.spec" ;;
40595 "curl-config") CONFIG_FILES="$CONFIG_FILES curl-config" ;;
40596 "libcurl.pc") CONFIG_FILES="$CONFIG_FILES libcurl.pc" ;;
40598 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
40603 # If the user did not use the arguments to specify the items to instantiate,
40604 # then the envvar interface is used. Set only those that are not.
40605 # We use the long form for the default assignment because of an extremely
40606 # bizarre bug on SunOS 4.1.3.
40607 if $ac_need_defaults; then
40608 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
40609 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
40610 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
40613 # Have a temporary directory for convenience. Make it in the build tree
40614 # simply because there is no reason against having it here, and in addition,
40615 # creating and moving files from /tmp can sometimes cause problems.
40616 # Hook for its removal unless debugging.
40617 # Note that there is a small window in which the directory will not be cleaned:
40618 # after its creation but before its name has been assigned to `$tmp'.
40622 trap 'exit_status=$?
40623 : "${ac_tmp:=$tmp}"
40624 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
40626 trap 'as_fn_exit 1' 1 2 13 15
40628 # Create a (secure) tmp directory for tmp files.
40631 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
40635 tmp=./conf$$-$RANDOM
40636 (umask 077 && mkdir "$tmp")
40637 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
40640 # Set up the scripts for CONFIG_FILES section.
40641 # No need to generate them if there are no CONFIG_FILES.
40642 # This happens for instance with `./config.status config.h'.
40643 if test -n "$CONFIG_FILES"; then
40646 ac_cr=`echo X | tr X '\015'`
40647 # On cygwin, bash can eat \r inside `` if the user requested igncr.
40648 # But we know of no other shell where ac_cr would be empty at this
40649 # point, so we can use a bashism as a fallback.
40650 if test "x$ac_cr" = x; then
40651 eval ac_cr=\$\'\\r\'
40653 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
40654 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
40657 ac_cs_awk_cr=$ac_cr
40660 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
40665 echo "cat >conf$$subs.awk <<_ACEOF" &&
40666 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
40668 } >conf$$subs.sh ||
40669 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40670 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
40672 for ac_last_try in false false false false false :; do
40673 . ./conf$$subs.sh ||
40674 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40676 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
40677 if test $ac_delim_n = $ac_delim_num; then
40679 elif $ac_last_try; then
40680 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
40682 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40685 rm -f conf$$subs.sh
40687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40688 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
40692 s/^/S["/; s/!.*/"]=/
40702 s/\(.\{148\}\)..*/\1/
40704 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
40709 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40716 s/\(.\{148\}\)..*/\1/
40718 s/["\\]/\\&/g; s/^/"/; s/$/"/
40722 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
40727 ' <conf$$subs.awk | sed '
40732 ' >>$CONFIG_STATUS || ac_write_fail=1
40733 rm -f conf$$subs.awk
40734 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40736 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
40737 for (key in S) S_is_set[key] = 1
40743 nfields = split(line, field, "@")
40745 len = length(field[1])
40746 for (i = 2; i < nfields; i++) {
40748 keylen = length(key)
40749 if (S_is_set[key]) {
40751 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
40752 len += length(value) + length(field[++i])
40763 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40764 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
40765 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
40768 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
40769 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
40772 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
40773 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
40774 # trailing colons and then remove the whole line if VPATH becomes empty
40775 # (actually we leave an empty line to preserve line numbers).
40776 if test "x$srcdir" = x.; then
40777 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
40795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40796 fi # test -n "$CONFIG_FILES"
40798 # Set up the scripts for CONFIG_HEADERS section.
40799 # No need to generate them if there are no CONFIG_HEADERS.
40800 # This happens for instance with `./config.status Makefile'.
40801 if test -n "$CONFIG_HEADERS"; then
40802 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
40806 # Transform confdefs.h into an awk script `defines.awk', embedded as
40807 # here-document in config.status, that substitutes the proper values into
40808 # config.h.in to produce config.h.
40810 # Create a delimiter string that does not exist in confdefs.h, to ease
40811 # handling of long lines.
40813 for ac_last_try in false false :; do
40814 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
40815 if test -z "$ac_tt"; then
40817 elif $ac_last_try; then
40818 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
40820 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
40824 # For the awk script, D is an array of macro values keyed by name,
40825 # likewise P contains macro parameters if any. Preserve backslash
40826 # newline sequences.
40828 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
40830 s/.\{148\}/&'"$ac_delim"'/g
40833 s/^[ ]*#[ ]*define[ ][ ]*/ /
40840 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
40842 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
40846 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
40847 D["\1"]=" \3\\\\\\n"\\/p
40849 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
40854 s/.\{148\}/&'"$ac_delim"'/g
40859 s/["\\]/\\&/g; s/^/"/; s/$/"/p
40862 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
40864 ' <confdefs.h | sed '
40865 s/'"$ac_delim"'/"\\\
40866 "/g' >>$CONFIG_STATUS || ac_write_fail=1
40868 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
40869 for (key in D) D_is_set[key] = 1
40872 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
40874 split(line, arg, " ")
40875 if (arg[1] == "#") {
40879 defundef = substr(arg[1], 2)
40882 split(mac1, mac2, "(") #)
40884 prefix = substr(line, 1, index(line, defundef) - 1)
40885 if (D_is_set[macro]) {
40886 # Preserve the white space surrounding the "#".
40887 print prefix "define", macro P[macro] D[macro]
40890 # Replace #undef with comments. This is necessary, for example,
40891 # in the case of _POSIX_SOURCE, which is predefined and required
40892 # on some systems where configure will not decide to define it.
40893 if (defundef == "undef") {
40894 print "/*", prefix defundef, macro, "*/"
40902 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
40903 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
40904 fi # test -n "$CONFIG_HEADERS"
40907 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
40912 :[FHLC]) ac_mode=$ac_tag; continue;;
40914 case $ac_mode$ac_tag in
40916 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
40917 :[FH]-) ac_tag=-:-;;
40918 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
40935 -) ac_f="$ac_tmp/stdin";;
40936 *) # Look for the file first in the build tree, then in the source tree
40937 # (if the path is not absolute). The absolute path cannot be DOS-style,
40938 # because $ac_f cannot contain `:'.
40942 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
40944 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
40946 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
40947 as_fn_append ac_file_inputs " '$ac_f'"
40950 # Let's still pretend it is `configure' which instantiates (i.e., don't
40951 # use $as_me), people would be surprised to read:
40952 # /* config.h. Generated by config.status. */
40953 configure_input='Generated from '`
40954 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
40956 if test x"$ac_file" != x-; then
40957 configure_input="$ac_file. $configure_input"
40958 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
40959 $as_echo "$as_me: creating $ac_file" >&6;}
40961 # Neutralize special characters interpreted by sed in replacement strings.
40962 case $configure_input in #(
40963 *\&* | *\|* | *\\* )
40964 ac_sed_conf_input=`$as_echo "$configure_input" |
40965 sed 's/[\\\\&|]/\\\\&/g'`;; #(
40966 *) ac_sed_conf_input=$configure_input;;
40970 *:-:* | *:-) cat >"$ac_tmp/stdin" \
40971 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
40976 ac_dir=`$as_dirname -- "$ac_file" ||
40977 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
40978 X"$ac_file" : 'X\(//\)[^/]' \| \
40979 X"$ac_file" : 'X\(//\)$' \| \
40980 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
40981 $as_echo X"$ac_file" |
40982 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
40986 /^X\(\/\/\)[^/].*/{
40999 as_dir="$ac_dir"; as_fn_mkdir_p
41003 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
41005 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
41006 # A ".." for each directory in $ac_dir_suffix.
41007 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
41008 case $ac_top_builddir_sub in
41009 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
41010 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
41013 ac_abs_top_builddir=$ac_pwd
41014 ac_abs_builddir=$ac_pwd$ac_dir_suffix
41015 # for backward compatibility:
41016 ac_top_builddir=$ac_top_build_prefix
41019 .) # We are building in place.
41021 ac_top_srcdir=$ac_top_builddir_sub
41022 ac_abs_top_srcdir=$ac_pwd ;;
41023 [\\/]* | ?:[\\/]* ) # Absolute name.
41024 ac_srcdir=$srcdir$ac_dir_suffix;
41025 ac_top_srcdir=$srcdir
41026 ac_abs_top_srcdir=$srcdir ;;
41027 *) # Relative name.
41028 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
41029 ac_top_srcdir=$ac_top_build_prefix$srcdir
41030 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
41032 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
41042 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
41043 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
41045 ac_MKDIR_P=$MKDIR_P
41047 [\\/$]* | ?:[\\/]* ) ;;
41048 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
41052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41053 # If the template does not know about datarootdir, expand it.
41054 # FIXME: This hack should be removed a few years after 2.60.
41055 ac_datarootdir_hack=; ac_datarootdir_seen=
41066 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
41067 *datarootdir*) ac_datarootdir_seen=yes;;
41068 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
41069 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
41070 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
41072 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41073 ac_datarootdir_hack='
41074 s&@datadir@&$datadir&g
41075 s&@docdir@&$docdir&g
41076 s&@infodir@&$infodir&g
41077 s&@localedir@&$localedir&g
41078 s&@mandir@&$mandir&g
41079 s&\\\${datarootdir}&$datarootdir&g' ;;
41083 # Neutralize VPATH when `$srcdir' = `.'.
41084 # Shell code in configure.ac might set extrasub.
41085 # FIXME: do we really want to maintain this feature?
41086 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
41087 ac_sed_extra="$ac_vpsub
41090 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
41092 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
41093 s|@configure_input@|$ac_sed_conf_input|;t t
41094 s&@top_builddir@&$ac_top_builddir_sub&;t t
41095 s&@top_build_prefix@&$ac_top_build_prefix&;t t
41096 s&@srcdir@&$ac_srcdir&;t t
41097 s&@abs_srcdir@&$ac_abs_srcdir&;t t
41098 s&@top_srcdir@&$ac_top_srcdir&;t t
41099 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
41100 s&@builddir@&$ac_builddir&;t t
41101 s&@abs_builddir@&$ac_abs_builddir&;t t
41102 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
41103 s&@INSTALL@&$ac_INSTALL&;t t
41104 s&@MKDIR_P@&$ac_MKDIR_P&;t t
41105 $ac_datarootdir_hack
41107 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
41108 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41110 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
41111 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
41112 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
41113 "$ac_tmp/out"`; test -z "$ac_out"; } &&
41114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41115 which seems to be undefined. Please make sure it is defined" >&5
41116 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
41117 which seems to be undefined. Please make sure it is defined" >&2;}
41119 rm -f "$ac_tmp/stdin"
41121 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
41122 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
41124 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41130 if test x"$ac_file" != x-; then
41132 $as_echo "/* $configure_input */" \
41133 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
41134 } >"$ac_tmp/config.h" \
41135 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41136 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
41137 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
41138 $as_echo "$as_me: $ac_file is unchanged" >&6;}
41141 mv "$ac_tmp/config.h" "$ac_file" \
41142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
41145 $as_echo "/* $configure_input */" \
41146 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
41147 || as_fn_error $? "could not create -" "$LINENO" 5
41149 # Compute "$ac_file"'s index in $config_headers.
41152 for _am_header in $config_headers :; do
41153 case $_am_header in
41154 $_am_arg | $_am_arg:* )
41157 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
41160 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
41161 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41162 X"$_am_arg" : 'X\(//\)[^/]' \| \
41163 X"$_am_arg" : 'X\(//\)$' \| \
41164 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
41165 $as_echo X"$_am_arg" |
41166 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41170 /^X\(\/\/\)[^/].*/{
41182 s/.*/./; q'`/stamp-h$_am_stamp_count
41185 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
41186 $as_echo "$as_me: executing $ac_file commands" >&6;}
41191 case $ac_file$ac_mode in
41192 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
41193 # Older Autoconf quotes --file arguments for eval, but not when files
41194 # are listed without --file. Let's play safe and only enable the eval
41195 # if we detect the quoting.
41196 case $CONFIG_FILES in
41197 *\'*) eval set x "$CONFIG_FILES" ;;
41198 *) set x $CONFIG_FILES ;;
41203 # Strip MF so we end up with the name of the file.
41204 mf=`echo "$mf" | sed -e 's/:.*$//'`
41205 # Check whether this is an Automake generated Makefile or not.
41206 # We used to match only the files named 'Makefile.in', but
41207 # some people rename them; so instead we look at the file content.
41208 # Grep'ing the first line is not enough: some people post-process
41209 # each Makefile.in and add a new line on top of each file to say so.
41210 # Grep'ing the whole file is not good either: AIX grep has a line
41211 # limit of 2048, but all sed's we know have understand at least 4000.
41212 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
41213 dirpart=`$as_dirname -- "$mf" ||
41214 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41215 X"$mf" : 'X\(//\)[^/]' \| \
41216 X"$mf" : 'X\(//\)$' \| \
41217 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
41219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41223 /^X\(\/\/\)[^/].*/{
41239 # Extract the definition of DEPDIR, am__include, and am__quote
41240 # from the Makefile without running 'make'.
41241 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
41242 test -z "$DEPDIR" && continue
41243 am__include=`sed -n 's/^am__include = //p' < "$mf"`
41244 test -z "$am__include" && continue
41245 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
41246 # Find all dependency output files, they are included files with
41247 # $(DEPDIR) in their names. We invoke sed twice because it is the
41248 # simplest approach to changing $(DEPDIR) to its actual value in the
41250 for file in `sed -n "
41251 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
41252 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
41253 # Make sure the directory exists.
41254 test -f "$dirpart/$file" && continue
41255 fdir=`$as_dirname -- "$file" ||
41256 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
41257 X"$file" : 'X\(//\)[^/]' \| \
41258 X"$file" : 'X\(//\)$' \| \
41259 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
41260 $as_echo X"$file" |
41261 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
41265 /^X\(\/\/\)[^/].*/{
41278 as_dir=$dirpart/$fdir; as_fn_mkdir_p
41279 # echo "creating $dirpart/$file"
41280 echo '# dummy' > "$dirpart/$file"
41287 # See if we are running on zsh, and set the options which allow our
41288 # commands through without removal of \ escapes.
41289 if test -n "${ZSH_VERSION+set}" ; then
41290 setopt NO_GLOB_SUBST
41293 cfgfile="${ofile}T"
41294 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
41297 cat <<_LT_EOF >> "$cfgfile"
41300 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
41301 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
41302 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
41303 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
41305 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
41306 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
41308 # Written by Gordon Matzigkeit, 1996
41310 # This file is part of GNU Libtool.
41312 # GNU Libtool is free software; you can redistribute it and/or
41313 # modify it under the terms of the GNU General Public License as
41314 # published by the Free Software Foundation; either version 2 of
41315 # the License, or (at your option) any later version.
41317 # As a special exception to the GNU General Public License,
41318 # if you distribute this file as part of a program or library that
41319 # is built using GNU Libtool, you may include this file under the
41320 # same distribution terms that you use for the rest of that program.
41322 # GNU Libtool is distributed in the hope that it will be useful,
41323 # but WITHOUT ANY WARRANTY; without even the implied warranty of
41324 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
41325 # GNU General Public License for more details.
41327 # You should have received a copy of the GNU General Public License
41328 # along with GNU Libtool; see the file COPYING. If not, a copy
41329 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
41330 # obtained by writing to the Free Software Foundation, Inc.,
41331 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
41334 # The names of the tagged configurations supported by this script.
41337 # ### BEGIN LIBTOOL CONFIG
41339 # Which release of libtool.m4 was used?
41340 macro_version=$macro_version
41341 macro_revision=$macro_revision
41343 # Assembler program.
41346 # DLL creation program.
41347 DLLTOOL=$lt_DLLTOOL
41349 # Object dumper program.
41350 OBJDUMP=$lt_OBJDUMP
41352 # Whether or not to build shared libraries.
41353 build_libtool_libs=$enable_shared
41355 # Whether or not to build static libraries.
41356 build_old_libs=$enable_static
41358 # What type of objects to build.
41361 # Whether or not to optimize for fast installation.
41362 fast_install=$enable_fast_install
41364 # Shell to use when invoking shell scripts.
41367 # An echo program that protects backslashes.
41370 # The PATH separator for the build system.
41371 PATH_SEPARATOR=$lt_PATH_SEPARATOR
41374 host_alias=$host_alias
41378 # The build system.
41379 build_alias=$build_alias
41383 # A sed program that does not truncate output.
41386 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
41387 Xsed="\$SED -e 1s/^X//"
41389 # A grep program that handles long lines.
41395 # A literal string matcher.
41398 # A BSD- or MS-compatible name lister.
41401 # Whether we need soft or hard links.
41404 # What is the maximum length of a command?
41405 max_cmd_len=$max_cmd_len
41407 # Object file suffix (normally "o").
41410 # Executable file suffix (normally "").
41413 # whether the shell understands "unset".
41416 # turn spaces into newlines.
41419 # turn newlines into spaces.
41422 # convert \$build file names to \$host format.
41423 to_host_file_cmd=$lt_cv_to_host_file_cmd
41425 # convert \$build files to toolchain format.
41426 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
41428 # Method to check whether dependent libraries are shared objects.
41429 deplibs_check_method=$lt_deplibs_check_method
41431 # Command to use when deplibs_check_method = "file_magic".
41432 file_magic_cmd=$lt_file_magic_cmd
41434 # How to find potential files when deplibs_check_method = "file_magic".
41435 file_magic_glob=$lt_file_magic_glob
41437 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
41438 want_nocaseglob=$lt_want_nocaseglob
41440 # Command to associate shared and link libraries.
41441 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
41446 # Flags to create an archive.
41447 AR_FLAGS=$lt_AR_FLAGS
41449 # How to feed a file listing to the archiver.
41450 archiver_list_spec=$lt_archiver_list_spec
41452 # A symbol stripping program.
41455 # Commands used to install an old-style archive.
41457 old_postinstall_cmds=$lt_old_postinstall_cmds
41458 old_postuninstall_cmds=$lt_old_postuninstall_cmds
41460 # Whether to use a lock for old archive extraction.
41461 lock_old_archive_extraction=$lock_old_archive_extraction
41466 # LTCC compiler flags.
41467 LTCFLAGS=$lt_CFLAGS
41469 # Take the output of nm and produce a listing of raw symbols and C names.
41470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
41472 # Transform the output of nm in a proper C declaration.
41473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
41475 # Transform the output of nm in a C name address pair.
41476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
41478 # Transform the output of nm in a C name address pair when lib prefix is needed.
41479 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
41481 # Specify filename containing input files for \$NM.
41482 nm_file_list_spec=$lt_nm_file_list_spec
41484 # The root where to search for dependent libraries,and in which our libraries should be installed.
41485 lt_sysroot=$lt_sysroot
41487 # The name of the directory that contains temporary libtool files.
41490 # Used to examine libraries when file_magic_cmd begins with "file".
41491 MAGIC_CMD=$MAGIC_CMD
41493 # Must we lock files when doing compilation?
41494 need_locks=$lt_need_locks
41497 MANIFEST_TOOL=$lt_MANIFEST_TOOL
41499 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
41500 DSYMUTIL=$lt_DSYMUTIL
41502 # Tool to change global to local symbols on Mac OS X.
41505 # Tool to manipulate fat objects and archives on Mac OS X.
41508 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
41511 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
41512 OTOOL64=$lt_OTOOL64
41514 # Old archive suffix (normally "a").
41517 # Shared library suffix (normally ".so").
41518 shrext_cmds=$lt_shrext_cmds
41520 # The commands to extract the exported symbol list from a shared archive.
41521 extract_expsyms_cmds=$lt_extract_expsyms_cmds
41523 # Variables whose values should be saved in libtool wrapper scripts and
41524 # restored at link time.
41525 variables_saved_for_relink=$lt_variables_saved_for_relink
41527 # Do we need the "lib" prefix for modules?
41528 need_lib_prefix=$need_lib_prefix
41530 # Do we need a version for libraries?
41531 need_version=$need_version
41533 # Library versioning type.
41534 version_type=$version_type
41536 # Shared library runtime path variable.
41537 runpath_var=$runpath_var
41539 # Shared library path variable.
41540 shlibpath_var=$shlibpath_var
41542 # Is shlibpath searched before the hard-coded library search path?
41543 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
41545 # Format of library name prefix.
41546 libname_spec=$lt_libname_spec
41548 # List of archive names. First name is the real one, the rest are links.
41549 # The last name is the one that the linker finds with -lNAME
41550 library_names_spec=$lt_library_names_spec
41552 # The coded name of the library, if different from the real name.
41553 soname_spec=$lt_soname_spec
41555 # Permission mode override for installation of shared libraries.
41556 install_override_mode=$lt_install_override_mode
41558 # Command to use after installation of a shared archive.
41559 postinstall_cmds=$lt_postinstall_cmds
41561 # Command to use after uninstallation of a shared archive.
41562 postuninstall_cmds=$lt_postuninstall_cmds
41564 # Commands used to finish a libtool library installation in a directory.
41565 finish_cmds=$lt_finish_cmds
41567 # As "finish_cmds", except a single script fragment to be evaled but
41569 finish_eval=$lt_finish_eval
41571 # Whether we should hardcode library paths into libraries.
41572 hardcode_into_libs=$hardcode_into_libs
41574 # Compile-time system search path for libraries.
41575 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
41577 # Run-time system search path for libraries.
41578 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
41580 # Whether dlopen is supported.
41581 dlopen_support=$enable_dlopen
41583 # Whether dlopen of programs is supported.
41584 dlopen_self=$enable_dlopen_self
41586 # Whether dlopen of statically linked programs is supported.
41587 dlopen_self_static=$enable_dlopen_self_static
41589 # Commands to strip libraries.
41590 old_striplib=$lt_old_striplib
41591 striplib=$lt_striplib
41594 # The linker used to build libraries.
41597 # How to create reloadable object files.
41598 reload_flag=$lt_reload_flag
41599 reload_cmds=$lt_reload_cmds
41601 # Commands used to build an old-style archive.
41602 old_archive_cmds=$lt_old_archive_cmds
41604 # A language specific compiler.
41607 # Is the compiler the GNU compiler?
41610 # Compiler flag to turn off builtin functions.
41611 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
41613 # Additional compiler flags for building library objects.
41614 pic_flag=$lt_lt_prog_compiler_pic
41616 # How to pass a linker flag through the compiler.
41617 wl=$lt_lt_prog_compiler_wl
41619 # Compiler flag to prevent dynamic linking.
41620 link_static_flag=$lt_lt_prog_compiler_static
41622 # Does compiler simultaneously support -c and -o options?
41623 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
41625 # Whether or not to add -lc for building shared libraries.
41626 build_libtool_need_lc=$archive_cmds_need_lc
41628 # Whether or not to disallow shared libs when runtime libs are static.
41629 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
41631 # Compiler flag to allow reflexive dlopens.
41632 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
41634 # Compiler flag to generate shared objects directly from archives.
41635 whole_archive_flag_spec=$lt_whole_archive_flag_spec
41637 # Whether the compiler copes with passing no objects directly.
41638 compiler_needs_object=$lt_compiler_needs_object
41640 # Create an old-style archive from a shared archive.
41641 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
41643 # Create a temporary old-style archive to link instead of a shared archive.
41644 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
41646 # Commands used to build a shared archive.
41647 archive_cmds=$lt_archive_cmds
41648 archive_expsym_cmds=$lt_archive_expsym_cmds
41650 # Commands used to build a loadable module if different from building
41651 # a shared archive.
41652 module_cmds=$lt_module_cmds
41653 module_expsym_cmds=$lt_module_expsym_cmds
41655 # Whether we are building with GNU ld or not.
41656 with_gnu_ld=$lt_with_gnu_ld
41658 # Flag that allows shared libraries with undefined symbols to be built.
41659 allow_undefined_flag=$lt_allow_undefined_flag
41661 # Flag that enforces no undefined symbols.
41662 no_undefined_flag=$lt_no_undefined_flag
41664 # Flag to hardcode \$libdir into a binary during linking.
41665 # This must work even if \$libdir does not exist
41666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
41668 # Whether we need a single "-rpath" flag with a separated argument.
41669 hardcode_libdir_separator=$lt_hardcode_libdir_separator
41671 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41672 # DIR into the resulting binary.
41673 hardcode_direct=$hardcode_direct
41675 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
41676 # DIR into the resulting binary and the resulting library dependency is
41677 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
41678 # library is relocated.
41679 hardcode_direct_absolute=$hardcode_direct_absolute
41681 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
41682 # into the resulting binary.
41683 hardcode_minus_L=$hardcode_minus_L
41685 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
41686 # into the resulting binary.
41687 hardcode_shlibpath_var=$hardcode_shlibpath_var
41689 # Set to "yes" if building a shared library automatically hardcodes DIR
41690 # into the library and all subsequent libraries and executables linked
41692 hardcode_automatic=$hardcode_automatic
41694 # Set to yes if linker adds runtime paths of dependent libraries
41695 # to runtime path list.
41696 inherit_rpath=$inherit_rpath
41698 # Whether libtool must link a program against all its dependency libraries.
41699 link_all_deplibs=$link_all_deplibs
41701 # Set to "yes" if exported symbols are required.
41702 always_export_symbols=$always_export_symbols
41704 # The commands to list exported symbols.
41705 export_symbols_cmds=$lt_export_symbols_cmds
41707 # Symbols that should not be listed in the preloaded symbols.
41708 exclude_expsyms=$lt_exclude_expsyms
41710 # Symbols that must always be exported.
41711 include_expsyms=$lt_include_expsyms
41713 # Commands necessary for linking programs (against libraries) with templates.
41714 prelink_cmds=$lt_prelink_cmds
41716 # Commands necessary for finishing linking programs.
41717 postlink_cmds=$lt_postlink_cmds
41719 # Specify filename containing input files.
41720 file_list_spec=$lt_file_list_spec
41722 # How to hardcode a shared library path into an executable.
41723 hardcode_action=$hardcode_action
41725 # ### END LIBTOOL CONFIG
41731 cat <<\_LT_EOF >> "$cfgfile"
41732 # AIX sometimes has problems with the GCC collect2 program. For some
41733 # reason, if we set the COLLECT_NAMES environment variable, the problems
41734 # vanish in a puff of smoke.
41735 if test "X${COLLECT_NAMES+set}" != Xset; then
41737 export COLLECT_NAMES
41744 ltmain="$ac_aux_dir/ltmain.sh"
41747 # We use sed instead of cat because bash on DJGPP gets confused if
41748 # if finds mixed CR/LF and LF-only lines. Since sed operates in
41749 # text mode, it properly converts lines to CR/LF. This bash problem
41750 # is reportedly fixed, but why not run on old versions too?
41751 sed '$q' "$ltmain" >> "$cfgfile" \
41752 || (rm -f "$cfgfile"; exit 1)
41754 if test x"$xsi_shell" = xyes; then
41755 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
41759 \ */*) func_dirname_result="${1%/*}${2}" ;;\
41760 \ * ) func_dirname_result="${3}" ;;\
41762 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
41763 && mv -f "$cfgfile.tmp" "$cfgfile" \
41764 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41765 test 0 -eq $? || _lt_function_replace_fail=:
41768 sed -e '/^func_basename ()$/,/^} # func_basename /c\
41771 \ func_basename_result="${1##*/}"\
41772 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
41773 && mv -f "$cfgfile.tmp" "$cfgfile" \
41774 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41775 test 0 -eq $? || _lt_function_replace_fail=:
41778 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
41779 func_dirname_and_basename ()\
41782 \ */*) func_dirname_result="${1%/*}${2}" ;;\
41783 \ * ) func_dirname_result="${3}" ;;\
41785 \ func_basename_result="${1##*/}"\
41786 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
41787 && mv -f "$cfgfile.tmp" "$cfgfile" \
41788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41789 test 0 -eq $? || _lt_function_replace_fail=:
41792 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
41795 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
41796 \ # positional parameters, so assign one to ordinary parameter first.\
41797 \ func_stripname_result=${3}\
41798 \ func_stripname_result=${func_stripname_result#"${1}"}\
41799 \ func_stripname_result=${func_stripname_result%"${2}"}\
41800 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
41801 && mv -f "$cfgfile.tmp" "$cfgfile" \
41802 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41803 test 0 -eq $? || _lt_function_replace_fail=:
41806 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
41807 func_split_long_opt ()\
41809 \ func_split_long_opt_name=${1%%=*}\
41810 \ func_split_long_opt_arg=${1#*=}\
41811 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
41812 && mv -f "$cfgfile.tmp" "$cfgfile" \
41813 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41814 test 0 -eq $? || _lt_function_replace_fail=:
41817 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
41818 func_split_short_opt ()\
41820 \ func_split_short_opt_arg=${1#??}\
41821 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
41822 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
41823 && mv -f "$cfgfile.tmp" "$cfgfile" \
41824 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41825 test 0 -eq $? || _lt_function_replace_fail=:
41828 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
41832 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
41833 \ *) func_lo2o_result=${1} ;;\
41835 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
41836 && mv -f "$cfgfile.tmp" "$cfgfile" \
41837 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41838 test 0 -eq $? || _lt_function_replace_fail=:
41841 sed -e '/^func_xform ()$/,/^} # func_xform /c\
41844 func_xform_result=${1%.*}.lo\
41845 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
41846 && mv -f "$cfgfile.tmp" "$cfgfile" \
41847 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41848 test 0 -eq $? || _lt_function_replace_fail=:
41851 sed -e '/^func_arith ()$/,/^} # func_arith /c\
41854 func_arith_result=$(( $* ))\
41855 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
41856 && mv -f "$cfgfile.tmp" "$cfgfile" \
41857 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41858 test 0 -eq $? || _lt_function_replace_fail=:
41861 sed -e '/^func_len ()$/,/^} # func_len /c\
41864 func_len_result=${#1}\
41865 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
41866 && mv -f "$cfgfile.tmp" "$cfgfile" \
41867 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41868 test 0 -eq $? || _lt_function_replace_fail=:
41872 if test x"$lt_shell_append" = xyes; then
41873 sed -e '/^func_append ()$/,/^} # func_append /c\
41876 eval "${1}+=\\${2}"\
41877 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
41878 && mv -f "$cfgfile.tmp" "$cfgfile" \
41879 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41880 test 0 -eq $? || _lt_function_replace_fail=:
41883 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
41884 func_append_quoted ()\
41886 \ func_quote_for_eval "${2}"\
41887 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
41888 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
41889 && mv -f "$cfgfile.tmp" "$cfgfile" \
41890 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41891 test 0 -eq $? || _lt_function_replace_fail=:
41894 # Save a `func_append' function call where possible by direct use of '+='
41895 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
41896 && mv -f "$cfgfile.tmp" "$cfgfile" \
41897 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41898 test 0 -eq $? || _lt_function_replace_fail=:
41900 # Save a `func_append' function call even when '+=' is not available
41901 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
41902 && mv -f "$cfgfile.tmp" "$cfgfile" \
41903 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
41904 test 0 -eq $? || _lt_function_replace_fail=:
41907 if test x"$_lt_function_replace_fail" = x":"; then
41908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
41909 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
41913 mv -f "$cfgfile" "$ofile" ||
41914 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
41925 ac_clean_files=$ac_clean_files_save
41927 test $ac_write_fail = 0 ||
41928 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
41931 # configure is writing to config.log, and then calls config.status.
41932 # config.status does its own redirection, appending to config.log.
41933 # Unfortunately, on DOS this fails, as config.log is still kept open
41934 # by configure, so config.status won't be able to write to it; its
41935 # output is simply discarded. So we exec the FD to /dev/null,
41936 # effectively closing config.log, so it can be properly (re)opened and
41937 # appended to by config.status. When coming back to configure, we
41938 # need to make the FD available again.
41939 if test "$no_create" != yes; then
41941 ac_config_status_args=
41942 test "$silent" = yes &&
41943 ac_config_status_args="$ac_config_status_args --quiet"
41945 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
41947 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
41948 # would make configure fail if this is the last instruction.
41949 $ac_cs_success || as_fn_exit 1
41953 # CONFIG_SUBDIRS section.
41955 if test "$no_recursion" != yes; then
41957 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
41958 # so they do not pile up.
41959 ac_sub_configure_args=
41961 eval "set x $ac_configure_args"
41965 if test -n "$ac_prev"; then
41970 -cache-file | --cache-file | --cache-fil | --cache-fi \
41971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
41972 ac_prev=cache_file ;;
41973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
41974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
41977 --config-cache | -C)
41979 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
41981 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
41983 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
41985 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
41987 --disable-option-checking)
41991 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
41993 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
41997 # Always prepend --prefix to ensure using the same prefix
41998 # in subdir configurations.
41999 ac_arg="--prefix=$prefix"
42001 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
42003 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
42006 if test "$silent" = yes; then
42007 ac_sub_configure_args="--silent $ac_sub_configure_args"
42010 # Always prepend --disable-option-checking to silence warnings, since
42011 # different subdirs can have different --enable and --with options.
42012 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
42015 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
42017 # Do not complain, so a configure script can configure whichever
42018 # parts of a large source tree are present.
42019 test -d "$srcdir/$ac_dir" || continue
42021 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
42022 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
42023 $as_echo "$ac_msg" >&6
42024 as_dir="$ac_dir"; as_fn_mkdir_p
42028 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
42030 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
42031 # A ".." for each directory in $ac_dir_suffix.
42032 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
42033 case $ac_top_builddir_sub in
42034 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
42035 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
42038 ac_abs_top_builddir=$ac_pwd
42039 ac_abs_builddir=$ac_pwd$ac_dir_suffix
42040 # for backward compatibility:
42041 ac_top_builddir=$ac_top_build_prefix
42044 .) # We are building in place.
42046 ac_top_srcdir=$ac_top_builddir_sub
42047 ac_abs_top_srcdir=$ac_pwd ;;
42048 [\\/]* | ?:[\\/]* ) # Absolute name.
42049 ac_srcdir=$srcdir$ac_dir_suffix;
42050 ac_top_srcdir=$srcdir
42051 ac_abs_top_srcdir=$srcdir ;;
42052 *) # Relative name.
42053 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
42054 ac_top_srcdir=$ac_top_build_prefix$srcdir
42055 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
42057 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
42062 # Check for guested configure; otherwise get Cygnus style configure.
42063 if test -f "$ac_srcdir/configure.gnu"; then
42064 ac_sub_configure=$ac_srcdir/configure.gnu
42065 elif test -f "$ac_srcdir/configure"; then
42066 ac_sub_configure=$ac_srcdir/configure
42067 elif test -f "$ac_srcdir/configure.in"; then
42068 # This should be Cygnus configure.
42069 ac_sub_configure=$ac_aux_dir/configure
42071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
42072 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
42076 # The recursion is here.
42077 if test -n "$ac_sub_configure"; then
42078 # Make the cache file name correct relative to the subdirectory.
42079 case $cache_file in
42080 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
42081 *) # Relative name.
42082 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
42085 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
42086 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
42087 # The eval makes quoting arguments work.
42088 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
42089 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
42090 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
42096 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
42097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
42098 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
42103 tmp_cpp=`eval echo "$ac_cpp" 2>/dev/null`
42104 if test -z "$tmp_cpp"; then
42107 cat >./tests/configurehelp.pm <<_EOF
42108 # This is a generated file. Do not edit.
42110 package configurehelp;
42122 @ISA = qw(Exporter);
42128 \$Cpreprocessor = '$tmp_cpp';
42135 ## ---------------------------------- ##
42136 ## Start of distclean amending code ##
42137 ## ---------------------------------- ##
42139 for xc_subdir in lib src tests/unit tests/server tests/libtest docs/examples
42142 if test ! -f "$xc_subdir/Makefile"; then
42143 echo "$xc_msg_err $xc_subdir/Makefile file not found. $xc_msg_abrt" >&2
42147 # Fetch dependency tracking file list from Makefile include lines.
42149 xc_inc_lines=`grep '^include .*(DEPDIR)' "$xc_subdir/Makefile" 2>/dev/null`
42150 xc_cnt_words=`echo "$xc_inc_lines" | wc -w | tr -d "$xc_space$xc_tab"`
42152 # --disable-dependency-tracking might have been used, consequently
42153 # there is nothing to amend without a dependency tracking file list.
42155 if test $xc_cnt_words -gt 0; then
42157 { $as_echo "$as_me:${as_lineno-$LINENO}: amending $xc_subdir/Makefile" >&5
42158 $as_echo "$as_me: amending $xc_subdir/Makefile" >&6;}
42160 # Build Makefile specific patch hunk.
42162 xc_p="$xc_subdir/xc_patch.tmp"
42164 xc_rm_depfiles=`echo "$xc_inc_lines" \
42165 | $SED 's%include% -rm -f%' 2>/dev/null`
42167 xc_dep_subdirs=`echo "$xc_inc_lines" \
42168 | $SED 's%include[ ][ ]*%%' 2>/dev/null \
42169 | $SED 's%(DEPDIR)/.*%(DEPDIR)%' 2>/dev/null \
42172 echo "$xc_rm_depfiles" >$xc_p
42174 for xc_dep_dir in $xc_dep_subdirs; do
42175 echo "${xc_tab}@xm_dep_cnt=\`ls $xc_dep_dir | wc -l 2>/dev/null\`; \\" >>$xc_p
42176 echo "${xc_tab}if test \$\$xm_dep_cnt -eq 0 && test -d $xc_dep_dir; then \\" >>$xc_p
42177 echo "${xc_tab} rm -rf $xc_dep_dir; \\" >>$xc_p
42178 echo "${xc_tab}fi" >>$xc_p
42181 # Build Makefile patching sed scripts.
42183 xc_s1="$xc_subdir/xc_script_1.tmp"
42184 xc_s2="$xc_subdir/xc_script_2.tmp"
42185 xc_s3="$xc_subdir/xc_script_3.tmp"
42187 cat >$xc_s1 <<\_EOT
42188 /^distclean[ ]*:/,/^[^ ][^ ]*:/{
42189 s/^.*(DEPDIR)/___xc_depdir_line___/
42191 /^maintainer-clean[ ]*:/,/^[^ ][^ ]*:/{
42192 s/^.*(DEPDIR)/___xc_depdir_line___/
42196 cat >$xc_s2 <<\_EOT
42197 /___xc_depdir_line___$/{
42199 /___xc_depdir_line___$/D
42204 /^___xc_depdir_line___/{
42210 # Apply patch to Makefile and cleanup.
42212 $SED -f "$xc_s1" "$xc_subdir/Makefile" >"$xc_subdir/Makefile.tmp1"
42213 $SED -f "$xc_s2" "$xc_subdir/Makefile.tmp1" >"$xc_subdir/Makefile.tmp2"
42214 $SED -f "$xc_s3" "$xc_subdir/Makefile.tmp2" >"$xc_subdir/Makefile.tmp3"
42216 if test -f "$xc_subdir/Makefile.tmp3"; then
42217 mv -f "$xc_subdir/Makefile.tmp3" "$xc_subdir/Makefile"
42220 test -f "$xc_subdir/Makefile.tmp1" && rm -f "$xc_subdir/Makefile.tmp1"
42221 test -f "$xc_subdir/Makefile.tmp2" && rm -f "$xc_subdir/Makefile.tmp2"
42222 test -f "$xc_subdir/Makefile.tmp3" && rm -f "$xc_subdir/Makefile.tmp3"
42224 test -f "$xc_p" && rm -f "$xc_p"
42225 test -f "$xc_s1" && rm -f "$xc_s1"
42226 test -f "$xc_s2" && rm -f "$xc_s2"
42227 test -f "$xc_s3" && rm -f "$xc_s3"
42233 ## -------------------------------- ##
42234 ## End of distclean amending code ##
42235 ## -------------------------------- ##
42239 { $as_echo "$as_me:${as_lineno-$LINENO}: Configured to build curl/libcurl:
42241 curl version: ${CURLVERSION}
42242 Host setup: ${host}
42243 Install prefix: ${prefix}
42245 SSL support: ${curl_ssl_msg}
42246 SSH support: ${curl_ssh_msg}
42247 zlib support: ${curl_zlib_msg}
42248 GSS-API support: ${curl_gss_msg}
42249 TLS-SRP support: ${curl_tls_srp_msg}
42250 resolver: ${curl_res_msg}
42251 IPv6 support: ${curl_ipv6_msg}
42252 Unix sockets support: ${curl_unix_sockets_msg}
42253 IDN support: ${curl_idn_msg}
42254 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
42255 Built-in manual: ${curl_manual_msg}
42256 --libcurl option: ${curl_libcurl_msg}
42257 Verbose errors: ${curl_verbose_msg}
42258 SSPI support: ${curl_sspi_msg}
42259 ca cert bundle: ${ca}
42260 ca cert path: ${capath}
42261 LDAP support: ${curl_ldap_msg}
42262 LDAPS support: ${curl_ldaps_msg}
42263 RTSP support: ${curl_rtsp_msg}
42264 RTMP support: ${curl_rtmp_msg}
42265 metalink support: ${curl_mtlnk_msg}
42266 HTTP2 support: ${curl_h2_msg}
42267 Protocols: ${SUPPORT_PROTOCOLS}
42269 $as_echo "$as_me: Configured to build curl/libcurl:
42271 curl version: ${CURLVERSION}
42272 Host setup: ${host}
42273 Install prefix: ${prefix}
42275 SSL support: ${curl_ssl_msg}
42276 SSH support: ${curl_ssh_msg}
42277 zlib support: ${curl_zlib_msg}
42278 GSS-API support: ${curl_gss_msg}
42279 TLS-SRP support: ${curl_tls_srp_msg}
42280 resolver: ${curl_res_msg}
42281 IPv6 support: ${curl_ipv6_msg}
42282 Unix sockets support: ${curl_unix_sockets_msg}
42283 IDN support: ${curl_idn_msg}
42284 Build libcurl: Shared=${enable_shared}, Static=${enable_static}
42285 Built-in manual: ${curl_manual_msg}
42286 --libcurl option: ${curl_libcurl_msg}
42287 Verbose errors: ${curl_verbose_msg}
42288 SSPI support: ${curl_sspi_msg}
42289 ca cert bundle: ${ca}
42290 ca cert path: ${capath}
42291 LDAP support: ${curl_ldap_msg}
42292 LDAPS support: ${curl_ldaps_msg}
42293 RTSP support: ${curl_rtsp_msg}
42294 RTMP support: ${curl_rtmp_msg}
42295 metalink support: ${curl_mtlnk_msg}
42296 HTTP2 support: ${curl_h2_msg}
42297 Protocols: ${SUPPORT_PROTOCOLS}
42300 if test "x$soname_bump" = "xyes"; then
42303 SONAME bump: yes - WARNING: this library will be built with the SONAME
42304 number bumped due to (a detected) ABI breakage.
42305 See lib/README.curl_off_t for details on this.